@asrunjs/asrun 0.0.0-stage → 0.5.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/.claude/commands/explore-case.md +18 -0
- package/.claude/commands/gen-spec.md +16 -0
- package/.claude/commands/heal-spec.md +26 -0
- package/.claude/commands/make-case.md +11 -0
- package/.claude/settings.json +5 -0
- package/.claude/skills/exploring-cases/SKILL.md +146 -0
- package/.claude/skills/exploring-cases/references/assertion-targets.md +103 -0
- package/.claude/skills/exploring-cases/references/handoff-card.js +128 -0
- package/.claude/skills/exploring-cases/references/open-questions.md +116 -0
- package/.claude/skills/exploring-cases/references/readiness.md +146 -0
- package/.claude/skills/exploring-cases/references/user-handoff.md +157 -0
- package/.claude/skills/generating-specs/SKILL.md +219 -0
- package/.claude/skills/generating-specs/references/conventions.md +148 -0
- package/.claude/skills/making-cases/SKILL.md +72 -0
- package/.claude/skills/making-cases/references/gaps.md +36 -0
- package/.claude/skills/making-cases/references/normalizing.md +39 -0
- package/.claude/skills/making-cases/references/splitting.md +28 -0
- package/.claude/skills/making-cases/references/writes-and-email.md +37 -0
- package/AGENTS.md +159 -0
- package/CLAUDE.md +2 -0
- package/LICENSE +21 -0
- package/README.md +511 -2
- package/bin/asrun.mjs +49 -0
- package/dist/lib/account-lock.d.ts +6 -0
- package/dist/lib/account-lock.js +52 -0
- package/dist/lib/assertions.d.ts +14 -0
- package/dist/lib/assertions.js +39 -0
- package/dist/lib/baselines.d.ts +43 -0
- package/dist/lib/baselines.js +108 -0
- package/dist/lib/build-artifacts.d.ts +8 -0
- package/dist/lib/build-artifacts.js +10 -0
- package/dist/lib/case-doc.d.ts +311 -0
- package/dist/lib/case-doc.js +1117 -0
- package/dist/lib/case-id.d.ts +11 -0
- package/dist/lib/case-id.js +17 -0
- package/dist/lib/case-ops.d.ts +26 -0
- package/dist/lib/case-ops.js +110 -0
- package/dist/lib/cases.d.ts +16 -0
- package/dist/lib/cases.js +51 -0
- package/dist/lib/cli.d.ts +10 -0
- package/dist/lib/cli.js +18 -0
- package/dist/lib/command.d.ts +24 -0
- package/dist/lib/command.js +90 -0
- package/dist/lib/downloads.d.ts +42 -0
- package/dist/lib/downloads.js +84 -0
- package/dist/lib/email.d.ts +10 -0
- package/dist/lib/email.js +19 -0
- package/dist/lib/ffmpeg.d.ts +8 -0
- package/dist/lib/ffmpeg.js +50 -0
- package/dist/lib/fixtures.d.ts +40 -0
- package/dist/lib/fixtures.js +149 -0
- package/dist/lib/login-card.d.ts +22 -0
- package/dist/lib/login-card.js +183 -0
- package/dist/lib/node-cli.d.ts +15 -0
- package/dist/lib/node-cli.js +36 -0
- package/dist/lib/paths.d.ts +25 -0
- package/dist/lib/paths.js +88 -0
- package/dist/lib/pdf.d.ts +71 -0
- package/dist/lib/pdf.js +140 -0
- package/dist/lib/profiles.d.ts +62 -0
- package/dist/lib/profiles.js +174 -0
- package/dist/lib/ready.d.ts +36 -0
- package/dist/lib/ready.js +53 -0
- package/dist/lib/records.d.ts +33 -0
- package/dist/lib/records.js +61 -0
- package/dist/lib/run-filters.d.ts +19 -0
- package/dist/lib/run-filters.js +38 -0
- package/dist/lib/run-summary.d.ts +90 -0
- package/dist/lib/run-summary.js +35 -0
- package/dist/lib/session.d.ts +30 -0
- package/dist/lib/session.js +111 -0
- package/dist/lib/summary-reporter.d.ts +16 -0
- package/dist/lib/summary-reporter.js +146 -0
- package/dist/lib/targets.d.ts +19 -0
- package/dist/lib/targets.js +26 -0
- package/dist/lib/ui-build.d.ts +10 -0
- package/dist/lib/ui-build.js +30 -0
- package/dist/lib/values.d.ts +29 -0
- package/dist/lib/values.js +85 -0
- package/dist/lib/write-gate.d.ts +41 -0
- package/dist/lib/write-gate.js +129 -0
- package/dist/playwright.config.d.ts +2 -0
- package/dist/playwright.config.js +92 -0
- package/dist/scripts/build.d.ts +1 -0
- package/dist/scripts/build.js +21 -0
- package/dist/scripts/check-cases.d.ts +1 -0
- package/dist/scripts/check-cases.js +149 -0
- package/dist/scripts/cleanup.d.ts +1 -0
- package/dist/scripts/cleanup.js +25 -0
- package/dist/scripts/cli.d.ts +1 -0
- package/dist/scripts/cli.js +28 -0
- package/dist/scripts/doctor.d.ts +1 -0
- package/dist/scripts/doctor.js +296 -0
- package/dist/scripts/explore.d.ts +1 -0
- package/dist/scripts/explore.js +75 -0
- package/dist/scripts/go.mjs +188 -0
- package/dist/scripts/heal-evidence.mjs +143 -0
- package/dist/scripts/init.d.ts +22 -0
- package/dist/scripts/init.js +332 -0
- package/dist/scripts/lint-specs.d.ts +1 -0
- package/dist/scripts/lint-specs.js +141 -0
- package/dist/scripts/login.d.ts +1 -0
- package/dist/scripts/login.js +75 -0
- package/dist/scripts/new-case.d.ts +1 -0
- package/dist/scripts/new-case.js +19 -0
- package/dist/scripts/render-pdf.d.ts +1 -0
- package/dist/scripts/render-pdf.js +44 -0
- package/dist/scripts/report.d.ts +1 -0
- package/dist/scripts/report.js +14 -0
- package/dist/scripts/review-baselines.d.ts +1 -0
- package/dist/scripts/review-baselines.js +30 -0
- package/dist/scripts/run.d.ts +1 -0
- package/dist/scripts/run.js +423 -0
- package/dist/scripts/status.d.ts +1 -0
- package/dist/scripts/status.js +31 -0
- package/dist/scripts/ui-build.d.ts +1 -0
- package/dist/scripts/ui-build.js +7 -0
- package/dist/scripts/ui-dev.d.ts +1 -0
- package/dist/scripts/ui-dev.js +3 -0
- package/dist/scripts/ui.d.ts +1 -0
- package/dist/scripts/ui.js +13 -0
- package/dist/ui/dev.d.ts +1 -0
- package/dist/ui/dev.js +36 -0
- package/dist/ui/server/actions.d.ts +95 -0
- package/dist/ui/server/actions.js +365 -0
- package/dist/ui/server/ai-models.d.ts +3 -0
- package/dist/ui/server/ai-models.js +347 -0
- package/dist/ui/server/ai-stream.d.ts +66 -0
- package/dist/ui/server/ai-stream.js +408 -0
- package/dist/ui/server/app.d.ts +4 -0
- package/dist/ui/server/app.js +395 -0
- package/dist/ui/server/cases.d.ts +23 -0
- package/dist/ui/server/cases.js +170 -0
- package/dist/ui/server/files.d.ts +5 -0
- package/dist/ui/server/files.js +67 -0
- package/dist/ui/server/index.d.ts +1 -0
- package/dist/ui/server/index.js +33 -0
- package/dist/ui/server/jobs.d.ts +80 -0
- package/dist/ui/server/jobs.js +317 -0
- package/dist/ui/server/profiles.d.ts +35 -0
- package/dist/ui/server/profiles.js +371 -0
- package/dist/ui/server/watch-files.d.ts +4 -0
- package/dist/ui/server/watch-files.js +36 -0
- package/dist/ui/shared/ai-commands.d.ts +88 -0
- package/dist/ui/shared/ai-commands.js +177 -0
- package/dist/ui/shared/case-id.d.ts +1 -0
- package/dist/ui/shared/case-id.js +1 -0
- package/dist/ui/shared/jobs.d.ts +6 -0
- package/dist/ui/shared/jobs.js +7 -0
- package/dist/ui/shared/product.d.ts +3 -0
- package/dist/ui/shared/product.js +3 -0
- package/dist/ui/shared/run-filters.d.ts +1 -0
- package/dist/ui/shared/run-filters.js +1 -0
- package/dist/ui/shared/site-address.d.ts +6 -0
- package/dist/ui/shared/site-address.js +11 -0
- package/dist/ui/shared/types.d.ts +371 -0
- package/dist/ui/shared/types.js +1 -0
- package/docs/agents/framework-dev.md +79 -0
- package/docs/theme-guide.html +922 -0
- package/package.json +109 -3
- package/templates/.claude/commands/explore-case.md +22 -0
- package/templates/.claude/commands/gen-spec.md +21 -0
- package/templates/.claude/commands/heal-spec.md +31 -0
- package/templates/.claude/commands/make-case.md +13 -0
- package/templates/.claude/settings.json +5 -0
- package/templates/.mcp.json +8 -0
- package/templates/AGENTS.md +64 -0
- package/templates/CLAUDE.md +1 -0
- package/templates/cases/_template.md +57 -0
- package/templates/gitignore +13 -0
- package/templates/opencode.jsonc +16 -0
- package/templates/package.json +31 -0
- package/templates/playwright.config.ts +3 -0
- package/templates/pnpm-workspace.yaml +5 -0
- package/templates/profiles.yaml +42 -0
- package/templates/seed.spec.ts +9 -0
- package/templates/tsconfig.json +14 -0
- package/ui/dist/apple-touch-icon.png +0 -0
- package/ui/dist/assets/apl-gfMMiTNf.js +1 -0
- package/ui/dist/assets/asciiarmor-C_eisQCp.js +1 -0
- package/ui/dist/assets/asn1-DCl_8MCW.js +1 -0
- package/ui/dist/assets/asterisk-BEn0Cwpx.js +1 -0
- package/ui/dist/assets/brainfuck-D5EjA2JK.js +1 -0
- package/ui/dist/assets/clike-xvONpD0Z.js +1 -0
- package/ui/dist/assets/clojure-BflJGmDX.js +1 -0
- package/ui/dist/assets/cmake-84nbDH0I.js +1 -0
- package/ui/dist/assets/cobol-DHLQUbN7.js +1 -0
- package/ui/dist/assets/coffeescript-De_zI4J0.js +1 -0
- package/ui/dist/assets/commonlisp-DgAKBe0r.js +1 -0
- package/ui/dist/assets/crystal-Bl6YKCG_.js +1 -0
- package/ui/dist/assets/css-CnaYoQib.js +1 -0
- package/ui/dist/assets/cypher-p9eYesGn.js +1 -0
- package/ui/dist/assets/d-DWkQyNnU.js +1 -0
- package/ui/dist/assets/diff-ChtP43wD.js +1 -0
- package/ui/dist/assets/dist-BGbe0-Aa.js +1 -0
- package/ui/dist/assets/dist-Ba-HC662.js +2 -0
- package/ui/dist/assets/dist-BtMLMthJ.js +1 -0
- package/ui/dist/assets/dist-Bw5-uxs9.js +1 -0
- package/ui/dist/assets/dist-BzulKuec.js +1 -0
- package/ui/dist/assets/dist-C-Oyo1ZT.js +1 -0
- package/ui/dist/assets/dist-C8MdhqgG.js +1 -0
- package/ui/dist/assets/dist-CG1pHn5m.js +1 -0
- package/ui/dist/assets/dist-CgIQYY1o.js +1 -0
- package/ui/dist/assets/dist-CmpteMYY.js +9 -0
- package/ui/dist/assets/dist-DDJNvivM.js +1 -0
- package/ui/dist/assets/dist-DF3F_I8N.js +1 -0
- package/ui/dist/assets/dist-DSy3dVf4.js +11 -0
- package/ui/dist/assets/dist-Dlorc3Sx.js +1 -0
- package/ui/dist/assets/dist-Dq6sW5Ur.js +1 -0
- package/ui/dist/assets/dist-Dr9crbBz.js +13 -0
- package/ui/dist/assets/dist-jjxQutEm.js +1 -0
- package/ui/dist/assets/dockerfile-DJkHQgkl.js +1 -0
- package/ui/dist/assets/dtd-DTF72YNO.js +1 -0
- package/ui/dist/assets/dylan-S7ucR4pR.js +1 -0
- package/ui/dist/assets/ebnf-D4c0_ac3.js +1 -0
- package/ui/dist/assets/ecl-BVIeWmwY.js +1 -0
- package/ui/dist/assets/eiffel-BEjRio4Q.js +1 -0
- package/ui/dist/assets/elm-Cshzl8qu.js +1 -0
- package/ui/dist/assets/erlang-BV0c4Hdn.js +1 -0
- package/ui/dist/assets/factor-LKH5gN8L.js +1 -0
- package/ui/dist/assets/fcl-ClOhbFR7.js +1 -0
- package/ui/dist/assets/forth-D6RzAl64.js +1 -0
- package/ui/dist/assets/fortran-Bt6PBEDR.js +1 -0
- package/ui/dist/assets/gas-BHEdbvp9.js +1 -0
- package/ui/dist/assets/gherkin-oBAE_ms0.js +1 -0
- package/ui/dist/assets/groovy-CUrWKPia.js +1 -0
- package/ui/dist/assets/haskell-BRsoo5mP.js +1 -0
- package/ui/dist/assets/haxe-DjVOVvNP.js +1 -0
- package/ui/dist/assets/http-CLVgA2GD.js +1 -0
- package/ui/dist/assets/idl-BUZw3wgd.js +1 -0
- package/ui/dist/assets/index-CTmnF0Wp.css +2 -0
- package/ui/dist/assets/index-P_Yo0ZZn.js +338 -0
- package/ui/dist/assets/javascript-lS2r2ifg.js +1 -0
- package/ui/dist/assets/julia-CQfgDRfP.js +1 -0
- package/ui/dist/assets/livescript-BXxG0Yva.js +1 -0
- package/ui/dist/assets/lua-DPCEkfD_.js +1 -0
- package/ui/dist/assets/mathematica-u8YMmbU0.js +1 -0
- package/ui/dist/assets/mbox-BEMVcqjs.js +1 -0
- package/ui/dist/assets/mirc-C9zpzAZU.js +1 -0
- package/ui/dist/assets/mllike-B45xgp2S.js +1 -0
- package/ui/dist/assets/modelica-CqHI_q-D.js +1 -0
- package/ui/dist/assets/mscgen-qgSLujhx.js +1 -0
- package/ui/dist/assets/mumps-BSzj6Xyz.js +1 -0
- package/ui/dist/assets/nginx-C-ORUuei.js +1 -0
- package/ui/dist/assets/nsis-viPvXFiq.js +1 -0
- package/ui/dist/assets/ntriples-CzMBulkp.js +1 -0
- package/ui/dist/assets/octave-D2Q8cUp1.js +1 -0
- package/ui/dist/assets/oz-BwTct_5T.js +1 -0
- package/ui/dist/assets/pascal-Dp_KdFgX.js +1 -0
- package/ui/dist/assets/perl-BkSkiI9m.js +1 -0
- package/ui/dist/assets/pig-AF4Hwhju.js +1 -0
- package/ui/dist/assets/powershell-D8WpQPaX.js +1 -0
- package/ui/dist/assets/properties-C357ku5U.js +1 -0
- package/ui/dist/assets/protobuf-D1ij_kNL.js +1 -0
- package/ui/dist/assets/pug-BqCHZ5xT.js +1 -0
- package/ui/dist/assets/puppet-BZyAS7I4.js +1 -0
- package/ui/dist/assets/python-B_1Jd8HM.js +1 -0
- package/ui/dist/assets/q-B9NhS7L_.js +1 -0
- package/ui/dist/assets/r-CxDmU1I4.js +1 -0
- package/ui/dist/assets/rpm-gpDK5sbt.js +1 -0
- package/ui/dist/assets/ruby-ChfNwlCY.js +1 -0
- package/ui/dist/assets/sas-C2OyD2Y6.js +1 -0
- package/ui/dist/assets/scheme-D9qYN0V5.js +1 -0
- package/ui/dist/assets/shell-DwuoZtxw.js +1 -0
- package/ui/dist/assets/sieve-tLWDfEkZ.js +1 -0
- package/ui/dist/assets/simple-mode-DXiLM1-G.js +1 -0
- package/ui/dist/assets/smalltalk-BLp5-jwC.js +1 -0
- package/ui/dist/assets/solr-B78wSQJQ.js +1 -0
- package/ui/dist/assets/sparql-Dz-mlCAC.js +1 -0
- package/ui/dist/assets/spreadsheet-CTIncYxj.js +1 -0
- package/ui/dist/assets/sql-DuQMFDvy.js +1 -0
- package/ui/dist/assets/stex-DNzd62Q_.js +1 -0
- package/ui/dist/assets/stylus-BOVgKnng.js +1 -0
- package/ui/dist/assets/swift-DKB6_1j6.js +1 -0
- package/ui/dist/assets/tcl-BGfruO1u.js +1 -0
- package/ui/dist/assets/textile-C4jVoHG1.js +1 -0
- package/ui/dist/assets/tiddlywiki-VlUiK86J.js +1 -0
- package/ui/dist/assets/tiki-CvUEFusT.js +1 -0
- package/ui/dist/assets/toml-BPTmHmyx.js +1 -0
- package/ui/dist/assets/troff-C2dAgh7P.js +1 -0
- package/ui/dist/assets/ttcn-PPSTk1ow.js +1 -0
- package/ui/dist/assets/ttcn-cfg-2b4Gb5sE.js +1 -0
- package/ui/dist/assets/turtle-Cx3rYX2g.js +1 -0
- package/ui/dist/assets/vb-BthdM_4N.js +1 -0
- package/ui/dist/assets/vbscript-D9f6rSsU.js +1 -0
- package/ui/dist/assets/velocity-CqftRsjg.js +1 -0
- package/ui/dist/assets/verilog-CjI9Y6RI.js +1 -0
- package/ui/dist/assets/vhdl-kS471soi.js +1 -0
- package/ui/dist/assets/webidl-D5jiJvOU.js +1 -0
- package/ui/dist/assets/xquery-BKJx4mf9.js +1 -0
- package/ui/dist/assets/yacas-CXXgtw0p.js +1 -0
- package/ui/dist/assets/z80-Co3PbHdE.js +1 -0
- package/ui/dist/favicon.ico +0 -0
- package/ui/dist/favicon.svg +11 -0
- package/ui/dist/help/ai-tools.png +0 -0
- package/ui/dist/help/case-explore.png +0 -0
- package/ui/dist/help/case-generate.png +0 -0
- package/ui/dist/help/cases-memo.png +0 -0
- package/ui/dist/help/profile-form.png +0 -0
- package/ui/dist/help/profiles-login.png +0 -0
- package/ui/dist/help/reports.png +0 -0
- package/ui/dist/help/run-tests.png +0 -0
- package/ui/dist/index.html +23 -0
- package/ui/dist/logos/claude.svg +1 -0
- package/ui/dist/logos/opencode.svg +1 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-Ba-HC662.js","assets/dist-Dr9crbBz.js","assets/dist-Bw5-uxs9.js","assets/dist-DSy3dVf4.js","assets/dist-DDJNvivM.js","assets/dist-C-Oyo1ZT.js","assets/dist-BzulKuec.js","assets/dist-jjxQutEm.js","assets/dist-BGbe0-Aa.js","assets/dist-Dq6sW5Ur.js","assets/dist-CmpteMYY.js","assets/dist-CgIQYY1o.js","assets/dist-BtMLMthJ.js","assets/dist-DF3F_I8N.js","assets/dist-Dlorc3Sx.js","assets/dockerfile-DJkHQgkl.js","assets/simple-mode-DXiLM1-G.js","assets/factor-LKH5gN8L.js","assets/nsis-viPvXFiq.js","assets/pug-BqCHZ5xT.js","assets/javascript-lS2r2ifg.js","assets/dist-C8MdhqgG.js","assets/dist-CG1pHn5m.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as D,Pt as O,Q as k,R as A,Rt as j,S as M,St as N,T as P,Tt as ee,U as F,V as I,Vt as te,W as ne,X as L,Y as R,Z as z,_ as B,_t as V,a as re,at as ie,b as ae,bt as H,c as oe,ct as se,d as ce,dt as le,et as ue,f as de,ft as fe,g as pe,gt as me,h as he,ht as ge,i as _e,it as ve,j as ye,jt as be,k as xe,kt as Se,l as U,lt as Ce,m as we,mt as Te,n as Ee,nt as De,o as Oe,ot as ke,p as Ae,pt as je,q as Me,r as Ne,rt as Pe,s as Fe,st as Ie,t as Le,tt as Re,u as ze,ut as Be,v as Ve,vt as He,w as Ue,wt as W,x as We,xt as Ge,y as Ke,yt as qe,z as G,zt as Je}from"./dist-Dr9crbBz.js";var Ye=Object.create,Xe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Qe=Object.getOwnPropertyNames,$e=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty,tt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),nt=(e,t)=>{let n={};for(var r in e)Xe(n,r,{get:e[r],enumerable:!0});return t||Xe(n,Symbol.toStringTag,{value:`Module`}),n},rt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!et.call(e,s)&&s!==n&&Xe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ze(t,s))||r.enumerable});return e},it=(e,t,n)=>(n=e==null?{}:Ye($e(e)),rt(t||!e||!e.__esModule||!et.call(e,`default`)?Xe(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var at=tt((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){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,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function te(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else te(ne.bind(null,e))}var L={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=te,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),ot=tt(((e,t)=>{t.exports=at()})),st=tt((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ct=tt(((e,t)=>{t.exports=st()})),lt=tt((e=>{var t=ot();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),ut=tt(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lt()})),dt=tt((e=>{var t=ct(),n=ot(),r=ut();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),F=Symbol.for(`react.memo`),I=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),ne=Symbol.for(`react.legacy_hidden`),L=Symbol.for(`react.memo_cache_sentinel`),R=Symbol.for(`react.view_transition`),z=Symbol.for(`react.recoverable`),B=Symbol.iterator;function V(e){return typeof e!=`object`||!e?null:(e=B&&e[B]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case ee:return`SuspenseList`;case te:return`Activity`;case R:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case F:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case I:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function ue(e){return{current:e}}function de(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function fe(e,t){le++,ce[le]=e.current,e.current=t}var pe=ue(null),me=ue(null),he=ue(null),ge=ue(null);function _e(e,t){switch(fe(he,t),fe(me,e),fe(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}de(pe),fe(pe,e)}function ve(){de(pe),de(me),de(he)}function ye(e){var t=e.memoizedState;t!==null&&(fh._currentValue=t.memoizedState,fe(ge,e)),t=pe.current;var n=gp(t,e.type);t!==n&&(fe(me,e),fe(pe,n))}function be(e){me.current===e&&(de(pe),de(me)),ge.current===e&&(de(ge),fh._currentValue=se)}var xe,Se;function U(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+xe+e+Se}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?U(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return U(e.type);case 16:return U(`Lazy`);case 13:return e.child!==t&&t!==null?U(`Suspense Fallback`):U(`Suspense`);case 19:return U(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return U(`Activity`);case 30:return U(`ViewTransition`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var W=Math.clz32?Math.clz32:Ke,We=Math.log,Ge=Math.LN2;function Ke(e){return e>>>=0,e===0?32:31-(We(e)/Ge|0)|0}var qe=256,G=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-W(n),i=1<<r;t|=e[r],n&=~i}return t}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-W(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-W(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-W(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function st(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=oe.p;return e===0?(e=window.event,e===void 0?32:Oh(e.type)):e}function pt(e,t){var n=oe.p;try{return oe.p=e,t()}finally{oe.p=n}}var mt=Math.random().toString(36).slice(2),K=`__reactFiber$`+mt,q=`__reactProps$`+mt,ht=`__reactContainer$`+mt,gt=`__reactEvents$`+mt,_t=`__reactListeners$`+mt,vt=`__reactHandles$`+mt,yt=`__reactResources$`+mt,bt=`__reactMarker$`+mt,xt=`__reactLoad$`+mt;function St(e){delete e[K],delete e[q],delete e[_t],delete e[vt]}function Ct(e){var t;if(t=e[K])return t;for(var n=e.parentNode;n;){if(t=n[ht]||n[K]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[K])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[K]||e[ht]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Et(e){var t=e[yt];return t||=e[yt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Dt(e){e[bt]=!0}function Ot(e){e[xt]=void 0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Pt={},Ft={};function It(e){return De.call(Ft,e)?!0:De.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}var Lt=!1;function Rt(){var e=Lt;return Lt=!1,e}function zt(e,t,n){if(It(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Bt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Vt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Ht(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Wt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gt(e){if(!e._valueTracker){var t=Ut(e)?`checked`:`value`;e._valueTracker=Wt(e,t,``+e[t])}}function Kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ut(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var qt=/[\n"\\]/g;function Jt(e){return e.replace(qt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Yt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ht(t)):e.value!==``+Ht(t)&&(e.value=``+Ht(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Zt(e,Ht(n)):o===`number`&&e.value==t?Zt(e,Ht(e.value)):Zt(e,Ht(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ht(s):e.removeAttribute(`name`)}function Xt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Gt(e);return}n=n==null?``:``+Ht(n),t=t==null?n:``+Ht(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Gt(e)}function Zt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function Qt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function $t(e,t,n){t!=null&&(t=``+Ht(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Ht(n)}function en(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ht(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Gt(e)}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function rn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||nn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function an(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Lt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(rn(e,a,r),Lt=!0)}else for(var o in t)t.hasOwnProperty(o)&&rn(e,o,t[o])}function on(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var sn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),cn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ln(e){return cn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function un(){}var dn=null;function fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pn=null,mn=null;function hn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[q]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[q]||null;if(!a)throw Error(i(90));Yt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Kt(r)}break a;case`textarea`:$t(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Qt(e,!!n.multiple,t,!1)}}}var gn=!1;function _n(e,t,n){if(gn)return e(t,n);gn=!0;try{return e(t)}finally{if(gn=!1,(pn!==null||mn!==null)&&(Vd(),pn&&(t=pn,e=mn,mn=pn=null,hn(t),e)))for(t=0;t<e.length;t++)hn(e[t])}}function vn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[q]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var yn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,bn=!1;if(yn)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){bn=!0}}),window.addEventListener(`test`,xn,xn),window.removeEventListener(`test`,xn,xn)}catch{bn=!1}var Sn=null,Cn=null,wn=null;function Tn(){if(wn)return wn;var e,t=Cn,n=t.length,r,i=`value`in Sn?Sn.value:Sn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return wn=i.slice(e,1<r?1-r:void 0)}function En(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Dn(){return!0}function On(){return!1}function kn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Dn:On,this.isPropagationStopped=On,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Dn)},persist:function(){},isPersistent:Dn}),t}var An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jn=kn(An),Mn=w({},An,{view:0,detail:0}),Nn=kn(Mn),Pn,Fn,In,Ln=w({},Mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==In&&(In&&e.type===`mousemove`?(Pn=e.screenX-In.screenX,Fn=e.screenY-In.screenY):Fn=Pn=0,In=e),Pn)},movementY:function(e){return`movementY`in e?e.movementY:Fn}}),Rn=kn(Ln),zn=kn(w({},Ln,{dataTransfer:0})),Bn=kn(w({},Mn,{relatedTarget:0})),Vn=kn(w({},An,{animationName:0,elapsedTime:0,pseudoElement:0})),Hn=kn(w({},An,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Un=kn(w({},An,{data:0})),Wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Gn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kn[e])?!!t[e]:!1}function Jn(){return qn}var Yn=kn(w({},Mn,{key:function(e){if(e.key){var t=Wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=En(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Gn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jn,charCode:function(e){return e.type===`keypress`?En(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?En(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Xn=kn(w({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Zn=kn(w({},An,{submitter:0})),Qn=kn(w({},Mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jn})),$n=kn(w({},An,{propertyName:0,elapsedTime:0,pseudoElement:0})),er=kn(w({},Ln,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tr=kn(w({},An,{newState:0,oldState:0,source:0})),nr=[9,13,27,32],rr=yn&&`CompositionEvent`in window,ir=null;yn&&`documentMode`in document&&(ir=document.documentMode);var ar=yn&&`TextEvent`in window&&!ir,or=yn&&(!rr||ir&&8<ir&&11>=ir),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return nr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!rr&&lr(e,t)?(e=Tn(),wn=Cn=Sn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return or&&t.locale!==`ko`?null:t.data;default:return null}}var mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){pn?mn?mn.push(r):mn=[r]:pn=r,t=Qf(t,`onChange`),0<t.length&&(n=new jn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){Wf(e,0)}function br(e){if(Kt(Tt(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(yn){var Cr;if(yn){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){_r&&(_r.detachEvent(`onpropertychange`,Dr),vr=_r=null)}function Dr(e){if(e.propertyName===`value`&&br(vr)){var t=[];gr(t,vr,e,fn(e)),_n(yr,t)}}function Or(e,t,n){e===`focusin`?(Er(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function Ar(e,t){if(e===`click`)return br(t)}function jr(e,t){if(e===`input`||e===`change`)return br(t)}function Mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Nr=typeof Object.is==`function`?Object.is:Mr;function Pr(e,t){if(Nr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!De.call(t,i)||!Nr(e[i],t[i]))return!1}return!0}function Fr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Vr=yn&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==Fr(r)||(r=Hr,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Pr(Wr,r)||(Wr=r,r=Qf(Ur,`onSelect`),0<r.length&&(t=new jn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Jr={animationend:qr(`Animation`,`AnimationEnd`),animationiteration:qr(`Animation`,`AnimationIteration`),animationstart:qr(`Animation`,`AnimationStart`),transitionrun:qr(`Transition`,`TransitionRun`),transitionstart:qr(`Transition`,`TransitionStart`),transitioncancel:qr(`Transition`,`TransitionCancel`),transitionend:qr(`Transition`,`TransitionEnd`)},Yr={},Xr={};yn&&(Xr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Jr.animationend.animation,delete Jr.animationiteration.animation,delete Jr.animationstart.animation),`TransitionEvent`in window||delete Jr.transitionend.transition);function Zr(e){if(Yr[e])return Yr[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xr)return Yr[e]=t[n];return e}var Qr=Zr(`animationend`),$r=Zr(`animationiteration`),ei=Zr(`animationstart`),ti=Zr(`transitionrun`),ni=Zr(`transitionstart`),ri=Zr(`transitioncancel`),ii=Zr(`transitionend`),ai=new Map,oi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);oi.push(`scrollEnd`);function si(e,t){ai.set(e,t),jt(t,[e])}var ci=0;function li(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Sd.identifierPrefix;var n=ci++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function ui(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ad;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function di(e,t){return e=ui(e),t=ui(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var fi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},pi=[],mi=0,hi=0;function gi(){for(var e=mi,t=hi=mi=0;t<e;){var n=pi[t];pi[t++]=null;var r=pi[t];pi[t++]=null;var i=pi[t];pi[t++]=null;var a=pi[t];if(pi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&bi(n,i,a)}}function _i(e,t,n,r){pi[mi++]=e,pi[mi++]=t,pi[mi++]=n,pi[mi++]=r,hi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function vi(e,t,n,r){return _i(e,t,n,r),xi(e)}function yi(e,t){return _i(e,null,null,t),xi(e)}function bi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-W(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function xi(e){if(50<jd)throw jd=0,Md=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Si={};function Ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wi(e,t,n,r){return new Ci(e,t,n,r)}function Ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ei(e,t){var n=e.alternate;return n===null?(n=wi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Di(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ti(r)&&(s=1);else if(typeof r==`string`)s=Qm(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case te:return e=wi(31,n,t,a),e.elementType=te,e.lanes=o,e;case O:return ki(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=wi(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=wi(13,n,t,a),e.elementType=P,e.lanes=o,e;case ee:return e=wi(19,n,t,a),e.elementType=ee,e.lanes=o,e;case ne:case R:return e=a|32,e=wi(30,n,t,e),e.elementType=R,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case F:s=14;break a;case I:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=wi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ki(e,t,n,r){return e=wi(7,e,r,t),e.lanes=n,e}function Ai(e,t,n){return e=wi(6,e,null,t),e.lanes=n,e}function ji(e){var t=wi(18,null,null,0);return t.stateNode=e,t}function Mi(e,t,n){return t=wi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ni=new WeakMap;function Pi(e,t){if(typeof e==`object`&&e){var n=Ni.get(e);return n===void 0?(t={value:e,source:t,stack:Ee(t)},Ni.set(e,t),t):n}return{value:e,source:t,stack:Ee(t)}}var Fi=[],Ii=0,Li=null,Ri=0,zi=[],Bi=0,Vi=null,Hi=1,Ui=``;function Wi(e,t){Fi[Ii++]=Ri,Fi[Ii++]=Li,Li=e,Ri=t}function Gi(e,t,n){zi[Bi++]=Hi,zi[Bi++]=Ui,zi[Bi++]=Vi,Vi=e;var r=Hi;e=Ui;var i=32-W(r)-1;r&=~(1<<i),n+=1;var a=32-W(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Hi=1<<32-W(t)+i|n<<i|r,Ui=a+e}else Hi=1<<a|n<<i|r,Ui=e}function Ki(e){e.return!==null&&(Wi(e,1),Gi(e,1,0))}function qi(e){for(;e===Li;)Li=Fi[--Ii],Fi[Ii]=null,Ri=Fi[--Ii],Fi[Ii]=null;for(;e===Vi;)Vi=zi[--Bi],zi[Bi]=null,Ui=zi[--Bi],zi[Bi]=null,Hi=zi[--Bi],zi[Bi]=null}function Ji(e,t){zi[Bi++]=Hi,zi[Bi++]=Ui,zi[Bi++]=Vi,Hi=t.id,Ui=t.overflow,Vi=e}var Yi=null,Xi=null,Zi=!1,Qi=null,$i=!1,ea=Error(i(519));function ta(e){throw sa(Pi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ea}function na(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[K]=e,t[q]=r,n){case`dialog`:Gf(`cancel`,t),Gf(`close`,t);break;case`iframe`:case`object`:case`embed`:Gf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Gf(Hf[n],t);break;case`source`:Gf(`error`,t);break;case`img`:case`image`:case`link`:Gf(`error`,t),Gf(`load`,t);break;case`details`:Gf(`toggle`,t);break;case`input`:Gf(`invalid`,t),Xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Gf(`invalid`,t);break;case`textarea`:Gf(`invalid`,t),en(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ip(t.textContent,n)?(r.popover!=null&&(Gf(`beforetoggle`,t),Gf(`toggle`,t)),r.onScroll!=null&&Gf(`scroll`,t),r.onScrollEnd!=null&&Gf(`scrollend`,t),r.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||ta(e,!0)}function ra(e){for(Yi=e.return;Yi;)switch(Yi.tag){case 5:case 31:case 13:$i=!1;return;case 27:case 3:$i=!0;return;default:Yi=Yi.return}}function ia(e){if(e!==Yi)return!1;if(!Zi)return ra(e),Zi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||vp(e.type,e.memoizedProps)),n=!n),n&&Xi&&ta(e),ra(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Xi=gm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Xi=gm(e)}else t===27?(t=Xi,Dp(e.type)?(e=hm,hm=null,Xi=e):Xi=t):Xi=Yi?mm(e.stateNode.nextSibling):null;return!0}function aa(){Xi=Yi=null,Zi=!1}function oa(){var e=Qi;return e!==null&&(md===null?md=e:md.push.apply(md,e),Qi=null),e}function sa(e){Qi===null?Qi=[e]:Qi.push(e)}var ca=ue(null),la=null,ua=null;function da(e,t,n){fe(ca,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=ca.current,de(ca)}function pa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ma(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),pa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),pa(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),pa(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ha(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Nr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ge.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[fh]:e.push(fh))}a=a.return}return e!==null&&ma(t,e,n,r),t.flags|=262144,e!==null}function ga(e){for(e=e.firstContext;e!==null;){if(!Nr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){la=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function va(e){return ba(la,e)}function ya(e,t){return la===null&&_a(e),ba(e,t)}function ba(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ua===null){if(e===null)throw Error(i(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return n}var xa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Sa=t.unstable_scheduleCallback,Ca=t.unstable_NormalPriority,wa={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ta(){return{controller:new xa,data:new Map,refCount:0}}function Ea(e){e.refCount--,e.refCount===0&&Sa(Ca,function(){e.controller.abort()})}function Da(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Oa=null;function ka(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Aa=null,ja=0,Ma=0,Na=null;function Pa(e,t){if(Aa===null){var n=Aa=[];ja=0,Ma=Lf(),Na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ja++,t.then(Fa,Fa),t}function Fa(){if(--ja===0&&(Oa=null,Aa!==null)){Na!==null&&(Na.status=`fulfilled`);var e=Aa;Aa=null,Ma=0,Na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ia(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var La=H.S;H.S=function(e,t){if(_d=Me(),typeof t==`object`&&t&&typeof t.then==`function`&&Pa(e,t),Oa!==null)for(var n=Cf;n!==null;)Da(n,Oa),n=n.next;if(n=e.types,n!==null){for(var r=Cf;r!==null;)Da(r,n),r=r.next;if(Ma!==0){r=Oa,r===null&&(r=Oa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}La!==null&&La(e,t)};var Ra=ue(null);function za(){var e=Ra.current;return e===null?Qu.pooledCache:e}function Ba(e,t){t===null?fe(Ra,Ra.current):fe(Ra,t.pool)}function Va(){var e=za();return e===null?null:{parent:wa._currentValue,pool:e}}var Ha=Error(i(460)),Ua=Error(i(474)),Wa=Error(i(542)),Ga={then:function(){}};function Ka(e){return e=e.status,e===`fulfilled`||e===`rejected`}function qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(un,un),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Za(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(un,un);else{if(e=Qu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Za(e),e}throw Ya=t,Ha}}function Ja(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ya=e,Ha):e}}var Ya=null;function Xa(){if(Ya===null)throw Error(i(459));var e=Ya;return Ya=null,e}function Za(e){if(e===Ha||e===Wa)throw Error(i(483))}var Qa=null,$a=0;function eo(e){var t=$a;return $a+=1,Qa===null&&(Qa=[]),qa(Qa,e,t)}function to(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function no(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ro(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ei(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ai(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),to(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===I&&Ja(i)===t.type)?(t=a(t,n.props),to(t,n),t.return=e,t):(t=Oi(n.type,n.key,n.props,null,e.mode,r),to(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ki(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ai(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Oi(t.type,t.key,t.props,null,e.mode,n),to(n,t),n.return=e,n;case D:return t=Mi(t,e.mode,n),t.return=e,t;case I:return t=Ja(t),f(e,t,n)}if(ae(t)||V(t))return t=ki(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,eo(t),n);if(t.$$typeof===M)return f(e,ya(e,t),n);no(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case I:return n=Ja(n),p(e,t,n,r)}if(ae(n)||V(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,eo(n),r);if(n.$$typeof===M)return p(e,t,ya(e,n),r);no(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case I:return r=Ja(r),m(e,t,n,r,i)}if(ae(r)||V(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,eo(r),i);if(r.$$typeof===M)return m(e,t,n,ya(t,r),i);no(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Zi&&Wi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Zi&&Wi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Zi&&Wi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Zi&&Wi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Zi&&Wi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Zi&&Wi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),to(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===I&&Ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),to(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=ki(o.props.children,e.mode,c,o.key),to(c,o),c.return=e,e=c):(c=Oi(o.type,o.key,o.props,null,e.mode,c),to(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Mi(o,e.mode,c),c.return=e,e=c}return s(e);case I:return o=Ja(o),_(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(V(o)){if(l=V(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,eo(o),c);if(o.$$typeof===M)return _(e,r,ya(e,o),c);no(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ai(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{$a=0;var i=_(e,t,n,r);return Qa=null,i}catch(t){if(t===Ha||t===Wa)throw t;var a=wi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var io=ro(!0),ao=ro(!1),oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=xi(e),bi(e,null,n),t}return _i(e,r,t,n),xi(e)}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mo=!1;function ho(){if(mo){var e=Na;if(e!==null)throw e}}function go(e,t,n,r){mo=!1;var i=e.updateQueue;oo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(ed&f)===f:(r&f)===f){f!==0&&f===Ma&&(mo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:oo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cd|=o,e.lanes=o,e.memoizedState=d}}function _o(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function vo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_o(n[e],t)}var yo=ue(null),bo=ue(0);function xo(e,t){e=od,fe(bo,e),fe(yo,t),od=e|t.baseLanes}function So(){fe(bo,od),fe(yo,yo.current)}function Co(){od=bo.current,de(yo),de(bo)}var wo=ue(null),To=null;function Eo(e){var t=e.alternate;fe(jo,jo.current&1),fe(wo,e),To===null&&(t===null||yo.current!==null||t.memoizedState!==null)&&(To=e)}function Do(e){fe(jo,jo.current),fe(wo,e),To===null&&(To=e)}function Oo(e){e.tag===22?(fe(jo,jo.current),fe(wo,e),To===null&&(To=e)):ko()}function ko(){fe(jo,jo.current),fe(wo,wo.current)}function Ao(e){de(wo),To===e&&(To=null),de(jo)}var jo=ue(0);function Mo(e,t){fe(wo,wo.current),fe(jo,t)}function No(e){de(jo),de(wo),To===e&&(To=null)}function Po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dm(n)||fm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fo=0,Io=null,Lo=null,Ro=null,zo=!1,Bo=!1,Vo=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){throw Error(i(321))}function qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,a){return Fo=a,Io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?dc:fc,Vo=!1,a=n(r,i),Vo=!1,Bo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){H.H=uc;var t=Lo!==null&&Lo.next!==null;if(Fo=0,Ro=Lo=Io=null,zo=!1,Uo=0,Wo=null,t)throw Error(i(300));e===null||kc||(e=e.dependencies,e!==null&&ga(e)&&(kc=!0))}function Xo(e,t,n,r){Io=e;var a=0;do{if(Bo&&(Wo=null),Uo=0,Bo=!1,25<=a)throw Error(i(301));if(a+=1,Ro=Lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}H.H=pc,o=t(n,r)}while(Bo);return o}function Zo(){var e=H.H,t=e.useState()[0];return t=typeof t.then==`function`?is(t):t,e=e.useState()[0],(Lo===null?null:Lo.memoizedState)!==e&&(Io.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}Fo=0,Ro=Lo=Io=null,Bo=!1,Uo=Ho=0,Wo=null}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function ns(){if(Lo===null){var e=Io.alternate;e=e===null?null:e.memoizedState}else e=Lo.next;var t=Ro===null?Io.memoizedState:Ro.next;if(t!==null)Ro=t,Lo=e;else{if(e===null)throw Io.alternate===null?Error(i(467)):Error(i(310));Lo=e,e={memoizedState:Lo.memoizedState,baseState:Lo.baseState,baseQueue:Lo.baseQueue,queue:Lo.queue,next:null},Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=qa(Wo,e,t),t=Io,(Ro===null?t.memoizedState:Ro.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?dc:fc),e}function as(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return is(e);if(e.$$typeof===z)return;if(e.$$typeof===M)return va(e)}throw Error(i(438,String(e)))}function os(e){var t=null,n=Io.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Io.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=rs(),Io.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=L;return t.index++,n}function ss(e,t){return typeof t==`function`?t(e):t}function cs(e){return ls(ns(),Lo,e)}function ls(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Fo&f)===f:(ed&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ma&&(d=!0);else if((Fo&p)===p){u=u.next,p===Ma&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Io.lanes|=p,cd|=p;f=u.action,Vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Io.lanes|=f,cd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Nr(o,e.memoizedState)&&(kc=!0,d&&(n=Na,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function us(e){var t=ns(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Nr(o,t.memoizedState)||(kc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ds(e,t,n){var r=Io,a=ns(),o=Zi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Nr((Lo||a).memoizedState,n);if(s&&(a.memoizedState=n,kc=!0),a=a.queue,Is(ms.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ro!==null&&!!(Ro.memoizedState.tag&1),js(e?9:8,{destroy:void 0},ps.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(i(349));o||Fo&127||fs(r,t,n)}return n}function fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Io.updateQueue,t===null?(t=rs(),Io.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ps(e,t,n,r){t.value=n,t.getSnapshot=r,hs(t)&&gs(e)}function ms(e,t,n){return n(function(){hs(t)&&gs(e)})}function hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nr(e,n)}catch{return!0}}function gs(e){var t=yi(e,2);t!==null&&Id(t,e,2)}function _s(e){var t=ts();if(typeof e==`function`){var n=e;if(e=n(),Vo){Ue(!0);try{n()}finally{Ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:e},t}function vs(e,t,n,r){return e.baseState=n,ls(e,Lo,typeof r==`function`?r:ss)}function ys(e,t,n,r,a){if(sc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};H.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,bs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function bs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=H.T,o={};o.types=a===null?null:a.types,H.T=o;try{var s=n(i,r),c=H.S;c!==null&&c(o,s),xs(e,t,s)}catch(n){Cs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),H.T=a}}else try{a=n(i,r),xs(e,t,a)}catch(n){Cs(e,t,n)}}function xs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ss(e,t,n)},function(n){return Cs(e,t,n)}):Ss(e,t,n)}function Ss(e,t,n){t.status=`fulfilled`,t.value=n,ws(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bs(e,n)))}function Cs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ws(t),t=t.next;while(t!==r)}e.action=null}function ws(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ts(e,t){return t}function Es(e,t){if(Zi){var n=Qu.formState;if(n!==null){a:{var r=Io;if(Zi){if(Xi){b:{for(var i=Xi,a=$i;i.nodeType!==8;)if(!a||(i=mm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Xi=mm(i.nextSibling),r=i.data===`F!`;break a}}ta(r)}r=!1}r&&(t=n[0])}}return n=ts(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:t},n.queue=r,n=ic.bind(null,Io,r),r.dispatch=n,r=_s(!1),a=oc.bind(null,Io,!1,r.queue),r=ts(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ys.bind(null,Io,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ds(e){return Os(ns(),Lo,e)}function Os(e,t,n){if(t=ls(e,t,Ts)[0],e=cs(ss)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=is(t)}catch(e){throw e===Ha?Wa:e}else r=t;t=ns();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Io.flags|=2048,js(9,{destroy:void 0},ks.bind(null,i,n),null)),[r,a,e]}function ks(e,t){e.action=t}function As(e){var t=ns(),n=Lo;if(n!==null)return Os(t,n,e);ns(),t=t.memoizedState,n=ns();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function js(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Io.updateQueue,t===null&&(t=rs(),Io.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ms(){return ns().memoizedState}function Ns(e,t,n,r){var i=ts();Io.flags|=e,i.memoizedState=js(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ps(e,t,n,r){var i=ns();r=r===void 0?null:r;var a=i.memoizedState.inst;Lo!==null&&r!==null&&qo(r,Lo.memoizedState.deps)?i.memoizedState=js(t,a,n,r):(Io.flags|=e,i.memoizedState=js(1|t,a,n,r))}function Fs(e,t){Ns(8390656,8,e,t)}function Is(e,t){Ps(2048,8,e,t)}function Ls(e){Io.flags|=4;var t=Io.updateQueue;if(t===null)t=rs(),Io.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rs(e){var t=ns().memoizedState;return Ls({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function zs(e,t){return Ps(4,2,e,t)}function Bs(e,t){return Ps(4,4,e,t)}function Vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hs(e,t,n){n=n==null?null:n.concat([e]),Ps(4,4,Vs.bind(null,t,e),n)}function Us(){}function Ws(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),Vo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r}function Ks(e,t,n){return n===void 0||Fo&1073741824&&!(ed&261930)?e.memoizedState=t:(e.memoizedState=n,e=Pd(),Io.lanes|=e,cd|=e,n)}function qs(e,t,n,r){return Nr(n,t)?n:yo.current===null?!(Fo&106)||Fo&1073741824&&!(ed&261930)?(kc=!0,e.memoizedState=n):(e=Pd(),Io.lanes|=e,cd|=e,t):(e=Ks(e,n,r),Nr(e,t)||(kc=!0),e)}function Js(e,t,n,r,i){var a=oe.p;oe.p=a!==0&&8>a?a:8;var o=H.T,s={};s.types=o===null?null:o.types,H.T=s,oc(e,!1,t,n);try{var c=i(),l=H.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ac(e,t,Ia(c,r),Nd(e)):ac(e,t,r,Nd(e))}catch(n){ac(e,t,{then:function(){},status:`rejected`,reason:n},Nd())}finally{oe.p=a,o!==null&&s.types!==null&&(o.types=s.types),H.T=o}}function Ys(){}function Xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Zs(e).queue;Js(e,a,t,se,n===null?Ys:function(){return Qs(e),n(r)})}function Zs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qs(e){var t=Zs(e);t.next===null&&(t=e.alternate.memoizedState),ac(e,t.next.queue,{},Nd())}function $s(){return va(fh)}function ec(){return ns().memoizedState}function tc(){return ns().memoizedState}function nc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nd();e=lo(n);var r=uo(t,e,n);r!==null&&(Id(r,t,n),fo(r,t,n)),t={cache:Ta()},e.payload=t;return}t=t.return}}function rc(e,t,n){var r=Nd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)?cc(t,n):(n=vi(e,t,n,r),n!==null&&(Id(n,e,r),lc(n,t,r)))}function ic(e,t,n){ac(e,t,n,Nd())}function ac(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))cc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Nr(s,o))return _i(e,t,i,0),Qu===null&&gi(),!1}catch{}if(n=vi(e,t,i,r),n!==null)return Id(n,e,r),lc(n,t,r),!0}return!1}function oc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(i(479))}else t=vi(e,n,r,2),t!==null&&Id(t,e,2)}function sc(e){var t=e.alternate;return e===Io||t!==null&&t===Io}function cc(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var uc={readContext:va,use:as,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},dc={readContext:va,use:as,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:Fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ns(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(Vo){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(Vo){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=rc.bind(null,Io,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,n=ic.bind(null,Io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Us,useDeferredValue:function(e,t){return Ks(ts(),e,t)},useTransition:function(){var e=_s(!1);return e=Js.bind(null,Io,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Io,a=ts();if(Zi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));ed&127||fs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Fs(ms.bind(null,r,o,e),[e]),r.flags|=2048,js(9,{destroy:void 0},ps.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=Qu.identifierPrefix;if(Zi){var n=Ui,r=Hi;n=(r&~(1<<32-W(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:$s,useFormState:Es,useActionState:Es,useOptimistic:function(e){var t=ts();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,Io,!0,n),n.dispatch=t,[e,t]},useMemoCache:os,useCacheRefresh:function(){return ts().memoizedState=nc.bind(null,Io)},useEffectEvent:function(e){var t=ts(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:va,use:as,useCallback:Ws,useContext:va,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:cs,useRef:Ms,useState:function(){return cs(ss)},useDebugValue:Us,useDeferredValue:function(e,t){return qs(ns(),Lo.memoizedState,e,t)},useTransition:function(){var e=cs(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){return vs(ns(),Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs},pc={readContext:va,use:as,useCallback:Ws,useContext:va,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:us,useRef:Ms,useState:function(){return us(ss)},useDebugValue:Us,useDeferredValue:function(e,t){var n=ns();return Lo===null?Ks(n,e,t):qs(n,Lo.memoizedState,e,t)},useTransition:function(){var e=us(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:As,useActionState:As,useOptimistic:function(e,t){var n=ns();return Lo===null?(n.baseState=e,[e,n.queue.dispatch]):vs(n,Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs};function mc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=lo(r);i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Id(t,e,r),fo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=lo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Id(t,e,r),fo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nd(),r=lo(n);r.tag=2,t!=null&&(r.callback=t),t=uo(e,r,n),t!==null&&(Id(t,e,n),fo(t,e,n))}};function gc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(i,a):!0}function _c(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function vc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function yc(e){fi(e)}function bc(e){console.error(e)}function xc(e){fi(e)}function Sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){return n=lo(n),n.tag=3,n.payload={element:null},n.callback=function(){Sc(e,t)},n}function Tc(e){return e=lo(e),e.tag=3,e}function Ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Cc(t,n,r),typeof i!=`function`&&(bd===null?bd=new Set([this]):bd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Dc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ha(t,n,a,!0),n=wo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return To===null?Jd():n.alternate===null&&sd===0&&(sd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ga?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),_f(e,r,a)),!1;case 22:return n.flags|=65536,r===Ga?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),_f(e,r,a)),!1}throw Error(i(435,n.tag))}return _f(e,r,a),Jd(),!1}if(Zi)return t=wo.current,t===null?(r!==ea&&(t=Error(i(423),{cause:r}),sa(Pi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Pi(r,n),a=wc(e.stateNode,r,a),po(e,a),sd!==4&&(sd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ea&&(e=Error(i(422),{cause:r}),sa(Pi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Pi(o,n),pd===null?pd=[o]:pd.push(o),sd!==4&&(sd=2),t===null)return!0;r=Pi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=wc(n.stateNode,r,e),po(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(bd===null||!bd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Tc(a),Ec(a,e,n,r),po(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Oc=Error(i(461)),kc=!1;function Ac(e,t,n,r){t.child=e===null?ao(t,null,n,r):io(t,e.child,n,r)}function jc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return _a(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!kc?($o(e,t,i),al(e,t,i)):(Zi&&s&&Ki(t),t.flags|=1,Ac(e,t,r,i),t.child)}function Mc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Nc(e,t,a,r,i)):(e=Oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ol(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Pr:n,n(o,r)&&e.ref===t.ref)return al(e,t,i)}return t.flags|=1,e=Ei(a,r),e.ref=t.ref,e.return=t,t.child=e}function Nc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pr(a,r)&&e.ref===t.ref){if(kc=!1,t.pendingProps=r=a,ol(e,i))e.flags&131072&&(kc=!0);else return t.lanes=e.lanes,al(e,t,i)}}return Vc(e,t,n,r,i)}function Pc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ba(t,a===null?null:a.cachePool),a===null?So():xo(t,a),Oo(t);else return r=t.lanes=536870912,Ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ba(t,null),So(),ko()):(Ba(t,a.cachePool),xo(t,a),ko(),t.memoizedState=null);return Ac(e,t,i,n),t.child}function Fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ic(e,t,n,r,i){var a=za();return a=a===null?null:{parent:wa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ba(t,null),So(),Oo(t),e!==null&&ha(e,t,r,!0),t.childLanes=i,null}function Lc(e,t){return t=Xc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rc(e,t,n){return io(t,e.child,null,n),e=Lc(t,t.pendingProps),e.flags|=2,Ao(t),t.memoizedState=null,e}function zc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Zi){if(r.mode===`hidden`)return e=Lc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Fc(null,e);if(Do(t),(e=Xi)?(e=um(e,$i),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi===null?null:{id:Hi,overflow:Ui},retryLane:536870912,hydrationErrors:null},n=ji(e),n.return=t,t.child=n,Yi=t,Xi=null)):e=null,e===null)throw ta(t);return t.lanes=536870912,null}return Lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Do(t),a){if(t.flags&256)t.flags&=-257,t=Rc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(kc||ha(e,t,n,!1),a=(n&e.childLanes)!==0,kc||a){if(yo.current===null){if(r=Qu,r!==null&&(s=st(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,yi(e,s),Id(r,e,s),Oc;Jd()}t=Rc(e,t,n)}else e=o.treeContext,Xi=mm(s.nextSibling),Yi=t,Zi=!0,Qi=null,$i=!1,e!==null&&Ji(t,e),t=Lc(t,r),t.flags|=134221824;return t}return e=Ei(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Vc(e,t,n,r,i){return _a(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!kc?($o(e,t,i),al(e,t,i)):(Zi&&r&&Ki(t),t.flags|=1,Ac(e,t,n,i),t.child)}function Hc(e,t,n,r,i,a){return _a(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!kc?($o(e,t,a),al(e,t,a)):(Zi&&r&&Ki(t),t.flags|=1,Ac(e,t,n,a),t.child)}function Uc(e,t,n,r,i){if(_a(t),t.stateNode===null){var a=Si,o=n.contextType;typeof o==`object`&&o&&(a=va(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},so(t),o=n.contextType,a.context=typeof o==`object`&&o?va(o):Si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(mc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&hc.enqueueReplaceState(a,a.state,null),go(t,r,a,i),ho(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=vc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Si,typeof u==`object`&&u&&(o=va(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&_c(t,a,r,o),oo=!1;var f=t.memoizedState;a.state=f,go(t,r,a,i),ho(),l=t.memoizedState,s||f!==l||oo?(typeof d==`function`&&(mc(t,n,d,r),l=t.memoizedState),(c=oo||gc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,co(e,t),o=t.memoizedProps,u=vc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Si,typeof l==`object`&&l&&(c=va(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&_c(t,a,r,c),oo=!1,f=t.memoizedState,a.state=f,go(t,r,a,i),ho();var p=t.memoizedState;o!==d||f!==p||oo||e!==null&&e.dependencies!==null&&ga(e.dependencies)?(typeof s==`function`&&(mc(t,n,s,r),p=t.memoizedState),(u=oo||gc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ga(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Bc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=io(t,e.child,null,i),t.child=io(t,null,n,i)):Ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=al(e,t,i),e}function Wc(e,t,n,r){return aa(),t.flags|=256,Ac(e,t,n,r),t.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:Va()}}function qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dd),e}function Jc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(jo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Zi){if(i?Eo(t):ko(),(e=Xi)?(e=um(e,$i),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi===null?null:{id:Hi,overflow:Ui},retryLane:536870912,hydrationErrors:null},n=ji(e),n.return=t,t.child=n,Yi=t,Xi=null)):e=null,e===null)throw ta(t);return t.lanes=fm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(ko(),i=t.mode,a=Xc({mode:`hidden`,children:a},i),r=ki(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Kc(n),r.childLanes=qc(e,o,n),t.memoizedState=Gc,Fc(null,r)):(Eo(t),Yc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Qc(e,t,a,o,r,c,s,n)}return i?(ko(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ei(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ki(i,a,n,null),i.flags|=2):i=Ei(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Fc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Kc(n):(a=i.cachePool,a===null?a=Va():(s=wa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=qc(e,o,n),t.memoizedState=Gc,Fc(e.child,r)):(Eo(t),n=e.child,e=n.sibling,n=Ei(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Yc(e,t){return t=Xc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Xc(e,t){return e=wi(22,e,null,t),e.lanes=0,e}function Zc(e,t,n){return io(t,e.child,null,n),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Eo(t),t.flags&=-257,Zc(e,t,c)):t.memoizedState===null?(ko(),o=a.fallback,s=t.mode,a=Xc({mode:`visible`,children:a.children},s),o=ki(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,io(t,e.child,null,c),a=t.child,a.memoizedState=Kc(c),a.childLanes=qc(e,r,c),t.memoizedState=Gc,Fc(null,a)):(ko(),t.child=e.child,t.flags|=128,null);if(Eo(t),fm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,sa({value:a,source:null,stack:null})),Zc(e,t,c)}if(kc||ha(e,t,c,!1),r=(c&e.childLanes)!==0,kc||r){if(yo.current!==null)return Zc(e,t,c);if(r=Qu,r!==null&&(a=st(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,yi(e,a),Id(r,e,a),Oc;return dm(o)||Jd(),Zc(e,t,c)}return dm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Xi=mm(o.nextSibling),Yi=t,Zi=!0,Qi=null,$i=!1,e!==null&&Ji(t,e),t=Yc(t,a.children),t.flags|=134221824,t)}function $c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pa(e.return,t,n)}function el(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Po(n)===null&&(t=e),e=e.sibling}return t}function tl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function nl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=jo.current;if(t.flags&128)return Mo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Mo(t,o),i===`backwards`&&e!==null?(nl(e),Ac(e,t,r,n),nl(e)):Ac(e,t,r,n),r=Zi?Ri:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$c(e,n,t);else if(e.tag===19)$c(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=el(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,nl(t)),tl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tl(t,!0,n,null,a,r);break;case`together`:tl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=el(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tl(t,!1,i,n,a,r)}return t.child}function il(e,t,n){var r=t.pendingProps;return da(t,t.type,r.value),Ac(e,t,r.children,n),t.child}function al(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ol(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ga(e)))}function sl(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),da(t,wa,e.memoizedState.cache),aa();break;case 27:case 5:ye(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Do(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Eo(t),t.flags|=128,null;r=ha(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Jc(e,t,n):(Eo(t),e=al(e,t,n),e===null?null:e.sibling)}Eo(t);break;case 19:if(t.flags&128)return rl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ha(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return rl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mo(t,jo.current),r)break;return null;case 22:return t.lanes=0,Pc(e,t,n,t.pendingProps);case 24:da(t,wa,e.memoizedState.cache)}return al(e,t,n)}function cl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)kc=!0;else{if(!ol(e,n)&&!(t.flags&128))return kc=!1,sl(e,t,n);kc=!!(e.flags&131072)}}else kc=!1,Zi&&t.flags&1048576&&Gi(t,Ri,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ja(t.elementType),t.type=e,typeof e==`function`)Ti(e)?(r=vc(e,r),t.tag=1,t=Uc(null,t,e,r,n)):(t.tag=0,t=Vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=jc(null,t,e,r,n);break a}if(a===F){t.tag=14,t=Mc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=il(null,t,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=vc(r,t.pendingProps),Uc(e,t,r,a,n);case 3:a:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,co(e,t),go(t,r,null,n);var s=t.memoizedState;if(r=s.cache,da(t,wa,r),r!==o.cache&&ma(t,[wa],n,!0),ho(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Wc(e,t,r,n);break a}if(r!==a){a=Pi(Error(i(424)),t),sa(a),t=Wc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Xi=mm(e.firstChild),Yi=t,Zi=!0,Qi=null,$i=!0,n=ao(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(aa(),r===a){t=al(e,t,n);break a}Ac(e,t,r,n)}t=t.child}return t;case 26:return Bc(e,t),e===null?(n=Rm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Zi||(t.stateNode=_p(t.type,t.pendingProps,he.current,t)):t.memoizedState=Rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&Zi&&(r=t.stateNode=bm(t.type,t.pendingProps,he.current),Yi=t,$i=!0,a=Xi,Dp(t.type)?(hm=a,Xi=mm(r.firstChild)):Xi=a),Ac(e,t,t.pendingProps.children,n),Bc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Zi&&((a=r=Xi)&&(r=cm(r,t.type,t.pendingProps,$i),r===null?a=!1:(t.stateNode=r,Yi=t,Xi=mm(r.firstChild),$i=!1,a=!0)),a||ta(t)),ye(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,vp(a,o)?r=null:s!==null&&vp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Jo(e,t,Zo,null,null,n),fh._currentValue=a),Bc(e,t),Ac(e,t,r,n),t.child;case 6:return e===null&&Zi&&((e=n=Xi)&&(n=lm(n,t.pendingProps,$i),n===null?e=!1:(t.stateNode=n,Yi=t,Xi=null,e=!0)),e||ta(t)),null;case 13:return Jc(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):Ac(e,t,r,n),t.child;case 11:return jc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Bc(e,t),Ac(e,t,r,n),t.child;case 8:return Ac(e,t,t.pendingProps.children,n),t.child;case 12:return Ac(e,t,t.pendingProps.children,n),t.child;case 10:return il(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),a=va(a),r=r(a),t.flags|=1,Ac(e,t,r,n),t.child;case 14:return Mc(e,t,t.type,t.pendingProps,n);case 15:return Nc(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return zc(e,t,n);case 22:return Pc(e,t,n,t.pendingProps);case 24:return _a(t),r=va(wa),e===null?(a=za(),a===null&&(a=Qu,o=Ta(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},so(t),da(t,wa,a)):((e.lanes&n)!==0&&(co(e,t),go(t,null,null,n),ho()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,da(t,wa,r),r!==a.cache&&ma(t,[wa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),da(t,wa,r))),Ac(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Zi&&Ki(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Bc(e,t),Ac(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ll(e){e.flags|=4}function ul(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?$m(t,r):$m(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Gd())e.flags|=8192;else throw Ya=Ga,Ua}}else e.flags&=-16777217}function dl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!eh(t)){if(Gd())e.flags|=8192;else throw Ya=Ga,Ua}}function fl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:et(),e.lanes|=t,fd|=t)}function pl(e,t){if(!Zi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ml(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hl(e,t,n){var r=t.pendingProps;switch(qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ml(t),null;case 1:return ml(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fa(wa),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ia(t)?ll(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oa())),ml(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ll(t),o===null?(ml(t),ul(t,a,null,r,n)):(ml(t),dl(t,o))):o?o===e.memoizedState?(ml(t),t.flags&=-16777217):(ll(t),ml(t),dl(t,o)):(e=e.memoizedProps,e!==r&&ll(t),ml(t),ul(t,a,e,r,n)),null;case 27:if(be(t),n=he.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ml(t),t.subtreeFlags&=-33554433,null}e=pe.current,ia(t)?na(t,e):(e=bm(a,r,n),t.stateNode=e,ll(t))}return ml(t),t.subtreeFlags&=-33554433,null;case 5:if(be(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ml(t),t.subtreeFlags&=-33554433,null}if(o=pe.current,ia(t))na(t,o);else{var s=mp(he.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[K]=t,o[q]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(sp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ll(t)}}return ml(t),t.subtreeFlags&=-33554433,ul(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=he.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Yi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[K]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ip(e.nodeValue,n)),e||ta(t,!0)}else e=mp(e).createTextNode(r),e[K]=t,t.stateNode=e}return ml(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ia(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[K]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),e=!1}else n=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ao(t),t):(Ao(t),null);if(t.flags&128)throw Error(i(558))}return ml(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[K]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),a=!1}else a=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ao(t),t):(Ao(t),null)}return Ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),ml(t),null);case 4:return ve(),e===null&&Jf(t.stateNode.containerInfo),t.flags|=67108864,ml(t),null;case 10:return fa(t.type),ml(t),null;case 19:if(No(t),r=t.memoizedState,r===null)return ml(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)pl(r,!1);else{if(sd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Po(e),o!==null){for(t.flags|=128,pl(r,!1),e=o.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Di(n,e),n=n.sibling;return Mo(t,jo.current&1|2),Zi&&Wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>vd&&(t.flags|=128,a=!0,pl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Zi)return ml(t),null}else 2*Me()-r.renderingStartTime>vd&&n!==536870912&&(t.flags|=128,a=!0,pl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,o=jo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Zi?Mo(t,o):(n=o,fe(wo,t),fe(jo,n),To===null&&(To=t)),Zi&&Wi(t,r.treeForkCount),e}return ml(t),null;case 22:case 23:return Ao(t),Co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ml(t),t.subtreeFlags&6&&(t.flags|=8192)):ml(t),n=t.updateQueue,n!==null&&fl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&de(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(wa),ml(t),null;case 25:return null;case 30:return t.flags|=33554432,ml(t),null}throw Error(i(156,t.tag))}function gl(e,t){switch(qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(wa),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return No(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ve(),null;case 10:return fa(t.type),null;case 22:case 23:return Ao(t),Co(),e!==null&&de(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(wa),null;case 25:return null;default:return null}}function _l(e,t){switch(qi(t),t.tag){case 3:fa(wa),ve();break;case 26:case 27:case 5:be(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:No(t);break;case 10:fa(t.type);break;case 22:case 23:Ao(t),Co(),e!==null&&de(Ra);break;case 24:fa(wa)}}function vl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){gf(t,t.return,e)}}function yl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){gf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){gf(t,t.return,e)}}function bl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{vo(t,n)}catch(t){gf(e,e.return,t)}}}function xl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function Sl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=li(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);f(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){gf(e,t,n)}}function Cl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){gf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){gf(e,t,n)}else n.current=null}}function J(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function wl(e){for(var t=e.return;t!==null&&(Dl(t)&&am(e.stateNode,t.stateNode),!El(t));)t=t.return}function Tl(e){for(var t=e.return;t!==null&&(Dl(t)&&om(e.stateNode,t.stateNode),!El(t));)t=t.return}function El(e){return e.tag===5||e.tag===3||e.tag===27}function Dl(e){return e&&e.tag===7&&e.stateNode!==null}function Ol(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){gf(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;lp(r,e.type,n,t),r[q]=t}catch(t){gf(e,e.return,t)}}function Al(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dp(e.type)||e.tag===4}function jl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=un)),J(e,r),Lt=!0;else if(i!==4&&(i===27&&(J(e,r),r=null,Dp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),J(e,r),Lt=!0;else if(i!==4&&(i===27&&(J(e,r),r=null,Dp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);sp(t,r,n),t[K]=e,t[q]=n}catch(t){gf(e,e.return,t)}}var Fl=!1,Il=null;function Ll(e){(e.tag===30||e.subtreeFlags&33554432)&&(Fl=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Np(o);r.push(s),s.view&&(a=!0)}else a||Np(o).view&&(a=!0);Fl=!0,Ap(o,Bl===0?t:t+`_`+Bl,n),Bl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?jp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Ul(e.child,t),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=di(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=li(r,n),a=di(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Fd(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Il!==null&&Il.size!==0){var t=Il;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=di(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Fd(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=li(t,e.stateNode),r=Il===null?void 0:Il.get(n),i=di(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Fd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Il.delete(n),Fd(e,t.onShare)):Ul(e.child,!1)),Il!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Il!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=li(t,e.stateNode);t=di(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=Np(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ap(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=li(n,r),a=di(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Pp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Fd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,fp=xh,e=zr(e),Br(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(pp={focusedElem:e,selectionRange:r},xh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Ll(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ll(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Il=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=vc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){gf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=li(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=di(a.default,a.update),a!==`none`&&Vl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&vl(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){gf(n,n.return,e)}else{var i=vc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){gf(n,n.return,e)}}}r&64&&bl(n),r&512&&Sl(n,n.return);break;case 3:if(Mu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{vo(e,t)}catch(e){gf(n,n.return,e)}}break;case 27:t===null&&r&4&&Pl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Ol(n),r&512&&Sl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bf.bind(null,n),pm(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&Sl(n,n.return);break;case 7:r&512&&Sl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){gf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Lt=!0}catch(t){gf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?kp(s,!0):kp(e.stateNode,!1)}catch(t){gf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(He&&typeof He.onCommitFiberUnmount==`function`)try{He.onCommitFiberUnmount(Ve,n)}catch{}switch(n.tag){case 26:tu||Cl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Cl(n,t),Tl(n);var r=_u,i=vu;Dp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),xm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Cl(n,t),Tl(n);case 6:if(n.tag===6&&Tl(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Lt=!0}catch(e){gf(n,t,e)}else try{_u.removeChild(n.stateNode),Lt=!0}catch(e){gf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Op(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),qh(e)):Op(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:yl(2,n,t),tu||yl(4,n,t),yu(e,t,n);break;case 1:tu||(Cl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&xl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Cl(n,t),yu(e,t,n);break;case 7:tu||Cl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qh(e)}catch(e){gf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qh(e)}catch(e){gf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Dp(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),a&4&&(yl(3,e,e.return),vl(3,e),yl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Cl(r,r.return)),a&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Cl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=_p(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[bt]||r[K]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),sp(r,t,n),r[K]=e,Dt(r),t=r;break a;case`link`:if(o=Xm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),sp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Xm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),sp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[K]=e,Dt(r),t=r}e.stateNode=t}}else eu||Zm(o,e.type,e.stateNode)}else e.stateNode=Gm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&kl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Zm(o,e.type,e.stateNode):Gm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Cl(r,r.return)),r!==null&&a&4&&kl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||Cl(r,r.return)),e.flags&32){t=e.stateNode;try{tn(t,``),Lt=!0}catch(t){gf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Lt=!0}catch(t){gf(e,e.return,t)}}break;case 3:if(Lt=!1,Ym=null,o=Eu,Eu=Tm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{qh(t.containerInfo)}catch(t){gf(e,e.return,t)}ru&&(ru=!1,ku(e)),Lt=!1;break;case 4:a=nu,nu=eu,r=Rt(),o=Eu,Eu=Tm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Lt&&su&&(cu=!0),Lt=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gd=Me()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||Cl(r,r.return)),a=Rt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&di(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Lt&&(e.flags|=4),su=o,Lt=a;break;case 21:break;case 7:a&512&&(tu||r===null||Cl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Al(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Dl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(El(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Nl(e,jl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(tn(l,``),n.flags&=-33),Nl(e,jl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ml(e,jl(e),u,s);break;default:throw Error(i(161))}}catch(t){gf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,xh=!0,t.reset(),xh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];jp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=li(a,o),o=li(n.memoizedProps,o);var s=di(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Fd(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),Nu(n,r);break;case 1:Cl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&xl(n,n.return,i),Nu(n,r);break;case 27:r&2&&xm(n.stateNode,n.type,n.memoizedProps);case 5:Cl(n,n.return),n.tag!==5&&n.tag!==27||Tl(n),Nu(n,r);break;case 6:Tl(n);break;case 26:Cl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Cl(n,n.return),Nu(n,r);break;case 7:Cl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),vl(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){gf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)_o(l[i],c)}catch(e){gf(r,r.return,e)}}s&&o&64&&bl(a),Sl(a,a.return);break;case 27:n&2&&Pl(a);case 5:a.tag!==5&&a.tag!==27||wl(a),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),Sl(a,a.return);break;case 6:wl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Zm(Tm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),Sl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),Sl(a,a.return);break;case 30:Pu(i,a,n),Sl(a,a.return);break;case 7:Sl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ea(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ea(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&vl(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ea(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){gf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zu(a,o,s,c,i),vl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&nh(n,e)):rh(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&nh(n,e));break;case 3:case 4:var r=Eu;Eu=Tm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Il===null&&(Il=new Map),Il.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&yl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ea(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=va(wa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return va(wa).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,$u=null,ed=0,td=0,nd=null,rd=!1,id=!1,ad=!1,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=null,md=null,hd=!1,gd=0,_d=0,vd=1/0,yd=null,bd=null,xd=0,Sd=null,Cd=null,wd=0,Td=0,Ed=null,Dd=null,Od=null,kd=null,Ad=null,jd=0,Md=null;function Nd(){return Zu&2&&ed!==0?ed&-ed:H.T===null?ft():Lf()}function Pd(){if(dd===0){if(!(ed&536870912)||Zi){var e=G;G<<=1,!(G&3932160)&&(G=262144),dd=e}else dd=536870912}return e=wo.current,e!==null&&(e.flags|=32),dd}function Fd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=zp(li(e.memoizedProps,n))),kd===null&&(kd=[]),kd.push(t.bind(null,r))}}function Id(e,t,n){(e===Qu&&(td===2||td===9)||e.cancelPendingCommit!==null)&&(Ud(e,0),Bd(e,ed,dd,!1)),nt(e,n),Zu&2&&e===Qu||(e===Qu&&(!(Zu&2)&&(ld|=n),sd===4&&Bd(e,ed,dd,!1)),kf(e))}function Ld(e,t,n){if(Zu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Zd(e,t):Yd(e,t,!0),o=r;do{if(a===0){id&&!r&&Bd(e,t,0,!1);break}if(n=e.current.alternate,o&&!zd(n))a=Yd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=pd;var l=c.current.memoizedState.isDehydrated;if(l&&(Ud(c,s).flags|=256),s=Yd(c,s,!1),s!==2&&s!==6){if(ad&&!l){c.errorRecoveryDisabledLanes|=o,ld|=o,a=4;break a}o=md,md=a,o!==null&&(md===null?md=o:md.push.apply(md,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ud(e,0),Bd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Bd(r,t,dd,!rd);break a;case 2:md=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=gd+300-Me(),10<a)){if(Bd(r,t,dd,!rd),Xe(r,0,!0)!==0)break a;wd=t,r.timeoutHandle=xp(Rd.bind(null,r,n,md,yd,hd,t,dd,ld,fd,rd,o,`Throttled`,-0,0),a);break a}Rd(r,n,md,yd,hd,t,dd,ld,fd,rd,o,null,-0,0)}break}}while(1);kf(e)}function Rd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},Il=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=sh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?gd-Me():(a&4194048)===a?_d-Me():0,m=ah(d,m),m!==null)?(wd=a,e.cancelPendingCommit=m(af.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Bd(e,a,o,!l)):af(e,t,a,n,r,i,o,s,c,l,u,d)}function zd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Nr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bd(e,t,n,r){t=Qe(e,t),t&=~ud,t&=~ld,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-W(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&it(e,n,t)}function Vd(){return Zu&6?!0:(Af(0,!1),!1)}function Hd(){if($u!==null){if(td===0)var e=$u.return;else e=$u,ua=la=null,es(e),Qa=null,$a=0,e=$u;for(;e!==null;)_l(e.alternate,e),e=e.return;$u=null}}function Ud(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Sp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wd=0,Hd(),Qu=e,$u=n=Ei(e.current,null),ed=t,td=0,nd=null,rd=!1,id=Ze(e,t),ad=!1,fd=dd=ud=ld=cd=sd=0,md=pd=null,hd=!1,od=Qe(e,t),gi(),n}function Wd(e,t){Io=null,H.H=uc,t===Ha||t===Wa?(t=Xa(),td=3):t===Ua?(t=Xa(),td=4):td=t===Oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,nd=t,$u===null&&(sd=1,Sc(e,Pi(t,e.current)))}function Gd(){var e=wo.current;return e===null?!0:(ed&4194048)===ed?To===null:(ed&62914560)===ed||ed&536870912?e===To:!1}function Kd(){var e=H.H;return H.H=uc,e===null?uc:e}function qd(){var e=H.A;return H.A=Yu,e}function Jd(){sd=4,rd||(ed&4194048)!==ed&&wo.current!==null||(id=!0),!(cd&134217727)&&!(ld&134217727)||Qu===null||Bd(Qu,ed,dd,!1)}function Yd(e,t,n){var r=Zu;Zu|=2;var i=Kd(),a=qd();(Qu!==e||ed!==t)&&(yd=null,Ud(e,t)),t=!1;var o=sd;a:do try{if(td!==0&&$u!==null){var s=$u,c=nd;switch(td){case 8:Hd(),o=6;break a;case 3:case 2:case 9:case 6:wo.current===null&&(t=!0);var l=td;if(td=0,nd=null,tf(e,s,c,l),n&&id){o=0;break a}break;default:l=td,td=0,nd=null,tf(e,s,c,l)}}Xd(),o=sd;break}catch(t){Wd(e,t)}while(1);return t&&e.shellSuspendCounter++,ua=la=null,Zu=r,H.H=i,H.A=a,$u===null&&(Qu=null,ed=0,gi()),o}function Xd(){for(;$u!==null;)$d($u)}function Zd(e,t){var n=Zu;Zu|=2;var r=Kd(),a=qd();Qu!==e||ed!==t?(yd=null,vd=Me()+500,Ud(e,t)):id=Ze(e,t);a:do try{if(td!==0&&$u!==null){t=$u;var o=nd;b:switch(td){case 1:td=0,nd=null,tf(e,t,o,1);break;case 2:case 9:if(Ka(o)){td=0,nd=null,ef(t);break}t=function(){td!==2&&td!==9||Qu!==e||(td=7),kf(e)},o.then(t,t);break a;case 3:td=7;break a;case 4:td=5;break a;case 7:Ka(o)?(td=0,nd=null,ef(t)):(td=0,nd=null,tf(e,t,o,7));break;case 5:var s=null;switch($u.tag){case 26:s=$u.memoizedState;case 5:case 27:var c=$u;if(s?eh(s):c.stateNode.complete){td=0,nd=null;var l=c.sibling;if(l!==null)$u=l;else{var u=c.return;u===null?$u=null:($u=u,nf(u))}break b}}td=0,nd=null,tf(e,t,o,5);break;case 6:td=0,nd=null,tf(e,t,o,6);break;case 8:Hd(),sd=6;break a;default:throw Error(i(462))}}Qd();break}catch(t){Wd(e,t)}while(1);return ua=la=null,H.H=r,H.A=a,Zu=n,$u===null?(Qu=null,ed=0,gi(),sd):0}function Qd(){for(;$u!==null&&!Ae();)$d($u)}function $d(e){var t=cl(e.alternate,e,od);e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function ef(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hc(n,t,t.pendingProps,t.type,void 0,ed);break;case 11:t=Hc(n,t,t.pendingProps,t.type.render,t.ref,ed);break;case 5:es(t);var r=t;r===Yi&&(Zi?(ra(r),r.tag===5&&r.stateNode!=null&&(Xi=r.stateNode)):(ra(r),Zi=!0));default:_l(n,t),t=$u=Di(t,od),t=cl(n,t,od)}e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function tf(e,t,n,r){ua=la=null,es(t),Qa=null,$a=0;var i=t.return;try{if(Dc(e,i,t,n,ed)){sd=1,Sc(e,Pi(n,e.current)),$u=null;return}}catch(t){if(i!==null)throw $u=i,t;sd=1,Sc(e,Pi(n,e.current)),$u=null;return}t.flags&32768?(Zi||r===1?e=!0:id||ed&536870912?e=!1:(rd=e=!0,(r===2||r===9||r===3||r===6)&&(r=wo.current,r!==null&&r.tag===13&&(r.flags|=16384))),rf(t,e)):nf(t)}function nf(e){var t=e;do{if(t.flags&32768){rf(t,rd);return}e=t.return;var n=hl(t.alternate,t,od);if(n!==null){$u=n;return}if(t=t.sibling,t!==null){$u=t;return}$u=t=e}while(t!==null);sd===0&&(sd=5)}function rf(e,t){do{var n=gl(e.alternate,e);if(n!==null){n.flags&=32767,$u=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$u=e;return}$u=e=n}while(e!==null);sd=6,$u=null}function af(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do pf();while(xd!==0);if(Zu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Qu&&($u=Qu=null,ed=0),Cd=t,Sd=e,wd=n,Ed=a,Dd=r,of(e,t,n,s,c,l,f)}}function of(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Td=s,s|=hi,rt(e,n,s,r,i,a),kd=null,(n&335544064)===n?(Ad=ka(e),r=10262):(Ad=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Sf(Ie,function(){return mf(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=H.T,H.T=null,i=oe.p,oe.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,oe.p=i,H.T=r}}xd=1,Fl?Od=Lp(o,e.containerInfo,Ad,lf,uf,cf,df,mf,sf,null,null):(lf(),uf(),df())}function sf(e){if(xd!==0){var t=Sd.onRecoverableError;t(e,{componentStack:null})}}function cf(){xd===3&&(xd=0,ju(Cd,Sd),xd=4)}function lf(){if(xd===1){xd=0;var e=Sd,t=Cd,n=wd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=H.T,H.T=null;var i=oe.p;oe.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=pp;var o=zr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Rr(s.ownerDocument.documentElement,s)){if(c!==null&&Br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Lr(s,h),v=Lr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}xh=!!fp,pp=fp=null}finally{Zu=a,oe.p=i,H.T=r}}e.current=t,xd=2}}function uf(){if(xd===2){xd=0;var e=Sd,t=Cd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=H.T,H.T=null;var r=oe.p;oe.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,oe.p=r,H.T=n}}xd=3}}function df(){if(xd===4||xd===3){xd=0;var e=Od;Od=null,je();var t=Sd,n=Cd,r=wd,i=Dd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?xd=5:(xd=0,Cd=Sd=null,ff(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(bd=null),dt(r),n=n.stateNode,He&&typeof He.onCommitFiberRoot==`function`)try{He.onCommitFiberRoot(Ve,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=H.T,a=oe.p,oe.p=2,H.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{H.T=n,oe.p=a}}if(i=kd,o=Ad,Ad=null,i!==null&&(kd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);wd&3&&pf(),kf(t),a=t.pendingLanes,r&261930&&a&42?t===Md?jd++:(jd=0,Md=t):(jd=0,Md=null),Af(0,!1)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ea(t)))}function pf(){return Od!==null&&(Od.skipTransition(),Od=null),lf(),uf(),df(),mf()}function mf(){if(xd!==5)return!1;var e=Sd,t=Td;Td=0;var n=dt(wd),r=H.T,a=oe.p;try{oe.p=32>n?32:n,H.T=null,n=Ed,Ed=null;var o=Sd,s=wd;if(xd=0,Cd=Sd=null,wd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Af(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{oe.p=a,H.T=r,ff(e,t)}}function hf(e,t,n){t=Pi(n,t),t=wc(e.stateNode,t,2),e=uo(e,t,2),e!==null&&(nt(e,2),kf(e))}function gf(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(bd===null||!bd.has(r))){e=Pi(n,e),n=Tc(2),r=uo(t,n,2),r!==null&&(Ec(n,r,t,e),nt(r,2),kf(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ad=!0,i.add(n),e=vf.bind(null,e,t,n),t.then(e,e))}function vf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(ed&n)===n&&(sd===4||sd===3&&(ed&62914560)===ed&&300>Me()-gd?Zu&2?ud|=n:Ud(e,0):ud|=n,fd===ed&&(fd=0)),kf(e)}function yf(e,t){t===0&&(t=et()),e=yi(e,t),e!==null&&(nt(e,t),kf(e))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yf(e,n)}function xf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),yf(e,n)}function Sf(e,t){return Oe(e,t)}var Cf=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!0;do for(var n=!1,r=Cf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-W(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=ed,a=Xe(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&bp()&&(e=Of);for(var t=Me(),n=null,r=Cf;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}xd!==0&&xd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-W(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=$e(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=ed,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(td===2||td===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ke(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ke(r),dt(n)){case 2:case 8:n=Fe;break;case 32:n=Ie;break;case 268435456:n=Re;break;default:n=Ie}return r=Pf.bind(null,e),n=Oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ke(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(xd!==0&&xd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pf()&&e.callbackNode!==n)return null;var r=ed;return r=Xe(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ld(e,r,t),Nf(e,Me()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(pf())return null;Ld(e,t,!0)}function If(){Tp(function(){Zu&6?Oe(Pe,jf):Mf()})}function Lf(){if(Of===0){var e=Ma;e===0&&(e=qe,qe<<=1,!(qe&261888)&&(qe=256)),Of=e}return Of}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:ln(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[q]||null).action),o=r.submitter;o&&(t=(t=o[q]||null)?Rf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new jn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Of!==0){var e=new FormData(i,o);Xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<oi.length;Bf++){var Vf=oi[Bf];si(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.slice(1)))}si(Qr,`onAnimationEnd`),si($r,`onAnimationIteration`),si(ei,`onAnimationStart`),si(`dblclick`,`onDoubleClick`),si(`focusin`,`onFocus`),si(`focusout`,`onBlur`),si(ti,`onTransitionRun`),si(ni,`onTransitionStart`),si(ri,`onTransitionCancel`),si(ii,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){fi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){fi(e)}i.currentTarget=null,a=c}}}}function Gf(e,t){var n=t[gt];n===void 0&&(n=t[gt]=new Set);var r=e+`__bubble`;n.has(r)||(Yf(t,e,2,!1),n.add(r))}function Kf(e,t,n){var r=0;t&&(r|=4),Yf(n,e,r,t)}var qf=`_reactListening`+Math.random().toString(36).slice(2);function Jf(e){if(!e[qf]){e[qf]=!0,kt.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Kf(t,!1,e),Kf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,Kf(`selectionchange`,!1,t))}}function Yf(e,t,n,r){switch(Oh(t)){case 2:var i=Sh;break;case 8:i=Ch;break;default:i=wh}n=i.bind(null,t,n,e),i=void 0,!bn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Xf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Ct(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}_n(function(){var r=a,i=fn(n),s=[];a:{var c=ai.get(e);if(c!==void 0){var l=jn,u=e;switch(e){case`keypress`:if(En(n)===0)break a;case`keydown`:case`keyup`:l=Yn;break;case`focusin`:u=`focus`,l=Bn;break;case`focusout`:u=`blur`,l=Bn;break;case`beforeblur`:case`afterblur`:l=Bn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Rn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Qn;break;case Qr:case $r:case ei:l=Vn;break;case ii:l=$n;break;case`scroll`:case`scrollend`:l=Nn;break;case`wheel`:l=er;break;case`copy`:case`cut`:case`paste`:l=Hn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Xn;break;case`submit`:l=Zn;break;case`toggle`:case`beforetoggle`:l=tr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=vn(m,p),g!=null&&d.push(Zf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==dn&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[ht]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ct(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Rn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Xn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Tt(c),h=l==null?u:Tt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,$f):null,c!==null&&ep(s,u,c,d,!1),l!==null&&f!==null&&ep(s,f,l,d,!0)))}a:{if(c=r?Tt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=xr;else if(hr(c)){if(Sr)_=jr;else{_=kr;var v=Or}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&on(r.elementType)&&(_=xr):_=Ar;if(_&&=_(e,r)){gr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Tt(r):window,e){case`focusin`:(hr(v)||v.contentEditable===`true`)&&(Hr=v,Ur=r,Wr=null);break;case`focusout`:Wr=Ur=Hr=null;break;case`mousedown`:Gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Gr=!1,Kr(s,n,i);break;case`selectionchange`:if(Vr)break;case`keydown`:case`keyup`:Kr(s,n,i)}var y;if(rr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else dr?lr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(or&&n.locale!==`ko`&&(dr||b!==`onCompositionStart`?b===`onCompositionEnd`&&dr&&(y=Tn()):(Sn=i,Cn=`value`in Sn?Sn.value:Sn.textContent,dr=!0)),v=Qf(r,b),0<v.length&&(b=new Un(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=ur(n),y!==null&&(b.data=y)))),(y=ar?fr(e,n):pr(e,n))&&(b=Qf(r,`onBeforeInput`),0<b.length&&(v=new Un(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),zf(s,e,r,n,i)}Wf(s,t)})}function Zf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=vn(e,n),i!=null&&r.unshift(Zf(e,i,a)),i=vn(e,t),i!=null&&r.push(Zf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function $f(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=vn(n,a),l!=null&&o.unshift(Zf(n,l,c))):i||(l=vn(n,a),l!=null&&o.push(Zf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tp=/\r\n?/g,np=/\u0000|\uFFFD/g;function rp(e){return(typeof e==`string`?e:``+e).replace(tp,`
|
|
10
|
+
`).replace(np,``)}function ip(e,t){return t=rp(t),rp(e)===t}function ap(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||tn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&tn(e,``+r);else return;break;case`className`:Bt(e,`class`,r);break;case`tabIndex`:Bt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Bt(e,n,r);break;case`style`:an(e,r,o);return;case`data`:if(t!==`object`){Bt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=ln(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ap(e,t,`name`,a.name,a,null),ap(e,t,`formEncType`,a.formEncType,a,null),ap(e,t,`formMethod`,a.formMethod,a,null),ap(e,t,`formTarget`,a.formTarget,a,null)):(ap(e,t,`encType`,a.encType,a,null),ap(e,t,`method`,a.method,a,null),ap(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=ln(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=un);return;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=ln(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Gf(`beforetoggle`,e),Gf(`toggle`,e),zt(e,`popover`,r);break;case`xlinkActuate`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:zt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=sn.get(n)||n,zt(e,n,r);else return}Lt=!0}function op(e,t,n,r,a,o){switch(n){case`style`:an(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)tn(e,r);else if(typeof r==`number`||typeof r==`bigint`)tn(e,``+r);else return;break;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=un);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[q]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Lt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):zt(e,n,r)}return}Lt=!0}function sp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Gf(`error`,e),Gf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ap(e,t,o,s,n,null)}}a&&ap(e,t,`srcSet`,n.srcSet,n,null),r&&ap(e,t,`src`,n.src,n,null);return;case`input`:Gf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ap(e,t,r,d,n,null)}}Xt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Gf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ap(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Qt(e,!!r,n,!0):Qt(e,!!r,t,!1);return;case`textarea`:for(s in Gf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ap(e,t,s,c,n,null)}en(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ap(e,t,l,r,n,null)}return;case`dialog`:Gf(`beforetoggle`,e),Gf(`toggle`,e),Gf(`cancel`,e),Gf(`close`,e);break;case`iframe`:case`object`:Gf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Gf(Hf[r],e);break;case`image`:Gf(`error`,e),Gf(`load`,e);break;case`details`:Gf(`toggle`,e);break;case`embed`:case`source`:case`link`:Gf(`error`,e),Gf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ap(e,t,u,r,n,null)}return;default:if(on(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&op(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ap(e,t,c,r,n,null))}var cp={};function lp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ap(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Lt=!0),o=m;break;case`name`:m!==f&&(Lt=!0),a=m;break;case`checked`:m!==f&&(Lt=!0),u=m;break;case`defaultChecked`:m!==f&&(Lt=!0),d=m;break;case`value`:m!==f&&(Lt=!0),s=m;break;case`defaultValue`:m!==f&&(Lt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ap(e,t,p,m,r,f)}}Yt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ap(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Lt=!0),p=o;break;case`defaultValue`:o!==l&&(Lt=!0),c=o;break;case`multiple`:o!==l&&(Lt=!0),s=o;default:o!==l&&ap(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Qt(e,!!n,n?[]:``,!1):Qt(e,!!n,t,!0)):Qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ap(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Lt=!0),p=a;break;case`defaultValue`:a!==o&&(Lt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ap(e,t,s,a,r,o)}$t(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ap(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Lt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ap(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ap(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ap(e,t,u,p,r,m)}return;default:if(on(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&op(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||op(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ap(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ap(e,t,f,p,r,m)}function up(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&up(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&up(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var fp=null,pp=null;function mp(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function _p(e,t,n,r){return n=mp(n).createElement(e),n[K]=r,n[q]=t,sp(n,e,t),Dt(n),n}function vp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yp=null;function bp(){var e=window.event;return e&&e.type===`popstate`?e!==yp&&(yp=e,!0):(yp=null,!1)}var xp=typeof setTimeout==`function`?setTimeout:void 0,Sp=typeof clearTimeout==`function`?clearTimeout:void 0,Cp=typeof Promise==`function`?Promise:void 0,wp=typeof requestAnimationFrame==`function`?requestAnimationFrame:xp,Tp=typeof queueMicrotask==`function`?queueMicrotask:Cp===void 0?xp:function(e){return Cp.resolve(null).then(e).catch(Ep)};function Ep(e){setTimeout(function(){throw e})}function Dp(e){return e===`head`}function Op(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),qh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[bt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sm(e.ownerDocument.body)}n=i}while(n);qh(t)}function kp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Ap(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function jp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Mp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Np(e){return Mp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Pp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mp(t,n,e)}function Fp(e){return e.documentElement.clientHeight}function Ip(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Lp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Fp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=th(f),u>ih){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Rp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Rp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Rp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Rp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zp(e){return{name:e,group:new Rp(`group`,e),imagePair:new Rp(`image-pair`,e),old:new Rp(`old`,e),new:new Rp(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=_(e),vm(e,t))}Bp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=mp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,ym(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=Ct(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),nm(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),nm(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=_(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[bt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mm(e.nextSibling),e===null)break}return null}function lm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mm(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mm(e.nextSibling),e===null))return null;return e}function dm(e){return e.data===`$?`||e.data===`$~`}function fm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hm=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function ym(e){wp(function(){wp(function(t){return e(t)})})}function bm(e,t,n){switch(t=mp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ap(e,t,r,null,cp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===un&&(e.onclick=null),St(e)}function Sm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var Cm=new Map,wm=new Set;function Tm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Em=oe.d;oe.d={f:Dm,r:Om,D:jm,C:Mm,L:Nm,m:Pm,X:Im,S:Fm,M:Lm};function Dm(){var e=Em.f(),t=Vd();return e||t}function Om(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?Qs(t):Em.r(e)}var km=typeof document>`u`?null:document;function Am(e,t,n){var r=km;if(r&&typeof t==`string`&&t){var i=Jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),sp(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function jm(e){Em.D(e),Am(`dns-prefetch`,e,null)}function Mm(e,t){Em.C(e,t),Am(`preconnect`,e,t)}function Nm(e,t,n){Em.L(e,t,n);var r=km;if(r&&e&&t){var i=`link[rel="preload"][as="`+Jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Jt(n.imageSizes)+`"]`)):i+=`[href="`+Jt(e)+`"]`;var a=i;switch(t){case`style`:a=zm(e);break;case`script`:a=Um(e)}if(!(Cm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bm(a))||t===`script`&&r.querySelector(Wm(a))))){var o=r.createElement(`link`);sp(o,`link`,e),t===`style`&&(o[xt]=!0,o.onload=o.onerror=function(){Ot(o)}),Dt(o),r.head.appendChild(o)}}}function Pm(e,t){Em.m(e,t);var n=km;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Jt(r)+`"][href="`+Jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Um(e)}if(!Cm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wm(a)))return}r=n.createElement(`link`),sp(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function Fm(e,t,n){Em.S(e,t,n);var r=km;if(r&&e){var i=Et(r).hoistableStyles,a=zm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&qm(e,n);var c=o=r.createElement(`link`);Dt(c),sp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Km(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Im(e,t){Em.X(e,t);var n=km;if(n&&e){var r=Et(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=w({src:e,async:!0},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Dt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t){Em.M(e,t);var n=km;if(n&&e){var r=Et(n).hoistableScripts,i=Um(e),a=r.get(i);a||(a=n.querySelector(Wm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&Jm(e,t),a=n.createElement(`script`),Dt(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t,n,r){var a=(a=he.current)?Tm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=zm(n.href),t=Et(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zm(n.href);var o=Et(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Hm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Um(n),t=Et(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zm(e){return`href="`+Jt(e)+`"`}function Bm(e){return`link[rel="stylesheet"][`+e+`]`}function Vm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Hm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[xt]){r.loading=1;return}}else t=e.createElement(`link`),t[xt]=!0,t.onload=t.onerror=Ot.bind(null,t),sp(t,`link`,n),Dt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Um(e){return`[src="`+Jt(e)+`"]`}function Wm(e){return`script[async]`+e}function Gm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Jt(n.href)+`"]`);if(r)return t.instance=r,Dt(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),sp(r,`style`,a),Km(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zm(n.href);var o=e.querySelector(Bm(a));if(o)return t.state.loading|=4,t.instance=o,Dt(o),o;r=Vm(n),(a=Cm.get(a))&&qm(r,a),o=(e.ownerDocument||e).createElement(`link`),Dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),sp(o,`link`,r),t.state.loading|=4,Km(o,n.precedence,e),t.instance=o;case`script`:return o=Um(n.src),(a=e.querySelector(Wm(o)))?(t.instance=a,Dt(a),a):(r=n,(a=Cm.get(o))&&(r=w({},n),Jm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Dt(a),sp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Km(r,n.precedence,e));return t.instance}function Km(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ym=null;function Xm(e,t,n){if(Ym===null){var r=new Map,i=Ym=new Map;i.set(n,r)}else i=Ym,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[bt]||a[K]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Zm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $m(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function eh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function th(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function nh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=th(t),e.suspenseyImages.push(t)),e=ch.bind(e),t.decode().then(e,e))}function rh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zm(r.href),a=t.querySelector(Bm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Vm(r),(i=Cm.get(i))&&qm(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ih=0;function ah(e,t){return e.stylesheets&&e.count===0&&uh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ih===0&&(ih=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ih?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function oh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)uh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function sh(){this.count--,oh(this)}function ch(){this.imgCount--,oh(this)}var lh=null;function uh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lh=new Map,t.forEach(dh,e),lh=null,sh.call(e))}function dh(e,t){if(!(t.state.loading&4)){var n=lh.get(e);if(n)var r=n.get(null);else{n=new Map,lh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=sh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var fh={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function ph(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function mh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ph(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=wi(3,null,null,t),e.current=a,a.stateNode=e,t=Ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},so(a),e}function hh(e){return e?(e=Si,e):Si}function gh(e,t,n,r,i,a){i=hh(i),r.context===null?r.context=i:r.pendingContext=i,r=lo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=uo(e,r,t),n!==null&&(Id(n,e,t),fo(n,e,t))}function _h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vh(e,t){_h(e,t),(e=e.alternate)&&_h(e,t)}function yh(e){if(e.tag===13||e.tag===31){var t=yi(e,67108864);t!==null&&Id(t,e,67108864),vh(e,67108864)}}function bh(e){if(e.tag===13||e.tag===31){var t=Nd();t=lt(t);var n=yi(e,t);n!==null&&Id(n,e,t),vh(e,t)}}var xh=!0;function Sh(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=2,wh(e,t,n,r)}finally{oe.p=a,H.T=i}}function Ch(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=8,wh(e,t,n,r)}finally{oe.p=a,H.T=i}}function wh(e,t,n,r){if(xh){var i=Th(r);if(i===null)Xf(e,t,r,Eh,n),Lh(e,r);else if(zh(i,e,t,n,r))r.stopPropagation();else if(Lh(e,r),t&4&&-1<Ih.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-W(o);s.entanglements[1]|=c,o&=~c}kf(a),!(Zu&6)&&(vd=Me()+500,Af(0,!1))}}break;case 31:case 13:s=yi(a,2),s!==null&&Id(s,a,2),Vd(),vh(a,2)}if(a=Th(r),a===null&&Xf(e,t,r,Eh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Xf(e,t,r,null,n)}}function Th(e){return e=fn(e),Dh(e)}var Eh=null;function Dh(e){if(Eh=null,e=Ct(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Eh=e,null}function Oh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ne()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var kh=!1,Ah=null,jh=null,Mh=null,Nh=new Map,Ph=new Map,Fh=[],Ih=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Lh(e,t){switch(e){case`focusin`:case`focusout`:Ah=null;break;case`dragenter`:case`dragleave`:jh=null;break;case`mouseover`:case`mouseout`:Mh=null;break;case`pointerover`:case`pointerout`:Nh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ph.delete(t.pointerId)}}function Rh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&yh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zh(e,t,n,r,i){switch(t){case`focusin`:return Ah=Rh(Ah,e,t,n,r,i),!0;case`dragenter`:return jh=Rh(jh,e,t,n,r,i),!0;case`mouseover`:return Mh=Rh(Mh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Nh.set(a,Rh(Nh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ph.set(a,Rh(Ph.get(a)||null,e,t,n,r,i)),!0}return!1}function Bh(e){var t=Ct(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,pt(e.priority,function(){bh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,pt(e.priority,function(){bh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Th(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dn=r,n.target.dispatchEvent(r),dn=null}else return t=wt(n),t!==null&&yh(t),e.blockedOn=n,!1;t.shift()}return!0}function Hh(e,t,n){Vh(e)&&n.delete(t)}function Uh(){kh=!1,Ah!==null&&Vh(Ah)&&(Ah=null),jh!==null&&Vh(jh)&&(jh=null),Mh!==null&&Vh(Mh)&&(Mh=null),Nh.forEach(Hh),Ph.forEach(Hh)}function Wh(e,n){e.blockedOn===n&&(e.blockedOn=null,kh||(kh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Uh)))}var Gh=null;function Kh(e){Gh!==e&&(Gh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gh===e&&(Gh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Dh(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,Xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qh(e){function t(t){return Wh(t,e)}Ah!==null&&Wh(Ah,e),jh!==null&&Wh(jh,e),Mh!==null&&Wh(Mh,e),Nh.forEach(t),Ph.forEach(t);for(var n=0;n<Fh.length;n++){var r=Fh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Fh.length&&(n=Fh[0],n.blockedOn===null);)Bh(n),n.blockedOn===null&&Fh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[q]||null;if(typeof a==`function`)o||Kh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[q]||null)s=o.formAction;else if(Dh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Kh(n)}}}function Jh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Yh(e){this._internalRoot=e}Xh.prototype.render=Yh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;gh(n,Nd(),e,t,null,null)},Xh.prototype.unmount=Yh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gh(e.current,2,null,e,null,null),Vd(),t[ht]=null}};function Xh(e){this._internalRoot=e}Xh.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fh.length&&t!==0&&t<Fh[n].priority;n++);Fh.splice(n,0,e),n===0&&Bh(e)}};var Zh=n.version;if(Zh!==`19.3.1`)throw Error(i(527,Zh,`19.3.1`));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:H,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var $h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$h.isDisabled&&$h.supportsFiber)try{Ve=$h.inject(Qh),He=$h}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=yc,s=bc,c=xc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=mh(e,1,!1,null,null,n,r,null,o,s,c,Jh),e[ht]=t.current,Jf(e),new Yh(t)}})),ft=tt(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=dt()})),pt=tt((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),mt=tt(((e,t)=>{t.exports=pt()})),K=it(ot(),1),q=mt(),ht=K.createContext(void 0),gt=e=>{let t=K.useContext(ht);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},_t=({client:e,children:t})=>(K.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,q.jsx)(ht.Provider,{value:e,children:t})),vt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},yt=new class{#e=vt;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function bt(e){setTimeout(e,0)}var xt=typeof window>`u`||`Deno`in globalThis;function St(){}function Ct(e,t){return typeof e==`function`?e(t):e}function wt(e){return typeof e==`number`&&e>=0&&e!==1/0}function Tt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Et(e,t){return typeof e==`function`?e(t):e}function Dt(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==kt(o,t.options))return!1}else if(!jt(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ot(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(At(t.options.mutationKey)!==At(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function kt(e,t){return(t?.queryKeyHashFn||At)(e)}function At(e){return JSON.stringify(e,(e,t)=>It(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!jt(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!jt(e[r],t[r]))return!1;return!0}return!1}var Mt=Object.prototype.hasOwnProperty;function Nt(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Ft(e)&&Ft(t);if(!r&&!(It(e)&&It(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Mt.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Nt(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Pt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Ft(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function It(e){if(!Lt(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!Lt(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function Lt(e){return Object.prototype.toString.call(e)===`[object Object]`}function Rt(e){return new Promise(t=>{yt.setTimeout(t,e)})}function zt(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Nt(e,t)}function Bt(e){return e}function Vt(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ht(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ut=Symbol();function Wt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ut?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gt(e,t){return typeof e==`function`?e(...t):!!e}function Kt(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var qt=()=>xt,Jt=()=>qt(),Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt=new class extends Yt{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Zt=bt;function Qt(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Zt,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var $t=Qt(),en=new class extends Yt{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function tn(e){return Math.min(1e3*2**e,3e4)}function nn(e){return(e??`online`)!==`online`||en.isOnline()}var rn=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function an(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(St);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new rn(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Xt.isFocused()&&(e.networkMode===`always`||en.isOnline())&&e.canRun(),p=()=>nn(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(Jt()?0:3),a=e.retryDelay??tn,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),Rt(o).then(()=>f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var on=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wt(this.gcTime)&&(this.#e=yt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Jt()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(yt.clearTimeout(this.#e),this.#e=void 0)}};function sn(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Kt(e,()=>t.signal,()=>n=!0)},u=Wt(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Ht:Vt;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ln:cn,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:cn(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function cn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ln(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var un=class extends on{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=pn(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=pn(this.options);e.data!==void 0&&(this.setState(fn(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=zt(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Et(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ut||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Et(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Tt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Wt(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?sn(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=an({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof rn&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof rn){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...dn(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...fn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),$t.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function dn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nn(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function fn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function pn(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var mn=class extends Yt{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gn(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _n(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _n(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Et(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Pt(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&vn(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||Et(this.options.enabled,this.#t)!==Et(t.enabled,this.#t)||Et(this.options.staleTime,this.#t)!==Et(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Et(this.options.enabled,this.#t)!==Et(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Pt(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch(t).then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(St)),t}#h(e){return!Jt()&&Et(this.options.enabled,this.#t)!==!1&&wt(e)}#g(){this.#b();let e=Et(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Tt(this.#r.dataUpdatedAt,e)+1;this.#u=yt.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return Et(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=yt.setInterval(()=>{(this.options.refetchIntervalInBackground||Xt.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(yt.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(yt.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&gn(e,t),o=i&&vn(e,n,t,r);(a||o)&&(l={...l,...dn(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=zt(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=zt(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:yn(e,t),refetch:this.refetch,isEnabled:Et(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Pt(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();$t.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function hn(e,t){return Et(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||Et(t.retryOnMount,e)!==!1)}function gn(e,t){return hn(e,t)||e.state.data!==void 0&&_n(e,t,t.refetchOnMount)}function _n(e,t,n){if(Et(t.enabled,e)!==!1&&Et(t.staleTime,e)!==`static`){let r=Et(n,e);return r===`always`||r!==!1&&yn(e,t)}return!1}function vn(e,t,n,r){return(e!==t||Et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&yn(e,n)}function yn(e,t){return Et(t.enabled,e)!==!1&&e.isStaleByTime(Et(t.staleTime,e))}var bn=class extends on{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||xn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=an({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),$t.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function xn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Sn=class extends Yt{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new bn({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Cn(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Cn(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Cn(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Cn(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){$t.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ot(t,e))}findAll(e={}){return this.getAll().filter(t=>Ot(e,t))}notify(e){$t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return $t.batch(()=>Promise.all(e.map(e=>e.continue().catch(St))))}};function Cn(e){return e.options.scope?.id}var wn=class extends Yt{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Pt(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&At(t.mutationKey)!==At(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??xn();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){$t.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Tn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var En=class extends Yt{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,$t.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!Pt(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Tn(e,n).forEach(e=>{e.destroy()}),Tn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=Nt(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new mn(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&$t.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Dn=class extends Yt{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??kt(r,t),a=this.get(i);return a||(a=new un({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){$t.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Dt(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Dt(e,t)):t}notify(e){$t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},On=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Dn,this.#t=e.mutationCache||new Sn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Xt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=en.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Et(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Ct(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return $t.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;$t.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return $t.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=$t.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(St).catch(St)}invalidateQueries(e,t={}){return $t.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=$t.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(St)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(St)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Et(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Et(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(St).catch(St)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(St).catch(St)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return en.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(At(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{jt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(At(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{jt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=kt(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ut&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},kn=K.createContext(!1),An=()=>K.useContext(kn);kn.Provider;function jn(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mn=K.createContext(jn()),Nn=()=>K.useContext(Mn),Pn=(e,t,n)=>{let r=n?.state.status===`error`&&typeof e.throwOnError==`function`?Gt(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Fn=e=>{K.useEffect(()=>{e.clearReset()},[e])},In=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Gt(n,[e.error,r])),Ln=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Rn=(e,t)=>e?.suspense&&t.isPending,zn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Bn({queries:e,...t},n){let r=gt(n),i=An(),a=Nn(),o=t.subscribed!==!1,s=K.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{Ln(e);let t=r.getQueryCache().get(e.queryHash);Pn(e,a,t)}),Fn(a);let[c]=K.useState(()=>new En(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&o;K.useSyncExternalStore(K.useCallback(e=>f?c.subscribe($t.batchCalls(e)):St,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),K.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let p=l.some((e,t)=>Rn(s[t],e))?l.flatMap((e,t)=>{let n=s[t];return n&&Rn(n,e)?zn(n,new mn(r,n),a):[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&In({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m)throw m.error;return u(d())}function Vn(e,t,n){let r=An(),i=Nn(),a=gt(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ln(o),Pn(o,i,s),Fn(i);let[l]=K.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(K.useSyncExternalStore(K.useCallback(e=>{let t=d?l.subscribe($t.batchCalls(e)):St;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),K.useEffect(()=>{l.setOptions(o)},[o,l]),Rn(o,u))throw zn(o,l,i);if(In({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function Hn(e,t){return Vn(e,mn,t)}function Un(e,t){let n=gt(t),[r]=K.useState(()=>new wn(n,e));K.useEffect(()=>{r.setOptions(e)},[r,e]);let i=K.useSyncExternalStore(K.useCallback(e=>r.subscribe($t.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=K.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(St)},[r]);if(i.error&&Gt(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Wn=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Gn=/^[\\/]{2}/;function Kn(e,t){return t+e.replace(/\\/g,`/`)}var qn=`popstate`;function Jn(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Yn(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return er(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:tr(t)}return rr(t,n,null,e)}function Xn(e,t){if(e===!1||e==null)throw Error(t)}function Zn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Qn(){return Math.random().toString(36).substring(2,10)}function $n(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function er(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?nr(t):t,state:n,key:t&&t.key||r||Qn(),mask:i}}function tr({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function nr(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function rr(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Jn(e)?e:er(h.location,e,t);n&&n(r,e),l=u()+1;let d=$n(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Jn(e)?e:er(h.location,e,t);n&&n(r,e),l=u();let i=$n(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ir(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(qn,d),c=e,()=>{i.removeEventListener(qn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ir(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Xn(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:tr(t);return i=i.replace(/ $/,`%20`),!n&&Gn.test(i)&&(i=r+i),new URL(i,r)}var ar=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},or=class extends Error{},sr=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function cr(e){return sr.has(e)}var lr=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function ur(e){return lr.has(e)}function dr(e){return e.index===!0}function fr(e){let t={};return e.Component&&Object.assign(t,{element:K.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:K.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:K.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function pr(e,t=fr,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(Xn(e.index!==!0||!e.children,`Cannot specify children on an index route`),Xn(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),dr(e)){let n={...e,id:s};return r[s]=mr(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=mr(n,t(n)),e.children&&(n.children=pr(e.children,t,o,r,i)),n}})}function mr(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function hr(e,t,n=`/`){return gr(e,t,n,!1)}function gr(e,t,n,r,i){let a=Rr((typeof t==`string`?nr(t):t).pathname||`/`,n);if(a==null)return null;let o=i??vr(e),s=null,c=Lr(a);for(let e=0;s==null&&e<o.length;++e)s=Nr(o[e],c,r);return s}function _r(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function vr(e){let t=yr(e);return xr(t),t}function yr(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Xn(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Jr([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Xn(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),yr(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:jr(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ir(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of br(e.path))a(e,t,!0,n)}),t}function br(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=br(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function xr(e){e.sort((e,t)=>e.score===t.score?Mr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Sr=/^:[\w-]+$/,Cr=/^:[\w-]+/,wr=3.5,Tr=3,Er=2,Dr=1,Or=10,kr=-2,Ar=e=>e===`*`;function jr(e,t){let n=e.split(`/`),r=n.length;return n.some(Ar)&&(r+=kr),t&&(r+=Er),n.filter(e=>!Ar(e)).reduce((e,t)=>e+(Sr.test(t)?Tr:Cr.test(t)?wr:t===``?Dr:Or),r)}function Mr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Nr(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Fr(u,l,s.matcher,s.compiledParams):Pr(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Pr({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Jr([a,d.pathname]),pathnameBase:Xr(Jr([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Jr([a,d.pathnameBase]))}return o}function Pr(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ir(e.path,e.caseSensitive,e.end);return Fr(e,t,n,r)}function Fr(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Yr(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Yr(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ir(e,t=!1,n=!0){Zn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Lr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Zn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Rr(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function zr({basename:e,pathname:t}){return t===`/`?e:Jr([e,t])}var Br=e=>Wn.test(e);function Vr(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?nr(e):e,a;return n?(n=qr(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Hr(n.substring(1),`/`):Hr(n,t)):a=t,{pathname:a,search:Zr(r),hash:Qr(i)}}function Hr(e,t){let n=Yr(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ur(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Wr(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Gr(e){let t=Wr(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Kr(e,t,n,r=!1){let i;typeof e==`string`?i=nr(e):(i={...e},Xn(!i.pathname||!i.pathname.includes(`?`),Ur(`?`,`pathname`,`search`,i)),Xn(!i.pathname||!i.pathname.includes(`#`),Ur(`#`,`pathname`,`hash`,i)),Xn(!i.search||!i.search.includes(`#`),Ur(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Vr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var qr=e=>e.replace(/[\\/]{2,}/g,`/`),Jr=e=>qr(e.join(`/`));function Yr(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Xr=e=>Yr(e).replace(/^\/*/,`/`),Zr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Qr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,$r=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],ei=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ti(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ni(e){return Jr(e.map(e=>e.route.path).filter(Boolean))||`/`}function ri(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?nr(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var ii=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ai(e,t){let n=e;if(typeof n!=`string`||!Wn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ii)try{let e=new URL(window.location.href),r=Gn.test(n)?new URL(Kn(n,e.protocol)):new URL(n),a=Rr(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Zn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var oi=Symbol(`Uninstrumented`),si=new WeakMap;function ci(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>mi(await hi(n.lazy,void 0,()=>e(...t),gi))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>mi(await hi(n[`lazy.middleware`],void 0,()=>t(...e),gi))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>mi(await hi(n[`lazy.loader`],void 0,()=>t(...e),gi))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>mi(await hi(n[`lazy.action`],void 0,()=>t(...e),gi))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=ui(t.loader),i=async(...t)=>mi(await hi(n.loader,_i(t[0]),()=>e(...t),gi));e.hydrate===!0&&(i.hydrate=!0),di(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=ui(t.action),i=async(...t)=>mi(await hi(n.action,_i(t[0]),()=>e(...t),gi));di(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=ui(e),r=async(...e)=>mi(await hi(n.middleware,_i(e[0]),()=>t(...e),gi));return di(r,t),r})),r}function li(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=ui(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?tr(i):`.`,...vi(e,a??{})};return mi(await hi(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=fi(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...gi(e),meta:o})))};di(r,t),e.navigate=r}if(n.fetch.length>0){let t=ui(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return mi(await hi(n.fetch,{href:o??`.`,fetcherKey:i,...vi(e,s??{})},async()=>{let n=fi(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...gi(e),meta:c})))};di(r,t),e.fetch=r}return e}function ui(e){return e[oi]??e}function di(e,t){e[oi]=t}function fi(e,t){return si.set(e,t),()=>{si.get(e)===t&&si.delete(e)}}function pi(e){let t=si.get(e);return si.delete(e),t}function mi(e){if(e.type===`error`)throw e.value;return e.value}async function hi(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=hi(e,t,n,r,i,a-1),await s,Xn(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result||(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t)),i.result}function gi(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function _i(e){let{request:t,context:n,params:r}=e;return{...e,request:yi(t),params:{...r},context:bi(n)}}function vi(e,t){return{currentUrl:tr(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function yi(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function bi(e){return{get:t=>e.get(t)}}var xi=class{#e=[];#t=[];#n;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=vr(e)}match(e,t=!1){return gr(this.#e,e,this.#n,t,this.#t)}},Si=new URL(`http://localhost`);function Ci(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Si)}catch{return Si}}function wi(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ti(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Ei(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!wi(i,n),s=!wi(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ti(e,i)||!wi(i,a)))throw Error(`External navigation is not allowed`)}var Di=[`POST`,`PUT`,`PATCH`,`DELETE`],Oi=new Set(Di),ki=[`GET`,...Di],Ai=new Set(ki),ji=new Set([301,302,303,307,308]),Mi=new Set([307,308]),Ni={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pi={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Fi={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Ii=`remix-router-transitions`,Li=Symbol(`ResetLoaderData`);function Ri(e,t){return e.unstable_routePatternMatching?(Xn(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new xi(t)}var zi=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}},Bi=new WeakMap;function Vi(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;Xn(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...ci(t.map(e=>e.route).filter(Boolean),e)})}let o={...e.future},s=e.basename||`/`;s.startsWith(`/`)||(s=`/${s}`);let c=Ri(o,s),l={},u=new zi(pr(e.routes,a,void 0,l),c),d=e.dataStrategy||ia,f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=c.match(e.history.location),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Oa(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Da(u.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&W(v,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=W(null,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>Ki(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=qi(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:Ni,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=0,D,O=null,k=!1,A,j=!1,M=new Map,N=null,P=!1,ee=!1,F=new Set,I=new Map,te=0,ne=-1,L=new Map,R=new Set,z=new Map,B=new Map,V=new Set,re=new Map,ie,ae=null;function H(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(ie){ie(),ie=void 0;return}Zn(re.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Re({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ie=e});e.history.go(r*-1),Le(i,{state:`blocked`,location:n,proceed(){Le(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,Fi),ce({blockers:e})}}),O?.resolve(),O=null}else return o.unstable_customRouteDiscovery&&(E+=r||0),pe(t,n)}),n){$a(t,M);let e=()=>eo(t,M);t.addEventListener(`pagehide`,e),N=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||pe(`POP`,w.location,{initialHydration:!0}),C}function oe(){f&&f(),N&&N(),p.clear(),A&&A.abort(),w.fetchers.forEach((e,t)=>ke(w.fetchers,t)),w.blockers.forEach((e,t)=>Ie(t))}function se(e){return p.add(e),()=>p.delete(e)}function ce(e,t={}){let n=e.errors??null,r=n?Bi.get(n):void 0;r!==void 0&&(n=r),(e.errors!==void 0||e.initialized)&&(w.errors&&Bi.delete(w.errors),e.errors&&Bi.set(e.errors,n)),e.matches&&=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let i=[],a=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(V.has(t)?i.push(t):a.push(t))}),V.forEach(e=>{!w.fetchers.has(e)&&!I.has(e)&&i.push(e)}),[...p].forEach(e=>e(w,{deletedFetchers:i,newErrors:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),i.forEach(e=>ke(w.fetchers,e)),a.forEach(e=>w.fetchers.delete(e))}function le(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&Ua(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?wa(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,s=w.blockers;s.size>0&&!P&&(s=new Map(s),s.forEach((e,t)=>s.set(t,Fi)));let c=!P&&Ue(t,n.matches||w.matches),l=k===!0||w.navigation.formMethod!=null&&Ua(w.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),P||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`&&!P&&t!==w.location){let e=M.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:M.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(j){let e=M.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}ce({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:Ni,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:d,flushSync:r===!0}),ue(),O?.resolve(),O=null,ae?.resolve(),ae=null}function ue(){E=0,T=`POP`,k=!1,j=!1,P=!1,ee=!1}async function de(t,n){if(D&&await D,O?.resolve(),O=null,typeof t==`number`){O||=to();let n=O.promise;return e.history.go(t),n}let r=pi(C),{path:i,submission:a,error:o}=Wi(!1,Ui(w.location,w.matches,s,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?nr(n.mask):{...w.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},Gn.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),Ei(typeof n.mask==`string`?n.mask:tr(n.mask),tr(c),e.history.createURL(`/`),`reject`)}let l=w.location,u=er(l,i,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},Ei(t==null?e.history.createHref(w.location):typeof t==`string`?t:tr(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`;d===!0?f=`REPLACE`:d===!1||a!=null&&Ua(a.formMethod)&&a.formAction===w.location.pathname+w.location.search&&(f=`REPLACE`);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=Re({currentLocation:l,nextLocation:u,historyAction:f});h?Le(h,{state:`blocked`,location:u,proceed(){Le(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),de(t,n)},reset(){let e=new Map(w.blockers);e.set(h,Fi),ce({blockers:e})}}):await pe(f,u,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function fe(){if(D)return D.then(fe);ae||=to(),we(),ce({revalidation:`loading`});let e=ae.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(pe(w.historyAction,w.location,{startUninterruptedRevalidation:!0,dataStrategyInitiator:`revalidation`}),e):(pe(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,dataStrategyInitiator:`revalidation`,enableViewTransition:j===!0}),e)}async function pe(t,n,r){D&&await D,A&&A.abort(),A=null,T=t,P=(r&&r.startUninterruptedRevalidation)===!0,He(w.location,w.matches),k=(r&&r.preventScrollReset)===!0,j=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:c.match(n),a=(r&&r.flushSync)===!0;if(i&&w.initialized&&!ee&&ja(w.location,n)&&!(r&&r.submission&&Ua(r.submission.formMethod))){le(n,{matches:i},{flushSync:a});return}let o=W(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=Ka(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=ze(n.pathname);le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;A=new AbortController;let l=ya(e.history,n,A.signal,r&&r.submission),u=r?.initialHydration?`initialization`:r?.dataStrategyInitiator??`navigation`,d=e.getContext?await e.getContext():new ar,f;if(r&&r.pendingError)f=[Ea(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Ua(r.submission.formMethod)){let c=await he(l,u,n,r.submission,i,t,d,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(Ia(t)&&ti(t.error)&&t.error.status===404){A=null,le(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}});return}}i=c.matches||i,f=c.pendingActionResult,s=Ja(n,i,t,r.submission),a=!1,o.active=!1,l=ya(e.history,l.url,l.signal)}let{shortCircuited:p,matches:m,loaderData:h,errors:g,workingFetchers:_}=await ge(l,u,n,i,t,d,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,f,r&&r.callSiteDefaultShouldRevalidate);p||(A=null,le(n,{matches:m||i,...Ta(f),loaderData:h,errors:g,..._?{fetchers:_}:{}}))}function me(){let t=to();D=t.promise;let n=E,r=O;O=null,A?.abort(),A=null,ue(),ae?.resolve(),ae=null;let i=new Map(w.blockers);i.forEach((e,t)=>{e.state===`proceeding`&&i.set(t,Fi)});let a=new Map(w.fetchers),o=Ne(a);a.forEach((e,t)=>{e.state===`loading`&&!I.has(t)&&(a.set(t,Qa(e.data)),o=!0)}),F.clear(),ce({navigation:Ni,revalidation:`idle`,blockers:i,...o?{fetchers:a}:{}});function s(){D=void 0,r?.resolve(),t.resolve()}return n?(ie=s,e.history.go(-n)):s(),t.promise}async function he(t,n,i,c,d,f,p,m,h,g={}){if(o.unstable_customRouteDiscovery||we(),ce({navigation:Ya(i,d,f,c)},{flushSync:g.flushSync===!0}),m){let e=await We(d,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await me(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Da(u.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Ea(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)d=e.matches;else{let{notFoundMatches:e,error:t,route:n}=ze(i.pathname);return{matches:e,pendingActionResult:[n.id,{type:`error`,error:t}]}}}o.unstable_customRouteDiscovery&&we();let _,v=Ga(d,i);if(!v.route.action&&!v.route.lazy)_={type:`error`,error:Oa(405,{method:t.method,pathname:i.pathname,routeId:v.route.id})};else{let e=await U(t,i,ua(a,l,t,i,d,v,h?[]:r,p),p,null,n,f);if(_=e[v.route.id],!_){for(let t of d)if(e[t.route.id]){_=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(La(_)){let r;return r=g&&g.replace!=null?g.replace:va(_.response.headers.get(`Location`),new URL(t.url),s,e.history)===w.location.pathname+w.location.search,await Se(t,_,!0,n,{submission:c,replace:r}),{shortCircuited:!0}}if(Ia(_)){let e=Ea(d,v.route.id);return(g&&g.replace)!==!0&&(T=`PUSH`),{matches:d,pendingActionResult:[e.route.id,_,v.route.id]}}return{matches:d,pendingActionResult:[v.route.id,_]}}async function ge(t,n,i,s,d,f,p,m,h,g,_,v,y,b,x){let S=m||Ja(i,s,d,h),C=h||g||qa(S),T=!P&&!v;if(p){if(T){let e=_e(b);ce({navigation:S,...e===void 0?{}:{actionData:e}},{flushSync:y})}let e=await We(s,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await me(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Da(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ea(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)s=e.matches,v&&!t.signal.aborted&&ce({matches:s});else{let{error:e,notFoundMatches:t,route:n}=ze(i.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let{dsMatches:E,revalidatingFetchers:D}=Gi(t,f,a,l,e.history,w,s,C,i,v?[]:r,v===!0,ee,F,V,z,R,c,b,x);if(ne=++te,!e.dataStrategy&&!E.some(e=>e.shouldLoad)&&!E.some(e=>e.route.middleware&&e.route.middleware.length>0)&&D.length===0){let e=new Map(w.fetchers),t=Ne(e);return le(i,{matches:s,loaderData:{},errors:b&&Ia(b[1])?{[b[0]]:b[1].error}:null,...Ta(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(T){let e={};if(!p){e.navigation=S;let t=_e(b);t!==void 0&&(e.actionData=t)}D.length>0&&(e.fetchers=ve(D)),ce(e,{flushSync:y})}D.forEach(e=>{je(e.key),e.controller&&I.set(e.key,e.controller)});let O=()=>D.forEach(e=>je(e.key));A&&A.signal.addEventListener(`abort`,O);let{loaderResults:k,fetcherResults:j}=await Ce(E,D,t,i,f,n,d);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener(`abort`,O),D.forEach(e=>I.delete(e.key));let M=ka(k);if(M)return await Se(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};if(M=ka(j),M)return R.add(M.key),await Se(t,M.result,!0,n,{replace:_}),{shortCircuited:!0};let N=new Map(w.fetchers),{loaderData:L,errors:B}=Ca(w,s,k,b,D,j,N);if(v&&w.errors){let e=B??null;B={...w.errors,...B},Bi.set(B,e)}let re=Ne(N),ie=Pe(ne,N),ae=re||ie||D.length>0;return{matches:s,loaderData:L,errors:B,...ae?{workingFetchers:N}:{}}}function _e(e){if(e&&!Ia(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function ve(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=Xa(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function ye(t,n,r,i){D&&await D,je(t);let a=(i&&i.flushSync)===!0,o=pi(C),l=Ui(w.location,w.matches,s,r,n,i?.relative),u=c.match(l),d=W(u,l);if(d.active&&d.matches&&(u=d.matches),o&&o(Ka(e.history,l,u)),!u){Ee(t,n,Oa(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Wi(!0,l,i);if(m){Ee(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new ar,g=(i&&i.preventScrollReset)===!0;if(p&&Ua(p.formMethod)){await be(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:d.active};z.set(t,_),await xe(t,_,u,h,a,g,p)}async function be(t,n,i,s,u,d,f,p,m,h){o.unstable_customRouteDiscovery||we(),z.delete(t);let g=w.fetchers.get(t);Te(t,Za(m,g),{flushSync:f});let _=new AbortController;o.unstable_customRouteDiscovery&&I.set(t,_);let v=ya(e.history,i,_.signal,m);if(d){let e=await We(s,new URL(v.url).pathname,v.signal,t);if(o.unstable_customRouteDiscovery&&v.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){I.delete(t),z.delete(t),Te(t,Qa(g?.data),{flushSync:f});return}if(e.type===`error`){Ee(t,n,e.error,{flushSync:f});return}if(e.matches)s=e.matches;else{Ee(t,n,Oa(404,{pathname:i}),{flushSync:f});return}}let y=Ga(s,i);if(!y.route.action&&!y.route.lazy){Ee(t,n,Oa(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}o.unstable_customRouteDiscovery&&we(),I.set(t,_);let b=te,x=ua(a,l,v,i,s,y,r,u),S=await U(v,i,x,u,t,`fetcher`),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){I.get(t)===_&&I.delete(t);return}if(V.has(t)){if(La(C)||Ia(C)){Te(t,Qa(void 0));return}}else{if(La(C)){if(I.delete(t),ne>b){Te(t,Qa(void 0));return}return R.add(t),Te(t,Xa(m)),Se(v,C,!1,`fetcher`,{fetcherSubmission:m,preventScrollReset:p})}if(Ia(C)){Ee(t,n,C.error);return}}let E=w.navigation.location||w.location,D=ya(e.history,E,_.signal),O=w.navigation.state===`idle`?w.matches:c.match(w.navigation.location);Xn(O,`Didn't find any matches after fetcher action`);let k=++te;L.set(t,k);let{dsMatches:j,revalidatingFetchers:M}=Gi(D,u,a,l,e.history,w,O,m,E,r,!1,ee,F,V,z,R,c,[y.route.id,C],h),N=Xa(m,C.data),P=new Map(w.fetchers);P.set(t,N),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=P.get(t),r=Xa(void 0,n?n.data:void 0);P.set(t,r),je(t),e.controller&&I.set(t,e.controller)}),ce({fetchers:P});let B=()=>M.forEach(e=>je(e.key));_.signal.addEventListener(`abort`,B);let{loaderResults:re,fetcherResults:ie}=await Ce(j,M,D,E,u,`fetcher`);if(_.signal.aborted){L.get(t)===k&&L.delete(t);return}_.signal.removeEventListener(`abort`,B),L.delete(t),I.delete(t),M.forEach(e=>I.delete(e.key));let ae=w.fetchers.has(t),H=e=>{if(!ae)return e;let n=new Map(e.fetchers);return n.set(t,Qa(C.data)),{...e,fetchers:n}},oe=ka(re);if(oe)return w=H(w),Se(D,oe.result,!1,`fetcher`,{preventScrollReset:p});if(oe=ka(ie),oe)return R.add(oe.key),w=H(w),Se(D,oe.result,!1,`fetcher`,{preventScrollReset:p});let se=new Map(w.fetchers);ae&&se.set(t,Qa(C.data));let{loaderData:ue,errors:de}=Ca(w,O,re,void 0,M,ie,se);Pe(k,se),w.navigation.state===`loading`&&k>ne?(Xn(T,`Expected pending action`),A&&A.abort(),le(w.navigation.location,{matches:O,loaderData:ue,errors:de,fetchers:se})):(ce({errors:de,loaderData:wa(w.loaderData,ue,O,de),fetchers:se}),ee=!1)}async function xe(t,n,i,s,c,u,d){let{routeId:f,path:p}=n,m=w.fetchers.get(t);Te(t,Xa(d,m?m.data:void 0),{flushSync:c});let h=new AbortController;o.unstable_customRouteDiscovery&&I.set(t,h);let g=ya(e.history,p,h.signal);if(n.isDiscovering){let e=await We(i,new URL(g.url).pathname,g.signal,t);if(o.unstable_customRouteDiscovery&&g.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){I.delete(t),z.delete(t),Te(t,Qa(m?.data),{flushSync:c});return}if(e.type===`error`){Ee(t,f,e.error,{flushSync:c});return}if(e.matches)i=e.matches,n.isDiscovering=!1;else{Ee(t,f,Oa(404,{pathname:p}),{flushSync:c});return}}let _=Ga(i,p);I.set(t,h);let v=te,y=await U(g,p,ua(a,l,g,p,i,_,r,s),s,t,`fetcher`),b=y[_.route.id];if(!b){for(let e of i)if(y[e.route.id]){b=y[e.route.id];break}}if(I.get(t)===h&&I.delete(t),!g.signal.aborted){if(V.has(t))Te(t,Qa(void 0));else{if(La(b)){if(ne>v){Te(t,Qa(void 0));return}R.add(t),await Se(g,b,!1,`fetcher`,{preventScrollReset:u});return}Ia(b)?Ee(t,f,b.error):Te(t,Qa(b.data))}}}async function Se(r,i,a,o,{submission:c,fetcherSubmission:l,preventScrollReset:u,replace:d}={}){a||(O?.resolve(),O=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ee=!0);let f=i.response.headers.get(`Location`);Xn(f,`Expected a Location header on the redirect Response`);let p=f,m=new URL(r.url);f=va(f,m,s,e.history),Ei(p,f,m,`allow-explicit`);let h=er(w.location,f,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Br(f)){let n=ir(t,f,!0);e=n.origin!==t.location.origin||Rr(n.pathname,s)==null}if(e){d?t.location.replace(f):t.location.assign(f);return}}A=null;let g=d===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:_,formAction:v,formEncType:y}=w.navigation;!c&&!l&&_&&v&&y&&(c=qa(w.navigation));let b=c||l;Mi.has(i.response.status)&&b&&Ua(b.formMethod)?await pe(g,h,{submission:{...b,formAction:f},preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o}):await pe(g,h,{overrideNavigation:Ja(h,[],g,c),fetcherSubmission:l,preventScrollReset:u||k,enableViewTransition:a?j:void 0,dataStrategyInitiator:o})}async function U(e,t,n,r,i,a,o=null){let c,l={};try{c=await da(d,e,t,n,i,a,r,!1,o)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{l[t.route.id]={type:`error`,error:e}}),l}if(e.signal.aborted)return l;if(!Ua(e.method))for(let e of n){if(c[e.route.id]?.type===`error`)break;c.hasOwnProperty(e.route.id)||w.loaderData.hasOwnProperty(e.route.id)||w.errors&&w.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(c[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(c))if(Fa(r)){let i=r.result;l[t]={type:`redirect`,response:ha(i,e,t,n,s)}}else l[t]=await ma(r);return l}async function Ce(e,t,n,r,i,a,o=null){let s=U(n,r,e,i,null,a,o),c=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await U(e.request,e.path,e.matches,i,e.key,a,o))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Oa(404,{pathname:e.path})}})}));return{loaderResults:await s,fetcherResults:(await c).reduce((e,t)=>Object.assign(e,t),{})}}function we(){ee=!0,z.forEach((e,t)=>{o.unstable_customRouteDiscovery&&e.isDiscovering||(I.has(t)&&F.add(t),je(t))})}function Te(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),ce({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Ee(e,t,n,r={}){let i=Ea(w.matches,t),a=new Map(w.fetchers);ke(a,e),ce({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function De(e){return B.set(e,(B.get(e)||0)+1),V.has(e)&&V.delete(e),w.fetchers.get(e)||Pi}function Oe(e,t){je(e,t?.reason),z.delete(e),F.delete(e),Te(e,Qa(null))}function ke(e,t){let n=w.fetchers.get(t);I.has(t)&&!(n&&n.state===`loading`&&L.has(t))&&je(t),z.delete(t),L.delete(t),R.delete(t),V.delete(t),F.delete(t),e.delete(t)}function Ae(e){let t=(B.get(e)||0)-1;t<=0?(B.delete(e),V.add(e)):B.set(e,t),ce({fetchers:new Map(w.fetchers)})}function je(e,t){let n=I.get(e);n&&(n.abort(t),I.delete(e))}function Me(e,t){for(let n of e){let e=t.get(n);Xn(e,`Expected fetcher: ${n}`);let r=Qa(e.data);t.set(n,r)}}function Ne(e){let t=[],n=!1;for(let r of R){let i=e.get(r);Xn(i,`Expected fetcher: ${r}`),i.state===`loading`&&(R.delete(r),t.push(r),n=!0)}return Me(t,e),n}function Pe(e,t){let n=[];for(let[r,i]of L)if(i<e){let e=t.get(r);Xn(e,`Expected fetcher: ${r}`),e.state===`loading`&&(je(r),L.delete(r),n.push(r))}return Me(n,t),n.length>0}function Fe(e,t){let n=w.blockers.get(e)||Fi;return re.get(e)!==t&&re.set(e,t),n}function Ie(e){w.blockers.delete(e),re.delete(e)}function Le(e,t){let n=w.blockers.get(e)||Fi;Xn(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),ce({blockers:r})}function Re({currentLocation:e,nextLocation:t,historyAction:n}){if(re.size===0)return;re.size>1&&Zn(!1,`A router only supports one blocker at a time`);let r=Array.from(re.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function ze(e){let t=Oa(404,{pathname:e}),n=u.activeRoutes,{matches:r,route:i}=Da(n);return{notFoundMatches:r,route:i,error:t}}function Be(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===Ni){_=!0;let e=Ue(w.location,w.matches);e!=null&&ce({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Ve(e,t){return h&&h(e,t.map(e=>_r(e,w.loaderData)))||e.key}function He(e,t){if(m&&g){let n=Ve(e,t);m[n]=g()}}function Ue(e,t){if(m){let n=Ve(e,t),r=m[n];if(typeof r==`number`)return r}return null}function W(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:c.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:c.match(n,!0)}}return{active:!1,matches:null}}async function We(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let s=t;for(;;){let t=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:s,fetcherKey:i,patch:(e,n)=>{r.aborted||Zi(e,n,u,t,a,!1)}})}catch(e){if(o.unstable_customRouteDiscovery){if(r.aborted)return{type:`aborted`};if(e instanceof or)return{type:`cancelled`}}return{type:`error`,error:e,partialMatches:s}}if(r.aborted)return{type:`aborted`};let d=c.match(n),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=c.match(n,!0),!(f&&s.length<f.length&&Ge(s,f.slice(0,s.length))))))return{type:`success`,matches:d};if(f||=c.match(n,!0),!f||Ge(s,f))return{type:`success`,matches:null};s=f}}function Ge(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Ke(e){l={},u.setHmrRoutes(pr(e,a,void 0,l))}function qe(e,t,n=!1){Zi(e,t,u,l,a,n),u.hasHMRRoutes||ce({})}return C={get basename(){return s},get future(){return o},get state(){return w},get routes(){return u.stableRoutes},match(e){return c.match(e)},get manifest(){return l},get window(){return t},initialize:H,subscribe:se,enableScrollRestoration:Be,navigate:de,fetch:ye,revalidate:fe,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,resetFetcher:Oe,deleteFetcher:Ae,dispose:oe,getBlocker:Fe,deleteBlocker:Ie,patchRoutes:qe,_internalFetchControllers:I,_internalSetRoutes:Ke,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ce(e)}},e.instrumentations&&(C=li(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function Hi(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Ui(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Kr(r||`.`,Gr(o),Rr(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Wa(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=zr({basename:n,pathname:c.pathname})),tr(c)}function Wi(e,t,n){if(!n||!Hi(n))return{path:t};if(n.formMethod&&!Ha(n.formMethod))return{path:t,error:Oa(405,{method:n.formMethod})};let r=()=>({path:t,error:Oa(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Aa(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Ua(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Ua(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}Xn(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ba(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ba(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=xa(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=xa(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Ua(c.formMethod))return{path:t,submission:c};let l=nr(t);return e&&l.search&&Wa(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:tr(l),submission:c}}function Gi(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?Ia(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&Ia(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=ni(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!Ki(s))f=!1;else if(u){let{shouldLoad:e}=qi(s,a.loaderData,a.errors);f=e}else Ji(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return la(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?Yi(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return la(n,r,e,c,E,i,l,t,Xi(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=Ga(_,e.path),b=new AbortController,x=ya(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=ua(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=ua(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};Xi(y,a)&&(S=ua(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function Ki(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function qi(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ki(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function Ji(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Yi(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Xi(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Zi(e,t,n,r,i,a){let o;if(e){let t=r[e];Xn(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Qi(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=pr(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=pr([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Qi(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Qi(e,t)))??!1}var $i=new WeakMap,ea=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Xn(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=$i.get(i);o||(o={},$i.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=cr(e),n=i[e]!==void 0;if(t)Zn(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)Zn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},ta=new WeakMap;function na(e,t,n,r,i){let a=n[e.id];if(Xn(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=ta.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{Xn(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=ur(e),o=a[e]!==void 0;i?Zn(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?Zn(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return ta.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=ea({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function ra(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function ia(e){return e.matches.some(e=>e.route.middleware)?aa(e,()=>ra(e)):ra(e)}function aa(e,t){return oa(e,t,e=>{if(Va(e))throw e;return e},Na,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Ea(r,a).route.id]:{type:`error`,result:t}}}}}async function oa(e,t,n,r,i){let{matches:a,...o}=e;return await sa(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function sa(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await sa(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function ca(e,t,n,r,i){let a=ea({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=na(r.route,Ua(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function la(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=ca(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Xi(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Xi(a,{...l,defaultShouldRevalidate:e}):Xi(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Ua(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Ua(n.method)||!p)?fa({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function ua(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?la(e,t,n,r,ni(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:ca(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function da(e,t,n,r,i,a,o,s,c=null){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let l={request:t,url:ri(t,n),pattern:ni(r),params:r[0].params,context:o,matches:r,unstable_initiator:a,unstable_navigationType:a===`navigation`?c:null},u=s?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=l;return aa(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},d=await e({...l,fetcherKey:i,runClientMiddleware:u});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return d}async function fa({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Ua(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ri(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Oa(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Oa(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function pa(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function ma(e){let{result:t,type:n}=e;if(za(t)){let e;try{e=await pa(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new ei(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Ra(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Ma(t),statusCode:ti(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:ti(t)?t.status:void 0}:Ra(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function ha(e,t,n,r,i){let a=e.headers.get(`Location`);if(Xn(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Br(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Ui(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var ga=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function _a(e){try{return ga.includes(new URL(e).protocol)}catch{return!1}}function va(e,t,n,r){if(Br(e)){let r=e,i=Gn.test(r)?new URL(Kn(r,t.protocol)):new URL(r);if(_a(i.toString()))throw Error(`Invalid redirect location`);let a=Rr(i.pathname,n)!=null;if(i.origin===t.origin&&a)return qr(i.pathname)+i.search+i.hash}try{if(_a(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function ya(e,t,n,r){let i=e.createURL(Aa(t)).toString(),a={signal:n};if(r&&Ua(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?ba(r.formData):r.formData}return new Request(i,a)}function ba(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function xa(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Sa(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Ia(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(Xn(!La(f),`Cannot handle redirect results in processLoaderData`),Ia(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Ea(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Li),c||(c=!0,s=ti(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Ca(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Sa(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(Xn(s,`Did not find corresponding fetcher result`),Ia(s)){let t=Ea(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(La(s))Xn(!1,`Unhandled fetcher revalidation redirect`);else{let e=Qa(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function wa(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Li).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function Ta(e){return e?Ia(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ea(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Da(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Oa(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new ei(e||500,o,Error(s),!0)}function ka(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(La(r))return{key:n,result:r}}}function Aa(e){return tr({...typeof e==`string`?nr(e):e,hash:``})}function ja(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Ma(e){return new ei(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Na(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Pa(t))}function Pa(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Fa(e){return za(e.result)&&ji.has(e.result.status)}function Ia(e){return e.type===`error`}function La(e){return(e&&e.type)===`redirect`}function Ra(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function za(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Ba(e){return ji.has(e)}function Va(e){return za(e)&&Ba(e.status)&&e.headers.has(`Location`)}function Ha(e){return Ai.has(e.toUpperCase())}function Ua(e){return Oi.has(e.toUpperCase())}function Wa(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Ga(e,t){let n=typeof t==`string`?nr(t).search:t.search;if(e[e.length-1].route.index&&Wa(n||``))return e[e.length-1];let r=Wr(e);return r[r.length-1]}function Ka(e,t,n){return{url:ri(e.createURL(t),t),pattern:n?ni(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function qa(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ja(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ya(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Xa(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Za(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Qa(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $a(e,t){try{let n=e.sessionStorage.getItem(Ii);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function eo(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ii,JSON.stringify(n))}catch(e){Zn(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function to(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var no=K.createContext(null);no.displayName=`DataRouter`;var ro=K.createContext(null);ro.displayName=`DataRouterState`;var io=K.createContext(null);io.displayName=`DataRouterData`;var ao=K.createContext(null);ao.displayName=`DataRouterNavigation`;var oo=K.createContext(!1);function so(){return K.useContext(oo)}var co=K.createContext({isTransitioning:!1});co.displayName=`ViewTransition`;var lo=K.createContext(null);lo.displayName=`Fetchers`;var uo=K.createContext(null);uo.displayName=`Await`;var fo=K.createContext(null);fo.displayName=`Navigation`;var po=K.createContext(null);po.displayName=`Location`;var mo=K.createContext({outlet:null,matches:[],isDataRoute:!1});mo.displayName=`Route`;var ho=K.createContext(!1);ho.displayName=`IsDataRoute`;var go=K.createContext(void 0);go.displayName=`RouteId`;var _o=K.createContext(null);_o.displayName=`RouteError`;var vo=`REACT_ROUTER_ERROR`,yo=`REDIRECT`,bo=`ROUTE_ERROR_RESPONSE`;function xo(e){if(e.startsWith(`${vo}:${yo}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function So(e){if(e.startsWith(`${vo}:${bo}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ei(t.status,t.statusText,t.data)}catch{}}function Co(e,{relative:t}={}){Xn(wo(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=K.useContext(fo),{hash:i,pathname:a,search:o}=Mo(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Jr([n,a])),r.createHref({pathname:s,search:o,hash:i})}function wo(){return K.useContext(po)!=null}function To(){return Xn(wo(),`useLocation() may be used only in the context of a <Router> component.`),K.useContext(po).location}var Eo=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Do(){return K.useContext(ho)?Yo():Oo()}function Oo(){Xn(wo(),`useNavigate() may be used only in the context of a <Router> component.`);let e=K.useContext(no),{basename:t,navigator:n}=K.useContext(fo),{matches:r}=K.useContext(mo),{pathname:i}=To(),a=JSON.stringify(Gr(r)),o=K.useRef(!1);return K.useLayoutEffect(()=>{o.current=!0}),K.useCallback((r,s={})=>{if(Zn(o.current,Eo),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Kr(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Jr([t,c.pathname])),Ei(typeof r==`string`?r:tr(r),n.createHref(c),Ci(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var ko=K.createContext(null);function Ao(e){let t=K.useContext(mo).outlet;return K.useMemo(()=>t&&K.createElement(ko.Provider,{value:e},t),[t,e])}function jo(){let{matches:e}=K.useContext(mo);return e[e.length-1]?.params??{}}function Mo(e,{relative:t}={}){let{matches:n}=K.useContext(mo),{pathname:r}=To(),i=JSON.stringify(Gr(n));return K.useMemo(()=>Kr(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function No(e,t,n){Xn(wo(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=K.useContext(fo),{matches:i}=K.useContext(mo),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=To(),l;if(t){let e=typeof t==`string`?nr(t):t;Xn(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):hr(e,{pathname:d});let p=Bo(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Jr([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:Jr([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?K.createElement(po.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function Po(){let e=Ko(),t=ti(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return K.createElement(K.Fragment,null,K.createElement(`h2`,null,`Unexpected Application Error!`),K.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?K.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Fo=K.createElement(Po,null),Io=class extends K.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=oo;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=So(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:K.createElement(mo.Provider,{value:this.props.routeContext},K.createElement(ho.Provider,{value:this.props.routeContext.isDataRoute},K.createElement(go.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},K.createElement(_o.Provider,{value:e,children:this.props.component}))));return this.context?K.createElement(Ro,{error:e},t):t}},Lo=new WeakMap;function Ro({children:e,error:t}){let{basename:n,navigator:r}=K.useContext(fo);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=xo(t.digest);if(e){let i=Lo.get(t);if(i)throw i;let a=ai(e.location,n),o=a.absoluteURL||a.to;if(Ei(e.location,o,Ci(r),`allow-explicit`),_a(o))throw Error(`Invalid redirect location`);if(ii&&!Lo.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Lo.set(t,n),n}}return K.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function zo({routeContext:e,match:t,children:n}){let r=K.useContext(no);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),K.createElement(mo.Provider,{value:e},K.createElement(ho.Provider,{value:e.isDataRoute},K.createElement(go.Provider,{value:t.route.id},n)))}function Bo(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Xn(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ni(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Fo,o&&(s<0&&c===0?(Zo(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?K.createElement(n.route.Component,null):n.route.element?n.route.element:e,K.createElement(zo,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?K.createElement(Io,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Vo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ho(e){let t=K.useContext(no);return Xn(t,Vo(e)),t}function Uo(e){let t=K.useContext(ro);return Xn(t,Vo(e)),t}function Wo(e){let t=K.useContext(io);return Xn(t,Vo(e)),t}function Go(e){let t=K.useContext(go);return Xn(t,`${e} can only be used on routes that contain a unique "id"`),t}function Ko(){let e=K.useContext(_o),t=Wo(`useRouteError`),n=Go(`useRouteError`);return e===void 0?t.errors?.[n]:e}var qo=0;function Jo(e){let{router:t,basename:n}=Ho(`useBlocker`),r=Uo(`useBlocker`),[i,a]=K.useState(``),o=K.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:Rr(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:Rr(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return K.useEffect(()=>{let e=String(++qo);return a(e),()=>t.deleteBlocker(e)},[t]),K.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):Fi}function Yo(){let{router:e}=Ho(`useNavigate`),t=Go(`useNavigate`),n=K.useRef(!1);return K.useLayoutEffect(()=>{n.current=!0}),K.useCallback(async(r,i={})=>{Zn(n.current,Eo),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Xo={};function Zo(e,t,n){!t&&!Xo[e]&&(Xo[e]=!0,Zn(!1,n))}function Qo(e,t){if(e===!1||e==null)throw Error(t)}function $o(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function es(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ts(e){return e!=null&&typeof e.page==`string`}function ns(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function rs(e,t,n){return cs((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await es(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ns).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function is(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function as(e,t,{includeHydrateFallback:n}={}){return os(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function os(e){return[...new Set(e)]}function ss(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function cs(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ts(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ss(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var ls={};function us(e,t){!e&&!ls[t]&&(ls[t]=!0,console.warn(t))}var ds=K.createContext(void 0);ds.displayName=`FrameworkContext`;function fs(){let e=K.useContext(ds);return Qo(e,`You must render this element inside a <HydratedRouter> element`),e}function ps(e,t){let n=K.useContext(ds),[r,i]=K.useState(!1),[a,o]=K.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=K.useRef(null);K.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),K.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ms(s,p),onBlur:ms(c,m),onMouseEnter:ms(l,p),onMouseLeave:ms(u,m),onTouchStart:ms(d,p)}]:[a,f,{}]:[!1,f,{}]}function ms(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hs({page:e,...t}){let n=so(),{nonce:r}=fs(),{router:i}=Ho(`PrefetchPageLinks`),a=K.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?K.createElement(_s,{page:e,matches:a,...t}):K.createElement(vs,{page:e,matches:a,...t})):null}function gs(e){let{manifest:t,routeModules:n}=fs(),[r,i]=K.useState([]);return K.useEffect(()=>{let r=!1;return rs(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function _s({page:e,matches:t,...n}){let r=To(),{unstable_apiServerOrigin:i}=fs(),a=K.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=$o(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return K.createElement(K.Fragment,null,a.map(e=>K.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function vs({page:e,matches:t,...n}){let r=To(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=fs(),{matches:s}=Uo(`PrefetchPageLinks`),{loaderData:c}=Wo(`PrefetchPageLinks`),l=K.useMemo(()=>is(e,t,s,i,r,`data`),[e,t,s,i,r]),u=K.useMemo(()=>is(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=K.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=$o(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=K.useMemo(()=>as(u,i),[u,i]),p=gs(u);return K.createElement(K.Fragment,null,d.map(e=>K.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>K.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>K.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ys(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var bs=[`HydrateFallback`,`hydrateFallbackElement`],xs=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Ss({router:e,flushSync:t,onError:n,useTransitions:r}){r=so()||r;let[i,a]=K.useState(e.state),[o,s]=(0,K.useOptimistic)(i),c=K.useRef(o),[l,u]=K.useState(),[d,f]=K.useState({isTransitioning:!1}),[p,m]=K.useState(),[h,g]=K.useState(),[_,v]=K.useState(),y=K.useRef(new Map),b=K.useRef(new WeakSet),x=K.useCallback((i,{deletedFetchers:o,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{c.current=i,l&&i.errors&&Bi.has(i.errors)&&(b.current.has(i.errors)?l=null:b.current.add(i.errors)),l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:ni(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),us(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let x=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(us(_==null||x,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!x)t&&d?t(()=>a(i)):r===!1?a(i):K.startTransition(()=>{r===!0&&s(e=>Cs(e,i)),a(i)});else if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n))}else h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);K.useLayoutEffect(()=>e.subscribe(x),[e,x]),K.useLayoutEffect(()=>{let t=e.state.errors,n=t?Bi.get(t):null;(c.current!==e.state||t&&n&&!b.current.has(t))&&x(e.state,{deletedFetchers:[],flushSync:!1,newErrors:n??null})},[e,x]),K.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new xs)},[d]),K.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):K.startTransition(()=>{r===!0&&s(e=>Cs(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,s]),K.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,h,o.location,l]),K.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let S=K.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),C=e.basename||`/`,w=K.useMemo(()=>({router:e,navigator:S,static:!1,basename:C,onError:n}),[e,S,C,n]),T=K.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),E=K.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),D=K.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),O=K.useMemo(()=>({fetchers:o.fetchers,fetcherData:y.current}),[o.fetchers]);return K.createElement(K.Fragment,null,K.createElement(no.Provider,{value:w},K.createElement(ro.Provider,{value:T},K.createElement(ao.Provider,{value:E},K.createElement(io.Provider,{value:D},K.createElement(lo.Provider,{value:O},K.createElement(co.Provider,{value:d},K.createElement(Os,{basename:C,location:o.location,navigationType:o.historyAction,navigator:S,useTransitions:r},K.createElement(ws,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function Cs(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var ws=K.memo(Ts);function Ts({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=K.useContext(no);Xn(a,`You must render this element inside a <DataRouterContext.Provider> element`);let o=K.useContext(ds)?.routeDiscoveryRuntime;return K.useEffect(()=>{n.initialized&&o?.markReady()},[n.initialized,o]),No(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function Es({to:e,replace:t,state:n,relative:r}){Xn(wo(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=K.useContext(fo);Zn(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=K.useContext(mo),{pathname:s}=To(),c=Do(),l=Kr(e,Gr(o),s,r===`path`);Ei(typeof e==`string`?e:tr(e),a.createHref(l),Ci(a),`reject`);let u=JSON.stringify(l);return K.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Ds(e){return Ao(e.context)}function Os({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Xn(!wo(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=K.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=nr(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=K.useMemo(()=>{let e=Rr(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Zn(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:K.createElement(fo.Provider,{value:c},K.createElement(po.Provider,{children:t,value:h}))}K.Component;var ks=`application/x-www-form-urlencoded`;function As(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function js(e){return As(e)&&e.tagName.toLowerCase()===`button`}function Ms(e){return As(e)&&e.tagName.toLowerCase()===`form`}function Ns(e){return As(e)&&e.tagName.toLowerCase()===`input`}function Ps(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fs(e,t){return e.button===0&&(!t||t===`_self`)&&!Ps(e)}function Is(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Ls(e,t){let n=Is(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Rs=null;function zs(){if(Rs===null)try{new FormData(document.createElement(`form`),0),Rs=!1}catch{Rs=!0}return Rs}var Bs=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Vs(e){return e!=null&&!Bs.has(e)?(Zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ks}"`),null):e}function Hs(e,t){let n,r,i,a,o;if(Ms(e)){let o=e.getAttribute(`action`);r=o?Rr(o,t):null,n=e.getAttribute(`method`)||`get`,i=Vs(e.getAttribute(`enctype`))||ks,a=new FormData(e)}else if(js(e)||Ns(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Rr(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Vs(e.getAttribute(`formenctype`))||Vs(o.getAttribute(`enctype`))||ks,a=new FormData(o,e),!zs()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(As(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=ks,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Us=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Us&&(window.__reactRouterVersion=`8`)}catch{}function Ws(e,t){return Vi({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Yn({window:t?.window}),hydrationData:t?.hydrationData||Gs(),routes:e,mapRouteProperties:fr,hydrationRouteProperties:bs,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Gs(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ks(e.errors)}),e}function Ks(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new ei(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&$r.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var qs=K.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=K.useContext(fo),v=typeof l==`string`&&Wn.test(l),y=ai(l,h);l=y.to;let b=Co(l,{relative:r}),x=To(),S=null;if(o){let e=Kr(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Jr([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=ps(n,p),E=Xs(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=K.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:ys(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?K.createElement(K.Fragment,null,k,K.createElement(hs,{page:b})):k});qs.displayName=`Link`;var Js=K.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Mo(a,{relative:c.relative}),d=To(),f=K.useContext(ao),{navigator:p,basename:m}=K.useContext(fo),h=f!=null&&nc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Rr(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return K.createElement(qs,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Js.displayName=`NavLink`;var Ys=K.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=K.useContext(fo),g=ec(),_=tc(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Wn.test(s);return K.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?K.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ys.displayName=`Form`;function Xs(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Do(),d=To(),f=Mo(e,{relative:o});return K.useCallback(p=>{if(Fs(p,t)){p.preventDefault();let t=n===void 0?tr(d)===tr(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?K.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Zs(e){Zn(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=K.useRef(Is(e)),n=K.useRef(!1),r=To(),i=K.useMemo(()=>Ls(r.search,n.current?null:t.current),[r.search]),a=Do();return[i,K.useCallback((e,t)=>{let r=Is(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Qs=0,$s=()=>`__${String(++Qs)}__`;function ec(){let{router:e}=Ho(`useSubmit`),{basename:t}=K.useContext(fo),n=Go(`useSubmit`),r=e.fetch,i=e.navigate;return K.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Hs(e,t);a.navigate===!1?await r(a.fetcherKey||$s(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function tc(e,{relative:t}={}){let{basename:n}=K.useContext(fo),r=K.useContext(mo);Xn(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Mo(e||`.`,{relative:t})},o=To();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Jr([n,a.pathname])),tr(a)}function nc(e,{relative:t}={}){let n=K.useContext(co);Xn(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ho(`useViewTransitionState`),i=Mo(e,{relative:t});if(!n.isTransitioning)return!1;let a=Rr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Rr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pr(i.pathname,o)!=null||Pr(i.pathname,a)!=null}var rc=it(ut(),1);function ic(e){return K.createElement(Ss,{flushSync:rc.flushSync,...e})}var ac=ft(),oc=class extends Error{status;constructor(e,t){super(e),this.status=t}};async function sc(e,t,n){let r=await fetch(t,{method:e,headers:{...n!==void 0&&{"Content-Type":`application/json`},...e!==`GET`&&{"X-AsRun-Ui":`1`}},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.json().catch(()=>({}));if(!r.ok)throw new oc(i.error??`Request failed (${r.status})`,r.status);return i}var cc={info:()=>sc(`GET`,`/api/info`),profiles:()=>sc(`GET`,`/api/profiles`),addProfile:e=>sc(`POST`,`/api/profiles`,e),editProfile:(e,t)=>sc(`PUT`,`/api/profiles/${encodeURIComponent(e)}`,t),verifyProfiles:e=>sc(`POST`,`/api/profiles/verify`,e??{}),logoutProfile:e=>sc(`POST`,`/api/profiles/logout`,{profile:e}),deleteProfile:e=>sc(`DELETE`,`/api/profiles/${encodeURIComponent(e)}`),cases:()=>sc(`GET`,`/api/cases`),case:e=>sc(`GET`,`/api/cases/${e}`),saveCase:(e,t,n)=>sc(`PUT`,`/api/cases/${e}`,{content:t,mtimeMs:n}),spec:e=>sc(`GET`,`/api/specs/${e}`),saveSpec:(e,t,n)=>sc(`PUT`,`/api/specs/${e}`,{content:t,mtimeMs:n}),openSpec:e=>sc(`POST`,`/api/spec-open`,{id:e}),caseImpact:e=>sc(`GET`,`/api/case-impact/${e}`),renameCase:(e,t)=>sc(`POST`,`/api/case-rename`,{id:e,to:t}),deleteCase:e=>sc(`DELETE`,`/api/cases/${e}`),createCase:e=>sc(`POST`,`/api/cases`,{id:e}),baselines:e=>sc(`GET`,`/api/baselines?case=${encodeURIComponent(e)}`),reports:()=>sc(`GET`,`/api/reports`),reportSummary:e=>sc(`GET`,`/api/reports/${e}/summary`),previewRun:e=>sc(`POST`,`/api/runs/preview`,e),planRun:e=>sc(`POST`,`/api/runs/plan`,e),jobs:()=>sc(`GET`,`/api/jobs`),aiModels:(e,t=!1)=>sc(`GET`,`/api/ai/models?tool=${encodeURIComponent(e)}${t?`&refresh=1`:``}`),startJob:e=>sc(`POST`,`/api/jobs`,e),sendInput:(e,t)=>sc(`POST`,`/api/jobs/${e}/input`,{text:t}),cancelJob:e=>sc(`POST`,`/api/jobs/${e}/cancel`)},lc=[`claude`,`opencode`],uc=`claude`,dc={claude:`Claude`,opencode:`OpenCode`},fc=[`explore-case`,`gen-spec`,`heal-spec`],pc={"explore-case":`Explore case`,"gen-spec":`Generate spec`,"heal-spec":`Heal spec`},mc={"explore-case":`case`,"gen-spec":`spec`,"heal-spec":`files`},hc={"explore-case":`Where the agent explores. It only reads; with Attended on, you do the steps that write data.`,"gen-spec":`Where the agent explores and verifies the spec.`,"heal-spec":`Where the failing spec is diagnosed. Only the profiles that are logged in there are run.`},gc=(e,t,n)=>{let{env:r,force:i,attended:a,profiles:o,hints:s,report:c}=n,l=e===`heal-spec`;return`/${e} ${t} ${r}${i&&e===`gen-spec`?` --force`:``}${a&&e===`explore-case`?` --attended`:``}${l&&o?.length?` --profiles ${o.join(`,`)}`:``}${l&&c?` --report ${c}`:``}${l&&s?` --hints ${s}`:``}`},_c=`mcp__playwright-test__*`;function vc(e){let t=`Bash(node --import tsx:*)`,n=[`Bash(pnpm case:check:*)`,t],r=[_c,`Bash(pnpm status:*)`,`Bash(pnpm pdf:render:*)`,...n];if(e===`case`)return[...r,`Edit(/cases/**)`];if(e===`cases-new`)return[...n,`Edit(/cases/**)`];let i=[...r,`Edit(/cases/**)`,`Edit(/tests/**)`,`Bash(pnpm typecheck:*)`,`Bash(pnpm spec:lint:*)`,t,`Bash(pnpm baselines:review:*)`];return e===`spec`?i:[...i,`Bash(pnpm asrun:*)`,`Bash(pnpm heal:evidence:*)`]}var yc=[`Bash(*--allow-writes*)`,`Bash(*ASRUN_ALLOW_WRITES*)`],bc={claude:[`--output-format`,`stream-json`,`--verbose`],opencode:[`--format`,`json`]};function xc(e,t,n,r,i,a){return e===`opencode`?{file:`opencode`,args:[`run`,`--auto`,...bc.opencode,...r?[`-s`,r.id]:[],...i?[`--model`,i]:[],...a?[`--thinking`]:[],t]}:{file:`claude`,args:[`-p`,t,...bc.claude,...r?[r.resume?`--resume`:`--session-id`,r.id]:[],...n===`files`||n===`spec`?[`--permission-mode`,`acceptEdits`]:[],...i?[`--model`,i]:[],`--allowedTools`,...vc(n),`--disallowedTools`,...yc]}}var Sc=({file:e,args:t})=>[e,...t.map(e=>/^[\w@=,.:/-]+$/.test(e)?e:JSON.stringify(e))].join(` `),Cc=`Non-interactive run: nobody can answer questions, so do not stop to ask. Write open questions into the case file as the skill describes and end with the RESULT: line.`,wc=`Attended run: a person is at the machine and the browser window is visible, so hand steps that write data or need a choice to them and wait, as the skill describes. Start every handoff (also a second one in the same run) with its own call that sets __handoffCfg, before the call that runs handoff-card.js, and never change those options inside the call that runs the card: the web UI sees that a person is needed only from that call, so without it there is no "Your turn" badge and no notification. Nobody can answer questions in the chat, so write open questions into the case file as the skill describes and end with the RESULT: line.`;function Tc(e,t,n){let r=gc(e,t,n);return e===`heal-spec`?r:e===`explore-case`&&n.attended?`${r} ${wc}`:`${r} ${Cc}`}function Ec(e,t,n,r,i){return xc(e,Tc(t,n,r),mc[t],i,r.model,r.thinking)}function Dc(e,t,n,r,i){return Sc(Ec(e,t,n,r,i))}var Oc=8e3,kc=4e3,Ac=`Accept the suggestion of every open question: delete its TODO block and keep the sentence above it as confirmed text.`,jc=1e5,Mc=e=>`/make-case ${e} Non-interactive run: nobody can answer questions, so do not stop to ask. Do not open a browser or explore pages. Write the suggested default of every gap as a normal sentence and put a TODO block with an empty Answer: line under it, as open-questions.md describes (every marker starts with its emoji). Never overwrite an existing case: choose a new id instead. Put the cases of one area in a group folder (cases/<group>/<name>.md, id <group>/<name>), reusing an existing folder when it fits. Write the cases, run pnpm case:check, and list the open questions in your final report.`,Nc=(e,t,n,r)=>xc(e,Mc(t),`cases-new`,void 0,n,r),Pc=(e,t,n,r)=>Sc(Nc(e,t,n,r));function Fc(e,t){return e.find(e=>e.continuesJobId===t&&(e.status===`running`||e.status===`succeeded`))}var Ic=`asrun-ui.notify`,Lc=new Set,Rc=!1,zc=()=>typeof Notification<`u`,Bc=()=>{try{return localStorage.getItem(Ic)===`true`}catch{return!1}},Vc=e=>(Lc.add(e),window.addEventListener(`storage`,e),()=>{Lc.delete(e),window.removeEventListener(`storage`,e)}),Hc=()=>zc()?Notification.permission:`unsupported`,Uc=()=>(0,K.useSyncExternalStore)(Vc,Bc),Wc=()=>(Uc(),Hc()),Gc=()=>(0,K.useSyncExternalStore)(Vc,()=>Rc);function Kc(e){try{localStorage.setItem(Ic,String(e))}catch{}Lc.forEach(e=>e())}function qc(){Rc||(Rc=!0,Lc.forEach(e=>e()))}function Jc(e,t,n,r={}){if(!Xc())return null;try{let i=new Notification(e,{body:t,tag:n,...r.sticky&&{requireInteraction:!0}});return i.onerror=qc,i.onclick=()=>{window.focus(),i.close(),r.onClick?.()},i}catch(e){return qc(),console.warn(`Could not show a browser notification:`,e),null}}async function Yc(e){if(!e)return Kc(!1);if(!zc())return;Notification.permission==="default"&&await Notification.requestPermission();let t=Notification.permission===`granted`;Kc(t),t&&Jc(`Notifications are on`,`You are told here when it is your turn, and when a run ends. Only while this tab is in the background.`,`${Ic}:hello`)}var Xc=()=>Bc()&&Hc()===`granted`,Zc=e=>[e.profile,e.env].filter(Boolean).join(` @ `),Qc=e=>{if(e.caseId)return e.caseId;let t=/--grep=(?:"([^"]+)"|(\S+))/.exec(e.command);return t?t[1]??t[2]:e.command},$c=()=>document.visibilityState===`hidden`||!document.hasFocus();function el(e,t){let n=[];for(let r of e)r.status===`running`&&r.kind===`signin`?n.push({key:`${r.id}:signin`,jobId:r.id,kind:`signin`,title:`Your turn: log in`,body:`Log in${Zc(r)?` to ${Zc(r)}`:``} in the browser window, then press "Done, save the session" on the card in it.`}):r.status===`running`&&r.awaitingUser?n.push({key:`${r.id}:handoff:${r.awaitingUser.since}`,jobId:r.id,kind:`handoff`,title:`Your turn in the browser window`,body:r.awaitingUser.message??`Do the step, then press Done on the card.`}):r.status===`succeeded`&&r.resultState===`needs-input`&&!t.has(r.id)&&!Fc(e,r.id)&&n.push({key:`${r.id}:needs-input`,jobId:r.id,kind:`needs-input`,title:`The agent needs your answers`,body:r.caseId?`Open questions in ${r.caseId}.`:`There are open questions in the case file.`});return n}function tl(e,t){if(e.kind!==`run`&&e.kind!==`ai`||e.status===`running`||e.resultState===`needs-input`||!$c()||!Xc())return;let n=Zc(e),r=e.status===`succeeded`?e.kind===`run`?`passed`:`finished`:e.status===`cancelled`?`cancelled`:`failed${e.exitCode===null?``:` (exit ${e.exitCode})`}`,i=e.kind===`ai`&&e.aiCommand?pc[e.aiCommand]:``;Jc(`${e.kind===`run`?`Run`:`AI run`} finished: ${Qc(e)}`,[i,r,n].filter(Boolean).join(` · `),`${e.id}:finished`,{onClick:()=>t(e.id)})}function nl(e,t,n){(0,K.useEffect)(()=>{if(!e)return;let r=()=>{!document.hidden&&document.hasFocus()&&n?.find(t=>t.id===e)?.status!==`running`&&t(e)};return r(),window.addEventListener(`focus`,r),document.addEventListener(`visibilitychange`,r),()=>{window.removeEventListener(`focus`,r),document.removeEventListener(`visibilitychange`,r)}},[e,t,n])}function rl(e,t,n){let r=(0,K.useMemo)(()=>el(e??[],t),[e,t]),i=(0,K.useRef)(null),a=(0,K.useRef)(new Map),o=(0,K.useRef)(new Map),s=(0,K.useCallback)(()=>{if($c()&&Xc())for(let[e,t]of a.current){a.current.delete(e),i.current?.add(e);let r=Jc(t.title,t.body,e,{sticky:!0,onClick:()=>n(t.jobId)});r&&o.current.set(e,r)}},[n]);return(0,K.useEffect)(()=>{let e=()=>s();return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,e),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,e)}},[s]),(0,K.useEffect)(()=>{if(!e)return;let t=i.current===null,n=i.current??new Set;i.current=n;let c=new Set(r.map(e=>e.key));for(let e of a.current.keys())c.has(e)||a.current.delete(e);for(let[e,t]of o.current)c.has(e)||(t.close(),o.current.delete(e));for(let e of r)n.has(e.key)||(t?n.add(e.key):a.current.set(e.key,e));s()},[e,r,s]),r}var il=`AsRun`,al=il,ol=[{prefix:`/profiles`,title:`Profiles`},{prefix:`/cases`,title:`Cases`},{prefix:`/run`,title:`Run tests`},{prefix:`/reports`,title:`Reports`},{prefix:`/guide`,title:`AI guide`},{prefix:`/help`,title:`Help`},{prefix:`/jobs`,title:`Job Log`}],sl=(e,t)=>e===t||e.startsWith(`${t}/`);function cl(e){let t=ol.find(t=>sl(e,t.prefix));if(!t)return al;if(t.prefix===`/cases`){let n=decodeURIComponent(e.slice(7));if(n===`memo`)return`${al} | ${t.title} | From memo`;if(n)return`${al} | ${t.title} | ${n}`}return`${al} | ${t.title}`}function ll(e,t){(0,K.useEffect)(()=>{document.title=`${t>0?`(${t}) `:``}${cl(e)}`},[e,t])}var ul={info:[`info`],profiles:[`profiles`],cases:[`cases`],caseDetails:[`case`],case:e=>[`case`,e],specs:[`spec`],spec:e=>[`spec`,e],reports:[`reports`],reportSummary:e=>[`report-summary`,e],jobs:[`jobs`],aiModels:e=>[`ai-models`,e]},dl=()=>Hn({queryKey:ul.info,queryFn:cc.info}),fl=()=>Hn({queryKey:ul.profiles,queryFn:cc.profiles,refetchInterval:e=>e.state.data?.verifying?1500:!1}),pl=()=>Hn({queryKey:ul.cases,queryFn:cc.cases}),ml=()=>Hn({queryKey:ul.reports,queryFn:cc.reports,placeholderData:Bt}),hl=()=>Hn({queryKey:ul.jobs,queryFn:cc.jobs,refetchInterval:e=>e.state.data?.some(e=>e.status===`running`)?3e3:!1}),gl=e=>Hn({queryKey:ul.reportSummary(e),queryFn:()=>cc.reportSummary(e),retry:!1}),_l=e=>Hn({queryKey:ul.aiModels(e),queryFn:()=>cc.aiModels(e),staleTime:3e5,retry:!1}),vl=`asrun-ui.jobs.seen`,yl=(0,K.createContext)(null),bl=()=>{let e=(0,K.useContext)(yl);if(!e)throw Error(`JobsProvider is missing`);return e};function xl({children:e}){let t=gt(),[n,r]=(0,K.useState)(null),[i,a]=(0,K.useState)(!1),[o,s]=(0,K.useState)(!1),[c,l]=(0,K.useState)(null),u=(0,K.useCallback)(e=>{e.kind===`signin`&&t.invalidateQueries({queryKey:ul.profiles}),e.kind===`ai`&&(t.invalidateQueries({queryKey:ul.cases}),t.invalidateQueries({queryKey:ul.caseDetails}),t.invalidateQueries({queryKey:ul.specs}),t.invalidateQueries({queryKey:ul.reports}),t.invalidateQueries({queryKey:ul.profiles})),e.kind===`run`&&(t.invalidateQueries({queryKey:ul.reports}),t.invalidateQueries({queryKey:ul.profiles}))},[t]);(0,K.useEffect)(()=>{let e=new EventSource(`/api/events`),n=!1;return e.onopen=()=>{n&&t.invalidateQueries(),n=!0},e.addEventListener(`job`,e=>{let n=JSON.parse(e.data);t.invalidateQueries({queryKey:ul.jobs}),n.status!==`running`&&u(n)}),e.addEventListener(`files`,e=>{let n=JSON.parse(e.data);n.cases&&(t.invalidateQueries({queryKey:ul.cases}),t.invalidateQueries({queryKey:ul.caseDetails})),n.specs&&(t.invalidateQueries({queryKey:ul.cases}),t.invalidateQueries({queryKey:ul.specs}))}),()=>e.close()},[t,u]);let d=hl().data,f=(0,K.useRef)(null),p=(0,K.useRef)(d);(0,K.useEffect)(()=>{p.current=d},[d]);let[m,h]=(0,K.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(vl)??`[]`);return new Set(Array.isArray(e)?e.filter(e=>typeof e==`string`):[])}catch{return new Set}}),g=(0,K.useCallback)(e=>{p.current?.find(t=>t.id===e)?.status!==`running`&&h(t=>{if(t.has(e))return t;let n=new Set(t).add(e);try{localStorage.setItem(vl,JSON.stringify([...n].slice(-100)))}catch{}return n})},[]),_=(0,K.useCallback)(e=>{r(e),e&&(a(!0),g(e))},[g]);(0,K.useEffect)(()=>{if(!d)return;let e=f.current;if(f.current=new Set(d.filter(e=>e.status===`running`).map(e=>e.id)),e)for(let t of d)e.has(t.id)&&t.status!==`running`&&(u(t),tl(t,_))},[d,u,_]);let v=rl(d,m,_);nl(i?n:null,g,d);let{pathname:y}=To();ll(y,v.length);let b=Un({mutationFn:cc.startJob}),x=(0,K.useCallback)(async e=>{l(null);try{let n=await b.mutateAsync(e);return r(n.id),a(!0),t.invalidateQueries({queryKey:ul.jobs}),n}catch(e){return l(e.message),a(!0),null}},[b,t]),S=(0,K.useMemo)(()=>({attention:v,markSeen:g,selectedJobId:n,drawerOpen:i,drawerMaximized:o,selectJob:_,setDrawerOpen:a,setDrawerMaximized:s,startJob:x,startError:c,clearStartError:()=>l(null)}),[v,g,n,i,o,_,x,c]);return(0,q.jsx)(yl.Provider,{value:S,children:e})}var Sl=tt(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Cl=tt(((e,t)=>{var n=Sl();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),J=it(tt(((e,t)=>{t.exports=Cl()()}))());function wl(){return wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wl.apply(this,arguments)}function Tl(e,t){if(e==null)return{};var n=El(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function El(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dl=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Tl(e,[`color`,`size`]);return K.createElement(`svg`,wl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),K.createElement(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`}))});Dl.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Dl.displayName=`AlertCircle`;function Ol(){return Ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(this,arguments)}function kl(e,t){if(e==null)return{};var n=Al(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Al(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jl=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=kl(e,[`color`,`size`]);return K.createElement(`svg`,Ol({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),K.createElement(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),K.createElement(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`}))});jl.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},jl.displayName=`AlertTriangle`;function Ml(){return Ml=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function Nl(e,t){if(e==null)return{};var n=Pl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fl=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Nl(e,[`color`,`size`]);return K.createElement(`svg`,Ml({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`21 8 21 21 3 21 3 8`}),K.createElement(`rect`,{x:`1`,y:`3`,width:`22`,height:`5`}),K.createElement(`line`,{x1:`10`,y1:`12`,x2:`14`,y2:`12`}))});Fl.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Fl.displayName=`Archive`;function Il(){return Il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}function Ll(e,t){if(e==null)return{};var n=Rl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zl=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ll(e,[`color`,`size`]);return K.createElement(`svg`,Il({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),K.createElement(`polyline`,{points:`12 5 19 12 12 19`}))});zl.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},zl.displayName=`ArrowRight`;function Bl(){return Bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bl.apply(this,arguments)}function Vl(e,t){if(e==null)return{};var n=Hl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ul=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Vl(e,[`color`,`size`]);return K.createElement(`svg`,Bl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),K.createElement(`polyline`,{points:`7 7 17 7 17 17`}))});Ul.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Ul.displayName=`ArrowUpRight`;function Wl(){return Wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wl.apply(this,arguments)}function Gl(e,t){if(e==null)return{};var n=Kl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ql=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Gl(e,[`color`,`size`]);return K.createElement(`svg`,Wl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`}),K.createElement(`path`,{d:`M18.63 13A17.89 17.89 0 0 1 18 8`}),K.createElement(`path`,{d:`M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14`}),K.createElement(`path`,{d:`M18 8a6 6 0 0 0-9.33-5`}),K.createElement(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`}))});ql.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},ql.displayName=`BellOff`;function Jl(){return Jl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jl.apply(this,arguments)}function Yl(e,t){if(e==null)return{};var n=Xl(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xl(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zl=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Yl(e,[`color`,`size`]);return K.createElement(`svg`,Jl({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9`}),K.createElement(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`}))});Zl.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Zl.displayName=`Bell`;function Ql(){return Ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ql.apply(this,arguments)}function $l(e,t){if(e==null)return{};var n=eu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=$l(e,[`color`,`size`]);return K.createElement(`svg`,Ql({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`9 11 12 14 22 4`}),K.createElement(`path`,{d:`M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11`}))});tu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},tu.displayName=`CheckSquare`;function nu(){return nu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nu.apply(this,arguments)}function ru(e,t){if(e==null)return{};var n=iu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var au=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ru(e,[`color`,`size`]);return K.createElement(`svg`,nu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`20 6 9 17 4 12`}))});au.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},au.displayName=`Check`;function ou(){return ou=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(this,arguments)}function su(e,t){if(e==null)return{};var n=cu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=su(e,[`color`,`size`]);return K.createElement(`svg`,ou({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`6 9 12 15 18 9`}))});lu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},lu.displayName=`ChevronDown`;function uu(){return uu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}function du(e,t){if(e==null)return{};var n=fu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=du(e,[`color`,`size`]);return K.createElement(`svg`,uu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`15 18 9 12 15 6`}))});pu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},pu.displayName=`ChevronLeft`;function mu(){return mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mu.apply(this,arguments)}function hu(e,t){if(e==null)return{};var n=gu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _u=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=hu(e,[`color`,`size`]);return K.createElement(`svg`,mu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`9 18 15 12 9 6`}))});_u.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},_u.displayName=`ChevronRight`;function vu(){return vu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vu.apply(this,arguments)}function yu(e,t){if(e==null)return{};var n=bu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=yu(e,[`color`,`size`]);return K.createElement(`svg`,vu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`18 15 12 9 6 15`}))});xu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},xu.displayName=`ChevronUp`;function Su(){return Su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}function Cu(e,t){if(e==null)return{};var n=wu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Cu(e,[`color`,`size`]);return K.createElement(`svg`,Su({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`}),K.createElement(`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,ry:`1`}))});Tu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Tu.displayName=`Clipboard`;function Eu(){return Eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function Du(e,t){if(e==null)return{};var n=Ou(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ou(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ku=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Du(e,[`color`,`size`]);return K.createElement(`svg`,Eu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`polygon`,{points:`16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76`}))});ku.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},ku.displayName=`Compass`;function Au(){return Au=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Au.apply(this,arguments)}function ju(e,t){if(e==null)return{};var n=Mu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Nu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ju(e,[`color`,`size`]);return K.createElement(`svg`,Au({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),K.createElement(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`}))});Nu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Nu.displayName=`Copy`;function Pu(){return Pu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}function Fu(e,t){if(e==null)return{};var n=Iu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Lu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Fu(e,[`color`,`size`]);return K.createElement(`svg`,Pu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`15 10 20 15 15 20`}),K.createElement(`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`}))});Lu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Lu.displayName=`CornerDownRight`;function Ru(){return Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}function zu(e,t){if(e==null)return{};var n=Bu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Vu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=zu(e,[`color`,`size`]);return K.createElement(`svg`,Ru({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,ry:`2`}),K.createElement(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`}),K.createElement(`line`,{x1:`9`,y1:`1`,x2:`9`,y2:`4`}),K.createElement(`line`,{x1:`15`,y1:`1`,x2:`15`,y2:`4`}),K.createElement(`line`,{x1:`9`,y1:`20`,x2:`9`,y2:`23`}),K.createElement(`line`,{x1:`15`,y1:`20`,x2:`15`,y2:`23`}),K.createElement(`line`,{x1:`20`,y1:`9`,x2:`23`,y2:`9`}),K.createElement(`line`,{x1:`20`,y1:`14`,x2:`23`,y2:`14`}),K.createElement(`line`,{x1:`1`,y1:`9`,x2:`4`,y2:`9`}),K.createElement(`line`,{x1:`1`,y1:`14`,x2:`4`,y2:`14`}))});Vu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Vu.displayName=`Cpu`;function Hu(){return Hu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hu.apply(this,arguments)}function Uu(e,t){if(e==null)return{};var n=Wu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Gu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Uu(e,[`color`,`size`]);return K.createElement(`svg`,Hu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`line`,{x1:`22`,y1:`12`,x2:`18`,y2:`12`}),K.createElement(`line`,{x1:`6`,y1:`12`,x2:`2`,y2:`12`}),K.createElement(`line`,{x1:`12`,y1:`6`,x2:`12`,y2:`2`}),K.createElement(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`18`}))});Gu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Gu.displayName=`Crosshair`;function Ku(){return Ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}function qu(e,t){if(e==null)return{};var n=Ju(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ju(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Yu=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=qu(e,[`color`,`size`]);return K.createElement(`svg`,Ku({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z`}))});Yu.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Yu.displayName=`Edit2`;function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xu.apply(this,arguments)}function Zu(e,t){if(e==null)return{};var n=Qu(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qu(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $u=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Zu(e,[`color`,`size`]);return K.createElement(`svg`,Xu({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),K.createElement(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`}))});$u.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},$u.displayName=`Edit`;function ed(){return ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ed.apply(this,arguments)}function td(e,t){if(e==null)return{};var n=nd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var rd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=td(e,[`color`,`size`]);return K.createElement(`svg`,ed({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),K.createElement(`polyline`,{points:`15 3 21 3 21 9`}),K.createElement(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`}))});rd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},rd.displayName=`ExternalLink`;function id(){return id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},id.apply(this,arguments)}function ad(e,t){if(e==null)return{};var n=od(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function od(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var sd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ad(e,[`color`,`size`]);return K.createElement(`svg`,id({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z`}),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`3`}))});sd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},sd.displayName=`Eye`;function cd(){return cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cd.apply(this,arguments)}function ld(e,t){if(e==null)return{};var n=ud(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ud(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ld(e,[`color`,`size`]);return K.createElement(`svg`,cd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z`}),K.createElement(`line`,{x1:`16`,y1:`8`,x2:`2`,y2:`22`}),K.createElement(`line`,{x1:`17.5`,y1:`15`,x2:`9`,y2:`15`}))});dd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},dd.displayName=`Feather`;function fd(){return fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(this,arguments)}function pd(e,t){if(e==null)return{};var n=md(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function md(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var hd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=pd(e,[`color`,`size`]);return K.createElement(`svg`,fd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),K.createElement(`polyline`,{points:`14 2 14 8 20 8`}),K.createElement(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`12`}),K.createElement(`line`,{x1:`9`,y1:`15`,x2:`15`,y2:`15`}))});hd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},hd.displayName=`FilePlus`;function gd(){return gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(this,arguments)}function _d(e,t){if(e==null)return{};var n=vd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=_d(e,[`color`,`size`]);return K.createElement(`svg`,gd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),K.createElement(`polyline`,{points:`14 2 14 8 20 8`}),K.createElement(`line`,{x1:`16`,y1:`13`,x2:`8`,y2:`13`}),K.createElement(`line`,{x1:`16`,y1:`17`,x2:`8`,y2:`17`}),K.createElement(`polyline`,{points:`10 9 9 9 8 9`}))});yd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},yd.displayName=`FileText`;function bd(){return bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(this,arguments)}function xd(e,t){if(e==null)return{};var n=Sd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=xd(e,[`color`,`size`]);return K.createElement(`svg`,bd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z`}),K.createElement(`line`,{x1:`4`,y1:`22`,x2:`4`,y2:`15`}))});Cd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Cd.displayName=`Flag`;function wd(){return wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}function Td(e,t){if(e==null)return{};var n=Ed(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ed(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Td(e,[`color`,`size`]);return K.createElement(`svg`,wd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`}))});Dd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Dd.displayName=`Folder`;function Od(){return Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function kd(e,t){if(e==null)return{};var n=Ad(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ad(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=kd(e,[`color`,`size`]);return K.createElement(`svg`,Od({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}),K.createElement(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`}))});jd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},jd.displayName=`HelpCircle`;function Md(){return Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Md.apply(this,arguments)}function Nd(e,t){if(e==null)return{};var n=Pd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Nd(e,[`color`,`size`]);return K.createElement(`svg`,Md({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),K.createElement(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`}),K.createElement(`polyline`,{points:`21 15 16 10 5 21`}))});Fd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Fd.displayName=`Image`;function Id(){return Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function Ld(e,t){if(e==null)return{};var n=Rd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ld(e,[`color`,`size`]);return K.createElement(`svg`,Id({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),K.createElement(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`}))});zd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},zd.displayName=`Info`;function Bd(){return Bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}function Vd(e,t){if(e==null)return{};var n=Hd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ud=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Vd(e,[`color`,`size`]);return K.createElement(`svg`,Bd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),K.createElement(`polyline`,{points:`2 17 12 22 22 17`}),K.createElement(`polyline`,{points:`2 12 12 17 22 12`}))});Ud.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Ud.displayName=`Layers`;function Wd(){return Wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(this,arguments)}function Gd(e,t){if(e==null)return{};var n=Kd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Gd(e,[`color`,`size`]);return K.createElement(`svg`,Wd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),K.createElement(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),K.createElement(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),K.createElement(`line`,{x1:`3`,y1:`6`,x2:`3.01`,y2:`6`}),K.createElement(`line`,{x1:`3`,y1:`12`,x2:`3.01`,y2:`12`}),K.createElement(`line`,{x1:`3`,y1:`18`,x2:`3.01`,y2:`18`}))});qd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},qd.displayName=`List`;function Jd(){return Jd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jd.apply(this,arguments)}function Yd(e,t){if(e==null)return{};var n=Xd(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xd(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zd=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Yd(e,[`color`,`size`]);return K.createElement(`svg`,Jd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`6`}),K.createElement(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`22`}),K.createElement(`line`,{x1:`4.93`,y1:`4.93`,x2:`7.76`,y2:`7.76`}),K.createElement(`line`,{x1:`16.24`,y1:`16.24`,x2:`19.07`,y2:`19.07`}),K.createElement(`line`,{x1:`2`,y1:`12`,x2:`6`,y2:`12`}),K.createElement(`line`,{x1:`18`,y1:`12`,x2:`22`,y2:`12`}),K.createElement(`line`,{x1:`4.93`,y1:`19.07`,x2:`7.76`,y2:`16.24`}),K.createElement(`line`,{x1:`16.24`,y1:`7.76`,x2:`19.07`,y2:`4.93`}))});Zd.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Zd.displayName=`Loader`;function Qd(){return Qd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qd.apply(this,arguments)}function $d(e,t){if(e==null)return{};var n=ef(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ef(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=$d(e,[`color`,`size`]);return K.createElement(`svg`,Qd({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`}),K.createElement(`polyline`,{points:`10 17 15 12 10 7`}),K.createElement(`line`,{x1:`15`,y1:`12`,x2:`3`,y2:`12`}))});tf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},tf.displayName=`LogIn`;function nf(){return nf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nf.apply(this,arguments)}function rf(e,t){if(e==null)return{};var n=af(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function af(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var of=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=rf(e,[`color`,`size`]);return K.createElement(`svg`,nf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),K.createElement(`polyline`,{points:`16 17 21 12 16 7`}),K.createElement(`line`,{x1:`21`,y1:`12`,x2:`9`,y2:`12`}))});of.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},of.displayName=`LogOut`;function sf(){return sf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}function cf(e,t){if(e==null)return{};var n=lf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var uf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=cf(e,[`color`,`size`]);return K.createElement(`svg`,sf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`15 3 21 3 21 9`}),K.createElement(`polyline`,{points:`9 21 3 21 3 15`}),K.createElement(`line`,{x1:`21`,y1:`3`,x2:`14`,y2:`10`}),K.createElement(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`}))});uf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},uf.displayName=`Maximize2`;function df(){return df=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(this,arguments)}function ff(e,t){if(e==null)return{};var n=pf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ff(e,[`color`,`size`]);return K.createElement(`svg`,df({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z`}))});mf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},mf.displayName=`MessageCircle`;function hf(){return hf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(this,arguments)}function gf(e,t){if(e==null)return{};var n=_f(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _f(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=gf(e,[`color`,`size`]);return K.createElement(`svg`,hf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`}))});vf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},vf.displayName=`MessageSquare`;function yf(){return yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(this,arguments)}function bf(e,t){if(e==null)return{};var n=xf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=bf(e,[`color`,`size`]);return K.createElement(`svg`,yf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`4 14 10 14 10 20`}),K.createElement(`polyline`,{points:`20 10 14 10 14 4`}),K.createElement(`line`,{x1:`14`,y1:`10`,x2:`21`,y2:`3`}),K.createElement(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`}))});Sf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Sf.displayName=`Minimize2`;function Cf(){return Cf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}function wf(e,t){if(e==null)return{};var n=Tf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ef=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=wf(e,[`color`,`size`]);return K.createElement(`svg`,Cf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`1`}),K.createElement(`circle`,{cx:`19`,cy:`12`,r:`1`}),K.createElement(`circle`,{cx:`5`,cy:`12`,r:`1`}))});Ef.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Ef.displayName=`MoreHorizontal`;function Df(){return Df=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Df.apply(this,arguments)}function Of(e,t){if(e==null)return{};var n=kf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Af=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Of(e,[`color`,`size`]);return K.createElement(`svg`,Df({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`5 9 2 12 5 15`}),K.createElement(`polyline`,{points:`9 5 12 2 15 5`}),K.createElement(`polyline`,{points:`15 19 12 22 9 19`}),K.createElement(`polyline`,{points:`19 9 22 12 19 15`}),K.createElement(`line`,{x1:`2`,y1:`12`,x2:`22`,y2:`12`}),K.createElement(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`22`}))});Af.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Af.displayName=`Move`;function jf(){return jf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(this,arguments)}function Mf(e,t){if(e==null)return{};var n=Nf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Mf(e,[`color`,`size`]);return K.createElement(`svg`,jf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polygon`,{points:`5 3 19 12 5 21 5 3`}))});Pf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Pf.displayName=`Play`;function Ff(){return Ff=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(this,arguments)}function If(e,t){if(e==null)return{};var n=Lf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Rf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=If(e,[`color`,`size`]);return K.createElement(`svg`,Ff({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),K.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}))});Rf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Rf.displayName=`Plus`;function zf(){return zf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zf.apply(this,arguments)}function Bf(e,t){if(e==null)return{};var n=Vf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Bf(e,[`color`,`size`]);return K.createElement(`svg`,zf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`23 4 23 10 17 10`}),K.createElement(`polyline`,{points:`1 20 1 14 7 14`}),K.createElement(`path`,{d:`M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15`}))});Hf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Hf.displayName=`RefreshCw`;function Uf(){return Uf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}function Wf(e,t){if(e==null)return{};var n=Gf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Kf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Wf(e,[`color`,`size`]);return K.createElement(`svg`,Uf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`23 4 23 10 17 10`}),K.createElement(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`}))});Kf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Kf.displayName=`RotateCw`;function qf(){return qf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qf.apply(this,arguments)}function Jf(e,t){if(e==null)return{};var n=Yf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yf(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xf=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Jf(e,[`color`,`size`]);return K.createElement(`svg`,qf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`11`,cy:`11`,r:`8`}),K.createElement(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}))});Xf.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},Xf.displayName=`Search`;function Zf(){return Zf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}function Qf(e,t){if(e==null)return{};var n=$f(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $f(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ep=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Qf(e,[`color`,`size`]);return K.createElement(`svg`,Zf({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),K.createElement(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`}))});ep.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},ep.displayName=`Send`;function tp(){return tp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}function np(e,t){if(e==null)return{};var n=rp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ip=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=np(e,[`color`,`size`]);return K.createElement(`svg`,tp({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`4`,y1:`21`,x2:`4`,y2:`14`}),K.createElement(`line`,{x1:`4`,y1:`10`,x2:`4`,y2:`3`}),K.createElement(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`12`}),K.createElement(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`3`}),K.createElement(`line`,{x1:`20`,y1:`21`,x2:`20`,y2:`16`}),K.createElement(`line`,{x1:`20`,y1:`12`,x2:`20`,y2:`3`}),K.createElement(`line`,{x1:`1`,y1:`14`,x2:`7`,y2:`14`}),K.createElement(`line`,{x1:`9`,y1:`8`,x2:`15`,y2:`8`}),K.createElement(`line`,{x1:`17`,y1:`16`,x2:`23`,y2:`16`}))});ip.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},ip.displayName=`Sliders`;function ap(){return ap=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ap.apply(this,arguments)}function op(e,t){if(e==null)return{};var n=sp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cp=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=op(e,[`color`,`size`]);return K.createElement(`svg`,ap({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`}))});cp.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},cp.displayName=`Table`;function lp(){return lp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(this,arguments)}function up(e,t){if(e==null)return{};var n=dp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fp=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=up(e,[`color`,`size`]);return K.createElement(`svg`,lp({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`}))});fp.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},fp.displayName=`Tool`;function pp(){return pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pp.apply(this,arguments)}function mp(e,t){if(e==null)return{};var n=hp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gp=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=mp(e,[`color`,`size`]);return K.createElement(`svg`,pp({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`polyline`,{points:`3 6 5 6 21 6`}),K.createElement(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),K.createElement(`line`,{x1:`10`,y1:`11`,x2:`10`,y2:`17`}),K.createElement(`line`,{x1:`14`,y1:`11`,x2:`14`,y2:`17`}))});gp.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},gp.displayName=`Trash2`;function _p(){return _p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_p.apply(this,arguments)}function vp(e,t){if(e==null)return{};var n=yp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bp=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=vp(e,[`color`,`size`]);return K.createElement(`svg`,_p({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`circle`,{cx:`12`,cy:`12`,r:`10`}),K.createElement(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),K.createElement(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`}))});bp.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},bp.displayName=`XCircle`;function xp(){return xp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xp.apply(this,arguments)}function Sp(e,t){if(e==null)return{};var n=Cp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cp(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wp=(0,K.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Sp(e,[`color`,`size`]);return K.createElement(`svg`,xp({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),K.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),K.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`}))});wp.propTypes={color:J.default.string,size:J.default.oneOfType([J.default.string,J.default.number])},wp.displayName=`X`;var Tp=(e,t,n)=>Math.max(t,Math.min(n,e));function Ep(e,t,n){e.preventDefault();let r=e.clientX,i=e.clientY,a=e=>t(e.clientX-r,e.clientY-i),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o),window.removeEventListener(`pointercancel`,o),n?.()};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o),window.addEventListener(`pointercancel`,o)}function Dp(e,t,n){let[r,i]=(0,K.useState)(()=>{try{let t=localStorage.getItem(e);if(t!==null){let e=JSON.parse(t);if(n(e))return e}}catch{}return t});return[r,(0,K.useCallback)(t=>{i(t);try{localStorage.setItem(e,JSON.stringify(t))}catch{}},[e])]}var Op=e=>typeof e==`string`,kp=e=>typeof e==`boolean`,Ap=e=>typeof e==`number`&&Number.isFinite(e);function jp(e,t){let[n,r]=(0,K.useState)(e),[i,a]=(0,K.useState)(e);return(0,K.useEffect)(()=>{if(e){r(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>a(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}a(!1);let n=window.setTimeout(()=>r(!1),t);return()=>window.clearTimeout(n)},[e,t]),{mounted:n,shown:i}}function Mp({open:e,children:t}){let{mounted:n,shown:r}=jp(e,200);return n?(0,q.jsx)(`div`,{inert:!e,className:`grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none ${r?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`}`,children:(0,q.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:t})}):null}var Np=Symbol.for(`yaml.alias`),Pp=Symbol.for(`yaml.document`),Fp=Symbol.for(`yaml.map`),Ip=Symbol.for(`yaml.pair`),Lp=Symbol.for(`yaml.scalar`),Rp=Symbol.for(`yaml.seq`),zp=Symbol.for(`yaml.node.type`),Bp=e=>!!e&&typeof e==`object`&&e[zp]===Np,Vp=e=>!!e&&typeof e==`object`&&e[zp]===Pp,Hp=e=>!!e&&typeof e==`object`&&e[zp]===Fp,Up=e=>!!e&&typeof e==`object`&&e[zp]===Ip,Wp=e=>!!e&&typeof e==`object`&&e[zp]===Lp,Gp=e=>!!e&&typeof e==`object`&&e[zp]===Rp;function Kp(e){if(e&&typeof e==`object`)switch(e[zp]){case Fp:case Rp:return!0}return!1}function qp(e){if(e&&typeof e==`object`)switch(e[zp]){case Np:case Fp:case Lp:case Rp:return!0}return!1}var Jp=e=>(Wp(e)||Kp(e))&&!!e.anchor,Yp=Symbol(`break visit`),Xp=Symbol(`skip children`),Zp=Symbol(`remove node`);function Qp(e,t){let n=em(t);Vp(e)?$p(null,e.contents,n,Object.freeze([e]))===Zp&&(e.contents=null):$p(null,e,n,Object.freeze([]))}Qp.BREAK=Yp,Qp.SKIP=Xp,Qp.REMOVE=Zp;function $p(e,t,n,r){let i=tm(e,t,n,r);if(qp(i)||Up(i))return nm(e,r,i),$p(e,i,n,r);if(typeof i!=`symbol`){if(Kp(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=$p(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===Yp)return Yp;else i===Zp&&(t.items.splice(e,1),--e)}}else if(Up(t)){r=Object.freeze(r.concat(t));let e=$p(`key`,t.key,n,r);if(e===Yp)return Yp;e===Zp&&(t.key=null);let i=$p(`value`,t.value,n,r);if(i===Yp)return Yp;i===Zp&&(t.value=null)}}return i}function em(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function tm(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(Hp(t))return n.Map?.(e,t,r);if(Gp(t))return n.Seq?.(e,t,r);if(Up(t))return n.Pair?.(e,t,r);if(Wp(t))return n.Scalar?.(e,t,r);if(Bp(t))return n.Alias?.(e,t,r)}function nm(e,t,n){let r=t[t.length-1];if(Kp(r))r.items[e]=n;else if(Up(r))e===`key`?r.key=n:r.value=n;else if(Vp(r))r.contents=n;else{let e=Bp(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var rm={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},im=e=>e.replace(/[!,[\]{}]/g,e=>rm[e]),am=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+im(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&qp(e.contents)){let t={};Qp(e.contents,(e,n)=>{qp(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||e&&!r.some(e=>e.startsWith(a))||t.push(`%TAG ${i} ${a}`);return t.join(`
|
|
11
|
+
`)}};am.defaultYaml={explicit:!1,version:`1.2`},am.defaultTags={"!!":`tag:yaml.org,2002:`};function om(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function sm(e){let t=new Set;return Qp(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function cm(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function lm(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=sm(e);let a=cm(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(Wp(t.node)||Kp(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function um(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=um(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=um(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=um(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=um(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function dm(e,t,n){if(Array.isArray(e))return e.map((e,t)=>dm(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Jp(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var fm=class{constructor(e){Object.defineProperty(this,zp,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Vp(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=dm(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?um(i,{"":o},``,o):o}},pm=class extends fm{constructor(e){super(Np),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Qp(e,{Node:(e,t)=>{(Bp(t)||Jp(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(dm(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=mm(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(om(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function mm(e,t,n){if(Bp(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Kp(t)){let r=0;for(let i of t.items){let t=mm(e,i,n);t>r&&(r=t)}return r}if(Up(t)){let r=mm(e,t.key,n),i=mm(e,t.value,n);return Math.max(r,i)}return 1}var hm=e=>!e||typeof e!=`function`&&typeof e!=`object`,gm=class extends fm{constructor(e){super(Lp),this.value=e}toJSON(e,t){return t?.keep?this.value:dm(this.value,e,t)}toString(){return String(this.value)}};gm.BLOCK_FOLDED=`BLOCK_FOLDED`,gm.BLOCK_LITERAL=`BLOCK_LITERAL`,gm.PLAIN=`PLAIN`,gm.QUOTE_DOUBLE=`QUOTE_DOUBLE`,gm.QUOTE_SINGLE=`QUOTE_SINGLE`;var _m=`tag:yaml.org,2002:`;function vm(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function ym(e,t,n){if(Vp(e)&&(e=e.contents),qp(e))return e;if(Up(e)){let t=n.schema[Fp].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new pm(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=_m+t.slice(2));let l=vm(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new gm(e);return c&&(c.node=t),t}l=e instanceof Map?o[Fp]:Symbol.iterator in Object(e)?o[Rp]:o[Fp]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new gm(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function bm(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return ym(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var xm=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Sm=class extends fm{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>qp(t)||Up(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xm(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(Kp(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,bm(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(Kp(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&Wp(i)?i.value:i:Kp(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Up(t))return!1;let n=t.value;return n==null||e&&Wp(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return Kp(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(Kp(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,bm(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Cm=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function wm(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Tm=(e,t,n)=>e.endsWith(`
|
|
12
|
+
`)?wm(n,t):n.includes(`
|
|
13
|
+
`)?`
|
|
14
|
+
`+wm(n,t):(e.endsWith(` `)?``:` `)+n,Em=`flow`,Dm=`block`,Om=`quoted`;function km(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=Am(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
|
|
15
|
+
`)n===`block`&&(h=Am(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
|
|
16
|
+
`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
|
|
17
|
+
`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function Am(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
|
|
18
|
+
`);r=t,i=t+1,a=e[i]}return r}var jm=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Mm=e=>/^(%|---|\.\.\.)/m.test(e);function Nm(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
|
|
19
|
+
`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function Pm(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Mm(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
|
|
20
|
+
|
|
21
|
+
`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
|
|
22
|
+
`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:km(o,a,Om,jm(t,!1))}function Fm(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
23
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Pm(e,t);let n=t.indent||(Mm(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:km(r,n,Em,jm(t,!1))}function Im(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=Pm;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?Fm:i&&!t?Pm:n?Fm:Pm}return r(e,t)}var Lm;try{Lm=RegExp(`(^|(?<!
|
|
24
|
+
))
|
|
25
|
+
+(?!
|
|
26
|
+
|$)`,`g`)}catch{Lm=/\n+(?!\n|$)/g}function Rm({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return Im(n,r);let l=r.indent||(r.forceBlockIndent||Mm(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===gm.BLOCK_FOLDED?!1:t===gm.BLOCK_LITERAL||!Nm(n,c,l.length);if(!n)return u?`|
|
|
27
|
+
`:`>
|
|
28
|
+
`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
|
|
29
|
+
`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
|
|
30
|
+
`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
31
|
+
`&&(p=p.slice(0,-1)),p.replace(Lm,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
|
|
32
|
+
`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
|
|
33
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=jm(r,!0);o!==`folded`&&t!==gm.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=km(`${v}${e}${p}`,l,Dm,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function zm(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
|
|
34
|
+
`)||u&&/[[\]{},]/.test(a))return Im(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
|
|
35
|
+
`)?Im(a,t):Rm(e,t,n,r);if(!s&&!u&&i!==gm.PLAIN&&a.includes(`
|
|
36
|
+
`))return Rm(e,t,n,r);if(Mm(a)){if(c===``)return t.forceBlockIndent=!0,Rm(e,t,n,r);if(s&&c===l)return Im(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Im(a,t)}return s?d:km(d,c,Em,jm(t,!1))}function Bm(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==gm.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=gm.QUOTE_DOUBLE);let c=e=>{switch(e){case gm.BLOCK_FOLDED:case gm.BLOCK_LITERAL:return i||a?Im(o.value,t):Rm(o,t,n,r);case gm.QUOTE_DOUBLE:return Pm(o.value,t);case gm.QUOTE_SINGLE:return Fm(o.value,t);case gm.PLAIN:return zm(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Vm(e,t){let n=Object.assign({blockQuote:!0,commentString:Cm,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Hm(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(Wp(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Um(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(Wp(e)||Kp(e))&&e.anchor;a&&om(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Wm(e,t,n,r){if(Up(e))return e.toString(t,n,r);if(Bp(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=qp(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Hm(t.doc.schema.tags,a);let o=Um(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):Wp(a)?Bm(a,t,n,r):a.toString(t,n,r);return o?Wp(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Gm({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=qp(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Kp(e)||!qp(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Kp(e)||(Wp(e)?e.type===gm.BLOCK_FOLDED||e.type===gm.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Wm(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Tm(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Tm(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Tm(g,n.indent,l(f))));let _,v,y;qp(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&Wp(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Gp(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Wm(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
|
|
37
|
+
`:``,v){let e=l(v);S+=`\n${wm(e,n.indent)}`}x===``&&!n.inFlow?S===`
|
|
38
|
+
`&&y&&(S=`
|
|
39
|
+
|
|
40
|
+
`):S+=`\n${n.indent}`}else if(!p&&Kp(t)){let e=x[0],r=x.indexOf(`
|
|
41
|
+
`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
|
|
42
|
+
`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Tm(g,n.indent,l(y)):h&&i&&i(),g}function Km(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var qm=`<<`,Jm={identify:e=>e===qm||typeof e==`symbol`&&e.description===qm,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new gm(Symbol(qm)),{addToJSMap:Xm}),stringify:()=>qm},Ym=(e,t)=>(Jm.identify(t)||Wp(t)&&(!t.type||t.type===gm.PLAIN)&&Jm.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Jm.tag&&e.default);function Xm(e,t,n){let r=Qm(e,n);if(Gp(r))for(let n of r.items)Zm(e,t,n);else if(Array.isArray(r))for(let n of r)Zm(e,t,n);else Zm(e,t,r)}function Zm(e,t,n){let r=Qm(e,n);if(!Hp(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Qm(e,t){return e&&Bp(t)?t.resolve(e.doc,e):t}function $m(e,t,{key:n,value:r}){if(qp(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Ym(e,n))Xm(e,t,r);else{let i=dm(n,``,e);if(t instanceof Map)t.set(i,dm(r,i,e));else if(t instanceof Set)t.add(i);else{let a=eh(n,i,e),o=dm(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function eh(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(qp(e)&&n?.doc){let t=Vm(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Km(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function th(e,t,n){return new nh(ym(e,void 0,n),ym(t,void 0,n))}var nh=class e{constructor(e,t=null){Object.defineProperty(this,zp,{value:Ip}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return qp(n)&&(n=n.clone(t)),qp(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return $m(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Gm(this,e,t,n):JSON.stringify(this)}};function rh(e,t,n){return(t.inFlow??e.flow?ah:ih)(e,t,n)}function ih({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(qp(i))!d&&i.spaceBefore&&f.push(``),oh(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(Up(i)){let e=qp(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),oh(n,f,e.commentBefore,d))}d=!1;let s=Wm(i,u,()=>o=null,()=>d=!0);o&&(s+=Tm(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
|
|
43
|
+
`}}return e?(p+=`
|
|
44
|
+
`+wm(l(e),c),s&&s()):d&&o&&o(),p}function ah({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(qp(i))i.spaceBefore&&d.push(``),oh(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(Up(i)){let e=qp(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),oh(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=qp(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=Wm(i,c,()=>a=null);l||=d.length>u||o.includes(`
|
|
45
|
+
`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Tm(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
|
|
46
|
+
`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function oh({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=wm(t(r),e);n.push(i.trimStart())}}function sh(e,t){let n=Wp(t)?t.value:t;for(let r of e)if(Up(r)&&(r.key===t||r.key===n||Wp(r.key)&&r.key.value===n))return r}var ch=class extends Sm{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Fp,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(th(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=Up(e)?e:!e||typeof e!=`object`||!(`key`in e)?new nh(e,e?.value):new nh(e.key,e.value);let r=sh(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);Wp(r.value)&&hm(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=sh(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=sh(this.items,e)?.value;return(!t&&Wp(n)?n.value:n)??void 0}has(e){return!!sh(this.items,e)}set(e,t){this.add(new nh(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)$m(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Up(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),rh(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},lh={collection:`map`,default:!0,nodeClass:ch,tag:`tag:yaml.org,2002:map`,resolve(e,t){return Hp(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>ch.from(e,t,n)},uh=class extends Sm{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Rp,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=dh(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=dh(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&Wp(r)?r.value:r}has(e){let t=dh(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=dh(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];Wp(r)&&hm(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(dm(e,String(r++),t));return n}toString(e,t,n){return e?rh(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(ym(a,void 0,n))}}return i}};function dh(e){let t=Wp(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var fh={collection:`seq`,default:!0,nodeClass:uh,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Gp(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>uh.from(e,t,n)},ph={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Bm(e,t,n,r)}},mh={identify:e=>e==null,createNode:()=>new gm(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new gm(null),stringify:({source:e},t)=>typeof e==`string`&&mh.test.test(e)?e:t.options.nullStr},hh={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new gm(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&hh.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function gh({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var _h={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:gh},vh={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():gh(e)}},yh={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new gm(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:gh},bh=e=>typeof e==`bigint`||Number.isInteger(e),xh=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Sh(e,t,n){let{value:r}=e;return bh(r)&&r>=0?n+r.toString(t):gh(e)}var Ch={identify:e=>bh(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>xh(e,2,8,n),stringify:e=>Sh(e,8,`0o`)},wh={identify:bh,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>xh(e,0,10,n),stringify:gh},Th={identify:e=>bh(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>xh(e,2,16,n),stringify:e=>Sh(e,16,`0x`)},Eh=[lh,fh,ph,mh,hh,Ch,wh,Th,_h,vh,yh];function Dh(e){return typeof e==`bigint`||Number.isInteger(e)}var Oh=({value:e})=>JSON.stringify(e),kh=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Oh},{identify:e=>e==null,createNode:()=>new gm(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Oh},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Oh},{identify:Dh,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Dh(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Oh}],Ah=[lh,fh].concat(kh,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),jh={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=gm.BLOCK_LITERAL,t!==gm.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===gm.BLOCK_LITERAL?`
|
|
47
|
+
`:` `)}return Bm({comment:e,type:t,value:s},r,i,a)}};function Mh(e,t){if(Gp(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Up(r)){if(Hp(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new nh(new gm(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=Up(r)?r:new nh(r)}}else t(`Expected a sequence for this tag`);return e}function Nh(e,t,n){let{replacer:r}=n,i=new uh(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(th(o,s,n))}return i}var Ph={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:Mh,createNode:Nh},Fh=class e extends uh{constructor(){super(),this.add=ch.prototype.add.bind(this),this.delete=ch.prototype.delete.bind(this),this.get=ch.prototype.get.bind(this),this.has=ch.prototype.has.bind(this),this.set=ch.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(Up(e)?(r=dm(e.key,``,t),i=dm(e.value,r,t)):r=dm(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=Nh(e,t,n),i=new this;return i.items=r.items,i}};Fh.tag=`tag:yaml.org,2002:omap`;var Ih={collection:`seq`,identify:e=>e instanceof Map,nodeClass:Fh,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=Mh(e,t),r=[];for(let{key:e}of n.items)Wp(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Fh,n)},createNode:(e,t,n)=>Fh.from(e,t,n)};function Lh({value:e,source:t},n){return t&&(e?Rh:zh).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var Rh={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new gm(!0),stringify:Lh},zh={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new gm(!1),stringify:Lh},Bh={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:gh},Vh={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():gh(e)}},Hh={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new gm(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:gh},Uh=e=>typeof e==`bigint`||Number.isInteger(e);function Wh(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function Gh(e,t,n){let{value:r}=e;if(Uh(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return gh(e)}var Kh={identify:Uh,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Wh(e,2,2,n),stringify:e=>Gh(e,2,`0b`)},qh={identify:Uh,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Wh(e,1,8,n),stringify:e=>Gh(e,8,`0`)},Jh={identify:Uh,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Wh(e,0,10,n),stringify:gh},Yh={identify:Uh,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Wh(e,2,16,n),stringify:e=>Gh(e,16,`0x`)},Xh=class e extends ch{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=Up(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new nh(e.key,null):new nh(e,null),sh(this.items,t.key)||this.items.push(t)}get(e,t){let n=sh(this.items,e);return!t&&Up(n)?Wp(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=sh(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new nh(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(th(e,null,n));return i}};Xh.tag=`tag:yaml.org,2002:set`;var Zh={collection:`map`,identify:e=>e instanceof Set,nodeClass:Xh,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Xh.from(e,t,n),resolve(e,t){if(Hp(e)){if(e.hasAllNullValues(!0))return Object.assign(new Xh,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function Qh(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function $h(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return gh(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var eg={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Qh(e,n),stringify:$h},tg={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Qh(e,!1),stringify:$h},ng={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(ng.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Qh(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},rg=[lh,fh,ph,mh,Rh,zh,Kh,qh,Jh,Yh,Bh,Vh,Hh,jh,Jm,Ih,Ph,Zh,eg,tg,ng],ig=new Map([[`core`,Eh],[`failsafe`,[lh,fh,ph]],[`json`,Ah],[`yaml11`,rg],[`yaml-1.1`,rg]]),ag={binary:jh,bool:hh,float:yh,floatExp:vh,floatNaN:_h,floatTime:tg,int:wh,intHex:Th,intOct:Ch,intTime:eg,map:lh,merge:Jm,null:mh,omap:Ih,pairs:Ph,seq:fh,set:Zh,timestamp:ng},og={"tag:yaml.org,2002:binary":jh,"tag:yaml.org,2002:merge":Jm,"tag:yaml.org,2002:omap":Ih,"tag:yaml.org,2002:pairs":Ph,"tag:yaml.org,2002:set":Zh,"tag:yaml.org,2002:timestamp":ng};function sg(e,t,n){let r=ig.get(t);if(r&&!e)return n&&!r.includes(Jm)?r.concat(Jm):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(ig.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Jm)),i.reduce((e,t)=>{let n=typeof t==`string`?ag[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(ag).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var cg=(e,t)=>e.key<t.key?-1:+(e.key>t.key),lg=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?sg(e,`compat`):e?sg(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?og:{},this.tags=sg(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,Fp,{value:lh}),Object.defineProperty(this,Lp,{value:ph}),Object.defineProperty(this,Rp,{value:fh}),this.sortMapEntries=typeof a==`function`?a:a===!0?cg:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function ug(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=Vm(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(wm(t,``))}let o=!1,s=null;if(e.contents){if(qp(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(wm(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=Wm(e.contents,i,()=>s=null,t);s&&(c+=Tm(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Wm(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
|
|
48
|
+
`)?(n.push(`...`),n.push(wm(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(wm(a(t),``)))}return n.join(`
|
|
49
|
+
`)+`
|
|
50
|
+
`}var dg=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,zp,{value:Pp});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new am({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[zp]:{value:Pp}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=qp(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){fg(this.contents)&&this.contents.add(e)}addIn(e,t){fg(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=sm(this);e.anchor=!t||n.has(t)?cm(t||`a`,n):t}return new pm(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=lm(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=ym(e,l,p);return o&&Kp(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new nh(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return fg(this.contents)?this.contents.delete(e):!1}deleteIn(e){return xm(e)?this.contents!=null&&(this.contents=null,!0):fg(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Kp(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return xm(e)?!t&&Wp(this.contents)?this.contents.value:this.contents:Kp(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Kp(this.contents)?this.contents.has(e):!1}hasIn(e){return xm(e)?this.contents!==void 0:Kp(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=bm(this.schema,[e],t):fg(this.contents)&&this.contents.set(e,t)}setIn(e,t){xm(e)?this.contents=t:this.contents==null?this.contents=bm(this.schema,Array.from(e),t):fg(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new am({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new am({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new lg(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=dm(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?um(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return ug(this,e)}};function fg(e){if(Kp(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var pg=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},mg=class extends pg{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},hg=class extends pg{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},gg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
|
|
51
|
+
`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function _g(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:b&&n===`seq-item-ind`||(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function vg(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
|
|
52
|
+
`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(vg(t.key)||vg(t.value))return!0}return!1;default:return!0}}function yg(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&vg(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function bg(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||Wp(e)&&Wp(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var xg=`All mapping items must start at the same column`;function Sg({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??ch)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=_g(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,xg)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
|
|
53
|
+
`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||vg(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,xg);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&yg(r.indent,u,i),n.atKey=!1,bg(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=_g(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&yg(r.indent,f,i),s=c.range[2];let l=new nh(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
|
|
54
|
+
`+_.comment:g.comment=_.comment);let e=new nh(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Cg({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??uh)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=_g(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&yg(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function wg(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var Tg=`Block collections are not allowed within flow collections`,Eg=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function Dg({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?ch:uh))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=_g(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
|
|
55
|
+
`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&vg(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];Up(t)&&(t=t.value??t.key),t.comment?t.comment+=`
|
|
56
|
+
`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],Eg(m)&&i(r.range,`BLOCK_IN_FLOW`,Tg)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);Eg(f)&&i(g.range,`BLOCK_IN_FLOW`,Tg),n.atKey=!1;let _=_g(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?Eg(m)&&i(v.range,`BLOCK_IN_FLOW`,Tg):_.comment&&(g.comment?g.comment+=`
|
|
57
|
+
`+_.comment:g.comment=_.comment);let y=new nh(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;bg(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new ch(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=wg(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
|
|
58
|
+
`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function Og(e,t,n,r,i,a){let o=n.type===`block-map`?Sg(e,t,n,r,a):n.type===`block-seq`?Cg(e,t,n,r,a):Dg(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function kg(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===ch.tagName&&s===`map`||o===uh.tagName&&s===`seq`)return Og(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),Og(e,t,n,i,o)}let l=Og(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=qp(u)?u:new gm(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function Ag(e,t,n){let r=t.offset,i=jg(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?gm.BLOCK_FOLDED:gm.BLOCK_LITERAL,o=t.source?Mg(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
|
|
59
|
+
`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
|
|
60
|
+
`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===gm.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
|
|
61
|
+
`):t.length>c||r[0]===` `?(f===` `?f=`
|
|
62
|
+
`:!p&&f===`
|
|
63
|
+
`&&(f=`
|
|
64
|
+
|
|
65
|
+
`),d+=f+t.slice(c)+r,f=`
|
|
66
|
+
`,p=!0):r===``?f===`
|
|
67
|
+
`?d+=`
|
|
68
|
+
`:f=`
|
|
69
|
+
`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
|
|
70
|
+
`+o[e][0].slice(c);d[d.length-1]!==`
|
|
71
|
+
`&&(d+=`
|
|
72
|
+
`);break;default:d+=`
|
|
73
|
+
`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function jg({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function Mg(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function Ng(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=gm.PLAIN,c=Pg(a,l);break;case`single-quoted-scalar`:s=gm.QUOTE_SINGLE,c=Fg(a,l);break;case`double-quoted-scalar`:s=gm.QUOTE_DOUBLE,c=Lg(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=wg(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function Pg(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),Ig(e)}function Fg(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),Ig(e.slice(1,-1)).replace(/''/g,`'`)}function Ig(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
|
|
74
|
+
`?a+=o:o=`
|
|
75
|
+
`:(a+=o+e,o=` `),s=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]??``)}function Lg(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
|
|
76
|
+
`){if(i===`
|
|
77
|
+
`){let{fold:t,offset:i}=Rg(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=zg[i];if(a)n+=a;else if(i===`
|
|
78
|
+
`)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
|
|
79
|
+
`)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=Bg(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
|
|
80
|
+
`&&(a!==`\r`||e[r+2]!==`
|
|
81
|
+
`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function Rg(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
|
|
82
|
+
`||r===`\r`)&&(r!==`\r`||e[t+2]===`
|
|
83
|
+
`);)r===`
|
|
84
|
+
`&&(n+=`
|
|
85
|
+
`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var zg={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
|
|
86
|
+
`,r:`\r`,t:` `,v:`\v`,N:`
`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function Bg(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function Vg(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Ag(e,t,r):Ng(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[Lp]:c?Hg(e.schema,i,c,n,r):t.type===`scalar`?Ug(e,i,t,r):e.schema[Lp];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=Wp(a)?a:new gm(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new gm(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Hg(e,t,n,r,i){if(n===`!`)return e[Lp];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[Lp])}function Ug({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[Lp];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[Lp];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function Wg(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var Gg={composeNode:Kg,composeEmptyNode:qg};function Kg(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Jg(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=Vg(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=kg(Gg,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=qg(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!Wp(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function qg(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Vg(e,{type:`scalar`,offset:Wg(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Jg({options:e},{offset:t,source:n,end:r},i){let a=new pm(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=wg(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function Yg(e,t,{offset:n,start:r,value:i,end:a},o){let s=new dg(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=_g(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?Kg(c,i,l,o):qg(c,l.end,r,null,l,o);let u=s.contents.range[2],d=wg(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Xg(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function Zg(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
|
|
87
|
+
|
|
88
|
+
`:`
|
|
89
|
+
`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Qg=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Xg(e);r?this.warnings.push(new hg(i,t,n)):this.errors.push(new mg(i,t,n))},this.directives=new am({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Zg(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Kp(i)&&!i.flow&&i.items.length>0){let e=i.items[0];Up(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Zg(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Xg(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Yg(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new mg(Xg(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new mg(Xg(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=wg(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new mg(Xg(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new dg(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},$g=Symbol(`break visit`),e_=Symbol(`skip children`),t_=Symbol(`remove item`);function n_(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),r_(Object.freeze([]),e,t)}n_.BREAK=$g,n_.SKIP=e_,n_.REMOVE=t_,n_.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},n_.parentCollection=(e,t)=>{let n=n_.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function r_(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=r_(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===$g)return $g;else r===t_&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function i_(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
|
|
90
|
+
`:case`\r
|
|
91
|
+
`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function a_(e){switch(e){case void 0:case` `:case`
|
|
92
|
+
`:case`\r`:case` `:return!0;default:return!1}}var o_=new Set(`0123456789ABCDEFabcdef`),s_=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),c_=new Set(`,[]{}`),l_=new Set(` ,[]{}
|
|
93
|
+
\r `),u_=e=>!e||l_.has(e),d_=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
|
|
94
|
+
`||t===`\r`&&this.buffer[e+1]===`
|
|
95
|
+
`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
|
|
96
|
+
`||!t&&!this.atEnd)return e+n+1}return t===`
|
|
97
|
+
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&a_(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
98
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&a_(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!a_(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&a_(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(u_),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&a_(r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(u_),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||a_(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
|
|
99
|
+
`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
|
|
100
|
+
`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>a_(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
|
|
101
|
+
`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
|
|
102
|
+
`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
|
|
103
|
+
`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
|
|
104
|
+
`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
|
|
105
|
+
`&&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(a_(r)||e&&c_.has(r))break;t=n}else if(a_(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
|
|
106
|
+
`?(n+=1,r=`
|
|
107
|
+
`,i=this.buffer[n+1]):t=n),i===`#`||e&&c_.has(i))break;if(r===`
|
|
108
|
+
`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&c_.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(u_),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(a_(n)||t&&c_.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!a_(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(s_.has(t))t=this.buffer[++e];else if(t===`%`&&o_.has(this.buffer[e+1])&&o_.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
109
|
+
`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
|
|
110
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},f_=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function p_(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function m_(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function h_(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function g_(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function __(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function v_(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function y_(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!p_(t.start,`explicit-key-ind`)&&!p_(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,h_(t.value)?t.value.end?v_(t.value.end,t.sep):t.value.end=t.sep:v_(t.start,t.sep),delete t.sep)}var b_=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new d_,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=i_(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source})}else{if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&y_(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&m_(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:m_(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=__(g_(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
|
|
111
|
+
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
112
|
+
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){v_(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(p_(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=__(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(p_(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(h_(t.key)&&!p_(t.sep,`newline`)){let e=__(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):p_(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!p_(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){v_(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||p_(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=__(g_(t));y_(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
113
|
+
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
114
|
+
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=__(g_(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=__(g_(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function x_(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new f_||null,prettyErrors:t}}function S_(e,t={}){let{lineCounter:n,prettyErrors:r}=x_(t),i=new b_(n?.addNewLine),a=new Qg(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new mg(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(gg(e,n)),o.warnings.forEach(gg(e,n))),o}function C_(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=S_(e,n);if(!i)return null;if(i.warnings.forEach(e=>Km(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function w_(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Vp(e)&&!r?e.toString(n):new dg(e,r,n).toString(n)}var T_=`[a-z0-9]+(?:-[a-z0-9]+)*`,E_=RegExp(`^${T_}$`),D_=RegExp(`^(?:${T_}/)?${T_}$`),O_=e=>E_.test(e),k_=e=>D_.test(e);function A_(e){let t=e.indexOf(`/`);return t===-1?{group:null,name:e}:{group:e.slice(0,t),name:e.slice(t+1)}}var j_=(e,t)=>e?`${e}/${t}`:t,M_=[`writes`,`input`,`email`],N_=[`what`,`where`,`identified by`];function P_(e,t){let n=RegExp(`^## ${t}\\s*$([\\s\\S]*?)(?=^## |(?![\\s\\S]))`,`m`).exec(e);return n?{body:n[1],bodyStart:n.index+n[0].length-n[1].length}:null}function F_(e,t){let n=1;for(let r=e.indexOf(`
|
|
115
|
+
`);r>=0&&r<t;r=e.indexOf(`
|
|
116
|
+
`,r+1))n++;return n}function I_(e){let t=[],n=/\r?\n/g,r=0,i=1,a;for(;(a=n.exec(e))!==null;)t.push({number:i++,start:r,end:a.index,text:e.slice(r,a.index)}),r=a.index+a[0].length;return t.push({number:i,start:r,end:e.length,text:e.slice(r)}),t}function L_(e,t){return e.startsWith(`\r
|
|
117
|
+
`,t)?t+2:e.startsWith(`
|
|
118
|
+
`,t)?t+1:t}var R_=(e,t)=>L_(e,t.end),z_=e=>e.trim()===``,B_=e=>/^[ \t]*/.exec(e)?.[0].length??0,V_=e=>/^[ \t]*```/.test(e);function H_(e,t){let n=t.map((e,t)=>({line:e,index:t})).filter(({line:e})=>/^##[ \t]+\S/.test(e.text));return n.map(({line:t},r)=>({name:t.text.replace(/^##[ \t]+/,``).trim(),headingStart:t.start,body:{start:R_(e,t),end:n[r+1]?.line.start??e.length}}))}var U_=(e,t)=>e.find(e=>t>=e.body.start&&t<e.body.end)?.name??``;function W_(e,t){let n=[],r=!1;for(let i of I_(e))if(!(i.start<t.body.start)){if(i.start>=t.body.end)break;n.push({line:i,fenced:r}),V_(i.text)&&(r=!r)}return n}function G_(e){let t=I_(e);if(t.length===0||t[0].text.trim()!==`---`)return null;let n=t.findIndex((e,t)=>t>0&&e.text.trim()===`---`);if(n<0)return null;let r=e.slice(R_(e,t[0]),t[n].start),i={},a=null;try{let e=C_(r);if(e==null)i={};else if(typeof e!=`object`||Array.isArray(e))return null;else i=e}catch(e){a=`the front matter is not valid yaml: ${e.message}`}let o=[],s=1;for(;s<n;){let r=t[s],a=/^([A-Za-z][A-Za-z0-9_-]*)[ \t]*:(.*)$/.exec(r.text);if(!a){s++;continue}let c=s;for(let e=s+1;e<n;e++){let n=t[e];if(n.text.trim()!==``&&B_(n.text)===0)break;n.text.trim()!==``&&(c=e)}let l=c>s,u=r.text.indexOf(`:`)+1;for(;r.text[u]===` `||r.text[u]===` `;)u++;let d;d=l?{start:R_(e,r),end:t[c].end}:{start:r.start+u,end:K_(r,u)},o.push({key:a[1],value:i[a[1]],range:{start:r.start,end:t[c].end},valueRange:d,line:r.number,block:l}),s=c+1}return{data:i,entries:o,range:{start:t[0].start,end:t[n].end},insertAt:R_(e,t[0]),problem:a}}function K_(e,t){let n=e.text,r=n[t];if(r===`"`||r===`'`){for(let i=t+1;i<n.length;i++)if(n[i]===`\\`&&r===`"`)i++;else if(n[i]===r)return e.start+i+1;return e.end}if(r===`[`||r===`{`){let i=r===`[`?`]`:`}`,a=0,o=``;for(let s=t;s<n.length;s++){let t=n[s];if(o===``&&(t===`"`||t===`'`))o=t;else if(o!==``&&t===o)o=``;else if(o===``&&t===r)a++;else if(o===``&&t===i&&(a--,a===0))return e.start+s+1}return e.end}let i=n.indexOf(` #`,t),a=i>=0?i:n.length;for(;a>t&&(n[a-1]===` `||n[a-1]===` `);)a--;return e.start+a}var q_=/^(\d+)\.([ \t]+)(.*)$/,J_=/(?:[ \t]*\[(writes|input|email)\])+[ \t]*$/,Y_=/^([ \t]*)[-*+][ \t]+recipe(?:[ \t]*\(([^)]*)\))?[ \t]*:(.*)$/i,X_=/^([ \t]*)[-*+][ \t]+ready\s+when[ \t]*:(.*)$/i;function Z_(e,t){if(!t)return[];let n=W_(e,t),r=[];for(let e=0;e<n.length;e++){let{line:t,fenced:i}=n[e];if(i)continue;let a=q_.exec(t.text);if(!a)continue;let o=e;for(let r=e+1;r<n.length;r++){let e=n[r].line;if(z_(e.text)||B_(e.text)<=B_(t.text)||av(e.text))break;o=r}let s=o;for(let e=o+1;e<n.length;e++){let r=n[e].line;if(z_(r.text)||B_(r.text)<=B_(t.text))break;s=e}let c=a[1].length+1+a[2].length,l=[t.text.slice(c),...n.slice(e+1,o+1).map(({line:e})=>e.text.trim())].filter(e=>e!==``).join(` `),u=[],d=l.length,f=J_.exec(l);if(f){for(let e of f[0].matchAll(/\[(writes|input|email)\]/g))u.push(e[1]);d=f.index}let p=n[o].line,m=p.start+p.text.replace(/[ \t]+$/,``).length,h=f?f[0].length:0,g=$_(n,o+1,s);r.push({number:Number(a[1]),text:l.slice(0,d).replace(/[ \t]+$/,``),tags:u,range:{start:t.start,end:p.end},textRange:{start:t.start+c,end:Math.max(t.start+c,m-h)},insertAt:m,line:t.number,recipes:g.recipes,readiness:g.readiness}),e=s}return r}function Q_(e,t,n){let r=e[t].line,i=B_(r.text),a=t;for(let r=t+1;r<=n;r++){let t=e[r].line;if(z_(t.text)||av(t.text)||B_(t.text)<=i)break;a=r}let o=e.slice(t+1,a+1).map(({line:e})=>e.text.trim()).filter(e=>e!==``);return{line:r,last:a,textStart:e=>r.start+r.text.length-e.length+(e.length-e.trimStart().length),text:e=>[e.trim(),...o].filter(e=>e!==``).join(` `),end:e[a].line.end}}function $_(e,t,n){let r=[],i=[];for(let a=t;a<=n;a++){if(e[a].fenced)continue;let t=Y_.exec(e[a].line.text),o=t?null:X_.exec(e[a].line.text);if(!t&&!o)continue;let s=Q_(e,a,n);if(t){let e=(t[2]??``).trim();r.push({what:e===``?null:e,text:s.text(t[3]),line:s.line.number,range:{start:s.line.start,end:s.end},textRange:{start:s.textStart(t[3]),end:s.end}})}else o&&i.push({text:s.text(o[2]),line:s.line.number,range:{start:s.line.start,end:s.end},textRange:{start:s.textStart(o[2]),end:s.end}});a=s.last}return{recipes:r,readiness:i}}var ev=/^([ \t]*)[-*+][ \t]+(?:(\u{1F6AB}|\u{2753})\uFE0F?[ \t]*)?to[-_]?dos?\b[ \t]*(?:\[(blocking|non-blocking)\])?[ \t]*:?[ \t]*(.*)$/iu,tv=/^([ \t]*)[-*+][ \t]+(?:\u270D\uFE0F?[ \t]*)?answer[ \t]*:(.*)$/iu,nv=/^(.*?)[ \t]*\(([^()]*)\)[ \t]*$/,rv=/^##[ \t]+\S/,iv=/^[ \t]*(?:[-*+]|\d+\.)[ \t]+/,av=e=>iv.test(e),ov=e=>e.replace(/^[ \t]*[-*+][ \t]+/,``);function sv(e,t,n){let r=-1;for(let i=t-1;i>=0;i--){let t=e[i];if(z_(t.text)||rv.test(t.text)||V_(t.text))return null;if(!(B_(t.text)>n)&&!(ev.test(t.text)||tv.test(t.text))){r=i;break}}if(r<0)return null;let i=r;if(av(e[i].text))for(;i>0;){let t=e[i-1];if(z_(t.text)||rv.test(t.text)||V_(t.text)||!av(t.text)||B_(t.text)>=B_(e[i].text))break;i--}else for(;i>0;){let t=e[i-1];if(z_(t.text)||rv.test(t.text)||V_(t.text)||ev.test(t.text)||tv.test(t.text))break;if(av(t.text)){B_(t.text)<B_(e[i].text)&&i--;break}i--}let a=[ov(e[i].text).trim()];for(let n=i+1;n<t;n++)av(e[n].text)||ev.test(e[n].text)||tv.test(e[n].text)||a.push(e[n].text.trim());let o=a.filter(e=>e!==``).join(` `).trim();return o===``?null:{text:o,line:e[i].number,from:e[i].start}}function cv(e,t){let n=I_(e),r=[],i=!1;for(let e=0;e<n.length;e++){let a=n[e];if(V_(a.text)){i=!i;continue}if(i)continue;let o=ev.exec(a.text);if(!o)continue;let s=B_(a.text),c=o[3]===`non-blocking`||o[3]===void 0&&o[2]===`❓`?`non-blocking`:`blocking`,l=e;for(let t=e+1;t<n.length&&!(z_(n[t].text)||B_(n[t].text)<=s);t++)l=t;let u=[o[4].trim()],d=null,f=null,p=null;for(let t=e+1;t<=l;t++){let e=n[t],r=tv.exec(e.text);if(r){d=r[2].trim(),f={start:e.start+e.text.length-r[2].length,end:e.end},p=e.number;break}if(av(e.text))break;u.push(e.text.trim())}let m=u.filter(e=>e!==``).join(` `).trim(),h=nv.exec(m),g=(h?h[1]:m).trim(),_=h?h[2].trim():null,v=sv(n,e,s);r.push({kind:c,question:g,evidence:_,parent:v,section:U_(t,a.start),line:a.number,indent:s,answer:d??``,answerRange:f??{start:n[l].end,end:n[l].end},hasAnswerLine:p!==null,answerLine:p,lastLine:n[l].number,blockRange:{start:a.start,end:n[l].end},region:{start:v?.from??a.start,end:n[l].end}})}return r}var lv=/(?:\u{1F50D}\uFE0F?[ \t]*)?(?:\bto be confirmed(?:\s+by\s+QA)?\b|\bTBC\b|\bTBD\b|\bneeds?\s+confirmation\b)|(?:\u{1F441}\uFE0F?[ \t]*)?\bnot observed\b/giu;function uv(e,t){let n=[],r=!1;for(let i of I_(e))if(V_(i.text))r=!r;else if(!r)for(let e of i.text.matchAll(lv))e[0]!==``&&n.push({kind:/not observed/i.test(e[0])?`unseen`:`confirm`,text:e[0],range:{start:i.start+(e.index??0),end:i.start+(e.index??0)+e[0].length},sentence:i.text.trim(),section:U_(t,i.start),line:i.number});return n}var dv=/^[ \t]*```ya?ml[ \t]*$/i,fv=/^[ \t]*```[ \t]*$/,pv=e=>e==null||e===``||typeof e==`string`&&/^\s*TODO\b/i.test(e);function mv(e){let t=[];for(let[n,r]of Object.entries(e))for(let[e,i]of Object.entries(r))pv(i)&&t.push(`${n}.${e}`);return t}function hv(e,t){if(!t)return null;let n=e=>({hasBlock:!1,range:{start:t.body.start,end:t.body.start},values:{},problem:e,placeholders:[]}),r=W_(e,t),i=r.findIndex(({line:e})=>dv.test(e.text));if(i<0)return n('"## Values" must hold one fenced yaml block (```yaml ... ```)');let a=r.findIndex(({line:e},t)=>t>i&&fv.test(e.text));if(a<0)return n('the yaml block of "## Values" is not closed with ```');let o={start:R_(e,r[i].line),end:r[a].line.start},s=e.slice(o.start,o.end),c;try{c=C_(s)}catch(e){return{...n(`the yaml in "## Values" is not valid: ${e.message}`),range:o}}if(c==null)return{hasBlock:!0,range:o,values:{},problem:null,placeholders:[]};if(typeof c!=`object`||Array.isArray(c))return{...n(`"## Values" must be a map of profile id (or "default") to a map of values`),range:o};let l={};for(let[e,t]of Object.entries(c)){if(typeof t!=`object`||!t||Array.isArray(t))return{...n(`"## Values" entry "${e}" must be a map of keys to values`),range:o};l[e]=t}return{hasBlock:!0,range:o,values:l,problem:null,placeholders:mv(l)}}var gv=/^[-*+][ \t]+step[ \t]+(\d+)\b([^:]*):(.*)$/i;function _v(e,t){if(!t)return[];let n=W_(e,t),r=[],i=!1;for(let e=0;e<n.length;e++){let{line:t}=n[e];if(V_(t.text)){i=!i;continue}if(i||B_(t.text)>0||!av(t.text)||ev.test(t.text)||tv.test(t.text))continue;let a=e;for(let t=e+1;t<n.length;t++){let e=n[t].line;if(z_(e.text)||B_(e.text)===0||av(e.text)||ev.test(e.text)||tv.test(e.text))break;a=t}let o=n.slice(e+1,a+1).map(({line:e})=>e.text.trim()).filter(e=>e!==``),s=gv.exec(t.text);if(s){let e=s[3],i=s[2].trim().replace(/^\((.*)\)$/,`$1`).trim();r.push({step:Number(s[1]),what:i===``?null:i,recipe:[e.trim(),...o].filter(e=>e!==``).join(` `),line:t.number,range:{start:t.start,end:n[a].line.end},recipeRange:{start:t.start+t.text.length-e.length+(e.length-e.trimStart().length),end:n[a].line.end}})}else{let e=ov(t.text);r.push({step:null,what:null,recipe:[e.trim(),...o].filter(e=>e!==``).join(` `),line:t.number,range:{start:t.start,end:n[a].line.end},recipeRange:{start:t.start+(t.text.length-e.length),end:n[a].line.end}})}e=a}return r}function vv(e,t){let n=H_(e,I_(e)).find(e=>e.name===t);if(!n)return null;let r=e.slice(n.body.start,n.body.end),i=e.slice(0,n.body.start);return{name:t,body:r,range:n.body,line:(i.match(/\n/g)?.length??0)+1}}function yv(e,t){let n=H_(e,I_(e)).find(e=>e.name===t);if(!n)return[];let r=W_(e,n),i=[];for(let e=0;e<r.length;e++){let{line:t,fenced:n}=r[e];if(n||B_(t.text)>0||!av(t.text)||ev.test(t.text)||tv.test(t.text))continue;let a=e;for(let t=e+1;t<r.length;t++){let e=r[t].line;if(!z_(e.text)&&B_(e.text)===0)break;a=t}for(;a>e&&z_(r[a].line.text);)a--;let o=e;for(let t=e+1;t<=a;t++){let e=r[t].line;if(z_(e.text)||av(e.text)||ev.test(e.text)||tv.test(e.text))break;o=t}let s=t.text.length-ov(t.text).length,c=[ov(t.text).trim()];for(let t=e+1;t<=o;t++)c.push(r[t].line.text.trim());i.push({text:c.filter(e=>e!==``).join(` `),range:{start:t.start,end:r[a].line.end},textRange:{start:t.start+s,end:r[o].line.end},line:t.number,questionLines:r.slice(e,a+1).filter(({line:e})=>ev.test(e.text)).map(({line:e})=>e.number)}),e=a}return i}function bv(e){let t=P_(e,`Targets`);if(!t)return[];let n=I_(t.body),r=[];for(let i=0;i<n.length;i++){let a=/^###\s+(T\d+)\b[\s:.-]*(.*)$/.exec(n[i].text);if(!a)continue;let o=i;for(let e=i+1;e<n.length&&!/^###\s/.test(n[e].text);e++)o=e;let s={id:a[1],name:a[2].trim(),fields:{},references:{},blocking:!1,line:F_(e,t.bodyStart+n[i].start),range:{start:t.bodyStart+n[i].start,end:t.bodyStart+n[o].end}};for(let e=i+1;e<=o;e++){let t=n[e].text;/^\s*-\s*\u{1F6AB} TODO \[blocking\]/u.test(t)&&(s.blocking=!0);let r=/^-\s+Reference\s+([^:]+):\s*(.*)$/.exec(t);if(r){s.references[r[1].trim()]=r[2].trim();continue}let i=/^-\s+([A-Za-z][A-Za-z ]*?):\s*(.*)$/.exec(t);i&&(s.fields[i[1].trim().toLowerCase()]=i[2].trim())}r.push(s)}return r}var xv=[`id`,`title`,`login`,`suites`,`writes`,`writes-note`,`envs`];function Sv(e,t,n){if(!Array.isArray(e)||e.length===0||e.some(e=>typeof e!=`string`||!E_.test(e)))throw Error(`${n}: "${t}" must be a list of lowercase words (letters, digits, dashes), e.g. "${t}: [smoke, regression]"`);let r=e.find((t,n)=>e.indexOf(t)!==n);if(r)throw Error(`${n}: "${t}" lists "${r}" twice`);return e}function Cv(e,t,n){if(e==null||e===`none`)return[];if(e===`test-data`)throw Error(`${t}: "writes: test-data" is the old form. List the environments instead, e.g. "writes: [staging]"`);if(Array.isArray(e)&&e.length===0)return[];if(!Array.isArray(e))throw Error(`${t}: "writes" must be a list of environments, e.g. "writes: [staging]" (or omit it for read-only)`);let r=Sv(e,`writes`,t),i=r.filter(e=>!n.includes(e));if(i.length>0)throw Error(`${t}: unknown environment(s) in "writes": ${i.join(`, `)}. Known: ${n.join(`, `)}`);return r}function wv(e,t,n,r=`case document`){if(t.suites!==void 0&&t.priority!==void 0)throw Error(`${r}: use "suites: [...]" only; "priority" is the old name of the same setting`);let i=t.suites===void 0?t.priority===void 0?(()=>{throw Error(`${r}: front matter needs "suites: [<suite>, ...]", e.g. "suites: [smoke, regression]"`)})():Sv([t.priority],`priority`,r):Sv(t.suites,`suites`,r),a=t[`writes-note`],o=Cv(t.writes,r,n);if(o.length>0&&(typeof a!=`string`||a.trim()===``))throw Error(`${r}: "writes: [${o.join(`, `)}]" needs a "writes-note" that says what the case creates or changes`);let s=null;if(t.envs!==void 0){s=Sv(t.envs,`envs`,r);let e=s.filter(e=>!n.includes(e));if(e.length>0)throw Error(`${r}: unknown environment(s) in "envs": ${e.join(`, `)}. Known: ${n.join(`, `)}`)}let c=o.filter(e=>s!==null&&!s.includes(e));if(c.length>0)throw Error(`${r}: "writes" lists ${c.join(`, `)}, but "envs" does not run the case there`);return{id:e,suites:i,writes:o,writesNote:typeof a==`string`&&a.trim()!==``?a.trim():null,envs:s}}function Tv(e,t,n,r=`case document`){try{return wv(e,t,n,r),[]}catch(e){return[e.message]}}function Ev(e){let t=H_(e,I_(e));return{text:e,frontMatter:G_(e),sections:t,steps:Z_(e,t.find(e=>e.name===`Steps`)),questions:cv(e,t),markers:uv(e,t),values:hv(e,t.find(e=>e.name===`Values`)),targets:bv(e),inputs:_v(e,t.find(e=>e.name===`Inputs`))}}function Dv(e,t){let n=[...t].sort((e,t)=>t.start-e.start),r=e,i=e.length;for(let e of n){if(e.start<0||e.end<e.start||e.end>i)throw Error(`The case changed since it was read: reload it and try again.`);r=r.slice(0,e.start)+e.text+r.slice(e.end),i=e.start}return r}function Ov(e,t,n,r){let i=Ev(e).steps.find(e=>e.number===t);if(!i)throw Error(`The case has no step ${t}.`);if(i.tags.includes(n)===r)return e;if(r){let t=i.insertAt>i.range.start?` `:``;return Dv(e,[{start:i.insertAt,end:i.insertAt,text:`${t}[${n}]`}])}let a=e.slice(i.range.start,i.range.end).lastIndexOf(`[${n}]`);if(a<0)return e;let o=i.range.start+a;return Dv(e,[{start:o-+(e[o-1]===` `||e[o-1]===` `),end:o+n.length+2,text:``}])}var kv=e=>e.replace(/[\r\n]+/g,` `).trim(),Av=e=>e.includes(`\r
|
|
119
|
+
`)?`\r
|
|
120
|
+
`:`
|
|
121
|
+
`;function jv(e,t,n){let r=kv(n);if(t.hasAnswerLine)return t.answer===r?e:Dv(e,[{start:t.answerRange.start,end:t.answerRange.end,text:r===``?``:` ${r}`}]);if(r===``)return e;let i=` `.repeat(t.indent+2),a=Av(e);return Dv(e,[{start:t.blockRange.end,end:t.blockRange.end,text:`${a}${i}- \u270D\uFE0F Answer: ${r}`}])}function Mv(e,t){return Dv(e,[{start:t.blockRange.start,end:L_(e,t.blockRange.end),text:``}])}function Nv(e,t){let n=e.lastIndexOf(`(`,t.range.start),r=e.indexOf(`)`,t.range.end);if(n>=0&&r>=0&&!/[\r\n]/.test(e.slice(n,r))){let i=e.slice(n+1,t.range.start)+e.slice(t.range.end,r);if(/^[\s,;:—-]*$/.test(i))return Dv(e,[{start:e[n-1]===` `&&/[.,;:!?]/.test(e[r+1]??``)?n-1:n,end:r+1,text:``}])}let i=/(?:[ \t]*[,;][ \t]*|[ \t]+)$/.exec(e.slice(0,t.range.start));if(i)return Dv(e,[{start:t.range.start-i[0].length,end:t.range.end,text:``}]);let a=/^[ \t]+/.exec(e.slice(t.range.end)),o=a?t.range.end+a[0].length:t.range.end;return Dv(e,[{start:t.range.start,end:o,text:``}])}function Pv(e,t,n){let r=w_(n,{lineWidth:0}).replace(/\r?\n/g,Av(e)),i=r.endsWith(`
|
|
122
|
+
`)?``:Av(e);return Dv(e,[{start:t.range.start,end:t.range.end,text:`${r}${i}`}])}var Fv=(e,t)=>{let n=Ev(e).values;if(!n?.hasBlock)throw Error(`The case has no "## Values" yaml block to edit.`);if(n.problem)throw Error(n.problem);let r=Object.fromEntries(Object.entries(n.values).map(([e,t])=>[e,{...t}]));return t(r),Pv(e,n,r)};function Iv(e,t,n,r){let i=Ev(e).values?.values[t]?.[n];return(r===null?i===void 0:i===r)?e:Fv(e,e=>{if(r===null){let r=e[t];if(!r)return;delete r[n],Object.keys(r).length===0&&delete e[t]}else(e[t]??={})[n]=r})}function Lv(e,t,n){return Fv(e,e=>{(e.default??={})[t]=n})}function Rv(e,t,n){let r=kv(n);return r===t.recipe?e:r===``?zv(e,t):Dv(e,[{start:t.recipeRange.start,end:t.recipeRange.end,text:r}])}function zv(e,t){return Dv(e,[{start:t.range.start,end:L_(e,t.range.end),text:``}])}function Bv(e,t,n){let r=kv(n);return r===t.text?e:r===``?Vv(e,t):Dv(e,[{start:t.textRange.start,end:t.textRange.end,text:r}])}function Vv(e,t){return Dv(e,[{start:t.range.start,end:L_(e,t.range.end),text:``}])}var Hv=e=>(e??``).replace(/[\r\n()]+/g,` `).trim();function Uv(e,t,n){let r=kv(n);return r===t.text?e:r===``?Wv(e,t):Dv(e,[{start:t.textRange.start,end:t.textRange.end,text:r}])}function Wv(e,t){return Dv(e,[{start:t.range.start,end:L_(e,t.range.end),text:``}])}function Gv(e,t,n){let r=kv(n);if(r===``)return e;let i=Ev(e).steps.find(e=>e.number===t);if(!i)throw Error(`The case has no step ${t}.`);let a=` - Ready when: ${r}`,o=Av(e),s=i.readiness.at(-1),c=L_(e,s?s.range.end:i.range.end);return Dv(e,[{start:c,end:c,text:`${c>0&&e[c-1]!==`
|
|
123
|
+
`?o:``}${a}${o}`}])}function Kv(e,t,n,r){let i=kv(r);if(i===``)return e;let a=Ev(e).steps.find(e=>e.number===t);if(!a)throw Error(`The case has no step ${t}.`);let o=Hv(n),s=` - Recipe${o===``?``:` (${o})`}: ${i}`,c=Av(e),l=a.recipes.at(-1)??a.readiness.at(-1),u=L_(e,l?l.range.end:a.range.end);return Dv(e,[{start:u,end:u,text:`${u>0&&e[u-1]!==`
|
|
124
|
+
`?c:``}${s}${c}`}])}var qv=e=>w_(e,{lineWidth:0}).replace(/\r?\n$/,``),Jv=e=>`[${e.map(e=>qv(e)).join(`, `)}]`;function Yv(e,t,n){let r=G_(e);if(!r)throw Error(`The case has no front matter block.`);if(r.problem)throw Error(r.problem);if(n===null||Array.isArray(n)&&n.length===0)return Xv(e,t);let i=Array.isArray(n)?Jv(n):qv(n),a=r.entries.find(e=>e.key===t);if(a)return a.block?Dv(e,[{start:a.range.start,end:a.range.end,text:`${t}: ${i}`}]):Dv(e,[{start:a.valueRange.start,end:a.valueRange.end,text:i}]);let o=xv.indexOf(t),s=r.entries.filter(e=>xv.includes(e.key)&&xv.indexOf(e.key)<o).at(-1),c=s?L_(e,s.range.end):r.insertAt;return Dv(e,[{start:c,end:c,text:`${c>0&&e[c-1]!==`
|
|
125
|
+
`?Av(e):``}${t}: ${i}${Av(e)}`}])}function Xv(e,t){let n=G_(e)?.entries.find(e=>e.key===t);return n?Dv(e,[{start:n.range.start,end:L_(e,n.range.end),text:``}]):e}function Zv(e,t,n){let r=` `.repeat(String(t.number).length+2),i=n.replace(/\r\n/g,`
|
|
126
|
+
`).split(`
|
|
127
|
+
`).map((e,t)=>t===0?e.replace(/[ \t]+$/,``):`${r}${e.trim()}`).join(`
|
|
128
|
+
`);return i===e.slice(t.textRange.start,t.textRange.end)?e:Dv(e,[{start:t.textRange.start,end:t.textRange.end,text:i}])}function Qv(e,t,n){let r=n.replace(/\r\n/g,`
|
|
129
|
+
`).split(`
|
|
130
|
+
`).map((e,t)=>t===0?e.replace(/[ \t]+$/,``):` ${e.trim()}`).join(`
|
|
131
|
+
`);return r===e.slice(t.textRange.start,t.textRange.end)?e:Dv(e,[{start:t.textRange.start,end:t.textRange.end,text:r}])}function $v(e,t,n){let r=n.replace(/\r\n/g,`
|
|
132
|
+
`).split(`
|
|
133
|
+
`).map((e,t)=>t===0?e.trim():` ${e.trim()}`).join(`
|
|
134
|
+
`);if(r===``)return e;let i=H_(e,I_(e)).find(e=>e.name===t);if(!i)return e;let a=[...W_(e,i).map(({line:e})=>e)].reverse().find(e=>!z_(e.text)),o=a?R_(e,a):i.body.start;return Dv(e,[{start:o,end:o,text:`${o>0&&e[o-1]!==`
|
|
135
|
+
`?Av(e):``}- ${r}${Av(e)}`}])}function ey(e,t){return Dv(e,[{start:t.range.start,end:L_(e,t.range.end),text:``}])}function ty(e,t,n,r){let i=yv(e,t);if(n===r||n<0||r<0||n>=i.length||r>=i.length)return e;let a=i[n],o=i[r],s=L_(e,a.range.end),c=e.slice(a.range.start,s),l=n<r?L_(e,o.range.end):o.range.start;return Dv(e,[{start:a.range.start,end:s,text:``},{start:l,end:l,text:c}])}function ny(e){let[t,n]=(0,K.useState)([]),[r,i]=(0,K.useState)(null),[a,o]=(0,K.useState)(!1),s=(0,K.useRef)(-1);return(0,K.useEffect)(()=>{if(n([]),i(null),s.current=-1,!e)return;let t=new EventSource(`/api/jobs/${e}/events`);return t.onopen=()=>o(!0),t.onerror=()=>o(!1),t.addEventListener(`chunk`,e=>{let t=JSON.parse(e.data);t.seq<=s.current||(s.current=t.seq,n(e=>[...e,t]))}),t.addEventListener(`status`,e=>{let n=JSON.parse(e.data);i(n),n.status!==`running`&&t.close()}),()=>t.close()},[e]),{chunks:t,info:r,connected:a}}var ry={green:`bg-jade-bg text-jade-btn ring-jade-deep/30`,red:`bg-seal-bg text-seal-deep ring-seal/35`,amber:`bg-gold-bg text-gold-deep ring-gold-deep/30`,blue:`bg-qing-bg text-qing-deep ring-qing/40`,gray:`bg-warm text-ink-2 ring-line-mid`},iy=e=>`inline-flex items-center rounded-sm px-2 py-0.5 text-xs font-medium ring-1 ring-inset ${ry[e]}`;function ay({tone:e,children:t}){return(0,q.jsx)(`span`,{className:iy(e),children:t})}var oy=e=>{let t=e??`production`;return`${t===`production`?`bg-jiang`:t===`staging`?`bg-cheng`:`bg-gold-deep`} text-white`};function sy({env:e}){return(0,q.jsx)(`span`,{className:`inline-flex items-center rounded-sm px-2 py-0.5 text-xs font-bold tracking-wider ${oy(e)}`,children:(e??`production`).toUpperCase()})}function cy({title:e}){return(0,q.jsx)(`span`,{title:e,className:`inline-flex items-center rounded-sm bg-card px-2 py-0.5 text-xs font-bold tracking-wider text-seal-deep ring-1 ring-seal/50 ring-inset`,children:`WRITES`})}var ly={ok:{tone:`green`,label:`Logged in`},expired:{tone:`red`,label:`Session expired`},missing:{tone:`red`,label:`Not logged in`},unverified:{tone:`amber`,label:`Saved, not verified`},error:{tone:`amber`,label:`Check failed`}},uy=({status:e})=>(0,q.jsx)(ay,{tone:ly[e].tone,children:ly[e].label}),dy={ok:{tone:`green`,label:`YES`},expired:{tone:`red`,label:`EXPIRED`},missing:{tone:`red`,label:`NO`},unverified:{tone:`amber`,label:`UNKNOWN`},error:{tone:`amber`,label:`ERROR`}},fy=({status:e})=>(0,q.jsx)(ay,{tone:dy[e].tone,children:(0,q.jsx)(`span`,{className:`tracking-wider`,children:dy[e].label})}),py={running:{tone:`blue`,label:`Running`},succeeded:{tone:`green`,label:`Succeeded`},failed:{tone:`red`,label:`Failed`},cancelled:{tone:`gray`,label:`Cancelled`}},my=({status:e,needsInput:t=!1,awaitingUser:n=!1,answered:r=!1})=>e===`succeeded`&&t&&r?(0,q.jsx)(ay,{tone:`gray`,children:`Answered`}):e===`succeeded`&&t?(0,q.jsx)(ay,{tone:`amber`,children:`Needs your input`}):e===`running`&&n?(0,q.jsx)(ay,{tone:`amber`,children:`Your turn`}):(0,q.jsx)(ay,{tone:py[e].tone,children:py[e].label}),Y=(e=`secondary`)=>[`inline-flex items-center justify-center rounded px-3 py-1.5 text-sm font-medium transition duration-150`,`disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-none disabled:hover:translate-y-0`,e===`primary`&&`bg-theme-btn text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`success`&&`bg-jade-btn text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`stop`&&`bg-seal text-white shadow-btn hover:-translate-y-px hover:shadow-btn-lift hover:brightness-110`,e===`info`&&`bg-qing-bg text-qing-deep ring-1 ring-qing/50 hover:-translate-y-px hover:brightness-95 hover:shadow-paper`,e===`secondary`&&`bg-card text-ink ring-1 ring-line-mid hover:-translate-y-px hover:bg-warm hover:shadow-paper`,e===`danger`&&`bg-card text-seal-deep ring-1 ring-seal/40 hover:bg-seal-bg`].filter(Boolean).join(` `),hy=`rounded border border-line-mid bg-white px-2 py-1.5 text-sm text-ink placeholder:text-ink-3 focus:border-theme focus:ring-2 focus:ring-theme/25 focus:outline-none`,gy=`border-line-mid bg-white text-ink focus:border-theme focus:ring-theme/25`,_y=`border-seal bg-seal-bg text-seal-deep focus:border-seal focus:ring-seal/25`;function vy(e){return K.Children.toArray(e).map(e=>typeof e==`string`||typeof e==`number`?String(e):``).join(``)}function yy(e){let t=[];return K.Children.forEach(e,e=>{if(!(0,K.isValidElement)(e))return;let n=e.props,r=vy(n.children);t.push({value:n.value===void 0?r:String(n.value),label:r,dot:n[`data-dot`],disabled:n.disabled??!1})}),t}function by({value:e,onChange:t,invalid:n=!1,tone:r,dot:i,mono:a=!1,className:o=``,children:s,required:c=!1,...l}){let u=(0,K.useRef)(null),d=(0,K.useRef)(null),f=(0,K.useRef)(null),p=(0,K.useId)(),[m,h]=(0,K.useState)(!1),[g,_]=(0,K.useState)(0),v=yy(s),y=v.find(t=>t.value===e)??null,b=e=>{h(!1),e&&d.current?.focus()},x=()=>{let t=v.findIndex(t=>t.value===e);_(t===-1?Math.max(0,v.findIndex(e=>!e.disabled)):t),h(!0)},S=e=>{e.disabled||(t(e.value),b(!0))};(0,K.useEffect)(()=>{m&&f.current?.querySelector(`[data-row="${g}"]`)?.scrollIntoView({block:`nearest`})},[g,m]),(0,K.useEffect)(()=>{if(!m)return;let e=e=>{u.current?.contains(e.target)||h(!1)};return window.addEventListener(`mousedown`,e),()=>window.removeEventListener(`mousedown`,e)},[m]);let C=(e,t)=>{for(let n=e+t;n>=0&&n<v.length;n+=t)if(!v[n].disabled)return n;return e},w=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!m){x();return}_(t=>C(t,e.key===`ArrowDown`?1:-1))}else if(e.key===`Home`||e.key===`End`){if(!m)return;e.preventDefault(),_(e.key===`Home`?Math.max(0,v.findIndex(e=>!e.disabled)):C(v.length,-1))}else if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=v[g];m&&t?S(t):m||x()}else if(e.key===`Escape`){if(!m)return;e.preventDefault(),b(!0)}else e.key===`Tab`&&m&&b(!1)};return(0,q.jsxs)(`div`,{ref:u,className:`relative inline-block ${o}`,children:[i?(0,q.jsx)(`span`,{className:`pointer-events-none absolute top-1/2 left-3 z-10 h-2 w-2 -translate-y-1/2 rounded-full ${i}`,"aria-hidden":`true`}):null,(0,q.jsx)(`button`,{ref:d,type:`button`,role:`combobox`,"aria-invalid":n||void 0,"aria-required":c||void 0,"aria-expanded":m,"aria-controls":m?p:void 0,"aria-activedescendant":m&&v[g]?`${p}-${g}`:void 0,...l,onKeyDown:w,onClick:()=>m?b(!0):x(),className:[`flex h-8 w-full cursor-pointer items-center rounded border py-0 pr-8 text-left text-sm focus:ring-2 focus:outline-none`,`disabled:cursor-not-allowed disabled:opacity-50`,i?`gap-1.5 pl-7 font-medium`:`pl-2`,a&&`font-mono`,r??(n?_y:gy)].filter(Boolean).join(` `),children:(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:y?.label??``})}),(0,q.jsx)(lu,{size:14,className:`pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 ${n?`text-seal-deep`:`text-ink-2`}`,"aria-hidden":`true`}),m?(0,q.jsx)(`div`,{ref:f,id:p,role:`listbox`,className:`card-popup absolute top-full left-0 z-30 mt-1 max-h-64 w-max min-w-full max-w-[22rem] overflow-auto p-1`,children:v.length===0?(0,q.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-ink-3`,children:`No choice.`}):v.map((t,n)=>(0,q.jsxs)(`div`,{id:`${p}-${n}`,"data-row":n,role:`option`,"aria-selected":t.value===e,"aria-disabled":t.disabled||void 0,onMouseDown:e=>e.preventDefault(),onClick:()=>S(t),onMouseEnter:()=>t.disabled?void 0:_(n),className:[`flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors duration-150`,t.disabled?`cursor-not-allowed text-ink opacity-50`:n===g?`cursor-pointer bg-theme-bg text-theme-ink`:`cursor-pointer text-ink hover:bg-warm`].join(` `),children:[t.dot?(0,q.jsx)(`span`,{className:`h-2 w-2 shrink-0 rounded-full ${t.dot}`,"aria-hidden":`true`}):null,(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.label}),t.value===e?(0,q.jsx)(au,{size:14,className:`shrink-0 text-theme-btn`,"aria-hidden":`true`}):null]},t.value))}):null]})}function xy(e){return e?new Date(e).toLocaleString():`-`}var Sy=e=>`/baseline-files?case=${encodeURIComponent(e.caseId)}&file=${encodeURIComponent(e.file)}&v=${Math.round(e.mtimeMs)}`;function Cy({caseIds:e,running:t}){let n=Bn({queries:e.map(e=>({queryKey:[`baselines`,e,t],queryFn:()=>cc.baselines(e),enabled:!t}))});return t?null:(0,q.jsxs)(`div`,{className:`flex max-h-[60%] shrink-0 flex-col gap-3 overflow-auto border-t-2 border-gold-deep/40 bg-gold-bg px-3 py-3`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm font-medium text-gold-deep`,children:[(0,q.jsx)(Fd,{size:16,"aria-hidden":`true`}),`Baselines rewritten by this run: check each image against what it must show`]}),n.map((t,n)=>{let r=e[n],i=[...t.data??[]].sort((e,t)=>Number(t.changed)-Number(e.changed)||e.file.localeCompare(t.file));return(0,q.jsxs)(`section`,{className:`space-y-2`,children:[(0,q.jsx)(`h3`,{className:`font-mono text-xs font-bold text-ink`,children:r}),t.isPending?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Loading the images...`}):null,t.isError?(0,q.jsx)(`p`,{className:`text-xs text-seal-deep`,children:t.error.message}):null,t.data&&i.length===0?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`This case has no baseline images (its spec has no screenshot check, or it did not get that far).`}):null,(0,q.jsx)(`ul`,{className:`space-y-2`,children:i.map(e=>(0,q.jsxs)(`li`,{className:`flex flex-wrap gap-3 rounded-sm border border-line-mid bg-card p-2`,children:[(0,q.jsx)(`a`,{href:Sy(e),target:`_blank`,rel:`noreferrer`,title:`Open the image at full size`,children:(0,q.jsx)(`img`,{src:Sy(e),alt:`Baseline ${e.file}`,className:`max-h-32 max-w-[16rem] rounded-sm border border-line-mid bg-white object-contain`})}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1 text-xs`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`font-mono text-ink-2`,children:e.file}),e.env?(0,q.jsx)(sy,{env:e.env}):null,e.changed?(0,q.jsx)(ay,{tone:`amber`,children:`New or changed`}):(0,q.jsx)(ay,{tone:`gray`,children:`Unchanged`})]}),e.card?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{children:[(0,q.jsxs)(`b`,{children:[`Must show (`,e.card.id,` `,e.card.name,`):`]}),` `,e.card.what??`(the card has no "What")`]}),e.card.where?(0,q.jsxs)(`p`,{className:`text-ink-2`,children:[`Where: `,e.card.where]}):null,e.card.not?(0,q.jsxs)(`p`,{className:`text-seal-deep`,children:[`Must not show: `,e.card.not]}):null]}):null,e.problem?(0,q.jsx)(`p`,{className:`text-seal-deep`,children:e.problem}):null]})]},e.file))})]},r)}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`A wrong image is not kept by itself: delete it, fix the spec (the check must look at the element the card names) and run again with `,(0,q.jsx)(`b`,{children:`Update baselines`}),`.`]})]})}function wy({title:e,action:t,onClose:n,children:r}){return(0,K.useEffect)(()=>{let e=e=>e.key===`Escape`&&n();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]),(0,q.jsx)(`div`,{className:`fixed inset-0 z-40 flex justify-end bg-dai-deep/55 backdrop-blur-[2px]`,onMouseDown:n,children:(0,q.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":typeof e==`string`?e:void 0,className:`flex h-full w-[30rem] max-w-[94vw] flex-col border-l-2 border-ink bg-paper shadow-lift`,onMouseDown:e=>e.stopPropagation(),children:[(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-line-mid bg-card px-4 py-3`,children:[(0,q.jsx)(`h2`,{className:`min-w-0 truncate font-serif text-base`,children:e}),t?(0,q.jsx)(`div`,{className:`ml-auto shrink-0`,children:t}):null,(0,q.jsx)(`button`,{className:`${t?``:`ml-auto `}rounded p-1 text-ink-2 transition-colors hover:bg-warm hover:text-ink`,"aria-label":`Close`,title:`Close (Esc)`,onClick:n,children:(0,q.jsx)(wp,{size:18,"aria-hidden":`true`})})]}),(0,q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4`,children:r})]})})}var Ty=tt(((e,t)=>{var n=[[{color:`0, 0, 0`,class:`ansi-black`},{color:`187, 0, 0`,class:`ansi-red`},{color:`0, 187, 0`,class:`ansi-green`},{color:`187, 187, 0`,class:`ansi-yellow`},{color:`0, 0, 187`,class:`ansi-blue`},{color:`187, 0, 187`,class:`ansi-magenta`},{color:`0, 187, 187`,class:`ansi-cyan`},{color:`255,255,255`,class:`ansi-white`}],[{color:`85, 85, 85`,class:`ansi-bright-black`},{color:`255, 85, 85`,class:`ansi-bright-red`},{color:`0, 255, 0`,class:`ansi-bright-green`},{color:`255, 255, 85`,class:`ansi-bright-yellow`},{color:`85, 85, 255`,class:`ansi-bright-blue`},{color:`255, 85, 255`,class:`ansi-bright-magenta`},{color:`85, 255, 255`,class:`ansi-bright-cyan`},{color:`255, 255, 255`,class:`ansi-bright-white`}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm;t.exports=class e{static escapeForHtml(t){return new e().escapeForHtml(t)}static linkify(t){return new e().linkify(t)}static ansiToHtml(t,n){return new e().ansiToHtml(t,n)}static ansiToJson(t,n){return new e().ansiToJson(t,n)}static ansiToText(t){return new e().ansiToText(t)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let e=0;e<2;++e)for(let t=0;t<8;++t)this.PALETTE_COLORS.push(n[e][t].color);let e=[0,95,135,175,215,255],t=(t,n,r)=>e[t]+`, `+e[n]+`, `+e[r];for(let e=0;e<6;++e)for(let n=0;n<6;++n)for(let r=0;r<6;++r)this.PALETTE_COLORS.push(t(e,n,r));let r=8;for(let e=0;e<24;++e,r+=10)this.PALETTE_COLORS.push(r+`, `+r+`, `+r)}escapeForHtml(e){return e.replace(/[&<>\"]/gm,e=>e==`&`?`&`:e==`"`?`"`:e==`<`?`<`:e==`>`?`>`:``)}linkify(e){return e.replace(r,e=>`<a href="${e}">${e}</a>`)}ansiToHtml(e,t){return this.process(e,t,!0)}ansiToJson(e,t){return t||={},t.json=!0,t.clearLine=!1,this.process(e,t,!0)}ansiToText(e){return this.process(e,{},!1)}process(e,t,n){let r=this,i=e.split(/\033\[/),a=i.shift();t??={},t.clearLine=/\r/.test(e);let o=i.map(e=>this.processChunk(e,t,n));if(t&&t.json){let e=r.processChunkJson(``);return e.content=a,e.clearLine=t.clearLine,o.unshift(e),t.remove_empty&&(o=o.filter(e=>!e.isEmpty())),o}return o.unshift(a),o.join(``)}processChunkJson(e,t,r){t=t===void 0?{}:t;let i=t.use_classes=t.use_classes!==void 0&&t.use_classes,a=t.key=i?`class`:`color`,o={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:t.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!o.content},s=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!s)return o;o.content=s[4];let c=s[2].split(`;`);if(s[1]!==``||s[3]!==`m`||!r)return o;let l=this;for(;c.length>0;){let e=c.shift(),t=parseInt(e);if(isNaN(t)||t===0)l.fg=l.bg=null,l.decorations=[];else if(t===1)l.decorations.push(`bold`);else if(t===2)l.decorations.push(`dim`);else if(t===3)l.decorations.push(`italic`);else if(t===4)l.decorations.push(`underline`);else if(t===5)l.decorations.push(`blink`);else if(t===7)l.decorations.push(`reverse`);else if(t===8)l.decorations.push(`hidden`);else if(t===9)l.decorations.push(`strikethrough`);else if(t===21)l.removeDecoration(`bold`);else if(t===22)l.removeDecoration(`bold`),l.removeDecoration(`dim`);else if(t===23)l.removeDecoration(`italic`);else if(t===24)l.removeDecoration(`underline`);else if(t===25)l.removeDecoration(`blink`);else if(t===27)l.removeDecoration(`reverse`);else if(t===28)l.removeDecoration(`hidden`);else if(t===29)l.removeDecoration(`strikethrough`);else if(t===39)l.fg=null;else if(t===49)l.bg=null;else if(t>=30&&t<38)l.fg=n[0][t%10][a];else if(t>=90&&t<98)l.fg=n[1][t%10][a];else if(t>=40&&t<48)l.bg=n[0][t%10][a];else if(t>=100&&t<108)l.bg=n[1][t%10][a];else if(t===38||t===48){let e=t===38;if(c.length>=1){let t=c.shift();if(t===`5`&&c.length>=1){let t=parseInt(c.shift());if(t>=0&&t<=255){if(!i)this.PALETTE_COLORS||l.setupPalette(),e?l.fg=this.PALETTE_COLORS[t]:l.bg=this.PALETTE_COLORS[t];else{let r=t>=16?`ansi-palette-`+t:n[+(t>7)][t%8].class;e?l.fg=r:l.bg=r}}}else if(t===`2`&&c.length>=3){let t=parseInt(c.shift()),n=parseInt(c.shift()),r=parseInt(c.shift());if(t>=0&&t<=255&&n>=0&&n<=255&&r>=0&&r<=255){let a=t+`, `+n+`, `+r;i?e?(l.fg=`ansi-truecolor`,l.fg_truecolor=a):(l.bg=`ansi-truecolor`,l.bg_truecolor=a):e?l.fg=a:l.bg=a}}}}}return l.fg===null&&l.bg===null&&l.decorations.length===0||(o.fg=l.fg,o.bg=l.bg,o.fg_truecolor=l.fg_truecolor,o.bg_truecolor=l.bg_truecolor,o.decorations=l.decorations,o.decoration=l.decorations.slice(-1).pop()||null,o.was_processed=!0),o}processChunk(e,t,r){t||={};let i=this.processChunkJson(e,t,r),a=t.use_classes;if(i.decorations=i.decorations.filter(e=>{if(e===`reverse`){i.fg||=n[0][7][a?`class`:`color`],i.bg||=n[0][0][a?`class`:`color`];let e=i.fg;i.fg=i.bg,i.bg=e;let t=i.fg_truecolor;return i.fg_truecolor=i.bg_truecolor,i.bg_truecolor=t,i.isInverted=!0,!1}return!0}),t.json)return i;if(i.isEmpty())return``;if(!i.was_processed)return i.content;let o=[],s=[],c=[],l={},u=e=>{let t=[],n;for(n in e)e.hasOwnProperty(n)&&t.push(`data-`+n+`="`+this.escapeForHtml(e[n])+`"`);return t.length>0?` `+t.join(` `):``};return i.isInverted&&(l[`ansi-is-inverted`]=`true`),i.fg&&(a?(o.push(i.fg+`-fg`),i.fg_truecolor!==null&&(l[`ansi-truecolor-fg`]=i.fg_truecolor,i.fg_truecolor=null)):o.push(`color:rgb(`+i.fg+`)`)),i.bg&&(a?(o.push(i.bg+`-bg`),i.bg_truecolor!==null&&(l[`ansi-truecolor-bg`]=i.bg_truecolor,i.bg_truecolor=null)):o.push(`background-color:rgb(`+i.bg+`)`)),i.decorations.forEach(e=>{a?s.push(`ansi-`+e):e===`bold`?s.push(`font-weight:bold`):e===`dim`?s.push(`opacity:0.5`):e===`italic`?s.push(`font-style:italic`):e===`hidden`?s.push(`visibility:hidden`):e===`strikethrough`?c.push(`line-through`):c.push(e)}),c.length&&s.push(`text-decoration:`+c.join(` `)),a?`<span class="`+o.concat(s).join(` `)+`"`+u(l)+`>`+i.content+`</span>`:`<span style="`+o.concat(s).join(`;`)+`"`+u(l)+`>`+i.content+`</span>`}removeDecoration(e){let t=this.decorations.indexOf(e);t>=0&&this.decorations.splice(t,1)}}}));function Ey(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Dy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Oy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ky={};function Ay(e,t){return((t||ky).jsx?Oy:Dy).test(e)}var jy=/[ \t\n\f\r]/g;function My(e){return typeof e==`object`?e.type===`text`&&Ny(e.value):Ny(e)}function Ny(e){return e.replace(jy,``)===``}var Py=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Py.prototype.normal={},Py.prototype.property={},Py.prototype.space=void 0;function Fy(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Py(n,r,t)}function Iy(e){return e.toLowerCase()}var Ly=class{constructor(e,t){this.attribute=t,this.property=e}};Ly.prototype.attribute=``,Ly.prototype.booleanish=!1,Ly.prototype.boolean=!1,Ly.prototype.commaOrSpaceSeparated=!1,Ly.prototype.commaSeparated=!1,Ly.prototype.defined=!1,Ly.prototype.mustUseProperty=!1,Ly.prototype.number=!1,Ly.prototype.overloadedBoolean=!1,Ly.prototype.property=``,Ly.prototype.spaceSeparated=!1,Ly.prototype.space=void 0;var Ry=nt({boolean:()=>By,booleanish:()=>Vy,commaOrSpaceSeparated:()=>Gy,commaSeparated:()=>Wy,number:()=>X,overloadedBoolean:()=>Hy,spaceSeparated:()=>Uy}),zy=0,By=Ky(),Vy=Ky(),Hy=Ky(),X=Ky(),Uy=Ky(),Wy=Ky(),Gy=Ky();function Ky(){return 2**++zy}var qy=Object.keys(Ry),Jy=class extends Ly{constructor(e,t,n,r){let i=-1;if(super(e,t),Yy(this,`space`,r),typeof n==`number`)for(;++i<qy.length;){let e=qy[i];Yy(this,qy[i],(n&Ry[e])===Ry[e])}}};Jy.prototype.defined=!0;function Yy(e,t,n){n&&(e[t]=n)}function Xy(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Jy(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Iy(r)]=r,n[Iy(a.attribute)]=r}return new Py(t,n,e.space)}var Zy=Xy({properties:{ariaActiveDescendant:null,ariaAtomic:Vy,ariaAutoComplete:null,ariaBusy:Vy,ariaChecked:Vy,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:Uy,ariaCurrent:null,ariaDescribedBy:Uy,ariaDetails:null,ariaDisabled:Vy,ariaDropEffect:Uy,ariaErrorMessage:null,ariaExpanded:Vy,ariaFlowTo:Uy,ariaGrabbed:Vy,ariaHasPopup:null,ariaHidden:Vy,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Uy,ariaLevel:X,ariaLive:null,ariaModal:Vy,ariaMultiLine:Vy,ariaMultiSelectable:Vy,ariaOrientation:null,ariaOwns:Uy,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Vy,ariaReadOnly:Vy,ariaRelevant:null,ariaRequired:Vy,ariaRoleDescription:Uy,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Vy,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Qy(e,t){return t in e?e[t]:t}function $y(e,t){return Qy(e,t.toLowerCase())}var eb=Xy({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Wy,acceptCharset:Uy,accessKey:Uy,action:null,allow:null,allowFullScreen:By,allowPaymentRequest:By,allowUserMedia:By,alpha:By,alt:null,as:null,async:By,autoCapitalize:null,autoComplete:Uy,autoFocus:By,autoPlay:By,blocking:Uy,capture:null,charSet:null,checked:By,cite:null,className:Uy,closedBy:null,colorSpace:null,cols:X,colSpan:X,command:null,commandFor:null,content:null,contentEditable:Vy,controls:By,controlsList:Uy,coords:X|Wy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:By,defer:By,dir:null,dirName:null,disabled:By,download:Hy,draggable:Vy,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:By,formTarget:null,headers:Uy,height:X,hidden:Hy,high:X,href:null,hrefLang:null,htmlFor:Uy,httpEquiv:Uy,id:null,imageSizes:null,imageSrcSet:null,inert:By,inputMode:null,integrity:null,is:null,isMap:By,itemId:null,itemProp:Uy,itemRef:Uy,itemScope:By,itemType:Uy,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:By,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:By,muted:By,name:null,nonce:null,noModule:By,noValidate:By,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:By,optimum:X,pattern:null,ping:Uy,placeholder:null,playsInline:By,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:By,referrerPolicy:null,rel:Uy,required:By,reversed:By,rows:X,rowSpan:X,sandbox:Uy,scope:null,scoped:By,seamless:By,selected:By,shadowRootClonable:By,shadowRootCustomElementRegistry:By,shadowRootDelegatesFocus:By,shadowRootMode:null,shadowRootSerializable:By,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Vy,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:By,useMap:null,value:Vy,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Uy,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:By,declare:By,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:By,noHref:By,noShade:By,noWrap:By,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Vy,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:By,disablePictureInPicture:By,disableRemotePlayback:By,exportParts:Wy,part:Uy,prefix:null,property:null,results:X,security:null,unselectable:null},space:`html`,transform:$y}),tb=Xy({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Gy,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:Uy,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:By,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wy,g2:Wy,glyphName:Wy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:Gy,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Uy,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gy,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gy,rev:Gy,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gy,requiredFeatures:Gy,requiredFonts:Gy,requiredFormats:Gy,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:Gy,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gy,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gy,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Qy}),nb=Xy({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),rb=Xy({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:$y}),ib=Xy({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ab={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},ob=/[A-Z]/g,sb=/-[a-z]/g,cb=/^data[-\w.:]+$/i;function lb(e,t){let n=Iy(t),r=t,i=Ly;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&cb.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(sb,db);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!sb.test(e)){let n=e.replace(ob,ub);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Jy}return new i(r,t)}function ub(e){return`-`+e.toLowerCase()}function db(e){return e.charAt(1).toUpperCase()}var fb=Fy([Zy,eb,nb,rb,ib],`html`),pb=Fy([Zy,tb,nb,rb,ib],`svg`);function mb(e){return e.join(` `).trim()}var hb=tt(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
136
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),gb=tt(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(hb());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),_b=tt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),vb=tt(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(gb()),i=_b();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),yb=xb(`end`),bb=xb(`start`);function xb(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Sb(e){let t=bb(e),n=yb(e);if(t&&n)return{start:t,end:n}}function Cb(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Tb(e.position):`start`in e||`end`in e?Tb(e):`line`in e||`column`in e?wb(e):``}function wb(e){return Eb(e&&e.line)+`:`+Eb(e&&e.column)}function Tb(e){return wb(e&&e.start)+`-`+wb(e&&e.end)}function Eb(e){return e&&typeof e==`number`?e:1}var Db=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Cb(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Db.prototype.file=``,Db.prototype.name=``,Db.prototype.reason=``,Db.prototype.message=``,Db.prototype.stack=``,Db.prototype.column=void 0,Db.prototype.line=void 0,Db.prototype.ancestors=void 0,Db.prototype.cause=void 0,Db.prototype.fatal=void 0,Db.prototype.place=void 0,Db.prototype.ruleId=void 0,Db.prototype.source=void 0;var Ob=it(vb(),1),kb={}.hasOwnProperty,Ab=new Map,jb=/[A-Z]/g,Mb=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Nb=new Set([`td`,`th`]),Pb=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Fb(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Kb(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Gb(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?pb:fb,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ib(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ib(e,t,n){if(t.type===`element`)return Lb(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Rb(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Bb(e,t,n);if(t.type===`mdxjsEsm`)return zb(e,t);if(t.type===`root`)return Vb(e,t,n);if(t.type===`text`)return Hb(e,t)}function Lb(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=pb,e.schema=i),e.ancestors.push(t);let a=Qb(e,t.tagName,!1),o=qb(e,t),s=Yb(e,t);return Mb.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!My(e)})),Ub(e,o,a,t),Wb(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Rb(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$b(e,t.position)}function zb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$b(e,t.position)}function Bb(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=pb,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Qb(e,t.name,!0),o=Jb(e,t),s=Yb(e,t);return Ub(e,o,a,t),Wb(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Vb(e,t,n){let r={};return Wb(r,Yb(e,t)),e.create(t,e.Fragment,r,n)}function Hb(e,t){return t.value}function Ub(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wb(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Gb(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Kb(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=bb(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function qb(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&kb.call(t.properties,i)){let a=Xb(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Nb.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Jb(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else $b(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else $b(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Yb(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ab;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Ib(e,a,o);s!==void 0&&n.push(s)}return n}function Xb(e,t,n){let r=lb(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ey(n):mb(n)),r.property===`style`){let t=typeof n==`object`?n:Zb(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ex(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?ab[r.property]||r.property:r.attribute,n]}}function Zb(e,t){try{return(0,Ob.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Db("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Pb+`#cannot-parse-style-attribute`,r}}function Qb(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Ay(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Ay(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return kb.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$b(e)}function $b(e,t){let n=new Db("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Pb+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ex(e){let t={},n;for(n in e)kb.call(e,n)&&(t[tx(n)]=e[n]);return t}function tx(e){let t=e.replace(jb,nx);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function nx(e){return`-`+e.toLowerCase()}var rx={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},ix={};function ax(e,t){let n=t||ix;return ox(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function ox(e,t,n){if(cx(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return sx(e.children,t,n)}return Array.isArray(e)?sx(e,t,n):``}function sx(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ox(e[i],t,n);return r.join(``)}function cx(e){return!!(e&&typeof e==`object`)}var lx=document.createElement(`i`);function ux(e){let t=`&`+e+`;`;lx.innerHTML=t;let n=lx.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function dx(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function fx(e,t){return e.length>0?(dx(e,e.length,0,t),e):t}var px={}.hasOwnProperty;function mx(e){let t={},n=-1;for(;++n<e.length;)hx(t,e[n]);return t}function hx(e,t){let n;for(n in t){let r=(px.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){px.call(r,a)||(r[a]=[]);let e=i[a];gx(r[a],Array.isArray(e)?e:e?[e]:[])}}}function gx(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);dx(e,0,0,r)}function _x(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function vx(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var yx=jx(/[A-Za-z]/),bx=jx(/[\dA-Za-z]/),xx=jx(/[#-'*+\--9=?A-Z^-~]/);function Sx(e){return e!==null&&(e<32||e===127)}var Cx=jx(/\d/),wx=jx(/[\dA-Fa-f]/),Tx=jx(/[!-/:-@[-`{-~]/);function Ex(e){return e!==null&&e<-2}function Dx(e){return e!==null&&(e<0||e===32)}function Ox(e){return e===-2||e===-1||e===32}var kx=jx(/\p{P}|\p{S}/u),Ax=jx(/\s/);function jx(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Mx(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&bx(e.charCodeAt(n+1))&&bx(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Nx(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Ox(r)?(e.enter(n),s(r)):t(r)}function s(r){return Ox(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Px(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Ox(t)?(e.enter(r),c(t)):l(t)}function c(t){return Ox(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Fx={tokenize:Ix};function Ix(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Nx(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Ex(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Lx=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Rx(this,e,t,n,!1)}addBefore(e,t,n){Rx(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Rx(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var zx={tokenize:Vx},Bx={tokenize:Hx};function Vx(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Lx;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Bx,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Bx,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Ex(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Lx;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hx(e,t,n){return Nx(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ux(e){if(e===null||Dx(e)||Ax(e))return 1;if(kx(e))return 2}function Wx(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Gx={name:`attention`,resolveAll:Kx,tokenize:qx};function Kx(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};Jx(o,-a),Jx(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=fx(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=fx(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=fx(r,Wx(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=fx(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=fx(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),dx(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function qx(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ux(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ux(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Jx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Yx={name:`autolink`,tokenize:Xx};function Xx(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return yx(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||bx(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||bx(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Sx(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):xx(t)?(e.consume(t),l):n(t)}function u(e){return bx(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||bx(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Zx={partial:!0,tokenize:Qx};function Qx(e,t,n){return r;function r(t){return Ox(t)?Nx(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Ex(e)?t(e):n(e)}}var $x={continuation:{tokenize:tS},exit:nS,name:`blockQuote`,tokenize:eS};function eS(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Ox(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function tS(e,t,n){let r=this;return i;function i(t){return Ox(t)?Nx(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt($x,t,n)(r)}}function nS(e){e.exit(`blockQuote`)}var rS={name:`characterEscape`,tokenize:iS};function iS(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Tx(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var aS={name:`characterReference`,tokenize:oS};function oS(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=bx,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=wx,u):(e.enter(`characterReferenceValue`),a=7,o=Cx,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===bx&&!ux(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var sS={partial:!0,tokenize:cS};function cS(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var lS={concrete:!0,name:`codeFenced`,tokenize:uS};function uS(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Ox(t)?Nx(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Ex(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(sS,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Ex(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Ox(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Nx(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Ex(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Ex(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Ox(t)?Nx(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Ex(t)?e.check(sS,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Ex(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Ox(t)?Nx(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Ox(t)?Nx(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Ex(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var dS={name:`codeIndented`,tokenize:pS},fS={partial:!0,tokenize:mS};function pS(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Px(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Ex(t)?e.attempt(fS,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Ex(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function mS(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ex(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Px(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Ex(e)?i(e):n(e)}}var hS={name:`codeText`,previous:_S,resolve:gS,tokenize:vS};function gS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _S(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function vS(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Ex(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Ex(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var yS=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&bS(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),bS(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),bS(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);bS(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);bS(this.left,t.reverse())}}}};function bS(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function xS(e){let t={},n=-1,r,i,a,o,s,c,l,u=new yS(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,SS(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return dx(e,0,1/0,u.slice(0)),!l}function SS(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var CS={resolve:TS,tokenize:ES},wS={partial:!0,tokenize:DS};function TS(e){return xS(e),e}function ES(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Ex(t)?e.check(wS,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function DS(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Nx(e,a,`linePrefix`)}function a(i){if(i===null||Ex(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function OS(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Sx(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Ex(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Dx(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Sx(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function kS(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Ex(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Ex(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Ox(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function AS(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Ex(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Nx(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Ex(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function jS(e,t){let n;return r;function r(i){return Ex(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Ox(i)?Nx(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var MS={name:`definition`,tokenize:PS},NS={partial:!0,tokenize:FS};function PS(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return kS.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=vx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Dx(t)?jS(e,l)(t):l(t)}function l(t){return OS(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(NS,d,d)(t)}function d(t){return Ox(t)?Nx(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Ex(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function FS(e,t,n){return r;function r(t){return Dx(t)?jS(e,i)(t):n(t)}function i(t){return AS(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Ox(t)?Nx(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Ex(e)?t(e):n(e)}}var IS={name:`hardBreakEscape`,tokenize:LS};function LS(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Ex(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var RS={name:`headingAtx`,resolve:zS,tokenize:BS};function zS(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};dx(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function BS(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Dx(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Ex(n)?(e.exit(`atxHeading`),t(n)):Ox(n)?Nx(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Dx(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var VS=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),HS=[`pre`,`script`,`style`,`textarea`],US={concrete:!0,name:`htmlFlow`,resolveTo:GS,tokenize:KS},WS={partial:!0,tokenize:qS};function GS(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KS(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:F):yx(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):yx(a)?(e.consume(a),i=4,r.interrupt?t:F):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:F):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return yx(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Dx(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&HS.includes(l)?(i=1,r.interrupt?t(s):O(s)):VS.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||bx(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Ox(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||yx(t)?(e.consume(t),b):Ox(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||bx(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Ox(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Ox(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Ex(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Dx(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Ox(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Ex(t)?O(t):Ox(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),I):t===63&&i===3?(e.consume(t),F):t===93&&i===5?(e.consume(t),ee):Ex(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(WS,te,k)(t)):t===null||Ex(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(sS,A,te)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Ex(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),F):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return HS.includes(n)?(e.consume(t),I):O(t)}return yx(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function ee(t){return t===93?(e.consume(t),F):O(t)}function F(t){return t===62?(e.consume(t),I):t===45&&i===2?(e.consume(t),F):O(t)}function I(t){return t===null||Ex(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),I)}function te(n){return e.exit(`htmlFlow`),t(n)}}function qS(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Zx,t,n)}}var JS={name:`htmlText`,tokenize:YS};function YS(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):yx(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):yx(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Ex(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Ex(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Ex(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Ex(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return yx(t)?(e.consume(t),S):n(t)}function S(t){return t===45||bx(t)?(e.consume(t),S):C(t)}function C(t){return Ex(t)?(o=C,N(t)):Ox(t)?(e.consume(t),C):M(t)}function w(t){return t===45||bx(t)?(e.consume(t),w):t===47||t===62||Dx(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||yx(t)?(e.consume(t),E):Ex(t)?(o=T,N(t)):Ox(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||bx(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Ex(t)?(o=D,N(t)):Ox(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Ex(t)?(o=O,N(t)):Ox(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Ex(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Dx(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Dx(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return Ox(t)?Nx(e,ee,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ee(t)}function ee(t){return e.enter(`htmlTextData`),o(t)}}var XS={name:`labelEnd`,resolveAll:eC,resolveTo:tC,tokenize:nC},ZS={tokenize:rC},QS={tokenize:iC},$S={tokenize:aC};function eC(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&dx(e,0,e.length,n),e}function tC(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=fx(o,e.slice(i+1,i+r+3)),o=fx(o,[[`enter`,l,t]]),o=fx(o,Wx(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=fx(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=fx(o,e.slice(a+1)),o=fx(o,[[`exit`,s,t]]),dx(e,i,e.length,o),e}function nC(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(vx(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(ZS,u,o?u:d)(t):t===91?e.attempt(QS,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt($S,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function rC(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Dx(t)?jS(e,a)(t):a(t)}function a(t){return t===41?u(t):OS(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Dx(t)?jS(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?AS(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Dx(t)?jS(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function iC(e,t,n){let r=this;return i;function i(t){return kS.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(vx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function aC(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var oC={name:`labelStartImage`,resolveAll:XS.resolveAll,tokenize:sC};function sC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var cC={name:`labelStartLink`,resolveAll:XS.resolveAll,tokenize:lC};function lC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var uC={name:`lineEnding`,tokenize:dC};function dC(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Nx(e,t,`linePrefix`)}}var fC={name:`thematicBreak`,tokenize:pC};function pC(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Ex(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Ox(t)?Nx(e,s,`whitespace`)(t):s(t))}}var mC={continuation:{tokenize:vC},exit:bC,name:`list`,tokenize:_C},hC={partial:!0,tokenize:xC},gC={partial:!0,tokenize:yC};function _C(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Cx(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(fC,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Cx(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Zx,r.interrupt?n:u,e.attempt(hC,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Ox(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function vC(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Zx,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Nx(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ox(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gC,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Nx(e,e.attempt(mC,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function yC(e,t,n){let r=this;return Nx(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function bC(e){e.exit(this.containerState.type)}function xC(e,t,n){let r=this;return Nx(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Ox(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var SC={name:`setextUnderline`,resolveTo:CC,tokenize:wC};function CC(e,t){let n=new Lx,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function wC(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Ox(t)?Nx(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Ex(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var TC={tokenize:EC};function EC(e){let t=this,n=e.attempt(Zx,r,e.attempt(this.parser.constructs.flowInitial,i,Nx(e,e.attempt(this.parser.constructs.flow,i,e.attempt(CS,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var DC={resolveAll:jC()},OC=AC(`string`),kC=AC(`text`);function AC(e){return{resolveAll:jC(e===`text`?MC:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function jC(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function MC(e,t){let n=new Lx,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var NC=nt({attentionMarkers:()=>VC,contentInitial:()=>FC,disable:()=>HC,document:()=>PC,flow:()=>LC,flowInitial:()=>IC,insideSpan:()=>BC,string:()=>RC,text:()=>zC}),PC={42:mC,43:mC,45:mC,48:mC,49:mC,50:mC,51:mC,52:mC,53:mC,54:mC,55:mC,56:mC,57:mC,62:$x},FC={91:MS},IC={[-2]:dS,[-1]:dS,32:dS},LC={35:RS,42:fC,45:[SC,fC],60:US,61:SC,95:fC,96:lS,126:lS},RC={38:aS,92:rS},zC={[-5]:uC,[-4]:uC,[-3]:uC,33:oC,38:aS,42:Gx,60:[Yx,JS],91:cC,92:[IS,rS],93:XS,95:Gx,96:hS},BC={null:[Gx,DC]},VC={null:[42,95]},HC={null:[]};function UC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=fx(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Wx(a,l.events,l),l.events):[]}function f(e,t){return GC(p(e),t)}function p(e){return WC(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Ex(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&dx(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function WC(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function GC(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
137
|
+
`;break;case-3:o=`\r
|
|
138
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function KC(e){let t={constructs:mx([NC,...(e||{}).extensions||[]]),content:n(Fx),defined:[],document:n(zx),flow:n(TC),lazy:{},string:n(OC),text:n(kC)};return t;function n(e){return n;function n(n){return UC(t,e,n)}}}function qC(e){for(;!xS(e););return e}var JC=/[\0\t\n\r]/g;function YC(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){JC.lastIndex=c;let n=JC.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var XC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZC(e){return e.replace(XC,QC)}function QC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return _x(n.slice(t?2:1),t?16:10)}return ux(n)||e}var $C={}.hasOwnProperty;function ew(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),tw(n)(qC(KC(n).document().write(YC()(e,t,!0))))}function tw(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(pe),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(le),blockQuote:o(ae),characterEscape:E,characterReference:E,codeFenced:o(H),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(H,s),codeText:o(oe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(se),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ce),hardBreakEscape:o(ue),hardBreakTrailing:o(ue),htmlFlow:o(de,s),htmlFlowData:E,htmlText:o(de,s),htmlTextData:E,image:o(fe),label:s,link:o(pe),listItem:o(he),listItemValue:p,listOrdered:o(me,f),listUnordered:o(me),paragraph:o(ge),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(le),strong:o(_e),thematicBreak:o(ye)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:B,characterReference:V,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:F,labelText:ee,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:R,resourceDestinationString:I,resourceTitleString:te,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};rw(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),$C.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||aw).call(o,void 0,e[0])}for(r.position={start:nw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:nw(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+Cb({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||aw).call(this,e,r[0])),n.position.end=nw(e.end)}function d(){return ax(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vx(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=ve(),n.position={start:nw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nw(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=nw(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ee(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ZC(t),n.identifier=vx(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function L(){this.data.referenceType=`collapsed`}function R(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function z(e){this.data.characterReferenceType=e.type}function B(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=_x(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=ux(t);let i=this.stack[this.stack.length-1];i.value+=r}function V(e){let t=this.stack.pop();t.position.end=nw(e.end)}function re(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[],position:void 0}}function H(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function oe(){return{type:`inlineCode`,value:``,position:void 0}}function se(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function ce(){return{type:`emphasis`,children:[],position:void 0}}function le(){return{type:`heading`,depth:0,children:[],position:void 0}}function ue(){return{type:`break`,position:void 0}}function de(){return{type:`html`,value:``,position:void 0}}function fe(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function pe(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function me(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function he(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function ge(){return{type:`paragraph`,children:[],position:void 0}}function _e(){return{type:`strong`,children:[],position:void 0}}function ve(){return{type:`text`,value:``,position:void 0}}function ye(){return{type:`thematicBreak`,position:void 0}}}function nw(e){return{line:e.line,column:e.column,offset:e.offset}}function rw(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?rw(e,r):iw(e,r)}}function iw(e,t){let n;for(n in t)if($C.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function aw(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Cb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cb({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Cb({start:t.start,end:t.end})+`) is still open`)}function ow(e){let t=this;t.parser=n;function n(n){return ew(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function sw(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cw(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
139
|
+
`}]}function lw(e,t){let n=t.value?t.value+`
|
|
140
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function uw(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dw(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fw(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Mx(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function pw(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mw(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hw(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function gw(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hw(e,t);let i={src:Mx(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function _w(e,t){let n={src:Mx(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vw(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yw(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hw(e,t);let i={href:Mx(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function bw(e,t){let n={href:Mx(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xw(e,t,n){let r=e.all(t),i=n?Sw(n):Cw(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
141
|
+
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
142
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Sw(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Cw(n[r])}return t}function Cw(e){return e.spread??e.children.length>1}function ww(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Tw(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ew(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Dw(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ow(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=bb(t.children[1]),o=yb(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function kw(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Aw(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var jw=9,Mw=32;function Nw(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Pw(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Pw(t.slice(i),i>0,!1)),a.join(``)}function Pw(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===jw||t===Mw;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===jw||t===Mw;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Fw(e,t){let n={type:`text`,value:Nw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Iw(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Lw={blockquote:sw,break:cw,code:lw,delete:uw,emphasis:dw,footnoteReference:fw,heading:pw,html:mw,imageReference:gw,image:_w,inlineCode:vw,linkReference:yw,link:bw,listItem:xw,list:ww,paragraph:Tw,root:Ew,strong:Dw,table:Ow,tableCell:Aw,tableRow:kw,text:Fw,thematicBreak:Iw,toml:Rw,yaml:Rw,definition:Rw,footnoteDefinition:Rw};function Rw(){}var{defineProperty:zw}=Object,Bw=typeof self==`object`?self:globalThis,Vw=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Bw[e](t)},Hw=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?zw(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Bw[e]==`function`?Vw(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Vw(a,o),i)};return r},Uw=e=>Hw(new Map,e)(0),Ww=``,{toString:Gw}={},{keys:Kw,is:qw}=Object,Jw=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Gw.call(e).slice(8,-1);switch(n){case`Array`:return[1,Ww];case`Object`:return[2,Ww];case`Date`:return[3,Ww];case`RegExp`:return[4,Ww];case`Map`:return[5,Ww];case`Set`:return[6,Ww];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Yw=([e,t])=>e===0&&(t===`function`||t===`symbol`),Xw=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Jw(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&qw(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Kw(o))(e||!Yw(Jw(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Ww:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Yw(Jw(n))||Yw(Jw(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Yw(Jw(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Zw=(e,{json:t,lossy:n}={})=>{let r=[];return Xw(!(t||n),!!t,new Map,r)(e),r},Qw=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Uw(Zw(e,t)):structuredClone(e):(e,t)=>Uw(Zw(e,t));function $w(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function eT(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function tT(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||$w,r=e.options.footnoteBackLabel||eT,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Mx(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Qw(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
143
|
+
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
144
|
+
`}]}}var nT=(function(e){if(e==null)return sT;if(typeof e==`function`)return oT(e);if(typeof e==`object`)return Array.isArray(e)?rT(e):iT(e);if(typeof e==`string`)return aT(e);throw Error(`Expected function, string, or object as test`)});function rT(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nT(e[n]);return oT(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function iT(e){let t=e;return oT(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function aT(e){return oT(t);function t(t){return t&&t.type===e}}function oT(e){return t;function t(t,n,r){return!!(cT(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function sT(){return!0}function cT(e){return typeof e==`object`&&!!e&&`type`in e}function lT(e){return e}var uT=[],dT=`skip`;function fT(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=nT(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+lT(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=uT;if(s&&r&&(o=pT(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=pT(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function pT(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?uT:[e]}function mT(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?fT(e,i,gT(a),o):fT(e,i,hT(a),o)}function hT(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?gT(e.enter):e.enter,exit:typeof e.exit==`function`?gT(e.exit):e.exit}}function gT(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var _T={}.hasOwnProperty,vT={};function yT(e,t){let n=t||vT,r=new Map,i=new Map,a={all:s,applyData:xT,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Lw,...n.handlers},one:o,options:n,patch:bT,wrap:CT};return mT(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(_T.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Qw(n);return r.children=a.all(e),r}return Qw(e)}return(a.options.unknownHandler||ST)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=wT(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=wT(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function bT(e,t){e.position&&(t.position=Sb(e))}function xT(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Qw(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function ST(e,t){let n=t.data||{},r=`value`in t&&!(_T.call(n,`hProperties`)||_T.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function CT(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
145
|
+
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
146
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
147
|
+
`}),n}function wT(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function TT(e,t){let n=yT(e,t),r=n.one(e,void 0),i=tT(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
148
|
+
`},i)),a}function ET(e,t){return e&&`run`in e?async function(n,r){let i=TT(n,{file:r,...t});await e.run(i,r)}:function(n,r){return TT(n,{file:r,...e||t})}}function DT(e){if(e)throw e}var OT=tt(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function kT(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function AT(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?jT(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function jT(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var MT={basename:NT,dirname:PT,extname:FT,join:IT,sep:`/`};function NT(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);zT(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function PT(e){if(zT(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function FT(e){zT(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function IT(...e){let t=-1,n;for(;++t<e.length;)zT(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:LT(n)}function LT(e){zT(e);let t=e.codePointAt(0)===47,n=RT(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function RT(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function zT(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var BT={cwd:VT};function VT(){return`/`}function HT(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function UT(e){if(typeof e==`string`)e=new URL(e);else if(!HT(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return WT(e)}function WT(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var GT=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],KT=class{constructor(e){let t;t=e?HT(e)?{path:e}:typeof e==`string`||XT(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:BT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<GT.length;){let e=GT[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)GT.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?MT.basename(this.path):void 0}set basename(e){JT(e,`basename`),qT(e,`basename`),this.path=MT.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?MT.dirname(this.path):void 0}set dirname(e){YT(this.basename,`dirname`),this.path=MT.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?MT.extname(this.path):void 0}set extname(e){if(qT(e,`extname`),YT(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=MT.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){HT(e)&&(e=UT(e)),JT(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?MT.basename(this.path,this.extname):void 0}set stem(e){JT(e,`stem`),qT(e,`stem`),this.path=MT.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Db(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function qT(e,t){if(e&&e.includes(MT.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+MT.sep+"`")}function JT(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function YT(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function XT(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ZT=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),QT=it(OT(),1),$T={}.hasOwnProperty,eE=new class e extends ZT{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=AT()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,QT.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(rE(`data`,this.frozen),this.namespace[e]=t,this):$T.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rE(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=oE(e),n=this.parser||this.Parser;return tE(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),tE(`process`,this.parser||this.Parser),nE(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=oE(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);cE(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),tE(`processSync`,this.parser||this.Parser),nE(`processSync`,this.compiler||this.Compiler),this.process(e,r),aE(`processSync`,`process`,t),n;function r(e,r){t=!0,DT(e),n=r}}run(e,t,n){iE(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=oE(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),aE(`runSync`,`run`,n),r;function i(e,t){DT(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=oE(t),r=this.compiler||this.Compiler;return nE(`stringify`,r),iE(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rE(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,QT.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];kT(o)&&kT(r)&&(r=(0,QT.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function tE(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function nE(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function rE(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iE(e){if(!kT(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function aE(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function oE(e){return sE(e)?e:new KT(e)}function sE(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function cE(e){return typeof e==`string`||lE(e)}function lE(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var uE=[],dE={allowDangerousHtml:!0},fE=/^(https?|ircs?|mailto|xmpp)$/i,pE=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function mE(e){let t=hE(e),n=gE(e);return _E(t.runSync(t.parse(n),n),e)}function hE(e){let t=e.rehypePlugins||uE,n=e.remarkPlugins||uE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dE}:dE;return eE().use(ow).use(n).use(ET,r).use(t)}function gE(e){let t=e.children||``,n=new KT;return typeof t==`string`?n.value=t:``+t,n}function _E(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||vE;for(let e of pE)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return mT(e,l),Fb(e,{Fragment:q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in rx)if(Object.hasOwn(rx,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=rx[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function vE(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||fE.test(e.slice(0,t))?e:``}function yE(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function bE(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function xE(e,t,n){let r=nT((n||{}).ignore||[]),i=SE(t),a=-1;for(;++a<i.length;)fT(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return dT}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function SE(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([CE(e[0]),wE(e[1])])}return t}function CE(e){return typeof e==`string`?new RegExp(bE(e),`g`):e}function wE(e){return typeof e==`function`?e:function(){return e}}var TE=`phrasing`,EE=[`autolink`,`link`,`image`,`label`];function DE(){return{transforms:[FE],enter:{literalAutolink:kE,literalAutolinkEmail:AE,literalAutolinkHttp:AE,literalAutolinkWww:AE},exit:{literalAutolink:PE,literalAutolinkEmail:NE,literalAutolinkHttp:jE,literalAutolinkWww:ME}}}function OE(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:TE,notInConstruct:EE},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:TE,notInConstruct:EE},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:TE,notInConstruct:EE}]}}function kE(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function AE(e){this.config.enter.autolinkProtocol.call(this,e)}function jE(e){this.config.exit.autolinkProtocol.call(this,e)}function ME(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function NE(e){this.config.exit.autolinkEmail.call(this,e)}function PE(e){this.exit(e)}function FE(e){xE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,IE],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,LE]],{ignore:[`link`,`linkReference`]})}function IE(e,t,n,r,i){let a=``;if(!BE(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!RE(n)))return!1;let o=zE(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function LE(e,t,n,r){return!BE(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function RE(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function zE(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=yE(e,`(`),a=yE(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function BE(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Ax(n)||kx(n))&&(!t||n!==47)}XE.peek=YE;function VE(){this.buffer()}function HE(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function UE(){this.buffer()}function WE(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function GE(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function KE(e){this.exit(e)}function qE(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function JE(e){this.exit(e)}function YE(){return`[`}function XE(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function ZE(){return{enter:{gfmFootnoteCallString:VE,gfmFootnoteCall:HE,gfmFootnoteDefinitionLabelString:UE,gfmFootnoteDefinition:WE},exit:{gfmFootnoteCallString:GE,gfmFootnoteCall:KE,gfmFootnoteDefinitionLabelString:qE,gfmFootnoteDefinition:JE}}}function QE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:XE},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
149
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?eD:$E))),s(),o}}function $E(e,t,n){return t===0?e:eD(e,t,n)}function eD(e,t,n){return(n?``:` `)+e}var tD=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];oD.attention=sD,oD.peek=cD;function nD(){return{canContainEols:[`delete`],enter:{strikethrough:iD},exit:{strikethrough:aD}}}function rD(){return{handlers:{delete:oD},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:tD}]}}function iD(e){this.enter({type:`delete`,children:[],position:void 0},e)}function aD(e){this.exit(e)}function oD(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function sD(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function cD(){return`~`}function lD(e){return e.length}function uD(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||lD,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=dD(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=fD(r[d]);else{let e=fD(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
150
|
+
`)}function dD(e){return e==null?``:String(e)}function fD(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var pD=nT([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function mD(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),hD);return i(),o}function hD(e,t,n){return`>`+(n?``:` `)+e}function gD(e,t){return _D(e,t.inConstruct,!0)&&!_D(e,t.notInConstruct,!1)}function _D(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function vD(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
151
|
+
`&&!e.before&&!e.after&&gD(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
152
|
+
`}function yD(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function bD(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function xD(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function SD(e,t,n,r){let i=xD(n),a=e.value||``;if(bD(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,CD);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(yD(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
153
|
+
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
154
|
+
`),a&&(u+=o.move(a+`
|
|
155
|
+
`)),u+=o.move(s),c(),u}function CD(e,t,n){return(n?``:` `)+e}function wD(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function TD(e,t,n,r){let i=wD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
156
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function ED(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function DD(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function OD(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function kD(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function AD(e,t,n){let r=Ux(e),i=Ux(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function jD(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:yx(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!yx(a))return;for(;a===45||bx(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&HS.includes(o)?1:VS.includes(o)?6:7}var MD=new Map([[`*`,!1],[`_`,!0]]);function ND(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function PD(e,t,n){let r=[],i=new Map,a=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=MD.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=Ux(u.charCodeAt(u.length-1)),f=Ux((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(LD(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:ND(e,t,a),index:o}}}function FD(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?DD(n.value):OD(n.value),i=kD(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function ID(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=VD(e,c,r,i),u=PD(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function LD(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[...new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function RD(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!Tx(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function zD(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?DD(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
|
|
157
|
+
`)&&l.type===`html`&&jD(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move(HD(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=BD(l,f.attention,t,c);a.push(e),s=OD(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=OD(n)}}return r.pop(),a}function BD(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=RD(e.type,a,o),c=s[0],l=n.enter(i);r.move(c);let u=zD(e,n,{...r.current(),before:c,after:c});return r.move(HD(u,c,c)),r.move(c),l(),{children:u,sequences:s}}function VD(e,t,n,r){let i=[],a,o=OD(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===DD(n)&&FD([e],!0),a=void 0,i.push(e),e.value&&(o=OD(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=DD(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=VD(n.children,t,c,c),m=p.length>0?p[0].value:``,h=AD(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&FD(p,!0);let g=p.length>0?OD(p[p.length-1].value):``,_=AD(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&FD(p,!1),h.outside&&d!==`
|
|
158
|
+
`&&d!==`\r`&&FD(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function HD(e,t,n){let r=new Map,i=VD(e,r,t,n),a=i,o=PD(a,t,n);for(;o;){let s=ID(e,r,o,t,n);if(!s){a=i;break}r=s.chosen,a=s.tokens,o=s.mistake}let s=``;for(let e of a)s+=e.value;return s}UD.attention=WD,UD.peek=GD;function UD(e,t,n,r){let i=n.enter(`phrasing`),a=HD([BD(e,WD,n,n.createTracker(r))],r.before,r.after);return i(),a}function WD(e,t){return{construct:`emphasis`,markers:ED(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function GD(e,t,n){return n.options.emphasis||`*`}function KD(e,t){let n=!1;return mT(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ax(e)&&(t.options.setext||n))}function qD(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(KD(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
159
|
+
`,after:`
|
|
160
|
+
`});return r(),t(),o+`
|
|
161
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
162
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
163
|
+
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=kD(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}JD.peek=YD;function JD(e){return e.value||``}function YD(){return`<`}XD.peek=ZD;function XD(e,t,n,r){let i=wD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function ZD(){return`!`}QD.peek=$D;function QD(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function $D(){return`!`}eO.peek=tO;function eO(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function tO(){return"`"}function nO(e,t){let n=ax(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}rO.peek=iO;function rO(e,t,n,r){let i=wD(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(nO(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
|
|
164
|
+
`||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function iO(e,t,n){return nO(e,n)?`<`:`[`}aO.peek=oO;function aO(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function oO(){return`[`}function sO(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function cO(e){let t=sO(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function lO(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function uO(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dO(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?lO(n):sO(n),s=e.ordered?o===`.`?`)`:`.`:cO(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),uO(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function fO(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pO(e,t,n,r){let i=fO(n),a=n.bulletCurrent||sO(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function mO(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function hO(e,t,n,r){if(!e.children.some(function(e){return pD(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function gO(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_O.attention=vO,_O.peek=yO;function _O(e,t,n,r){let i=n.enter(`phrasing`),a=HD([BD(e,vO,n,n.createTracker(r))],r.before,r.after);return i(),a}function vO(e,t){return{construct:`strong`,markers:gO(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function yO(e,t,n){return n.options.strong||`*`}function bO(e,t,n,r){let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function xO(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function SO(e,t,n){let r=(uO(n)+(n.options.ruleSpaces?` `:``)).repeat(xO(n));return n.options.ruleSpaces?r.slice(0,-1):r}var CO={blockquote:mD,break:vD,code:SD,definition:TD,emphasis:UD,hardBreak:vD,heading:qD,html:JD,image:XD,imageReference:QD,inlineCode:eO,link:rO,linkReference:aO,list:dO,listItem:pO,paragraph:mO,root:hO,strong:_O,text:bO,thematicBreak:SO};function wO(){return{enter:{table:TO,tableData:kO,tableHeader:kO,tableRow:DO},exit:{codeText:AO,table:EO,tableData:OO,tableHeader:OO,tableRow:OO}}}function TO(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function EO(e){this.exit(e),this.data.inTable=void 0}function DO(e){this.enter({type:`tableRow`,children:[]},e)}function OO(e){this.exit(e)}function kO(e){this.enter({type:`tableCell`,children:[]},e)}function AO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jO));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function jO(e,t){return t===`|`?t:e}function MO(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
165
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
166
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return uD(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=CO.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function NO(){return{exit:{taskListCheckValueChecked:FO,taskListCheckValueUnchecked:FO,paragraph:IO}}}function PO(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:LO}}}function FO(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function IO(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function LO(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=CO.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function RO(){return[DE(),ZE(),nD(),wO(),NO()]}function zO(e){return{extensions:[OE(),QE(e),rD(),MO(e),PO()]}}var BO={tokenize:ek,partial:!0},VO={tokenize:tk,partial:!0},HO={tokenize:nk,partial:!0},UO={tokenize:rk,partial:!0},WO={tokenize:ik,partial:!0},GO={name:`wwwAutolink`,tokenize:QO,previous:ak},KO={name:`protocolAutolink`,tokenize:$O,previous:ok},qO={name:`emailAutolink`,tokenize:ZO,previous:sk},JO={};function YO(){return{text:JO}}for(var XO=48;XO<123;)JO[XO]=qO,XO++,XO===58?XO=65:XO===91&&(XO=97);JO[43]=qO,JO[45]=qO,JO[46]=qO,JO[95]=qO,JO[72]=[qO,KO],JO[104]=[qO,KO],JO[87]=[qO,GO],JO[119]=[qO,GO];function ZO(e,t,n){let r=this,i,a;return o;function o(t){return!ck(t)||!sk.call(r,r.previous)||lk(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return ck(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(WO,u,l)(t):t===45||t===95||bx(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&yx(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function QO(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!ak.call(r,r.previous)||lk(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(BO,e.attempt(VO,e.attempt(HO,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function $O(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&ok.call(r,r.previous)&&!lk(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(yx(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Sx(t)||Dx(t)||Ax(t)||kx(t)?n(t):e.attempt(VO,e.attempt(HO,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function ek(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function tk(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(UO,c,s)(t):t===null||Dx(t)||Ax(t)||t!==45&&kx(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function nk(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(UO,t,a)(o):o===null||Dx(o)||Ax(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function rk(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Dx(o)||Ax(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Dx(e)||Ax(e)?t(e):r(e)}function a(e){return yx(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):yx(t)?(e.consume(t),o):n(t)}}function ik(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return bx(e)?n(e):t(e)}}function ak(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Dx(e)}function ok(e){return!yx(e)}function sk(e){return!(e===47||ck(e))}function ck(e){return e===43||e===45||e===46||e===95||bx(e)}function lk(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var uk={tokenize:vk,partial:!0};function dk(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:hk,continuation:{tokenize:gk},exit:_k}},text:{91:{name:`gfmFootnoteCall`,tokenize:mk},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:fk,resolveTo:pk}}}}function fk(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=vx(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function pk(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function mk(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Dx(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(vx(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Dx(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function hk(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Dx(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=vx(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Dx(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Nx(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function gk(e,t,n){return e.check(Zx,t,e.attempt(uk,t,n))}function _k(e){e.exit(`gfmFootnoteDefinition`)}function vk(e,t,n){let r=this;return Nx(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function yk(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&dx(o,o.length,0,Wx(s,e.slice(r+1,n),t)),dx(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),dx(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ux(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ux(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var bk=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){xk(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function xk(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Sk(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Ck(){return{flow:{null:{name:`table`,tokenize:wk,resolveAll:Tk}}}}function wk(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Ex(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Ox(t)?Nx(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Dx(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Ox(t)?Nx(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Ox(t)?Nx(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Ex(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Ox(t)?Nx(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Ex(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Ex(n)?(e.exit(`tableRow`),t(n)):Ox(n)?Nx(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Dx(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Tk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new bk;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Dk(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Ek(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Ek(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Ek(f,t,o,i,n,d)):(o[0]=o[1],d=Ek(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Dk(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Sk(t.events,n))}return e}function Ek(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Ok(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Ok(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Ok(t.events,n[2]),a=Ok(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Ok(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Dk(e,t,n,r,i){let a=[],o=Ok(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Ok(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var kk={name:`tasklistCheck`,tokenize:jk};function Ak(){return{text:{91:kk}}}function jk(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Dx(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Ex(r)?t(r):Ox(r)?e.check({tokenize:Mk},t,n)(r):n(r)}}function Mk(e,t,n){return Nx(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Nk(e){return mx([YO(),dk(),yk(e),Ck(),Ak()])}var Pk={};function Fk(e){let t=this,n=e||Pk,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Nk(n)),a.push(RO()),o.push(zO(n))}var Ik=it(Ty(),1),Lk=e=>e?new Date(e).toTimeString().slice(0,8):``;function Rk({text:e}){let t=Ik.default.ansiToJson(e,{remove_empty:!0,use_classes:!1});return(0,q.jsx)(q.Fragment,{children:t.map((e,t)=>{let n={};return e.fg&&(n.color=`rgb(${e.fg})`),e.bg&&(n.backgroundColor=`rgb(${e.bg})`),e.decoration===`bold`&&(n.fontWeight=700),e.decoration===`dim`&&(n.opacity=.6),(0,q.jsx)(`span`,{style:n,children:e.content},t)})})}function zk({at:e}){return e?(0,q.jsx)(`span`,{className:`shrink-0 select-none tabular-nums text-paper/30`,children:Lk(e)}):null}var Bk=(0,K.memo)(function({chunk:e}){let t=e.tool;if(!t)return(0,q.jsxs)(`div`,{className:`flex gap-2 text-paper/50`,children:[(0,q.jsx)(zk,{at:e.at}),(0,q.jsx)(`span`,{className:`min-w-0`,children:e.data})]});let n=t.pending?`…`:t.ok?`✓`:`✗`;return(0,q.jsxs)(`div`,{className:`flex items-baseline gap-2 py-px`,children:[(0,q.jsx)(zk,{at:e.at}),(0,q.jsx)(`span`,{className:`shrink-0 ${t.ok?`text-jade-glow`:`text-seal-glow`}`,"aria-hidden":`true`,children:n}),(0,q.jsx)(`span`,{className:`shrink-0 ${t.ok?`text-qing-glow`:`text-seal-glow`}`,children:t.name}),t.detail?(0,q.jsx)(`span`,{className:`min-w-0 break-words text-paper/55`,children:t.detail}):null,t.took?(0,q.jsx)(`span`,{className:`ml-auto shrink-0 pl-3 text-paper/30 tabular-nums`,children:t.took}):null]})}),Vk=(0,K.memo)(function({chunk:e}){if(!e.kind){let t=e.stream===`stderr`?`text-seal-soft`:e.stream===`system`?`text-gold`:``;return(0,q.jsx)(`span`,{className:t,children:(0,q.jsx)(Rk,{text:e.data})})}if(e.kind===`tool`)return(0,q.jsx)(Bk,{chunk:e});if(e.kind===`markdown`)return(0,q.jsx)(`div`,{className:`prose prose-log my-3 max-w-none overflow-x-auto`,children:(0,q.jsx)(mE,{remarkPlugins:[Fk],children:e.data})});if(e.kind===`reasoning`)return(0,q.jsxs)(`div`,{className:`my-1 flex gap-2 text-paper/45 italic`,children:[(0,q.jsx)(zk,{at:e.at}),(0,q.jsx)(`span`,{className:`shrink-0 select-none text-paper/25`,"aria-hidden":`true`,children:`~`}),(0,q.jsx)(`div`,{className:`min-w-0 whitespace-pre-wrap break-words`,children:e.data})]});if(e.kind===`result`)return(0,q.jsx)(`div`,{className:`mb-2 ml-4 border-l border-paper/15 pl-3 text-paper/60`,children:(0,q.jsx)(Rk,{text:e.data})});let t=e.kind===`error`?`text-seal-glow`:e.kind===`hint`?`text-gold-glow`:`text-paper/40`;return(0,q.jsxs)(`div`,{className:`my-1 flex gap-2 ${t}`,children:[(0,q.jsx)(zk,{at:e.at}),(0,q.jsx)(`div`,{className:`min-w-0 whitespace-pre-wrap break-words`,children:e.data})]})});function Hk(e){let t=e.map(e=>e.kind?`${e.kind===`markdown`||e.kind===`result`||e.kind===`reasoning`?``:`${Lk(e.at)} `}${e.data}\n`:e.data).join(``);return Ik.default.ansiToText(t)}function Uk({chunks:e,wrap:t=!0,className:n=``}){let r=(0,K.useRef)(null),i=(0,K.useRef)(!0);return(0,K.useEffect)(()=>{let e=r.current;e&&i.current&&(e.scrollTop=e.scrollHeight)},[e]),(0,q.jsxs)(`div`,{ref:r,onScroll:e=>{let t=e.currentTarget;i.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:`paper-grain overflow-auto bg-dai-deep p-3 font-mono text-xs leading-5 text-paper ${t?`break-words whitespace-pre-wrap`:`whitespace-pre`} ${n}`,children:[e.length===0?(0,q.jsx)(`span`,{className:`text-ink-3`,children:`Waiting for output...`}):null,e.map(e=>(0,q.jsx)(Vk,{chunk:e},e.seq))]})}function Wk({text:e,label:t,title:n,iconOnly:r=!1}){let[i,a]=(0,K.useState)(!1);return(0,q.jsxs)(`button`,{className:r?`${Y()} h-7 w-7 shrink-0 px-0!`:`${Y()} shrink-0 gap-1.5`,title:i?`Copied`:n,"aria-label":r?i?`Copied`:t:void 0,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{a(!0),setTimeout(()=>a(!1),1200)})},children:[i?(0,q.jsx)(au,{size:14,"aria-hidden":`true`}):(0,q.jsx)(Nu,{size:14,"aria-hidden":`true`}),r?null:i?`Copied`:t]})}function Gk(e){let t=Ev(e),n=t.questions.filter(e=>e.kind===`blocking`);return{questions:t.questions,blocking:n,markers:t.markers}}function Kk(e,t){let n=Date.parse(e.startedAt)-2e3,r=e.endedAt?Date.parse(e.endedAt)+2e3:Date.now();return t.filter(e=>{let t=Date.parse(e.updatedAt);return Number.isFinite(t)&&t>=n&&t<=r}).sort((e,t)=>e.updatedAt.localeCompare(t.updatedAt))}function qk({job:e,openJob:t}){let{startJob:n}=bl(),[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(!1),s=async r=>{o(!0);let a=await n({action:`continue`,jobId:e.id,reply:r});o(!1),a&&(i(``),t(a.id))};return(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsx)(`textarea`,{autoFocus:!0,value:r,onChange:e=>i(e.target.value),maxLength:kc,rows:3,spellCheck:!1,placeholder:`Your answers, in your own words. The agent writes them into the case file and goes on.`,"aria-label":`Your answers to the agent's questions`,className:`${hy} w-full resize-y`}),(0,q.jsxs)(`div`,{className:`text-right text-xs text-ink-3`,children:[r.length,` / `,kc]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),disabled:a,onClick:()=>void s(Ac),title:`Keeps every suggested sentence and removes the questions, so the case is confirmed as it stands`,children:`Use the suggested defaults`}),(0,q.jsx)(`button`,{className:`${Y(`primary`)} gap-1.5`,disabled:a||r.trim()===``,onClick:()=>void s(r),title:`Continue the same conversation with the same permissions`,children:`Send answers and continue`})]})]})}function Jk({job:e,openJob:t,review:n,casePending:r,next:i,needsAnswers:a}){let o=e.caseId??``,s=n.questions.length-n.blocking.length;return(0,q.jsxs)(`div`,{className:`rounded border border-line bg-card px-3 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(vf,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:`Answer or accept the open questions`}),r?(0,q.jsx)(ay,{tone:`gray`,children:`loading`}):null,n.blocking.length>0?(0,q.jsxs)(ay,{tone:`red`,children:[n.blocking.length,` must answer`]}):null,s>0?(0,q.jsxs)(ay,{tone:`amber`,children:[s,` suggestion`,s===1?``:`s`]}):null]}),r?null:n.questions.length===0?(0,q.jsx)(`p`,{className:`mt-1 pl-6 text-xs text-ink-2`,children:`The agent stopped without leaving a question in the case file: read what it says above, then answer here.`}):(0,q.jsx)(`p`,{className:`mt-1 pl-6 text-xs text-ink-2`,children:`The exploration could not settle these from the page. Each one keeps the sentence above it: accept that sentence, or write your own answer.`}),n.blocking.length>0?(0,q.jsx)(`ul`,{className:`mt-1.5 space-y-1 pl-6 text-xs text-ink`,children:n.blocking.map(e=>(0,q.jsxs)(`li`,{className:`flex items-start gap-1.5`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0 text-seal-deep`,"aria-hidden":`true`}),(0,q.jsxs)(`span`,{children:[e.question,e.parent?(0,q.jsxs)(`span`,{className:`block text-ink-2`,children:[`Deleting it confirms: `,e.parent.text]}):null]})]},`${e.line}-${e.question}`))}):null,i?(0,q.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2 pl-6 text-xs text-ink-2`,children:[(0,q.jsxs)(`span`,{children:[`Answers were sent in job `,(0,q.jsx)(`code`,{children:i.id}),` (`,i.status,`).`]}),(0,q.jsxs)(`button`,{className:`${Y()} shrink-0 gap-1.5`,onClick:()=>t(i.id),title:`Open the run that carries your answers`,children:[`Open that job`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]})]}):a?(0,q.jsx)(`div`,{className:`pl-6`,children:(0,q.jsx)(qk,{job:e,openJob:t})}):null,!r&&!i&&!a&&n.questions.length>0?(0,q.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,q.jsxs)(qs,{to:`/cases/${o}?review=questions`,className:`${Y()} gap-1.5`,children:[`Answer in the case`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]})}):null]})}function Yk({caseId:e,markers:t}){return(0,q.jsxs)(`div`,{className:`rounded border border-line bg-card px-3 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(sd,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:`Confirm what the exploration saw`}),(0,q.jsxs)(ay,{tone:`blue`,children:[t,` to confirm`]})]}),(0,q.jsx)(`p`,{className:`mt-1 pl-6 text-xs text-ink-2`,children:`The exploration marked the lines it saw but could not check by itself. Confirm each one, or fix the case: the test relies on them.`}),(0,q.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,q.jsxs)(qs,{to:`/cases/${e}?review=observations`,className:`${Y()} gap-1.5`,children:[`Confirm in the case`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]})})]})}function Xk({caseId:e,blocking:t}){return(0,q.jsxs)(`div`,{className:`rounded border border-line bg-card px-3 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(dd,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:`Generate the spec`})]}),(0,q.jsxs)(`p`,{className:`mt-1 pl-6 text-xs text-ink-2`,children:[`Opens the case with Generate spec selected; choose the environment there and run it.`,t>0?` The must-answer questions stay open, so answer them first for a complete spec.`:``]}),(0,q.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,q.jsxs)(qs,{to:`/cases/${e}?ai=gen-spec`,className:`${Y(`primary`)} gap-1.5`,children:[(0,q.jsx)(yd,{size:14,"aria-hidden":`true`}),`Generate spec`]})})]})}function Zk({job:e,openJob:t,review:n,casePending:r,readFailed:i,next:a}){let o=e.caseId??``,s=e.resultState===`needs-input`&&!a,c=!i&&(n.questions.length>0||s),l=!i&&n.markers.length>0;return(0,q.jsxs)(`div`,{className:`space-y-3`,children:[i?(0,q.jsxs)(`p`,{className:`text-sm text-seal-deep`,children:[`The case file could not be read: `,i]}):null,c||l?(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:`The exploration is done. Finish these, then generate the spec.`}):null,i?null:(0,q.jsxs)(`div`,{className:`space-y-2`,children:[c?(0,q.jsx)(Jk,{job:e,openJob:t,review:n,casePending:r,next:a,needsAnswers:s}):null,l?(0,q.jsx)(Yk,{caseId:o,markers:n.markers.length}):null,(0,q.jsx)(Xk,{caseId:o,blocking:n.blocking.length})]})]})}function Qk({job:e,openJob:t,review:n,casePending:r}){return(0,q.jsxs)(`div`,{className:`space-y-3`,children:[n.blocking.length>0?(0,q.jsx)(`ul`,{className:`space-y-2`,children:n.blocking.map(e=>(0,q.jsx)(`li`,{className:`rounded border border-seal/40 bg-seal-bg px-3 py-2 text-sm text-ink`,children:(0,q.jsxs)(`div`,{className:`flex items-start gap-1.5`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0 text-seal-deep`,"aria-hidden":`true`}),(0,q.jsxs)(`span`,{children:[e.question,e.parent?(0,q.jsxs)(`span`,{className:`block text-xs text-ink-2`,children:[`Deleting it confirms: `,e.parent.text]}):null]})]})},`${e.line}-${e.question}`))}):(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:r?`Loading the questions...`:`No blocking question is left in the case file.`}),(0,q.jsx)(qk,{job:e,openJob:t})]})}function $k({created:e,loading:t}){return t?(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:`Loading the new cases...`}):e.length===0?(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:`The run did not leave a new case file. Open the case list to see what it wrote, or read its last lines above.`}):(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:`These are drafts: nobody has checked their steps against the real pages yet. Run Explore case on each one, so the AI opens the pages and writes down what it saw.`}),(0,q.jsx)(`ul`,{className:`divide-y divide-line rounded border border-line bg-card`,children:e.map(e=>(0,q.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2 px-3 py-2`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`div`,{className:`truncate font-mono text-xs text-ink`,children:e.id}),e.title?(0,q.jsx)(`div`,{className:`truncate text-xs text-ink-2`,children:e.title}):null]}),(0,q.jsxs)(qs,{to:`/cases/${e.id}?ai=explore-case`,className:`${Y()} shrink-0 gap-1.5`,title:`Open this case with Explore case selected`,children:[`Explore`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]})]},e.id))})]})}function eA({caseId:e}){return(0,q.jsxs)(`div`,{className:`rounded border border-line bg-card px-3 py-2`,children:[(0,q.jsxs)(`p`,{className:`text-sm text-ink-2`,children:[`The spec is written but has not been run. The Run page opens with this case selected; if it has visual checks, tick `,(0,q.jsx)(`b`,{children:`Update baselines`}),` for the first run.`]}),(0,q.jsx)(`div`,{className:`mt-2 flex justify-end`,children:(0,q.jsxs)(qs,{to:`/run`,state:{case:e},className:`${Y(`primary`)} gap-1.5`,children:[(0,q.jsx)(Pf,{size:14,"aria-hidden":`true`}),`Open Run tests`]})})]})}function tA({tone:e,icon:t,label:n,badges:r,actions:i,sheet:a,open:o,onOpen:s,onClose:c}){let l=e===`attention`?`border-t-2 border-gold-deep/40 bg-gold-bg`:`border-t border-line-mid bg-warm`,u=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`shrink-0 ${e===`attention`?`text-gold-deep`:`text-ink-3`}`,children:t}),(0,q.jsx)(`span`,{className:`text-sm font-medium ${e===`attention`?`text-gold-deep`:`text-ink`}`,children:n}),r]});return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 px-3 py-2 ${l}`,children:[a?(0,q.jsx)(`button`,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o,title:`Show the details`,onClick:s,className:`flex min-w-0 flex-1 cursor-pointer flex-wrap items-center gap-2 rounded px-1 py-0.5 text-left transition-colors hover:bg-line/40 focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,children:u}):(0,q.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-2 px-1 py-0.5`,children:u}),(0,q.jsx)(`div`,{className:`ml-auto flex shrink-0 flex-wrap items-center gap-2`,children:i})]}),o&&a?(0,q.jsx)(wy,{title:a.title,action:a.action,onClose:c,children:a.body}):null]})}function nA({job:e,openJob:t}){let[n,r]=(0,K.useState)(!1),i=To();(0,K.useEffect)(()=>r(!1),[i.key]);let a=hl().data,o=a?Fc(a,e.id):void 0,s=e.caseId??``,c=e.kind===`ai`&&!e.aiCommand&&e.command.includes(`/make-case `),l=e.aiCommand===`explore-case`,u=e.aiCommand===`gen-spec`,d=e.aiCommand===`heal-spec`,f=e.resultState===`needs-input`&&!l&&!c&&s!==``,p=l||f,m=Hn({queryKey:ul.case(s),queryFn:()=>cc.case(s),enabled:s!==``&&p}),h=(0,K.useMemo)(()=>Gk(m.data?.content??``),[m.data?.content]),g=pl(),_=(0,K.useMemo)(()=>c&&g.data?Kk(e,g.data):[],[c,e,g.data]),v=g.isPending||g.isFetching&&_.length===0;if(e.status!==`succeeded`)return null;let y=l&&s!==``?`explore`:c?`make-cases`:f?`answers`:u&&s!==``?`gen-spec`:d&&s!==``?`healed`:null;if(y===null)return null;let b=p&&m.isError?m.error.message:null,x=y===`explore`&&e.resultState===`needs-input`&&!o,S=h.questions.length-h.blocking.length,C=!!b||x||h.questions.length>0||h.markers.length>0;return y===`explore`?(0,q.jsx)(tA,{tone:x||b||h.blocking.length>0?`attention`:`plain`,icon:(0,q.jsx)(qd,{size:16,"aria-hidden":`true`}),label:b?`The case could not be read`:x?`The agent needs your answers`:o?(0,q.jsxs)(q.Fragment,{children:[`Answers sent in job `,(0,q.jsx)(`code`,{children:o.id})]}):`What to do next`,badges:(0,q.jsxs)(q.Fragment,{children:[h.blocking.length>0?(0,q.jsxs)(ay,{tone:`red`,children:[h.blocking.length,` must answer`]}):null,S>0?(0,q.jsxs)(ay,{tone:`amber`,children:[S,` suggestion`,S===1?``:`s`]}):null,h.markers.length>0?(0,q.jsxs)(ay,{tone:`blue`,children:[h.markers.length,` to confirm`]}):null]}),actions:(0,q.jsxs)(q.Fragment,{children:[o?(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,onClick:()=>t(o.id),title:`Open the run that carries your answers`,children:[`Open that job`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}):x?(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,onClick:()=>r(!0),children:[(0,q.jsx)(vf,{size:14,"aria-hidden":`true`}),`Answer`]}):b?null:(0,q.jsxs)(qs,{to:`/cases/${s}?ai=gen-spec`,className:`${Y(`primary`)} gap-1.5`,children:[(0,q.jsx)(yd,{size:14,"aria-hidden":`true`}),`Generate spec`]}),C&&!x?(0,q.jsx)(`button`,{className:Y(),onClick:()=>r(!0),children:`Details`}):null]}),sheet:C?{title:x?`The agent needs your answers`:`What to do next`,action:(0,q.jsx)(qs,{to:`/cases/${s}`,className:`text-xs font-normal text-ink-2 underline hover:text-ink`,children:`Open the case`}),body:(0,q.jsx)(Zk,{job:e,openJob:t,review:h,casePending:m.isPending,readFailed:b,next:o})}:null,open:n,onOpen:()=>r(!0),onClose:()=>r(!1)}):y===`make-cases`?(0,q.jsx)(tA,{tone:`plain`,icon:(0,q.jsx)(hd,{size:16,"aria-hidden":`true`}),label:v?`Loading the new cases...`:_.length>0?`${_.length} new ${_.length===1?`case`:`cases`}`:`No new case found`,actions:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,onClick:()=>r(!0),children:[(0,q.jsx)(qd,{size:14,"aria-hidden":`true`}),`Review`]}),(0,q.jsx)(qs,{to:`/cases`,className:Y(),children:`Open the case list`})]}),sheet:{title:`What to do next`,action:(0,q.jsx)(qs,{to:`/cases`,className:`text-xs font-normal text-ink-2 underline hover:text-ink`,children:`Open the case list`}),body:(0,q.jsx)($k,{created:_,loading:v})},open:n,onOpen:()=>r(!0),onClose:()=>r(!1)}):y===`gen-spec`?(0,q.jsx)(tA,{tone:`plain`,icon:(0,q.jsx)(yd,{size:16,"aria-hidden":`true`}),label:`Spec written, not run`,actions:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(qs,{to:`/run`,state:{case:s},className:`${Y(`primary`)} gap-1.5`,children:[(0,q.jsx)(Pf,{size:14,"aria-hidden":`true`}),`Open Run tests`]}),(0,q.jsx)(`button`,{className:Y(),onClick:()=>r(!0),children:`Details`})]}),sheet:{title:`What to do next`,action:(0,q.jsx)(qs,{to:`/cases/${s}`,className:`text-xs font-normal text-ink-2 underline hover:text-ink`,children:`Open the case`}),body:(0,q.jsx)(eA,{caseId:s})},open:n,onOpen:()=>r(!0),onClose:()=>r(!1)}):y===`answers`?(0,q.jsx)(tA,{tone:o?`plain`:`attention`,icon:(0,q.jsx)(vf,{size:16,"aria-hidden":`true`}),label:o?(0,q.jsxs)(q.Fragment,{children:[`Answers sent in job `,(0,q.jsx)(`code`,{children:o.id})]}):`The agent needs your answers`,badges:o?null:(0,q.jsxs)(q.Fragment,{children:[h.blocking.length>0?(0,q.jsxs)(ay,{tone:`red`,children:[h.blocking.length,` must answer`]}):null,(0,q.jsxs)(ay,{tone:`gray`,children:[h.questions.length-h.blocking.length,` non-blocking`]})]}),actions:o?(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,onClick:()=>t(o.id),children:[`Open that job`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}):(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,onClick:()=>r(!0),children:[(0,q.jsx)(vf,{size:14,"aria-hidden":`true`}),`Answer`]}),sheet:o?null:{title:`The agent needs your answers`,action:(0,q.jsx)(qs,{to:`/cases/${s}?review=questions`,className:`text-xs font-normal text-ink-2 underline hover:text-ink`,title:`The questions are also saved in the case file. There, answering one means keeping the sentence above it or writing your own.`,children:`Open the case`}),body:(0,q.jsx)(Qk,{job:e,openJob:t,review:h,casePending:m.isPending})},open:n,onOpen:()=>r(!0),onClose:()=>r(!1)}):(0,q.jsx)(tA,{tone:`plain`,icon:(0,q.jsx)(au,{size:16,className:`text-jade-btn`,"aria-hidden":`true`}),label:`Healing is done: the spec was fixed and run again.`,actions:(0,q.jsxs)(qs,{to:`/cases/${s}`,className:`${Y(`primary`)} gap-1.5`,children:[`Open the case`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}),sheet:null,open:!1,onOpen:()=>r(!0),onClose:()=>r(!1)})}function rA({job:e,showOpenInTab:t=!1,openJob:n}){let r=ny(e.id),i=hl().data,a=ml().data,o=!!(i&&Fc(i,e.id)),s=r.info??e,c=Un({mutationFn:()=>cc.cancelJob(e.id)}),l=Un({mutationFn:t=>cc.sendInput(e.id,t)}),[u,d]=(0,K.useState)(!1),[f,p]=Dp(`asrun-ui.jobs.wrap`,!0,kp),m=s.status===`running`,h=s.kind===`run`&&s.reportId&&!m?[s.reportId,`${s.reportId}-baselines`].find(e=>a?.some(t=>t.id===e)):void 0;return(0,q.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,q.jsxs)(`div`,{className:`max-h-[45%] shrink-0 overflow-auto`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-mid bg-warm px-3 py-2`,children:[(0,q.jsx)(my,{status:s.status,needsInput:s.resultState===`needs-input`,awaitingUser:!!s.awaitingUser,answered:o}),s.continuesJobId?(0,q.jsxs)(`button`,{className:`inline-flex items-center gap-1 text-xs text-ink-2 underline hover:text-ink`,onClick:()=>n(s.continuesJobId),title:`This run goes on with the conversation of an earlier run`,children:[(0,q.jsx)(Lu,{size:12,"aria-hidden":`true`}),`Continues job `,s.continuesJobId]}):null,(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:s.exitCode===null?s.signal?`signal ${s.signal}`:``:`exit code ${s.exitCode}`}),m&&!r.connected?(0,q.jsx)(`span`,{className:`text-xs text-gold-deep`,children:`reconnecting...`}):null,(0,q.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center gap-2`,children:[(0,q.jsxs)(`button`,{className:`${Y()} shrink-0`,"aria-pressed":f,title:`Wrap long lines, or scroll them sideways`,onClick:()=>p(!f),children:[`Wrap lines: `,f?`on`:`off`]}),(0,q.jsx)(Wk,{text:Hk(r.chunks),label:`Copy log`,title:`Copy the output without colors`}),h?(0,q.jsxs)(`a`,{className:`${Y()} gap-1.5`,href:`/reports/${h}`,title:`Open the report of this run`,children:[(0,q.jsx)(yd,{size:14,"aria-hidden":`true`}),`Go to the report`]}):null,t?(0,q.jsxs)(`a`,{className:`${Y()} gap-1.5`,href:`/jobs/${e.id}`,target:`_blank`,rel:`noreferrer`,title:`Open this job in its own tab`,children:[(0,q.jsx)(rd,{size:14,"aria-hidden":`true`}),`Open in new tab`]}):null,m&&s.kind===`signin`?(0,q.jsx)(`button`,{className:Y(`primary`),disabled:l.isPending,onClick:()=>l.mutate(`
|
|
167
|
+
`),title:`Press this after you logged in in the browser window that opened. The card in that window does the same.`,children:`I've logged in, save the session`}):null,m?(0,q.jsx)(`button`,{className:Y(`danger`),disabled:c.isPending,onClick:()=>c.mutate(),children:`Cancel`}):null]})]}),(0,q.jsxs)(`div`,{className:`flex items-start gap-2 border-b border-line-mid bg-warm px-3 py-1.5`,children:[(0,q.jsx)(`button`,{className:`min-w-0 flex-1 text-left`,onClick:()=>d(!u),title:u?`Show the command on one line`:`Show the whole command`,children:(0,q.jsx)(`code`,{className:`block text-xs text-ink ${u?`max-h-24 overflow-auto break-all whitespace-pre-wrap`:`truncate`}`,children:s.command})}),(0,q.jsx)(Wk,{text:s.command,label:`Copy command`,title:`Copy the command`,iconOnly:!0})]}),m&&s.kind===`signin`?(0,q.jsxs)(`p`,{className:`border-b border-gold/50 bg-gold-bg px-3 py-2 text-xs text-warn-ink`,children:[`A browser window opened on your machine. Log in there (including 2FA), then press `,(0,q.jsx)(`b`,{children:`Done, save the session`}),` `,`on the card in that window. The button above does the same, if you would rather stay on this page.`]}):null]}),m&&s.awaitingUser?(0,q.jsxs)(`p`,{className:`border-b border-gold/50 bg-gold-bg px-3 py-2 text-xs text-warn-ink`,children:[(0,q.jsx)(`b`,{children:`Your turn in the browser window:`}),` `,s.awaitingUser.message??`do the step`,`. Press Done on the card (bottom-left of the page) when you finish.`]}):null,(0,q.jsx)(Uk,{chunks:r.chunks,wrap:f,className:`min-h-0 flex-1`}),s.kind===`run`&&s.baselineCases&&s.baselineCases.length>0?(0,q.jsx)(Cy,{caseIds:s.baselineCases,running:m}):null,(0,q.jsx)(nA,{job:s,openJob:n})]})}var iA=360,aA=160,oA=256,sA=140,cA=640,lA=6,uA=28,dA=140,fA=()=>Math.max(aA,window.innerHeight-dA);function pA(){let{attention:e,drawerOpen:t,setDrawerOpen:n,drawerMaximized:r,setDrawerMaximized:i,selectedJobId:a,selectJob:o,startError:s,clearStartError:c}=bl(),l=hl(),[u,d]=Dp(`asrun-ui.jobs.height`,iA,Ap),[f,p]=Dp(`asrun-ui.jobs.list-width`,oA,Ap),[m,h]=Dp(`asrun-ui.jobs.list-hidden`,!1,kp),[g,_]=(0,K.useState)(!1),v=l.data??[],y=v.find(e=>e.id===a)??null,b=v.filter(e=>e.status===`running`).length,x=t&&r;(0,K.useEffect)(()=>{if(!x)return;let e=e=>{e.key===`Escape`&&i(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x,i]);let S=jp(t,200),C=Math.min(u,fA()),w=g?``:`transition-[flex-basis,max-height,width,opacity] duration-200 ease-out motion-reduce:transition-none`;return(0,q.jsxs)(`div`,{className:`relative flex flex-col border-t-2 border-ink bg-card shadow-[0_-6px_16px_-8px_color-mix(in_srgb,var(--theme)_40%,transparent)] transition-[flex-grow] duration-200 ease-out motion-reduce:transition-none ${x?`min-h-0 grow`:`shrink-0 grow-0`}`,children:[(0,q.jsxs)(`div`,{className:`relative flex items-center bg-dai-deep text-white`,children:[(0,q.jsxs)(`button`,{className:`group flex flex-1 cursor-pointer items-center gap-3 px-4 py-2 text-left text-sm transition-colors hover:bg-white/10`,onClick:()=>n(!t),"aria-expanded":t,title:t?`Collapse the jobs drawer`:`Expand the jobs drawer`,children:[(0,q.jsx)(`span`,{className:`eyebrow`,children:`Jobs`}),b>0?(0,q.jsxs)(`span`,{className:`font-medium text-qing-bg`,children:[b,` running`]}):(0,q.jsx)(`span`,{className:`text-white/70`,children:`idle`}),e.length>0?(0,q.jsxs)(`span`,{className:`rounded-sm bg-gold-bg px-2 py-0.5 text-xs font-bold text-gold-deep`,children:[e.length,` waiting for you`]}):null,(0,q.jsx)(`span`,{className:`ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded bg-white/15 transition-colors group-hover:bg-white/30`,"aria-hidden":`true`,children:(0,q.jsx)(xu,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${t?`rotate-180`:``}`})})]}),(0,q.jsx)(`span`,{className:`absolute inset-y-0 right-12 my-auto h-fit transition-opacity duration-200 motion-reduce:transition-none ${t?`opacity-100`:`invisible opacity-0`}`,children:(0,q.jsx)(`button`,{className:`${Y(`info`)} shrink-0 gap-1.5`,onClick:()=>i(!r),tabIndex:t?0:-1,title:r?`Restore the drawer (Esc)`:`Fill the screen below the top bar`,children:r?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Sf,{size:14,"aria-hidden":`true`}),`Restore`]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(uf,{size:14,"aria-hidden":`true`}),`Full screen`]})})})]}),S.mounted?(0,q.jsxs)(`div`,{inert:!t,className:`flex min-h-0 grow flex-col overflow-hidden ${w}`,style:{flexBasis:S.shown?C:0,maxHeight:x?`100vh`:`calc(100vh - ${dA}px)`},children:[x?null:(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,title:`Drag to resize, double-click to switch between the default and the largest size`,className:`group flex h-2.5 shrink-0 cursor-row-resize items-center justify-center bg-line-mid transition-colors hover:bg-theme`,onPointerDown:e=>{let t=Math.min(u,fA());_(!0),Ep(e,(e,n)=>d(Tp(t-n,aA,fA())),()=>_(!1))},onDoubleClick:()=>d(u>=fA()-1?iA:fA()),children:(0,q.jsx)(`span`,{className:`h-0.5 w-10 rounded-full bg-ink-3 group-hover:bg-white`})}),s?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-3 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(`span`,{children:s}),(0,q.jsx)(`button`,{className:`ml-auto text-xs underline`,onClick:c,children:`dismiss`})]}):null,(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,q.jsxs)(`div`,{className:`relative shrink-0 overflow-hidden ${w}`,style:{width:m?uA:f+lA},children:[(0,q.jsxs)(`div`,{inert:m,className:`flex h-full ${w} ${m?`opacity-0`:`opacity-100`}`,style:{width:f+lA},children:[(0,q.jsxs)(`div`,{className:`flex shrink-0 flex-col`,style:{width:f},children:[(0,q.jsxs)(`div`,{className:`flex items-center border-b border-line-mid px-3 py-1 text-xs text-ink-2`,children:[(0,q.jsxs)(`span`,{children:[v.length,` jobs`]}),(0,q.jsx)(`button`,{className:`ml-auto rounded-sm px-1 py-0.5 hover:bg-warm hover:text-ink`,onClick:()=>h(!0),title:`Hide the job list`,"aria-label":`Hide the job list`,children:(0,q.jsx)(pu,{size:14,"aria-hidden":`true`})})]}),(0,q.jsxs)(`ul`,{className:`min-h-0 flex-1 overflow-auto`,children:[v.length===0?(0,q.jsx)(`li`,{className:`p-3 text-sm text-ink-2`,children:`No jobs yet.`}):null,v.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`button`,{onClick:()=>o(e.id),className:`block w-full border-b border-line px-3 py-2 text-left hover:bg-warm ${e.id===a?`bg-theme-bg`:``}`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(my,{status:e.status,needsInput:e.resultState===`needs-input`,awaitingUser:!!e.awaitingUser,answered:!!Fc(v,e.id)}),e.continuesJobId?(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs text-ink-2`,title:`Continues job ${e.continuesJobId}`,children:[(0,q.jsx)(Lu,{size:12,"aria-hidden":`true`}),`continues `,e.continuesJobId.slice(0,6)]}):null]}),(0,q.jsx)(`div`,{className:`mt-1 truncate font-mono text-xs text-ink`,title:e.command,children:e.command}),(0,q.jsx)(`div`,{className:`text-xs text-ink-2`,children:xy(e.startedAt)})]})},e.id))]})]}),(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,title:`Drag to resize the job list`,className:`shrink-0 cursor-col-resize bg-line-mid transition-colors hover:bg-theme`,style:{width:lA},onPointerDown:e=>{let t=f;_(!0),Ep(e,e=>p(Tp(t+e,sA,cA)),()=>_(!1))},onDoubleClick:()=>p(oA)})]}),(0,q.jsx)(`button`,{className:`absolute inset-y-0 left-0 w-7 border-r border-line-mid bg-card text-xs text-ink-2 hover:bg-warm hover:text-ink ${w} ${m?`opacity-100`:`pointer-events-none opacity-0`}`,tabIndex:m?0:-1,onClick:()=>h(!1),title:`Show the job list`,"aria-label":`Show the job list`,children:(0,q.jsx)(_u,{size:14,className:`mx-auto`,"aria-hidden":`true`})})]}),y?(0,q.jsx)(rA,{job:y,showOpenInTab:!0,openJob:o},y.id):(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-ink-2`,children:`Select a job to see its output.`})]})]}):null]})}function mA(){let e=Uc(),t=Wc(),n=Gc(),r=zc(),i=t===`denied`,a=e&&t===`granted`;return(0,q.jsx)(`button`,{onClick:()=>void Yc(!a),disabled:!r||i,"aria-pressed":a,"aria-label":a?`Turn notifications off`:`Turn notifications on`,title:r?i?`# Notifications are blocked
|
|
168
|
+
Allow them for this site in the browser settings, then click again.`:n?`# Notifications are on, but the system hides them
|
|
169
|
+
This browser may not show notifications: allow it in the notifications settings of the operating system.`:`# Notifications: ${a?`on`:`off`}\nShows a notification when it is your turn (a login, a step in the browser window that an AI run hands to you, questions that need your answers) and when a run ends. Only while this tab is in the background.`:`# Notifications
|
|
170
|
+
This browser does not support notifications.`,className:`flex items-center rounded p-1.5 transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${a?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:a?(0,q.jsx)(Zl,{size:18,"aria-hidden":`true`}):(0,q.jsx)(ql,{size:18,"aria-hidden":`true`})})}var hA=e=>`asrun-ui.ai-model.${e}`,gA=new Map,_A=new Set;function vA(e){let t=gA.get(e);if(t)return t;let n={chosen:!1,model:``};try{let t=localStorage.getItem(hA(e));t!==null&&(n={chosen:!0,model:t})}catch{}return gA.set(e,n),n}function yA(e){let t=t=>{(t.key===null||t.key.startsWith(`asrun-ui.ai-model.`))&&(gA.clear(),e())};return _A.add(e),window.addEventListener(`storage`,t),()=>{_A.delete(e),window.removeEventListener(`storage`,t)}}function bA(e){return[(0,K.useSyncExternalStore)(yA,()=>vA(e),()=>vA(e)),(0,K.useCallback)(t=>{gA.set(e,{chosen:!0,model:t});try{localStorage.setItem(hA(e),t)}catch{}_A.forEach(e=>e())},[e])]}function xA(e){let[t]=bA(e),n=_l(e);return t.chosen?t.model||void 0:n.data?.suggested??void 0}function SA(e,t){return t===`claude`?e:e.split(`#`)[0].split(`/`).pop()||e}var CA=`asrun-ui.ai-tool`,wA=new Set,TA=null;function EA(){try{let e=localStorage.getItem(CA);return lc.find(t=>t===e)??null}catch{return null}}function DA(){return TA??EA()??`claude`}function OA(e){let t=t=>{(t.key===null||t.key===CA)&&(TA=EA()??TA,e())};return wA.add(e),window.addEventListener(`storage`,t),()=>{wA.delete(e),window.removeEventListener(`storage`,t)}}function kA(){return[(0,K.useSyncExternalStore)(OA,DA,()=>uc),(0,K.useCallback)(e=>{TA=e;try{localStorage.setItem(CA,e)}catch{}wA.forEach(e=>e())},[])]}function AA({title:e,footer:t,onClose:n,wide:r=!1,children:i}){return(0,K.useEffect)(()=>{let e=e=>e.key===`Escape`&&n();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n]),(0,q.jsx)(`div`,{className:`fixed inset-0 z-30 flex items-center justify-center bg-dai-deep/55 p-4 backdrop-blur-[2px]`,onMouseDown:n,children:(0,q.jsxs)(`div`,{className:`card-paper flex max-h-[90vh] ${r?`w-[52rem]`:`w-[34rem]`} max-w-[94vw] flex-col overflow-hidden shadow-lift`,onMouseDown:e=>e.stopPropagation(),children:[e?(0,q.jsx)(`h2`,{className:`shrink-0 border-b border-line px-5 py-3 font-serif text-base`,children:e}):null,(0,q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:i}),t?(0,q.jsx)(`div`,{className:`shrink-0 border-t border-line px-5 py-3`,children:t}):null]})})}var jA={claude:{label:`Follow Claude Code`,detail:`Whatever Claude Code is set to run from its own settings, which is what it does outside asrun too.`},opencode:{label:`Follow OpenCode (its built-in free model)`,detail:`OpenCode then takes its built-in free model, which has a daily usage limit and is not the model its TUI last used.`}},MA={alias:`Aliases`,settings:`Configured for this CLI`},NA=e=>MA[e]??e;function PA(){let[e]=kA(),[t,n]=bA(e),r=_l(e),i=gt(),[a,o]=(0,K.useState)(!1),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(``),[d,f]=(0,K.useState)(0),p=(0,K.useRef)(null),m=r.data,h=t.chosen?t.model:m?.suggested??``,g=h?SA(h,e):`Default (${dc[e]})`,_=(0,K.useMemo)(()=>[{kind:`cli`},...(m?.models??[]).map(e=>({kind:`model`,model:e}))],[m]),v=(0,K.useMemo)(()=>{let t=l.trim().toLowerCase();return t===``?_:_.filter(n=>n.kind===`cli`?jA[e].label.toLowerCase().includes(t):[n.model.id,n.model.label,n.model.group,n.model.detail??``].some(e=>e.toLowerCase().includes(t)))},[_,l,e]),y=()=>{u(``);let e=_.findIndex(e=>e.kind===`cli`?h===``:e.model.id===h);f(e===-1?0:e),o(!0)};(0,K.useEffect)(()=>{a&&f(e=>Math.max(0,Math.min(e,v.length-1)))},[v.length,a]);let b=e=>p.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:`nearest`}),x=e=>{n(e.kind===`cli`?``:e.model.id),o(!1)},S=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=Math.max(0,Math.min(v.length-1,d+(e.key===`ArrowDown`?1:-1)));f(t),b(t)}else if(e.key===`Enter`){e.preventDefault();let t=v[d];t&&x(t)}},C=async()=>{c(!0);try{i.setQueryData(ul.aiModels(e),await cc.aiModels(e,!0))}catch{}finally{c(!1)}},w=``;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{onClick:y,title:`# Model (now: ${h||`whatever ${dc[e]} is set to`})\nChooses the model the AI commands run with, out of the models this CLI has on this machine. The choice is remembered for each CLI.`,className:`flex max-w-[15rem] items-center gap-1.5 rounded bg-card px-2.5 py-1.5 text-sm text-ink-2 ring-1 ring-line-mid transition-colors hover:bg-warm hover:text-ink`,children:(0,q.jsx)(`span`,{className:`truncate`,children:g})}),a?(0,q.jsx)(AA,{title:`Model for ${dc[e]}`,onClose:()=>o(!1),footer:(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-ink-3`,children:[(0,q.jsx)(`span`,{children:r.isPending?`Reading the models…`:`${m?.models.length??0} model(s), read from ${dc[e]} on this machine`}),(0,q.jsxs)(`button`,{className:`${Y()} ml-auto gap-1.5`,onClick:()=>void C(),disabled:s,title:`Read the list again, after adding a provider or signing one in.`,children:[(0,q.jsx)(Hf,{size:13,"aria-hidden":`true`,className:s?`animate-spin`:``}),s?`Reading`:`Refresh`]})]}),children:(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(`input`,{className:`${hy} w-full`,placeholder:`Search a provider or a model`,value:l,autoFocus:!0,onChange:e=>{u(e.target.value),f(0)},onKeyDown:S}),r.error?(0,q.jsx)(`p`,{className:`rounded border border-seal/40 bg-seal-bg px-2 py-1.5 text-xs text-seal-deep`,children:r.error.message}):null,m?.error?(0,q.jsx)(`p`,{className:`rounded border border-seal/40 bg-seal-bg px-2 py-1.5 text-xs text-seal-deep`,children:m.error}):null,(m?.notes??[]).map(e=>(0,q.jsx)(`p`,{className:`rounded border border-gold-deep/30 bg-gold-bg px-2 py-1.5 text-xs text-gold-deep`,children:e},e)),(0,q.jsxs)(`div`,{ref:p,className:`max-h-[24rem] overflow-y-auto rounded border border-line-mid`,children:[v.length===0?(0,q.jsx)(`p`,{className:`px-3 py-4 text-sm text-ink-3`,children:r.isPending?`Reading the models…`:`No model matches that search.`}):null,v.map((t,n)=>{let r=t.kind===`cli`,i=t.kind===`model`?t.model.group:``,a=!r&&i!==w?NA(i):null;r||(w=i);let o=r?h===``:t.model.id===h,s=r?jA[e].label:t.model.label,c=r?jA[e].detail:t.model.detail;return(0,q.jsxs)(`div`,{children:[a?(0,q.jsx)(`p`,{className:`sticky top-0 border-y border-line bg-warm px-3 py-1 text-[11px] font-bold tracking-wider text-ink-3`,children:a.toUpperCase()}):null,(0,q.jsxs)(`button`,{"data-row":n,onClick:()=>x(t),onMouseEnter:()=>f(n),"aria-current":o,className:`flex w-full items-start gap-2 px-3 py-2 text-left text-sm transition-colors ${n===d?`bg-theme-bg`:`hover:bg-warm`}`,children:[(0,q.jsx)(`span`,{className:`mt-0.5 w-4 shrink-0 text-theme-btn`,children:o?(0,q.jsx)(au,{size:14}):null}),(0,q.jsxs)(`span`,{className:`min-w-0`,children:[(0,q.jsx)(`span`,{className:`block truncate text-ink`,children:s}),!r&&t.model.id!==s?(0,q.jsx)(`span`,{className:`block truncate font-mono text-[11px] text-ink-3`,children:t.model.id}):null,c?(0,q.jsx)(`span`,{className:`block text-[11px] text-ink-3`,children:c}):null]})]})]},r?`cli`:t.model.id)})]}),e===`opencode`&&h===``?(0,q.jsx)(`p`,{className:`text-xs text-seal-deep`,children:`Without a model, OpenCode runs its built-in free model, which has a daily limit.`}):null,(0,q.jsxs)(`p`,{className:`text-xs text-ink-3`,children:[`The list comes from `,dc[e],` itself, so it follows the providers you add or sign in to. Only a model listed here can be run.`]})]})}):null]})}var FA=`asrun-ui.ai-thinking`,IA=null,LA=new Set;function RA(){try{return localStorage.getItem(FA)===`on`}catch{return!1}}function zA(){return IA??RA()}function BA(e){let t=t=>{(t.key===null||t.key===FA)&&(IA=RA(),e())};return LA.add(e),window.addEventListener(`storage`,t),()=>{LA.delete(e),window.removeEventListener(`storage`,t)}}function VA(){return[(0,K.useSyncExternalStore)(BA,zA,()=>!1),(0,K.useCallback)(e=>{IA=e;try{localStorage.setItem(FA,e?`on`:`off`)}catch{}LA.forEach(e=>e())},[])]}var HA=`# Show thinking
|
|
171
|
+
Turns thinking on for the AI runs: the model is asked to think, and the job log shows it dimmed, before the agent acts.
|
|
172
|
+
It costs extra tokens and makes a run slower, so it is off unless you turn it on.`,UA=`# Show thinking
|
|
173
|
+
Claude Code has no switch for this: it shows thinking when its model and its own settings have thinking on. What it does show appears in the log all the same.`;function WA(){let[e]=kA(),[t,n]=VA(),r=e===`claude`;return(0,q.jsx)(`button`,{type:`button`,"aria-pressed":t&&!r,"aria-label":`Show the agent's thinking in the log`,title:r?UA:`${HA}\nNow: ${t?`on`:`off`}`,disabled:r,onClick:()=>n(!t),className:`flex items-center rounded p-1.5 transition-colors focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none ${r?`cursor-not-allowed text-ink-3 opacity-60`:t?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:(0,q.jsx)(Vu,{size:18,"aria-hidden":`true`})})}function GA({tool:e}){let t=`url(/logos/${e}.svg)`;return(0,q.jsx)(`span`,{className:`inline-block h-4 w-4 shrink-0 bg-current`,style:{maskImage:t,WebkitMaskImage:t,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`},"aria-hidden":`true`})}function KA(){let[e,t]=kA();return(0,q.jsx)(`div`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,role:`group`,"aria-label":`AI agent`,title:`# AI agent (now: ${dc[e]})\nChooses the command-line tool that runs the AI commands: Explore case, Generate spec, Heal spec and Make cases.
|
|
174
|
+
Pick the one that is installed and logged in on this machine. Your choice is remembered.`,children:lc.map(n=>{let r=e===n;return(0,q.jsxs)(`button`,{onClick:()=>t(n),"aria-pressed":r,"aria-label":dc[n],className:`flex items-center px-2.5 py-1.5 text-sm transition-colors duration-200 ease-out motion-reduce:transition-none ${r?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`,children:[(0,q.jsx)(GA,{tool:n}),(0,q.jsx)(`span`,{className:`grid transition-[grid-template-columns,margin,opacity] duration-200 ease-out motion-reduce:transition-none ${r?`ml-1.5 grid-cols-[1fr] opacity-100`:`ml-0 grid-cols-[0fr] opacity-0`}`,"aria-hidden":`true`,children:(0,q.jsx)(`span`,{className:`overflow-hidden whitespace-nowrap`,children:dc[n]})})]},n)})})}var qA=[{to:`/profiles`,label:`Profiles`,theme:`jade`},{to:`/cases`,label:`Cases`,theme:`qing`},{to:`/run`,label:`Run tests`,theme:`seal`},{to:`/reports`,label:`Reports`,theme:`dai`},{to:`/guide`,label:`AI guide`,theme:`gold`}];function JA(){let{pathname:e}=To(),{drawerOpen:t,drawerMaximized:n}=bl(),r=qA.find(t=>e===t.to||e.startsWith(`${t.to}/`))?.theme??(e===`/help`?`qing`:`jade`),i=e===`/help`;return(0,q.jsxs)(`div`,{"data-theme":r,className:`flex h-full flex-col text-ink`,children:[(0,q.jsxs)(`header`,{className:`relative z-10 flex items-center gap-6 border-b-2 border-ink bg-paper px-6 py-3 shadow-paper`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`seal`,children:`A`}),(0,q.jsx)(`span`,{className:`font-serif text-lg tracking-widest`,children:il})]}),(0,q.jsx)(`nav`,{className:`flex gap-1`,children:qA.map(e=>(0,q.jsx)(Js,{to:e.to,"data-theme":e.theme,className:({isActive:e})=>`relative rounded px-3 py-1.5 text-sm font-medium transition-colors ${e?`bg-theme-bg text-theme-ink after:absolute after:inset-x-3 after:-bottom-[7px] after:h-0.5 after:bg-theme`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:e.label},e.to))}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,q.jsx)(PA,{}),(0,q.jsx)(WA,{}),(0,q.jsx)(KA,{})]}),(0,q.jsx)(mA,{}),(0,q.jsx)(Js,{to:`/help`,"aria-label":`Help: how to start`,title:`Help: how to start`,className:`flex items-center rounded p-1.5 transition-colors ${i?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`,children:(0,q.jsx)(jd,{size:18,"aria-hidden":`true`})}),(0,q.jsx)(`a`,{href:`/docs/theme-guide.html`,target:`_blank`,rel:`noreferrer`,title:`Inkstone theme, designed and created by Zoro Chen`,className:`rounded px-3 py-1.5 text-sm font-medium text-ink-2 transition-colors hover:bg-warm hover:text-ink`,children:`Inkstone theme`})]}),(0,q.jsx)(`main`,{className:`min-h-0 flex-1 overflow-auto ${t&&n?`hidden`:``}`,children:(0,q.jsx)(Ds,{})}),(0,q.jsx)(pA,{})]})}function YA(){return(0,q.jsx)(`footer`,{className:`mt-6 flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-line pt-4 text-xs text-ink-3`,children:(0,q.jsx)(`span`,{children:`Created by Zoro Chen`})})}var XA=`/login`,ZA=3e3,QA=e=>({loggedOutUrl:e.loggedOutUrl,loggedInSelector:e.loggedInSelector??``,loggedOutSelector:e.loggedOutSelector??``,timeoutMs:String(e.timeoutMs)}),$A={loggedOutUrl:XA,loggedInSelector:``,loggedOutSelector:``,timeoutMs:String(ZA)},ej=(e,t)=>e.loggedOutUrl.trim()===t.loggedOutUrl.trim()&&e.loggedInSelector.trim()===t.loggedInSelector.trim()&&e.loggedOutSelector.trim()===t.loggedOutSelector.trim()&&e.timeoutMs.trim()===t.timeoutMs.trim();function tj(e){let t=e.trim();return t===``?`Say where a signed-out visitor ends up, e.g. /login.`:/\s/.test(t)||!t.startsWith(`/`)&&!/^https?:\/\//i.test(t)?`A path starting with "/" (e.g. /login), or a full http(s) URL for single sign-on.`:null}function nj(e){let t=e.trim(),n=Number(t);return t===``||!Number.isInteger(n)||n<500||n>6e4?`A whole number of milliseconds between 500 and 60000.`:null}var rj=e=>tj(e.loggedOutUrl)??nj(e.timeoutMs),ij=e=>({loggedOutUrl:e.loggedOutUrl.trim(),...e.loggedInSelector.trim()!==``&&{loggedInSelector:e.loggedInSelector.trim()},...e.loggedOutSelector.trim()!==``&&{loggedOutSelector:e.loggedOutSelector.trim()},timeoutMs:Number(e.timeoutMs.trim())});function aj({draft:e,onChange:t}){let n=`mt-1 w-full ${hy}`,r=tj(e.loggedOutUrl),i=nj(e.timeoutMs);return(0,q.jsxs)(`fieldset`,{className:`rounded border border-line px-3 py-3 sm:col-span-2`,children:[(0,q.jsx)(`legend`,{className:`px-1 text-xs tracking-widest text-ink-2 uppercase`,children:`Session check`}),(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`How the check page shows that a saved login is gone. Whichever signal arrives first decides, so a redirect, a 401/403, a login form at the same address and a signed-in-only element are all covered.`}),(0,q.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[(0,q.jsxs)(`label`,{className:`text-sm sm:col-span-2`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Signed-out address`}),(0,q.jsx)(`input`,{className:`${n} font-mono`,value:e.loggedOutUrl,placeholder:XA,onChange:e=>t({loggedOutUrl:e.target.value})}),(0,q.jsx)(`span`,{className:`text-xs ${r?`text-seal-deep`:`text-ink-2`}`,children:r??`Where a signed-out visitor ends up: a path on the site, or a full URL for single sign-on.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Signed-in element (optional)`}),(0,q.jsx)(`input`,{className:`${n} font-mono`,value:e.loggedInSelector,placeholder:`input[name='username']`,onChange:e=>t({loggedInSelector:e.target.value})}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A selector that only exists while signed in. Without one, "not sent to the signed-out address" counts as signed in, which a slow single-page app can mislead.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Signed-out element (optional)`}),(0,q.jsx)(`input`,{className:`${n} font-mono`,value:e.loggedOutSelector,placeholder:`input[type='password']`,onChange:e=>t({loggedOutSelector:e.target.value})}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A selector that proves the visitor is signed out, e.g. the password field of a login form the site shows at the same address.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Wait for a signal (ms)`}),(0,q.jsx)(`input`,{className:`${n} font-mono`,value:e.timeoutMs,placeholder:String(ZA),onChange:e=>t({timeoutMs:e.target.value})}),(0,q.jsx)(`span`,{className:`text-xs ${i?`text-seal-deep`:`text-ink-2`}`,children:i??`Default 3000, between 500 and 60000.`})]})]})]})}var oj=/^[a-z0-9]+(-[a-z0-9]+)*$/;function sj(e,t){let n=`${e}-copy`;if(!t.includes(n))return n;for(let e=2;;e++){let r=`${n}-${e}`;if(!t.includes(r))return r}}function cj({profile:e,profileIds:t,onClose:n,onDone:r}){let i=gt(),[a,o]=(0,K.useState)(()=>sj(e.id,t)),[s,c]=(0,K.useState)(`${e.name} (copy)`),l=Un({mutationFn:()=>cc.addProfile({id:a.trim(),name:s.trim(),env:e.env,baseURL:e.baseURL,account:e.account??void 0,tags:e.tags,startPath:e.startPath,sessionCheckPath:e.sessionCheckPath,sessionCheck:ij(QA(e.sessionCheck)),email:e.email}),onSuccess:e=>{i.invalidateQueries({queryKey:ul.profiles}),i.invalidateQueries({queryKey:ul.info}),r(e.id)}}),u=a.trim(),d=oj.test(u),f=t.includes(u),p=d&&!f&&s.trim()!==``,m=`mt-1 w-full ${hy}`;return(0,q.jsx)(AA,{title:`Duplicate ${e.id}`,onClose:n,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:n,children:`Cancel`}),(0,q.jsx)(`button`,{type:`submit`,form:`duplicate-profile-form`,className:Y(`primary`),disabled:!p||l.isPending,children:l.isPending?`Creating...`:`Create copy`})]}),children:(0,q.jsxs)(`form`,{id:`duplicate-profile-form`,className:`space-y-3`,onSubmit:e=>{e.preventDefault(),p&&!l.isPending&&l.mutate()},children:[(0,q.jsxs)(`p`,{className:`text-sm text-ink-2`,children:[`The copy keeps every setting of `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:e.id}),` and gets its own entry in `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:`profiles.yaml`}),`, so tests run once more for it.`]}),(0,q.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Profile id`}),(0,q.jsx)(`input`,{className:`${m} font-mono`,autoFocus:!0,value:a,onChange:e=>o(e.target.value)}),u!==``&&!d?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:`Lowercase letters, digits and single dashes.`}):f?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:`Another profile already has this id.`}):(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`Commands, session files and baseline names use it.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Name`}),(0,q.jsx)(`input`,{className:m,value:s,onChange:e=>c(e.target.value)}),s.trim()===``?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:`A name is required.`}):null]})]}),(0,q.jsxs)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 rounded border border-line bg-warm px-3 py-2 text-xs`,children:[(0,q.jsx)(`dt`,{className:`text-ink-2`,children:`Environment`}),(0,q.jsx)(`dd`,{className:`font-mono text-ink`,children:e.env}),(0,q.jsx)(`dt`,{className:`text-ink-2`,children:`Base URL`}),(0,q.jsx)(`dd`,{className:`break-all font-mono text-ink`,children:e.baseURL}),e.account?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{className:`text-ink-2`,children:`Account`}),(0,q.jsx)(`dd`,{className:`text-ink`,children:e.account})]}):null,e.tags.length>0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{className:`text-ink-2`,children:`Tags`}),(0,q.jsx)(`dd`,{className:`font-mono text-ink`,children:e.tags.join(`, `)})]}):null]}),e.savedAt?(0,q.jsxs)(`p`,{className:`rounded border border-gold-deep/40 bg-gold-bg px-3 py-2 text-sm text-gold-deep`,children:[`The saved login is not copied: it belongs to `,(0,q.jsx)(`code`,{className:`font-mono`,children:e.id}),`. Log in the new profile by hand before visiting it or running its tests.`]}):null,l.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:l.error.message}):null]})})}var lj=/^[a-z][a-z0-9+.-]*:\/\//i;function uj(e){let t=e.trim();return lj.test(t)?t:`https://${t}`}var dj=`__new__`;function fj({value:e,onChange:t,envs:n,invalid:r=!1,className:i=``}){let[a,o]=(0,K.useState)(!1),s=[...new Set([`production`,`staging`,...n,e].filter(e=>e!==``&&e!==dj))];return(0,q.jsx)(`div`,{className:i,children:a?(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`input`,{className:`w-full font-mono ${hy}`,autoFocus:!0,value:e,placeholder:`uat`,"aria-label":`New environment`,"aria-invalid":r||void 0,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Escape`&&o(!1)}}),(0,q.jsx)(`button`,{type:`button`,className:`shrink-0 whitespace-nowrap text-xs text-theme-ink underline decoration-theme/50 underline-offset-2`,onClick:()=>o(!1),children:`Pick from the list`})]}):(0,q.jsxs)(by,{value:e,onChange:e=>e===dj?o(!0):t(e),invalid:r,mono:!0,"aria-label":`Environment`,children:[(0,q.jsx)(`option`,{value:``,children:`Choose...`}),s.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e)),(0,q.jsx)(`option`,{value:dj,children:`New environment...`})]})})}var pj=/^[a-z0-9]+(-[a-z0-9]+)*$/,mj=/^https?:\/\/[^/\s]+\/?$/,hj=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean),gj=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),_j=e=>{if(!mj.test(e))return null;try{return new URL(e).origin}catch{return null}};function vj({profile:e,envs:t,onClose:n,onSaved:r}){let i=gt(),[a,o]=(0,K.useState)(e.name),[s,c]=(0,K.useState)(e.env),[l,u]=(0,K.useState)(e.baseURL),[d,f]=(0,K.useState)(e.account??``),[p,m]=(0,K.useState)(e.tags.join(`, `)),[h,g]=(0,K.useState)(e.startPath),[_,v]=(0,K.useState)(e.sessionCheckPath),[y,b]=(0,K.useState)(QA(e.sessionCheck)),[x,S]=(0,K.useState)(e.email),C=_j(uj(l)),w=C!==null,T=C!==null&&C!==e.baseURL,E=hj(p),D=s.trim(),O=h.trim(),k=O===``||O.startsWith(`/`)&&!O.startsWith(`//`)&&!/\s/.test(O),A=_.trim(),j=A.startsWith(`/`)&&!/\s/.test(A),M=pj.test(D),N=E.every(e=>pj.test(e)),P=a.trim()!==``&&M&&w&&N&&k&&j&&rj(y)===null,ee=a.trim()!==e.name||D!==e.env||C!==e.baseURL||(d.trim()||null)!==e.account||!gj(E,e.tags)||O!==e.startPath||A!==e.sessionCheckPath||!ej(y,QA(e.sessionCheck))||(D!==`production`&&x)!==e.email,F=Un({mutationFn:()=>cc.editProfile(e.id,{name:a.trim(),env:D,baseURL:C,account:d.trim()||void 0,tags:E,startPath:O,sessionCheckPath:A,sessionCheck:ij(y),email:D!==`production`&&x}),onSuccess:e=>{i.invalidateQueries({queryKey:ul.profiles}),i.invalidateQueries({queryKey:ul.info}),r(e.sessionCleared?`Profile "${e.profile.id}" saved. Its site address changed, so the saved login was deleted: log in again.`:`Profile "${e.profile.id}" saved.`)}}),I=`mt-1 w-full ${hy}`;return(0,q.jsx)(AA,{title:`Edit ${e.id}`,onClose:n,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:n,children:`Cancel`}),(0,q.jsx)(`button`,{type:`submit`,form:`edit-profile-form`,className:Y(`primary`),disabled:!P||!ee||F.isPending,children:F.isPending?`Saving...`:`Save changes`})]}),children:(0,q.jsxs)(`form`,{id:`edit-profile-form`,className:`space-y-3`,onSubmit:e=>{e.preventDefault(),P&&ee&&!F.isPending&&F.mutate()},children:[(0,q.jsxs)(`p`,{className:`rounded border border-line bg-warm px-3 py-2 text-xs text-ink-2`,children:[`The id `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:e.id}),` is fixed: commands, session files and baseline names use it.`]}),(0,q.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Name`}),(0,q.jsx)(`input`,{className:I,autoFocus:!0,value:a,onChange:e=>o(e.target.value)}),a.trim()===``?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:`A name is required.`}):null]}),(0,q.jsxs)(`div`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Environment`}),(0,q.jsx)(fj,{value:s,onChange:c,envs:t,invalid:D!==``&&!M,className:`mt-1 w-full`}),(0,q.jsx)(`span`,{className:`text-xs ${D&&!M?`text-seal-deep`:`text-ink-2`}`,children:`Anything other than staging is protected for cases that write data.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Base URL`}),(0,q.jsx)(`input`,{className:I,value:l,onChange:e=>u(e.target.value),onBlur:()=>l.trim()&&u(uj(l))}),(0,q.jsx)(`span`,{className:`text-xs ${l&&!w?`text-seal-deep`:`text-ink-2`}`,children:`Only the site address, no path.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Account (optional)`}),(0,q.jsx)(`input`,{className:I,value:d,onChange:e=>f(e.target.value),placeholder:`qa@example.com`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A label for people. Never a password.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Tags (optional)`}),(0,q.jsx)(`input`,{className:`${I} font-mono`,value:p,onChange:e=>m(e.target.value),placeholder:`us, core`}),(0,q.jsx)(`span`,{className:`text-xs ${N?`text-ink-2`:`text-seal-deep`}`,children:`Comma-separated lowercase words.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Start path`}),(0,q.jsx)(`input`,{className:`${I} font-mono`,value:h,onChange:e=>g(e.target.value),placeholder:`/ (the site root)`}),(0,q.jsx)(`span`,{className:`text-xs ${k?`text-ink-2`:`text-seal-deep`}`,children:`The page "Visit" opens. Empty opens the site root.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Session check path`}),(0,q.jsx)(`input`,{className:`${I} font-mono`,value:_,onChange:e=>v(e.target.value),placeholder:`/account/`}),(0,q.jsx)(`span`,{className:`text-xs ${A&&!j?`text-seal-deep`:`text-ink-2`}`,children:`A page only a signed-in visitor sees. "Verify" and the pre-run check open it.`})]})]}),(0,q.jsx)(aj,{draft:y,onChange:e=>b(t=>({...t,...e}))}),(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:D!==`production`&&x,disabled:D===`production`,onChange:e=>S(e.target.checked)}),(0,q.jsx)(`span`,{className:`text-ink`,children:`A real mailbox is connected; tests may send email`})]}),T?(0,q.jsxs)(`div`,{className:`rounded border border-gold-deep/40 bg-gold-bg px-3 py-2 text-sm text-gold-deep`,children:[`The site address changes. The saved login of `,(0,q.jsx)(`code`,{className:`font-mono`,children:e.id}),` belongs to the old address and will be deleted: the profile has to log in again.`]}):null,F.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:F.error.message}):null]})})}function yj({text:e}){let[t,n]=(0,K.useState)(!1);return(0,q.jsxs)(`div`,{className:`paper-grain flex items-center gap-2 rounded bg-dai-deep px-3 py-2 shadow-paper`,children:[(0,q.jsx)(`code`,{className:`max-h-80 min-w-0 flex-1 overflow-auto font-mono text-sm whitespace-pre-wrap text-paper`,children:e}),(0,q.jsx)(`button`,{className:`shrink-0 rounded-sm border border-gold/60 px-2 py-1 text-xs text-gold transition-colors hover:bg-gold/15`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1200)})},children:t?`Copied`:`Copy`})]})}var bj=/^[a-z0-9]+(-[a-z0-9]+)*$/,xj=` - id: example-staging # lowercase, dashes allowed; used in commands, session files and baseline names
|
|
175
|
+
name: Example (staging) # display name
|
|
176
|
+
env: staging # production, staging, ... (anything but staging is protected for write cases)
|
|
177
|
+
baseURL: https://staging.example.com
|
|
178
|
+
account: qa@example.com # optional label; never a password
|
|
179
|
+
tags: [us] # optional, for grouping and --tag
|
|
180
|
+
email: false # keep false until a real mailbox is connected; never true for production
|
|
181
|
+
startPath: /app/home # optional; the page "Visit" opens after a login; empty = the site root
|
|
182
|
+
sessionCheckPath: /account/ # optional; a page only a signed-in visitor sees
|
|
183
|
+
sessionCheck: # optional; how that page shows a missing login
|
|
184
|
+
loggedOutUrl: /login # where a signed-out visitor ends up (default /login)
|
|
185
|
+
loggedInSelector: "input[name='username']" # only present while signed in (recommended)
|
|
186
|
+
loggedOutSelector: "input[type='password']" # proves a signed-out visitor (optional)
|
|
187
|
+
timeoutMs: 3000 # how long to wait for one of them (default 3000)`,Sj=e=>`A new profile "${e}" was added to profiles.yaml. Bring the existing test suite up to date for it.
|
|
188
|
+
|
|
189
|
+
1. Read profiles.yaml and every file in cases/ (skip _template.md).
|
|
190
|
+
2. In each case, add the expected values for "${e}" to its "## Values" block (the case document is the only
|
|
191
|
+
place where expected values live; profiles.yaml holds no values). Do not invent values: open the real pages as
|
|
192
|
+
"${e}" with the playwright-test MCP (log in first with "pnpm signin ${e}") and ask me when something
|
|
193
|
+
is unclear. Write the values the spec asserts, not prose.
|
|
194
|
+
3. For each case that has a spec, run /gen-spec <case-id> so tests/<case-id>.spec.ts covers "${e}". Create
|
|
195
|
+
screenshot baselines only for "${e}" (pnpm asrun --env <env> --profile ${e} --grep <case-id>
|
|
196
|
+
--update-snapshots) and tell me which images to review.
|
|
197
|
+
4. Finish with pnpm typecheck and pnpm asrun --env <env> --profile ${e}, then summarize what changed and what
|
|
198
|
+
is still open. Keep "email: false" for the new profile. Cases that write data must not run in production without my
|
|
199
|
+
explicit permission.`;function Cj({onAdded:e,envs:t}){let n=gt(),[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(``),[s,c]=(0,K.useState)(`staging`),[l,u]=(0,K.useState)(``),[d,f]=(0,K.useState)(``),[p,m]=(0,K.useState)(``),[h,g]=(0,K.useState)(``),[_,v]=(0,K.useState)(``),[y,b]=(0,K.useState)($A),[x,S]=(0,K.useState)(!1),C=Un({mutationFn:()=>cc.addProfile({id:r,name:a,env:s,baseURL:uj(l),account:d.trim()||void 0,tags:p.split(`,`).map(e=>e.trim()).filter(Boolean),startPath:h.trim()||void 0,sessionCheckPath:_||void 0,sessionCheck:ij(y),email:s!==`production`&&x}),onSuccess:t=>{n.invalidateQueries({queryKey:ul.profiles}),n.invalidateQueries({queryKey:ul.info}),i(``),o(``),u(``),f(``),m(``),g(``),v(``),b($A),S(!1),e(t.id)}}),w=bj.test(r),T=bj.test(s),E=/^https?:\/\/[^/\s]+\/?$/.test(uj(l)),D=h.trim(),O=D===``||D.startsWith(`/`)&&!D.startsWith(`//`)&&!/\s/.test(D),k=w&&T&&a.trim()!==``&&E&&O&&(!_||_.startsWith(`/`))&&rj(y)===null,A=`mt-1 w-full ${hy}`;return(0,q.jsxs)(`form`,{className:`grid gap-4 sm:grid-cols-2`,onSubmit:e=>{e.preventDefault(),k&&C.mutate()},children:[(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Profile id`}),(0,q.jsx)(`input`,{className:`${A} font-mono`,value:r,onChange:e=>i(e.target.value),placeholder:`example-staging`}),(0,q.jsx)(`span`,{className:`text-xs ${r&&!w?`text-seal-deep`:`text-ink-2`}`,children:`Lowercase letters, digits and single dashes. Cannot be changed later.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Name`}),(0,q.jsx)(`input`,{className:A,value:a,onChange:e=>o(e.target.value),placeholder:`Example (staging)`})]}),(0,q.jsxs)(`div`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Environment`}),(0,q.jsx)(fj,{value:s,onChange:c,envs:t,invalid:s!==``&&!T,className:`mt-1 w-full`}),(0,q.jsx)(`span`,{className:`text-xs ${s&&!T?`text-seal-deep`:`text-ink-2`}`,children:`Anything other than staging is protected for cases that write data.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Base URL`}),(0,q.jsx)(`input`,{className:A,value:l,onChange:e=>u(e.target.value),onBlur:()=>l.trim()&&u(uj(l)),placeholder:`https://staging.example.com`}),(0,q.jsx)(`span`,{className:`text-xs ${l&&!E?`text-seal-deep`:`text-ink-2`}`,children:`Only the site address, no path. https:// is added when you leave it out.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Account (optional)`}),(0,q.jsx)(`input`,{className:A,value:d,onChange:e=>f(e.target.value),placeholder:`qa@example.com`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A label for people. Never a password; logins stay in .auth/.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Start path (optional)`}),(0,q.jsx)(`input`,{className:`${A} font-mono`,value:h,onChange:e=>g(e.target.value),placeholder:`/app/home`}),(0,q.jsx)(`span`,{className:`text-xs ${O?`text-ink-2`:`text-seal-deep`}`,children:`The page "Visit" opens. Empty opens the site root.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Tags (optional)`}),(0,q.jsx)(`input`,{className:`${A} font-mono`,value:p,onChange:e=>m(e.target.value),placeholder:`us, core`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`Comma-separated lowercase words, to group profiles and run one group.`})]}),(0,q.jsxs)(`label`,{className:`text-sm`,children:[(0,q.jsx)(`span`,{className:`text-ink`,children:`Session check path (optional)`}),(0,q.jsx)(`input`,{className:`${A} font-mono`,value:_,onChange:e=>v(e.target.value),placeholder:`/account/`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`A page only a signed-in visitor sees; "Verify" opens it.`})]}),(0,q.jsx)(aj,{draft:y,onChange:e=>b(t=>({...t,...e}))}),(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:x,disabled:s===`production`,onChange:e=>S(e.target.checked)}),(0,q.jsx)(`span`,{className:`text-ink`,children:`A real mailbox is connected; tests may send email`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-3 sm:col-span-2`,children:[(0,q.jsx)(`button`,{className:Y(`primary`),disabled:!k||C.isPending,children:C.isPending?`Adding...`:`Add profile`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`Appends an entry to profiles.yaml. Existing entries and comments stay untouched.`})]}),C.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep sm:col-span-2`,children:C.error.message}):null]})}function wj({n:e,title:t,children:n}){return(0,q.jsxs)(`li`,{className:`flex gap-3`,children:[(0,q.jsx)(`span`,{className:`mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-sm bg-theme-bg font-serif text-xs text-theme-ink ring-1 ring-theme/40`,children:e}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2 text-sm text-ink`,children:[(0,q.jsx)(`div`,{className:`font-serif text-ink`,children:t}),n]})]})}function Tj({profileIds:e,envs:t}){let[n,r]=(0,K.useState)(!1),[i,a]=(0,K.useState)(null),[o,s]=(0,K.useState)(null),c=o??i??e[e.length-1]??`<profile-id>`;return(0,q.jsxs)(`section`,{className:`card-paper mt-6`,children:[(0,q.jsxs)(`button`,{className:`flex w-full items-center gap-3 px-4 py-3 text-left`,onClick:()=>r(!n),"aria-expanded":n,children:[(0,q.jsx)(`span`,{className:`font-serif`,children:`Add a new profile`}),(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`another environment or site, step by step`}),(0,q.jsx)(`span`,{className:`ml-auto text-ink-3`,children:(0,q.jsx)(lu,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${n?``:`-rotate-90`}`,"aria-hidden":`true`})})]}),(0,q.jsx)(Mp,{open:n,children:(0,q.jsxs)(`div`,{className:`space-y-6 border-t border-line-mid p-4`,children:[i?(0,q.jsxs)(`div`,{className:`rounded border border-jade-deep/40 bg-jade-bg px-3 py-2 text-sm text-jade-btn`,children:[`Profile `,(0,q.jsx)(`code`,{className:`font-mono`,children:i}),` was added. Continue with steps 2 to 4 below.`]}):null,(0,q.jsxs)(`ol`,{className:`space-y-6`,children:[(0,q.jsxs)(wj,{n:1,title:`Tell AsRun about the new environment`,children:[(0,q.jsx)(`p`,{children:`Fill in the form; AsRun writes the entry for you:`}),(0,q.jsx)(`div`,{className:`rounded border border-line-mid bg-warm p-4`,children:(0,q.jsx)(Cj,{envs:t,onAdded:e=>(a(e),s(null))})}),(0,q.jsxs)(`details`,{className:`text-sm`,children:[(0,q.jsx)(`summary`,{className:`cursor-pointer text-ink-2`,children:`Prefer to edit the file by hand?`}),(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsxs)(`p`,{children:[`Append an entry to the `,(0,q.jsx)(`code`,{children:`profiles`}),` list in `,(0,q.jsx)(`code`,{children:`profiles.yaml`}),`. Each entry is one environment and becomes one Playwright project, so every test runs once per profile. No code changes needed.`]}),(0,q.jsx)(yj,{text:xj}),(0,q.jsxs)(`p`,{children:[`Profiles hold connection settings only. Expected values belong to the case that checks them (its`,` `,(0,q.jsx)(`code`,{children:`## Values`}),` block).`]})]})]})]}),(0,q.jsx)(wj,{n:2,title:`Log in the new profile`,children:(0,q.jsxs)(`p`,{children:[`Click `,(0,q.jsx)(`b`,{children:`Log in`}),` in the table above, log in yourself in the browser window (2FA included), then press`,` `,(0,q.jsx)(`b`,{children:`Done, save the session`}),` on the card in that window. Every case that runs as this profile uses that saved login.`]})}),(0,q.jsxs)(wj,{n:3,title:`Give each case the values for this profile`,children:[(0,q.jsxs)(`p`,{children:[`A case that checks something that differs per environment needs the value for `,(0,q.jsx)(`code`,{children:c}),`: the page title, the logo, a label. Two ways:`]}),(0,q.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,q.jsxs)(`li`,{children:[`By hand: open the case on the`,` `,(0,q.jsx)(qs,{to:`/cases`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`Cases page`}),` `,`and fill in its `,(0,q.jsx)(`b`,{children:`Values`}),` section. A case with no value for a profile cannot be checked there.`]}),(0,q.jsx)(`li`,{children:`With the AI (recommended): the agent opens the real pages as this profile and writes the values. Paste the prompt below into Claude Code or OpenCode, started in the asrun workspace.`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 pt-1 text-xs text-ink-2`,children:[`Profile in the prompt`,(0,q.jsxs)(by,{value:c,onChange:s,"aria-label":`Profile in the prompt`,mono:!0,children:[e.length===0?(0,q.jsx)(`option`,{children:`<profile-id>`}):null,e.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e))]})]}),(0,q.jsx)(yj,{text:Sj(c)}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`To only check one case against the new profile first, run `,(0,q.jsx)(`code`,{children:`/explore-case <case-id>`}),` (see the`,` `,(0,q.jsx)(qs,{to:`/guide`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`AI guide`}),`). It reports the missing values and edits only that case file.`]})]}),(0,q.jsx)(wj,{n:4,title:`Check the result and run it`,children:(0,q.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,q.jsxs)(`li`,{children:[`Open the new screenshots in the snapshots folder of the case and confirm each one shows the right thing for `,(0,q.jsx)(`code`,{children:c}),`. A screenshot baseline is what the test compares against.`]}),(0,q.jsxs)(`li`,{children:[`Run this profile on the`,` `,(0,q.jsx)(qs,{to:`/run`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`Run tests page`}),`, then read the`,` `,(0,q.jsx)(qs,{to:`/reports`,className:`text-theme-ink underline decoration-theme/50 underline-offset-2 hover:decoration-theme`,children:`report`}),`.`]})]})})]})]})})]})}var Ej=32,Dj=8;function Oj({label:e,busy:t=!1,busyLabel:n=`Checking...`,items:r}){let i=(0,K.useRef)(null),a=(0,K.useRef)(null),[o,s]=(0,K.useState)(null),c=()=>s(null);(0,K.useEffect)(()=>{t&&s(null)},[t]),(0,K.useEffect)(()=>{if(!o)return;let e=e=>{let t=e.target;i.current?.contains(t)||a.current?.contains(t)||c()},t=e=>{e.key===`Escape`&&(c(),i.current?.focus())};return window.addEventListener(`mousedown`,e),window.addEventListener(`keydown`,t),window.addEventListener(`resize`,c),window.addEventListener(`scroll`,c,!0),()=>{window.removeEventListener(`mousedown`,e),window.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,c),window.removeEventListener(`scroll`,c,!0)}},[o]);let l=()=>{let e=i.current?.getBoundingClientRect();if(!e)return;let t=r.length*Ej+Dj;s({top:Math.max(8,Math.min(e.bottom+4,window.innerHeight-t-8)),right:Math.max(8,window.innerWidth-e.right)})};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{ref:i,className:Y(),disabled:t,title:t?n:e,"aria-label":t?n:e,"aria-haspopup":`menu`,"aria-expanded":!t&&o!==null,"aria-busy":t||void 0,onClick:()=>t?void 0:o?c():l(),children:t?(0,q.jsx)(Hf,{size:16,className:`animate-spin motion-reduce:animate-none`,"aria-hidden":`true`}):(0,q.jsx)(Ef,{size:16,"aria-hidden":`true`})}),o?(0,rc.createPortal)((0,q.jsx)(`div`,{ref:a,role:`menu`,"aria-label":e,style:{top:o.top,right:o.right},className:`card-popup fixed z-50 min-w-[11rem] p-1`,children:r.map(e=>(0,q.jsxs)(`button`,{type:`button`,role:`menuitem`,disabled:!!e.disabledReason,title:e.disabledReason,onClick:()=>{c(),e.onSelect()},className:[`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm transition-colors duration-150`,`disabled:cursor-not-allowed disabled:opacity-50`,e.danger?`text-seal-deep hover:bg-seal-bg`:`text-ink hover:bg-warm disabled:hover:bg-transparent`].filter(Boolean).join(` `),children:[(0,q.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:e.icon}),e.label]},e.label))}),document.body):null]})}function kj({profile:e}){return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`div`,{className:`text-xs text-ink-2`,children:e.account??(0,q.jsx)(`span`,{className:`text-ink-3`,children:`no account label`})}),e.tags.length>0?(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,q.jsx)(`span`,{className:`rounded-sm bg-warm px-1.5 py-0.5 font-mono text-xs text-ink-2 ring-1 ring-line-mid`,children:e},e))}):null]})}function Aj({profile:e,onClose:t,onDone:n}){let r=gt(),i=Un({mutationFn:()=>cc.logoutProfile(e.id),onSuccess:e=>{r.setQueryData(ul.profiles,e),n()}});return(0,q.jsxs)(AA,{title:`Log out ${e.id}?`,onClose:t,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:t,children:`Cancel`}),(0,q.jsx)(`button`,{type:`button`,className:Y(`stop`),disabled:i.isPending,onClick:()=>i.mutate(),children:i.isPending?`Logging out...`:`Log out`})]}),children:[(0,q.jsxs)(`p`,{className:`text-sm text-ink-2`,children:[`The saved login of`,` `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:e.id}),` (the session file in `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:`.auth/`}),`) is deleted. Nothing else changes. Visit and the tests cannot use this profile until you log in again by hand.`]}),i.isError?(0,q.jsx)(`p`,{className:`mt-2 text-sm text-seal-deep`,children:i.error.message}):null]})}function jj({profile:e,lastOne:t,onClose:n,onDone:r}){let i=gt(),a=Un({mutationFn:()=>cc.deleteProfile(e.id),onSuccess:e=>{i.setQueryData(ul.profiles,e),i.invalidateQueries({queryKey:ul.info}),r()}});return(0,q.jsx)(AA,{title:`Delete ${e.id}?`,onClose:n,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:n,children:`Cancel`}),(0,q.jsx)(`button`,{type:`button`,className:Y(`stop`),disabled:a.isPending,onClick:()=>a.mutate(),children:a.isPending?`Deleting...`:`Delete profile`})]}),children:(0,q.jsxs)(`div`,{className:`space-y-2 text-sm text-ink-2`,children:[(0,q.jsxs)(`p`,{children:[`The entry of`,` `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:e.id}),` is removed from `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:`profiles.yaml`}),`, and its saved login (the session file in`,` `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:`.auth/`}),`) is deleted. Nothing else in the file changes.`]}),(0,q.jsx)(`p`,{children:`Screenshot baselines and old reports keep the profile id in their names; they stay on disk. Delete those files by hand if you want them gone.`}),t?(0,q.jsx)(`p`,{className:`rounded border border-gold-deep/40 bg-gold-bg px-3 py-2 text-gold-deep`,children:`This is the only profile. Tests cannot run until another one is added under "Add a new profile".`}):null,a.isError?(0,q.jsx)(`p`,{className:`text-seal-deep`,children:a.error.message}):null]})})}function Mj(){let e=fl(),t=hl(),n=gt(),{startJob:r,selectJob:i}=bl(),[a,o]=(0,K.useState)(null),[s,c]=(0,K.useState)(null),[l,u]=(0,K.useState)(null),[d,f]=(0,K.useState)(null),[p,m]=(0,K.useState)(null),h=Un({mutationFn:e=>cc.verifyProfiles(e),onSuccess:e=>n.setQueryData(ul.profiles,e)}),g=e=>t.data?.find(t=>t.kind===`signin`&&t.profile===e&&t.status===`running`),_=e=>t.data?.find(t=>t.kind===`visit`&&t.profile===e&&t.status===`running`),v=Un({mutationFn:e=>cc.cancelJob(e),onSettled:()=>void n.invalidateQueries({queryKey:ul.jobs})}),y=e.data?.profiles??[],b=t.data?.some(e=>e.kind===`run`&&e.status===`running`)??!1;return(0,q.jsxs)(`div`,{className:`mx-auto max-w-5xl p-6`,children:[(0,q.jsxs)(`div`,{className:`mb-4 flex items-center gap-3`,children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`Profiles`}),(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`one row per environment`}),(0,q.jsx)(`button`,{className:`${Y()} ml-auto`,onClick:()=>h.mutate(void 0),disabled:e.data?.verifying||h.isPending,children:e.data?.verifying?`Checking sessions...`:`Re-check all sessions`})]}),e.isError?(0,q.jsx)(`p`,{className:`text-seal-deep`,children:e.error.message}):null,p?(0,q.jsxs)(`div`,{className:`mb-4 flex items-start gap-2 rounded border px-3 py-2 text-sm ${p.error?`border-seal/40 bg-seal-bg text-seal-deep`:`border-jade-deep/40 bg-jade-bg text-jade-btn`}`,children:[(0,q.jsx)(`span`,{className:`flex-1`,children:p.text}),(0,q.jsx)(`button`,{className:`rounded p-1 hover:bg-white/40 ${p.error?`text-seal-deep`:`text-jade-btn`}`,title:`Dismiss`,"aria-label":`Dismiss`,onClick:()=>m(null),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})})]}):null,(0,q.jsx)(`div`,{className:`card-paper overflow-hidden`,children:(0,q.jsxs)(`table`,{className:`w-full text-left text-sm`,children:[(0,q.jsx)(`thead`,{className:`border-b border-line-mid bg-warm text-xs tracking-widest text-ink-2 uppercase`,children:(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`th`,{className:`px-4 py-2`,children:`Profile`}),(0,q.jsx)(`th`,{className:`px-4 py-2`,children:`Environment`}),(0,q.jsx)(`th`,{className:`px-4 py-2`,children:`Account`}),(0,q.jsx)(`th`,{className:`px-4 py-2`,children:`Login`}),(0,q.jsx)(`th`,{className:`px-4 py-2`,children:`Session saved`}),(0,q.jsx)(`th`,{className:`px-4 py-2 text-right`,children:`Actions`})]})}),(0,q.jsx)(`tbody`,{className:`divide-y divide-line`,children:y.map(e=>{let t=g(e.id),n=_(e.id),a=e.status===`missing`||e.status===`expired`,s=e.status===`ok`,l=e.status!==`missing`,d=b?`Wait for the running test run to finish`:void 0,p=[];return s&&(p.push({label:`Verify`,icon:(0,q.jsx)(Hf,{size:14,"aria-hidden":`true`}),disabledReason:d??(t?`A login is in progress for this profile`:void 0),onSelect:()=>h.mutate({profile:e.id,env:e.env})}),p.push({label:`Re-login`,icon:(0,q.jsx)(tf,{size:14,"aria-hidden":`true`}),disabledReason:d??(n?`Close the browser of this profile first`:t?`A login is in progress for this profile`:void 0),onSelect:()=>void r({action:`signin`,profile:e.id,env:e.env})})),l&&p.push({label:`Logout`,icon:(0,q.jsx)(of,{size:14,"aria-hidden":`true`}),danger:!0,disabledReason:d??(n?`Close the browser of this profile first`:t?`A login is in progress for this profile`:void 0),onSelect:()=>f(e)}),p.push({label:`Duplicate`,icon:(0,q.jsx)(Nu,{size:14,"aria-hidden":`true`}),disabledReason:d,onSelect:()=>c(e)}),p.push({label:`Delete`,icon:(0,q.jsx)(gp,{size:14,"aria-hidden":`true`}),danger:!0,disabledReason:d??(n?`Close the browser of this profile first`:t?`A login is in progress for this profile`:void 0),onSelect:()=>u(e)}),(0,q.jsxs)(`tr`,{children:[(0,q.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,q.jsx)(`div`,{className:`font-medium text-ink`,children:e.name}),(0,q.jsx)(`div`,{className:`font-mono text-xs text-ink-2`,children:e.id})]}),(0,q.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,q.jsx)(sy,{env:e.env}),(0,q.jsx)(`div`,{className:`mt-1 text-xs text-ink-2`,children:new URL(e.baseURL).host})]}),(0,q.jsx)(`td`,{className:`px-4 py-2`,children:(0,q.jsx)(kj,{profile:e})}),(0,q.jsxs)(`td`,{className:`px-4 py-2`,children:[e.verifying?(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`checking...`}):(0,q.jsx)(fy,{status:e.status}),e.error?(0,q.jsx)(`div`,{className:`mt-1 text-xs text-ink-2`,children:e.error}):null]}),(0,q.jsx)(`td`,{className:`px-4 py-2 text-ink-2`,children:xy(e.savedAt)}),(0,q.jsx)(`td`,{className:`px-4 py-2`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,q.jsxs)(`button`,{className:`${Y()} gap-1.5`,disabled:b||!!t||!!n,title:b?`Wait for the running test run to finish`:t?`A login is in progress for this profile`:n?`Close the browser of this profile first`:`Change the fields of this profile`,onClick:()=>o(e),children:[(0,q.jsx)(Yu,{size:14,"aria-hidden":`true`}),`Edit`]}),t?(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1.5`,title:`Login in progress, click to show the browser job`,onClick:()=>i(t.id),children:[(0,q.jsx)(Zd,{size:14,"aria-hidden":`true`}),`Waiting`]}):null,!t&&!s?(0,q.jsxs)(`button`,{className:`${Y(a?`primary`:`secondary`)} gap-1.5`,disabled:b,title:b?`Wait for the running test run to finish`:`Open a browser window to log in`,onClick:()=>void r({action:`signin`,profile:e.id,env:e.env}),children:[(0,q.jsx)(tf,{size:14,"aria-hidden":`true`}),`Login`]}):null,n?(0,q.jsxs)(`button`,{className:`${Y(`stop`)} gap-1.5`,disabled:v.isPending,title:`Forcibly close the browser opened by Visit`,onClick:()=>v.mutate(n.id),children:[(0,q.jsx)(bp,{size:14,"aria-hidden":`true`}),`Close`]}):s?(0,q.jsxs)(`button`,{className:`${Y()} gap-1.5`,title:e.startPath?`Open a logged-in browser window at ${e.startPath} in ${e.env}`:`Open a logged-in browser window at the site root in ${e.env}`,onClick:()=>void r({action:`visit`,profile:e.id,env:e.env}),children:[(0,q.jsx)(rd,{size:14,"aria-hidden":`true`}),`Visit`]}):null,!s&&l&&!e.verifying?(0,q.jsxs)(`button`,{className:`${Y()} gap-1.5`,title:`Check that the saved session is still logged in`,onClick:()=>h.mutate({profile:e.id,env:e.env}),children:[(0,q.jsx)(Hf,{size:14,"aria-hidden":`true`}),`Verify`]}):null,p.length>0?(0,q.jsx)(Oj,{label:`More actions for ${e.id}`,busy:e.verifying,busyLabel:`Checking the session of ${e.id}...`,items:p}):null]})})]},e.id)})})]})}),(0,q.jsxs)(`ul`,{className:`mt-3 space-y-1 text-xs text-ink-2`,children:[(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Login`}),` opens a browser window on this machine; you log in yourself, 2FA included. Nothing is automated. A card in the bottom-left corner of that window saves the session when you press Done.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Visit`}),` opens a logged-in browser window at the profile's start path, to look at the site as that profile.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Verify`}),` checks that a saved login still works, without changing anything: it opens the session check path and waits for the signal set under `,(0,q.jsx)(`b`,{children:`Edit`}),` → `,(0,q.jsx)(`b`,{children:`Session check`}),` (a redirect to the signed-out address, a 401/403, a signed-in-only element). A logged-in row keeps`,` `,(0,q.jsx)(`b`,{children:`Re-login`}),` and `,(0,q.jsx)(`b`,{children:`Logout`}),` under its "..." menu; `,(0,q.jsx)(`b`,{children:`Logout`}),` deletes the saved login.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Duplicate`}),` adds a second profile with the same settings under a new id; the saved login is not copied. `,(0,q.jsx)(`b`,{className:`text-ink`,children:`Delete`}),` removes the profile from`,` `,(0,q.jsx)(`code`,{className:`font-mono text-ink`,children:`profiles.yaml`}),` and deletes its saved login. Both sit in the "..." menu of every row.`]})]}),(0,q.jsx)(Tj,{profileIds:[...new Set(y.map(e=>e.id))],envs:e.data?.envs??[]}),a?(0,q.jsx)(vj,{profile:a,envs:e.data?.envs??[],onClose:()=>o(null),onSaved:e=>{o(null),m({text:e})}}):null,d?(0,q.jsx)(Aj,{profile:d,onClose:()=>f(null),onDone:()=>{let e=d.id;f(null),m({text:`Profile "${e}" logged out. Its saved login was deleted; log in again before visiting it or running its tests.`})}}):null,s?(0,q.jsx)(cj,{profile:s,profileIds:y.map(e=>e.id),onClose:()=>c(null),onDone:e=>{c(null),m({text:`Profile "${e}" was added as a copy. Log in to it before visiting it or running its tests.`})}}):null,l?(0,q.jsx)(jj,{profile:l,lastOne:y.length===1,onClose:()=>u(null),onDone:()=>{let e=l.id;u(null),m({text:`Profile "${e}" was deleted: its entry and its saved login are gone.`})}}):null,(0,q.jsx)(YA,{})]})}function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(null,arguments)}function Pj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fj=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Bj(e.state,n.from);return r.line?Lj(e):r.block?zj(e):!1};function Ij(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var Lj=Ij(Gj,0),Rj=Ij(Wj,0),zj=Ij((e,t)=>Wj(e,t,Uj(t)),0);function Bj(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var Vj=50;function Hj(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-Vj,r),o=e.sliceDoc(i,i+Vj),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=100?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+Vj),d=e.sliceDoc(i-Vj,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function Uj(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function Wj(e,t,n=t.selection.ranges){let r=n.map(e=>Bj(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>Hj(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function Gj(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=Bj(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var Kj=H.define(),qj=H.define(),Jj=u.define(),Yj=u.define({combine(e){return j(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Xj=w.define({create(){return hM.empty},update(e,t){let n=t.state.facet(Yj),r=t.annotation(Kj);if(r){let i=rM.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?iM(o,o.length,n.minDepth,i):uM(o,t.startState.selection),new hM(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(qj);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(f.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=rM.fromTransaction(t),o=t.annotation(f.time),s=t.annotation(f.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new hM(e.done.map(rM.fromJSON),e.undone.map(rM.fromJSON))}});function Zj(e={}){return[Xj,Yj.of(e),L.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?$j:e.inputType==`historyRedo`?eM:null;return n?(e.preventDefault(),n(t)):!1}})]}function Qj(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Xj,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var $j=Qj(0,!1),eM=Qj(1,!1),tM=Qj(0,!0),nM=Qj(1,!0),rM=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&N.fromJSON(t.changes),[],t.mapped&&Ge.fromJSON(t.mapped),t.startSelection&&W.fromJSON(t.startSelection),t.selectionsAfter.map(W.fromJSON))}static fromTransaction(t,n){let r=cM;for(let e of t.startState.facet(Jj)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,cM)}static selection(t){return new e(void 0,cM,void 0,void 0,t)}};function iM(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function aM(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function oM(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function sM(e,t){return e.length?t.length?e.concat(t):e:t}var cM=[],lM=200;function uM(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-lM));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),iM(e,e.length-1,1e9,n.setSelAfter(r)))}return[rM.selection([t])]}function dM(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function fM(e,t){if(!e.length)return e;let n=e.length,r=cM;for(;n;){let i=pM(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[rM.selection(r)]:cM}function pM(e,t,n){let r=sM(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):cM,n);if(!e.changes)return rM.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new rM(i,S.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var mM=/^(input\.type|delete)($|\.)/,hM=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||mM.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,aM(s.changes,t.changes))||r==`input.type.compose`)?iM(o,o.length-1,i.minDepth,new rM(t.changes.compose(s.changes),sM(S.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,cM)):iM(o,o.length,i.minDepth,t),new e(o,cM,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:cM;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&oM(a[a.length-1],t)?this:new e(uM(this.done,t),this.undone,n,r)}addMapping(t){return new e(fM(this.done,t),fM(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Kj.of({side:e,rest:dM(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?cM:r.slice(0,r.length-1);return i.mapped&&(n=fM(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Kj.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}return null}};hM.empty=new hM(cM,cM);var gM=[{key:`Mod-z`,run:$j,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:eM,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:eM,preventDefault:!0},{key:`Mod-u`,run:tM,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:nM,preventDefault:!0}];function _M(e,t){return W.create(e.ranges.map(t),e.mainIndex)}function vM(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function yM({state:e,dispatch:t},n){let r=_M(e.selection,n);return!r.eq(e.selection,!0)&&(t(vM(e,r)),!0)}function bM(e,t){return W.cursor(t?e.to:e.from)}function xM(e,t){return yM(e,n=>n.empty?e.moveByChar(n,t):bM(n,t))}function SM(e){return e.textDirectionAt(e.state.selection.main.head)==R.LTR}var CM=e=>xM(e,!SM(e)),wM=e=>xM(e,SM(e));function TM(e,t){return yM(e,n=>n.empty?e.moveByGroup(n,t):bM(n,t))}var EM=e=>TM(e,!SM(e)),DM=e=>TM(e,SM(e));typeof Intl<`u`&&Intl.Segmenter;function OM(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function kM(e,t,n){let r=d(e).resolveInner(t.head),i=n?I.closedBy:I.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;OM(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?x(e,r.from,1):x(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,W.cursor(s,n?-1:1)}var AM=e=>yM(e,t=>kM(e.state,t,!SM(e))),jM=e=>yM(e,t=>kM(e.state,t,SM(e)));function MM(e,t){return yM(e,n=>{if(!n.empty)return bM(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var NM=e=>MM(e,!1),PM=e=>MM(e,!0);function FM(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(L.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function IM(e,t){let n=FM(e),{state:r}=e,i=_M(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):bM(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=L.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(vM(r,i),{effects:a}),!0}var LM=e=>IM(e,!1),RM=e=>IM(e,!0);function zM(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=W.cursor(r.from+n))}return i}var BM=e=>yM(e,t=>zM(e,t,!0)),VM=e=>yM(e,t=>zM(e,t,!1)),HM=e=>yM(e,t=>zM(e,t,!SM(e))),UM=e=>yM(e,t=>zM(e,t,SM(e))),WM=e=>yM(e,t=>e.moveToLineBoundary(t,!1,!1)),GM=e=>yM(e,t=>e.moveToLineBoundary(t,!0,!1));function KM(e,t,n){let r=!1,i=_M(e.selection,t=>{let i=x(e,t.head,-1)||x(e,t.head,1)||t.head>0&&x(e,t.head-1,1)||t.head<e.doc.length&&x(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?W.range(t.anchor,a):W.cursor(a)});return r?(t(vM(e,i)),!0):!1}var qM=({state:e,dispatch:t})=>KM(e,t,!1);function JM(e,t,n){let r=_M(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=W.range(e.head,e.anchor));let r=n(e);return W.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(vM(e.state,r)),!0)}function YM(e,t){return JM(e,t,n=>e.moveByChar(n,t))}var XM=e=>YM(e,!SM(e)),ZM=e=>YM(e,SM(e));function QM(e,t){return JM(e,t,n=>e.moveByGroup(n,t))}var $M=e=>QM(e,!SM(e)),eN=e=>QM(e,SM(e)),tN=e=>{let t=!SM(e);return JM(e,t,n=>kM(e.state,n,t))},nN=e=>{let t=SM(e);return JM(e,t,n=>kM(e.state,n,t))};function rN(e,t){return JM(e,t,n=>e.moveVertically(n,t))}var iN=e=>rN(e,!1),aN=e=>rN(e,!0);function oN(e,t){return JM(e,t,n=>e.moveVertically(n,t,FM(e).height))}var sN=e=>oN(e,!1),cN=e=>oN(e,!0),lN=e=>JM(e,!0,t=>zM(e,t,!0)),uN=e=>JM(e,!1,t=>zM(e,t,!1)),dN=e=>{let t=!SM(e);return JM(e,t,n=>zM(e,n,t))},fN=e=>{let t=SM(e);return JM(e,t,n=>zM(e,n,t))},pN=e=>JM(e,!1,t=>W.cursor(e.lineBlockAt(t.head).from)),mN=e=>JM(e,!0,t=>W.cursor(e.lineBlockAt(t.head).to)),hN=({state:e,dispatch:t})=>(t(vM(e,{anchor:0})),!0),gN=({state:e,dispatch:t})=>(t(vM(e,{anchor:e.doc.length})),!0),_N=({state:e,dispatch:t})=>(t(vM(e,{anchor:e.selection.main.anchor,head:0})),!0),vN=({state:e,dispatch:t})=>(t(vM(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),yN=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),bN=({state:e,dispatch:t})=>{let n=zN(e).map(({from:t,to:n})=>W.undirectionalRange(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:W.create(n),userEvent:`select`})),!0},xN=({state:e,dispatch:t})=>{let n=_M(e.selection,t=>{let n=d(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return W.undirectionalRange(n.from,n.to)}return t});return!n.eq(e.selection)&&(t(vM(e,n)),!0)};function SN(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(vM(n,W.create(i,i.length-1))),!0)}var CN=e=>SN(e,!1),wN=e=>SN(e,!0),TN=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=W.create([n.main]):n.main.empty||(r=W.create([W.cursor(n.main.head)])),r?(t(vM(e,r)),!0):!1};function EN(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=DN(e,o,!1)):o>i&&(n=`delete.forward`,o=DN(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=DN(e,i,!1),a=DN(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:W.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?L.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function DN(e,t,n){if(e instanceof L)for(let r of e.state.facet(L.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var ON=(e,t,n)=>EN(e,r=>{let a=r.from,{state:o}=e,s=o.doc.lineAt(a),c,l;if(n&&!t&&a>s.from&&a<s.from+200&&!/[^ \t]/.test(c=s.text.slice(0,a-s.from))){if(c[c.length-1]==` `)return a-1;let e=Je(c,o.tabSize)%P(o)||P(o);for(let t=0;t<e&&c[c.length-1-t]==` `;t++)a--;l=a}else l=i(s.text,a-s.from,t,t)+s.from,l==a&&s.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,a-s.from))&&(l=i(s.text,l-s.from,!1,!1)+s.from);return l}),kN=e=>ON(e,!1,!0),AN=e=>ON(e,!0,!1),jN=(e,t)=>EN(e,n=>{let r=n.head,{state:a}=e,o=a.doc.lineAt(r),s=a.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let c=i(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),MN=e=>jN(e,!1),NN=e=>jN(e,!0),PN=e=>EN(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),FN=e=>EN(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),IN=e=>EN(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),LN=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:O.of([``,``])},range:W.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},RN=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),a=n==r.from?n-1:i(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:i(r.text,n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(a,n))},range:W.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function zN(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function BN(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of zN(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(W.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(W.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:W.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var VN=({state:e,dispatch:t})=>BN(e,t,!1),HN=({state:e,dispatch:t})=>BN(e,t,!0);function UN(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of zN(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var WN=({state:e,dispatch:t})=>UN(e,t,!1),GN=({state:e,dispatch:t})=>UN(e,t,!0),KN=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(zN(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=_M(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function qN(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=d(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(I.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var JN=XN(!1),YN=XN(!0);function XN(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&qN(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new Oe(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=l(s,r);for(c??=Je(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,xe(t,c)];return o&&u.push(xe(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:O.of(u)},range:W.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function ZN(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:W.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var QN=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Oe(e,{overrideIndentation:e=>n[e]??-1}),i=ZN(e,(t,i,a)=>{let o=l(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=xe(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},$N=({state:e,dispatch:n})=>!e.readOnly&&(n(e.update(ZN(e,(n,r)=>{r.push({from:n.from,insert:e.facet(t)})}),{userEvent:`input.indent`})),!0),eP=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(ZN(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=Je(r,e.tabSize),a=0,o=xe(e,Math.max(0,i-P(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),tP=e=>(e.setTabFocusMode(),!0),nP=[{key:`Ctrl-b`,run:CM,shift:XM,preventDefault:!0},{key:`Ctrl-f`,run:wM,shift:ZM},{key:`Ctrl-p`,run:NM,shift:iN},{key:`Ctrl-n`,run:PM,shift:aN},{key:`Ctrl-a`,run:WM,shift:pN},{key:`Ctrl-e`,run:GM,shift:mN},{key:`Ctrl-d`,run:AN},{key:`Ctrl-h`,run:kN},{key:`Ctrl-k`,run:PN},{key:`Ctrl-Alt-h`,run:MN},{key:`Ctrl-o`,run:LN},{key:`Ctrl-t`,run:RN},{key:`Ctrl-v`,run:RM}],rP=[{key:`ArrowLeft`,run:CM,shift:XM,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:EM,shift:$M,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:HM,shift:dN,preventDefault:!0},{key:`ArrowRight`,run:wM,shift:ZM,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:DM,shift:eN,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:UM,shift:fN,preventDefault:!0},{key:`ArrowUp`,run:NM,shift:iN,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:hN,shift:_N},{mac:`Ctrl-ArrowUp`,run:LM,shift:sN},{key:`ArrowDown`,run:PM,shift:aN,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:gN,shift:vN},{mac:`Ctrl-ArrowDown`,run:RM,shift:cN},{key:`PageUp`,run:LM,shift:sN},{key:`PageDown`,run:RM,shift:cN},{key:`Home`,run:VM,shift:uN,preventDefault:!0},{key:`Mod-Home`,run:hN,shift:_N},{key:`End`,run:BM,shift:lN,preventDefault:!0},{key:`Mod-End`,run:gN,shift:vN},{key:`Enter`,run:JN,shift:JN},{key:`Mod-a`,run:yN},{key:`Backspace`,run:kN,shift:kN,preventDefault:!0},{key:`Delete`,run:AN,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:MN,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:NN,preventDefault:!0},{mac:`Mod-Backspace`,run:FN,preventDefault:!0},{mac:`Mod-Delete`,run:IN,preventDefault:!0}].concat(nP.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),iP=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:AM,shift:tN},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:jM,shift:nN},{key:`Alt-ArrowUp`,run:VN},{key:`Shift-Alt-ArrowUp`,run:WN},{key:`Alt-ArrowDown`,run:HN},{key:`Shift-Alt-ArrowDown`,run:GN},{key:`Mod-Alt-ArrowUp`,run:CN},{key:`Mod-Alt-ArrowDown`,run:wN},{key:`Escape`,run:TN},{key:`Mod-Enter`,run:YN},{key:`Alt-l`,mac:`Ctrl-l`,run:bN},{key:`Mod-i`,run:xN,preventDefault:!0},{key:`Mod-[`,run:eP},{key:`Mod-]`,run:$N},{key:`Mod-Alt-\\`,run:QN},{key:`Shift-Mod-k`,run:KN},{key:`Shift-Mod-\\`,run:qM},{key:`Mod-/`,run:Fj},{key:`Alt-A`,mac:`Ctrl-A`,run:Rj},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:tP}].concat(rP),aP={key:`Tab`,run:$N,shift:eP},oP=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,sP=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(oP(e)):oP,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return g(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=te(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=b(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(sP.prototype[Symbol.iterator]=function(){return this});var cP={from:-1,to:-1,match:/.*/.exec(``),precise:!0},lP=`gm`+(/x/.unicode==null?``:`u`),uP=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=cP,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new pP(e,t,n,r,i);this.re=new RegExp(t,lP+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=hP(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=hP(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},dP=new WeakMap,fP=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=dP.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return dP.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),dP.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},pP=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=cP,this.matchPos=hP(e,r),this.re=new RegExp(t,lP+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=fP.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=hP(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=fP.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(uP.prototype[Symbol.iterator]=pP.prototype[Symbol.iterator]=function(){return this});function mP(e){try{return new RegExp(e,lP),!0}catch{return!1}}function hP(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var gP=e=>{let t=Pe(e,`cm-goto-line`);if(t){let e=t.dom.querySelector(`input[type=text]`);return e&&e.select(),!0}let{state:n}=e,r=String(n.doc.lineAt(e.state.selection.main.head).number),{close:i,result:a}=me(e,{class:`cm-goto-line`,label:n.phrase(`Go to line`),input:{type:`text`,name:`line`,value:r},focus:!0,submitLabel:n.phrase(`go`)});return a.then(t=>{let r=t&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.elements.line.value);if(!r){e.dispatch({effects:i});return}let a=n.doc.lineAt(n.selection.main.head),[,o,s,c,l]=r,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/n.doc.lines),d=Math.round(n.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=n.doc.line(Math.max(1,Math.min(n.doc.lines,d))),p=W.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[i,L.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},_P={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},vP=u.define({combine(e){return j(e,_P,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function yP(e){let t=[TP,wP];return e&&t.push(vP.of(e)),t}var bP=_.mark({class:`cm-selectionMatch`}),xP=_.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function SP(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=o.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=o.Word)}function CP(e,t,n,r){return e(t.sliceDoc(n,n+1))==o.Word&&e(t.sliceDoc(r-1,r))==o.Word}var wP=z.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(vP),{state:n}=e,r=n.selection;if(r.ranges.length>1)return _.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return _.none;let e=n.wordAt(i.head);if(!e)return _.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return _.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(SP(o,n,i.from,i.to)&&CP(o,n,i.from,i.to)))return _.none}else if(a=n.sliceDoc(i.from,i.to),!a)return _.none}let s=[];for(let r of e.visibleRanges){let e=new sP(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||SP(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(xP.range(r,a)):(r>=i.to||a<=i.from)&&s.push(bP.range(r,a)),s.length>t.maxMatches))return _.none}}return _.set(s)}},{decorations:e=>e.decorations}),TP=L.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),EP=({state:e,dispatch:t})=>{let{selection:n}=e,r=W.create(n.ranges.map(t=>e.wordAt(t.head)||W.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)};function DP(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new sP(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new sP(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var OP=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return EP({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=DP(e,r);return i?(t(e.update({selection:e.selection.addRange(W.range(i.from,i.to),!1),effects:L.scrollIntoView(i.to)})),!0):!1},kP=u.define({combine(e){return j(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new lF(e),scrollToMatch:e=>L.scrollIntoView(e)})}}),AP=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||mP(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
|
|
200
|
+
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new VP(this):new FP(this)}getCursor(e,t=0,n){let r=e.doc?e:ee.create({doc:e});return n??=r.doc.length,this.regexp?LP(this,r,t,n):NP(this,r,t,n)}},jP=class{constructor(e){this.spec=e}};function MP(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function NP(e,t,n,r){let i;return e.wholeWord&&(i=PP(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=MP(e.test,t,i)),new sP(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function PP(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(RP(i,n-a))!=o.Word||t(zP(i,n-a))!=o.Word)&&(t(zP(i,r-a))!=o.Word||t(RP(i,r-a))!=o.Word))}var FP=class extends jP{constructor(e){super(e)}nextMatch(e,t,n){let r=NP(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=NP(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=NP(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=NP(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=NP(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function IP(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function LP(e,t,n,r){let i;return e.wholeWord&&(i=BP(t.charCategorizer(t.selection.main.head))),e.test&&(i=IP(e.test,t,i)),new uP(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function RP(e,t){return e.slice(i(e,t,!1),t)}function zP(e,t){return e.slice(t,i(e,t))}function BP(e){return(t,n,r)=>!r[0].length||(e(RP(r.input,r.index))!=o.Word||e(zP(r.input,r.index))!=o.Word)&&(e(zP(r.input,r.index+r[0].length))!=o.Word||e(RP(r.input,r.index+r[0].length))!=o.Word)}var VP=class extends jP{nextMatch(e,t,n){let r=LP(this.spec,e,n,e.doc.length).next();return r.done&&(r=LP(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=LP(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=LP(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=LP(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},HP=S.define(),UP=S.define(),WP=w.define({create(e){return new GP(rF(e).create(),null)},update(e,t){for(let n of t.effects)n.is(HP)?e=new GP(n.value.create(),e.panel):n.is(UP)&&(e=new GP(e.query,n.value?nF:null));return e},provide:e=>V.from(e,e=>e.panel)}),GP=class{constructor(e,t){this.query=e,this.panel=t}},KP=_.mark({class:`cm-searchMatch`}),qP=_.mark({class:`cm-searchMatch cm-searchMatch-selected`}),JP=z.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(WP))}update(e){let t=e.state.field(WP);(t!=e.startState.field(WP)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return _.none;let{view:r}=this,i=new n;for(let t=0,n=r.visibleRanges,a=n.length;t<a;t++){let{from:o,to:s}=n[t];for(;t<a-1&&s>n[t+1].from-500;)s=n[++t].to;e.highlight(r.state,o,s,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?qP:KP)})}return i.finish()}},{decorations:e=>e.decorations});function YP(e){return t=>{let n=t.state.field(WP,!1);return n&&n.query.spec.valid?e(t,n):oF(t)}}var XP=YP((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=W.single(r.from,r.to),a=e.state.facet(kP);return e.dispatch({selection:i,effects:[pF(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),aF(e),!0}),ZP=YP((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=W.single(i.from,i.to),o=e.state.facet(kP);return e.dispatch({selection:a,effects:[pF(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),aF(e),!0}),QP=YP((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:W.create(n.map(e=>W.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),$P=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new sP(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(W.range(t.value.from,t.value.to))}return t(e.update({selection:W.create(a,o),userEvent:`select.search.matches`})),!0},eF=YP((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(L.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=W.single(o.from,o.to).map(d),u.push(pF(e,o)),u.push(n.facet(kP).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),tF=YP((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:L.announce.of(r),userEvent:`input.replace.all`}),!0});function nF(e){return e.state.facet(kP).createPanel(e)}function rF(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(kP);return new AP({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function iF(e){let t=ve(e,nF);return t&&t.dom.querySelector(`[main-field]`)}function aF(e){let t=iF(e);t&&t==e.root.activeElement&&t.select()}var oF=e=>{let t=e.state.field(WP,!1);if(t&&t.panel){let n=iF(e);if(n&&n!=e.root.activeElement){let r=rF(e.state,t.query.spec);r.valid&&e.dispatch({effects:HP.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[UP.of(!0),t?HP.of(rF(e.state,t.query.spec)):S.appendConfig.of(hF)]});return!0},sF=e=>{let t=e.state.field(WP,!1);if(!t||!t.panel)return!1;let n=ve(e,nF);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:UP.of(!1)}),!0},cF=[{key:`Mod-f`,run:oF,scope:`editor search-panel`},{key:`F3`,run:XP,shift:ZP,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:XP,shift:ZP,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:sF,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:$P},{key:`Mod-Alt-g`,run:gP},{key:`Mod-d`,run:OP,preventDefault:!0}],lF=class{constructor(e){this.view=e;let t=this.query=e.state.field(WP).query.spec;this.commit=this.commit.bind(this),this.searchField=qe(`input`,{value:t.search,placeholder:uF(e,`Find`),"aria-label":uF(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=qe(`input`,{value:t.replace,placeholder:uF(e,`Replace`),"aria-label":uF(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=qe(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=qe(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=qe(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return qe(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=qe(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>XP(e),[uF(e,`next`)]),n(`prev`,()=>ZP(e),[uF(e,`previous`)]),n(`select`,()=>QP(e),[uF(e,`all`)]),qe(`label`,null,[this.caseField,uF(e,`match case`)]),qe(`label`,null,[this.reField,uF(e,`regexp`)]),qe(`label`,null,[this.wordField,uF(e,`by word`)]),...e.state.readOnly?[]:[qe(`br`),this.replaceField,n(`replace`,()=>eF(e),[uF(e,`replace`)]),n(`replaceAll`,()=>tF(e),[uF(e,`replace all`)])],qe(`button`,{name:`close`,onclick:()=>sF(e),"aria-label":uF(e,`close`),type:`button`},[`×`])])}commit(){let e=new AP({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:HP.of(e)}))}keydown(e){ge(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ZP:XP)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),eF(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(HP)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(kP).top}};function uF(e,t){return e.state.phrase(t)}var dF=30,fF=/[\s\.,:;?!]/;function pF(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-dF),o=Math.min(i,n+dF),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<dF;e++)if(!fF.test(s[e+1])&&fF.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-dF;e--)if(!fF.test(s[e-1])&&fF.test(s[e])){s=s.slice(0,e);break}}return L.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var mF=L.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),hF=[WP,E.low(JP),mF],gF=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=d(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(CF(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function _F(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function vF(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=_F(t)+_F(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function yF(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:vF(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function bF(e,t){return n=>{for(let t=d(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var xF=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function SF(e){return e.selection.main.from}function CF(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var wF=H.define();function TF(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:W.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var EF=new WeakMap;function DF(e){if(!Array.isArray(e))return e;let t=EF.get(e);return t||EF.set(e,t=yF(e)),t}var OF=S.define(),kF=S.define(),AF=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=g(e,t),r=b(n);this.chars.push(n);let i=e.slice(t,t+r),a=i.toUpperCase();this.folded.push(g(a==i?i.toLowerCase():a,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:a}=this;if(t.length==1){let r=g(e,0),i=b(r),a=i==e.length?0:-100;if(r!=t[0]){if(r==n[0])a+=-200;else return null}return this.ret(a,[0,i])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,c=0;if(o<0){for(let i=0,a=Math.min(e.length,200);i<a&&c<s;){let a=g(e,i);(a==t[c]||a==n[c])&&(r[c++]=i),i+=b(a)}if(c<s)return null}let l=0,u=0,d=!1,f=0,p=-1,m=-1,h=/[a-z]/.test(e),_=!0;for(let r=0,c=Math.min(e.length,200),v=0;r<c&&u<s;){let c=g(e,r);o<0&&(l<s&&c==t[l]&&(i[l++]=r),f<s&&(c==t[f]||c==n[f]?(f==0&&(p=r),m=r+1,f++):f=0));let y,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=te(c))==y.toLowerCase()?y==y.toUpperCase()?0:2:1;(!r||x==1&&h||v==0&&x!=0)&&(t[u]==c||n[u]==c&&(d=!0)?a[u++]=r:a.length&&(_=!1)),v=x,r+=b(c)}return u==s&&a[0]==0&&_?this.result(-100+(d?-200:0),a,e):f==s&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):f==s?this.ret(-900-e.length,[p,m]):u==s?this.result(-100+(d?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?b(g(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}},jF=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},MF=u.define({combine(e){return j(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:PF,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>NF(e(n),t(n)),optionClass:(e,t)=>n=>NF(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function NF(e,t){return e?t?e+` `+t:e:t}function PF(e,t,n,r,i,a){let o=e.textDirection==R.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,_=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/_}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var FF=S.define();function IF(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function LF(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}var RF=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(MF);this.optionContent=IF(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=LF(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:FF.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(MF).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:kF.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;n.open&&n.open.options==r||(this.range=LF(r.length,i,e.state.facet(MF).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=LF(t.options.length,t.selected,this.view.state.facet(MF).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>fe(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&BF(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(MF).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0)){if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function zF(e,t){return n=>new RF(n,e,t)}function BF(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function VF(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function HF(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(MF);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new xF(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new jF(n):new AF(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new xF(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):VF(e.completion)>VF(c)&&(s[s.length-1]=e),c=e.completion}return s}var UF=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,JF(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=HF(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(MF).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,JF(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:rI,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},WF=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(YF,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(MF),i=(r.override||n.languageDataAt(`autocomplete`,SF(n)).map(DF)).map(e=>(this.active.find(t=>t.source==e)||new ZF(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(eI));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!GF(i,this.active)||o?a=UF.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new ZF(e.source,0):e));for(let e of t.effects)e.is(FF)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?KF:qF}};function GF(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var KF={"aria-autocomplete":`list`},qF={};function JF(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var YF=[];function XF(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(wF);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var ZF=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=XF(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(OF))i=new e(i.source,1,n.value);else if(n.is(kF))i=new e(i.source,0);else if(n.is(eI))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(SF(e.state))}},QF=class e extends ZF{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=SF(t.state);if(o>a||!r||n&2&&(SF(t.startState)==this.from||o<this.limit))return new ZF(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return $F(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new gF(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??SF(t.state)):new ZF(this.source,1,this.explicit)}map(t){if(t.empty)return this;let n=this.result.map?this.result.map(this.result,t):this.result;return n?new e(this.source,this.explicit,t.mapPos(this.limit),n,t.mapPos(this.from),t.mapPos(this.to,1)):new ZF(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function $F(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):CF(e,!0).test(i)}var eI=S.define({map(e,t){return e.map(e=>e.map(t))}}),tI=w.define({create(){return WF.start()},update(e,t){return e.update(t)},provide:e=>[He.from(e,e=>e.tooltip),L.contentAttributes.from(e,e=>e.attrs)]});function nI(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(tI).active.find(e=>e.source==t.source);return r instanceof QF&&(typeof n==`string`?e.dispatch({...TF(e.state,n,r.from,r.to),annotations:wF.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}var rI=zF(tI,nI);function iI(e,t=`option`){return n=>{let r=n.state.field(tI,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(MF).interactionDelay)return!1;let i=1,a;t==`page`&&(a=ie(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:FF.of(s)}),!0}}var aI=e=>{let t=e.state.field(tI,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(MF).interactionDelay?!1:nI(e,t.open.options[t.open.selected])},oI=e=>e.state.field(tI,!1)?(e.dispatch({effects:OF.of(!0)}),!0):!1,sI=e=>{let t=e.state.field(tI,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:kF.of(null)}),!0)},cI=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},lI=50,uI=1e3,dI=z.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(tI).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(tI),n=e.state.facet(MF);if(!e.selectionSet&&!e.docChanged&&e.startState.field(tI)==t)return;let r=e.transactions.some(e=>{let t=XF(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>lI&&Date.now()-n.time>uI){for(let e of n.context.abortListeners)try{e()}catch(e){fe(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(OF)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(tI);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(MF).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new gF(t,SF(t),e.explicit,this.view),r=new cI(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:kF.of(null)}),fe(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(MF).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(MF),n=this.view.state.field(tI);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=SF(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new QF(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending){if(i.done==null){let n=new ZF(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:eI.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(tI,!1);if(t&&t.tooltip&&this.view.state.facet(MF).closeOnBlur){let n=t.open&&ie(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:kF.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:OF.of(!1)}),20),this.composing=0}}}),fI=typeof navigator==`object`&&/Win/.test(navigator.platform),pI=E.highest(L.domEventHandlers({keydown(e,t){let n=t.state.field(tI,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||!e.key||e.key.length>1||e.ctrlKey&&!(fI&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&nI(t,r),!1}})),mI=L.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`,cursor:`pointer`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),hI=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},gI=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,c.TrackDel),r=t.mapPos(this.to,1,c.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},_I=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,s=/^\t*/.exec(a)[0].length;for(let n=0;n<s;n++)r+=e.facet(t);i.push(n+r.length-s),a=r+a.slice(s)}r.push(a),n+=a.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new gI(e.field,i[e.line]+e.from,i[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1;t===0&&(t=1e9);let c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new hI(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},vI=_.widget({widget:new class extends k{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),yI=_.mark({class:`cm-snippetField`}),bI=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=_.set(e.map(e=>(e.from==e.to?vI:yI).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},xI=S.define({map(e,t){return e&&e.map(t)}}),SI=S.define(),CI=w.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(xI))return n.value;if(n.is(SI)&&e)return new bI(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>L.decorations.from(e,e=>e?e.deco:_.none)});function wI(e,t){return W.create(e.filter(e=>e.field==t).map(e=>W.range(e.from,e.to)))}function TI(e){let t=_I.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:O.of(a)},scrollIntoView:!0,annotations:n?[wF.of(n),f.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=wI(o,0)),o.some(e=>e.field>0)){let t=new bI(o,0),n=c.effects=[xI.of(t)];e.state.field(CI,!1)===void 0&&n.push(S.appendConfig.of([CI,kI,jI,mI]))}e.dispatch(e.state.update(c))}}function EI(e){return({state:t,dispatch:n})=>{let r=t.field(CI,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:wI(r.ranges,i),effects:xI.of(a?null:new bI(r.ranges,i)),scrollIntoView:!0})),!0}}var DI=[{key:`Tab`,run:EI(1),shift:EI(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(CI,!1)?(t(e.update({effects:xI.of(null)})),!0):!1}],OI=u.define({combine(e){return e.length?e[0]:DI}}),kI=E.highest(Be.compute([OI],e=>e.facet(OI)));function AI(e,t){return{...t,apply:TI(e)}}var jI=L.domEventHandlers({mousedown(e,t){let n=t.state.field(CI,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:wI(n.ranges,i.field),effects:xI.of(n.ranges.some(e=>e.field>i.field)?new bI(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),MI={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},NI=S.define({map(e,t){return t.mapPos(e,-1,c.TrackAfter)??void 0}}),PI=new class extends be{};PI.startSide=1,PI.endSide=-1;var FI=w.define({create(){return Se.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(NI)&&(e=e.update({add:[PI.range(n.value,n.value+1)]}));return e}});function II(){return[VI,FI]}var LI=`()[]{}<>«»»«[]{}`;function RI(e){for(let t=0;t<16;t+=2)if(LI.charCodeAt(t)==e)return LI.charAt(t+1);return te(e<128?e:e+1)}function zI(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||MI}var BI=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),VI=L.inputHandler.of((e,t,n,r)=>{if((BI?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&b(g(r,0))==1||t!=i.from||n!=i.to)return!1;let a=UI(e.state,r);return a?(e.dispatch(a),!0):!1}),HI=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=zI(e,e.selection.main.head).brackets||MI.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=KI(e.doc,t.head);for(let i of n)if(i==r&&GI(e.doc,t.head)==RI(g(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:W.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function UI(e,t){let n=zI(e,e.selection.main.head),r=n.brackets||MI.brackets;for(let i of r){let a=RI(g(i,0));if(t==i)return a==i?YI(e,i,r.indexOf(i+i+i)>-1,n):qI(e,i,a,n.before||MI.before);if(t==a&&WI(e,e.selection.main.from))return JI(e,i,a)}return null}function WI(e,t){let n=!1;return e.field(FI).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function GI(e,t){let n=e.sliceString(t,t+2);return n.slice(0,b(g(n,0)))}function KI(e,t){let n=e.sliceString(t-2,t);return b(g(n,0))==n.length?n:n.slice(1)}function qI(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:NI.of(a.to+t.length),range:W.range(a.anchor+t.length,a.head+t.length)};let o=GI(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:NI.of(a.head+t.length),range:W.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function JI(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&GI(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:W.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function YI(e,t,n,r){let i=r.stringPrefixes||MI.stringPrefixes,a=null,s=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:NI.of(r.to+t.length),range:W.range(r.anchor+t.length,r.head+t.length)};let s=r.head,c=GI(e.doc,s),l;if(c==t){if(XI(e,s))return{changes:{insert:t+t,from:s},effects:NI.of(s+t.length),range:W.cursor(s+t.length)};if(WI(e,s)){let r=n&&e.sliceDoc(s,s+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+r.length,insert:r},range:W.cursor(s+r.length)}}}else if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(l=QI(e,s-2*t.length,i))>-1&&XI(e,l))return{changes:{insert:t+t+t+t,from:s},effects:NI.of(s+t.length),range:W.cursor(s+t.length)};else if(e.charCategorizer(s)(c)!=o.Word&&QI(e,s,i)>-1&&!ZI(e,s,t,i))return{changes:{insert:t+t,from:s},effects:NI.of(s+t.length),range:W.cursor(s+t.length)};return{range:a=r}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:`input.type`})}function XI(e,t){let n=d(e).resolveInner(t+1);return n.parent&&n.from==t}function ZI(e,t,n,r){let i=d(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function QI(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=o.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=o.Word)return n}return-1}function $I(e={}){return[pI,tI,MF.of(e),dI,tL,mI]}var eL=[{key:`Ctrl-Space`,run:oI},{mac:"Alt-`",run:oI},{mac:`Alt-i`,run:oI},{key:`Escape`,run:sI},{key:`ArrowDown`,run:iI(!0)},{key:`ArrowUp`,run:iI(!1)},{key:`PageDown`,run:iI(!0,`page`)},{key:`PageUp`,run:iI(!1,`page`)},{key:`Enter`,run:aI}],tL=E.highest(Be.computeN([MF],e=>e.facet(MF).defaultKeymap?[eL]:[])),nL=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},rL=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,r,i){let a=i.facet(_L).markerFilter;a&&(t=a(t,i));let o=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new n,c=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let e=0;;){let t=e==o.length?null:o[e];if(!t&&!c.length)break;let n,r;if(c.length)n=l,r=c.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,c.push(t),e++}for(;e<o.length;){let t=o[e];if(t.from==n&&(t.to>t.from||t.to==n))c.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(c.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let a=OL(c);if(i)s.add(n,n,_.widget({widget:new xL(a),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);s.add(n,r,_.mark({class:`cm-lintRange cm-lintRange-`+a+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<c.length;e++)c[e].to<=l&&c.splice(e--,1)}let p=s.finish();return new e(p,r,iL(p))}};function iL(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0)){if(!r)r=new nL(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new nL(r.from,n,r.diagnostic)}}),r}function aL(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(_L).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(sL))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function oL(e,t){return e.field(uL,!1)?t:t.concat(S.appendConfig.of(AL))}var sL=S.define(),cL=S.define(),lL=S.define(),uL=w.define({create(){return new rL(_.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=iL(n,e.selected.diagnostic,i)||iL(n,null,i)}!n.size&&i&&t.state.facet(_L).autoPanel&&(i=null),e=new rL(n,i,r)}for(let n of t.effects)if(n.is(sL)){let r=t.state.facet(_L).autoPanel?n.value.length?CL.open:null:e.panel;e=rL.init(n.value,r,t.state)}else n.is(cL)?e=new rL(e.diagnostics,n.value?CL.open:null,e.selected):n.is(lL)&&(e=new rL(e.diagnostics,e.panel,n.value));return e},provide:e=>[V.from(e,e=>e.panel),L.decorations.from(e,e=>e.diagnostics)]}),dL=_.mark({class:`cm-lintRange cm-lintRange-active`});function fL(e,t,n){let{diagnostics:r}=e.state.field(uL),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(_L).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:!0,create(){return{dom:pL(e,i)}}}:null}function pL(e,t){return qe(`ul`,{class:`cm-tooltip-lint`},t.map(t=>bL(e,t,!1)))}var mL=e=>{let t=e.state.field(uL,!1);t&&t.panel||e.dispatch({effects:oL(e.state,[cL.of(!0)])});let n=ve(e,CL.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},hL=e=>{let t=e.state.field(uL,!1);return!t||!t.panel?!1:(e.dispatch({effects:cL.of(!1)}),!0)},gL=[{key:`Mod-Shift-m`,run:mL,preventDefault:!0},{key:`F8`,run:t=>{let n=t.state.field(uL,!1);if(!n)return!1;let r=t.state.selection.main,i=iL(n.diagnostics,null,r.to+1);return!i&&(i=iL(n.diagnostics,null,0),!i||i.from==r.from&&i.to==r.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),e(t,i.from,1,{tooltip:kL,until:e=>e.docChanged||e.newSelection.main.head<i.from||e.newSelection.main.head>i.to}),!0)}}],_L=u.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...j(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:vL,tooltipFilter:vL,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function vL(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function yL(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function bL(e,t,n){let r=n?yL(t.actions):[];return qe(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},qe(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=iL(e.state.field(uL).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),qe(`u`,s.slice(c,c+1)),s.slice(c+1)],u=n.markClass?` `+n.markClass:``;return qe(`button`,{type:`button`,class:`cm-diagnosticAction`+u,onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&qe(`div`,{class:`cm-diagnosticSource`},t.source))}var xL=class extends k{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return qe(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},SL=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=bL(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},CL=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)hL(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=yL(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=iL(this.view.state.field(uL).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=qe(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=qe(`div`,{class:`cm-panel-lint`},this.list,qe(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>hL(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(uL).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(uL),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new SL(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new SL(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=iL(this.view.state.field(uL).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:lL.of(t)})}static open(t){return new e(t)}};function wL(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function TL(e){return wL(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var EL=L.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:TL(`#f11`)},".cm-lintRange-warning":{backgroundImage:TL(`orange`)},".cm-lintRange-info":{backgroundImage:TL(`#999`)},".cm-lintRange-hint":{backgroundImage:TL(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function DL(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function OL(e){let t=`hint`,n=1;for(let r of e){let e=DL(r.severity);e>n&&(n=e,t=r.severity)}return t}var kL=Ce(fL,{hideOn:aL}),AL=[uL,L.decorations.compute([uL],e=>{let{selected:t,panel:n}=e.field(uL);return!t||!n||t.from==t.to?_.none:_.set([dL.range(t.from,t.to)])}),kL,EL],jL=function(e){e===void 0&&(e={});var n=e.crosshairCursor,r=n!==void 0&&n,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(HI)),e.defaultKeymap!==!1&&(i=i.concat(iP)),e.searchKeymap!==!1&&(i=i.concat(cF)),e.historyKeymap!==!1&&(i=i.concat(gM)),e.foldKeymap!==!1&&(i=i.concat(M)),e.completionKeymap!==!1&&(i=i.concat(eL)),e.lintKeymap!==!1&&(i=i.concat(gL));var a=[];return e.lineNumbers!==!1&&a.push(le()),e.highlightActiveLineGutter!==!1&&a.push(Ie()),e.highlightSpecialChars!==!1&&a.push(se()),e.history!==!1&&a.push(Zj()),e.foldGutter!==!1&&a.push(ae()),e.drawSelection!==!1&&a.push(Re()),e.dropCursor!==!1&&a.push(De()),e.allowMultipleSelections!==!1&&a.push(ee.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&a.push(T()),e.syntaxHighlighting!==!1&&a.push(D(pe,{fallback:!0})),e.bracketMatching!==!1&&a.push(Ae()),e.closeBrackets!==!1&&a.push(II()),e.autocompletion!==!1&&a.push($I()),e.rectangularSelection!==!1&&a.push(Te()),r!==!1&&a.push(ue()),e.highlightActiveLine!==!1&&a.push(ke()),e.highlightSelectionMatches!==!1&&a.push(yP()),e.tabSize&&typeof e.tabSize==`number`&&a.push(t.of(` `.repeat(e.tabSize))),a.concat([Be.of(i.flat())]).filter(Boolean)},ML=`#e5c07b`,NL=`#e06c75`,PL=`#56b6c2`,FL=`#ffffff`,IL=`#abb2bf`,LL=`#7d8799`,RL=`#61afef`,zL=`#98c379`,BL=`#d19a66`,VL=`#c678dd`,HL=`#21252b`,UL=`#2c313a`,WL=`#282c34`,GL=`#353a42`,KL=`#3E4451`,qL=`#528bff`,JL=L.theme({"&":{color:IL,backgroundColor:WL},".cm-content":{caretColor:qL},".cm-cursor, .cm-dropCursor":{borderLeftColor:qL},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:KL},".cm-panels":{backgroundColor:HL,color:IL},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid #457dff`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`#6199ff2f`},".cm-activeLine":{backgroundColor:`#6699ff0b`},".cm-selectionMatch":{backgroundColor:`#aafe661a`},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bad0f847`},".cm-gutters":{backgroundColor:WL,color:LL,border:`none`},".cm-activeLineGutter":{backgroundColor:UL},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:GL},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:GL,borderBottomColor:GL},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:UL,color:IL}}},{dark:!0}),YL=re.define([{tag:G.keyword,color:VL},{tag:[G.name,G.deleted,G.character,G.propertyName,G.macroName],color:NL},{tag:[G.function(G.variableName),G.labelName],color:RL},{tag:[G.color,G.constant(G.name),G.standard(G.name)],color:BL},{tag:[G.definition(G.name),G.separator],color:IL},{tag:[G.typeName,G.className,G.number,G.changed,G.annotation,G.modifier,G.self,G.namespace],color:ML},{tag:[G.operator,G.operatorKeyword,G.url,G.escape,G.regexp,G.link,G.special(G.string)],color:PL},{tag:[G.meta,G.comment],color:LL},{tag:G.strong,fontWeight:`bold`},{tag:G.emphasis,fontStyle:`italic`},{tag:G.strikethrough,textDecoration:`line-through`},{tag:G.link,color:LL,textDecoration:`underline`},{tag:G.heading,fontWeight:`bold`,color:NL},{tag:[G.atom,G.bool,G.special(G.variableName)],color:BL},{tag:[G.processingInstruction,G.string,G.inserted],color:zL},{tag:G.invalid,color:FL}]),XL=[JL,D(YL)],ZL=L.theme({"&":{backgroundColor:`#fff`}},{dark:!1}),QL=function(e){e===void 0&&(e={});var t=e,n=t.indentWithTab,r=n===void 0||n,i=t.editable,a=i===void 0||i,o=t.readOnly,s=o!==void 0&&o,c=t.theme,l=c===void 0?`light`:c,u=t.placeholder,d=u===void 0?``:u,f=t.basicSetup,p=f===void 0||f,m=[];switch(r&&m.unshift(Be.of([aP])),p&&(typeof p==`boolean`?m.unshift(jL()):m.unshift(jL(p))),d&&m.unshift(je(d)),l){case`light`:m.push(ZL);break;case`dark`:m.push(XL);break;case`none`:break;default:m.push(l)}return a===!1&&m.push(L.editable.of(!1)),s&&m.push(ee.readOnly.of(!0)),[...m]},$L=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}),eR=class{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`TimeoutLatch callback error:`,e)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}},tR=class{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}},nR=null,rR=()=>typeof window>`u`?new tR:(nR||=new tR,nR),iR=L.theme({"& .cm-scroller":{height:`100% !important`}}),aR=null,oR=null;function sR(e,t,n,r,i,a){if(!e&&!t&&!n&&!r&&!i&&!a)return null;var o=JSON.stringify({height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:a});return o===aR||(aR=o,oR=L.theme({"&":{height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:a}})),oR}var cR=H.define(),lR=200,uR=[];function dR(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,a=e.onCreateEditor,o=e.onUpdate,s=e.extensions,c=s===void 0?uR:s,l=e.autoFocus,u=e.theme,d=u===void 0?`light`:u,f=e.height,p=f===void 0?null:f,m=e.minHeight,h=m===void 0?null:m,g=e.maxHeight,_=g===void 0?null:g,v=e.width,y=v===void 0?null:v,b=e.minWidth,x=b===void 0?null:b,C=e.maxWidth,w=C===void 0?null:C,T=e.placeholder,E=T===void 0?``:T,D=e.editable,O=D===void 0||D,k=e.readOnly,A=k!==void 0&&k,j=e.indentWithTab,M=j===void 0||j,N=e.basicSetup,P=N===void 0||N,F=e.root,I=e.initialState,te=(0,K.useState)(),ne=te[0],R=te[1],z=(0,K.useState)(),B=z[0],V=z[1],re=(0,K.useState)(),ie=re[0],ae=re[1],H=(0,K.useState)(()=>({current:null}))[0],oe=(0,K.useState)(()=>({current:null}))[0],se=sR(p,h,_,y,x,w),ce=L.updateListener.of(e=>{e.docChanged&&typeof r==`function`&&!e.transactions.some(e=>e.annotation(cR))&&(H.current?H.current.reset():(H.current=new eR(()=>{if(oe.current){var e=oe.current;oe.current=null,e()}H.current=null},lR),rR().add(H.current)),r(e.state.doc.toString(),e)),i&&i($L(e))}),le=QL({theme:d,editable:O,readOnly:A,placeholder:E,indentWithTab:M,basicSetup:P}),ue=[ce,...se?[se]:[],iR,...le];return o&&typeof o==`function`&&ue.push(L.updateListener.of(o)),ue=ue.concat(c),(0,K.useLayoutEffect)(()=>{if(ne&&!ie){var e={doc:t,selection:n,extensions:ue},r=I?ee.fromJSON(I.json,e,I.fields):ee.create(e);if(ae(r),!B){var i=new L({state:r,parent:ne,root:F});V(i),a&&a(i,r)}}return()=>{B&&(ae(void 0),V(void 0))}},[ne,ie]),(0,K.useEffect)(()=>{e.container&&R(e.container)},[e.container]),(0,K.useEffect)(()=>()=>{B&&(B.destroy(),V(void 0)),H.current&&=(H.current.cancel(),null)},[B]),(0,K.useEffect)(()=>{l&&B&&B.focus()},[l,B]),(0,K.useEffect)(()=>{B&&B.dispatch({effects:S.reconfigure.of(ue)})},[d,c,p,h,_,y,x,w,E,O,A,M,P,r,o]),(0,K.useEffect)(()=>{if(t!==void 0){var e=B?B.state.doc.toString():``;if(B&&t!==e){var n=H.current&&!H.current.isDone,r=()=>{B&&t!==B.state.doc.toString()&&B.dispatch({changes:{from:0,to:B.state.doc.toString().length,insert:t||``},annotations:[cR.of(!0)]})};n?oe.current=r:r()}}},[t,B]),{state:ie,setState:ae,view:B,setView:V,container:ne,setContainer:R}}var fR=[`className`,`value`,`selection`,`extensions`,`onChange`,`onStatistics`,`onCreateEditor`,`onUpdate`,`autoFocus`,`theme`,`height`,`minHeight`,`maxHeight`,`width`,`minWidth`,`maxWidth`,`basicSetup`,`placeholder`,`indentWithTab`,`editable`,`readOnly`,`root`,`initialState`],pR=(0,K.forwardRef)((e,t)=>{var n=e.className,r=e.value,i=r===void 0?``:r,a=e.selection,o=e.extensions,s=o===void 0?[]:o,c=e.onChange,l=e.onStatistics,u=e.onCreateEditor,d=e.onUpdate,f=e.autoFocus,p=e.theme,m=p===void 0?`light`:p,h=e.height,g=e.minHeight,_=e.maxHeight,v=e.width,y=e.minWidth,b=e.maxWidth,x=e.basicSetup,S=e.placeholder,C=e.indentWithTab,w=e.editable,T=e.readOnly,E=e.root,D=e.initialState,O=Pj(e,fR),k=(0,K.useRef)(null),A=dR({root:E,value:i,autoFocus:f,theme:m,height:h,minHeight:g,maxHeight:_,width:v,minWidth:y,maxWidth:b,basicSetup:x,placeholder:S,indentWithTab:C,editable:w,readOnly:T,selection:a,onChange:c,onStatistics:l,onCreateEditor:u,onUpdate:d,extensions:s,initialState:D}),j=A.state,M=A.view,N=A.container,P=A.setContainer;(0,K.useImperativeHandle)(t,()=>({editor:k.current,state:j,view:M}),[k,N,j,M]);var ee=(0,K.useCallback)(e=>{k.current=e,P(e)},[P]);if(typeof i!=`string`)throw Error(`value must be typeof string but got `+typeof i);var F=typeof m==`string`?`cm-theme-`+m:`cm-theme`;return(0,q.jsx)(`div`,Nj({ref:ee,className:``+F+(n?` `+n:``)},O))});pR.displayName=`CodeMirror`;var mR=`bottom`,hR=`right`,gR=`left`,_R=`auto`,vR=[`top`,mR,hR,gR],yR=`start`,bR=`clippingParents`,xR=`viewport`,SR=`popper`,CR=`reference`,wR=vR.reduce(function(e,t){return e.concat([t+`-`+yR,t+`-end`])},[]),TR=[].concat(vR,[_R]).reduce(function(e,t){return e.concat([t,t+`-`+yR,t+`-end`])},[]),ER=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function DR(e){return e?(e.nodeName||``).toLowerCase():null}function OR(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kR(e){return e instanceof OR(e).Element||e instanceof Element}function AR(e){return e instanceof OR(e).HTMLElement||e instanceof HTMLElement}function jR(e){return typeof ShadowRoot>`u`?!1:e instanceof OR(e).ShadowRoot||e instanceof ShadowRoot}function MR(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];AR(i)&&DR(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function NR(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});AR(r)&&DR(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var PR={name:`applyStyles`,enabled:!0,phase:`write`,fn:MR,effect:NR,requires:[`computeStyles`]};function FR(e){return e.split(`-`)[0]}var IR=Math.max,LR=Math.min,RR=Math.round;function zR(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function BR(){return!/^((?!chrome|android).)*safari/i.test(zR())}function VR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&AR(e)&&(i=e.offsetWidth>0&&RR(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&RR(r.height)/e.offsetHeight||1);var o=(kR(e)?OR(e):window).visualViewport,s=!BR()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function HR(e){var t=VR(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function UR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jR(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function WR(e){return OR(e).getComputedStyle(e)}function GR(e){return[`table`,`td`,`th`].indexOf(DR(e))>=0}function KR(e){return((kR(e)?e.ownerDocument:e.document)||window.document).documentElement}function qR(e){return DR(e)===`html`?e:e.assignedSlot||e.parentNode||(jR(e)?e.host:null)||KR(e)}function JR(e){return!AR(e)||WR(e).position===`fixed`?null:e.offsetParent}function YR(e){var t=/firefox/i.test(zR());if(/Trident/i.test(zR())&&AR(e)&&WR(e).position===`fixed`)return null;var n=qR(e);for(jR(n)&&(n=n.host);AR(n)&&[`html`,`body`].indexOf(DR(n))<0;){var r=WR(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function XR(e){for(var t=OR(e),n=JR(e);n&&GR(n)&&WR(n).position===`static`;)n=JR(n);return n&&(DR(n)===`html`||DR(n)===`body`&&WR(n).position===`static`)?t:n||YR(e)||t}function ZR(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function QR(e,t,n){return IR(e,LR(t,n))}function $R(e,t,n){var r=QR(e,t,n);return r>n?n:r}function ez(){return{top:0,right:0,bottom:0,left:0}}function tz(e){return Object.assign({},ez(),e)}function nz(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var rz=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,tz(typeof e==`number`?nz(e,vR):e)};function iz(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=FR(n.placement),c=ZR(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=rz(i.padding,n),d=HR(a),f=c===`y`?`top`:gR,p=c===`y`?mR:hR,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=XR(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=QR(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function az(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||UR(t.elements.popper,r)&&(t.elements.arrow=r))}var oz={name:`arrow`,enabled:!0,phase:`main`,fn:iz,effect:az,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function sz(e){return e.split(`-`)[1]}var cz={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function lz(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:RR(n*i)/i||0,y:RR(r*i)/i||0}}function uz(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=gR,b=`top`,x=window;if(l){var S=XR(n),C=`clientHeight`,w=`clientWidth`;if(S===OR(n)&&(S=KR(n),WR(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=mR;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=hR;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&cz),O=u===!0?lz({x:p,y:h},OR(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function dz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:FR(t.placement),variation:sz(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,uz(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uz(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fz={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:dz,data:{}},pz={passive:!0};function mz(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=OR(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,pz)}),s&&c.addEventListener(`resize`,n.update,pz),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,pz)}),s&&c.removeEventListener(`resize`,n.update,pz)}}var hz={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:mz,data:{}},gz={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _z(e){return e.replace(/left|right|bottom|top/g,function(e){return gz[e]})}var vz={start:`end`,end:`start`};function yz(e){return e.replace(/start|end/g,function(e){return vz[e]})}function bz(e){var t=OR(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xz(e){return VR(KR(e)).left+bz(e).scrollLeft}function Sz(e,t){var n=OR(e),r=KR(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=BR();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+xz(e),y:c}}function Cz(e){var t=KR(e),n=bz(e),r=e.ownerDocument?.body,i=IR(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=IR(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+xz(e),s=-n.scrollTop;return WR(r||t).direction===`rtl`&&(o+=IR(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function wz(e){var t=WR(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Tz(e){return[`html`,`body`,`#document`].indexOf(DR(e))>=0?e.ownerDocument.body:AR(e)&&wz(e)?e:Tz(qR(e))}function Ez(e,t){t===void 0&&(t=[]);var n=Tz(e),r=n===e.ownerDocument?.body,i=OR(n),a=r?[i].concat(i.visualViewport||[],wz(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Ez(qR(a)))}function Dz(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Oz(e,t){var n=VR(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function kz(e,t,n){return t===`viewport`?Dz(Sz(e,n)):kR(t)?Oz(t,n):Dz(Cz(KR(e)))}function Az(e){var t=Ez(qR(e)),n=[`absolute`,`fixed`].indexOf(WR(e).position)>=0&&AR(e)?XR(e):e;return kR(n)?t.filter(function(e){return kR(e)&&UR(e,n)&&DR(e)!==`body`}):[]}function jz(e,t,n,r){var i=t===`clippingParents`?Az(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=kz(e,n,r);return t.top=IR(i.top,t.top),t.right=LR(i.right,t.right),t.bottom=LR(i.bottom,t.bottom),t.left=IR(i.left,t.left),t},kz(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Mz(e){var t=e.reference,n=e.element,r=e.placement,i=r?FR(r):null,a=r?sz(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case mR:c={x:o,y:t.y+t.height};break;case hR:c={x:t.x+t.width,y:s};break;case gR:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ZR(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case yR:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Nz(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?bR:s,l=n.rootBoundary,u=l===void 0?xR:l,d=n.elementContext,f=d===void 0?SR:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=tz(typeof g==`number`?nz(g,vR):g),v=f===`popper`?CR:SR,y=e.rects.popper,b=e.elements[m?v:f],x=jz(kR(b)?b:b.contextElement||KR(e.elements.popper),c,u,o),S=VR(e.elements.reference),C=Mz({reference:S,element:y,strategy:`absolute`,placement:i}),w=Dz(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Pz(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?TR:c,u=sz(r),d=u?s?wR:wR.filter(function(e){return sz(e)===u}):vR,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Nz(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[FR(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Fz(e){if(FR(e)===`auto`)return[];var t=_z(e);return[yz(e),t,yz(t)]}function Iz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=FR(g)===g,v=c||(_||!m?[_z(g)]:Fz(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(FR(n)===`auto`?Pz(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=FR(E),O=sz(E)===yR,k=[`top`,mR].indexOf(D)>=0,A=k?`width`:`height`,j=Nz(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?hR:gR:O?mR:`top`;b[A]>x[A]&&(M=_z(M));var N=_z(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var ee=m?3:1,F=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},I=ee;I>0&&F(I)!==`break`;I--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Lz={name:`flip`,enabled:!0,phase:`main`,fn:Iz,requiresIfExists:[`offset`],data:{_skip:!1}};function Rz(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zz(e){return[`top`,hR,mR,gR].some(function(t){return e[t]>=0})}function Bz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Nz(t,{elementContext:`reference`}),s=Nz(t,{altBoundary:!0}),c=Rz(o,r),l=Rz(s,i,a),u=zz(c),d=zz(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Vz={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Bz};function Hz(e,t,n){var r=FR(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Uz(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=TR.reduce(function(e,n){return e[n]=Hz(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Wz={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Uz};function Gz(e){var t=e.state,n=e.name;t.modifiersData[n]=Mz({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Kz={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Gz,data:{}};function qz(e){return e===`x`?`y`:`x`}function Jz(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Nz(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=FR(t.placement),v=sz(t.placement),y=!v,b=ZR(_),x=qz(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:gR,A=b===`y`?mR:hR,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],ee=p?-w[j]/2:0,F=v===`start`?C[j]:w[j],I=v===`start`?-w[j]:-C[j],te=t.elements.arrow,ne=p&&te?HR(te):{width:0,height:0},L=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ez(),R=L[k],z=L[A],B=QR(0,C[j],ne[j]),V=y?C[j]/2-ee-B-R-E.mainAxis:F-B-R-E.mainAxis,re=y?-C[j]/2+ee+B+z+E.mainAxis:I+B+z+E.mainAxis,ie=t.elements.arrow&&XR(t.elements.arrow),ae=ie?b===`y`?ie.clientTop||0:ie.clientLeft||0:0,H=D?.[b]??0,oe=M+V-H-ae,se=M+re-H,ce=QR(p?LR(N,oe):N,M,p?IR(P,se):P);S[b]=ce,O[b]=ce-M}if(s){var le=b===`x`?`top`:gR,ue=b===`x`?mR:hR,de=S[x],fe=x===`y`?`height`:`width`,pe=de+g[le],me=de-g[ue],he=[`top`,gR].indexOf(_)!==-1,ge=D?.[x]??0,_e=he?pe:de-C[fe]-w[fe]-ge+E.altAxis,ve=he?de+C[fe]+w[fe]-ge-E.altAxis:me,ye=p&&he?$R(_e,de,ve):QR(p?_e:pe,de,p?ve:me);S[x]=ye,O[x]=ye-de}t.modifiersData[r]=O}}var Yz={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Jz,requiresIfExists:[`offset`]};function Xz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zz(e){return e===OR(e)||!AR(e)?bz(e):Xz(e)}function Qz(e){var t=e.getBoundingClientRect(),n=RR(t.width)/e.offsetWidth||1,r=RR(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $z(e,t,n){n===void 0&&(n=!1);var r=AR(t),i=AR(t)&&Qz(t),a=KR(t),o=VR(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((DR(t)!==`body`||wz(a))&&(s=Zz(t)),AR(t)?(c=VR(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=xz(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function eB(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function tB(e){var t=eB(e);return ER.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function nB(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function rB(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var iB={placement:`bottom`,modifiers:[],strategy:`absolute`};function aB(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function oB(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?iB:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},iB,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:kR(e)?Ez(e):e.contextElement?Ez(e.contextElement):[],popper:Ez(t)};var s=tB(rB([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(aB(t,n)){i.rects={reference:$z(t,XR(n),i.options.strategy===`fixed`),popper:HR(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:nB(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!aB(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var sB=oB({defaultModifiers:[hz,Kz,fz,PR,Wz,Lz,Yz,oz,Vz]}),cB=`tippy-box`,lB=`tippy-content`,uB=`tippy-backdrop`,dB=`tippy-arrow`,fB=`tippy-svg-arrow`,pB={passive:!0,capture:!0},mB=function(){return document.body};function hB(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function gB(e,t){var n={}.toString.call(e);return n.indexOf(`[object`)===0&&n.indexOf(t+`]`)>-1}function _B(e,t){return typeof e==`function`?e.apply(void 0,t):e}function vB(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function yB(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function bB(e){return e.split(/\s+/).filter(Boolean)}function xB(e){return[].concat(e)}function SB(e,t){e.indexOf(t)===-1&&e.push(t)}function CB(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function wB(e){return e.split(`-`)[0]}function TB(e){return[].slice.call(e)}function EB(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function DB(){return document.createElement(`div`)}function OB(e){return[`Element`,`Fragment`].some(function(t){return gB(e,t)})}function kB(e){return gB(e,`NodeList`)}function AB(e){return gB(e,`MouseEvent`)}function jB(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function MB(e){return OB(e)?[e]:kB(e)?TB(e):Array.isArray(e)?e:TB(document.querySelectorAll(e))}function NB(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+`ms`)})}function PB(e,t){e.forEach(function(e){e&&e.setAttribute(`data-state`,t)})}function FB(e){var t,n=xB(e)[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function IB(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,a=e.props.interactiveBorder,o=wB(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c=o===`bottom`?s.top.y:0,l=o===`top`?s.bottom.y:0,u=o===`right`?s.left.x:0,d=o===`left`?s.right.x:0,f=t.top-r+c>a,p=r-t.bottom-l>a,m=t.left-n+u>a,h=n-t.right-d>a;return f||p||m||h})}function LB(e,t,n){var r=t+`EventListener`;[`transitionend`,`webkitTransitionEnd`].forEach(function(t){e[r](t,n)})}function RB(e,t){for(var n=t;n;){if(e.contains(n))return!0;n=n.getRootNode==null?void 0:n.getRootNode()?.host}return!1}var zB={isTouch:!1},BB=0;function VB(){zB.isTouch||(zB.isTouch=!0,window.performance&&document.addEventListener(`mousemove`,HB))}function HB(){var e=performance.now();e-BB<20&&(zB.isTouch=!1,document.removeEventListener(`mousemove`,HB)),BB=e}function UB(){var e=document.activeElement;if(jB(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function WB(){document.addEventListener(`touchstart`,VB,pB),window.addEventListener(`blur`,UB)}var GB=typeof window<`u`&&typeof document<`u`&&!!window.msCrypto,KB=Object.assign({appendTo:mB,aria:{content:`auto`,expanded:`auto`},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:``,offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:`top`,plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:`mouseenter focus`,triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:`fade`,arrow:!0,content:``,inertia:!1,maxWidth:350,role:`tooltip`,theme:``,zIndex:9999}),qB=Object.keys(KB),JB=function(e){Object.keys(e).forEach(function(t){KB[t]=e[t]})};function YB(e){var t=(e.plugins||[]).reduce(function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=e[r]===void 0?KB[r]??i:e[r]),t},{});return Object.assign({},e,t)}function XB(e,t){return(t?Object.keys(YB(Object.assign({},KB,{plugins:t}))):qB).reduce(function(t,n){var r=(e.getAttribute(`data-tippy-`+n)||``).trim();if(!r)return t;if(n===`content`)t[n]=r;else try{t[n]=JSON.parse(r)}catch{t[n]=r}return t},{})}function ZB(e,t){var n=Object.assign({},t,{content:_B(t.content,[e])},t.ignoreAttributes?{}:XB(e,t.plugins));return n.aria=Object.assign({},KB.aria,n.aria),n.aria={expanded:n.aria.expanded===`auto`?t.interactive:n.aria.expanded,content:n.aria.content===`auto`?t.interactive?null:`describedby`:n.aria.content},n}var QB=function(){return`innerHTML`};function $B(e,t){e[QB()]=t}function eV(e){var t=DB();return e===!0?t.className=dB:(t.className=fB,OB(e)?t.appendChild(e):$B(t,e)),t}function tV(e,t){OB(t.content)?($B(e,``),e.appendChild(t.content)):typeof t.content!=`function`&&(t.allowHTML?$B(e,t.content):e.textContent=t.content)}function nV(e){var t=e.firstElementChild,n=TB(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(lB)}),arrow:n.find(function(e){return e.classList.contains(dB)||e.classList.contains(fB)}),backdrop:n.find(function(e){return e.classList.contains(uB)})}}function rV(e){var t=DB(),n=DB();n.className=cB,n.setAttribute(`data-state`,`hidden`),n.setAttribute(`tabindex`,`-1`);var r=DB();r.className=lB,r.setAttribute(`data-state`,`hidden`),tV(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(n,r){var i=nV(t),a=i.box,o=i.content,s=i.arrow;r.theme?a.setAttribute(`data-theme`,r.theme):a.removeAttribute(`data-theme`),typeof r.animation==`string`?a.setAttribute(`data-animation`,r.animation):a.removeAttribute(`data-animation`),r.inertia?a.setAttribute(`data-inertia`,``):a.removeAttribute(`data-inertia`),a.style.maxWidth=typeof r.maxWidth==`number`?r.maxWidth+`px`:r.maxWidth,r.role?a.setAttribute(`role`,r.role):a.removeAttribute(`role`),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&tV(o,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(eV(r.arrow))):a.appendChild(eV(r.arrow)):s&&a.removeChild(s)}return{popper:t,onUpdate:i}}rV.$$tippy=!0;var iV=1,aV=[],oV=[];function sV(e,t){var n=ZB(e,Object.assign({},KB,YB(EB(t)))),r,i,a,o=!1,s=!1,c=!1,l=!1,u,d,f,p=[],m=vB(oe,n.interactiveDebounce),h,g=iV++,_=null,v=CB(n.plugins),y={id:g,reference:e,popper:DB(),popperInstance:_,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:ve,setProps:ye,setContent:be,show:xe,hide:Se,hideWithInteractivity:U,enable:ge,disable:_e,unmount:Ce,destroy:we};if(!n.render)return y;var b=n.render(y),x=b.popper,S=b.onUpdate;x.setAttribute(`data-tippy-root`,``),x.id=`tippy-`+y.id,y.popper=x,e._tippy=y,x._tippy=y;var C=v.map(function(e){return e.fn(y)}),w=e.hasAttribute(`aria-expanded`);return ie(),ee(),M(),N(`onCreate`,[y]),n.showOnCreate&&me(),x.addEventListener(`mouseenter`,function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener(`mouseleave`,function(){y.props.interactive&&y.props.trigger.indexOf(`mouseenter`)>=0&&k().addEventListener(`mousemove`,m)}),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return T()[0]===`hold`}function D(){var e;return!!((e=y.props.render)!=null&&e.$$tippy)}function O(){return h||e}function k(){var e=O().parentNode;return e?FB(e):document}function A(){return nV(x)}function j(e){return y.state.isMounted&&!y.state.isVisible||zB.isTouch||u&&u.type===`focus`?0:hB(y.props.delay,+!e,KB.delay)}function M(e){e===void 0&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?``:`none`,x.style.zIndex=``+y.props.zIndex}function N(e,t,n){if(n===void 0&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function P(){var t=y.props.aria;if(t.content){var n=`aria-`+t.content,r=x.id;xB(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+` `+r:r);else{var i=t&&t.replace(r,``).trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function ee(){!w&&y.props.aria.expanded&&xB(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute(`aria-expanded`,y.state.isVisible&&e===O()?`true`:`false`):e.removeAttribute(`aria-expanded`)})}function F(){k().removeEventListener(`mousemove`,m),aV=aV.filter(function(e){return e!==m})}function I(t){if(!zB.isTouch||!c&&t.type!==`mousedown`){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&RB(x,n))){if(xB(y.props.triggerTarget||e).some(function(e){return RB(e,n)})){if(zB.isTouch||y.state.isVisible&&y.props.trigger.indexOf(`click`)>=0)return}else N(`onClickOutside`,[y,t]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),s=!0,setTimeout(function(){s=!1}),y.state.isMounted||R())}}}function te(){c=!0}function ne(){c=!1}function L(){var e=k();e.addEventListener(`mousedown`,I,!0),e.addEventListener(`touchend`,I,pB),e.addEventListener(`touchstart`,ne,pB),e.addEventListener(`touchmove`,te,pB)}function R(){var e=k();e.removeEventListener(`mousedown`,I,!0),e.removeEventListener(`touchend`,I,pB),e.removeEventListener(`touchstart`,ne,pB),e.removeEventListener(`touchmove`,te,pB)}function z(e,t){V(e,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function B(e,t){V(e,t)}function V(e,t){var n=A().box;function r(e){e.target===n&&(LB(n,`remove`,r),t())}if(e===0)return t();LB(n,`remove`,d),LB(n,`add`,r),d=r}function re(t,n,r){r===void 0&&(r=!1),xB(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),p.push({node:e,eventType:t,handler:n,options:r})})}function ie(){E()&&(re(`touchstart`,H,{passive:!0}),re(`touchend`,se,{passive:!0})),bB(y.props.trigger).forEach(function(e){if(e!==`manual`)switch(re(e,H),e){case`mouseenter`:re(`mouseleave`,se);break;case`focus`:re(GB?`focusout`:`blur`,ce);break;case`focusin`:re(`focusout`,ce)}})}function ae(){p.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),p=[]}function H(e){var t=!1;if(!(!y.state.isEnabled||le(e)||s)){var n=u?.type===`focus`;u=e,h=e.currentTarget,ee(),!y.state.isVisible&&AB(e)&&aV.forEach(function(t){return t(e)}),e.type===`click`&&(y.props.trigger.indexOf(`mouseenter`)<0||o)&&y.props.hideOnClick!==!1&&y.state.isVisible?t=!0:me(e),e.type===`click`&&(o=!t),t&&!n&&he(e)}}function oe(e){var t=e.target,r=O().contains(t)||x.contains(t);e.type===`mousemove`&&r||IB(pe().concat(x).map(function(e){var t=e._tippy.popperInstance?.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:n}:null}).filter(Boolean),e)&&(F(),he(e))}function se(e){le(e)||y.props.trigger.indexOf(`click`)>=0&&o||(y.props.interactive?y.hideWithInteractivity(e):he(e))}function ce(e){y.props.trigger.indexOf(`focusin`)<0&&e.target!==O()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||he(e)}function le(e){return zB.isTouch?E()!==e.type.indexOf(`touch`)>=0:!1}function ue(){de();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=D()?nV(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||O()}:e,l=[{name:`offset`,options:{offset:i}},{name:`preventOverflow`,options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:`flip`,options:{padding:5}},{name:`computeStyles`,options:{adaptive:!o}},{name:`$$tippy`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state;if(D()){var n=A().box;[`placement`,`reference-hidden`,`escaped`].forEach(function(e){e===`placement`?n.setAttribute(`data-placement`,t.placement):t.attributes.popper[`data-popper-`+e]?n.setAttribute(`data-`+e,``):n.removeAttribute(`data-`+e)}),t.attributes.popper={}}}}];D()&&s&&l.push({name:`arrow`,options:{element:s,padding:3}}),l.push.apply(l,n?.modifiers||[]),y.popperInstance=sB(c,x,Object.assign({},n,{placement:r,onFirstUpdate:f,modifiers:l}))}function de(){y.popperInstance&&=(y.popperInstance.destroy(),null)}function fe(){var e=y.props.appendTo,t,n=O();t=y.props.interactive&&e===mB||e===`parent`?n.parentNode:_B(e,[n]),t.contains(x)||t.appendChild(x),y.state.isMounted=!0,ue()}function pe(){return TB(x.querySelectorAll(`[data-tippy-root]`))}function me(e){y.clearDelayTimeouts(),e&&N(`onTrigger`,[y,e]),L();var t=j(!0),n=T(),i=n[0],a=n[1];zB.isTouch&&i===`hold`&&a&&(t=a),t?r=setTimeout(function(){y.show()},t):y.show()}function he(e){if(y.clearDelayTimeouts(),N(`onUntrigger`,[y,e]),!y.state.isVisible)R();else if(!(y.props.trigger.indexOf(`mouseenter`)>=0&&y.props.trigger.indexOf(`click`)>=0&&[`mouseleave`,`mousemove`].indexOf(e.type)>=0&&o)){var t=j(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):a=requestAnimationFrame(function(){y.hide()})}}function ge(){y.state.isEnabled=!0}function _e(){y.hide(),y.state.isEnabled=!1}function ve(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function ye(t){if(!y.state.isDestroyed){N(`onBeforeUpdate`,[y,t]),ae();var n=y.props,r=ZB(e,Object.assign({},n,EB(t),{ignoreAttributes:!0}));y.props=r,ie(),n.interactiveDebounce!==r.interactiveDebounce&&(F(),m=vB(oe,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?xB(n.triggerTarget).forEach(function(e){e.removeAttribute(`aria-expanded`)}):r.triggerTarget&&e.removeAttribute(`aria-expanded`),ee(),M(),S&&S(n,r),y.popperInstance&&(ue(),pe().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N(`onAfterUpdate`,[y,t])}}function be(e){y.setProps({content:e})}function xe(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=zB.isTouch&&!y.props.touch,i=hB(y.props.duration,0,KB.duration);if(!(e||t||n||r)&&!O().hasAttribute(`disabled`)&&(N(`onShow`,[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,D()&&(x.style.visibility=`visible`),M(),L(),y.state.isMounted||(x.style.transition=`none`),D()){var a=A(),o=a.box,s=a.content;NB([o,s],0)}f=function(){var e;if(y.state.isVisible&&!l){if(l=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=A(),n=t.box,r=t.content;NB([n,r],i),PB([n,r],`visible`)}P(),ee(),SB(oV,y),(e=y.popperInstance)==null||e.forceUpdate(),N(`onMount`,[y]),y.props.animation&&D()&&B(i,function(){y.state.isShown=!0,N(`onShown`,[y])})}},fe()}}function Se(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=hB(y.props.duration,1,KB.duration);if(!(e||t||n)&&(N(`onHide`,[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,o=!1,D()&&(x.style.visibility=`hidden`),F(),R(),M(!0),D()){var i=A(),a=i.box,s=i.content;y.props.animation&&(NB([a,s],r),PB([a,s],`hidden`))}P(),ee(),y.props.animation?D()&&z(r,y.unmount):y.unmount()}}function U(e){k().addEventListener(`mousemove`,m),SB(aV,m),m(e)}function Ce(){y.state.isVisible&&y.hide(),y.state.isMounted&&(de(),pe().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),oV=oV.filter(function(e){return e!==y}),y.state.isMounted=!1,N(`onHidden`,[y]))}function we(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),ae(),delete e._tippy,y.state.isDestroyed=!0,N(`onDestroy`,[y]))}}function cV(e,t){t===void 0&&(t={});var n=KB.plugins.concat(t.plugins||[]);WB();var r=Object.assign({},t,{plugins:n}),i=MB(e).reduce(function(e,t){var n=t&&sV(t,r);return n&&e.push(n),e},[]);return OB(e)?i[0]:i}cV.defaultProps=KB,cV.setDefaultProps=JB,cV.currentInput=zB;var lV=function(e){var t=e===void 0?{}:e,n=t.exclude,r=t.duration;oV.forEach(function(e){var t=!1;if(n&&(t=jB(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}})};Object.assign({},PR,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var uV={mouseover:`mouseenter`,focusin:`focus`,click:`click`};function dV(e,t){var n=[],r=[],i=!1,a=t.target,o=yB(t,[`target`]),s=Object.assign({},o,{trigger:`manual`,touch:!1}),c=Object.assign({touch:KB.touch},o,{showOnCreate:!0}),l=cV(e,s),u=xB(l);function d(e){if(e.target&&!i){var n=e.target.closest(a);if(n){var o=n.getAttribute(`data-tippy-trigger`)||t.trigger||KB.trigger;if(!n._tippy&&(e.type!==`touchstart`||typeof c.touch!=`boolean`)&&!(e.type!==`touchstart`&&o.indexOf(uV[e.type])<0)){var s=cV(n,c);s&&(r=r.concat(s))}}}}function f(e,t,r,i){i===void 0&&(i=!1),e.addEventListener(t,r,i),n.push({node:e,eventType:t,handler:r,options:i})}function p(e){var t=e.reference;f(t,`touchstart`,d,pB),f(t,`mouseover`,d),f(t,`focusin`,d),f(t,`click`,d)}function m(){n.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),n=[]}function h(e){var t=e.destroy,n=e.enable,a=e.disable;e.destroy=function(e){e===void 0&&(e=!0),e&&r.forEach(function(e){e.destroy()}),r=[],m(),t()},e.enable=function(){n(),r.forEach(function(e){return e.enable()}),i=!1},e.disable=function(){a(),r.forEach(function(e){return e.disable()}),i=!0},p(e)}return u.forEach(h),l}cV.setDefaultProps({render:rV});var fV={questions:{title:`Open questions`,lead:`A sentence the AI wrote as a suggestion, and the one thing it cannot decide alone. A blocking question keeps that check from being generated until it is answered.`,steps:[`Accept the text above: the question disappears and the case keeps that text.`,`Or type your own answer: it replaces the text where they disagree, and the AI folds it in on its next run.`,`Click a question to show it and the text above in the source editor, where the whole block flashes.`,`Red means the question blocks generation; amber means the suggestion is already used.`]},steps:{title:`Steps`,lead:`The steps of the case, in order. Edit a sentence here, tag a step so the tools know what it does, and keep the record of a step that a person did.`,steps:["`input`: a person does this step (a choice, an item that already exists).","`writes`: the step creates, changes or deletes data of the test account.","`email`: the step sends email (never in production).","A `[T1]` in the sentence or in a ready signal becomes a chip: click it to open the card of that target.","`- Ready when: ...` under the step: the signal that what the step loads is really there. The test waits for it before it looks.","`- Recipe (phase): ...` under the step: what the person did during an attended exploration. A step tagged input or writes needs one; generating the spec stops without it.",`Adding, deleting and renumbering steps is done in the source; recipes and questions move with their step.`]},values:{title:`Values`,lead:`The values the test checks, one column per profile. They live in the case document, never in the profile settings.`,steps:["`default` applies to every profile; a profile column overrides it key by key.","An empty cell shows the grey `default:` value; clearing a cell removes the key from that profile.","An empty or `TODO` value makes the test refuse to run; an unknown profile fails pnpm case:check."]},inputs:{title:`Inputs (old format)`,lead:"An old section of the case document. A step’s recipe now lives under that step as `- Recipe (phase): ...`, so the step number is not a key to another section anymore.",steps:["Move each `- Step <n> ...` line under step n as `- Recipe ...`.","A line without `Step <n>` is a free note: move it to `## Notes` if it still matters.",`This block stays editable until it is empty; new cases do not get it.`]},markers:{title:`To confirm`,lead:"`🔍 to be confirmed by QA` and `👁️ not observed`: the AI saw this, a person has not checked it yet.",steps:[`Check it on the page.`,`If it is right, remove the marker; the sentence stays.`,`If it is wrong, fix the sentence in the source first.`]},settings:{title:`Case settings`,lead:`What the case is called, who logs in, where it runs, which suites run it, and where it may write data.`,steps:["`title`: one line, shown in the case list.","`login`: required for a signed-in case; none for a public page (no saved session).","`envs`: press the environments the case runs in; all pressed means every environment, including new ones.","`suites`: every suite that runs this case; a case runs in all of them. Type a name, then comma or Enter adds it as a tag.","`writes`: environments where the case may create or change data. It then needs a `writes-note` that says what it touches.",`The id is the file path: rename the case with the pencil next to its file name.`]},goal:{title:`Goal`,lead:`Why the case exists, in one or two sentences. The tools read it for context; it is not a check.`,steps:[`Read-only here: click a paragraph to jump to that line of the source and edit it there.`]},expected:{title:`Expected`,lead:`What must hold for every profile. The spec turns each bullet into an assertion or a step check.`,steps:[`Drag the handle (or Space and the arrow keys) to reorder; the order is the order of the case.`,`A bullet with an open question keeps that question until it is answered in Open questions.`,`Deleting a bullet deletes the question blocks that hang under it (you are asked first).`]},visual:{title:`Visual checks`,lead:"What is compared to a screenshot baseline. Each bullet names a target card as `[T1]`; click the card name to see what the check looks at.",steps:["A bullet without `[Tn]`, or with an id that has no card, is marked in red and `pnpm case:check` warns.",`The order and drag behaviour are the same as in Expected.`]},targets:{title:`Targets`,lead:`One card per image, logo, icon, file, PDF or repeated text that a check looks at: what it is, where it is, how it is found, and what proves that it has loaded.`,steps:[`Click a target name next to a step or a check, or a card here, to open it in a window.`,`Each reference screenshot is under the card; click one for the full size.`,`Amber means the card is not ready: a required field is empty, or an open question still blocks it.`,`The text is edited in the editor: the window has "Open in editor".`]},notes:{title:`Notes`,lead:`Free context for a reviewer: why the case is built this way, what it avoids, what may change.`,steps:[`Read-only here: click a paragraph to jump to that line of the source and edit it there.`]},source:{title:`Source`,lead:`The original notes the case was made from, verbatim, with what became of each line. Traceability only.`,steps:[`Read-only: never edit this table. It shows a reviewer that nothing was lost.`]}},pV={"field.id":{title:`id`,lead:"The path of the case file below `cases/`, without `.md`. Runs, specs and reports use it as the identity.",steps:[]},"field.title":{title:`title`,lead:`One line, shown in the case list and in reports. It says what the case proves, not which button it clicks.`,steps:[]},"field.login":{title:`login`,lead:"`required` signs in with the saved session of a profile before the case runs. `none` is for a public page that needs no session.",steps:[]},"field.runs-in":{title:`runs in`,lead:`The environments this case may run in. Every environment is pressed by default, including ones added to the profiles later.`,steps:[]},"field.suites":{title:`suites`,lead:`The suites that run this case; a case runs in every suite it lists. Matching names of other cases appear while you type.`,steps:[]},"field.writes":{title:`writes data in`,lead:`Environments where the case may create or change data of the test accounts. Nothing pressed means read-only: the case changes nothing.`,steps:[]},"field.writes-note":{title:`what it changes`,lead:`What the case creates or changes, in one sentence. Whoever confirms a run that writes data reads it before saying yes.`,steps:[]}},mV={...fV,...pV};function hV(e,t){t.split(/`([^`]+)`/g).forEach((t,n)=>{if(t!==``){if(n%2==1){let n=document.createElement(`code`);n.className=`rounded-sm bg-dai px-1 py-px font-mono text-[0.9em]`,n.textContent=t,e.append(n)}else e.append(document.createTextNode(t))}})}function gV(e){let t=document.createElement(`div`);t.className=`space-y-1.5`;let n=document.createElement(`p`);n.className=`text-sm font-semibold`,n.textContent=e.title;let r=document.createElement(`p`);if(r.className=`text-line-mid`,hV(r,e.lead),t.append(n,r),e.steps.length===0)return t;let i=document.createElement(`p`);i.className=`pt-0.5 font-medium`,i.textContent=`How to use it`;let a=document.createElement(`ul`);a.className=`list-disc space-y-1 pl-4`;for(let t of e.steps){let e=document.createElement(`li`);hV(e,t),a.append(e)}return t.append(i,a),t}function _V(){let[e,t]=(0,K.useState)(null);return(0,K.useEffect)(()=>{if(!e)return;let t=dV(e,{target:`[data-help]`,content:e=>gV(mV[e.getAttribute(`data-help`)??`questions`]??fV.questions),theme:`inkstone`,placement:`bottom-start`,trigger:`click`,interactive:!0,maxWidth:380,offset:[0,8],touch:!1,appendTo:()=>document.body,onShow:e=>{e.popper.querySelector(`.tippy-box`)?.setAttribute(`data-help-box`,``)}}),n=()=>lV({duration:0});return document.addEventListener(`keydown`,n,!0),()=>{document.removeEventListener(`keydown`,n,!0),(Array.isArray(t)?t:[t]).forEach(e=>e.destroy())}},[e]),t}var vV=e=>(0,q.jsx)(e,{size:14,"aria-hidden":`true`}),yV={questions:vV(mf),steps:vV(qd),values:vV(cp),inputs:vV(Ud),markers:vV(Cd),settings:vV(ip),goal:vV(ku),expected:vV(tu),visual:vV(sd),targets:vV(Gu),notes:vV(yd),source:vV(Fl)};function bV({text:e}){return(0,q.jsx)(mE,{remarkPlugins:[Fk],allowedElements:[`p`,`code`,`strong`,`em`,`del`,`a`,`br`],unwrapDisallowed:!0,components:{p:({children:e})=>(0,q.jsx)(q.Fragment,{children:e}),code:({children:e})=>(0,q.jsx)(`code`,{className:`rounded-sm bg-warm px-1 py-px font-mono text-[0.9em] text-ink ring-1 ring-line-mid ring-inset`,children:e}),a:({href:e,children:t})=>(0,q.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`text-theme-ink underline`,children:t})},children:e})}function xV({help:e}){return(0,q.jsx)(`button`,{type:`button`,"data-help":e,"aria-label":`About ${fV[e].title}`,className:`rounded p-0.5 text-ink-3 transition-colors hover:bg-line hover:text-ink-2 focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,children:(0,q.jsx)(jd,{size:14,"aria-hidden":`true`})})}function SV({help:e}){return(0,q.jsx)(`button`,{type:`button`,"data-help":e,"aria-label":`About ${pV[e].title}`,className:`-my-0.5 shrink-0 rounded p-0.5 text-ink-3 transition-colors hover:bg-line hover:text-ink-2 focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,children:(0,q.jsx)(jd,{size:12,"aria-hidden":`true`})})}function CV({title:e,count:t,tone:n=`gray`,help:r,storage:i,defaultOpen:a=!0,children:o}){let[s,c]=Dp(`asrun-ui.panel.${i??r}`,a,kp);return(0,q.jsxs)(`section`,{className:`card-panel overflow-hidden`,children:[(0,q.jsxs)(`header`,{className:`flex flex-wrap items-center gap-1.5 border-b border-line bg-warm px-2 py-1.5`,children:[(0,q.jsxs)(`button`,{type:`button`,"aria-expanded":s,title:s?`Collapse this section`:`Expand this section`,onClick:()=>c(!s),className:`flex items-center gap-1 rounded px-1 py-0.5 text-left transition-colors hover:bg-line focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,children:[s?(0,q.jsx)(lu,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}):(0,q.jsx)(_u,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`shrink-0 text-ink-3`,children:yV[r]}),(0,q.jsx)(`h3`,{className:`font-serif text-sm tracking-wide text-ink`,children:e})]}),(0,q.jsx)(xV,{help:r}),t===void 0?null:(0,q.jsx)(ay,{tone:n,children:t})]}),(0,q.jsx)(Mp,{open:s,children:o})]})}var wV=({text:e})=>(0,q.jsx)(`p`,{className:`px-3 py-2 text-sm text-ink-3`,children:e}),TV=class e{static create(t,n,r,i,a){let o=i+(i<<8)+t+(n<<4)|0;return new e(t,n,r,o,a,[],[])}constructor(e,t,n,r,i,a,o){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=i,this.children=a,this.positions=o,this.blankFirstLine=!1,this.hashProp=[[I.contextHash,r]]}addChild(e,t){e.prop(I.contextHash)!=this.hash&&(e=new v(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new v(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new v(F.none,e,t,n,this.hashProp)})}},Z;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})(Z||={});var EV=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},DV=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return jV(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function OV(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Z.OrderedList?RV:LV)(n,t,!1);return r>0&&(e.type!=Z.BulletList||FV(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var kV={[Z.Blockquote](e,t,n){return n.next==62&&(n.markers.push(fH(Z.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(AV(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Z.ListItem](e,t,n){return!(n.next<0?e.blankFirstLine&&e.children.length==1:n.indent<n.baseIndent+e.value)&&(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Z.OrderedList]:OV,[Z.BulletList]:OV,[Z.Document](){return!0}};function AV(e){return e==32||e==9||e==10||e==13}function jV(e,t=0){for(;t<e.length&&AV(e.charCodeAt(t));)t++;return t}function MV(e,t,n){for(;t>n&&AV(e.charCodeAt(t-1));)t--;return t}function NV(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function PV(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function FV(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!AV(n))return-1}return n&&e.next==45&&BV(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(QV.SetextHeading)>-1||r<3?-1:1}function IV(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function LV(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||AV(e.text.charCodeAt(e.pos+1)))&&(!n||IV(t,Z.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function RV(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!AV(e.text.charCodeAt(r+1))||n&&!IV(t,Z.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function zV(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&!AV(e.text.charCodeAt(t)))return-1;let n=t-e.pos;return n>6?-1:n}function BV(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&AV(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var VV=/^[ \t]*$/,HV=/-->/,UV=/\?>/,WV=[[/^<(?:script|pre|style|textarea)(?:\s|>|$)/i,/<\/(?:script|pre|style|textarea)>/i],[/^\s*<!--/,HV],[/^\s*<\?/,UV],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,VV],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,VV]];function GV(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=WV.length-+!!n;e<t;e++)if(WV[e][0].test(r))return e;return-1}function KV(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.skipSpace(t),i=e.countIndent(r,t,n);return i>=n+5||r==e.text.length?n+1:i}function qV(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==Z.CodeText?e[r].to=n:e.push(fH(Z.CodeText,t,n))}var JV={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(qV(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){qV(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==Z.CodeText?qV(o,e.from,e.to):o.push(e);s=[]}qV(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&qV(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=Z.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish(Z.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=NV(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=MV(t.text,t.text.length,o),c=[fH(Z.CodeMark,r,r+a)];o<s&&c.push(fH(Z.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&qV(c,e.lineStart-1,e.lineStart),c.push(fH(Z.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}{o=!0,n||(qV(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(qV(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish(Z.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=PV(t);return n<0?!1:(e.startContext(Z.Blockquote,t.pos),e.addNode(Z.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(FV(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(Z.HorizontalRule,n),!0},BulletList(e,t){let n=LV(t,e,!1);if(n<0)return!1;e.block.type!=Z.BulletList&&e.startContext(Z.BulletList,t.basePos,t.next);let r=KV(t,t.pos+1);return e.startContext(Z.ListItem,t.basePos,r-t.baseIndent),e.addNode(Z.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),e.block.blankFirstLine=r>=t.text.length,null},OrderedList(e,t){let n=RV(t,e,!1);if(n<0)return!1;e.block.type!=Z.OrderedList&&e.startContext(Z.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=KV(t,t.pos+n);return e.startContext(Z.ListItem,t.basePos,r-t.baseIndent),e.addNode(Z.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),e.block.blankFirstLine=r==t.text.length,null},ATXHeading(e,t){let n=zV(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=MV(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;o!=a&&o!=r&&AV(t.text.charCodeAt(o-1))||(o=t.text.length);let s=e.buffer.write(Z.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write(Z.HeaderMark,o-r,a-r);let c=s.finish(Z.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=GV(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=WV[n][1],a=[],o=i!=VV;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==HV?Z.CommentBlock:i==UV?Z.ProcessingInstructionBlock:Z.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},YV=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
201
|
+
`+t.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(e,n,i)}finish(e,t){return(this.stage==2||this.stage==3)&&jV(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,n){return e.addLeafElement(t,fH(Z.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(wH(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(fH(Z.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(SH(e,jV(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=jV(e,this.pos),n=0;if(t>this.pos){let r=CH(e,t,this.start);if(r){let t=XV(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=XV(e,this.pos),n>0&&n<e.length?n:-1}else return XV(e,this.pos)}};function XV(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!AV(n))return-1}return t}var ZV=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:BV(t),i=t.next;if(r<0)return!1;let a=fH(Z.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,fH(i==61?Z.SetextHeading1:Z.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},QV={LinkReference(e,t){return t.content.charCodeAt(0)==91?new YV(t):null},SetextHeading(){return new ZV}},$V=[(e,t)=>zV(t)>=0,(e,t)=>NV(t)>=0,(e,t)=>PV(t)>=0,(e,t)=>LV(t,e,!0)>=0,(e,t)=>RV(t,e,!0)>=0,(e,t)=>FV(t,e,!0)>=0,(e,t)=>GV(t,e,!0)>=0],eH={text:``,end:0},tH=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new DV,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=TV.create(Z.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new OH(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let t=new EV(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
|
|
202
|
+
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=AH(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=eH;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+Z[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
203
|
+
`?``:t;else{let e=t.indexOf(`
|
|
204
|
+
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=TV.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new v(this.parser.nodeSet.types[e],cH,cH,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(EH(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?nH(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=EH(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Z.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?fH(this.parser.getNodeType(e),t,n,r):new dH(e,t)}get buffer(){return new lH(this.parser.nodeSet)}};function nH(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=nH(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new v(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var rH=class e extends p{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new tH(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=aH(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),c=this.inlineParsers.slice(),l=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(iH(n.defineNodes)){i=Object.assign({},i);let e=r.types.slice(),t;for(let r of n.defineNodes){let{name:n,block:a,composite:o,style:s}=typeof r==`string`?{name:r}:r;if(e.some(e=>e.name==n))continue;o&&(i[e.length]=(e,t,n)=>o(t,n,e.value));let c=e.length,l=o?[`Block`,`BlockContext`]:a?c>=Z.ATXHeading1&&c<=Z.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(F.define({id:c,name:n,props:l&&[[I.group,l]]})),s&&(t||={},Array.isArray(s)||s instanceof h?t[n]=s:Object.assign(t,s))}r=new m(e),t&&(r=r.extend(y(t)))}if(iH(n.props)&&(r=r.extend(...n.props)),iH(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(a[t]=o[t]=void 0),n>-1&&(c[n]=void 0)}if(iH(n.parseBlock))for(let e of n.parseBlock){let t=s.indexOf(e.name);if(t>-1)a[t]=e.parse,o[t]=e.leaf;else{let t=e.before?oH(s,e.before):e.after?oH(s,e.after)+1:s.length-1;a.splice(t,0,e.parse),o.splice(t,0,e.leaf),s.splice(t,0,e.name)}e.endLeaf&&u.push(e.endLeaf)}if(iH(n.parseInline))for(let e of n.parseInline){let t=l.indexOf(e.name);if(t>-1)c[t]=e.parse;else{let t=e.before?oH(l,e.before):e.after?oH(l,e.after)+1:l.length-1;c.splice(t,0,e.parse),l.splice(t,0,e.name)}}return n.wrap&&(d=d.concat(n.wrap)),new e(r,a,o,s,u,i,c,l,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new TH(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function iH(e){return e!=null&&e.length>0}function aH(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=aH(e[0]);if(e.length==1)return t;let n=aH(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||cH).concat(t||cH),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function oH(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var sH=[F.none];for(let e=1,t;t=Z[e];e++)sH[e]=F.define({id:e,name:t,props:e>=Z.Escape?[]:[[I.group,e in kV?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var cH=[],lH=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return v.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},uH=class{constructor(e,t,n,r=cH){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new lH(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},dH=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return cH}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function fH(e,t,n,r){return new uH(e,t,n,r)}var pH={resolve:`Emphasis`,mark:`EmphasisMark`},mH={resolve:`Emphasis`,mark:`EmphasisMark`},hH={},gH={},_H=class{constructor(e,t,n,r,i=n-t){this.type=e,this.from=t,this.to=n,this.side=r,this.size=i}},vH=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,yH=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{yH=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var bH={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(vH.charCodeAt(t)==r)return e.append(fH(Z.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(fH(Z.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(fH(Z.InlineCode,n,r+1,[fH(Z.CodeMark,n,n+i),fH(Z.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(fH(Z.Autolink,n,n+1+i[0].length,[fH(Z.LinkMark,n,n+1),fH(Z.URL,n+1,n+i[0].length),fH(Z.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--(?:-?>|[^]*?-->)/.exec(r);if(a)return e.append(fH(Z.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(fH(Z.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/[a-zA-Z][\w-]*\s*>|[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*\/?>)/.exec(r);return s?e.append(fH(Z.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=yH.test(i),s=yH.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new _H(t==95?pH:mH,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(fH(Z.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(fH(Z.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new _H(hH,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new _H(gH,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof _H&&(r.type==hH||r.type==gH)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=xH(e,i,r.type==hH?Z.Link:Z.Image,r.from,n+1);if(r.type==hH)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof _H&&t.type==hH&&(t.side=0)}return a.to}}return-1}};function xH(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(fH(Z.LinkMark,r,r+(n==Z.Image?2:1))),t.push(fH(Z.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=SH(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=CH(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(fH(Z.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(fH(Z.LinkMark,n,s)))}else if(o==91){let n=wH(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return fH(n,r,s,t)}function SH(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1,i=!1;r<e.length;r++){let a=e.charCodeAt(r);if(a==62&&!i)return fH(Z.URL,t+n,r+1+n);if(a==60&&!i||a==10)return!1;i=a==92}return null}{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(AV(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?fH(Z.URL,t+n,i+n):i==e.length&&null}}function CH(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return fH(Z.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function wH(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return!r&&fH(Z.LinkLabel,t+n,a+1+n);else{if(r&&!AV(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var TH=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new _H(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof _H&&(t.type==hH||t.type==gH))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof _H&&n.type.resolve&&n.side&2))continue;let r=n.type==pH||n.type==mH,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof _H&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.size+n.size)%3==0&&(e.size%3||n.size%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof uH&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new _H(a.type,a.from,l,a.side,a.size):null,(this.parts[t]=r&&n.to!=u?new _H(n.type,u,n.to,n.side,n.size):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof uH&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof _H&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof _H?t:null}skipSpace(e){return jV(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?fH(this.parser.getNodeType(e),t,n,r):new dH(e,t)}};TH.linkStart=hH,TH.imageStart=gH,TH.emphasisAsterisk=mH,TH.emphasisUnderscore=pH;function EH(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof uH&&(n[r]=new uH(t.type,t.from,t.to,EH(t.children,[e])))}else n.splice(r++,0,e)}return n}var DH=[Z.CodeBlock,Z.ListItem,Z.OrderedList,Z.BulletList],OH=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
205
|
+
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(r.IncludeAnonymous|r.IgnoreMounts),n.firstChild());let i=e+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=t;if(!n.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;for(;t&&t.type.isAnonymous&&t.children[0]instanceof v;)t=t.children[0];return t&&t.prop(I.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=e.lineStart-e.block.from>>2,c=a,l=o;scan:for(;;){if(t.to-n>Math.min(r,e.to)||t.type.isAnonymous&&t.tree&&(t.to-t.from>s||!kH(t.tree))){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=AH(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new v(e.parser.nodeSet.types[Z.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}for((t.type.isAnonymous||t.type.is(`Block`))&&(t.type.isAnonymous||DH.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=c,o=l),c=t.to-n,l=e.block.children.length);;){if(t.nextSibling())continue scan;if(!t.parent()||!t.type.isAnonymous)break scan}}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function kH(e){for(;e.type.isAnonymous;){let t=e.children[e.children.length-1];if(t instanceof v)e=t;else return!1}return e.type.is(`Block`)&&DH.indexOf(e.type.id)<0}function AH(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var jH=y({"Blockquote/...":G.quote,HorizontalRule:G.contentSeparator,"ATXHeading1/... SetextHeading1/...":G.heading1,"ATXHeading2/... SetextHeading2/...":G.heading2,"ATXHeading3/...":G.heading3,"ATXHeading4/...":G.heading4,"ATXHeading5/...":G.heading5,"ATXHeading6/...":G.heading6,"Comment CommentBlock":G.comment,Escape:G.escape,Entity:G.character,"Emphasis/...":G.emphasis,"StrongEmphasis/...":G.strong,"Link/... Image/...":G.link,"OrderedList/... BulletList/...":G.list,"BlockQuote/...":G.quote,"InlineCode CodeText":G.monospace,"URL Autolink":G.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":G.processingInstruction,"CodeInfo LinkLabel":G.labelName,LinkTitle:G.string,Paragraph:G.content}),MH=new rH(new m(sH).extend(jH),Object.keys(JV).map(e=>JV[e]),Object.keys(JV).map(e=>QV[e]),Object.keys(JV),$V,kV,Object.keys(bH).map(e=>bH[e]),Object.keys(bH),[]);function NH(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function PH(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Me((e,r)=>{let i=e.type.id;if(t&&(i==Z.CodeBlock||i==Z.FencedCode)){let n=``;if(i==Z.FencedCode){let t=e.node.getChild(Z.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==Z.CodeText,bracketed:i==Z.FencedCode}}else if(n&&(i==Z.HTMLBlock||i==Z.HTMLTag||i==Z.CommentBlock))return{parser:n,overlay:NH(e.node,e.from,e.to)};return null})}}var FH={resolve:`Strikethrough`,mark:`StrikethroughMark`},IH={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":G.strikethrough}},{name:`StrikethroughMark`,style:G.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=yH.test(r),c=yH.test(i);return e.addDelimiter(FH,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function LH(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function RH(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var zH=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,BH=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&zH.test(r=t.text.slice(t.pos))){let i=[];LH(e,n.content,0,i,n.start)==LH(e,r,0)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];LH(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},VH={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":G.heading}},`TableRow`,{name:`TableCell`,style:G.content},{name:`TableDelimiter`,style:G.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return RH(t.content,0)?new BH:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof BH)||!RH(t.text,t.basePos))return!1;let r=e.peekLine();return zH.test(r)&&LH(e,t.text,t.basePos)==LH(e,r,t.basePos)},before:`SetextHeading`}]},HH=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},UH={defineNodes:[{name:`Task`,block:!0,style:G.list},{name:`TaskMarker`,style:G.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new HH:null},after:`SetextHeading`}]},WH=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,GH=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,KH=/[\w-]+\.[\w-]+($|[/:])/,qH=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,JH=/\/[a-zA-Z\d@.]+/gy;function YH(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function XH(e,t){GH.lastIndex=t;let n=GH.exec(e);if(!n||KH.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&YH(e,t,r,`)`)>YH(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function ZH(e,t){qH.lastIndex=t;let n=qH.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var QH=[VH,UH,IH,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;WH.lastIndex=r;let i=WH.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=XH(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=ZH(e.text,r):(a=ZH(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(JH.lastIndex=a,i=JH.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function $H(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),AV(s))break}return-1}}var eU={defineNodes:[{name:`Superscript`,style:G.special(G.content)},{name:`SuperscriptMark`,style:G.processingInstruction}],parseInline:[{name:`Superscript`,parse:$H(94,`Superscript`,`SuperscriptMark`)}]},tU={defineNodes:[{name:`Subscript`,style:G.special(G.content)},{name:`SubscriptMark`,style:G.processingInstruction}],parseInline:[{name:`Subscript`,parse:$H(126,`Subscript`,`SubscriptMark`)}]},nU={defineNodes:[{name:`Emoji`,style:G.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},rU=55,iU=1,aU=56,oU=2,sU=57,cU=3,lU=4,uU=5,dU=6,fU=7,pU=8,mU=9,hU=10,gU=11,_U=12,vU=13,yU=58,bU=14,xU=15,SU=59,CU=21,wU=23,TU=24,EU=25,DU=27,OU=28,kU=29,AU=32,jU=35,MU=37,NU=38,PU=0,FU=1,IU={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},LU={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},RU={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function zU(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var BU=null,VU=null,HU=0;function UU(e,t){let n=e.pos+t;if(HU==n&&VU==e)return BU;let r=e.peek(t),i=``;for(;zU(r);)i+=String.fromCharCode(r),r=e.peek(++t);return VU=e,HU=n,BU=i?i.toLowerCase():r==qU||r==JU?void 0:null}var WU=60,GU=62,KU=47,qU=63,JU=33,YU=45;function XU(e,t){this.name=e,this.parent=t}var ZU=[dU,hU,fU,pU,mU],QU=new Le({start:null,shift(e,t,n,r){return ZU.indexOf(t)>-1?new XU(UU(r,1)||``,e):e},reduce(e,t){return t==CU&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==dU||i==MU?new XU(UU(r,1)||``,e):e},strict:!1}),$U=new Ee((e,t)=>{if(e.next!=WU){e.next<0&&t.context&&e.acceptToken(yU);return}e.advance();let n=e.next==KU;n&&e.advance();let r=UU(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?xU:bU);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(gU);if(i&&LU[i])return e.acceptToken(yU,-2);if(t.dialectEnabled(PU))return e.acceptToken(_U);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(vU)}else{if(r==`script`)return e.acceptToken(fU);if(r==`style`)return e.acceptToken(pU);if(r==`textarea`)return e.acceptToken(mU);if(IU.hasOwnProperty(r))return e.acceptToken(hU);i&&RU[i]&&RU[i][r]?e.acceptToken(yU,-1):e.acceptToken(dU)}},{contextual:!0}),eW=new Ee(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(SU);break}if(e.next==YU)t++;else if(e.next==GU&&t>=2){n>=3&&e.acceptToken(SU,-2);break}else t=0;e.advance()}});function tW(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}var nW=new Ee((e,t)=>{if(e.next==KU&&e.peek(1)==GU){let n=t.dialectEnabled(FU)||tW(t.context);e.acceptToken(n?uU:lU,2)}else e.next==GU&&e.acceptToken(lU,1)});function rW(e,t,n){let r=2+e.length;return new Ee(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==WU||a==1&&i.next==KU||a>=2&&a<r&&i.next==e.charCodeAt(a-2))a++,o++;else if(a==r&&i.next==GU){s>o?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var iW=rW(`script`,rU,iU),aW=rW(`style`,aU,oU),oW=rW(`textarea`,sU,cU),sW=y({"Text RawText IncompleteTag IncompleteCloseTag":G.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":G.angleBracket,TagName:G.tagName,"MismatchedCloseTag/TagName":[G.tagName,G.invalid],AttributeName:G.attributeName,"AttributeValue UnquotedAttributeValue":G.attributeValue,Is:G.definitionOperator,"EntityReference CharacterReference":G.character,Comment:G.blockComment,ProcessingInst:G.processingInstruction,DoctypeDecl:G.documentMeta}),cW=Ne.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:QU,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[sW],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[iW,aW,oW,nW,$U,eW,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function lW(e,t){let n=Object.create(null);for(let r of e.getChildren(TU)){let e=r.getChild(EU),i=r.getChild(DU)||r.getChild(OU);e&&(n[t.read(e.from,e.to)]=i?i.type.id==DU?t.read(i.from+1,i.to-1):t.read(i.from,i.to):``)}return n}function uW(e,t){let n=e.getChild(wU);return n?t.read(n.from,n.to):` `}function dW(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||=lW(e.node.parent.firstChild,t)))return{parser:i.parser,bracketed:!0};return null}function fW(e=[],t=[]){let n=[],r=[],i=[],a=[];for(let t of e)(t.tag==`script`?n:t.tag==`style`?r:t.tag==`textarea`?i:a).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return Me((e,t)=>{let s=e.type.id;if(s==kU)return dW(e,t,n);if(s==AU)return dW(e,t,r);if(s==jU)return dW(e,t,i);if(s==CU&&a.length){let n=e.node,r=n.firstChild,i=r&&uW(r,t),o;if(i){for(let e of a)if(e.tag==i&&(!e.attrs||e.attrs(o||=lW(r,t)))){let t=n.lastChild,i=t.type.id==NU?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}}if(o&&s==TU){let n=e.node,r;if(r=n.firstChild){let e=o[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=uW(n.parent,t))continue;let e=n.lastChild;if(e.type.id==DU){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(e.type.id==OU)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var pW=148,mW=1,hW=149,gW=150,_W=2,vW=151,yW=3,bW=4,xW=152,SW=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],CW=58,wW=40,TW=95,EW=91,DW=45,OW=46,kW=35,AW=37,jW=38,MW=92,NW=10,PW=42;function FW(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function IW(e){return e>=48&&e<=57}function LW(e){return IW(e)||e>=97&&e<=102||e>=65&&e<=70}var RW=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(FW(c)||c==DW||c==TW||a&&IW(c))!a&&(c!=DW||s>0)&&(a=!0),o===s&&c==DW&&o++,r.advance();else if(c==MW&&r.peek(1)!=NW){if(r.advance(),LW(r.next)){do r.advance();while(LW(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o>=2&&i.canShift(_W)?t:c==wW?n:e);break}}},zW=new Ee(RW(hW,_W,gW),{contextual:!0}),BW=new Ee(RW(vW,yW,bW),{contextual:!0}),VW=new Ee(e=>{if(SW.includes(e.peek(-1))){let{next:t}=e;(FW(t)||t==TW||t==kW||t==OW||t==PW||t==EW||t==CW&&FW(e.peek(1))||t==DW||t==jW)&&e.acceptToken(pW)}}),HW=new Ee(e=>{if(!SW.includes(e.peek(-1))){let{next:t}=e;if(t==AW&&(e.advance(),e.acceptToken(mW)),FW(t)){do e.advance();while(FW(e.next)||IW(e.next));e.acceptToken(mW)}}});function UW(e){let t=e.length;return(t==4||t==5||t==7||t==9)&&/^#[a-f\d]+$/i.test(e)?xW:-1}var WW=y({"AtKeyword import charset namespace keyframes media supports font-feature-values":G.definitionKeyword,"from to selector scope MatchFlag":G.keyword,NamespaceName:G.namespace,KeyframeName:G.labelName,KeyframeRangeName:G.operatorKeyword,TagName:G.tagName,ClassName:G.className,PseudoClassName:G.constant(G.className),IdName:G.labelName,"FeatureName PropertyName":G.propertyName,AttributeName:G.attributeName,NumberLiteral:G.number,KeywordQuery:G.keyword,UnaryQueryOp:G.operatorKeyword,"CallTag ValueName FontName":G.atom,VariableName:G.variableName,Callee:G.operatorKeyword,Unit:G.unit,"UniversalSelector NestingSelector":G.definitionOperator,"MatchOp CompareOp":G.compareOperator,"ChildOp SiblingOp, LogicOp":G.logicOperator,BinOp:G.arithmeticOperator,Important:G.modifier,Comment:G.blockComment,ColorLiteral:G.color,"ParenthesizedContent StringLiteral":G.string,":":G.punctuation,PseudoOp:G.derefOperator,"; , |":G.separator,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace}),GW={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},KW={__proto__:null,or:102,and:102,not:112,only:112,layer:212},qW={__proto__:null,selector:118,style:124,layer:208},JW={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},YW={__proto__:null,to:249},XW=Ne.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO'#GPQOQ`OOP,eO&jO'#CaPOOO)CAa)CAaOOQP'#Ci'#CiOOQP,59R,59RO%`QdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&eQdO,59VO,pQdO,59YOOQP,5:m,5:mO'nQdO,5:oO'yQdO,5:vO'yQdO,5:xO'yQdO,5:yO'yQdO'#F[O,{Q`O,58}O-TQdO'#EaOOQS,58},58}OOQP'#Cq'#CqOOQO'#EP'#EPOOQP,59Y,59YO-[Q`O,59YO-aQ`O,59YO-fQpO'#EUO-qQdO'#EVO-vQ`O'#EVO-{QpO,5:oO.iQaO,5:vO/PQaO,5:yOOQW'#D]'#D]O0OQhO'#DgO0cQhO,5;lO*[QhO'#DeO0pQ`O'#DnO0uQhO'#D{OOQW'#Fx'#FxOOQS,5;l,5;lO0zQ`O'#DhO1PQ`O'#DkOOQS-E9R-E9ROOQ['#Cv'#CvO1UQdO'#CwO1iQdO'#C|O1|QdO'#DPOOQ['#DQ'#DQO2aQ!pO'#DRO4jQ!jO,5;POOQO'#DW'#DWO-aQ`O'#DVO4zQ!nO'#FuO6}Q`O'#DXO7SQ`O'#D|OOQ['#Fu'#FuO7XQhO'#GSO7gQ`O,5;VO7lQ!bO,5;XOOQS'#Eq'#EqO7tQ`O,5;ZO7yQdO,5;ZOOQO'#Et'#EtO8RQ`O,5;^O8WQhO,5;dO'yQdO'#DjOOQS,5;f,5;fO0zQ`O,5;fO8`QdO,5;fOOQS'#Fc'#FcO8hQdO'#FPO7gQ`O,5;iO8pQdO,5:|O9QQdO'#F^O9_Q`O,5<kO9_Q`O,5<kPOOO'#FS'#FSP9jO&jO,58{POOO,58{,58{OOQP1G.m1G.mOOQP1G.q1G.qOOQP1G.t1G.tO-[Q`O1G.tO-aQ`O1G.tO9uQpO1G0ZO9}QaO1G0bO:eQaO1G0dO:{QaO1G0eO;cQaO,5;vOOQO-E9Y-E9YOOQS1G.i1G.iO;mQ`O,5:{O;rQdO'#EQO;yQdO'#CuOOQO'#EX'#EXOOQO,5:q,5:qO-qQdO,5:qOOQP1G0Z1G0ZO)gQdO1G0ZO<QQ!jO'#D]O<`Q!bO,59xO<hQhO,5:ROOQO'#Dc'#DcOOQO'#Fy'#FyO<cQ!bO,59|O<pQhO'#FdO*[QhO,59zO*[QhO'#FdO=hQhO1G1WOOQS1G1W1G1WO=rQhO,5:PO>mQhO'#DoOOQW,5:Y,5:YOOQW,5:g,5:gOOQW,5:S,5:SO>wQhO,5:VO?cQ!fO'#FvOOQS'#Fv'#FvOOQS'#FV'#FVO@pQdO,59cOOQ[,59c,59cOATQdO,59hOOQ[,59h,59hOAhQdO,59kOOQ[,59k,59kOOQ[,59m,59mO)gQdO,59oOA{QhO'#EgOOQW'#Eg'#EgOBjQ`O1G0kO4sQhO1G0kOOQ[,59q,59qO*[QhO'#DZOOQ[,59s,59sOBoQ#tO,5:hOBzQhO'#F`OCXQ`O,5<nOOQS1G0q1G0qOOQS1G0s1G0sOOQS1G0u1G0uOCdQ`O1G0uOCiQdO'#EuOOQS1G0x1G0xOOQS1G1O1G1OOCtQaO,5:UO7gQ`O1G1QOOQS1G1Q1G1QO0zQ`O1G1QOOQS-E9a-E9aOOQS1G1T1G1TOC{Q!fO1G0hODcQ`O'#EdOOQO1G0h1G0hOOQO,5;x,5;xODhQdO,5;xOOQO-E9[-E9[ODuQ`O1G2VPOOO-E9Q-E9QPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%u7+%uO)gQdO7+%uOOQS1G0g1G0gOEQQaO'#F}OE[Q`O,5:lOEaQ!fO'#FUOF_QdO'#FtOFiQ`O,59aOOQO1G0]1G0]OFnQ!bO7+%uO)gQdO1G/dOFyQhO1G/hOOQW1G/m1G/mOOQW1G/f1G/fOG[QhO,5<OOOQW-E9b-E9bOOQS7+&r7+&rOHSQhO'#D]OHbQhO'#F|OHmQ`O'#F|OHrQ`O,5:ZOHwQ!bO'#D_O>wQhO'#DmOISQhO'#DsOI[QhO'#DuOIaQ!jO'#F{OOQO'#F{'#F{OIlQ`O'#DxOItQ!bO'#DzOOQO'#Fz'#FzOIyQ`O1G/qOOQS-E9T-E9TOOQ[1G.}1G.}OOQ[1G/S1G/SOOQ[1G/V1G/VOOQ[1G/Z1G/ZOJOQdO,5;ROOQS7+&V7+&VOJTQ`O7+&VOJYQhO'#D[OJbQ`O,59uO*[QhO,59uOOQ[1G0S1G0SOJjQ`O1G0SOJoQhO,5;zOOQO-E9^-E9^OOQS7+&a7+&aOJ}QbO'#DROOQO'#Ew'#EwOK]Q`O'#EvOOQO'#Ev'#EvOKhQ`O'#FaOKpQdO,5;aOOQS,5;a,5;aOOQ[1G/p1G/pOOQS7+&l7+&lO7gQ`O7+&lOK{Q!fO'#F]O)gQdO'#F]OMSQdO7+&SOOQO7+&S7+&SOOQO,5;O,5;OOOQO1G1d1G1dOMgQ!bO<<IaOMrQdO'#FZOM|Q`O,5<iOOQP1G0W1G0WOOQS-E9S-E9SONUQdO'#FYON`Q`O,5<`OOQ]1G.{1G.{OOQP<<Ia<<IaONhQ`O<<IaONmQdO7+%OOOQO'#D_'#D_ONtQ!bO7+%SON|QhO'#FXO! ZQ`O,5<hO)gQdO,5<hOOQW1G/u1G/uO! cQ`O,5:XO>wQhO'#DtOOQO,5:_,5:_O! hQhO,5:aO! pQhO,5:fO)gQdO,5:dOOQW7+%]7+%]OOQO'#Ei'#EiO! wQ`O1G0mOOQS<<Iq<<IqO)gQdO,59vO!!kQhO1G/aOOQ[1G/a1G/aO!!rQ`O1G/aOOQW-E9U-E9UOOQ[7+%n7+%nOOQO,5;b,5;bOClQdO'#FbOKhQ`O,5;{OOQS,5;{,5;{OOQS-E9_-E9_OOQS1G0{1G0{OOQS<<JW<<JWO!!zQ!fO,5;wOOQS-E9Z-E9ZOOQO<<In<<InOOQPAN>{AN>{O!$RQ`OAN>{O!$WQaO,5;uOOQO-E9X-E9XO!$bQdO,5;tOOQO-E9W-E9WOOQW<<Hj<<HjOOQW<<Hn<<HnO!$lQhO<<HnO!$}QhO'#D]O!%]QhO,5;sO!%hQ`O,5;sOOQO-E9V-E9VO!%mQdO1G2SO!%wQhO1G/sO!&PQ`O,5:`O>wQhO'#DwOOQO1G/{1G/{O!&UQ!bO1G0QO!&^QdO1G0OOJOQdO'#F_O!&eQ`O7+&XOOQW7+&X7+&XO!&mQ!bO1G/bOOQ[7+${7+${O!&xQhO7+${P!'PQ`O'#FWOOQO,5;|,5;|OOQO-E9`-E9`OOQS1G1g1G1gOOQPG24gG24gO!'UQ`OAN>YO)gQdO1G1_O!'ZQ`O7+'nOOQO1G/z1G/zO!'cQ`O,5:cO!'hQhO7+%lOOQO,5;y,5;yOOQO-E9]-E9]OOQW<<Is<<IsOOQ[<<Hg<<HgPOQW,5;r,5;rOOQWG23tG23tO!'oQdO7+&yOOQO1G/}1G/}OOQO<<IW<<IW",stateData:"!(R~O$`OS$aQQ~OWVO^`O`WOcYOdYOlaOo]O#P^O#S_O#YeO#`fO#bgO#dhO#giO#mjO#okO#rlO$ZRO$^ZO$gTO$rZO~OQnOWVO^`O`WOcYOdYOlaOo]O#P^O#S_O#YeO#`fO#bgO#dhO#giO#mjO#okO#rlO$ZmO$^ZO$gTO$rZO~O$X$sP~P!mO$arO~O`YXcYXdYXoYXrYX!eYX#PYX#SYX$YYX$^YX$g[X$rYX~OgYX~P$aO$ZtO~O$gvO~O$gvO`$fXc$fXd$fXo$fXr$fX!e$fX#P$fX#S$fX$Y$fX$^$fX$r$fXg$fX~O$ZwO~O`yOczOdzOo|O#P}O#S!PO$Y!OO$^ZO$rZO~Or!SO!e!QO~P&jOf!YO$Z!UO$[!VO~OW!]O$Z!ZO$g![O~OWVO^`O`WOcYOdYOo]O#P^O#S_O$ZRO$^ZO$gTO$rZO~OS!eOc!fOd!fOh!bOr!SO!Y!dO!]!iO!`!jO$]!aO~Om!hO~P(qOQ!uOh!mOo!nOr!oOv!xO|!vO!q!wO$Z!lO$[!sO$^!pO$k!qO~OS!eOc!fOd!fOh!bO!Y!dO!]!iO!`!jO$]!aO~Or$vP~P*[Ov!}O!q!wO$Z!|O~Ov#PO$Z#PO~Oh#SOr!SO#p#UO~O$Z#WO~Oc#VX~P$aOc#ZO~Om#[O$X$sXq$sX~O$X$sXq$sX~P!mO$b#_O$c#_O$d#aO~Of#fO$Z!UO$[!VO~Or!SO!e!QO~Oq$sP~P!mOh#oO~Oh#pO~On!xX!|!xX$g!zX~O$Z#qO~O$g#sO~On#tO!|#uO~O`yOczOdzOo|O$^ZO$rZO~Or#Oa!e#Oa#P#Oa#S#Oa$Y#Oag#Oa~P.TOr#Ra!e#Ra#P#Ra#S#Ra$Y#Rag#Ra~P.TOS!eOc!fOd!fOh!bO!Y!dO!]!iO!`!jO~OR#zOv#zO$]#vO$^#yO$k!qO~P/gOm$QO!T#}O!e$OO~P(qOh$SO~O$]$UO~Oh#SO~Oh$WO~O`$YOc$YOg$]Ol$YOm$YO~P)gO`$YOc$YOl$YOm$YOn$_O~P)gO`$YOc$YOl$YOm$YOq$aO~P)gOP$bOSuXcuXduXhuXmuXxuX!YuX!]uX!`uX#[uX#^uX$]uX!WuXQuX`uXguXluXouXruXvuX|uX!quX$ZuX$[uX$^uX$kuXnuXquX!euX$XuX$uuX!}uX~Ox$cO#[$dO#^$eOm$vP~P*[Oh#pOS$iXc$iXd$iXm$iXx$iX!Y$iX!]$iX!`$iX#[$iX#^$iX$]$iXQ$iX`$iXg$iXl$iXo$iXr$iXv$iX|$iX!q$iX$Z$iX$[$iX$^$iX$k$iXn$iXq$iX!e$iX$X$iX$u$iX!}$iX~Oh$iO~Oh$kO~O!T#}O!e$lOr$vXm$vX~Or!SO~Om$oOx$cO~Om$pO~Ov$qO!q!wO~Or$rO~Or!SO!T#}O~Or!SO#p$xO~O$Z#WOr#sX~O$u$|Om#Ua$X#Uaq#Ua~P)gOm$QX$X$QXq$QX~P!mOm#[O$X$saq$sa~O$b#_O$c#_O$d%TO~On%VO!|%WO~Or#Oi!e#Oi#P#Oi#S#Oi$Y#Oig#Oi~P.TOr#Qi!e#Qi#P#Qi#S#Qi$Y#Qig#Qi~P.TOr#Ri!e#Ri#P#Ri#S#Ri$Y#Rig#Ri~P.TOr$Oa!e$Oa~P&jOq%XO~Og$qP~P'yOg$hP~P)gOc!RXg!PX!T!PX!W!RX~Oc%aO!W%bO~Og%cO!T#}O~O!T#}OS$WXc$WXd$WXh$WXm$WXr$WX!Y$WX!]$WX!`$WX!e$WX$]$WX~Om%gO!e$OO~P(qO!T#}OS!Xac!Xad!Xah!Xam!Xar!Xa!Y!Xa!]!Xa!`!Xa!e!Xa$]!Xag!Xa~O$]%hOg$pP~P/gOR#zOS!eOh%mOv#zO!Y%nO$]%lO$^#yO$k!qO~Ox$cOQ$jX`$jXc$jXg$jXh$jXl$jXm$jXo$jXr$jXv$jX|$jX!q$jX$Z$jX$[$jX$^$jX$k$jXn$jXq$jX~O`$YOc$YOg%wOl$YOm$YO~P)gO`$YOc$YOl$YOm$YOn%xO~P)gO`$YOc$YOl$YOm$YOq%yO~P)gOh%{OS#ZXc#ZXd#ZXm#ZX!Y#ZX!]#ZX!`#ZX$]#ZX~Om%|O~Og&ROv&SO!r&SO~Or$SX!e$SXm$SX~P*[O!e$lOr$vam$va~Om&VO~Oq&^O$Z&XO$k&WO~Og&_O~P&jOx$cO!e&cO$u$|Om#Ui$X#Uiq#Ui~P)gO$t&fO~Om$Qa$X$Qaq$Qa~P!mOm#[O$X$siq$si~O!e&iOg$qX~P&jOg&kO~Ox$cOQ#xXg#xXh#xXo#xXr#xXv#xX|#xX!e#xX!q#xX$Z#xX$[#xX$^#xX$k#xX~O!e&mOg$hX~P)gOg&oO~On&pOx$cO!}&qO~OR#zOv#zO$]&sO$^#yO$k!qO~O!T#}OS$Wac$Wad$Wah$Wam$War$Wa!Y$Wa!]$Wa!`$Wa!e$Wa$]$Wa~Oc!dXg!PX!T!PX!e!PX~O!T#}O!e&uOg$pX~Oc&wO~Og&xO~Oc!mXg!mX!W!RX~OS!eOh&zO~O!T&|O~O!T&|O!W&}Og$oX~Oc'OOg!lX~O!W&}O~Og'PO~O$Z'QO~Om'SO~Oc'TO!T#}O~Og'VOm'UO~Og'YO~O!T#}Or$Sa!e$Sam$Sa~OP$bOruX!euXguX~O$k&WOr#jX!e#jX~Or!SO!e'[O~Oq'`O$Z&XO$k&WO~Ox$cOQ$PXh$PXm$PXo$PXr$PXv$PX|$PX!e$PX!q$PX$X$PX$Z$PX$[$PX$^$PX$k$PX$u$PXq$PX~O!e&cO$u$|Om#Uq$X#Uqq#Uq~P)gOn'eOx$cO!}'fO~Og#}X!e#}X~P'yO!e&iOg$qa~Og#|X!e#|X~P)gO!e&mOg$ha~On'eO~Og'kO~P)gOg'lO!W'mO~O$]'nOg#{X!e#{X~P/gO!e&uOg$pa~Og'sO~OS!eOh'uO~OS!eO~PFyO`'yOg'{O~OS#zac#zad#zah#za!Y#za!]#za!`#za$]#za~Og'}O~P!!POg'}Om(OO~Ox$cOQ$Pah$Pam$Pao$Par$Pav$Pa|$Pa!e$Pa!q$Pa$X$Pa$Z$Pa$[$Pa$^$Pa$k$Pa$u$Paq$Pa~On(TO~Og#}a!e#}a~P&jOg#|a!e#|a~P)gOR#zOv#zO$]&sO$^#yO$k&WO~Oc!fXg!PX!T!PX!e!PX~O!T#}Og#{a!e#{a~Oc(VO~O!e&uOg$pi~P)gOg!ai!T!ji~Og(XO~O!W(ZOg!ni~Og!li~P)gO`'yOg(^O~Ox$cOg!Oim!Oi~Og(_O~P!!POm(`O~Og(aO~O!e&uOg$pq~Og(cO~OS!eO~P!$lOg#{q!e#{q~P)gO$`!r$a$k`x#S~",goto:"8^$wPPPPP$xP${P%U%h%U%z&^P%UP&d%UPP&jPPP&p&z&zPPPP&zPP&z&z'jP&zP&z(m&zP)])`)f)f)x)fP)f*_P)fP)f)fP*j)fP*v*|+r+uP+x*v+{*v,O,U,X,_,X)f,ePP-Z-a%U-g%U.V.V.].aPP%UP%U%UP.g/c/p/w${P0QP0TP${P${P${P0Z${P0^0a0d0k${P${PP${P0p${P0s0y1Y1t2S2Y2d2j2p2v2|3W3^3d3j3p3vPPPPPPPPPPPP3|4VP4{5O6SP6[7U7k,X7w7zP7}PP8TRsQ_bOPdp!S#[%Pq`OP^_dp}!O!P!Q!S#S#[#o%P&iqSOP^_dp}!O!P!Q!S#S#[#o%P&iqUOP^_dp}!O!P!Q!S#S#[#o%P&iQuTR#bvQxWR#cyQ!WYR#dzQ#d!YS$h!t!uR%U#f!Z!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(b!Y!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bb#z!b$W%b%m&z&}'m'u(ZU&Z$r&]'[R'Z&Y!Z!teg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bR$j!vQ&P$iR'W&Qq!gafj!b!c!d!r#}$O$P$S$g$i$l&Q&uQ#w!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(Zc#z!b$W%b%m&z&}'m'u(ZQ#VkQ$V!iQ$v#UR&a$xX%q$W%m&z'up!gafj!b!c!d!r#}$O$P$S$g$i$l&Q&uW%p$W%m&z'uQ&{%nQ'v&|Q'w&}R(d(ZR$T!eR%j$SR'p&uR&{%nX%o$W%m&z'uR'v&|X%t$W%m&z'uX%r$W%m&z'u!Y!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bQ!}hR$q#OQ!XYR#ezQ#d!XR%U#ep[OP^_dp}!O!P!Q!S#S#[#o%P&ie{X!_!`#h#i#j#k$u%Y'gQ!^]R#g|T!]]|Q#r![R%_#sQ!TXQ!haQ#TkQ#m!RQ$Q!cQ$n!zQ$t#RQ$w#VQ$z#YQ%g$PQ&`$vQ'^&[Q'a&aR(S']SoP!SQ#^pQ%O#[R&g%PZnPp!S#[%PQ$}#ZQ&e${R'd&dR$g!rQ'R%{R(['yR#OhR#QiR$s#QS&[$r&]R(Q'[V&Y$r&]'[R#YlQ#`rR%S#`QdOSpP!SU!kdp%PR%P#[Q%]#p[&l%]&r'i'r'x(bQ&r%aQ'i&mQ'r&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:176,nodeProps:[[`isolate`,-2,5,38,``],[`openedBy`,23,`(`,30,`[`,33,`{`],[`closedBy`,24,`)`,31,`]`,34,`}`]],propSources:[WW],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$`~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$`~!r`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$uYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOv~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+maOy%jz}%j}!O,r!O!Q%j!Q![,r![!c%j!c!},r!}#O%j#O#P.O#P#R%j#R#S,r#S#T%j#T#o,r#o$g%j$g;'S,r;'S;=`/q<%lO,rj,ya$rY!r`Oy%jz}%j}!O,r!O!Q%j!Q![,r![!c%j!c!},r!}#O%j#O#P.O#P#R%j#R#S,r#S#T%j#T#o,r#o$g%j$g;'S,r;'S;=`/q<%lO,rj.TV!r`OY,rYZ%jZy,ryz.jz;'S,r;'S;=`/q<%lO,rY.oX$rY}!O.j!Q![.j!c!}.j#O#P/[#R#S.j#T#o.j$g;'S.j;'S;=`/k<%lO.jY/_SOY.jZ;'S.j;'S;=`/k<%lO.jY/nP;=`<%l.jj/tP;=`<%l,rd/zUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jd0eS!|S!r`Oy%jz;'S%j;'S;=`%{<%lO%jb0vS^QOy%jz;'S%j;'S;=`%{<%lO%j~1VWOY1SZw1Swx*cx#O1S#O#P1o#P;'S1S;'S;=`2k<%lO1S~1rRO;'S1S;'S;=`1{;=`O1S~2OXOY1SZw1Swx*cx#O1S#O#P1o#P;'S1S;'S;=`2k;=`<%l1S<%lO1S~2nP;=`<%l1Sj2vShYOy%jz;'S%j;'S;=`%{<%lO%j~3XOg~n3`UWQxWOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jj3yWxW#SQOy%jz!O%j!O!P4c!P!Q%j!Q![7h![;'S%j;'S;=`%{<%lO%jj4hU!r`Oy%jz!Q%j!Q![4z![;'S%j;'S;=`%{<%lO%jj5RY!r`$kYOy%jz!Q%j!Q![4z![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj5vY!r`Oy%jz{%j{|6f|}%j}!O6f!O!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj6kU!r`Oy%jz!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj7UU!r`$kYOy%jz!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj7o[!r`$kYOy%jz!O%j!O!P4z!P!Q%j!Q![7h![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj8jS!eYOy%jz;'S%j;'S;=`%{<%lO%jj8{WxWOy%jz!O%j!O!P4c!P!Q%j!Q![7h![;'S%j;'S;=`%{<%lO%jj9jU`YOy%jz!Q%j!Q![4z![;'S%j;'S;=`%{<%lO%j~:RTxWOy%jz{:b{;'S%j;'S;=`%{<%lO%j~:iS!r`$a~Oy%jz;'S%j;'S;=`%{<%lO%jj:z[$kYOy%jz!O%j!O!P4z!P!Q%j!Q![7h![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj;uUcYOy%jz![%j![!]<X!];'S%j;'S;=`%{<%lO%jj<`SdY!r`Oy%jz;'S%j;'S;=`%{<%lO%jj<qSmYOy%jz;'S%j;'S;=`%{<%lO%jh=SU!WWOy%jz!_%j!_!`=f!`;'S%j;'S;=`%{<%lO%jh=mS!WW!r`Oy%jz;'S%j;'S;=`%{<%lO%jl>QS!WW!|SOy%jz;'S%j;'S;=`%{<%lO%jj>eV#PQ!WWOy%jz!_%j!_!`=f!`!a>z!a;'S%j;'S;=`%{<%lO%jb?RS#PQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jj?bYOy%jz}%j}!O@Q!O!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jj@VW!r`Oy%jz!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jj@v[lY!r`Oy%jz}%j}!O@o!O!Q%j!Q![@o![!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jhAqS!}WOy%jz;'S%j;'S;=`%{<%lO%jjBSSoYOy%jz;'S%j;'S;=`%{<%lO%jnBeSn^Oy%jz;'S%j;'S;=`%{<%lO%jjBvU!}WOy%jz#a%j#a#bCY#b;'S%j;'S;=`%{<%lO%jbC_U!r`Oy%jz#d%j#d#eCq#e;'S%j;'S;=`%{<%lO%jbCvU!r`Oy%jz#c%j#c#dDY#d;'S%j;'S;=`%{<%lO%jbD_U!r`Oy%jz#f%j#f#gDq#g;'S%j;'S;=`%{<%lO%jbDvU!r`Oy%jz#h%j#h#iEY#i;'S%j;'S;=`%{<%lO%jbE_U!r`Oy%jz#T%j#T#UEq#U;'S%j;'S;=`%{<%lO%jbEvU!r`Oy%jz#b%j#b#cFY#c;'S%j;'S;=`%{<%lO%jbF_U!r`Oy%jz#h%j#h#iFq#i;'S%j;'S;=`%{<%lO%jbFxS$tQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjGZSrYOy%jz;'S%j;'S;=`%{<%lO%jfGlU$gUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jjHTSqYOy%jz;'S%j;'S;=`%{<%lO%jfHfU#SQOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%j`H{P;=`<%l%Z",tokenizers:[VW,HW,zW,BW,1,2,3,4,new _e(`m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~`,28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(e,t)=>UW(e)<<1,external:UW},{term:150,get:e=>GW[e]||-1},{term:151,get:e=>KW[e]||-1},{term:4,get:e=>qW[e]||-1},{term:28,get:e=>JW[e]||-1},{term:149,get:e=>YW[e]||-1}],tokenPrec:2433}),ZW=nt({css:()=>mG,cssCompletionSource:()=>fG,cssLanguage:()=>pG,defineCSSCompletionSource:()=>dG}),QW=null;function $W(){if(!QW&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));QW=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return QW||[]}var eG=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),tG=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),nG=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),rG=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),iG=/^(\w[\w-]*|-\w[\w-]*|)$/,aG=/^-(-[\w-]*)?$/;function oG(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`&&t.sliceString(n.from,n.to)==`var`}var sG=new ne,cG=[`Declaration`];function lG(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function uG(e,t,n){if(t.to-t.from>4096){let i=sG.get(t);if(i)return i;let a=[],o=new Set,s=t.cursor(r.IncludeAnonymous);if(s.firstChild())do for(let t of uG(e,s.node,n))o.has(t.label)||(o.add(t.label),a.push(t));while(s.nextSibling());return sG.set(t,a),a}{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(cG)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var dG=e=>t=>{let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:$W(),validFor:iG};if(i.name==`ValueName`)return{from:i.from,options:tG,validFor:iG};if(i.name==`PseudoClassName`)return{from:i.from,options:eG,validFor:iG};if(e(i)||(t.explicit||a)&&oG(i,n.doc))return{from:e(i)||a?i.from:r,options:uG(n.doc,lG(i),e),validFor:aG};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:$W(),validFor:iG};return{from:i.from,options:nG,validFor:iG}}if(i.name==`AtKeyword`)return{from:i.from,options:rG,validFor:iG};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:eG,validFor:iG}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:tG,validFor:iG}:o.name==`Block`||o.name==`Styles`?{from:r,options:$W(),validFor:iG}:null},fG=dG(e=>e.name==`VariableName`),pG=Fe.define({name:`css`,parser:XW.configure({props:[s.add({Declaration:he()}),a.add({"Block KeyframeList":We})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function mG(){return new ze(pG,pG.data.of({autocomplete:fG}))}var hG=317,gG=318,_G=1,vG=2,yG=3,bG=4,xG=319,SG=321,CG=322,wG=5,TG=6,EG=0,DG=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],OG=125,kG=59,AG=47,jG=42,MG=43,NG=45,PG=60,FG=44,IG=63,LG=46,RG=91,zG=new Le({start:!1,shift(e,t){return t==wG||t==TG||t==SG?e:t==CG},strict:!1}),BG=new Ee((e,t)=>{let{next:n}=e;(n==OG||n==-1||t.context)&&e.acceptToken(xG)},{contextual:!0,fallback:!0}),VG=new Ee((e,t)=>{let{next:n}=e,r;DG.indexOf(n)>-1||(n!=AG||(r=e.peek(1))!=AG&&r!=jG)&&n!=OG&&n!=kG&&n!=-1&&!t.context&&e.acceptToken(hG)},{contextual:!0}),HG=new Ee((e,t)=>{e.next==RG&&!t.context&&e.acceptToken(gG)},{contextual:!0}),UG=new Ee((e,t)=>{let{next:n}=e;if(n==MG||n==NG){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(_G);e.acceptToken(n?_G:vG)}}else n==IG&&e.peek(1)==LG&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(yG))},{contextual:!0});function WG(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}var GG=new Ee((e,t)=>{if(e.next!=PG||!t.dialectEnabled(EG)||(e.advance(),e.next==AG))return;let n=0;for(;DG.indexOf(e.next)>-1;)e.advance(),n++;if(WG(e.next,!0)){for(e.advance(),n++;WG(e.next,!1);)e.advance(),n++;for(;DG.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==FG)return;for(let t=0;;t++){if(t==7){if(!WG(e.next,!0))return;break}if(e.next!=`extends`.charCodeAt(t))break;e.advance(),n++}}e.acceptToken(bG,-n)}),KG=y({"get set async static":G.modifier,"for while do if else switch try catch finally return throw break continue default case defer":G.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":G.operatorKeyword,"let var const using function class extends":G.definitionKeyword,"import export from":G.moduleKeyword,"with debugger new":G.keyword,TemplateString:G.special(G.string),super:G.atom,BooleanLiteral:G.bool,this:G.self,null:G.null,Star:G.modifier,VariableName:G.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":G.function(G.variableName),VariableDefinition:G.definition(G.variableName),Label:G.labelName,PropertyName:G.propertyName,PrivatePropertyName:G.special(G.propertyName),"CallExpression/MemberExpression/PropertyName":G.function(G.propertyName),"FunctionDeclaration/VariableDefinition":G.function(G.definition(G.variableName)),"ClassDeclaration/VariableDefinition":G.definition(G.className),"NewExpression/VariableName":G.className,PropertyDefinition:G.definition(G.propertyName),PrivatePropertyDefinition:G.definition(G.special(G.propertyName)),UpdateOp:G.updateOperator,"LineComment Hashbang":G.lineComment,BlockComment:G.blockComment,Number:G.number,String:G.string,Escape:G.escape,ArithOp:G.arithmeticOperator,LogicOp:G.logicOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,RegExp:G.regexp,Equals:G.definitionOperator,Arrow:G.function(G.punctuation),": Spread":G.punctuation,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace,"InterpolationStart InterpolationEnd":G.special(G.brace),".":G.derefOperator,", ;":G.separator,"@":G.meta,TypeName:G.typeName,TypeDefinition:G.definition(G.typeName),"type enum interface implements namespace module declare":G.definitionKeyword,"abstract global Privacy readonly override":G.modifier,"is keyof unique infer asserts":G.operatorKeyword,JSXAttributeValue:G.attributeValue,JSXText:G.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":G.angleBracket,"JSXIdentifier JSXNameSpacedName":G.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":G.attributeName,"JSXBuiltin/JSXIdentifier":G.standard(G.tagName)}),qG={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},JG={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403},YG={__proto__:null,"<":193},XG=Ne.deserialize({version:14,states:"$GSQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`O'#KaO<]Q`O'#G|O<]Q`O'#G}O<]Q`O'#HPO9kQ`O'#HSO=SQ`O'#HVO>kQ`O'#CeO>{Q`O'#HdO?TQ`O'#HjO?TQ`O'#HlO`QlO'#HnO?TQ`O'#HpO?TQ`O'#HsO?YQ`O'#HyO?_Q!0LsO'#IPO%[QlO'#IRO?jQ!0LsO'#ITO?uQ!0LsO'#IVO9uQ!0LrO'#IXO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FfOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jw'#JwO%[QlO'#JwOOQO'#Jz'#JzOOQO'#Ii'#IiOCQQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#KO'#KOOC|Q!0MSO'#EgODWQpO'#EWOOQO'#Jy'#JyODlQpO'#JzOEyQpO'#EWODWQpO'#EgPFWO&2DjO'#CbPOOO)CEO)CEOOOOO'#Ia'#IaOFcO#tO,59UOOQ!0Lh,59U,59UOOOO'#Ib'#IbOFqO&jO,59UOGPQ!L^O'#DcOOOO'#Id'#IdOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO'#IeOGyQ`O'#JuOIxQ!fO'#JuO+}QlO'#JuOJPQ`O,5:ROJgQ`O'#EpOJtQ`O'#KUOKPQ`O'#KTOKPQ`O'#KTOKXQ`O,5;^OK^Q`O'#KSOOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO'#KRONtQ`O'#KQO9eQ`O'#KQO! YQ`O'#KQO! bQ`O,5;]O! gQ`O'#KQO!#lQ!fO'#JtOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$[Q!fO,5:sOOQS'#J{'#J{OOQO-E<k-E<kO9kQ`O,5=`O!$rQ`O,5=`O!$wQlO,5;ZO!&zQMhO'#EkO!(eQ`O,5;ZO!(jQlO'#DyO!(tQpO,5;eO!(|QpO,5;eO%[QlO,5;eOOQ['#FU'#FUOOQ['#FW'#FWO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fOOQ['#F['#F[O!)[QlO,5;uOOQ!0Lf,5;z,5;zOOQ!0Lf,5;{,5;{OOQ!0Lf,5;},5;}O%[QlO'#IqO!+_Q!0LrO,5<jO%[QlO,5;fO!&zQMhO,5;fO!+|QMhO,5;fO!-nQMhO'#E^O%[QlO,5;xOOQ!0Lf,5;|,5;|O!-uQ,UO'#FkO!.rQ,UO'#KYO!.^Q,UO'#KYO!.yQ,UO'#KYOOQO'#KY'#KYO!/_Q,UO,5<TOOOW,5<a,5<aO!/pQlO'#FwOOOW'#Ip'#IpO7VO7dO,5<RO!/wQ,UO'#FyOOQ!0Lf,5<R,5<RO!0hQ$IUO'#CyOOQ!0Lh'#C}'#C}O!0{O#@ItO'#DRO!1iQMjO,5<fO!1pQ`O,5<iO!3YQ(CWO'#GYO!3jQ`O'#GZO!3oQ`O'#GZO!5_Q(CWO'#G_O!6dQpO'#GcOOQO'#Go'#GoO!,TQMhO'#GnOOQO'#Gq'#GqO!,TQMhO'#GpO!7VQ$IUO'#JmOOQ!0Lh'#Jm'#JmO!7aQ`O'#JlO!7oQ`O'#JkO!7wQ`O'#CuOOQ!0Lh'#C{'#C{O!8YQ`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO!8_Q`O,5<fO1SQ`O'#DZO!,TQMhO'#GQO!,TQMhO'#GSO!8gQ`O'#GUO!8lQ`O'#GVO!3oQ`O'#G]O!,TQMhO'#GbO<]Q`O'#JlO!8qQ`O'#EqO!9`Q`O,5<hOOQ!0Lb'#Cr'#CrO!9hQ`O'#ErO!:bQpO'#EsOOQ!0Lb'#KS'#KSO!:iQ!0LrO'#KbO9uQ!0LrO,5=dO`QlO,5>uOOQ['#Ji'#JiOOQ[,5>v,5>vOOQ[-E<^-E<^O!<hQ!0MxO,5:bO!=[QpO,5:`O!?WQ!0MxO,5:jO%[QlO,5:jO!AnQ!0MxO,5:lOOQO,5@{,5@{O!B_QMhO,5=`O!BmQ!0LrO'#JjO9`Q`O'#JjO!COQ!0LrO,59ZO!CZQpO,59ZO!CcQMhO,59ZO:dQMhO,59ZO!CnQ`O,5;ZO!CvQ`O'#HcO!D[Q`O'#KeO%[QlO,5<OO!=[QpO,5<QO!DdQ`O,5={O!DiQ`O,5={O!DnQ`O,5={O!D|Q`O,5={O9uQ!0LrO,5={O<]Q`O,5=kOOQO'#Cy'#CyO!ETQpO,5=hO!E]QMhO,5=iO!EhQ`O,5=kO!EmQ!bO,5=nO!EuQ`O'#KaO?YQ`O'#HXO9kQ`O'#HZO!EzQ`O'#HZO:dQMhO'#H]O!FPQ`O'#H]OOQ[,5=q,5=qO!FUQ`O'#H^O!FgQ`O'#CoO!FlQ`O,59PO!FvQ`O,59PO!H{QlO,59POOQ[,59P,59PO!I]Q!0LrO,59PO%[QlO,59PO!KhQlO'#HfOOQ['#Hg'#HgOOQ['#Hh'#HhO`QlO,5>OO!LOQ`O,5>OO`QlO,5>UO`QlO,5>WO!LTQ`O,5>YO`QlO,5>[O!LYQ`O,5>_O!L_QlO,5>eOOQ[,5>k,5>kO%[QlO,5>kO9uQ!0LrO,5>mOOQ[,5>o,5>oO#!iQ`O,5>oOOQ[,5>q,5>qO#!iQ`O,5>qOOQ[,5>s,5>sO##VQpO'#D_O%[QlO'#JwO##aQpO'#JwO##{QpO'#DmO#$^QpO'#DmO#&oQlO'#DmO#&vQ`O'#JvO#'OQ`O,5:WO#'TQ`O'#EtO#'`Q`O'#EtO#'eQ`O'#KVO#'mQ`O,5;_O#'rQpO'#DmO#(PQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CZQpO,5;YO!CcQMhO,5;YO:dQMhO,5;YO#(`Q`O,5@cO#(eQ07dO,5:sOOQO-E<g-E<gO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!COQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CZQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO'#I_'#I_P#+RO&2DjO,58|POOO,58|,58|OOOO-E<_-E<_OOQ!0Lh1G.p1G.pOOOO-E<`-E<`OOOO,59},59}O#+^Q!bO,59}OOOO-E<b-E<bOOQ!0Lf1G/g1G/gO#+cQ!fO,5?PO+}QlO,5?POOQO,5?V,5?VO#+mQlO'#IeOOQO-E<c-E<cO#+zQ`O,5@aO#,SQ!fO,5@aO#,ZQ`O,5@oOOQ!0Lf1G/m1G/mO%[QlO,5@pO#,cQ`O'#IkOOQO-E<i-E<iO#,ZQ`O,5@oOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@mO#,wQ!0LrO,5@mO#-YQ!0LrO,5@mO#-aQ`O,5@lO9eQ`O,5@lO#-iQ`O,5@lO#-wQ`O'#InO#-aQ`O,5@lOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2zO9kQ`O1G2zOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh'#GX'#GXO#0rQ!0MzO'#JmO!$wQlO1G0uO#2}Q!fO'#JxO%[QlO'#JxO#3XQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1P1G1PO%[QlO1G1POOQ!0Lf1G1g1G1gO#3^Q`O1G1PO#5rQ!0MxO1G1QO#5yQ!0MxO1G1QO#8aQ!0MxO1G1QO#8hQ!0MxO1G1QO#;OQ!0MxO1G1QO#=fQ!0MxO1G1QO#=mQ!0MxO1G1QO#=tQ!0MxO1G1QO#@[Q!0MxO1G1QO#@cQ!0MxO1G1QO#BpQ?MtO'#CiO#DkQ?MtO1G1aO#DrQ?MtO'#JtO#EVQ!0MxO,5?]OOQ!0Lb-E<o-E<oO#GdQ!0MxO1G1QO#HaQ!0MzO1G1QOOQ!0Lf1G1Q1G1QO#IdQMjO'#J}O#InQ`O,5:xO#IsQ!0MxO1G1dO#JgQ,UO,5<XO#JoQ,UO,5<YO#JwQ,UO'#FpO#K`Q`O'#FoOOQO'#KZ'#KZOOQO'#Io'#IoO#KeQ,UO1G1oOOQ!0Lf1G1o1G1oOOOW1G1z1G1zO#KvQ?MtO'#JsO#LQQ`O,5<cO!)[QlO,5<cOOOW-E<n-E<nOOQ!0Lf1G1m1G1mO#LVQpO'#KYOOQ!0Lf,5<e,5<eO#L_QpO,5<eO#LdQMhO'#DTOOOO'#Ic'#IcO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2QO!8lQ`O'#IsO#LvQ`O,5<{OOQ!0Lh,5<x,5<xO!,TQMhO'#IvO#MdQMjO,5=YO!,TQMhO'#IxO#NVQMjO,5=[O!&zQMhO,5=^OOQO1G2T1G2TO#NaQ!dO'#CrO#NtQ(CWO'#ErO$ |QpO'#GcO$!dQ!dO,5<tO$!kQ`O'#K]O9eQ`O'#K]O$!yQ`O,5<vO$#aQ!dO'#C{O!,TQMhO,5<uO$#kQ`O'#G[O$$PQ`O,5<uO$$UQ!dO'#GXO$$cQ!dO'#K^O$$mQ`O'#K^O!&zQMhO'#K^O$$rQ`O,5<yO$$wQlO'#JwO$%RQpO'#GdO#$^QpO'#GdO$%dQ`O'#GhO!3oQ`O'#GlO$%iQ!0LrO'#IuO$%tQpO,5<}OOQ!0Lp,5<},5<}O$%{QpO'#GdO$&YQpO'#GeO$&kQpO'#GeO$&pQMjO,5=YO$'QQMjO,5=[OOQ!0Lh,5=_,5=_O!,TQMhO,5@WO!,TQMhO,5@WO$'bQ`O'#IzO$'vQ`O,5@VO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@WO$)TQ$IYO,59uOOQ!0Lh'#Jq'#JqO$)vQMjO,5<lO$*iQMjO,5<nO@zQ`O,5<pOOQ!0Lh,5<q,5<qO$*sQ`O,5<wO$*xQMjO,5<|O$+YQ`O'#KQO!$wQlO1G2SO$+_Q`O1G2SO9eQ`O'#KTO$+dQ`O'#D_O9eQ`O'#EtO%[QlO'#EtO9eQ`O'#I|O$+rQ!0LrO,5@|OOQ[1G3O1G3OOOQ[1G4a1G4aOOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-tQ!0MxO1G0UOOQ[1G2z1G2zO!&zQMhO1G2zO%[QlO1G2zO#.tQ`O1G2zO$/xQMhO'#EkOOQ!0Lb,5@U,5@UO$0VQ!0LrO,5@UOOQ[1G.u1G.uO!COQ!0LrO1G.uO!CZQpO1G.uO!CcQMhO1G.uO$0hQ`O1G0uO$0mQ`O'#CiO$0xQ`O'#KfO$1QQ`O,5=}O$1VQ`O'#KfO$1[Q`O'#KfO$1jQ`O'#JSO$1xQ`O,5APO$2QQ!fO1G1jOOQ!0Lf1G1l1G1lO9kQ`O1G3gO@zQ`O1G3gO$2XQ`O1G3gO$2^Q`O1G3gO!DnQ`O1G3gO9uQ!0LrO1G3gOOQ[1G3g1G3gO!EhQ`O1G3VO!&zQMhO1G3SO$2cQ`O1G3SOOQ[1G3T1G3TO!&zQMhO1G3TO$2hQ`O1G3TO$2pQpO'#HROOQ[1G3V1G3VO!6_QpO'#JOO!EmQ!bO1G3YOOQ[1G3Y1G3YOOQ[,5=s,5=sO$2xQMhO,5=uO9kQ`O,5=uO$%dQ`O,5=wO9`Q`O,5=wO!CZQpO,5=wO!CcQMhO,5=wO:dQMhO,5=wO$3WQ`O'#KdO$3cQ`O,5=xOOQ[1G.k1G.kO$3hQ!0LrO1G.kO@zQ`O1G.kO$3sQ`O1G.kO9uQ!0LrO1G.kO$5{Q!fO,5ARO$6YQ`O,5ARO9eQ`O,5ARO$6eQlO,5>QO$6lQ`O,5>QOOQ[1G3j1G3jO`QlO1G3jOOQ[1G3p1G3pOOQ[1G3r1G3rO?TQ`O1G3tO$6qQlO1G3vO$:uQlO'#HuOOQ[1G3y1G3yO$;SQ`O'#H{O?YQ`O'#H}OOQ[1G4P1G4PO$;[QlO1G4PO9uQ!0LrO1G4VOOQ[1G4X1G4XOOQ!0Lb'#G`'#G`O9uQ!0LrO1G4ZO9uQ!0LrO1G4]O$?cQ`O,5@cO9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CZQpO,5:XO$?hQ?MtO,5:XOOQO,5;`,5;`O$?rQpO'#IfO$@YQ`O,5@bOOQ!0Lf1G/r1G/rO!)[QlO,5;`O$@bQpO'#IlO$@lQ`O,5@qOOQ!0Lb1G0y1G0yO#$^QpO,5:XOOQO'#Ih'#IhO$@tQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CZQpO1G0tO!CcQMhO1G0tOOQ!0Lb1G5}1G5}O!COQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@{Q!0LrO1G0mO$AWQ!0LrO1G0mO!CZQpO1G0^ODWQpO1G0^O$AfQ!0LrO1G0mOOQO1G0^1G0^O$AzQ!0MxO1G0mPOOO-E<]-E<]POOO1G.h1G.hOOOO1G/i1G/iO$BUQ!bO,5<jO$B^Q!fO1G4kOOQO1G4q1G4qO%[QlO,5?PO$BhQ`O1G5{O$BpQ`O1G6ZO$BxQ!fO1G6[O9eQ`O,5?VO$CSQ!0MxO1G6XO%[QlO1G6XO$CdQ!0LrO1G6XO$CuQ`O1G6WO$CuQ`O1G6WO9eQ`O1G6WO$C}Q`O,5?YO9eQ`O,5?YOOQO,5?Y,5?YO$DcQ`O,5?YO$+YQ`O,5?YOOQO-E<l-E<lOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(f7+(fO!&zQMhO7+(fO%[QlO7+(fO$DqQ`O7+(fO$D|QMhO7+(fO$E[Q!0MzO,5=YO$GgQ!0MzO,5=[O$IrQ!0MzO,5=YO$LTQ!0MzO,5=[O$NfQ!0MzO,59uO%!kQ!0MzO,5<lO%$vQ!0MzO,5<nO%'RQ!0MzO,5<|OOQ!0Lf7+&a7+&aO%)dQ!0MxO7+&aO%*WQlO'#IgO%*eQ`O,5@dO%*mQ!fO,5@dOOQ!0Lf1G0P1G0PO%*wQ`O7+&kOOQ!0Lf7+&k7+&kO%*|Q?MtO,5:fO%[QlO7+&{O%+WQ?MtO,5:bO%+eQ?MtO,5:jO%+oQ?MtO,5:lO%+yQMhO'#IjO%,TQ`O,5@iOOQ!0Lh1G0d1G0dOOQO1G1s1G1sOOQO1G1t1G1tO%,]Q!jO,5<[O!)[QlO,5<ZOOQO-E<m-E<mOOQ!0Lf7+'Z7+'ZOOOW7+'f7+'fOOOW1G1}1G1}O%,hQ`O1G1}OOQ!0Lf1G2P1G2POOOO,59o,59oO%,mQ!dO,59oOOOO-E<a-E<aOOQ!0Lh1G/X1G/XO%,tQ!0MxO7+'lOOQ!0Lh,5?_,5?_O%-hQMhO1G2gP%-oQ`O'#IsPOQ!0Lh-E<q-E<qO%.]QMjO,5?bOOQ!0Lh-E<t-E<tO%/OQMjO,5?dOOQ!0Lh-E<v-E<vO%/YQ!dO1G2xO%/aQ!dO'#CrO%/wQMhO'#KTO$$wQlO'#JwOOQ!0Lh1G2`1G2`O%0RQ`O'#IrO%0jQ`O,5@wO%0jQ`O,5@wO%0rQ`O,5@wO%0}Q`O,5@wOOQO1G2b1G2bO%1]QMjO1G2aO$+YQ`O'#K]O!,TQMhO1G2aO%1mQ(CWO'#ItO%1zQ`O,5@xO!&zQMhO,5@xO%2SQ!dO,5@xOOQ!0Lh1G2e1G2eO%4dQ!fO'#CiO%4nQ`O,5=QOOQ!0Lb,5=O,5=OO%4vQpO,5=OOOQ!0Lb,5=P,5=POCwQ`O,5=OO%5RQpO,5=OOOQ!0Lb,5=S,5=SO$+YQ`O,5=WOOQO,5?a,5?aOOQO-E<s-E<sOOQ!0Lp1G2i1G2iO#$^QpO,5=OO$$wQlO,5=QO%5aQ`O,5=PO%5lQpO,5=PO!,TQMhO'#IvO%6fQMjO1G2tO!,TQMhO'#IxO%7XQMjO1G2vO%7cQMjO1G5rO%7mQMjO1G5rOOQO,5?f,5?fOOQO-E<x-E<xOOQO1G.{1G.{O!,TQMhO1G5rO!,TQMhO1G5rO!=[QpO,59wO%[QlO,59wOOQ!0Lh,5<k,5<kO%7zQ`O1G2[O!,TQMhO1G2cO%8PQ!0MxO7+'nOOQ!0Lf7+'n7+'nO!$wQlO7+'nO%8sQ`O,5;`OOQ!0Lb,5?h,5?hOOQ!0Lb-E<z-E<zO%8xQ!dO'#K_O#(ZQ`O7+(fO4UQ!fO7+(fO$DtQ`O7+(fO%9SQ!0MvO'#CiO%9gQ!0MvO,5=TO%9zQ`O,5=TO%:SQ`O,5=TOOQ!0Lb1G5p1G5pOOQ[7+$a7+$aO!COQ!0LrO7+$aO!CZQpO7+$aO!$wQlO7+&aO%:XQ`O'#JRO%:pQ`O,5AQOOQO1G3i1G3iO9kQ`O,5AQO%:pQ`O,5AQO%:xQ`O,5AQOOQO,5?n,5?nOOQO-E=Q-E=QOOQ!0Lf7+'U7+'UO%:}Q`O7+)RO9uQ!0LrO7+)RO9kQ`O7+)RO@zQ`O7+)RO%;SQ`O7+)ROOQ[7+)R7+)ROOQ[7+(q7+(qO%;XQ!0MvO7+(nO!&zQMhO7+(nO!EcQ`O7+(oOOQ[7+(o7+(oO!&zQMhO7+(oO%;cQ`O'#KcO%;nQ`O,5=mOOQO,5?j,5?jOOQO-E<|-E<|OOQ[7+(t7+(tO%=QQpO'#H[OOQ[1G3a1G3aO!&zQMhO1G3aO%[QlO1G3aO%=XQ`O1G3aO%=dQMhO1G3aO9uQ!0LrO1G3cO$%dQ`O1G3cO9`Q`O1G3cO!CZQpO1G3cO!CcQMhO1G3cO%=rQ`O'#JQO%>WQ`O,5AOO%>`QpO,5AOOOQ!0Lb1G3d1G3dOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>kQ`O7+$VO%[QlO1G6mO%[QlO1G6nO%>pQ!0LrO1G6mO%>zQlO1G3lO%?RQ`O1G3lO%?WQlO1G3lOOQ[7+)U7+)UO9uQ!0LrO7+)`O`QlO7+)bOOQ['#Ki'#KiOOQ['#JT'#JTO%?_QlO,5>aOOQ[,5>a,5>aO%[QlO'#HvO%?lQ`O'#HxOOQ[,5>g,5>gO9eQ`O,5>gOOQ[,5>i,5>iOOQ[7+)k7+)kOOQ[7+)q7+)qOOQ[7+)u7+)uOOQ[7+)w7+)wO%?qQpO1G5}O%@]Q`O1G0zOOQO1G/s1G/sO%@hQ?MtO1G/sO?YQ`O1G/sO!)[QlO'#DmOOQO,5?Q,5?QOOQO-E<d-E<dO%@rQ?MtO1G0zOOQO,5?W,5?WOOQO-E<j-E<jO!CZQpO1G/sOOQO-E<f-E<fOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CZQpO7+&`OOQO7+%x7+%xO$AzQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@|Q!0LrO7+&XO!COQ!0LrO7+%xO!CZQpO7+%xO%AXQ!0LrO7+&XO%AgQ!0MxO7++sO%[QlO7++sO%AwQ`O7++rO%AwQ`O7++rOOQO1G4t1G4tO9eQ`O1G4tO%BPQ`O1G4tOOQS7+%}7+%}O#(ZQ`O<<LQO4UQ!fO<<LQO%B_Q`O<<LQOOQ[<<LQ<<LQO!&zQMhO<<LQO%[QlO<<LQO%BgQ`O<<LQO%BrQ!0MzO,5?bO%D}Q!0MzO,5?dO%GYQ!0MzO1G2aO%IkQ!0MzO1G2tO%KvQ!0MzO1G2vO%NRQ!fO,5?RO%[QlO,5?ROOQO-E<e-E<eO%N]Q`O1G6OOOQ!0Lf<<JV<<JVO%NeQ?MtO1G0uO&!lQ?MtO1G1QO&!sQ?MtO1G1QO&$tQ?MtO1G1QO&${Q?MtO1G1QO&&|Q?MtO1G1QO&(}Q?MtO1G1QO&)UQ?MtO1G1QO&)]Q?MtO1G1QO&+^Q?MtO1G1QO&+eQ?MtO1G1QO&+lQ!0MxO<<JgO&-dQ?MtO1G1QO&.aQ?MvO1G1QO&/dQ?MvO'#JmO&1jQ?MtO1G1dO&1wQ?MtO1G0UO&2RQMjO,5?UOOQO-E<h-E<hO!)[QlO'#FrOOQO'#K['#K[OOQO1G1v1G1vO&2]Q`O1G1uO&2bQ?MtO,5?]OOOW7+'i7+'iOOOO1G/Z1G/ZO&2lQ!dO1G4yOOQ!0Lh7+(R7+(RP!&zQMhO,5?_O!,TQMhO7+(dO&2sQ`O,5?^O9eQ`O,5?^O$+YQ`O,5?^OOQO-E<p-E<pO&3RQ`O1G6cO&3RQ`O1G6cO&3ZQ`O1G6cO&3fQMjO7+'{O&3vQ!dO,5?`O&4QQ`O,5?`O!&zQMhO,5?`OOQO-E<r-E<rO&4VQ!dO1G6dO&4aQ`O1G6dO&4iQ`O1G2lO!&zQMhO1G2lOOQ!0Lb1G2j1G2jOOQ!0Lb1G2k1G2kO%4vQpO1G2jO!CZQpO1G2jOCwQ`O1G2jOOQ!0Lb1G2r1G2rO&4nQpO1G2jO&4|Q`O1G2lO$+YQ`O1G2kOCwQ`O1G2kO$$wQlO1G2lO&5UQ`O1G2kO&5xQMjO,5?bOOQ!0Lh-E<u-E<uO&6kQMjO,5?dOOQ!0Lh-E<w-E<wO!,TQMhO7++^O&6uQMjO7++^O&7PQMjO7++^OOQ!0Lh1G/c1G/cO&7^Q`O1G/cOOQ!0Lh7+'v7+'vO&7cQMjO7+'}O&7sQ!0MxO<<KYOOQ!0Lf<<KY<<KYO&8gQ`O1G0zO!&zQMhO'#I{O&8lQ`O,5@yO&:nQ!fO<<LQO!&zQMhO1G2oO&:uQ!0LrO1G2oOOQ[<<G{<<G{O!COQ!0LrO<<G{O&;WQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?m,5?mO&;zQ`O,5?mO&<PQ`O,5?mOOQO-E=P-E=PO&<_Q`O1G6lO&<_Q`O1G6lO9kQ`O1G6lO@zQ`O<<LmOOQ[<<Lm<<LmO&<gQ`O<<LmO9uQ!0LrO<<LmO9kQ`O<<LmOOQ[<<LY<<LYO%;XQ!0MvO<<LYOOQ[<<LZ<<LZO!EcQ`O<<LZO&<lQpO'#I}O&<wQ`O,5@}O!)[QlO,5@}OOQ[1G3X1G3XOOQO'#JP'#JPO9uQ!0LrO'#JPO&=PQpO,5=vOOQ[,5=v,5=vO&=WQpO'#EgO&=_QpO'#GfO&=dQ`O7+({O&=iQ`O7+({OOQ[7+({7+({O!&zQMhO7+({O%[QlO7+({O&=qQ`O7+({OOQ[7+(}7+(}O9uQ!0LrO7+(}O$%dQ`O7+(}O9`Q`O7+(}O!CZQpO7+(}O&=|Q`O,5?lOOQO-E=O-E=OOOQO'#H_'#H_O&>XQ`O1G6jO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>aQ`O7+,XO&>fQ`O7+,YO%[QlO7+,XO%[QlO7+,YOOQ[7+)W7+)WO&>kQ`O7+)WO&>pQlO7+)WO&>wQ`O7+)WOOQ[<<Lz<<LzOOQ[<<L|<<L|OOQ[-E=R-E=ROOQ[1G3{1G3{O&>|Q`O,5>bOOQ[,5>d,5>dO&?RQ`O1G4RO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&?WQ?MtO1G6[O?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AzQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!COQ!0LrO<<IdO&?bQ!0LrO<<IsO&?mQ!0MxO<= _O&?}Q`O<= ^OOQO7+*`7+*`O9eQ`O7+*`OOQ[ANAlANAlO&@VQ!fOANAlO!&zQMhOANAlO#(ZQ`OANAlO4UQ!fOANAlO&@^Q`OANAlO%[QlOANAlO&@fQ!0MzO7+'{O&BwQ!0MzO,5?bO&ESQ!0MzO,5?dO&G_Q!0MzO7+'}O&IpQ!fO1G4mO&IzQ?MtO7+&aO&LOQ?MvO,5=YO&NVQ?MvO,5=[O&NgQ?MvO,5=YO&NwQ?MvO,5=[O' XQ?MvO,59uO'#_Q?MvO,5<lO'%bQ?MvO,5<nO''vQ?MvO,5<|O')lQ?MtO7+'lO')yQ?MtO7+'nO'*WQ`O,5<^OOQO7+'a7+'aOOQ!0Lh7+*e7+*eO'*]QMjO<<LOOOQO1G4x1G4xO'*dQ`O1G4xO'*oQ`O1G4xO'*}Q`O7++}O'*}Q`O7++}O!&zQMhO1G4zO'+VQ!dO1G4zO'+aQ`O7+,OO'+iQ`O7+(WO'+tQ!dO7+(WOOQ!0Lb7+(U7+(UOOQ!0Lb7+(V7+(VO!CZQpO7+(UOCwQ`O7+(UO',OQ`O7+(WO!&zQMhO7+(WO$+YQ`O7+(VO',TQ`O7+(WOCwQ`O7+(VO',]QMjO<<NxO!,TQMhO<<NxOOQ!0Lh7+$}7+$}O',gQ!dO,5?gOOQO-E<y-E<yO',qQ!0MvO7+(ZO!&zQMhO7+(ZOOQ[AN=gAN=gO9kQ`O1G5XOOQO1G5X1G5XO'-RQ`O1G5XO'-WQ`O7+,WO'-WQ`O7+,WO9uQ!0LrOANBXO@zQ`OANBXOOQ[ANBXANBXO'-`Q`OANBXOOQ[ANAtANAtOOQ[ANAuANAuO'-eQ`O,5?iOOQO-E<{-E<{O'-pQ?MtO1G6iOOQO,5?k,5?kOOQO-E<}-E<}OOQ[1G3b1G3bO'-zQ`O,5=QOOQ[<<Lg<<LgO!&zQMhO<<LgO&=dQ`O<<LgO'.PQ`O<<LgO%[QlO<<LgOOQ[<<Li<<LiO9uQ!0LrO<<LiO$%dQ`O<<LiO9`Q`O<<LiO'.XQpO1G5WO'.dQ`O7+,UOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<= s<= sOOQ[<= t<= tO'.lQ`O<= sO'.qQ`O<= tOOQ[<<Lr<<LrO'.vQ`O<<LrO'.{QlO<<LrOOQ[1G3|1G3|O?YQ`O7+)mO'/SQ`O<<JQO'/_Q?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AzQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<Mz<<MzOOQ[G27WG27WO!&zQMhOG27WO#(ZQ`OG27WO'/iQ!fOG27WO4UQ!fOG27WO'/pQ`OG27WO'/xQ?MtO<<JgO'0VQ?MvO1G2aO'1{Q?MvO,5?bO'4OQ?MvO,5?dO'6RQ?MvO1G2tO'8UQ?MvO1G2vO':XQ?MtO<<KYO':fQ?MtO<<I{OOQO1G1x1G1xO!,TQMhOANAjOOQO7+*d7+*dO':sQ`O7+*dO';OQ`O<= iO';WQ!dO7+*fOOQ!0Lb<<Kr<<KrO$+YQ`O<<KrOCwQ`O<<KrO';bQ`O<<KrO!&zQMhO<<KrOOQ!0Lb<<Kp<<KpO!CZQpO<<KpO';mQ!dO<<KrOOQ!0Lb<<Kq<<KqO';wQ`O<<KrO!&zQMhO<<KrO$+YQ`O<<KqO';|QMjOANDdO'<WQ!0MvO<<KuOOQO7+*s7+*sO9kQ`O7+*sO'<hQ`O<= rOOQ[G27sG27sO9uQ!0LrOG27sO@zQ`OG27sO!)[QlO1G5TO'<pQ`O7+,TO'<xQ`O1G2lO&=dQ`OANBROOQ[ANBRANBRO!&zQMhOANBRO'<}Q`OANBROOQ[ANBTANBTO9uQ!0LrOANBTO$%dQ`OANBTOOQO'#H`'#H`OOQO7+*r7+*rOOQ[G22wG22wOOQ[ANE_ANE_OOQ[ANE`ANE`OOQ[ANB^ANB^O'=VQ`OANB^OOQ[<<MX<<MXO!)[QlOAN?lOOQOG24yG24yO$AzQ!0MxOG24yO#(ZQ`OLD,rOOQ[LD,rLD,rO!&zQMhOLD,rO'=[Q!fOLD,rO'=cQ?MvO7+'{O'?XQ?MvO,5?bO'A[Q?MvO,5?dO'C_Q?MvO7+'}O'ETQMjOG27UOOQO<<NO<<NOOOQ!0LbANA^ANA^O$+YQ`OANA^OCwQ`OANA^O'EeQ!dOANA^OOQ!0LbANA[ANA[O'ElQ`OANA^O!&zQMhOANA^O'EwQ!dOANA^OOQ!0LbANA]ANA]OOQO<<N_<<N_OOQ[LD-_LD-_O9uQ!0LrOLD-_O'FRQ?MtO7+*oOOQO'#Gg'#GgOOQ[G27mG27mO&=dQ`OG27mO!&zQMhOG27mOOQ[G27oG27oO9uQ!0LrOG27oOOQ[G27xG27xO'F]Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!^!$(!^O#(ZQ`O!$(!^O!&zQMhO!$(!^O'FgQ!0MzOG27UOOQ!0LbG26xG26xO$+YQ`OG26xO'HxQ`OG26xOCwQ`OG26xO'ITQ!dOG26xO!&zQMhOG26xOOQ[!$(!y!$(!yOOQ[LD-XLD-XO&=dQ`OLD-XOOQ[LD-ZLD-ZOOQ[!)9Ex!)9ExO#(ZQ`O!)9ExOOQ!0LbLD,dLD,dO$+YQ`OLD,dOCwQ`OLD,dO'I[Q`OLD,dO'IgQ!dOLD,dOOQ[!$(!s!$(!sOOQ[!.K;d!.K;dO'InQ?MvOG27UOOQ!0Lb!$(!O!$(!OO$+YQ`O!$(!OOCwQ`O!$(!OO'KdQ`O!$(!OOOQ!0Lb!)9Ej!)9EjO$+YQ`O!)9EjOCwQ`O!)9EjOOQ!0Lb!.K;U!.K;UO$+YQ`O!.K;UOOQ!0Lb!4/0p!4/0pO!)[QlO'#DzO1PQ`O'#EXO'KoQ!fO'#JsO'KvQ!L^O'#DvO'K}QlO'#EOO'LUQ!fO'#CiO'NlQ!fO'#CiO!)[QlO'#EQO'N|QlO,5;ZO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO'#IqO(#PQ`O,5<jO!)[QlO,5;fO(#XQMhO,5;fO($rQMhO,5;fO!)[QlO,5;xO!&zQMhO'#GnO(#XQMhO'#GnO!&zQMhO'#GpO(#XQMhO'#GpO1SQ`O'#DZO1SQ`O'#DZO!&zQMhO'#GQO(#XQMhO'#GQO!&zQMhO'#GSO(#XQMhO'#GSO!&zQMhO'#GbO(#XQMhO'#GbO!)[QlO,5:jO($yQpO'#D_O!)[QlO,5@pO'N|QlO1G0uO(%TQ?MtO'#CiO!)[QlO1G2QO!&zQMhO'#IvO(#XQMhO'#IvO!&zQMhO'#IxO(#XQMhO'#IxO(%_Q!dO'#CrO!&zQMhO,5<uO(#XQMhO,5<uO'N|QlO1G2SO!)[QlO7+&{O!&zQMhO1G2aO(#XQMhO1G2aO!&zQMhO'#IvO(#XQMhO'#IvO!&zQMhO'#IxO(#XQMhO'#IxO!&zQMhO1G2cO(#XQMhO1G2cO'N|QlO7+'nO'N|QlO7+&aO!&zQMhOANAjO(#XQMhOANAjO(%rQ`O'#EoO(%wQ`O'#EoO(&PQ`O'#F^O(&UQ`O'#EzO(&ZQ`O'#KUO(&fQ`O'#KSO(&qQ`O,5;ZO(&vQMjO,5<fO(&}Q`O'#GZO('SQ`O'#GZO('XQ`O,5<fO('aQ`O,5<hO('iQ`O,5;ZO('qQ?MtO1G1aO('xQ`O,5<uO('}Q`O,5<uO((SQ`O,5<wO((XQ`O,5<wO((^Q`O1G2SO((cQ`O1G0uO((hQMjO<<LOO((oQMjO<<LOO((vQMhO'#F}O9`Q`O'#F|OAuQ`O'#EnO!)[QlO,5;uO!3oQ`O'#GZO!3oQ`O'#GZO!3oQ`O'#G]O!3oQ`O'#G]O!,TQMhO7+(dO!,TQMhO7+(dO%/YQ!dO1G2xO%/YQ!dO1G2xO!&zQMhO,5=^O!&zQMhO,5=^",stateData:"(){~O'}OS(OOSTOS(PRQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$X|O$oiO%i}O%k!QO%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO%z!UO&X!WO&_!XO&a!YO&c!ZO&e![O&h!]O&n!^O&t!_O&v!`O&x!aO&z!bO&|!cO(USO(WTO(ZUO(bVO(p[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<XO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(V!lO(WTO(ZUO(f!mO(p!sO~O(P!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X'{]X(b]X(s]X(z]X({]X~O!g%SX~P(qO_!}O(W#PO(X!}O(Y#PO~O_#QO(Y#PO(Z#PO([#QO~Ox#SO!U#TO(c#TO(d#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U<]O(WTO(ZUO(bVO(p[O~O![#ZO!]#WO!Y(iP!Y(wP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(WTO(ZUO(bVO(p[O~Op#mO![#iO!|]O#j#lO#k#iO(U<^O!k(tP~P.iO!l#oO(U#nO~O!x#sO!|]O%i#tO~O#l#uO~O!g#vO#l#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~Oa(gX'{(gX'x(gX!k(gX!Y(gX!_(gX%j(gX!g(gX~P1qO#S$dO#`$eO$R$eOP(hXR(hX[(hXj(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX!_(hX%j(hX~Oa(hX'{(hX'x(hX!Y(hX!k(hXv(hX!g(hX~P4UO#`$eO~O$^$hO$`$gO$g$mO~OSfO!_$nO$j$oO$l$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#k%cO$X%`O$u%^O$w%_O$z%aO(U$sO(WTO(ZUO(b$uO(z$}O({%POg(_P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(U%gO~O!g%mO~Oa%nO'{%nO~O!Q%rO~P%[O(V!lO~P%[O%o%vO~P%[Oh%VO!l%eO(U%gO(V!lO~Oe%}O!l%eO(U%gO~Oj$RO~O!_&PO(U%gO(V!lO(WTO(ZUO`)XP~O!Q&SO!l&RO%k&VO&U&WO~P;SO!x#sO~O%t&YO!S)TX!_)TX(U)TX~O(U&ZO~Ol!PO!u&`O%k!QO%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO~Od&eOe&dO!x&bO%i&cO%|&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%i}O%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO%z!UO~Ob&kO#`&nO%k&iO(V!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO'y&{O'{%nO~Oa%nO'y'OO'{%nO~Oa%nO'y'QO'{%nO~O'x]X!Y]Xv]X!k]X&]]X!_]X%j]X!g]X~P(qO!b'`O!c'WO!d'WO(V!lO(WTO(ZUO~Os'UO!S'TO!['XO(f'SO!^(jP!^(yP~P@nOn'cO!_'aO(U%gO~Oe'hO!l%eO(U%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<XO#T!pO#U!pO#W!pO#X!pO(V!lO(WTO(ZUO(f!mO(p!sO~O!b'nO!c'mO!d'mO#V!pO#['oO#]'oO~PBYOa%nOh%VO!g#vO!l%eO'{%nO(s'qO~O!p'uO#`'sO~PChOs!nO!S!oO(WTO(ZUO(f!mO(p!sO~O!_XOs(nX!S(nX!b(nX!c(nX!d(nX!|(nX#T(nX#U(nX#V(nX#W(nX#X(nX#[(nX#](nX(V(nX(W(nX(Z(nX(f(nX(p(nX~O!c'mO!d'mO(V!lO~PDWO(Q'yO(R'yO(S'{O~O_!}O(W'}O(X!}O(Y'}O~O_#QO(Y'}O(Z'}O([#QO~Ov(PO~P%[Ox#SO!U#TO(c#TO(d(SO~O![(UO!Y'XX!Y'_X!]'XX!]'_X~P+}O!](WO!Y(iX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](WO!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~O!Y(iX~PHRO!Y(]O~O!Y(vX!](vX!g(vX!k(vX(s(vX~O#`(vX#l#dX!^(vX~PJUO#`(^O!Y(xX!](xX~O!](_O!Y(wX~O!Y(bO~O#`$eO~PJUO!^(cO~P`OR#zO!Q#yO!S#{O!l#xO(bVOP!na[!naj!nar!na!]!na!p!na#R!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#w!na#y!na#{!na#|!na(s!na(z!na({!na~Oa!na'{!na'x!na!Y!na!k!nav!na!_!na%j!na!g!na~PKlO!k(dO~O!g#vO#`(eO(s'qO!](uXa(uX'{(uX~O!k(uX~PNXO!S%hO!_%iO!|]O#j(jO#k(iO(U%gO~O!](kO!k(tX~O!k(mO~O!S%hO!_%iO#k(iO(U%gO~OP(hXR(hX[(hXj(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX~O!g#vO!k(hX~P! uOR(oO!Q(nO!l#xO#S$dO!|!{a!S!{a~O!x!{a%i!{a!_!{a#j!{a#k!{a(U!{a~P!#vO!x(sO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<uO!S${O!_$|O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~O#l(yO~O![({O!k(lP~P%[O(f(}O(p[O~O!S)PO!l#xO(f(}O(p[O~OP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_!eO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(U)^O(WTO(ZUO(bVO(p[O~O!]$_Oa$ra'{$ra'x$ra!k$ra!Y$ra!_$ra%j$ra!g$ra~Ol)eO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#k%cO$X%`O$u%^O$w%_O$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~Og(qP~P!,TO!Q)jO!g)iO!_$_X$[$_X$^$_X$`$_X$g$_X~O!g)iO!_(|X$[(|X$^(|X$`(|X$g(|X~O!Q)jO~P!.^O!Q)jO!_(|X$[(|X$^(|X$`(|X$g(|X~O!_)lO$[)pO$^)kO$`)kO$g)qO~O![)tO~P!)[O$^$hO$`$gO$g)xO~On${X!Q${X#S${X'z${X(z${X({${X~OgmXg${XnmX!]mX#`mX~P!0SOx)zO(c){O(d)}O~On*WO!Q*PO'z*QO(z$}O({%PO~Og*OO~P!1WOg*XO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<uO!S*ZO!_*[O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(WTO(ZUO(b$uO(z$}O({%PO~Op*aOUX'{)UX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~Oa!ja!]!ja'{!ja'x!ja!Y!ja!k!jav!ja!_!ja%j!ja!g!ja~P!:tO(f(}O~OR#zO!Q#yO!S#{O!l#xO(bVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#w!ra#y!ra#{!ra#|!ra(s!ra(z!ra({!ra~Oa!ra'{!ra'x!ra!Y!ra!k!rav!ra!_!ra%j!ra!g!ra~P!=aOR#zO!Q#yO!S#{O!l#xO(bVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#w!ta#y!ta#{!ta#|!ta(s!ta(z!ta({!ta~Oa!ta'{!ta'x!ta!Y!ta!k!tav!ta!_!ta%j!ta!g!ta~P!?wOh%VOn+iO!_'aO%j+hO~O!g+kOa(^X!_(^X'{(^X!](^X~Oa%nO!_XO'{%nO~Oh%VO!l%eO~Oh%VO!l%eO(U%gO~O!g#vO#l(yO~Ob+vO%k+wO(U+sO(WTO(ZUO!^)YP~O!]+xO`)XX~O[+|O~O`+}O~O!_&PO(U%gO(V!lO`)XP~O%k,QO~P;SOh%VO#`,UO~Oh%VOn,XO!_$|O~O!_,ZO~O!Q,]O!_XO~O%o%vO~O!x,bO~Oe,gO~Ob,hO(U#nO(WTO(ZUO!^)WP~Oe%}O~O%k!QO(U&ZO~P=gO[,mO`,lO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$oiO%i}O(WTO(ZUO(bVO(p[O~O!_!eO!u!gO$X!kO(U!dO~P!GOO`,lOa%nO'{%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oa,rOl!OO!uwO%m!OO%n!OO%o!OO~P!IhO!l&oO~O&_,xO~O!_,zO~O&p,|O&r,}OP&maQ&maS&maY&maa&mad&mae&mal&map&mar&mas&mat&maz&ma|&ma!O&ma!S&ma!W&ma!X&ma!_&ma!i&ma!l&ma!o&ma!p&ma!q&ma!s&ma!u&ma!x&ma!|&ma$X&ma$o&ma%i&ma%k&ma%m&ma%n&ma%o&ma%r&ma%t&ma%w&ma%x&ma%z&ma&X&ma&_&ma&a&ma&c&ma&e&ma&h&ma&n&ma&t&ma&v&ma&x&ma&z&ma&|&ma'x&ma(U&ma(W&ma(Z&ma(b&ma(p&ma!^&ma&f&mab&ma&k&ma~O(U-SO~Oh!eX!]#iX!^#iX!g!RX!g!eX!l!eX#`#iX~O!]!eX!^!eX~P#!nO!g-WOh(kX!](kX!^(kX!g(kX!l(kXr(kX(s(kX~Oh%VO!g-YO!l%eO!]!aX!^!aX~Os!nO!S!oO(WTO(ZUO(f!mO~OP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_!eO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(WTO(ZUO(bVO(p[O~O(U=RO~P#$oO!]-^O!^(jX~O!^-`O~O#`-aO!]#hX!^#hX~O!g-WO~O!]-bO!^(yX~O!^-dO~O!c-eO!d-eO(V!lO~P#$^O!^-hO~P'_On-kO!_'aO~O!Y-pO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(V!{a(W!{a(Z!{a(f!{a(p!{a~P!#vO!p-uO#`-sO~PChO!c-wO!d-wO(V!lO~PDWOa%nO#`-sO'{%nO~Oa%nO!g#vO#`-sO'{%nO~Oa%nO!g#vO!p-uO#`-sO'{%nO(s'qO~O(Q'yO(R'yO(S-|O~Ov-}O~O!Y'Xa!]'Xa~P!:tO![.RO!Y'XX!]'XX~P%[O!](WO!Y(ia~O!Y(ia~PHRO!](_O!Y(wa~O!S%hO![.VO!_%iO(U%gO!Y'_X!]'_X~O#`.XO!](ua!k(uaa(ua'{(ua~O!g#vO~P#,wO!](kO!k(ta~O!S%hO!_%iO#k.]O(U%gO~Op.bO!S%hO![._O!_%iO!|]O#j.aO#k._O(U%gO!]'bX!k'bX~OR.fO!l#xO~Oh%VOn.iO!_'aO%j.hO~Oa#ci!]#ci'{#ci'x#ci!Y#ci!k#civ#ci!_#ci%j#ci!g#ci~P!:tOn>^O!Q*PO'z*QO(z$}O({%PO~O#l#_aa#_a#`#_a'{#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#l(aXP(aXR(aX[(aXa(aXj(aXr(aX!S(aX!l(aX!p(aX#R(aX#o(aX#p(aX#q(aX#r(aX#s(aX#t(aX#u(aX#v(aX#w(aX#y(aX#{(aX#|(aX'{(aX(b(aX(s(aX!k(aX!Y(aX'x(aXv(aX!_(aX%j(aX!g(aX~P!6kO!].vO!k(lX~P!:tO!k.yO~O!Y.{O~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(bVO[#nia#nij#nir#ni!]#ni#R#ni#p#ni#q#ni#r#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#o#ni~P#3cO#o$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#o$OO#p$PO#q$PO#r$PO(bVO[#nia#nij#ni!]#ni#R#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#s#ni~P#6QO#s$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO(bVOa#ni!]#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#w#ni~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO(bVO({#}Oa#ni!]#ni#{#ni#|#ni'{#ni(s#ni(z#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#y$UO~P#;VO#y#ni~P#;VO#w$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO(bVO(z#|O({#}Oa#ni!]#ni#|#ni'{#ni(s#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#{#ni~P#={O#{$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X!]]X!^]X~O$P]X~P#@jOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO#y<gO#{<iO#|<jO(bVO(s$YO(z#|O({#}O~O$P.}O~P#BwO#S$dO#`<pO$R<pO$P(hX!^(hX~P! uOa'ea!]'ea'{'ea'x'ea!k'ea!Y'eav'ea!_'ea%j'ea!g'ea~P!:tO[#nia#nij#nir#ni!]#ni#R#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#o$OO#p$PO#q$PO#r$PO(bVO(z#ni({#ni~P#EyOn>^O!Q*PO'z*QO(z$}O({%POP#niR#ni!S#ni!l#ni!p#ni#o#ni#p#ni#q#ni#r#ni(b#ni~P#EyO!]/ROg(qX~P!1WOg/TO~Oa$Qi!]$Qi'{$Qi'x$Qi!Y$Qi!k$Qiv$Qi!_$Qi%j$Qi!g$Qi~P!:tO$^/UO$`/UO~O$^/VO$`/VO~O!g)iO#`/WO!_$dX$[$dX$^$dX$`$dX$g$dX~O![/XO~O!_)lO$[/ZO$^)kO$`)kO$g/[O~O!]<kO!^(gX~P#BwO!^/]O~O!g)iO$g(|X~O$g/_O~Ov/`O~P!&zOx)zO(c){O(d/cO~O!S/fO~O(z$}On%ba!Q%ba'z%ba({%ba!]%ba#`%ba~Og%ba$P%ba~P#L{O({%POn%da!Q%da'z%da(z%da!]%da#`%da~Og%da$P%da~P#MnO!]fX!gfX!kfX!k${X(sfX~P!0SOp%WOQP~P!1uOr*tO!b*rO!c*lO!d*lO!l*cO#[*sO%a*nO(V!lO(WTO(ZUO~Os'UO!S/pO![+^O!^*qO(f=OO!^(yP~P$ [O!k/qO~P#/sO!]/rO!g#vO(s'qO!k)PX~O!k/wO~OnoX!QoX'zoX(zoX({oX~O!g#vO!koX~P$#OOp/yO!S%hO![*_O!_%iO(U%gO!k)PP~O#l/zO~O!Y${X!]${X!g%SX~P!0SO!]/{O!Y)QX~P#/sO!g/}O~O!Y0PO~OpkO(U0QO~P.iOh%VOr0VO!g#vO!l%eO(s'qO~O!g+kO~Oa%nO!]0ZO'{%nO~O!^0]O~P!5iO!c0^O!d0^O(V!lO~P#$^Os!nO!S0_O(WTO(ZUO(f!mO~O#[0aO~Og%ba!]%ba#`%ba$P%ba~P!1WOg%da!]%da#`%da$P%da~P!1WOj%dOk%dOl%dO(U&ZOg'nX!]'nX~O!]*zOg(_a~Og0jO~On0lO#`0kOg(`a!](`a~OR0mO!Q0mO!S0nO#S$dOn}a'z}a(z}a({}a!]}a#`}a~Og}a$P}a~P$(cO!Q*PO'z*QOn$ta(z$ta({$ta!]$ta#`$ta~Og$ta$P$ta~P$)_O!Q*PO'z*QOn$va(z$va({$va!]$va#`$va~Og$va$P$va~P$*QO#l0qO~Og%Ua!]%Ua#`%Ua$P%Ua~P!1WO!g#vO~O#l0tO~O!]#iX!^#iX!g!RX#`#iX~O!]+`Oa)Ua'{)Ua~OR#zO!Q#yO!S#{O!l#xO(bVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#w!ri#y!ri#{!ri#|!ri(s!ri(z!ri({!ri~Oa!ri'{!ri'x!ri!Y!ri!k!riv!ri!_!ri%j!ri!g!ri~P$+}Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<uO!S${O!_$|O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(WTO(ZUO(b$uO(z$}O({%PO~Op0}O%^1OO(U0|O~P$.eO!g+kOa(^a!_(^a'{(^a!](^a~O#l1UO~O[]X!]fX!^fX~O!]1VO!^)YX~O!^1XO~O[1YO~Ob1[O(U+sO(WTO(ZUO~O!_&PO(U%gO`'vX!]'vX~O!]+xO`)Xa~O!k1_O~P!:tO[1bO~O`1cO~O#`1hO~On1kO!_$|O~O(f(}O!^)VP~Oh%VOn1tO!_1qO%j1sO~O[2OO!]1|O!^)WX~O!^2PO~O`2ROa%nO'{%nO~O(U#nO(WTO(ZUO~O#S$dO#`$eO$R$eOP(hXR(hX[(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX~Oj2UO&]2VOa(hX~P$4OOj2UO#`$eO&]2VO~Oa2XO~P%[Oa2ZO~O&f2^OP&diQ&diS&diY&dia&did&die&dil&dip&dir&dis&dit&diz&di|&di!O&di!S&di!W&di!X&di!_&di!i&di!l&di!o&di!p&di!q&di!s&di!u&di!x&di!|&di$X&di$o&di%i&di%k&di%m&di%n&di%o&di%r&di%t&di%w&di%x&di%z&di&X&di&_&di&a&di&c&di&e&di&h&di&n&di&t&di&v&di&x&di&z&di&|&di'x&di(U&di(W&di(Z&di(b&di(p&di!^&dib&di&k&di~Ob2dO!^2bO&k2cO~P`O!_XO!l2fO~O&r,}OP&miQ&miS&miY&mia&mid&mie&mil&mip&mir&mis&mit&miz&mi|&mi!O&mi!S&mi!W&mi!X&mi!_&mi!i&mi!l&mi!o&mi!p&mi!q&mi!s&mi!u&mi!x&mi!|&mi$X&mi$o&mi%i&mi%k&mi%m&mi%n&mi%o&mi%r&mi%t&mi%w&mi%x&mi%z&mi&X&mi&_&mi&a&mi&c&mi&e&mi&h&mi&n&mi&t&mi&v&mi&x&mi&z&mi&|&mi'x&mi(U&mi(W&mi(Z&mi(b&mi(p&mi!^&mi&f&mib&mi&k&mi~O!Y2lO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2qO(f!mO!]'YX!^'YX~P@nO!]-^O!^(ja~O!]'`X!^'`X~P!9|O!]-bO!^(ya~O!^2yO~P'_Oa%nO#`3SO'{%nO~Oa%nO!g#vO#`3SO'{%nO~Oa%nO!g#vO!p3WO#`3SO'{%nO(s'qO~Oa%nO'{%nO~P!:tO!]$_Ov$ra~O!Y'Xi!]'Xi~P!:tO!](WO!Y(ii~O!](_O!Y(wi~O!Y(xi!](xi~P!:tO!](ui!k(uia(ui'{(ui~P!:tO#`3YO!](ui!k(uia(ui'{(ui~O!](kO!k(ti~O!S%hO!_%iO!|]O#j3_O#k3^O(U%gO~O!S%hO!_%iO#k3^O(U%gO~On3fO!_'aO%j3eO~Oh%VOn3fO!_'aO%j3eO~O#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%bav%ba!_%ba%j%ba!g%ba~P#L{O#l%daP%daR%da[%daa%daj%dar%da!S%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%dav%da!_%da%j%da!g%da~P#MnO#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!]%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%ba#`%bav%ba!_%ba%j%ba!g%ba~P#/sO#l%daP%daR%da[%daa%daj%dar%da!S%da!]%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%da#`%dav%da!_%da%j%da!g%da~P#/sO#l}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#w}a#y}a#{}a#|}a'{}a(b}a(s}a!k}a!Y}a'x}av}a!_}a%j}a!g}a~P$(cO#l$taP$taR$ta[$taa$taj$tar$ta!S$ta!l$ta!p$ta#R$ta#o$ta#p$ta#q$ta#r$ta#s$ta#t$ta#u$ta#v$ta#w$ta#y$ta#{$ta#|$ta'{$ta(b$ta(s$ta!k$ta!Y$ta'x$tav$ta!_$ta%j$ta!g$ta~P$)_O#l$vaP$vaR$va[$vaa$vaj$var$va!S$va!l$va!p$va#R$va#o$va#p$va#q$va#r$va#s$va#t$va#u$va#v$va#w$va#y$va#{$va#|$va'{$va(b$va(s$va!k$va!Y$va'x$vav$va!_$va%j$va!g$va~P$*QO#l%UaP%UaR%Ua[%Uaa%Uaj%Uar%Ua!S%Ua!]%Ua!l%Ua!p%Ua#R%Ua#o%Ua#p%Ua#q%Ua#r%Ua#s%Ua#t%Ua#u%Ua#v%Ua#w%Ua#y%Ua#{%Ua#|%Ua'{%Ua(b%Ua(s%Ua!k%Ua!Y%Ua'x%Ua#`%Uav%Ua!_%Ua%j%Ua!g%Ua~P#/sOa#cq!]#cq'{#cq'x#cq!Y#cq!k#cqv#cq!_#cq%j#cq!g#cq~P!:tO![3nO!]'ZX!k'ZX~P%[O!].vO!k(la~O!].vO!k(la~P!:tO!Y3qO~O$P!na!^!na~PKlO$P!ja!]!ja!^!ja~P#BwO$P!ra!^!ra~P!=aO$P!ta!^!ta~P!?wOg'^X!]'^X~P!,TO!]/ROg(qa~OSfO!_4VO$e4WO~O!^4[O~Ov4]O~P#/sOa$nq!]$nq'{$nq'x$nq!Y$nq!k$nqv$nq!_$nq%j$nq!g$nq~P!:tO!Y4_O~P!&zO!S4`O~O!Q*PO'z*QO({%POn'ja(z'ja!]'ja#`'ja~Og'ja$P'ja~P%-tO!Q*PO'z*QOn'la(z'la({'la!]'la#`'la~Og'la$P'la~P%.gO(s$YO~P#/sO!YfX!Y${X!]fX!]${X!g%SX#`fX~P!0SOp%WO(U=XO~P!1uOp4dO!S%hO![4cO!_%iO(U%gO!]'fX!k'fX~O!]/rO!k)Pa~O!]/rO!g#vO!k)Pa~O!]/rO!g#vO(s'qO!k)Pa~Og$}i!]$}i#`$}i$P$}i~P!1WO![4lO!Y'hX!]'hX~P!3tO!]/{O!Y)Qa~O!]/{O!Y)Qa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X~Oj%ZX!g%ZX~P%2^Oj4qO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4vO!l%eO(s'qO~Or4{O!g#vO(s'qO~Os!nO!S4|O(WTO(ZUO(f!mO~O(z$}On%bi!Q%bi'z%bi({%bi!]%bi#`%bi~Og%bi$P%bi~P%5}O({%POn%di!Q%di'z%di(z%di!]%di#`%di~Og%di$P%di~P%6pOg(`i!](`i~P!1WO#`5SOg(`i!](`i~P!1WO!k5XO~Oa$pq!]$pq'{$pq'x$pq!Y$pq!k$pqv$pq!_$pq%j$pq!g$pq~P!:tO!Y5]O~O!]5^O!_)RX~P#/sOa${X!_${X%_]X'{${X!]${X~P!0SO%_5aOaoX!_oX'{oX!]oX~P$#OOp5bO(U#nO~O%_5aO~Ob5hO%k5iO(U+sO(WTO(ZUO!]'uX!^'uX~O!]1VO!^)Ya~O[5mO~O`5nO~O[5rO~Oa%nO'{%nO~P#/sO!]5wO#`5yO!^)VX~O!^5zO~Or6QOs!nO!S*jO!b!yO!c!vO!d!vO!|<XO#T!pO#U!pO#V!pO#W!pO#X!pO#[6PO#]!zO(V!lO(WTO(ZUO(f!mO(p!sO~O!^6OO~P%;sOn6VO!_1qO%j6UO~Oh%VOn6VO!_1qO%j6UO~Ob6^O(U#nO(WTO(ZUO!]'tX!^'tX~O!]1|O!^)Wa~O(WTO(ZUO(f6`O~O`6dO~Oj6gO&]6hO~PNXO!k6iO~P%[Oa6kO~Oa6kO~P%[Ob2dO!^6pO&k2cO~P`O!g6rO~O!g6tOh(ki!](ki!^(ki!g(ki!l(kir(ki(s(ki~O#`6uO!]#hi!^#hi~O!]!ai!^!ai~P#BwO!]#hi!^#hi~P#BwOa%nO#`7OO'{%nO~Oa%nO!g#vO#`7OO'{%nO~O!](uq!k(uqa(uq'{(uq~P!:tO!](kO!k(tq~O!S%hO!_%iO#k7VO(U%gO~O!_'aO%j7YO~On7^O!_'aO%j7YO~O#l'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#w'ja#y'ja#{'ja#|'ja'{'ja(b'ja(s'ja!k'ja!Y'ja'x'jav'ja!_'ja%j'ja!g'ja~P%-tO#l'laP'laR'la['laa'laj'lar'la!S'la!l'la!p'la#R'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#w'la#y'la#{'la#|'la'{'la(b'la(s'la!k'la!Y'la'x'lav'la!_'la%j'la!g'la~P%.gO#l$}iP$}iR$}i[$}ia$}ij$}ir$}i!S$}i!]$}i!l$}i!p$}i#R$}i#o$}i#p$}i#q$}i#r$}i#s$}i#t$}i#u$}i#v$}i#w$}i#y$}i#{$}i#|$}i'{$}i(b$}i(s$}i!k$}i!Y$}i'x$}i#`$}iv$}i!_$}i%j$}i!g$}i~P#/sO#l%biP%biR%bi[%bia%bij%bir%bi!S%bi!l%bi!p%bi#R%bi#o%bi#p%bi#q%bi#r%bi#s%bi#t%bi#u%bi#v%bi#w%bi#y%bi#{%bi#|%bi'{%bi(b%bi(s%bi!k%bi!Y%bi'x%biv%bi!_%bi%j%bi!g%bi~P%5}O#l%diP%diR%di[%dia%dij%dir%di!S%di!l%di!p%di#R%di#o%di#p%di#q%di#r%di#s%di#t%di#u%di#v%di#w%di#y%di#{%di#|%di'{%di(b%di(s%di!k%di!Y%di'x%div%di!_%di%j%di!g%di~P%6pO!]'Za!k'Za~P!:tO!].vO!k(li~O$P#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(bVO[#nij#nir#ni#R#ni#p#ni#q#ni#r#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#o#ni~P%NrO#o<aO~P%NrOP$[OR#zOr<mO!Q#yO!S#{O!l#xO!p$[O#o<aO#p<bO#q<bO#r<bO(bVO[#nij#ni#R#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#s#ni~P&!zO#s<cO~P&!zOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO(bVO#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#w#ni~P&%SOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO(bVO({#}O#{#ni#|#ni$P#ni(s#ni(z#ni!]#ni!^#ni~O#y<gO~P&'TO#y#ni~P&'TO#w<eO~P&%SOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO#y<gO(bVO(z#|O({#}O#|#ni$P#ni(s#ni!]#ni!^#ni~O#{#ni~P&)dO#{<iO~P&)dOa#}y!]#}y'{#}y'x#}y!Y#}y!k#}yv#}y!_#}y%j#}y!g#}y~P!:tO[#nij#nir#ni#R#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni!]#ni!^#ni~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#o<aO#p<bO#q<bO#r<bO(bVO(z#ni({#ni~P&,`On>_O!Q*PO'z*QO(z$}O({%POP#niR#ni!S#ni!l#ni!p#ni#o#ni#p#ni#q#ni#r#ni(b#ni~P&,`O#S$dOP(aXR(aX[(aXj(aXn(aXr(aX!Q(aX!S(aX!l(aX!p(aX#R(aX#o(aX#p(aX#q(aX#r(aX#s(aX#t(aX#u(aX#v(aX#w(aX#y(aX#{(aX#|(aX$P(aX'z(aX(b(aX(s(aX(z(aX({(aX!](aX!^(aX~O$P$Qi!]$Qi!^$Qi~P#BwO$P!ri!^!ri~P$+}Og'^a!]'^a~P!1WO!^7pO~O!]'ea!^'ea~P#BwO!Y7qO~P#/sO!g#vO(s'qO!]'fa!k'fa~O!]/rO!k)Pi~O!]/rO!g#vO!k)Pi~Og$}q!]$}q#`$}q$P$}q~P!1WO!Y'ha!]'ha~P#/sO!g7xO~O!]/{O!Y)Qi~P#/sO!]/{O!Y)Qi~O!Y7{O~Oh%VOr8QO!l%eO(s'qO~Oj8SO!g#vO~Or8VO!g#vO(s'qO~O!Q*PO'z*QO({%POn'ka(z'ka!]'ka#`'ka~Og'ka$P'ka~P&5aO!Q*PO'z*QOn'ma(z'ma({'ma!]'ma#`'ma~Og'ma$P'ma~P&6SOg(`q!](`q~P!1WO#`8XOg(`q!](`q~P!1WO!Y8YO~Og%Pq!]%Pq#`%Pq$P%Pq~P!1WOa$py!]$py'{$py'x$py!Y$py!k$pyv$py!_$py%j$py!g$py~P!:tO!g6tO~O!]5^O!_)Ra~O!_'aOP$UaR$Ua[$Uaj$Uar$Ua!Q$Ua!S$Ua!]$Ua!l$Ua!p$Ua#R$Ua#o$Ua#p$Ua#q$Ua#r$Ua#s$Ua#t$Ua#u$Ua#v$Ua#w$Ua#y$Ua#{$Ua#|$Ua(b$Ua(s$Ua(z$Ua({$Ua~O%j7YO~P&8tO%_8^Oa%]i!_%]i'{%]i!]%]i~Oa#cy!]#cy'{#cy'x#cy!Y#cy!k#cyv#cy!_#cy%j#cy!g#cy~P!:tO[8`O~Ob8bO(U+sO(WTO(ZUO~O!]1VO!^)Yi~O`8fO~O(f(}O!]'qX!^'qX~O!]5wO!^)Va~O!^8pO~P%;sO(p!sO~P$&YO#[8qO~O!_1qO~O!_1qO%j8sO~On8vO!_1qO%j8sO~O[8{O!]'ta!^'ta~O!]1|O!^)Wi~O!k9PO~O!k9QO~O!k9TO~O!k9TO~P%[Oa9VO~O!g9WO~O!k9XO~O!](xi!^(xi~P#BwOa%nO#`9aO'{%nO~O!](uy!k(uya(uy'{(uy~P!:tO!](kO!k(ty~O%j9dO~P&8tO!_'aO%j9dO~O#l$}qP$}qR$}q[$}qa$}qj$}qr$}q!S$}q!]$}q!l$}q!p$}q#R$}q#o$}q#p$}q#q$}q#r$}q#s$}q#t$}q#u$}q#v$}q#w$}q#y$}q#{$}q#|$}q'{$}q(b$}q(s$}q!k$}q!Y$}q'x$}q#`$}qv$}q!_$}q%j$}q!g$}q~P#/sO#l'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#w'ka#y'ka#{'ka#|'ka'{'ka(b'ka(s'ka!k'ka!Y'ka'x'kav'ka!_'ka%j'ka!g'ka~P&5aO#l'maP'maR'ma['maa'maj'mar'ma!S'ma!l'ma!p'ma#R'ma#o'ma#p'ma#q'ma#r'ma#s'ma#t'ma#u'ma#v'ma#w'ma#y'ma#{'ma#|'ma'{'ma(b'ma(s'ma!k'ma!Y'ma'x'mav'ma!_'ma%j'ma!g'ma~P&6SO#l%PqP%PqR%Pq[%Pqa%Pqj%Pqr%Pq!S%Pq!]%Pq!l%Pq!p%Pq#R%Pq#o%Pq#p%Pq#q%Pq#r%Pq#s%Pq#t%Pq#u%Pq#v%Pq#w%Pq#y%Pq#{%Pq#|%Pq'{%Pq(b%Pq(s%Pq!k%Pq!Y%Pq'x%Pq#`%Pqv%Pq!_%Pq%j%Pq!g%Pq~P#/sO!]'Zi!k'Zi~P!:tO$P#cq!]#cq!^#cq~P#BwO(z$}OP%baR%ba[%baj%bar%ba!S%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba$P%ba(b%ba(s%ba!]%ba!^%ba~On%ba!Q%ba'z%ba({%ba~P&JXO({%POP%daR%da[%daj%dar%da!S%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da$P%da(b%da(s%da!]%da!^%da~On%da!Q%da'z%da(z%da~P&L`On>_O!Q*PO'z*QO({%PO~P&JXOn>_O!Q*PO'z*QO(z$}O~P&L`OR0mO!Q0mO!S0nO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#w}a#y}a#{}a#|}a$P}a'z}a(b}a(s}a(z}a({}a!]}a!^}a~O!Q*PO'z*QOP$taR$ta[$taj$tan$tar$ta!S$ta!l$ta!p$ta#R$ta#o$ta#p$ta#q$ta#r$ta#s$ta#t$ta#u$ta#v$ta#w$ta#y$ta#{$ta#|$ta$P$ta(b$ta(s$ta(z$ta({$ta!]$ta!^$ta~O!Q*PO'z*QOP$vaR$va[$vaj$van$var$va!S$va!l$va!p$va#R$va#o$va#p$va#q$va#r$va#s$va#t$va#u$va#v$va#w$va#y$va#{$va#|$va$P$va(b$va(s$va(z$va({$va!]$va!^$va~On>_O!Q*PO'z*QO(z$}O({%PO~OP%UaR%Ua[%Uaj%Uar%Ua!S%Ua!l%Ua!p%Ua#R%Ua#o%Ua#p%Ua#q%Ua#r%Ua#s%Ua#t%Ua#u%Ua#v%Ua#w%Ua#y%Ua#{%Ua#|%Ua$P%Ua(b%Ua(s%Ua!]%Ua!^%Ua~P''eO$P$nq!]$nq!^$nq~P#BwO$P$pq!]$pq!^$pq~P#BwO!^9qO~O$P9rO~P!1WO!g#vO!]'fi!k'fi~O!g#vO(s'qO!]'fi!k'fi~O!]/rO!k)Pq~O!Y'hi!]'hi~P#/sO!]/{O!Y)Qq~Or9yO!g#vO(s'qO~O[9{O!Y9zO~P#/sO!Y9zO~Oj:RO!g#vO~Og(`y!](`y~P!1WO!]'oa!_'oa~P#/sOa%]q!_%]q'{%]q!]%]q~P#/sO[:WO~O!]1VO!^)Yq~O`:[O~O#`:]O!]'qa!^'qa~O!]5wO!^)Vi~P#BwO!S:_O~O!_1qO%j:bO~O(WTO(ZUO(f:gO~O!]1|O!^)Wq~O!k:jO~O!k:kO~O!k:lO~O!k:lO~P%[O#`:oO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%j:tO~P&8tO!_'aO%j:tO~O$P#}y!]#}y!^#}y~P#BwOP$}iR$}i[$}ij$}ir$}i!S$}i!l$}i!p$}i#R$}i#o$}i#p$}i#q$}i#r$}i#s$}i#t$}i#u$}i#v$}i#w$}i#y$}i#{$}i#|$}i$P$}i(b$}i(s$}i!]$}i!^$}i~P''eO!Q*PO'z*QO({%POP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#w'ja#y'ja#{'ja#|'ja$P'ja(b'ja(s'ja(z'ja!]'ja!^'ja~O!Q*PO'z*QOP'laR'la['laj'lan'lar'la!S'la!l'la!p'la#R'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#w'la#y'la#{'la#|'la$P'la(b'la(s'la(z'la({'la!]'la!^'la~O(z$}OP%biR%bi[%bij%bin%bir%bi!Q%bi!S%bi!l%bi!p%bi#R%bi#o%bi#p%bi#q%bi#r%bi#s%bi#t%bi#u%bi#v%bi#w%bi#y%bi#{%bi#|%bi$P%bi'z%bi(b%bi(s%bi({%bi!]%bi!^%bi~O({%POP%diR%di[%dij%din%dir%di!Q%di!S%di!l%di!p%di#R%di#o%di#p%di#q%di#r%di#s%di#t%di#u%di#v%di#w%di#y%di#{%di#|%di$P%di'z%di(b%di(s%di(z%di!]%di!^%di~O$P$py!]$py!^$py~P#BwO$P#cy!]#cy!^#cy~P#BwO!g#vO!]'fq!k'fq~O!]/rO!k)Py~O!Y'hq!]'hq~P#/sOr;OO!g#vO(s'qO~O[;SO!Y;RO~P#/sO!Y;RO~Og(`!R!](`!R~P!1WOa%]y!_%]y'{%]y!]%]y~P#/sO!]1VO!^)Yy~O!]5wO!^)Vq~O(U;ZO~O!_1qO%j;^O~O!k;aO~O%j;fO~P&8tOP$}qR$}q[$}qj$}qr$}q!S$}q!l$}q!p$}q#R$}q#o$}q#p$}q#q$}q#r$}q#s$}q#t$}q#u$}q#v$}q#w$}q#y$}q#{$}q#|$}q$P$}q(b$}q(s$}q!]$}q!^$}q~P''eO!Q*PO'z*QO({%POP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#w'ka#y'ka#{'ka#|'ka$P'ka(b'ka(s'ka(z'ka!]'ka!^'ka~O!Q*PO'z*QOP'maR'ma['maj'man'mar'ma!S'ma!l'ma!p'ma#R'ma#o'ma#p'ma#q'ma#r'ma#s'ma#t'ma#u'ma#v'ma#w'ma#y'ma#{'ma#|'ma$P'ma(b'ma(s'ma(z'ma({'ma!]'ma!^'ma~OP%PqR%Pq[%Pqj%Pqr%Pq!S%Pq!l%Pq!p%Pq#R%Pq#o%Pq#p%Pq#q%Pq#r%Pq#s%Pq#t%Pq#u%Pq#v%Pq#w%Pq#y%Pq#{%Pq#|%Pq$P%Pq(b%Pq(s%Pq!]%Pq!^%Pq~P''eOg%f!Z!]%f!Z#`%f!Z$P%f!Z~P!1WO!Y;jO~P#/sOr;kO!g#vO(s'qO~O[;mO!Y;jO~P#/sO!]'qq!^'qq~P#BwO!]#h!Z!^#h!Z~P#BwO#l%f!ZP%f!ZR%f!Z[%f!Za%f!Zj%f!Zr%f!Z!S%f!Z!]%f!Z!l%f!Z!p%f!Z#R%f!Z#o%f!Z#p%f!Z#q%f!Z#r%f!Z#s%f!Z#t%f!Z#u%f!Z#v%f!Z#w%f!Z#y%f!Z#{%f!Z#|%f!Z'{%f!Z(b%f!Z(s%f!Z!k%f!Z!Y%f!Z'x%f!Z#`%f!Zv%f!Z!_%f!Z%j%f!Z!g%f!Z~P#/sOr;vO!g#vO(s'qO~O!Y;wO~P#/sOr<OO!g#vO(s'qO~O!Y<PO~P#/sOP%f!ZR%f!Z[%f!Zj%f!Zr%f!Z!S%f!Z!l%f!Z!p%f!Z#R%f!Z#o%f!Z#p%f!Z#q%f!Z#r%f!Z#s%f!Z#t%f!Z#u%f!Z#v%f!Z#w%f!Z#y%f!Z#{%f!Z#|%f!Z$P%f!Z(b%f!Z(s%f!Z!]%f!Z!^%f!Z~P''eOr<SO!g#vO(s'qO~Ov(gX~P1qO!Q%rO~P!)[O(V!lO~P!)[O!YfX!]fX#`fX~P%2^OP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X~O!gfX!k]X!kfX(sfX~P'LcOP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_XO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(U)^O(WTO(ZUO(bVO(p[O~O!]<kO!^$ra~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<vO!S${O!_$|O!i>XO!l$xO#k<|O$X%`O$u<xO$w<zO$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~Ol)eO~P(#XOr!eX(s!eX~P#!nO!^]X!^fX~P'LcO!YfX!Y${X!]fX!]${X#`fX~P!0SO#l<`O~O!g#vO#l<`O~O#`<pO~Oj<dO~O#`=PO!](xX!^(xX~O#`<pO!](vX!^(vX~O#l=QO~Og=SO~P!1WO#l=YO~O#l=ZO~Og=SO(U&ZO~O!g#vO#l=[O~O!g#vO#l=QO~O$P=]O~P#BwO#l=^O~O#l=_O~O#l=dO~O#l=eO~O#l=fO~O#l=gO~O$P=hO~P!1WO$P=iO~P!1WOl=tO~P7eOk#S#T#U#W#X#[#j#k#v$o$u$w$z%^%_%i%j%k%r%t%w%x%z%|~(PT#p!X'}(V#qs#o#rr!Q(O$^(U$`(f~",goto:"$9_)^PPPPPP)_PP)bP)sP+X/^PPPP6lPP7SPP=PPPP@sPA]PA]PPPA]PCePA]PA]PA]PCiPCnPD]PIVPPPIZPPPPIZL^PPPLdMUPIZPIZPP! dIZPPPIZPIZP!#kIZP!'R!(W!(aP!)T!)X!)T!,fPPPPPPP!-V!(WPP!-g!/XP!2hIZIZ!2m!5y!:g!:g!>f!>nPPP!>tIZPPPPPPPPP!BTP!CbPPIZ!DsPIZPIZIZIZIZIZPIZ!FVP!IaP!LgP!Lk!Lu!Ly!LyP!I^P!L}!L}P#!TP#!XIZPIZ#!_#%dCiA]PA]PA]A]P#&qA]A]#)TA]#+{A]#.XA]A]#.w#1]#1]#1b#1k#1]#1vPP#1]PA]#2`A]#6_A]A]6lPPP#:dPPP#:}#:}P#:}P#;e#:}PP#;kP#;bP#;b#<O#;b#<j#<p#<s)bP#<v)bP#=P#=P#=PP)bP)bP)bP)bPP)bP#=V#=YP#=Y)bP#=^P#=aP)bP)bP)bP)bP)bP)b)bPP#=g#=m#=x#>O#>U#>[#>b#>p#>v#?Q#?W#?b#?h#?x#@O#@p#AS#AY#A`#An#BT#Cx#DW#D_#Ey#FX#Gy#HX#H_#He#Hk#Hu#H{#IR#I]#Io#IuPPPPPPPPPPP#I{PPPPPPP#Jp#M}$ g$ n$ vPPP$'bP$'k$*d$0}$1Q$1T$2S$2V$2^$2fP$2l$2oP$3]$3a$4X$5g$5l$6SPP$6X$6_$6c$6f$6j$6n$7j$8R$8j$8n$8q$8t$9O$9R$9V$9ZR!|RoqOXst!Z#d%m&r&t&u&w,u,z2^2aY!vQ'a-g1q5}Q%tvQ%|yQ&T|Q&j!VS'W!e-^Q'g!iS'm!r!yU*l$|*[*pQ+q%}S,O&V&WQ,f&dQ-e'`Q-o'hQ-w'nQ0^*rQ1d,QQ1{,gR<}<[%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_,r,u,z-k-s.R.X.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3n4|6V6g6h6k7O8v9V9aS#q]<X!r)`$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TU+Q%]<u<vQ+v&PQ,h&gQ,o&oQ0z+iQ1P+kQ1[+wQ2T,mQ3b.iQ5b1OQ5h1VQ6^1|Q7[3fQ8b5iR9g7^'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T!S!nQ!r!v!y!z$|'W'`'a'm'n'o*l*p*r*s-^-e-g-w0^0a1q5}6P%[$ti#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_Q&X|S'U!e*[S']%i-bQ+v&PQ,R&WQ,h&gQ0p+TQ1[+wQ1a+}Q2S,lQ2T,mQ5h1VQ5q1cQ6^1|Q6a2OQ6b2RQ8b5iQ8e5nQ9O6dQ:Z8fQ:h8{R;X:[rnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aR,j&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'c's(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>S>T[#]WZ#W#Z'X(U!b%jm#h#i#l$x%e%h(_(i(j(k*Z*_*c+[+^+`,q-W.V.].^._.a/o/r2f3^3_4c6t7VQ%wxQ%{yW&Q|&V&W,QQ&_!TQ'd!hQ'f!iQ(r#sS+p%|%}Q+t&PQ,a&bQ,e&dS-n'g'hQ.k(sQ1T+qQ1Z+wQ1]+xQ1`+|Q1v,bS1z,f,gQ3O-oQ5g1VQ5k1YQ5p1bQ6]1{Q8a5iQ8d5mQ8h5rQ:V8`R;V:W!U$zi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z!^%yy!i!u%{%|%}'V'f'g'h'l'v*k+p+q-Z-n-o-v0T0W1T2w3O3V4t4u4x8P9}Q+j%wQ,V&[Q,Y&]Q,d&dQ.j(rQ1u,aU1y,e,f,gQ3g.kQ6W1vS6[1z1{Q8z6]#f>U#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_o>V<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=iW%Ti%V*z>QS&[!Q&iQ&]!RQ&^!SU+O%[%d=tR,T&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_T){$u)|V+Q%]<u<vW']!e%i*[-bS)O#y#zQ+e%rQ+{&SS.d(n(oQ1l,ZQ5V0mR8k5w'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T$i$^c#Y#e%q%s%u(T(Z(u(z)S)T)U)V)W)X)Y)Z)[)])_)a)c)h)r+f+z-[-z.P.U.W.u.x.|/O/P/Q/d0r2o2t3Q3X3m3r3s3t3u3v3w3x3y3z3{3|3}4O4R4S4Z5Z5e6w6}7S7c7d7m7n8m9Z9_9i9o9p:q;Y;b<Y=wT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ'Y!eR2r-^!W!nQ!e!r!v!y!z$|'W'`'a'm'n'o*[*l*p*r*s-^-e-g-w0^0a1q5}6PR1n,]nqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&y!^Q'w!xS(t#u<`Q+n%zQ,_&_Q,`&aQ-l'eQ-y'pS.t(y=QS0s+Y=[Q1R+oQ1p,^Q2e,|Q2g,}Q2n-XQ2|-mQ3P-qS5[0t=fQ5c1SS5f1U=gQ6v2pQ6z2}Q7P3UQ8_5dQ9[6xQ9]6{Q9`7QR:n9X$d$]c#Y#e%s%u(T(Z(u(z)S)T)U)V)W)X)Y)Z)[)])_)a)c)h)r+f+z-[-z.P.U.W.u.x.|/P/Q/d0r2o2t3Q3X3m3r3s3t3u3v3w3x3y3z3{3|3}4O4R4S4Z5Z5e6w6}7S7c7d7m7n8m9Z9_9i9o9p:q;Y;b<Y=wS(p#p'jQ)Q#zS+d%q/OS.e(o(qR3`.f'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TS#q]<XQ&t!XQ&u!YQ&w![Q&x!]R2],xQ'b!hQ+g%wQ-j'dS.g(r+jQ2z-iW3d.j.k0y0{Q6y2{W7W3a3c3g5`U9c7X7Z7]U:s9e9f9hS;d:r:uQ;r;eR;z;sU!wQ'a-gT5{1q5}!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(k,u,z.^2^2a]!pQ!r'a-g1q5}T#q]<X%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aS)O#y#zS.d(n(o!s=m$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TU$fd)`,oS(q#p'jU*w%R(x4QU0o+P.p7iQ5`0zQ7X3bQ9f7[R:u9gm!tQ!r!v!y!z'a'm'n'o-g-w1q5}6PQ'u!uS(g#g2WS-u'l'xQ/u*^Q0T*kQ3W-xQ4h/vQ4t0VQ4u0WQ4z0`Q7t4bS8P4v4xS8T4{4}Q9t7uQ9x7{Q9}8QQ:S8VS:}9y9zS;i;O;RS;u;j;kS;};v;wS<R<O<PR<U<SQ#wbQ't!uS(f#g2WS(h#m+XQ+Z%fQ+l%xQ+r&OU-t'l'u'xQ.Y(gU/t*^*a/yQ0U*kQ0X*mQ1Q+mQ1w,cS3T-u-xQ3].bS4g/u/vQ4p0RS4s0T0`Q4w0YQ6Y1xQ7R3WS7s4b4dQ7w4hU8O4t4z4}Q8R4yQ8x6ZS9s7t7uQ9w7{Q:P8TQ:Q8UQ:e8yQ:{9tS:|9x9zQ;U:SQ;`:fS;h:};RS;t;i;jS;|;u;wS<Q;}<PQ<T<RQ<V<UQ=p=kQ=|=uR=}=vV!wQ'a-g%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aS#wz!j!r=j$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TR=p>S%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aQ%fj!^%xy!i!u%{%|%}'V'f'g'h'l'v*k+p+q-Z-n-o-v0T0W1T2w3O3V4t4u4x8P9}S&Oz!jQ+m%yQ,c&dW1x,d,e,f,gU6Z1y1z1{S8y6[6]Q:f8z!r=k$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ=u>RR=v>S%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aY#bWZ#W#Z(U!b%jm#h#i#l$x%e%h(_(i(j(k*Z*_*c+[+^+`,q-W.V.].^._.a/o/r2f3^3_4c6t7VQ,p&o!p=l$Z$n)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TR=o'XU'^!e%i*[R2u-bX'[!e%i*[-b%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_,r,u,z-k-s.R.X.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3n4|6V6g6h6k7O8v9V9a!r)`$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ,o&oQ0z+iQ3b.iQ7[3fR9g7^!b$Tc#Y%q(T(Z(u(z)[)])a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<Y!P<f)_)r-[/O2o2t3r3{3|4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=w!f$Vc#Y%q(T(Z(u(z)X)Y)[)])a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<Y!T<h)_)r-[/O2o2t3r3x3y3{3|4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=w!^$Zc#Y%q(T(Z(u(z)a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<YQ4a/mz>T)_)r-[/O2o2t3r4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=wQ>Y>[R>Z>]'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TS$oh$pR4W/W'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/W/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TT$kf$qQ$ifS)k$l)oR)w$qT$jf$qT)m$l)o'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/W/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TT$oh$pQ$rhR)v$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9a!s>R$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{'T'c)P)t*j+_+i,r,u,z-k.i/X/p0_0n1t2U2V2X2Z2^2a2c3f4V4|6V6g6h6k7^8v9V!U%Ri$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z#f(x#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_Q+U%aQ/e*Po4Q<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!U$yi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>ZQ*d$zU*m$|*[*pQ+V%bQ0Y*n#f=r#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n=s<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=iQ=x>UQ=y>VQ=z>WR={>X!U%Ri$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z#f(x#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_o4Q<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=inoOXst!Z#d%m&r&t&u&w,u,z2^2aS*g${*ZQ-T'OQ-U'QR4k/{%[%Si#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_Q,W&]Q1j,YQ5u1iR8j5vV*o$|*[*pU*o$|*[*pT5|1q5}S0R*j/pQ4y0_T8U4|:_Q+l%xQ0X*mQ1Q+mQ1w,cQ6Y1xQ8x6ZQ:e8yR;`:f!U%Oi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Zx*S$v)f*T*v+W/x0f0g4T4i5T5U5Y7r8W:T:z=q>O>PS0b*u0c#f<q#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n<r<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!d=T(v)d*]*f.l.o.s/a/m0O0x1g3j4^4j4n5t7_7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]`=U4P7e7h7l9j:v:y;{S=`.n3kT=a7g9m!U%Qi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z|*U$v)f*V*u+W/i/x0f0g4T4i5O5T5U5Y7r8W:T:z=q>O>PS0d*v0e#f<s#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n<t<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!h=V(v)d*]*f.m.n.s/a/m0O0x1g3h3j4^4j4n5t7_7`7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]d=W4P7f7g7l9j9k:v:w:y;{S=b.o3lT=c7h9nrnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aQ&f!UR,r&ornOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aR&f!UQ,[&^R1f,TsnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aQ1r,aS6T1u1vU8r6R6S6WS:a8t8uS;[:`:cQ;o;]R;y;pQ&m!VR,k&iR6a2OR:h8{W&Q|&V&W,QR1]+xQ&r!WR,u&sR,{&xT2_,z2aR-P&yQ-O&yR2h-PQ'z!{R-{'zSsOtQ#dXT%ps#dQ#OTR'|#OQ#RUR(O#RQ)|$uR/b)|Q#UVR(R#UQ#XWU(X#X(Y.SQ(Y#YR.S(ZQ-_'YR2s-_Q.w(zS3o.w3pR3p.xQ-g'aR2x-gY!rQ'a-g1q5}R'k!rQ/S)fR4U/SU#_W%h*ZU(`#_(a.TQ(a#`R.T([Q-c'^R2v-ct`OXst!V!Z#d%m&i&k&r&t&u&w,u,z2^2aS#hZ%eU#r`#h.^R.^(kQ(l#jQ.Z(hW.c(l.Z3Z7TQ3Z.[R7T3[Q)o$lR/Y)oQ$phR)u$pQ$`cU)b$`.O<lQ.O<YR<l)rQ/s*^W4e/s4f7v9uU4f/t/u/vS7v4g4hR9u7w$e*R$v(v)d)f*]*f*u*v+R+S+W.n.o.q.r.s/a/i/k/m/x0O0f0g0x1g3h3i3j4P4T4^4i4j4n5O5Q5T5U5Y5t7_7`7a7b7g7h7j7k7l7r7y7|8W8Z8]9j9k9l9v:O:T:U:v:w:x:y:z;P;T;g;l;x;{=q>O>P>[>]Q/|*fU4m/|4o7zQ4o0OR7z4nS*p$|*[R0[*px*T$v)f*u*v+W/x0f0g4T4i5T5U5Y7r8W:T:z=q>O>P!d.l(v)d*]*f.n.o.s/a/m0O0x1g3j4^4j4n5t7_7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]U/j*T.l7ea7e4P7g7h7l9j:v:y;{Q0c*uQ3k.nU5P0c3k9mR9m7g|*V$v)f*u*v+W/i/x0f0g4T4i5O5T5U5Y7r8W:T:z=q>O>P!h.m(v)d*]*f.n.o.s/a/m0O0x1g3h3j4^4j4n5t7_7`7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]U/l*V.m7fe7f4P7g7h7l9j9k:v:w:y;{Q0e*vQ3l.oU5R0e3l9nR9n7hQ*{%UR0i*{Q5_0xR8[5_Q+a%kR0w+aQ5x1lS8l5x:^R:^8mQ,^&_R1o,^Q5}1qR8o5}Q1},hS6_1}8|R8|6aQ1W+tW5j1W5l8c:XQ5l1ZQ8c5kR:X8dQ+y&QR1^+yQ2a,zR6o2aYrOXst#dQ&v!ZQ+c%mQ,t&rQ,v&tQ,w&uQ,y&wQ2[,uS2_,z2aR6n2^Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'r!uQ+b%lQ+n%zQ,S&XQ,j&mQ-R&|W-r'l't'u'xQ-y'pQ0Z*oQ1R+oQ1e,RS2Q,k,nQ2i-QQ2j-TQ2k-UQ3P-qW3R-t-u-x-zQ5c1SQ5o1aQ5s1gQ6X1wQ6c2SQ6m2]U6|3Q3T3WQ7P3UQ8_5dQ8g5qQ8i5tQ8n5|Q8w6YQ8}6bS9^6}7RQ9`7QQ:Y8eQ:d8xQ:i9OQ:p9_Q;W:ZQ;_:eQ;c:qQ;n;XR;q;`Q%zyQ'e!iQ'p!uU+o%{%|%}Q-X'VU-m'f'g'hS-q'l'vQ0S*kS1S+p+qQ2p-ZS2}-n-oQ3U-vS4r0T0WQ5d1TQ6x2wQ6{3OQ7Q3VU7}4t4u4xQ9|8PR;Q9}S$wi>QR*|%VU%Ui%V>QR0h*zQ$viS(v#v+kS)d$b$cQ)f$dQ*]$xS*f${*ZQ*u%OQ*v%QQ+R%^Q+S%_Q+W%cQ.n<qQ.o<sQ.q<wQ.r<yQ.s<{Q/a)zQ/i*SQ/k*UQ/m*WQ/x*bS0O*h/oQ0f*xQ0g*yl0x+h,X.h1k1s3e6U7Y8s9d:b:t;^;fQ1g,UQ3h=TQ3i=VQ3j=YS4P<n<oQ4T/RS4^/f4`Q4i/zQ4j/{Q4n/}Q5O0bQ5Q0dQ5T0kQ5U0lQ5Y0qQ5t1hQ7_=^Q7`=`Q7a=bQ7b=dQ7g<rQ7h<tQ7j<xQ7k<zQ7l<|Q7r4aQ7y4lQ7|4qQ8W5SQ8Z5^Q8]5aQ9j=ZQ9k=UQ9l=WQ9v7xQ:O8SQ:T8XQ:U8^Q:v=_Q:w=aQ:x=cQ:y=eQ:z9rQ;P9{Q;T:RQ;g=hQ;l;SQ;x;mQ;{=iQ=q>QQ>O>YQ>P>ZQ>[>^R>]>_Q+P%]Q.p<uR7i<vnpOXst!Z#d%m&r&t&u&w,u,z2^2aQ!fPS#fZ#oQ&|!`W'i!o*j0_4|Q(Q#SQ)R#{Q)s$nS,n&k&nQ,s&oQ-Q&{S-V'T/pQ-i'cQ.z)PQ/^)tQ0u+_Q0{+iQ2Y,rQ2{-kQ3c.iQ4Y/XQ5W0nQ6S1tQ6e2UQ6f2VQ6j2XQ6l2ZQ6q2cQ7]3fQ7o4VQ8u6VQ9R6gQ9S6hQ9U6kQ9h7^Q:c8vR:m9V#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{'T'c)P*j+_+i,r,u,z-k.i/p0_0n1t2U2V2X2Z2^2a2c3f4|6V6g6h6k7^8v9VQ#YWQ#eYQ%quQ%svS%uw!gS(T#W(WQ(Z#ZQ(u#uQ(z#xQ)S$OQ)T$PQ)U$QQ)V$RQ)W$SQ)X$TQ)Y$UQ)Z$VQ)[$WQ)]$XQ)_$ZQ)a$_Q)c$aQ)h$eW)r$n)t/X4VQ+f%tQ+z&RS-['X2qQ-z'sS.P(U.RQ.U(^Q.W(eQ.u(yQ.x({Q.|<WQ/O<ZQ/P<[Q/Q<_Q/d*OQ0r+YQ2o-YQ2t-aQ3Q-sQ3X.XQ3m.vQ3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{<iQ3|<jQ3}.}Q4O<mQ4R<pQ4S<}Q4Z<kQ5Z0tQ5e1UQ6w=PQ6}3SQ7S3YQ7c3nQ7d=QQ7m=SQ7n=[Q8m5yQ9Z6uQ9_7OQ9i=]Q9o=fQ9p=gQ:q9aQ;Y:]Q;b:oQ<Y#SR=w>TR#[WR'Z!el!tQ!r!v!y!z'a'm'n'o-g-w1q5}6PS'V!e-^U*k$|*[*pS-Z'W'`S0W*l*rQ0`*sQ2w-eQ4x0^R4}0aR(|#xQ!fQT-f'a-g]!qQ!r'a-g1q5}Q#p]R'j<XR)g$dY!uQ'a-g1q5}Q'l!rS'v!v!yS'x!z6PS-v'm'nQ-x'oR3V-wT#kZ%eS#jZ%eS%km,qU(h#h#i#lS.[(i(jQ.`(kQ0v+`Q3[.]U3].^._.aS7U3^3_R9b7Vd#^W#W#Z%h(U(_*Z+[.V/or#gZm#h#i#l%e(i(j(k+`.].^._.a3^3_7VS*^$x*cQ/v*_Q2W,qQ2m-WQ4b/rQ6s2fQ7u4cQ9Y6tT=n'X+^V#aW%h*ZU#`W%h*ZS(V#W(_U([#Z+[/oS-]'X+^T.Q(U.VV'_!e%i*[Q$lfR)y$qT)n$l)oR4X/WT*`$x*cT*i${*ZQ0y+hQ1i,XQ3a.hQ5v1kQ6R1sQ7Z3eQ8t6UQ9e7YQ:`8sQ:r9dQ;]:bQ;e:tQ;p;^R;s;fnqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&l!VR,j&itmOXst!U!V!Z#d%m&i&r&t&u&w,u,z2^2aR,q&oT%lm,qR1m,ZR,i&gQ&U|S,P&V&WR1`,QR+u&PT&p!W&sT&q!W&sT2`,z2a",nodeNames:`⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:381,context:zG,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,`Expression`,-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,161,`JSXStartCloseTag`],[`closedBy`,-2,24,169,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,166,`JSXEndTag`]],propSources:[KG],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$j&j([!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU([!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$j&j(XpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(XpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$j&j(Xp([!b'}0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(Y#S$j&j(O0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$j&j(Xp([!b(O0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$j&j!p),Q(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#w(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#w(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(W':f$j&j([!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$j&j([!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$j&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$e`$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$e``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$e`$j&j([!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ([!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$e`([!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$j&j(Xp([!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$j&j(Xp([!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$j&j([!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$j&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS([!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$j&j(XpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(XpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Xp([!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$j&j(p%1l(Xp([!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$j&j(Xp([!b$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$j&j(Xp([!b$^#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$j&j(Xp([!b#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$j&j$R(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva({+JY$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$j&j#{(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(Z';W$j&j(XpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$j&j(XpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$j&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$e`$j&j(XpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(XpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$e`(XpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$j&j(Xp([!b(V%&f#r(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$j&j(Xp([!b#o(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$j&j(Xp([!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$j&j(Xp([!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$j&j(Xp([!b#p(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$j&j(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$j&j([!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$j&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$j&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$j&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$j&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$j&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$j&j([!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ([!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse([!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX([!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$j&j([!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$j&j(Xp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$j&j(Xp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Xp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Xp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(XpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$j&j(XpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$j&j(Xp([!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Xp([!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Xp([!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Xp([!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$j&j(Xp([!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$j&j(Xp([!b(P0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$j&j(Xp([!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$j&j([!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$j&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW([!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$j&j(XpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(XpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Xp([!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$j&j$R(Ch(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$[#t$j&j(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$j&j$P)Lv(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Xp([!b$o7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$l&j(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#s(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$R(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#t(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#l(Cl$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#t(Ch$g#|$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#t(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#s(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#s(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(s(Ct$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$j&j#|(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$j&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$j&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$j&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$j&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$j&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#y(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$j&j(Xp([!b(b+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$j&j(Xp([!b(U,2j$`#t(f$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$j&j(Xp([!b$`#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(z+JY$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$j&j(Xp([!b'}0/l$^#t(U,2j(f$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$j&j(Xp([!b(O0/l$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[VG,HG,UG,GG,2,3,4,5,6,7,8,9,10,11,12,13,14,BG,new _e("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new _e(`j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~`,25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15179},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:e=>qG[e]||-1},{term:344,get:e=>JG[e]||-1},{term:95,get:e=>YG[e]||-1}],tokenPrec:15205}),ZG=nt({autoCloseTags:()=>xK,javascript:()=>_K,javascriptLanguage:()=>lK,jsxLanguage:()=>fK,localCompletionSource:()=>cK,snippets:()=>QG,tsxLanguage:()=>pK,typescriptLanguage:()=>dK,typescriptSnippets:()=>$G}),QG=[AI("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),AI("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),AI("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),AI(`do {
|
|
206
|
+
\${}
|
|
207
|
+
} while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),AI(`while (\${}) {
|
|
208
|
+
\${}
|
|
209
|
+
}`,{label:`while`,detail:`loop`,type:`keyword`}),AI(`try {
|
|
210
|
+
\${}
|
|
211
|
+
} catch (\${error}) {
|
|
212
|
+
\${}
|
|
213
|
+
}`,{label:`try`,detail:`/ catch block`,type:`keyword`}),AI(`if (\${}) {
|
|
214
|
+
\${}
|
|
215
|
+
}`,{label:`if`,detail:`block`,type:`keyword`}),AI(`if (\${}) {
|
|
216
|
+
\${}
|
|
217
|
+
} else {
|
|
218
|
+
\${}
|
|
219
|
+
}`,{label:`if`,detail:`/ else block`,type:`keyword`}),AI(`class \${name} {
|
|
220
|
+
constructor(\${params}) {
|
|
221
|
+
\${}
|
|
222
|
+
}
|
|
223
|
+
}`,{label:`class`,detail:`definition`,type:`keyword`}),AI('import {${names}} from "${module}"\n${}',{label:`import`,detail:`named`,type:`keyword`}),AI('import ${name} from "${module}"\n${}',{label:`import`,detail:`default`,type:`keyword`})],$G=QG.concat([AI(`interface \${name} {
|
|
224
|
+
\${}
|
|
225
|
+
}`,{label:`interface`,detail:`definition`,type:`keyword`}),AI("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),AI(`enum \${name} {
|
|
226
|
+
\${}
|
|
227
|
+
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),eK=new ne,tK=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function nK(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var rK=[`FunctionDeclaration`],iK={FunctionDeclaration:nK(`function`),ClassDeclaration:nK(`class`),ClassExpression:()=>!0,EnumDeclaration:nK(`constant`),TypeAliasDeclaration:nK(`type`),NamespaceDeclaration:nK(`namespace`),VariableDefinition(e,t){e.matchContext(rK)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function aK(e,t){let n=eK.get(t);if(n)return n;let i=[],a=!0;function o(t,n){let r=e.sliceString(t.from,t.to);i.push({label:r,type:n})}return t.cursor(r.IncludeAnonymous).iterate(t=>{if(a)a=!1;else if(t.name){let e=iK[t.name];if(e&&e(t,o)||tK.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of aK(e,t.node))i.push(n);return!1}}),eK.set(t,i),i}var oK=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,sK=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function cK(e){let t=d(e.state).resolveInner(e.pos,-1);if(sK.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&oK.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)tK.has(n.name)&&(r=r.concat(aK(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:oK}}var lK=Fe.define({name:`javascript`,parser:XG.configure({props:[s.add({IfStatement:he({except:/^\s*({|else\b)/}),TryStatement:he({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ke,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Ve({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":he({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":We,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),uK={test:e=>/^JSX/.test(e.name),facet:B({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},dK=lK.configure({dialect:`ts`},`typescript`),fK=lK.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[uK]:void 0)]}),pK=lK.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[uK]:void 0)]},`typescript`),mK=e=>({label:e,type:`keyword`}),hK=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(mK),gK=hK.concat([`declare`,`implements`,`private`,`protected`,`public`].map(mK));function _K(e={}){let t=e.jsx?e.typescript?pK:fK:e.typescript?dK:lK,n=e.typescript?$G.concat(gK):QG.concat(hK);return new ze(t,[lK.data.of({autocomplete:bF(sK,yF(n))}),lK.data.of({autocomplete:cK}),e.jsx?xK:[]])}function vK(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function yK(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var bK=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),xK=L.inputHandler.of((e,t,n,r,i)=>{if((bK?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!lK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=yK(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:W.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=vK(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=yK(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),SK=nt({autoCloseTags:()=>eq,html:()=>ZK,htmlCompletionSource:()=>WK,htmlCompletionSourceWith:()=>GK,htmlLanguage:()=>XK}),CK=[`_blank`,`_self`,`_top`,`_parent`],wK=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],TK=[`get`,`post`,`put`,`delete`],EK=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],DK=[`true`,`false`],OK={},kK={a:{attrs:{href:null,ping:null,type:null,media:null,target:CK,hreflang:null}},abbr:OK,address:OK,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:OK,aside:OK,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:OK,base:{attrs:{href:null,target:CK}},bdi:OK,bdo:OK,blockquote:{attrs:{cite:null}},body:OK,br:OK,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:OK,center:OK,cite:OK,code:OK,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[`command`,`checkbox`,`radio`],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[`disabled`],checked:[`checked`]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[`disabled`],multiple:[`multiple`]}},datalist:{attrs:{data:null}},dd:OK,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:OK,div:OK,dl:OK,dt:OK,em:OK,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:OK,figure:OK,footer:OK,form:{attrs:{action:null,name:null,"accept-charset":wK,autocomplete:[`on`,`off`],enctype:EK,method:TK,novalidate:[`novalidate`],target:CK}},h1:OK,h2:OK,h3:OK,h4:OK,h5:OK,h6:OK,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:OK,hgroup:OK,hr:OK,html:{attrs:{manifest:null}},i:OK,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[`allow-top-navigation`,`allow-same-origin`,`allow-forms`,`allow-scripts`],seamless:[`seamless`]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[`audio/*`,`video/*`,`image/*`],autocomplete:[`on`,`off`],autofocus:[`autofocus`],checked:[`checked`],disabled:[`disabled`],formenctype:EK,formmethod:TK,formnovalidate:[`novalidate`],formtarget:CK,multiple:[`multiple`],readonly:[`readonly`],required:[`required`],type:[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]}},ins:{attrs:{cite:null,datetime:null}},kbd:OK,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:OK,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:[`all`,`16x16`,`16x16 32x32`,`16x16 32x32 64x64`]}},map:{attrs:{name:null}},mark:OK,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:wK,name:[`viewport`,`application-name`,`author`,`description`,`generator`,`keywords`],"http-equiv":[`content-language`,`content-type`,`default-style`,`refresh`]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:OK,noscript:OK,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[`typemustmatch`]}},ol:{attrs:{reversed:[`reversed`],start:null,type:[`1`,`a`,`A`,`i`,`I`]},children:[`li`,`script`,`template`,`ul`,`ol`]},optgroup:{attrs:{disabled:[`disabled`],label:null}},option:{attrs:{disabled:[`disabled`],label:null,selected:[`selected`],value:null}},output:{attrs:{for:null,form:null,name:null}},p:OK,param:{attrs:{name:null,value:null}},pre:OK,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:OK,rt:OK,ruby:OK,samp:OK,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:wK}},section:OK,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:OK,source:{attrs:{src:null,type:null,media:null}},span:OK,strong:OK,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:OK,summary:OK,sup:OK,table:OK,tbody:OK,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:OK,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[`autofocus`],disabled:[`disabled`],readonly:[`readonly`],required:[`required`],wrap:[`soft`,`hard`]}},tfoot:OK,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:OK,time:{attrs:{datetime:null}},title:OK,tr:OK,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:OK,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`auto`,`metadata`,`none`],autoplay:[`autoplay`],mediagroup:[`movie`],muted:[`muted`],controls:[`controls`]}},wbr:OK},AK={accesskey:null,class:null,contenteditable:DK,contextmenu:null,dir:[`ltr`,`rtl`,`auto`],draggable:[`true`,`false`,`auto`],dropzone:[`copy`,`move`,`link`,`string:`,`file:`],hidden:[`hidden`],id:null,inert:[`inert`],itemid:null,itemprop:null,itemref:null,itemscope:[`itemscope`],itemtype:null,lang:[`ar`,`bn`,`de`,`en-GB`,`en-US`,`es`,`fr`,`hi`,`id`,`ja`,`pa`,`pt`,`ru`,`tr`,`zh`],spellcheck:DK,autocorrect:DK,autocapitalize:DK,style:null,tabindex:null,title:null,translate:[`yes`,`no`],rel:[`stylesheet`,`alternate`,`author`,`bookmark`,`help`,`license`,`next`,`nofollow`,`noreferrer`,`prefetch`,`prev`,`search`,`tag`],role:`alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer`.split(` `),"aria-activedescendant":null,"aria-atomic":DK,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":DK,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":DK,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":DK,"aria-hidden":DK,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":DK,"aria-multiselectable":DK,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":DK,"aria-relevant":null,"aria-required":DK,"aria-selected":[`true`,`false`,`undefined`],"aria-setsize":null,"aria-sort":[`ascending`,`descending`,`none`,`other`],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},jK=`beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload`.split(` `).map(e=>`on`+e);for(let e of jK)AK[e]=null;var MK=class{constructor(e,t){this.tags={...kK,...e},this.globalAttrs={...AK,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};MK.default=new MK;function NK(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function PK(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function FK(e,t,n){return n.tags[NK(e,PK(t))]?.children||n.allTags}function IK(e,t){let n=[];for(let r=PK(t);r&&!r.type.isTop;r=PK(r.parent)){let i=NK(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var LK=/^[:\-\.\w\u00b7-\uffff]*$/;function RK(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=PK(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:FK(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(IK(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function zK(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:IK(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:LK}}function BK(e,t,n,r){let i=[],a=0;for(let r of FK(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of IK(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function VK(e,t,n,r,i){let a=PK(n),o=a?t.tags[NK(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:LK}}function HK(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=PK(n),i=r?t.tags[NK(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function UK(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?zK(n,i,i.from,r):RK(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?RK(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?zK(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?VK(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?HK(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?BK(n,e,i,r):null}function WK(e){return UK(MK.default,e)}function GK(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new MK(t,n):MK.default;return e=>UK(r,e)}var KK=lK.parser.configure({top:`SingleExpression`}),qK=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:dK.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:fK.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:pK.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:KK},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:lK.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:pG.parser}],JK=[{name:`style`,parser:pG.parser.configure({top:`Styles`})}].concat(jK.map(e=>({name:e,parser:lK.parser}))),YK=Fe.define({name:`html`,parser:cW.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),we.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),XK=YK.configure({wrap:fW(qK,JK)});function ZK(e={}){let t=``,n;e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=fW((e.nestedLanguages||[]).concat(qK),(e.nestedAttributes||[]).concat(JK)));let r=n?YK.configure({wrap:n,dialect:t}):t?XK.configure({dialect:t}):XK;return new ze(r,[XK.data.of({autocomplete:GK(e)}),e.autoCloseTags===!1?[]:eq,_K().support,mG().support])}var QK=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function $K(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||NK(e,r)!=n)return!0;t=r}}var eq=L.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!XK.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if((a=NK(o.doc,t.parent,n))&&!QK.has(a)&&!$K(o.doc,t.parent,a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=NK(o.doc,e,n))&&!QK.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:W.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),tq=nt({commonmarkLanguage:()=>uq,deleteMarkupBackward:()=>wq,insertNewlineContinueMarkup:()=>yq,insertNewlineContinueMarkupCommand:()=>vq,markdown:()=>Dq,markdownKeymap:()=>Tq,markdownLanguage:()=>dq,pasteURLAsLink:()=>Mq}),nq=B({commentTokens:{block:{open:`<!--`,close:`-->`}}}),rq=new I,iq=MH.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||aq(e)!=null||oq(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),rq.add(aq),s.add({Document:()=>null}),ye.add({Document:nq})]});function aq(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function oq(e){return e.name==`OrderedList`||e.name==`BulletList`}function sq(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=aq(e.type))!=null&&r<=t)break;n=e}return n.to}var cq=Ue.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(rq);if(e==null)continue;let t=sq(r,e);if(t>n)return{from:n,to:t}}return null});function lq(e){return new oe(nq,e,[],`markdown`)}var uq=lq(iq),dq=lq(iq.configure([QH,tU,eU,nU,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function fq(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):U.matchLanguageName(e,n,!0),t instanceof U)return t.support?t.support.language.parser:ce.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var pq=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+hq(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function mq(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new pq(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new pq(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new pq(i.parent,s,s+t,a[1],e,n,i))}}return r}function hq(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function gq(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=hq(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function _q(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=Je(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var vq=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!dq.isActiveAt(t,n.from,-1)&&!dq.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=mq(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&gq(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&gq(e.item,i,r),{range:W.cursor(t+n.length),changes:r}}{let e=Sq(c,t,s);return{range:W.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&gq(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?Je(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=_q(p,t),xq(l.node,t.doc)&&(p=Sq(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:W.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},yq=vq();function bq(e){return e.name==`QuoteMark`||e.name==`ListMark`}function xq(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function Sq(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?Je(n.text,4,e[t+1].from)-r.length:null,t<i);return _q(r,t)}function Cq(e,t){let n=e.resolveInner(t,-1),r=t;bq(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(bq(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var wq=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&dq.isActiveAt(e,t.from)){let t=a.lineAt(i),r=mq(Cq(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:W.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(Je(t.text,4,n.to)-Je(t.text,4,n.from));return r==t.from&&(i=_q(i,e)),{range:W.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:W.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},Tq=[{key:`Enter`,run:yq},{key:`Backspace`,run:wq}],Eq=ZK({matchClosingTags:!1});function Dq(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=uq,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Eq}=e;if(!(i instanceof rH))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,cq],u;o&&l.push(Mq),n instanceof ze?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?fq(t,u):void 0;c.push(PH({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(Be.of(Tq)));let f=lq(i.configure(c));return a&&l.push(f.data.of({autocomplete:Oq})),new ze(f,l)}function Oq(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:Aq(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var kq=null;function Aq(){if(kq)return kq;let e=WK(new gF(ee.create({extensions:Eq}),0,!0));return kq=e?e.options:[]}var jq=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Mq=L.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!dq.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||jq.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),Nq=63,Pq=64,Fq=1,Iq=2,Lq=3,Rq=4,zq=5,Bq=6,Vq=7,Hq=65,Uq=66,Wq=8,Gq=9,Kq=10,qq=11,Jq=12,Yq=13,Xq=19,Zq=20,Qq=29,$q=33,eJ=34,tJ=47,nJ=0,rJ=1,iJ=2,aJ=3,oJ=4,sJ=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};sJ.top=new sJ(null,-1,nJ);function cJ(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(uJ(t)||t==-1)return n}}function lJ(e){return e==32||e==9}function uJ(e){return e==10||e==13}function dJ(e){return lJ(e)||uJ(e)}function fJ(e){return e<0||dJ(e)}var pJ=new Le({start:sJ.top,reduce(e,t){return e.type==aJ&&(t==Zq||t==eJ)?e.parent:e},shift(e,t,n,r){if(t==Lq)return new sJ(e,cJ(r,r.pos),rJ);if(t==Hq||t==zq)return new sJ(e,cJ(r,r.pos),iJ);if(t==Nq)return e.parent;if(t==Xq||t==$q)return new sJ(e,0,aJ);if(t==Yq&&e.type==oJ)return e.parent;if(t==tJ){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new sJ(e,e.depth+ +t[0],oJ)}return e},hash(e){return e.hash}});function mJ(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&fJ(e.peek(n+3))}var hJ=new Ee((e,t)=>{if(e.next==-1&&t.canShift(Pq))return e.acceptToken(Pq);let n=e.peek(-1);if((uJ(n)||n<0)&&t.context.type!=aJ){if(mJ(e,45)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Fq,3)}if(mJ(e,46)){if(t.canShift(Nq))e.acceptToken(Nq);else return e.acceptToken(Iq,3)}let n=0;for(;e.next==32;)n++,e.advance();(n<t.context.depth||n==t.context.depth&&t.context.type==rJ&&(e.next!=45||!fJ(e.peek(1))))&&e.next!=-1&&!uJ(e.next)&&e.next!=35&&e.acceptToken(Nq,-n)}},{contextual:!0}),gJ=new Ee((e,t)=>{if(t.context.type==aJ)e.next==63&&(e.advance(),fJ(e.next)&&e.acceptToken(Vq));else if(e.next==45)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==rJ&&t.context.depth==cJ(e,e.pos-1)?Rq:Lq);else if(e.next==63)e.advance(),fJ(e.next)&&e.acceptToken(t.context.type==iJ&&t.context.depth==cJ(e,e.pos-1)?Bq:zq);else{let n=e.pos;for(;;)if(lJ(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)bJ(e);else if(e.next==38)xJ(e);else if(e.next==42){xJ(e);break}else if(e.next==39||e.next==34){if(SJ(e,!0))break;return}else if(e.next==91||e.next==123){if(!CJ(e))return;break}else{DJ(e,!0,!1,0);break}for(;lJ(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(Qq))return;fJ(e.peek(1))&&e.acceptTokenTo(t.context.type==iJ&&t.context.depth==cJ(e,n)?Uq:Hq,n)}}},{contextual:!0});function _J(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function vJ(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function yJ(e,t){return e.next==37?(e.advance(),vJ(e.next)&&e.advance(),vJ(e.next)&&e.advance(),!0):_J(e.next)||t&&e.next==44?(e.advance(),!0):!1}function bJ(e){if(e.advance(),e.next==60){for(e.advance();;)if(!yJ(e,!0)){e.next==62&&e.advance();break}}else for(;yJ(e,!1););}function xJ(e){for(e.advance();!fJ(e.next)&&TJ(e.next)!=`f`;)e.advance()}function SJ(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let a=e.next;if(a<0)break;if(e.advance(),a==n){if(a==39){if(e.next==39)e.advance();else break}else break}else if(a==92&&n==34)e.next>=0&&e.advance();else if(uJ(a)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function CJ(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!SJ(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else if(e.next<0||e.pos>n||uJ(e.next))return!1;else e.advance()}var wJ=`iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif`;function TJ(e){return e<33?`u`:e>125?`s`:wJ[e-33]}function EJ(e,t){let n=TJ(e);return n!=`u`&&!(t&&n==`f`)}function DJ(e,t,n,r){if(TJ(e.next)==`s`||(e.next==63||e.next==58||e.next==45)&&EJ(e.peek(1),n))e.advance();else return!1;let i=e.pos;for(;;){let a=e.next,o=0,s=r+1;for(;dJ(a);){if(uJ(a)){if(t)return!1;s=0}else s++;a=e.peek(++o)}if(!(a>=0&&(a==58?EJ(e.peek(o+1),n):a==35?e.peek(o-1)!=32:EJ(a,n)))||!n&&s<=r||s==0&&!n&&(mJ(e,45,o)||mJ(e,46,o)))break;if(t&&TJ(a)==`f`)return!1;for(let t=o;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}var OJ=new Ee((e,t)=>{if(e.next==33)bJ(e),e.acceptToken(Jq);else if(e.next==38||e.next==42){let t=e.next==38?Kq:qq;xJ(e),e.acceptToken(t)}else e.next==39||e.next==34?(SJ(e,!1),e.acceptToken(Gq)):DJ(e,!1,t.context.type==aJ,t.context.depth)&&e.acceptToken(Wq)}),kJ=new Ee((e,t)=>{let n=t.context.type==oJ?t.context.depth:-1,r=e.pos;scan:for(;;){let i=0,a=e.next;for(;a==32;)a=e.peek(++i);if(!i&&(mJ(e,45,i)||mJ(e,46,i))||!uJ(a)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break scan;let t=uJ(e.next);if(e.advance(),t)continue scan;r=e.pos}}e.acceptTokenTo(Yq,r)}),AJ=y({DirectiveName:G.keyword,DirectiveContent:G.attributeValue,"DirectiveEnd DocEnd":G.meta,QuotedLiteral:G.string,BlockLiteralHeader:G.special(G.string),BlockLiteralContent:G.content,Literal:G.content,"Key/Literal Key/QuotedLiteral":G.definition(G.propertyName),"Anchor Alias":G.labelName,Tag:G.typeName,Comment:G.lineComment,": , -":G.separator,"?":G.punctuation,"[ ]":G.squareBracket,"{ }":G.brace}),jJ=Ne.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:`⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document`,maxTerm:74,context:pJ,nodeProps:[[`isolate`,-3,8,9,14,``],[`openedBy`,18,`[`,32,`{`],[`closedBy`,19,`]`,33,`}`]],propSources:[AJ],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[hJ,gJ,OJ,kJ,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),MJ=nt({yaml:()=>FJ,yamlFrontmatter:()=>LJ,yamlLanguage:()=>PJ}),NJ=Ne.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:`!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~`,goto:`vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS`,nodeNames:`⚠ Document Frontmatter DashLine FrontmatterContent Body`,maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),PJ=Fe.define({name:`yaml`,parser:jJ.configure({props:[s.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name==`BlockLiteralContent`&&t.from<t.to)return e.baseIndentFor(t);if(t.name==`BlockLiteral`)return e.baseIndentFor(t)+e.unit;if(t.name==`BlockSequence`||t.name==`BlockMapping`)return e.column(t.firstChild.from,1);if(t.name==`QuotedLiteral`)return null;if(t.name==`Literal`){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)return null}}return null},FlowMapping:Ve({closing:`}`}),FlowSequence:Ve({closing:`]`})}),a.add({"FlowMapping FlowSequence":We,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:`#`},indentOnInput:/^\s*[\]\}]$/}});function FJ(){return new ze(PJ)}var IJ=Fe.define({name:`yaml-frontmatter`,parser:NJ.configure({props:[y({DashLine:G.meta})]})});function LJ(e){let{language:t,support:n}=e.content instanceof ze?e.content:{language:e.content,support:[]};return new ze(IJ.configure({wrap:Me(e=>e.name==`FrontmatterContent`?{parser:PJ.parser}:e.name==`Body`?{parser:t.parser}:null)}),n)}var RJ=`modulepreload`,zJ=function(e){return`/`+e},BJ={},VJ=function(e){return e.pathname.endsWith(`.css`)},HJ=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=zJ(t,n);let r=s(t),i=VJ(r);return HJ(BJ,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:RJ,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function $(e){return new ze(de.define(e))}function UJ(e){return Q(()=>import(`./dist-Ba-HC662.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var WJ=[U.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return Q(()=>import(`./dist-Bw5-uxs9.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),U.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return UJ(`Cassandra`)}}),U.of({name:`CSS`,extensions:[`css`],load(){return Q(()=>Promise.resolve().then(()=>ZW).then(e=>e.css()),[])}}),U.of({name:`Go`,extensions:[`go`],load(){return Q(()=>import(`./dist-DSy3dVf4.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),U.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return Q(()=>Promise.resolve().then(()=>SK).then(e=>e.html()),void 0)}}),U.of({name:`Java`,extensions:[`java`],load(){return Q(()=>import(`./dist-DDJNvivM.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),U.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript()),void 0)}}),U.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return Q(()=>import(`./dist-C-Oyo1ZT.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),U.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return Q(()=>import(`./dist-BzulKuec.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),U.of({name:`JSX`,extensions:[`jsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0})),void 0)}}),U.of({name:`LESS`,extensions:[`less`],load(){return Q(()=>import(`./dist-jjxQutEm.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),U.of({name:`Liquid`,extensions:[`liquid`],load(){return Q(()=>import(`./dist-BGbe0-Aa.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),U.of({name:`MariaDB SQL`,load(){return UJ(`MariaSQL`)}}),U.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return Q(()=>Promise.resolve().then(()=>tq).then(e=>e.markdown()),void 0)}}),U.of({name:`MS SQL`,load(){return UJ(`MSSQL`)}}),U.of({name:`MySQL`,load(){return UJ(`MySQL`)}}),U.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return Q(()=>import(`./dist-Dq6sW5Ur.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),U.of({name:`PLSQL`,extensions:[`pls`],load(){return UJ(`PLSQL`)}}),U.of({name:`PostgreSQL`,load(){return UJ(`PostgreSQL`)}}),U.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return Q(()=>import(`./dist-CmpteMYY.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),U.of({name:`Rust`,extensions:[`rs`],load(){return Q(()=>import(`./dist-CgIQYY1o.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),U.of({name:`Sass`,extensions:[`sass`],load(){return Q(()=>import(`./dist-BtMLMthJ.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),U.of({name:`SCSS`,extensions:[`scss`],load(){return Q(()=>import(`./dist-BtMLMthJ.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),U.of({name:`SQL`,extensions:[`sql`],load(){return UJ(`StandardSQL`)}}),U.of({name:`SQLite`,load(){return UJ(`SQLite`)}}),U.of({name:`TSX`,extensions:[`tsx`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),U.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return Q(()=>Promise.resolve().then(()=>ZG).then(e=>e.javascript({typescript:!0})),void 0)}}),U.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return Q(()=>import(`./dist-DF3F_I8N.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),U.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return Q(()=>import(`./dist-Dlorc3Sx.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),U.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return Q(()=>Promise.resolve().then(()=>MJ).then(e=>e.yaml()),void 0)}}),U.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return Q(()=>import(`./apl-gfMMiTNf.js`).then(e=>$(e.apl)),[])}}),U.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return Q(()=>import(`./asciiarmor-C_eisQCp.js`).then(e=>$(e.asciiArmor)),[])}}),U.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return Q(()=>import(`./asn1-DCl_8MCW.js`).then(e=>$(e.asn1({}))),[])}}),U.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return Q(()=>import(`./asterisk-BEn0Cwpx.js`).then(e=>$(e.asterisk)),[])}}),U.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return Q(()=>import(`./brainfuck-D5EjA2JK.js`).then(e=>$(e.brainfuck)),[])}}),U.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return Q(()=>import(`./cobol-DHLQUbN7.js`).then(e=>$(e.cobol)),[])}}),U.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.csharp)),[])}}),U.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`ClojureScript`,extensions:[`cljs`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return Q(()=>import(`./css-CnaYoQib.js`).then(e=>$(e.gss)),[])}}),U.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return Q(()=>import(`./cmake-84nbDH0I.js`).then(e=>$(e.cmake)),[])}}),U.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return Q(()=>import(`./coffeescript-De_zI4J0.js`).then(e=>$(e.coffeeScript)),[])}}),U.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return Q(()=>import(`./commonlisp-DgAKBe0r.js`).then(e=>$(e.commonLisp)),[])}}),U.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return Q(()=>import(`./cypher-p9eYesGn.js`).then(e=>$(e.cypher)),[])}}),U.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return Q(()=>import(`./python-B_1Jd8HM.js`).then(e=>$(e.cython)),[])}}),U.of({name:`Crystal`,extensions:[`cr`],load(){return Q(()=>import(`./crystal-Bl6YKCG_.js`).then(e=>$(e.crystal)),[])}}),U.of({name:`D`,extensions:[`d`],load(){return Q(()=>import(`./d-DWkQyNnU.js`).then(e=>$(e.d)),[])}}),U.of({name:`Dart`,extensions:[`dart`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.dart)),[])}}),U.of({name:`diff`,extensions:[`diff`,`patch`],load(){return Q(()=>import(`./diff-ChtP43wD.js`).then(e=>$(e.diff)),[])}}),U.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return Q(()=>import(`./dockerfile-DJkHQgkl.js`).then(e=>$(e.dockerFile)),__vite__mapDeps([15,16]))}}),U.of({name:`DTD`,extensions:[`dtd`],load(){return Q(()=>import(`./dtd-DTF72YNO.js`).then(e=>$(e.dtd)),[])}}),U.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return Q(()=>import(`./dylan-S7ucR4pR.js`).then(e=>$(e.dylan)),[])}}),U.of({name:`EBNF`,load(){return Q(()=>import(`./ebnf-D4c0_ac3.js`).then(e=>$(e.ebnf)),[])}}),U.of({name:`ECL`,extensions:[`ecl`],load(){return Q(()=>import(`./ecl-BVIeWmwY.js`).then(e=>$(e.ecl)),[])}}),U.of({name:`edn`,extensions:[`edn`],load(){return Q(()=>import(`./clojure-BflJGmDX.js`).then(e=>$(e.clojure)),[])}}),U.of({name:`Eiffel`,extensions:[`e`],load(){return Q(()=>import(`./eiffel-BEjRio4Q.js`).then(e=>$(e.eiffel)),[])}}),U.of({name:`Elm`,extensions:[`elm`],load(){return Q(()=>import(`./elm-Cshzl8qu.js`).then(e=>$(e.elm)),[])}}),U.of({name:`Erlang`,extensions:[`erl`],load(){return Q(()=>import(`./erlang-BV0c4Hdn.js`).then(e=>$(e.erlang)),[])}}),U.of({name:`Esper`,load(){return Q(()=>import(`./sql-DuQMFDvy.js`).then(e=>$(e.esper)),[])}}),U.of({name:`Factor`,extensions:[`factor`],load(){return Q(()=>import(`./factor-LKH5gN8L.js`).then(e=>$(e.factor)),__vite__mapDeps([17,16]))}}),U.of({name:`FCL`,load(){return Q(()=>import(`./fcl-ClOhbFR7.js`).then(e=>$(e.fcl)),[])}}),U.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return Q(()=>import(`./forth-D6RzAl64.js`).then(e=>$(e.forth)),[])}}),U.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return Q(()=>import(`./fortran-Bt6PBEDR.js`).then(e=>$(e.fortran)),[])}}),U.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.fSharp)),[])}}),U.of({name:`Gas`,extensions:[`s`],load(){return Q(()=>import(`./gas-BHEdbvp9.js`).then(e=>$(e.gas)),[])}}),U.of({name:`Gherkin`,extensions:[`feature`],load(){return Q(()=>import(`./gherkin-oBAE_ms0.js`).then(e=>$(e.gherkin)),[])}}),U.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return Q(()=>import(`./groovy-CUrWKPia.js`).then(e=>$(e.groovy)),[])}}),U.of({name:`Haskell`,extensions:[`hs`],load(){return Q(()=>import(`./haskell-BRsoo5mP.js`).then(e=>$(e.haskell)),[])}}),U.of({name:`Haxe`,extensions:[`hx`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.haxe)),[])}}),U.of({name:`HXML`,extensions:[`hxml`],load(){return Q(()=>import(`./haxe-DjVOVvNP.js`).then(e=>$(e.hxml)),[])}}),U.of({name:`HTTP`,load(){return Q(()=>import(`./http-CLVgA2GD.js`).then(e=>$(e.http)),[])}}),U.of({name:`IDL`,extensions:[`pro`],load(){return Q(()=>import(`./idl-BUZw3wgd.js`).then(e=>$(e.idl)),[])}}),U.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return Q(()=>import(`./javascript-lS2r2ifg.js`).then(e=>$(e.jsonld)),[])}}),U.of({name:`Julia`,extensions:[`jl`],load(){return Q(()=>import(`./julia-CQfgDRfP.js`).then(e=>$(e.julia)),[])}}),U.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.kotlin)),[])}}),U.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return Q(()=>import(`./livescript-BXxG0Yva.js`).then(e=>$(e.liveScript)),[])}}),U.of({name:`Lua`,extensions:[`lua`],load(){return Q(()=>import(`./lua-DPCEkfD_.js`).then(e=>$(e.lua)),[])}}),U.of({name:`mIRC`,extensions:[`mrc`],load(){return Q(()=>import(`./mirc-C9zpzAZU.js`).then(e=>$(e.mirc)),[])}}),U.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return Q(()=>import(`./mathematica-u8YMmbU0.js`).then(e=>$(e.mathematica)),[])}}),U.of({name:`Modelica`,extensions:[`mo`],load(){return Q(()=>import(`./modelica-CqHI_q-D.js`).then(e=>$(e.modelica)),[])}}),U.of({name:`MUMPS`,extensions:[`mps`],load(){return Q(()=>import(`./mumps-BSzj6Xyz.js`).then(e=>$(e.mumps)),[])}}),U.of({name:`Mbox`,extensions:[`mbox`],load(){return Q(()=>import(`./mbox-BEMVcqjs.js`).then(e=>$(e.mbox)),[])}}),U.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return Q(()=>import(`./nginx-C-ORUuei.js`).then(e=>$(e.nginx)),[])}}),U.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return Q(()=>import(`./nsis-viPvXFiq.js`).then(e=>$(e.nsis)),__vite__mapDeps([18,16]))}}),U.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return Q(()=>import(`./ntriples-CzMBulkp.js`).then(e=>$(e.ntriples)),[])}}),U.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveC)),[])}}),U.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.objectiveCpp)),[])}}),U.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.oCaml)),[])}}),U.of({name:`Octave`,extensions:[`m`],load(){return Q(()=>import(`./octave-D2Q8cUp1.js`).then(e=>$(e.octave)),[])}}),U.of({name:`Oz`,extensions:[`oz`],load(){return Q(()=>import(`./oz-BwTct_5T.js`).then(e=>$(e.oz)),[])}}),U.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return Q(()=>import(`./pascal-Dp_KdFgX.js`).then(e=>$(e.pascal)),[])}}),U.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return Q(()=>import(`./perl-BkSkiI9m.js`).then(e=>$(e.perl)),[])}}),U.of({name:`Pig`,extensions:[`pig`],load(){return Q(()=>import(`./pig-AF4Hwhju.js`).then(e=>$(e.pig)),[])}}),U.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return Q(()=>import(`./powershell-D8WpQPaX.js`).then(e=>$(e.powerShell)),[])}}),U.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return Q(()=>import(`./properties-C357ku5U.js`).then(e=>$(e.properties)),[])}}),U.of({name:`ProtoBuf`,extensions:[`proto`],load(){return Q(()=>import(`./protobuf-D1ij_kNL.js`).then(e=>$(e.protobuf)),[])}}),U.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return Q(()=>import(`./pug-BqCHZ5xT.js`).then(e=>$(e.pug)),__vite__mapDeps([19,20]))}}),U.of({name:`Puppet`,extensions:[`pp`],load(){return Q(()=>import(`./puppet-BZyAS7I4.js`).then(e=>$(e.puppet)),[])}}),U.of({name:`Q`,extensions:[`q`],load(){return Q(()=>import(`./q-B9NhS7L_.js`).then(e=>$(e.q)),[])}}),U.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return Q(()=>import(`./r-CxDmU1I4.js`).then(e=>$(e.r)),[])}}),U.of({name:`RPM Changes`,load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmChanges)),[])}}),U.of({name:`RPM Spec`,extensions:[`spec`],load(){return Q(()=>import(`./rpm-gpDK5sbt.js`).then(e=>$(e.rpmSpec)),[])}}),U.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return Q(()=>import(`./ruby-ChfNwlCY.js`).then(e=>$(e.ruby)),[])}}),U.of({name:`SAS`,extensions:[`sas`],load(){return Q(()=>import(`./sas-C2OyD2Y6.js`).then(e=>$(e.sas)),[])}}),U.of({name:`Scala`,extensions:[`scala`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.scala)),[])}}),U.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return Q(()=>import(`./scheme-D9qYN0V5.js`).then(e=>$(e.scheme)),[])}}),U.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return Q(()=>import(`./shell-DwuoZtxw.js`).then(e=>$(e.shell)),[])}}),U.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return Q(()=>import(`./sieve-tLWDfEkZ.js`).then(e=>$(e.sieve)),[])}}),U.of({name:`Smalltalk`,extensions:[`st`],load(){return Q(()=>import(`./smalltalk-BLp5-jwC.js`).then(e=>$(e.smalltalk)),[])}}),U.of({name:`Solr`,load(){return Q(()=>import(`./solr-B78wSQJQ.js`).then(e=>$(e.solr)),[])}}),U.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return Q(()=>import(`./mllike-B45xgp2S.js`).then(e=>$(e.sml)),[])}}),U.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return Q(()=>import(`./sparql-Dz-mlCAC.js`).then(e=>$(e.sparql)),[])}}),U.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return Q(()=>import(`./spreadsheet-CTIncYxj.js`).then(e=>$(e.spreadsheet)),[])}}),U.of({name:`Squirrel`,extensions:[`nut`],load(){return Q(()=>import(`./clike-xvONpD0Z.js`).then(e=>$(e.squirrel)),[])}}),U.of({name:`Stylus`,extensions:[`styl`],load(){return Q(()=>import(`./stylus-BOVgKnng.js`).then(e=>$(e.stylus)),[])}}),U.of({name:`Swift`,extensions:[`swift`],load(){return Q(()=>import(`./swift-DKB6_1j6.js`).then(e=>$(e.swift)),[])}}),U.of({name:`sTeX`,load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return Q(()=>import(`./stex-DNzd62Q_.js`).then(e=>$(e.stex)),[])}}),U.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`Tcl`,extensions:[`tcl`],load(){return Q(()=>import(`./tcl-BGfruO1u.js`).then(e=>$(e.tcl)),[])}}),U.of({name:`Textile`,extensions:[`textile`],load(){return Q(()=>import(`./textile-C4jVoHG1.js`).then(e=>$(e.textile)),[])}}),U.of({name:`TiddlyWiki`,load(){return Q(()=>import(`./tiddlywiki-VlUiK86J.js`).then(e=>$(e.tiddlyWiki)),[])}}),U.of({name:`Tiki wiki`,load(){return Q(()=>import(`./tiki-CvUEFusT.js`).then(e=>$(e.tiki)),[])}}),U.of({name:`TOML`,extensions:[`toml`],load(){return Q(()=>import(`./toml-BPTmHmyx.js`).then(e=>$(e.toml)),[])}}),U.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return Q(()=>import(`./troff-C2dAgh7P.js`).then(e=>$(e.troff)),[])}}),U.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return Q(()=>import(`./ttcn-PPSTk1ow.js`).then(e=>$(e.ttcn)),[])}}),U.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return Q(()=>import(`./ttcn-cfg-2b4Gb5sE.js`).then(e=>$(e.ttcnCfg)),[])}}),U.of({name:`Turtle`,extensions:[`ttl`],load(){return Q(()=>import(`./turtle-Cx3rYX2g.js`).then(e=>$(e.turtle)),[])}}),U.of({name:`Web IDL`,extensions:[`webidl`],load(){return Q(()=>import(`./webidl-D5jiJvOU.js`).then(e=>$(e.webIDL)),[])}}),U.of({name:`VB.NET`,extensions:[`vb`],load(){return Q(()=>import(`./vb-BthdM_4N.js`).then(e=>$(e.vb)),[])}}),U.of({name:`VBScript`,extensions:[`vbs`],load(){return Q(()=>import(`./vbscript-D9f6rSsU.js`).then(e=>$(e.vbScript)),[])}}),U.of({name:`Velocity`,extensions:[`vtl`],load(){return Q(()=>import(`./velocity-CqftRsjg.js`).then(e=>$(e.velocity)),[])}}),U.of({name:`Verilog`,extensions:[`v`],load(){return Q(()=>import(`./verilog-CjI9Y6RI.js`).then(e=>$(e.verilog)),[])}}),U.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return Q(()=>import(`./vhdl-kS471soi.js`).then(e=>$(e.vhdl)),[])}}),U.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return Q(()=>import(`./xquery-BKJx4mf9.js`).then(e=>$(e.xQuery)),[])}}),U.of({name:`Yacas`,extensions:[`ys`],load(){return Q(()=>import(`./yacas-CXXgtw0p.js`).then(e=>$(e.yacas)),[])}}),U.of({name:`Z80`,extensions:[`z80`],load(){return Q(()=>import(`./z80-Co3PbHdE.js`).then(e=>$(e.z80)),[])}}),U.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.mscgen)),[])}}),U.of({name:`Xù`,extensions:[`xu`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.xu)),[])}}),U.of({name:`MsGenny`,extensions:[`msgenny`],load(){return Q(()=>import(`./mscgen-qgSLujhx.js`).then(e=>$(e.msgenny)),[])}}),U.of({name:`Vue`,extensions:[`vue`],load(){return Q(()=>import(`./dist-C8MdhqgG.js`).then(e=>e.vue()),__vite__mapDeps([21,1]))}}),U.of({name:`Angular Template`,load(){return Q(()=>import(`./dist-CG1pHn5m.js`).then(e=>e.angular()),__vite__mapDeps([22,1]))}})],GJ=tt((e=>{var t=ot(),n=ut();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.for(`react.recoverable`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Symbol.for(`react.optimistic_key`),T=Array.isArray;function E(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)|0,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)|0,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)|0,(i^i>>>16)>>>0}var D=Object.assign,O=Object.prototype.hasOwnProperty,k=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),A={},j={};function M(e){return O.call(j,e)?!0:O.call(A,e)?!1:k.test(e)?j[e]=!0:(A[e]=!0,!1)}var N=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),P=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ee=/["'&<>]/;function F(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ee.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var I=/([A-Z])/g,te=/^ms-/,ne=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function L(e){return ne.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},V=z.d;z.d={f:V.f,r:V.r,D:lt,C:dt,L:ft,m:pt,X:K,S:mt,M:q};var re=[],ie=null,ae=/(<\/|<)(s)(cript)/gi;function H(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function oe(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ce(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return se(2,null,r|1,null);case`select`:return se(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return se(4,null,r,null);case`picture`:return se(2,null,r|2,null);case`math`:return se(5,null,r,null);case`foreignObject`:return se(2,null,r,null);case`table`:return se(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return se(7,null,r,null);case`colgroup`:return se(9,null,r,null);case`tr`:return se(8,null,r,null);case`head`:if(2>e.insertionMode)return se(3,null,r,null);break;case`html`:if(e.insertionMode===0)return se(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?se(2,null,r,null):e.viewTransition!==null||e.tagScope!==r?se(e.insertionMode,e.selectedValue,r,null):e}function le(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,parentEnter:`none`,parentExit:`none`,name:e.autoName,autoName:e.autoName,nameIdx:0}}function ue(e,t){return t.tagScope&32&&(e.instructions|=128),se(t.insertionMode,t.selectedValue,t.tagScope|12,le(t.viewTransition))}function de(e,t){e=le(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),se(t.insertionMode,t.selectedValue,n,e)}function fe(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}function pe(e,t){t=t.viewTransition,t!==null&&(t.name!==`auto`&&(_e(e,`vt-name`,t.nameIdx===0?t.name:t.name+`_`+t.nameIdx),t.nameIdx++),_e(e,`vt-update`,t.update),t.enter!==`none`&&_e(e,`vt-enter`,t.enter),t.exit!==`none`&&_e(e,`vt-exit`,t.exit),t.share!==`none`&&_e(e,`vt-share`,t.share))}var me=new Map;function he(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=F(i);a=F((``+a).trim())}else o=me.get(i),o===void 0&&(o=F(i.replace(I,`-$1`).toLowerCase().replace(te,`-ms-`)),me.set(i,o)),a=typeof a==`number`?a===0||N.has(i)?``+a:a+`px`:F((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function ge(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function _e(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,F(n),`"`)}var ve=F(`javascript:throw new Error('React form unexpectedly submitted.')`);function ye(e,t){this.push(`<input type="hidden"`),be(e),_e(this,`name`,t),_e(this,`value`,e),this.push(`/>`)}function be(e){if(typeof e!=`string`)throw Error(r(480))}function xe(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(be),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Se(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=xe(t,r);l===null?(e.push(` `,`formAction`,`="`,ve,`"`),o=a=i=r=s=null,Te(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&U(e,`name`,s),r!=null&&U(e,`formAction`,r),i!=null&&U(e,`formEncType`,i),a!=null&&U(e,`formMethod`,a),o!=null&&U(e,`formTarget`,o),c}function U(e,t,n){switch(t){case`className`:_e(e,`class`,n);break;case`tabIndex`:_e(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_e(e,t,n);break;case`style`:he(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,t,`="`,F(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:ge(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=L(``+n),e.push(` `,`xlink:href`,`="`,F(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,F(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,F(n),`"`);break;case`xlinkActuate`:_e(e,`xlink:actuate`,n);break;case`xlinkArcrole`:_e(e,`xlink:arcrole`,n);break;case`xlinkRole`:_e(e,`xlink:role`,n);break;case`xlinkShow`:_e(e,`xlink:show`,n);break;case`xlinkTitle`:_e(e,`xlink:title`,n);break;case`xlinkType`:_e(e,`xlink:type`,n);break;case`xmlBase`:_e(e,`xml:base`,n);break;case`xmlLang`:_e(e,`xml:lang`,n);break;case`xmlSpace`:_e(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=P.get(t)||t,M(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,F(n),`"`)}}}function Ce(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function we(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Te(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),it(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`,`<\/script>`)}}function Ee(e,t){for(var n in e.push(Ie(`link`)),t)if(O.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:U(e,n,i)}}return e.push(`/>`),null}var De=/(<\/|<)(s)(tyle)/gi;function Oe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ke(e,t,n,i){for(var a in e.push(Ie(n)),t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:U(e,a,o)}}return pe(e,i),e.push(`/>`),null}function Ae(e,t){e.push(Ie(`title`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(F(``+t)),Ce(e,r,n),e.push(ze(`title`)),null}function je(e,t){e.push(Ie(`script`));var n=null,r=null,i;for(i in t)if(O.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:U(e,i,a)}}return e.push(`>`),Ce(e,r,n),typeof n==`string`&&e.push((``+n).replace(ae,H)),e.push(ze(`script`)),null}function Me(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),n}function Ne(e,t,n,r){e.push(Ie(n));var i=n=null,a;for(a in t)if(O.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:U(e,a,o)}}return pe(e,r),e.push(`>`),Ce(e,i,n),typeof n==`string`?(e.push(F(n)),null):n}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Fe=new Map;function Ie(e){var t=Fe.get(e);if(t===void 0){if(!Pe.test(e))throw Error(r(65,e));t=`<`+e,Fe.set(e,t)}return t}function Le(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(Ie(`a`));var u=null,d=null,f;for(f in n)if(O.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?_e(e,`href`,``):U(e,f,p);break;default:U(e,f,p)}}if(pe(e,c),e.push(`>`),Ce(e,d,u),typeof u==`string`){e.push(F(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(Ie(`select`));var h=null,g=null,_;for(_ in n)if(O.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:U(e,_,v)}}return pe(e,c),e.push(`>`),Ce(e,g,h),h;case`option`:var y=c.selectedValue;e.push(Ie(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(O.call(n,w)){var E=n[w];if(E!=null)switch(w){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:C=E;break;case`value`:x=E;default:U(e,w,E)}}if(y!=null){var k=x===null?we(b):``+x;if(T(y)){for(var A=0;A<y.length;A++)if(``+y[A]===k){e.push(` selected=""`);break}}else``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),Ce(e,C,b),b;case`textarea`:e.push(Ie(`textarea`));var j=null,N=null,P=null,ee;for(ee in n)if(O.call(n,ee)){var I=n[ee];if(I!=null)switch(ee){case`children`:P=I;break;case`value`:j=I;break;case`defaultValue`:N=I;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:U(e,ee,I)}}if(j===null&&N!==null&&(j=N),pe(e,c),e.push(`>`),P!=null){if(j!=null)throw Error(r(92));if(T(P)){if(1<P.length)throw Error(r(93));j=``+P[0]}j=``+P}return typeof j==`string`&&j[0]===`
|
|
228
|
+
`&&e.push(`
|
|
229
|
+
`),j!==null&&e.push(F(``+j)),null;case`input`:e.push(Ie(`input`));var te=null,ne=null,R=null,z=null,B=null,V=null,ie=null,ae=null,H=null,oe;for(oe in n)if(O.call(n,oe)){var se=n[oe];if(se!=null)switch(oe){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:te=se;break;case`formAction`:ne=se;break;case`formEncType`:R=se;break;case`formMethod`:z=se;break;case`formTarget`:B=se;break;case`defaultChecked`:H=se;break;case`defaultValue`:ie=se;break;case`checked`:ae=se;break;case`value`:V=se;break;default:U(e,oe,se)}}var ce=Se(e,i,a,ne,R,z,B,te);return ae===null?H!==null&&ge(e,`checked`,H):ge(e,`checked`,ae),V===null?ie!==null&&U(e,`value`,ie):U(e,`value`,V),pe(e,c),e.push(`/>`),ce?.forEach(ye,e),null;case`button`:e.push(Ie(`button`));var le=null,ue=null,de=null,fe=null,me=null,be=null,Pe=null,Fe;for(Fe in n)if(O.call(n,Fe)){var Le=n[Fe];if(Le!=null)switch(Fe){case`children`:le=Le;break;case`dangerouslySetInnerHTML`:ue=Le;break;case`name`:de=Le;break;case`formAction`:fe=Le;break;case`formEncType`:me=Le;break;case`formMethod`:be=Le;break;case`formTarget`:Pe=Le;break;default:U(e,Fe,Le)}}var Re=Se(e,i,a,fe,me,be,Pe,de);if(pe(e,c),e.push(`>`),Re?.forEach(ye,e),Ce(e,ue,le),typeof le==`string`){e.push(F(le));var Be=null}else Be=le;return Be;case`form`:e.push(Ie(`form`));var Ve=null,He=null,Ue=null,W=null,We=null,Ge=null,Ke;for(Ke in n)if(O.call(n,Ke)){var qe=n[Ke];if(qe!=null)switch(Ke){case`children`:Ve=qe;break;case`dangerouslySetInnerHTML`:He=qe;break;case`action`:Ue=qe;break;case`encType`:W=qe;break;case`method`:We=qe;break;case`target`:Ge=qe;break;default:U(e,Ke,qe)}}var G=null,Je=null;if(typeof Ue==`function`){var Ye=xe(i,Ue);Ye===null?(e.push(` `,`action`,`="`,ve,`"`),Ge=We=W=Ue=null,Te(i,a)):(Ue=Ye.action||``,W=Ye.encType,We=Ye.method,Ge=Ye.target,G=Ye.data,Je=Ye.name)}if(Ue!=null&&U(e,`action`,Ue),W!=null&&U(e,`encType`,W),We!=null&&U(e,`method`,We),Ge!=null&&U(e,`target`,Ge),pe(e,c),e.push(`>`),Je!==null&&(e.push(`<input type="hidden"`),_e(e,`name`,Je),e.push(`/>`),G?.forEach(ye,e)),Ce(e,He,Ve),typeof Ve==`string`){e.push(F(Ve));var Xe=null}else Xe=Ve;return Xe;case`menuitem`:for(var Ze in e.push(Ie(`menuitem`)),n)if(O.call(n,Ze)){var Qe=n[Ze];if(Qe!=null)switch(Ze){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:U(e,Ze,Qe)}}return pe(e,c),e.push(`>`),null;case`object`:e.push(Ie(`object`));var $e=null,et=null,tt;for(tt in n)if(O.call(n,tt)){var nt=n[tt];if(nt!=null)switch(tt){case`children`:$e=nt;break;case`dangerouslySetInnerHTML`:et=nt;break;case`data`:var rt=L(``+nt);if(rt===``)break;e.push(` `,`data`,`="`,F(rt),`"`);break;default:U(e,tt,nt)}}if(pe(e,c),e.push(`>`),Ce(e,et,$e),typeof $e==`string`){e.push(F($e));var it=null}else it=$e;return it;case`title`:var at=c.tagScope&1,ot=c.tagScope&4;if(c.insertionMode===4||at||n.itemProp!=null)var st=Ae(e,n);else ot?st=null:(Ae(a.hoistableChunks,n),st=void 0);return st;case`link`:var ct=c.tagScope&1,lt=c.tagScope&4,ut=n.rel,dt=n.href,ft=n.precedence;if(c.insertionMode===4||ct||n.itemProp!=null||typeof ut!=`string`||typeof dt!=`string`||dt===``){Ee(e,n);var pt=null}else if(n.rel===`stylesheet`){if(typeof ft!=`string`||n.disabled!=null||n.onLoad||n.onError)pt=Ee(e,n);else{var mt=a.styles.get(ft),K=i.styleResources.hasOwnProperty(dt)?i.styleResources[dt]:void 0;if(K!==null){i.styleResources[dt]=null,mt||(mt={precedence:F(ft),rules:[],hrefs:[],sheets:new Map},a.styles.set(ft,mt));var q={state:0,props:D({},n,{"data-precedence":n.precedence,precedence:null})};if(K){K.length===2&&ht(q.props,K);var _t=a.preloads.stylesheets.get(dt);_t&&0<_t.length?_t.length=0:q.state=1}mt.sheets.set(dt,q),s&&s.stylesheets.add(q)}else if(mt){var vt=mt.sheets.get(dt);vt&&s&&s.stylesheets.add(vt)}l&&e.push(`<!-- -->`),pt=null}}else n.onLoad||n.onError?pt=Ee(e,n):(l&&e.push(`<!-- -->`),pt=lt?null:Ee(a.hoistableChunks,n));return pt;case`script`:var yt=c.tagScope&1,bt=n.async;if(typeof n.src!=`string`||!n.src||!bt||typeof bt==`function`||typeof bt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||yt||n.itemProp!=null)var xt=je(e,n);else{var St=n.src;if(n.type===`module`)var Ct=i.moduleScriptResources,wt=a.preloads.moduleScripts;else Ct=i.scriptResources,wt=a.preloads.scripts;var Tt=Ct.hasOwnProperty(St)?Ct[St]:void 0;if(Tt!==null){Ct[St]=null;var Et=n;if(Tt){Tt.length===2&&(Et=D({},n),ht(Et,Tt));var Dt=wt.get(St);Dt&&(Dt.length=0)}var Ot=[];a.scripts.add(Ot),je(Ot,Et)}l&&e.push(`<!-- -->`),xt=null}return xt;case`style`:var kt=c.tagScope&1,At=n.precedence,jt=n.href,Mt=n.nonce;if(c.insertionMode===4||kt||n.itemProp!=null||typeof At!=`string`||typeof jt!=`string`||jt===``){e.push(Ie(`style`));var Nt=null,Pt=null,Ft;for(Ft in n)if(O.call(n,Ft)){var It=n[Ft];if(It!=null)switch(Ft){case`children`:Nt=It;break;case`dangerouslySetInnerHTML`:Pt=It;break;default:U(e,Ft,It)}}e.push(`>`);var Lt=Array.isArray(Nt)?2>Nt.length?Nt[0]:null:Nt;typeof Lt!=`function`&&typeof Lt!=`symbol`&&Lt!=null&&e.push((``+Lt).replace(De,Oe)),Ce(e,Pt,Nt),e.push(ze(`style`));var Rt=null}else{var zt=a.styles.get(At);if((i.styleResources.hasOwnProperty(jt)?i.styleResources[jt]:void 0)!==null){i.styleResources[jt]=null,zt||(zt={precedence:F(At),rules:[],hrefs:[],sheets:new Map},a.styles.set(At,zt));var Bt=a.nonce.style;if(!Bt||Bt===Mt){zt.hrefs.push(F(jt));var Vt=zt.rules,Ht=null,Ut=null,Wt;for(Wt in n)if(O.call(n,Wt)){var Gt=n[Wt];if(Gt!=null)switch(Wt){case`children`:Ht=Gt;break;case`dangerouslySetInnerHTML`:Ut=Gt}}var Kt=Array.isArray(Ht)?2>Ht.length?Ht[0]:null:Ht;typeof Kt!=`function`&&typeof Kt!=`symbol`&&Kt!=null&&Vt.push((``+Kt).replace(De,Oe)),Ce(Vt,Ut,Ht)}}zt&&s&&s.styles.add(zt),l&&e.push(`<!-- -->`),Rt=void 0}return Rt;case`meta`:var qt=c.tagScope&1,Jt=c.tagScope&4;if(c.insertionMode===4||qt||n.itemProp!=null)var Yt=ke(e,n,`meta`,c);else l&&e.push(`<!-- -->`),Yt=Jt?null:typeof n.charSet==`string`?ke(a.charsetChunks,n,`meta`,c):n.name===`viewport`?ke(a.viewportChunks,n,`meta`,c):ke(a.hoistableChunks,n,`meta`,c);return Yt;case`listing`:case`pre`:e.push(Ie(t));var Xt=null,Zt=null,Qt;for(Qt in n)if(O.call(n,Qt)){var $t=n[Qt];if($t!=null)switch(Qt){case`children`:Xt=$t;break;case`dangerouslySetInnerHTML`:Zt=$t;break;default:U(e,Qt,$t)}}if(pe(e,c),e.push(`>`),Zt!=null){if(Xt!=null)throw Error(r(60));if(typeof Zt!=`object`||!(`__html`in Zt))throw Error(r(61));var en=Zt.__html;en!=null&&(typeof en==`string`&&0<en.length&&en[0]===`
|
|
230
|
+
`?e.push(`
|
|
231
|
+
`,en):e.push(``+en))}return typeof Xt==`string`&&Xt[0]===`
|
|
232
|
+
`&&e.push(`
|
|
233
|
+
`),Xt;case`img`:var tn=c.tagScope&3,nn=n.src,rn=n.srcSet;if(!(n.loading===`lazy`||!nn&&!rn||typeof nn!=`string`&&nn!=null||typeof rn!=`string`&&rn!=null||n.fetchPriority===`low`||tn)&&(typeof nn!=`string`||nn[4]!==`:`||nn[0]!==`d`&&nn[0]!==`D`||nn[1]!==`a`&&nn[1]!==`A`||nn[2]!==`t`&&nn[2]!==`T`||nn[3]!==`a`&&nn[3]!==`A`)&&(typeof rn!=`string`||rn[4]!==`:`||rn[0]!==`d`&&rn[0]!==`D`||rn[1]!==`a`&&rn[1]!==`A`||rn[2]!==`t`&&rn[2]!==`T`||rn[3]!==`a`&&rn[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var an=typeof n.sizes==`string`?n.sizes:void 0,on=rn?rn+`
|
|
234
|
+
`+(an||``):nn,sn=a.preloads.images,cn=sn.get(on);if(cn)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(sn.delete(on),a.highImagePreloads.add(cn));else if(!i.imageResources.hasOwnProperty(on)){i.imageResources[on]=re;var ln=n.crossOrigin,un=typeof ln==`string`?ln===`use-credentials`?ln:``:void 0,dn=a.headers,fn;dn&&0<dn.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>dn.highImagePreloads.length)&&(fn=gt(nn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:un,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),0<=(dn.remainingCapacity-=fn.length+2))?(a.resets.image[on]=re,dn.highImagePreloads&&(dn.highImagePreloads+=`, `),dn.highImagePreloads+=fn):(cn=[],Ee(cn,{rel:`preload`,as:`image`,href:rn?void 0:nn,imageSrcSet:rn,imageSizes:an,crossOrigin:un,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(cn):(a.bulkPreloads.add(cn),sn.set(on,cn)))}}return ke(e,n,`img`,c);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return ke(e,n,t,c);case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:break;case`head`:if(2>c.insertionMode){var pn=o||a.preamble;if(pn.headChunks)throw Error(r(545,"`<head>`"));o!==null&&e.push(`<!--head-->`),pn.headChunks=[];var mn=Me(pn.headChunks,n,`head`,c)}else mn=Ne(e,n,`head`,c);return mn;case`body`:if(2>c.insertionMode){var hn=o||a.preamble;if(hn.bodyChunks)throw Error(r(545,"`<body>`"));o!==null&&e.push(`<!--body-->`),hn.bodyChunks=[];var gn=Me(hn.bodyChunks,n,`body`,c)}else gn=Ne(e,n,`body`,c);return gn;case`html`:if(c.insertionMode===0){var _n=o||a.preamble;if(_n.htmlChunks)throw Error(r(545,"`<html>`"));o!==null&&e.push(`<!--html-->`),_n.htmlChunks=[``];var vn=Me(_n.htmlChunks,n,`html`,c)}else vn=Ne(e,n,`html`,c);return vn;default:if(t.indexOf(`-`)!==-1){e.push(Ie(t));var yn=null,bn=null,xn;for(xn in n)if(O.call(n,xn)){var Sn=n[xn];if(Sn!=null){var Cn=xn;switch(xn){case`children`:yn=Sn;break;case`dangerouslySetInnerHTML`:bn=Sn;break;case`style`:he(e,Sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:Cn=`class`;default:if(M(xn)&&typeof Sn!=`function`&&typeof Sn!=`symbol`&&!1!==Sn){if(!0===Sn)Sn=``;else if(typeof Sn==`object`)continue;e.push(` `,Cn,`="`,F(Sn),`"`)}}}}return pe(e,c),e.push(`>`),Ce(e,bn,yn),yn}}return Ne(e,n,t,c)}var Re=new Map;function ze(e){var t=Re.get(e);return t===void 0&&(t=`</`+e+`>`,Re.set(e,t)),t}function Be(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Ve(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return n<t.length?(n=t[n],t.length=0,e.push(n)):!0}function He(e,t,n){if(e.push(`<!--$?--><template id="`),n===null)throw Error(r(395));return e.push(t.boundaryPrefix),t=n.toString(16),e.push(t),e.push(`"></template>`)}function Ue(e,t,n,i){switch(n.insertionMode){case 0:case 1:case 3:case 2:return e.push(`<div hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 4:return e.push(`<svg aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 5:return e.push(`<math aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 6:return e.push(`<table hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 7:return e.push(`<table hidden><tbody id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 8:return e.push(`<table hidden><tr id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 9:return e.push(`<table hidden><colgroup id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);default:throw Error(r(397))}}function W(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push(`</div>`);case 4:return e.push(`</svg>`);case 5:return e.push(`</math>`);case 6:return e.push(`</table>`);case 7:return e.push(`</tbody></table>`);case 8:return e.push(`</tr></table>`);case 9:return e.push(`</colgroup></table>`);default:throw Error(r(397))}}var We=/[<\u2028\u2029]/g;function Ge(e){return JSON.stringify(e).replace(We,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Ke=/[&><\u2028\u2029]/g;function qe(e){return JSON.stringify(e).replace(Ke,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var G=!1,Je=!0;function Ye(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push(ie.startInlineStyle),this.push(` media="not all" data-precedence="`),this.push(e.precedence),this.push(`" data-href="`);r<n.length-1;r++)this.push(n[r]),this.push(` `);for(this.push(n[r]),this.push(`">`),r=0;r<t.length;r++)this.push(t[r]);Je=this.push(`</style>`),G=!0,t.length=0,n.length=0}}function Xe(e){return e.state===2?!1:G=!0}function Ze(e,t,n){return G=!1,Je=!0,ie=n,t.styles.forEach(Ye,e),ie=null,t.stylesheets.forEach(Xe),G&&(n.stylesToHoist=!0),Je}function Qe(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var $e=[];function et(e){Ee($e,e.props);for(var t=0;t<$e.length;t++)this.push($e[t]);$e.length=0,e.state=2}function tt(e){var t=0<e.sheets.size;e.sheets.forEach(et,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push(ie.startInlineStyle),this.push(` data-precedence="`),this.push(e.precedence),e=0,r.length){for(this.push(`" data-href="`);e<r.length-1;e++)this.push(r[e]),this.push(` `);this.push(r[e])}for(this.push(`">`),e=0;e<n.length;e++)this.push(n[e]);this.push(`</style>`),n.length=0,r.length=0}}function nt(e){if(e.state===0){e.state=1;var t=e.props;for(Ee($e,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<$e.length;e++)this.push($e[e]);$e.length=0}}function rt(e){e.sheets.forEach(nt,this),e.sheets.clear()}function it(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(` id="`,F(`_`+t.idPrefix+`R_`),`"`))}function at(e,t){e.push(`[`);var n=`[`;t.stylesheets.forEach(function(t){if(t.state!==2){if(t.state===3)e.push(n),t=qe(``+t.props.href),e.push(t),e.push(`]`),n=`,[`;else{e.push(n);var i=t.props[`data-precedence`],a=t.props,o=L(``+t.props.href);for(var s in o=qe(o),e.push(o),i=``+i,e.push(`,`),i=qe(i),e.push(i),a)if(O.call(a,s)&&(i=a[s],i!=null))switch(s){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:st(e,s,i)}e.push(`]`),n=`,[`,t.state=3}}}),e.push(`]`)}function st(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=L(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!M(t))return;t=``+n}e.push(`,`),r=qe(r),e.push(r),e.push(`,`),r=qe(t),e.push(r)}function ct(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function lt(e){var t=Kn||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(_t,vt)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],Ee(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}Hr(t)}}else V.D(e)}function dt(e,t){var n=Kn||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(_t,vt)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(yt,bt);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],Ee(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}Hr(n)}}else V.C(e,t)}function ft(e,t,n){var r=Kn||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
235
|
+
`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=re,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=gt(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=re,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],Ee(i,D({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],Ee(o,D({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?re:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),Ee(o,D({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?re:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=re,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=gt(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=re,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=D({rel:`preload`,href:e,as:t},n),Ee(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}Hr(r)}}else V.L(e,t,n)}function pt(e,t){var n=Kn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?re:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.moduleUnknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=re}Ee(a,D({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),Hr(n)}}else V.m(e,t)}function mt(e,t,n){var r=Kn||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:F(t),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:D({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&ht(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),Hr(r))}}else V.S(e,t,n)}function K(e,t){var n=Kn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=D({src:e,async:!0},t),a&&(a.length===2&&ht(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),je(e,t),Hr(n))}}else V.X(e,t)}function q(e,t){var n=Kn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=D({src:e,type:`module`,async:!0},t),a&&(a.length===2&&ht(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),je(e,t),Hr(n))}}else V.M(e,t)}function ht(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function gt(e,t,n){for(var r in e=(``+e).replace(_t,vt),t=(``+t).replace(yt,bt),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)O.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(yt,bt)+`"`));return t}var _t=/[<>\r\n]/g;function vt(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
|
|
236
|
+
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var yt=/["';,\r\n]/g;function bt(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
|
|
237
|
+
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function xt(e){this.styles.add(e)}function St(e){this.stylesheets.add(e)}function Ct(e,t){t.styles.forEach(xt,e),t.stylesheets.forEach(St,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function wt(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,a=e.bootstrapScripts,o=e.bootstrapModules;i!==void 0&&(r.push(`<script`),it(r,e),r.push(`>`,(``+i).replace(ae,H),`<\/script>`)),i=n+`P:`;var s=n+`S:`;n+=`B:`;var c=new Set,l=new Set,u=new Set,d=new Map,f=new Set,p=new Set,m=new Set,h={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(a!==void 0)for(var g=0;g<a.length;g++){var _=a[g],v,y=void 0,b=void 0,x={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:void 0};typeof _==`string`?x.href=v=_:(x.href=v=_.src,x.integrity=b=typeof _.integrity==`string`?_.integrity:void 0,x.crossOrigin=y=typeof _==`string`||_.crossOrigin==null?void 0:_.crossOrigin===`use-credentials`?`use-credentials`:``),_=e;var S=v;_.scriptResources[S]=null,_.moduleScriptResources[S]=null,_=[],Ee(_,x),f.add(_),r.push(`<script src="`,F(v),`"`),typeof b==`string`&&r.push(` integrity="`,F(b),`"`),typeof y==`string`&&r.push(` crossorigin="`,F(y),`"`),it(r,e),r.push(` async=""><\/script>`)}if(o!==void 0)for(a=0;a<o.length;a++)x=o[a],y=v=void 0,b={rel:`modulepreload`,fetchPriority:`low`,nonce:void 0},typeof x==`string`?b.href=g=x:(b.href=g=x.src,b.integrity=y=typeof x.integrity==`string`?x.integrity:void 0,b.crossOrigin=v=typeof x==`string`||x.crossOrigin==null?void 0:x.crossOrigin===`use-credentials`?`use-credentials`:``),x=e,_=g,x.scriptResources[_]=null,x.moduleScriptResources[_]=null,x=[],Ee(x,b),f.add(x),r.push(`<script type="module" src="`,F(g),`"`),typeof y==`string`&&r.push(` integrity="`,F(y),`"`),typeof v==`string`&&r.push(` crossorigin="`,F(v),`"`),it(r,e),r.push(` async=""><\/script>`);return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:`<script`,startInlineStyle:`<style`,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:c,fontPreloads:l,highImagePreloads:u,styles:d,bootstrapScripts:f,scripts:p,bulkPreloads:m,preloads:h,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:t}}function Tt(e,t,n,r){return n.generateStaticMarkup?(e.push(F(t)),!1):(t===``?e=r:(r&&e.push(`<!-- -->`),e.push(F(t)),e=!0),e)}function Et(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push(`<!-- -->`)}var Dt=Function.prototype.bind,Ot=Symbol.for(`react.client.reference`);function kt(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Ot?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case o:return`Fragment`;case c:return`Profiler`;case s:return`StrictMode`;case f:return`Suspense`;case p:return`SuspenseList`;case _:return`Activity`;case b:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case a:return`Portal`;case u:return e.displayName||`Context`;case l:return(e._context.displayName||`Context`)+`.Consumer`;case d:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case m:return t=e.displayName||null,t===null?kt(e.type)||`Memo`:t;case h:t=e._payload,e=e._init;try{return kt(e(t))}catch{}}return null}var At={},jt=null;function Mt(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(r(401))}else{if(n===null)throw Error(r(401));Mt(e,n)}t.context._currentValue2=t.value}}function Nt(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&Nt(e)}function Pt(e){var t=e.parent;t!==null&&Pt(t),e.context._currentValue2=e.value}function Ft(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(r(402));e.depth===t.depth?Mt(e,t):Ft(e,t)}function It(e,t){var n=t.parent;if(n===null)throw Error(r(402));e.depth===n.depth?Mt(e,n):It(e,n),t.context._currentValue2=t.value}function Lt(e){var t=jt;t!==e&&(t===null?Pt(e):e===null?Nt(t):t.depth===e.depth?Mt(t,e):t.depth>e.depth?Ft(t,e):It(t,e),jt=e)}var Rt={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},zt={id:1,overflow:``};function Bt(e){var t=e.overflow;return e=e.id,(e&~(1<<32-Ht(e)-1)).toString(32)+t}function Vt(e,t,n){var r=e.id;e=e.overflow;var i=32-Ht(r)-1;r&=~(1<<i),n+=1;var a=32-Ht(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-Ht(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var Ht=Math.clz32?Math.clz32:Gt,Ut=Math.log,Wt=Math.LN2;function Gt(e){return e>>>=0,e===0?32:31-(Ut(e)/Wt|0)|0}function Kt(){}var qt=Error(r(460));function Jt(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kt,Kt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,e===void 0&&!(`reason`in t)?Error(r(600)):e;default:switch(typeof t.status==`string`?t.then(Kt,Kt):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw Yt=t,qt}}var Yt=null;function Xt(){if(Yt===null)throw Error(r(459));var e=Yt;return Yt=null,e}function Zt(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Qt=typeof Object.is==`function`?Object.is:Zt,$t=null,en=null,tn=null,nn=null,rn=null,an=null,on=!1,sn=!1,cn=0,ln=0,un=-1,dn=0,fn=null;function pn(e){if(e=e._reason,typeof e==`function`)try{var t=e()}catch{t=`The reason for browser-only rendering could not be determined because its initializer threw.`}else t=e;return t=Error(r(603),e===void 0?void 0:{cause:t}),Object.defineProperty(t,x,{value:!0}),t}function mn(e){return typeof e!=`object`||!e?!1:!0===e[x]}function hn(e){var t=Error(r(604),O.call(e,`cause`)?{cause:e.cause}:void 0);if(e=e.stack,e!==void 0){var n=e.indexOf(`
|
|
238
|
+
`);t.stack=t.name+`: `+t.message+(n===-1?``:e.slice(n))}else t.stack=void 0;return t}var gn=null,_n=0;function vn(){if($t===null)throw Error(r(321));return $t}function yn(){if(0<_n)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function bn(){return an===null?rn===null?(on=!1,rn=an=yn()):(on=!0,an=rn):an.next===null?(on=!1,an=an.next=yn()):(on=!0,an=an.next),an}function xn(){var e=fn;return fn=null,e}function Sn(){nn=tn=en=$t=null,sn=!1,rn=null,_n=0,an=gn=null}function Cn(e,t){return typeof t==`function`?t(e):t}function wn(e,t,n){if($t=vn(),an=bn(),on){var r=an.queue;if(t=r.dispatch,gn!==null&&(n=gn.get(r),n!==void 0)){gn.delete(r),r=an.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return an.memoizedState=r,[r,t]}return[an.memoizedState,t]}return e=e===Cn?typeof t==`function`?t():t:n===void 0?t:n(t),an.memoizedState=e,e=an.queue={last:null,dispatch:null},e=e.dispatch=En.bind(null,$t,e),[an.memoizedState,e]}function Tn(e,t){if($t=vn(),an=bn(),t=t===void 0?null:t,an!==null){var n=an.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Qt(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),an.memoizedState=[e,t],e}function En(e,t,n){if(25<=_n)throw Error(r(301));if(e===$t){if(sn=!0,e={action:n,next:null},gn===null&&(gn=new Map),n=gn.get(t),n===void 0)gn.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}}function Dn(){throw Error(r(440))}function On(){throw Error(r(394))}function kn(){throw Error(r(479))}function An(e,t,n){vn();var r=ln++,i=tn;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=nn;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+E(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(un=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+E(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function jn(e){var t=dn;return dn+=1,fn===null&&(fn=[]),Jt(fn,e,t)}function Mn(){throw Error(r(393))}var Nn={readContext:function(e){return e._currentValue2},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return jn(e);if(e.$$typeof===x)throw pn(e);if(e.$$typeof===u)return e._currentValue2}throw Error(r(438,String(e)))},useContext:function(e){return vn(),e._currentValue2},useMemo:Tn,useReducer:wn,useRef:function(e){$t=vn(),an=bn();var t=an.memoizedState;return t===null?(e={current:e},an.memoizedState=e):t},useState:function(e){return wn(Cn,e)},useInsertionEffect:Kt,useLayoutEffect:Kt,useCallback:function(e,t){return Tn(function(){return e},t)},useImperativeHandle:Kt,useEffect:Kt,useDebugValue:Kt,useDeferredValue:function(e,t){return vn(),t===void 0?e:t},useTransition:function(){return vn(),[!1,On]},useId:function(){var e=Bt(en.treeContext),t=Pn;if(t===null)throw Error(r(404));return fe(t,e,cn++)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(r(407));return n()},useOptimistic:function(e){return vn(),[e,kn]},useActionState:An,useFormState:An,useHostTransitionStatus:function(){return vn(),B},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return Mn},useEffectEvent:function(){return Dn}},Pn=null,Fn={getCacheForType:function(){throw Error(r(248))},cacheSignal:function(){throw Error(r(248))}},In,Ln;function Rn(e){if(In===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);In=t&&t[1]||``,Ln=-1<e.stack.indexOf(`
|
|
239
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
240
|
+
`+In+e+Ln}var zn=!1;function Bn(e,t){if(!e||zn)return``;zn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
241
|
+
`),l=s.split(`
|
|
242
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
243
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{zn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Rn(n):``}function Vn(e){if(typeof e==`string`)return Rn(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?Bn(e,!0):Bn(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case d:return Bn(e.render,!1);case m:return Bn(e.type,!1);case h:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Rn(`Lazy`)}return Vn(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
|
|
244
|
+
`)&&(r=r.slice(29)),e=r.indexOf(`
|
|
245
|
+
`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
|
|
246
|
+
`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
|
|
247
|
+
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
|
248
|
+
`+e;break a}n=Rn(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Rn(`SuspenseList`);case f:return Rn(`Suspense`);case b:return Rn(`ViewTransition`)}return``}function Hn(e,t){return(500<t.byteSize||t.defer)&&t.preamble===null}function Un(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`[%s] `+e[0],` `+t+` `):e.splice(0,0,`[%s]`,` `+t+` `),e.unshift(console),t=Dt.apply(console.error,e),t()}else console.error(e);return null}function Wn(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.aborted=!1,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.currentTask=null,this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.postponedState=this.trackedPostpones=null,this.onError=i===void 0?Un:i,this.onBrowserBailout=a===void 0?Kt:a,this.onAllReady=o===void 0?Kt:o,this.onShellReady=s===void 0?Kt:s,this.onShellError=c===void 0?Kt:c,this.onFatalError=l===void 0?Kt:l,this.renderLifetimeController=null,this.formState=u===void 0?null:u}function Gn(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Wn(t,n,r,i,a,o,s,c,l,u,d),n=Zn(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Yn(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,zt,null,null),Qn(e),t.pingedTasks.push(e),t}var Kn=null;function qn(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,Ar(e))}function Jn(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,defer:i,fallbackAbortableTasks:n,errorDigest:null,contentState:ct(),fallbackState:ct(),preamble:r,tracked:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&Ct(n.contentState,e)),n}function Yn(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:{resolve:function(){return qn(e,h)},reject:function(t){e.aborted?h.abortSet.delete(h)&&wr(h,e,t):qn(e,h)}},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Xn(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:{resolve:function(){return qn(e,m)},reject:function(t){e.aborted?m.abortSet.delete(m)&&wr(m,e,t):qn(e,m)}},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Zn(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function Qn(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function $n(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function er(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Vn(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
|
249
|
+
Error generating stack: `+e.message+`
|
|
250
|
+
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function tr(e,t,n){if(mn(t))return e=e.onBrowserBailout,e(t,n),``;if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t===``?void 0:t}function nr(e,t){var n=e.onShellError,r=e.onFatalError;e.pendingRootTasks!==0&&n(t),r(t),Gr(e),e.destination===null?(e.status=12,e.aborted||(e.fatalError=t)):(e.status=13,e.destination.destroy(t))}function rr(e,t){ir(e,t.next,t.hoistables)}function ir(e,t,n){for(;t!==null;){n!==null&&(Ct(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Ct(a.contentState,n),kr(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ar(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Hn(e,a)){r=!1;break}}r&&ir(e,t,t.hoistables)}}function or(e){var t={pendingTasks:1,boundaries:null,hoistables:ct(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function sr(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=or(c),t.treeContext=Vt(o,n,d);var p=l[d];typeof p==`number`?(dr(e,t,p,f,d),delete l[d]):br(e,t,f,d),--c.pendingTasks===0&&rr(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=or(c),t.treeContext=Vt(o,n,u),br(e,t,d,u),--c.pendingTasks===0&&rr(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=or(c),t.treeContext=Vt(o,n,i),br(e,t,l,i),--c.pendingTasks===0&&rr(e,c);else{for(l=t.blockedSegment,u=l.children.length,d=l.chunks.length,f=0;f<n;f++){p=i===`unstable_legacy-backwards`?n-1-f:f;var m=r[p];t.row=c=or(c),t.treeContext=Vt(o,n,p);var h=Zn(e,d,null,t.formatContext,p!==0||l.lastPushedText,!0);l.children.splice(u,0,h),t.blockedSegment=h;try{br(e,t,m,p),Et(h.chunks,e.renderState,h.lastPushedText,h.textEmbedded),h.status=1,--c.pendingTasks===0&&rr(e,c)}catch(t){throw h.status=e.aborted?3:4,t}}t.blockedSegment=l,l.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function cr(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,$t={},en=t,tn=e,nn=n,ln=cn=0,un=-1,dn=0,fn=o,e=r(i,a);sn;)sn=!1,ln=cn=0,un=-1,dn=0,_n+=1,an=null,e=r(i,a);return Sn(),e}function lr(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(`<!--F!-->`):c.push(`<!--F-->`)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Vt(n,1,0),br(e,t,r,-1),t.treeContext=n):s?br(e,t,r,-1):fr(e,t,r,-1),t.keyPath=a}function ur(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var S in x={},a)S!==`ref`&&(x[S]=a[S]);var w=i.defaultProps;if(w)for(var E in x===a&&(x=D({},x,a)),w)x[E]===void 0&&(x[E]=w[E]);var O=x,k=At,A=i.contextType;typeof A==`object`&&A&&(k=A._currentValue2);var j=new i(O,k),M=j.state===void 0?null:j.state;j.updater=Rt,j.props=O,j.state=M;var N={queue:[],replace:!1};j._reactInternals=N;var P=i.contextType;j.context=typeof P==`object`&&P?P._currentValue2:At;var ee=i.getDerivedStateFromProps;if(typeof ee==`function`){var F=ee(O,M);j.state=F==null?M:D({},M,F)}if(typeof i.getDerivedStateFromProps!=`function`&&typeof j.getSnapshotBeforeUpdate!=`function`&&(typeof j.UNSAFE_componentWillMount==`function`||typeof j.componentWillMount==`function`)){var I=j.state;if(typeof j.componentWillMount==`function`&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount==`function`&&j.UNSAFE_componentWillMount(),I!==j.state&&Rt.enqueueReplaceState(j,j.state,null),N.queue!==null&&0<N.queue.length){var te=N.queue,ne=N.replace;if(N.queue=null,N.replace=!1,ne&&te.length===1)j.state=te[0];else{for(var L=ne?te[0]:j.state,R=!0,z=+!!ne;z<te.length;z++){var B=te[z],V=typeof B==`function`?B.call(j,L,O,void 0):B;V!=null&&(R?(R=!1,L=D({},L,V)):D(L,V))}j.state=L}}else N.queue=null}var re=j.render();if(e.aborted)throw null;var ie=t.keyPath;t.keyPath=n,fr(e,t,re,-1),t.keyPath=ie}else{var ae=cr(e,t,n,i,a,void 0);if(e.aborted)throw null;lr(e,t,n,ae,cn!==0,ln,un)}}else if(typeof i==`string`){var H=t.blockedSegment;if(H===null){var oe=a.children,se=t.formatContext,le=t.keyPath;t.formatContext=ce(se,i,a),t.keyPath=n,br(e,t,oe,-1),t.formatContext=se,t.keyPath=le}else{var pe=Le(H.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,H.lastPushedText);H.lastPushedText=!1;var me=t.formatContext,he=t.keyPath;if(t.keyPath=n,(t.formatContext=ce(me,i,a)).insertionMode===3){var ge=Zn(e,0,null,t.formatContext,!1,!1);H.preambleChildren.push(ge),t.blockedSegment=ge;try{br(e,t,pe,-1),Et(ge.chunks,e.renderState,ge.lastPushedText,ge.textEmbedded),ge.status=1}finally{t.blockedSegment=H}}else br(e,t,pe,-1);t.formatContext=me,t.keyPath=he;a:{var _e=H.chunks,ve=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=me.insertionMode){ve.hasBody=!0;break a}break;case`html`:if(me.insertionMode===0){ve.hasHtml=!0;break a}break;case`head`:if(1>=me.insertionMode)break a}_e.push(ze(i))}H.lastPushedText=!1}}else{switch(i){case v:case s:case c:case o:var ye=t.keyPath;t.keyPath=n,fr(e,t,a.children,-1),t.keyPath=ye;return;case _:var be=t.blockedSegment;if(be===null){if(a.mode!==`hidden`){var xe=t.keyPath;t.keyPath=n,br(e,t,a.children,-1),t.keyPath=xe}}else if(a.mode!==`hidden`){e.renderState.generateStaticMarkup||be.chunks.push(`<!--&-->`),be.lastPushedText=!1;var Se=t.keyPath;t.keyPath=n,br(e,t,a.children,-1),t.keyPath=Se,e.renderState.generateStaticMarkup||be.chunks.push(`<!--/&-->`),be.lastPushedText=!1}return;case p:a:{var U=a.children,Ce=a.revealOrder;if(Ce!==`independent`&&Ce!==`together`){if(T(U)){sr(e,t,n,U,Ce);break a}var we=C(U);if(we){var Te=we.call(U);if(Te){var Ee=Te.next();if(!Ee.done){do Ee=Te.next();while(!Ee.done);sr(e,t,n,U,Ce)}break a}}}if(Ce===`together`){var De=t.keyPath,Oe=t.row,ke=t.row=or(null);ke.boundaries=[],ke.together=!0,t.keyPath=n,fr(e,t,U,-1),--ke.pendingTasks===0&&rr(e,ke),t.keyPath=De,t.row=Oe,Oe!==null&&0<ke.pendingTasks&&(Oe.pendingTasks++,ke.next=Oe)}else{var Ae=t.keyPath;t.keyPath=n,fr(e,t,U,-1),t.keyPath=Ae}}return;case b:var je=t.formatContext,Me=t.keyPath,Ne=e.resumableState;if((a.name==null||a.name===`auto`)&&fe(Ne,Bt(t.treeContext),0),t.formatContext=je,t.keyPath=n,a.name!=null&&a.name!==`auto`)fr(e,t,a.children,-1);else{var Pe=t.treeContext;t.treeContext=Vt(Pe,1,0),br(e,t,a.children,-1),t.treeContext=Pe}t.formatContext=je,t.keyPath=Me;return;case g:throw Error(r(343));case f:a:if(t.replay!==null){var Fe=t.keyPath,Ie=t.formatContext,Re=t.row;t.keyPath=n,t.formatContext=de(e.resumableState,Ie),t.row=null;var Be=a.children;try{br(e,t,Be,-1)}finally{t.keyPath=Fe,t.formatContext=Ie,t.row=Re}}else{var Ve=t.keyPath,He=t.formatContext,Ue=t.row,W=t.blockedBoundary,We=t.blockedPreamble,Ge=t.hoistableState,Ke=t.blockedSegment,qe=a.fallback,G=a.children,Je=new Set,Ye=Jn(e,t.row,Je,null,!1),Xe=Zn(e,Ke.chunks.length,Ye,t.formatContext,!1,!1);Ke.children.push(Xe),Ke.lastPushedText=!1;var Ze=Zn(e,0,null,t.formatContext,!1,!1);Ze.parentFlushed=!0;var Qe=e.trackedPostpones;if(Qe!==null){var $e=t.componentStack,et=[n[0],`Suspense Fallback`,n[2]];if(Qe!==null){var tt=[et[1],et[2],[],null];Qe.workingMap.set(et,tt),Ye.tracked={contentKeyPath:n,fallbackNode:tt}}t.blockedSegment=Xe,t.blockedPreamble=Ye.preamble===null?null:Ye.preamble.fallback,t.keyPath=et,t.formatContext=ue(e.resumableState,He),t.componentStack=$n($e);try{br(e,t,qe,-1),Et(Xe.chunks,e.renderState,Xe.lastPushedText,Xe.textEmbedded),Xe.status=1}catch(t){throw Xe.status=e.aborted?3:4,t}finally{t.blockedSegment=Ke,t.blockedPreamble=We,t.keyPath=Ve,t.formatContext=He}var nt=Yn(e,null,G,-1,Ye,Ze,Ye.preamble===null?null:Ye.preamble.content,Ye.contentState,t.abortSet,n,de(e.resumableState,t.formatContext),t.context,t.treeContext,null,$e);Qn(nt),e.pingedTasks.push(nt)}else{t.blockedBoundary=Ye,t.blockedPreamble=Ye.preamble===null?null:Ye.preamble.content,t.hoistableState=Ye.contentState,t.blockedSegment=Ze,t.keyPath=n,t.formatContext=de(e.resumableState,He),t.row=null;try{if(br(e,t,G,-1),Et(Ze.chunks,e.renderState,Ze.lastPushedText,Ze.textEmbedded),Ze.status=1,Or(Ye,Ze),Ye.pendingTasks===0&&Ye.status===0){if(Ye.status=1,!Hn(e,Ye)){Ue!==null&&--Ue.pendingTasks===0&&rr(e,Ue),e.pendingRootTasks===0&&t.blockedPreamble&&Nr(e);break a}}else Ue!==null&&Ue.together&&ar(e,Ue)}catch(n){if(Ye.status=4,e.aborted){Ze.status=3;var rt=e.fatalError}else Ze.status=4,rt=n;var it=er(t.componentStack);Ye.errorDigest=tr(e,rt,it),_r(e,Ye)}finally{t.blockedBoundary=W,t.blockedPreamble=We,t.hoistableState=Ge,t.blockedSegment=Ke,t.keyPath=Ve,t.formatContext=He,t.row=Ue}var at=Yn(e,null,qe,-1,W,Xe,Ye.preamble===null?null:Ye.preamble.fallback,Ye.fallbackState,Je,[n[0],`Suspense Fallback`,n[2]],ue(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,$n(t.componentStack));Qn(at),e.pingedTasks.push(at)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a){var ot={};for(var st in a)st!==`ref`&&(ot[st]=a[st])}else ot=a;lr(e,t,n,cr(e,t,n,i.render,ot,y),cn!==0,ln,un);return;case m:ur(e,t,n,i.type,a,y);return;case u:var ct=a.children,lt=t.keyPath,ut=a.value,dt=i._currentValue2;i._currentValue2=ut;var ft=jt,pt={parent:ft,depth:ft===null?0:ft.depth+1,context:i,parentValue:dt,value:ut};jt=pt,t.context=pt,t.keyPath=n,fr(e,t,ct,-1);var mt=jt;if(mt===null)throw Error(r(403));mt.context._currentValue2=mt.parentValue,t.context=jt=mt.parent,t.keyPath=lt;return;case l:var K=a.children,q=K(i._context._currentValue2),ht=t.keyPath;t.keyPath=n,fr(e,t,q,-1),t.keyPath=ht;return;case h:var gt=i._init,_t=gt(i._payload);if(e.aborted)throw null;ur(e,t,n,_t,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function dr(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Zn(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,br(e,t,r,i),s.status=1,o===null?e.completedRootSegment=s:(Or(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function fr(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?dr(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Qn(t),pr(e,t),t.componentStack=n)}function pr(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=kt(s),m=c==null||c===w?o===-1?0:o:c;if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2],y=_[3],b=t.node;t.replay={nodes:v,slots:y,pendingTasks:1};try{if(ur(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===qt||typeof r.then==`function`||r.message===`Maximum call stack size exceeded`))throw t.node===b?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,c=er(t.componentStack),b=e,l=t.blockedBoundary,e=e.aborted?e.fatalError:r,c=tr(b,e,c),Sr(b,l,v,y,e,c)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,kt(s)||`Unknown`));b:{g=_[5],s=_[2],d=_[3],p=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3],m=t.keyPath;var x=t.formatContext,S=t.row,E=t.replay,D=t.blockedBoundary,O=t.hoistableState,k=l.children;l=l.fallback;var A=new Set,j=Jn(e,t.row,A,null,!1);j.parentFlushed=!0,j.rootSegmentID=g,t.blockedBoundary=j,t.hoistableState=j.contentState,t.keyPath=c,t.formatContext=de(e.resumableState,x),t.row=null,t.replay={nodes:s,slots:d,pendingTasks:1};try{if(br(e,t,k,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,e.completedBoundaries.push(j);break b}}catch(n){j.status=4,v=e.aborted?e.fatalError:n,y=er(t.componentStack),b=tr(e,v,y),j.errorDigest=b,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(j)}finally{t.blockedBoundary=D,t.hoistableState=O,t.replay=E,t.keyPath=m,t.formatContext=x,t.row=S}v=Xn(e,null,{nodes:p,slots:_,pendingTasks:0},l,-1,D,j.fallbackState,A,[c[0],`Suspense Fallback`,c[2]],ue(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,$n(t.componentStack)),Qn(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else ur(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.aborted)throw null;fr(e,t,n,o);return}if(T(n)){mr(e,t,n,o);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){y=[];do y.push(n.value),n=v.next();while(!n.done);mr(e,t,y,o)}return}if(typeof n.then==`function`)return t.thenableState=null,fr(e,t,jn(n),o);if(n.$$typeof===u)return fr(e,t,n._currentValue2,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=Tt(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=Tt(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function mr(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(mr(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===qt||typeof r.then==`function`))throw r;t.replay.pendingTasks--;var u=er(t.componentStack);n=e;var d=t.blockedBoundary;e=e.aborted?e.fatalError:r,u=tr(n,e,u),Sr(n,d,i,l,e,u)}t.replay=o,s.splice(c,1);break}}t.keyPath=a}else if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=Vt(o,s,i),d=c[i],typeof d==`number`?(dr(e,t,d,l,i),delete c[i]):br(e,t,l,i);t.treeContext=o,t.keyPath=a}else{for(c=0;c<s;c++)i=n[c],t.treeContext=Vt(o,s,c),br(e,t,i,c);t.treeContext=o,t.keyPath=a}}function hr(e,t,n){n.status=5,n.rootSegmentID=e.nextSegmentId++;var i=n.tracked;if(i===null||(e=i.contentKeyPath,e===null))throw Error(r(486));i=i.fallbackNode;var a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),qr(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function gr(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=hr(e,t,o);if(o.tracked!==null&&o.tracked.contentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],qr(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),qr(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function _r(e,t){e=e.trackedPostpones,e!==null&&(t=t.tracked,t!==null&&(t=t.contentKeyPath,t!==null&&(e=e.workingMap.get(t),e!==void 0&&(e.length=4,e[2]=[],e[3]=null))))}function vr(e,t,n){return Xn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function yr(e,t,n){var r=t.blockedSegment,i=Zn(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Yn(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function br(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return fr(e,t,n,r)}catch(u){if(Sn(),n=u===qt?Xt():u,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===qt?xn():null,e=vr(e,t,r).ping,n.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Lt(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===qt?xn():null,n=vr(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Lt(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return fr(e,t,n,r)}catch(r){if(Sn(),l.children.length=u,l.chunks.length=d,n=r===qt?Xt():r,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===qt?xn():null,e=yr(e,t,n).ping,l.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Lt(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===qt?xn():null,l=yr(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Lt(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Lt(a),n}function xr(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,kr(this,t,e.row,n))}function Sr(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)Sr(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Jn(l,null,new Set,null,!1);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function Cr(e,t){if(e!==t.currentTask){var n=e.blockedBoundary;e=e.blockedSegment,e!==null&&(e.status=3),n!==null&&n.fallbackAbortableTasks.forEach(function(e){return Cr(e,t)})}}function wr(e,t,n){if(e!==t.currentTask){var r=e.blockedBoundary,i=e.blockedSegment;if(i===null||i.status===3){var a=er(e.componentStack),o=mn(n);if(r===null){if(r=e.replay,r===null){o||t.trackedPostpones===null||i===null?o?(e=hn(n),tr(t,e,a),t.status!==12&&t.status!==13&&nr(t,e)):(tr(t,n,a),t.status!==12&&t.status!==13&&nr(t,n)):(r=t.trackedPostpones,tr(t,n,a),gr(t,r,e,i),kr(t,null,e.row,i));return}t.status!==12&&t.status!==13&&(r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(a=tr(t,n,a),Sr(t,null,r.nodes,r.slots,n,a)),t.pendingRootTasks--,t.pendingRootTasks===0&&Er(t))}else{var s=t.trackedPostpones;if(r.status!==4){if(!o&&s!==null&&i!==null)return tr(t,n,a),gr(t,s,e,i),r.fallbackAbortableTasks.forEach(function(e){return wr(e,t,n)}),r.fallbackAbortableTasks.clear(),kr(t,r,e.row,i);r.status=4,a=tr(t,n,a),r.errorDigest=a,_r(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&rr(t,a),r.fallbackAbortableTasks.forEach(function(e){return wr(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&rr(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Dr(t)}}}function Tr(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=gt(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=re,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:re;else break b}}r(a?{Link:a}:{})}}}catch(t){tr(e,t,{})}}function Er(e){e.trackedPostpones===null&&Tr(e,!0),e.trackedPostpones===null&&Nr(e),e=e.onShellReady,e()}function Dr(e){Tr(e,e.trackedPostpones===null||e.completedRootSegment===null||e.completedRootSegment.status!==5),Nr(e),e=e.onAllReady,e()}function Or(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Or(e,n)}else e.completedSegments.push(t)}function kr(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?rr(e,n):n.together&&ar(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&Er(e)}else if(t.pendingTasks--,t.status!==4){if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Or(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&Ct(n.hoistables,t.contentState),Hn(e,t)||(e.allPendingTasks++,t.fallbackAbortableTasks.forEach(xr,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&rr(e,n),e.allPendingTasks--),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.preamble!==null&&Nr(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];hr(e,n,o),kr(e,o,null,null)}}e.allPendingTasks++,--t.pendingTasks===0&&rr(e,t),e.allPendingTasks--}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Or(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ar(e,t)}e.allPendingTasks===0&&Dr(e)}function Ar(e){if(!(e.aborted||11<e.status)){var t=jt,n=R.H;R.H=Nn;var i=R.A;R.A=Fn;var a=Kn;Kn=e;var o=Pn;Pn=e.resumableState;try{for(var s=e.pingedTasks,c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){a:if(l.replay.pendingTasks!==0){var f=u.currentTask;u.currentTask=l,Lt(l.context);var p=l.node;try{if(typeof l.replay.slots==`number`?dr(u,l,l.replay.slots,l.node,l.childIndex):pr(u,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),kr(u,l.blockedBoundary,l.row,null)}catch(e){Sn();var m=e===qt?Xt():e;if(u.aborted){e===qt&&(l.thenableState=xn()),u.currentTask=f;var h=u;Cr(l,h),l.abortSet.delete(l),wr(l,h,h.fatalError)}else{if(typeof m==`object`&&m){if(typeof m.then==`function`){var g=l.ping;m.then(g.resolve,g.reject),l.thenableState=e===qt?xn():null;break a}if(m.message===`Maximum call stack size exceeded`&&l.node!==p){l.thenableState=null,u.pingedTasks.push(l);break a}}l.replay.pendingTasks--,l.abortSet.delete(l);var _=er(l.componentStack);h=u;var v=l.blockedBoundary,y=u.aborted?u.fatalError:m,b=l.replay.nodes,x=l.replay.slots,S=tr(h,y,_);Sr(h,v,b,x,y,S),u.pendingRootTasks--,u.pendingRootTasks===0&&Er(u),u.allPendingTasks--,u.allPendingTasks===0&&Dr(u)}}finally{u.currentTask=f}}}else a:if(h=d,h.status===0){var C=u.currentTask;u.currentTask=l,Lt(l.context);var w=h.children.length,T=h.chunks.length,E=l.node;try{pr(u,l),Et(h.chunks,u.renderState,h.lastPushedText,h.textEmbedded),l.abortSet.delete(l),h.status=1,kr(u,l.blockedBoundary,l.row,h)}catch(e){Sn(),h.children.length=w,h.chunks.length=T;var D=e===qt?Xt():e;if(u.aborted)e===qt&&(l.thenableState=xn()),u.currentTask=C,h=u,Cr(l,h),l.abortSet.delete(l),wr(l,h,h.fatalError);else{if(typeof D==`object`&&D){if(typeof D.then==`function`){h.status=0,l.thenableState=e===qt?xn():null;var O=l.ping;D.then(O.resolve,O.reject);break a}if(D.message===`Maximum call stack size exceeded`&&l.node!==E){h.status=0,l.thenableState=null,u.pingedTasks.push(l);break a}}var k=er(l.componentStack);l.abortSet.delete(l),h.status=4;var A=l.blockedBoundary,j=l.row;if(j!==null&&--j.pendingTasks===0&&rr(u,j),u.allPendingTasks--,A===null){if(mn(D)){var M=hn(D);tr(u,M,k),nr(u,M)}else tr(u,D,k),nr(u,D)}else{var N=tr(u,D,k);if(A.pendingTasks--,A.status!==4){A.status=4,A.errorDigest=N,_r(u,A);var P=A.row;P!==null&&(u.allPendingTasks++,--P.pendingTasks===0&&rr(u,P),u.allPendingTasks--),A.parentFlushed&&u.clientRenderedBoundaries.push(A),u.pendingRootTasks===0&&u.trackedPostpones===null&&A.preamble!==null&&Nr(u)}u.allPendingTasks===0&&Dr(u)}}}finally{u.currentTask=C}}}s.splice(0,c),e.destination!==null&&Vr(e,e.destination)}catch(t){tr(e,t,{}),nr(e,t)}finally{Pn=o,R.H=n,R.A=i,n===Nn&&Lt(t),Kn=a}}}function jr(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Mr(e,t.children[i],n)||r;return r}function Mr(e,t,n){var i=t.boundary;if(i===null)return jr(e,t,n);var a=i.preamble;if(a===null)return!1;switch(i.status){case 1:if(Be(e.renderState,a.content),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return jr(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Be(e.renderState,a.fallback),jr(e,t,n);default:return!0}}function Nr(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=Mr(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Pr(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push(`<template id="`),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push(`"></template>`);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)t.push(o[s]);a=Ir(e,t,a,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(a=t.push(o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Fr=0;function Ir(e,t,n,i){var a=n.boundary;if(a===null)return Pr(e,t,n,i);if(n.boundary=null,a.parentFlushed=!0,a.status===4){var o=a.row;return o!==null&&--o.pendingTasks===0&&rr(e,o),e.renderState.generateStaticMarkup||(a=a.errorDigest,t.push(`<!--$!-->`),t.push(`<template`),a!=null&&(t.push(` data-dgst="`),a=F(a),t.push(a),t.push(`"`)),t.push(`></template>`)),Pr(e,t,n,i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}if(a.status!==1)return a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),He(t,e.renderState,a.rootSegmentID),i&&Ct(i,a.fallbackState),Pr(e,t,n,i),t.push(`<!--/$-->`);if(!Br&&Hn(e,a)&&(Fr+a.byteSize>e.progressiveChunkSize||a.defer))return a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),He(t,e.renderState,a.rootSegmentID),Pr(e,t,n,i),t.push(`<!--/$-->`);if(Fr+=a.byteSize,i&&Ct(i,a.contentState),n=a.row,n!==null&&Hn(e,a)&&--n.pendingTasks===0&&rr(e,n),e.renderState.generateStaticMarkup||t.push(`<!--$-->`),n=a.completedSegments,n.length!==1)throw Error(r(391));return Ir(e,t,n[0],i),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}function Lr(e,t,n,r){return Ue(t,e.renderState,n.parentFormatContext,n.id),Ir(e,t,n,r),W(t,n.parentFormatContext)}function Rr(e,t,n){Fr=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)zr(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Hn(e,n)&&--r.pendingTasks===0&&rr(e,r),Ze(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist,o=!!(r.instructions&128);return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(`>`),a?(!(r.instructions&4)&&(r.instructions|=4,t.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`)),!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
251
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),o&&!(r.instructions&256)&&(r.instructions|=256,t.push(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
252
|
+
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
253
|
+
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
254
|
+
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
255
|
+
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),r.instructions&8?t.push(`$RR("`):(r.instructions|=8,t.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
256
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
257
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`))):(!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
258
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),o&&!(r.instructions&256)&&(r.instructions|=256,t.push(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
259
|
+
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
260
|
+
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
261
|
+
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
262
|
+
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),at(t,n)):t.push(`"`),n=t.push(`)<\/script>`),Ve(t,e)&&n}function zr(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Lr(e,t,i,a)}return o===n.rootSegmentID?Lr(e,t,i,a):(Lr(e,t,i,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var Br=!1;function Vr(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Fr=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=Ie(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(Qe,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(Qe,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Qe,t),o.highImagePreloads.clear(),ie=o,o.styles.forEach(tt,t),ie=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(Qe,t),o.scripts.forEach(Qe,t),o.scripts.clear(),o.bulkPreloads.forEach(Qe,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)Ir(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=ze(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);Ir(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=F(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}Ve(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);E.length=0,T.preconnects.forEach(Qe,t),T.preconnects.clear(),T.fontPreloads.forEach(Qe,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(Qe,t),T.highImagePreloads.clear(),T.styles.forEach(rt,t),T.scripts.forEach(Qe,t),T.scripts.clear(),T.bulkPreloads.forEach(Qe,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var P=M.toString(16);if(T.push(P),T.push(`"`),N!=null){if(T.push(`,`),N==null)T.push(`null`);else{var ee=Ge(N);T.push(ee)}}var I=T.push(`)<\/script>`);if(!I){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var te=e.completedBoundaries;for(n=0;n<te.length;n++)if(!Rr(e,t,te[n])){e.destination=null,n++,te.splice(0,n);return}te.splice(0,n),Br=!0;var ne=e.partialBoundaries;for(n=0;n<ne.length;n++){var L=ne[n];a:{O=e,k=t,Fr=L.byteSize;var R=L.completedSegments;for(I=0;I<R.length;I++)if(!zr(O,k,L,R[I])){I++,R.splice(0,I);var z=!1;break a}R.splice(0,I);var B=L.row;B!==null&&B.together&&L.pendingTasks===1&&(B.pendingTasks===1?ir(O,B,B.hoistables):B.pendingTasks--),z=Ze(k,L.contentState,O.renderState)}if(!z){e.destination=null,n++,ne.splice(0,n);return}}ne.splice(0,n),Br=!1;var V=e.completedBoundaries;for(n=0;n<V.length;n++)if(!Rr(e,t,V[n])){e.destination=null,n++,V.splice(0,n);return}V.splice(0,n)}}finally{Br=!1,n=e.postponedState,n!==null&&(n.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(ne=ze(`body`),t.push(ne)),n.hasHtml&&(n=ze(`html`),t.push(n)),Gr(e),e.status=13,t.push(null),e.destination=null)}}function Hr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?Vr(e,t):e.flushScheduled=!1}}function Ur(e,t){if(e.status===12)e.status=13,e=e.fatalError,mn(e)&&(e=hn(e)),t.destroy(e);else if(e.status!==13&&e.destination===null){e.destination=t;try{Vr(e,t)}catch(t){tr(e,t,{}),nr(e,t)}}}function Wr(e,t){try{if(0<t.size){var n=e.fatalError;t.forEach(function(t){return wr(t,e,n)}),t.clear()}e.destination!==null&&Vr(e,e.destination)}catch(t){tr(e,t,{}),nr(e,t)}}function Gr(e){e=e.renderLifetimeController,e!==null&&e.abort(`The render ended.`)}function Kr(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){Gr(e);var n=typeof t==`object`&&!!t&&t.$$typeof===x;e.aborted=!0,t=n?pn(t):t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t,e.fatalError=t,t=e.abortableTasks,t.forEach(function(t){return Cr(t,e)}),Wr(e,t)}}function qr(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),qr(i,t[0],n)),i[2].push(e)}}function Jr(){}function Yr(e,t,n,i){var a=!1,o=null,s=``,c=!1;if(t=oe(t?t.identifierPrefix:void 0),e=Gn(e,t,wt(t,n),se(0,null,0,null),1/0,Jr,void 0,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,Ar(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&Tr(e,e.pendingRootTasks===0),Kr(e,i),Ur(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==i)throw o;if(!c)throw Error(r(426));return s}e.renderToStaticMarkup=function(e,t){return Yr(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return Yr(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.3.1`})),KJ=tt((e=>{var t=ot(),n=ut();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.for(`react.recoverable`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Symbol.for(`react.optimistic_key`),T=Array.isArray,E=Object.prototype.hasOwnProperty;function D(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)|0,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)|0,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)|0}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)|0,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)|0,(i^i>>>16)>>>0}var O=new MessageChannel,k=[];O.port1.onmessage=function(){var e=k.shift();e&&e()};var A=E.call(ArrayBuffer.prototype,`detached`);function j(e){k.push(e),O.port2.postMessage(null)}function M(e){setTimeout(function(){throw e})}var N=Promise,P=typeof queueMicrotask==`function`?queueMicrotask:function(e){N.resolve(null).then(e).catch(M)},ee=null,F=0;function I(e,t){if(t.byteLength===0){if(A&&t.buffer.detached)throw Error(r(612))}else if(2048<t.byteLength)0<F&&(e.enqueue(new Uint8Array(ee.buffer,0,F)),ee=new Uint8Array(2048),F=0),e.enqueue(t);else{var n=ee.length-F;n<t.byteLength&&(n===0?e.enqueue(ee):(ee.set(t.subarray(0,n),F),e.enqueue(ee),t=t.subarray(n)),ee=new Uint8Array(2048),F=0),ee.set(t,F),F+=t.byteLength}}function te(e,t){return I(e,t),!0}function ne(e){ee&&0<F&&(e.enqueue(new Uint8Array(ee.buffer,0,F)),ee=null,F=0)}var L=new TextEncoder;function R(e){return L.encode(e)}function z(e){return L.encode(e)}function B(e){return e.byteLength}function V(e,t){typeof e.error==`function`?e.error(t):e.close()}var re=Object.assign,ie=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),ae={},H={};function oe(e){return E.call(H,e)?!0:E.call(ae,e)?!1:ie.test(e)?H[e]=!0:(ae[e]=!0,!1)}var se=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),ce=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),le=/["'&<>]/;function ue(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=le.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var de=/([A-Z])/g,fe=/^ms-/,pe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function me(e){return pe.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var he=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},ve=ge.d;ge.d={f:ve.f,r:ve.r,D:Sr,C:Cr,L:wr,m:Tr,X:Dr,S:Er,M:Or};var ye=[],be=null;z(`"></template>`);var xe=z(`<script`),Se=z(`<\/script>`),U=z(`<script src="`),Ce=z(`<script type="module" src="`),we=z(` nonce="`),Te=z(` integrity="`),Ee=z(` crossorigin="`),De=z(` async=""><\/script>`),Oe=z(`<style`),ke=/(<\/|<)(s)(cript)/gi;function Ae(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var je=z(`<script type="importmap">`),Me=z(`<\/script>`);function Ne(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?xe:z(`<script nonce="`+ue(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?Oe:z(`<style nonce="`+ue(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),mr(u,e),u.push(lt,R((``+d).replace(ke,Ae)),Se)),d=[],r!==void 0&&(d.push(n===void 0?je:z(`<script type="importmap" nonce="`+ue(n)+`">`)),d.push(R((``+JSON.stringify(r)).replace(ke,Ae))),d.push(Me)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:z(l+`P:`),segmentPrefix:z(l+`S:`),boundaryPrefix:z(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:Fe(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],_t(l,c),i.bootstrapScripts.add(l),u.push(U,R(ue(a)),Ze),n&&u.push(we,R(ue(n)),Ze),typeof s==`string`&&u.push(Te,R(ue(s)),Ze),typeof o==`string`&&u.push(Ee,R(ue(o)),Ze),mr(u,e),u.push(De);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],_t(s,o),i.bootstrapScripts.add(s),u.push(Ce,R(ue(f)),Ze),n&&u.push(we,R(ue(n)),Ze),typeof a==`string`&&u.push(Te,R(ue(a)),Ze),typeof r==`string`&&u.push(Ee,R(ue(r)),Ze),mr(u,e),u.push(De);return i}function Pe(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Fe(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Ie(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function Le(e){return Ie(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function Re(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return Ie(2,null,r|1,null);case`select`:return Ie(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return Ie(4,null,r,null);case`picture`:return Ie(2,null,r|2,null);case`math`:return Ie(5,null,r,null);case`foreignObject`:return Ie(2,null,r,null);case`table`:return Ie(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return Ie(7,null,r,null);case`colgroup`:return Ie(9,null,r,null);case`tr`:return Ie(8,null,r,null);case`head`:if(2>e.insertionMode)return Ie(3,null,r,null);break;case`html`:if(e.insertionMode===0)return Ie(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Ie(2,null,r,null):e.viewTransition!==null||e.tagScope!==r?Ie(e.insertionMode,e.selectedValue,r,null):e}function ze(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,parentEnter:`none`,parentExit:`none`,name:e.autoName,autoName:e.autoName,nameIdx:0}}function Be(e,t){return t.tagScope&32&&(e.instructions|=128),Ie(t.insertionMode,t.selectedValue,t.tagScope|12,ze(t.viewTransition))}function Ve(e,t){e=ze(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),Ie(t.insertionMode,t.selectedValue,n,e)}function He(e,t,n){return e=`_`+e.idPrefix+`R_`+t,0<n&&(e+=`H`+n.toString(32)),e+`_`}var Ue=z(`<!-- -->`);function W(e,t,n,r){return t===``?r:(r&&e.push(Ue),e.push(R(ue(t))),!0)}function We(e,t){t=t.viewTransition,t!==null&&(t.name!==`auto`&&(et(e,`vt-name`,t.nameIdx===0?t.name:t.name+`_`+t.nameIdx),t.nameIdx++),et(e,`vt-update`,t.update),t.enter!==`none`&&et(e,`vt-enter`,t.enter),t.exit!==`none`&&et(e,`vt-exit`,t.exit),t.share!==`none`&&et(e,`vt-share`,t.share))}var Ge=new Map,Ke=z(` style="`),qe=z(`:`),G=z(`;`);function Je(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=R(ue(i));a=R(ue((``+a).trim()))}else o=Ge.get(i),o===void 0&&(o=z(ue(i.replace(de,`-$1`).toLowerCase().replace(fe,`-ms-`))),Ge.set(i,o)),a=typeof a==`number`?a===0||se.has(i)?R(``+a):R(a+`px`):R(ue((``+a).trim()));n?(n=!1,e.push(Ke,o,qe,a)):e.push(G,o,qe,a)}}n||e.push(Ze)}var Ye=z(` `),Xe=z(`="`),Ze=z(`"`),Qe=z(`=""`);function $e(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ye,R(t),Qe)}function et(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(Ye,R(t),Xe,R(ue(n)),Ze)}var tt=z(ue(`javascript:throw new Error('React form unexpectedly submitted.')`)),nt=z(`<input type="hidden"`);function rt(e,t){this.push(nt),it(e),et(this,`name`,t),et(this,`value`,e),this.push(dt)}function it(e){if(typeof e!=`string`)throw Error(r(480))}function at(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(it),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function st(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=at(t,r);l===null?(e.push(Ye,R(`formAction`),Xe,tt,Ze),o=a=i=r=s=null,q(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&ct(e,`name`,s),r!=null&&ct(e,`formAction`,r),i!=null&&ct(e,`formEncType`,i),a!=null&&ct(e,`formMethod`,a),o!=null&&ct(e,`formTarget`,o),c}function ct(e,t,n){switch(t){case`className`:et(e,`class`,n);break;case`tabIndex`:et(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:et(e,t,n);break;case`style`:Je(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=me(``+n),e.push(Ye,R(t),Xe,R(ue(n)),Ze);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:$e(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=me(``+n),e.push(Ye,R(`xlink:href`),Xe,R(ue(n)),Ze);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ye,R(t),Xe,R(ue(n)),Ze);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ye,R(t),Qe);break;case`capture`:case`download`:!0===n?e.push(Ye,R(t),Qe):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ye,R(t),Xe,R(ue(n)),Ze);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Ye,R(t),Xe,R(ue(n)),Ze);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Ye,R(t),Xe,R(ue(n)),Ze);break;case`xlinkActuate`:et(e,`xlink:actuate`,n);break;case`xlinkArcrole`:et(e,`xlink:arcrole`,n);break;case`xlinkRole`:et(e,`xlink:role`,n);break;case`xlinkShow`:et(e,`xlink:show`,n);break;case`xlinkTitle`:et(e,`xlink:title`,n);break;case`xlinkType`:et(e,`xlink:type`,n);break;case`xmlBase`:et(e,`xml:base`,n);break;case`xmlLang`:et(e,`xml:lang`,n);break;case`xmlSpace`:et(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=ce.get(t)||t,oe(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(Ye,R(t),Xe,R(ue(n)),Ze)}}}var lt=z(`>`),dt=z(`/>`);function ft(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(R(``+t))}}function pt(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var mt=z(` selected=""`),K=z(`addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});`);function q(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),mr(r,e),r.push(lt,K,Se)):r.unshift(t.startInlineScript,lt,K,Se)}}var ht=z(`<!--F!-->`),gt=z(`<!--F-->`);function _t(e,t){for(var n in e.push(jt(`link`)),t)if(E.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:ct(e,n,i)}}return e.push(dt),null}var vt=/(<\/|<)(s)(tyle)/gi;function yt(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function bt(e,t,n,i){for(var a in e.push(jt(n)),t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:ct(e,a,o)}}return We(e,i),e.push(dt),null}function xt(e,t){e.push(jt(`title`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:ct(e,i,a)}}return e.push(lt),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(R(ue(``+t))),ft(e,r,n),e.push(Ft(`title`)),null}var St=z(`<!--head-->`),Ct=z(`<!--body-->`),wt=z(`<!--html-->`);function Tt(e,t){e.push(jt(`script`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:ct(e,i,a)}}return e.push(lt),ft(e,r,n),typeof n==`string`&&e.push(R((``+n).replace(ke,Ae))),e.push(Ft(`script`)),null}function Et(e,t,n,r){e.push(jt(n));var i=n=null,a;for(a in t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:ct(e,a,o)}}return We(e,r),e.push(lt),ft(e,i,n),n}function Dt(e,t,n,r){e.push(jt(n));var i=n=null,a;for(a in t)if(E.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:ct(e,a,o)}}return We(e,r),e.push(lt),ft(e,i,n),typeof n==`string`?(e.push(R(ue(n))),null):n}var Ot=z(`
|
|
263
|
+
`),kt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,At=new Map;function jt(e){var t=At.get(e);if(t===void 0){if(!kt.test(e))throw Error(r(65,e));t=z(`<`+e),At.set(e,t)}return t}var Mt=z(`<!DOCTYPE html>`);function Nt(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(jt(`a`));var u=null,d=null,f;for(f in n)if(E.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?et(e,`href`,``):ct(e,f,p);break;default:ct(e,f,p)}}if(We(e,c),e.push(lt),ft(e,d,u),typeof u==`string`){e.push(R(ue(u)));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(jt(`select`));var h=null,g=null,_;for(_ in n)if(E.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:ct(e,_,v)}}return We(e,c),e.push(lt),ft(e,g,h),h;case`option`:var y=c.selectedValue;e.push(jt(`option`));var b=null,x=null,S=null,C=null,w;for(w in n)if(E.call(n,w)){var D=n[w];if(D!=null)switch(w){case`children`:b=D;break;case`selected`:S=D;break;case`dangerouslySetInnerHTML`:C=D;break;case`value`:x=D;default:ct(e,w,D)}}if(y!=null){var O=x===null?pt(b):``+x;if(T(y)){for(var k=0;k<y.length;k++)if(``+y[k]===O){e.push(mt);break}}else``+y===O&&e.push(mt)}else S&&e.push(mt);return e.push(lt),ft(e,C,b),b;case`textarea`:e.push(jt(`textarea`));var A=null,j=null,M=null,N;for(N in n)if(E.call(n,N)){var P=n[N];if(P!=null)switch(N){case`children`:M=P;break;case`value`:A=P;break;case`defaultValue`:j=P;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:ct(e,N,P)}}if(A===null&&j!==null&&(A=j),We(e,c),e.push(lt),M!=null){if(A!=null)throw Error(r(92));if(T(M)){if(1<M.length)throw Error(r(93));A=``+M[0]}A=``+M}return typeof A==`string`&&A[0]===`
|
|
264
|
+
`&&e.push(Ot),A!==null&&e.push(R(ue(``+A))),null;case`input`:e.push(jt(`input`));var ee=null,F=null,I=null,te=null,ne=null,L=null,z=null,B=null,V=null,ie;for(ie in n)if(E.call(n,ie)){var ae=n[ie];if(ae!=null)switch(ie){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:ee=ae;break;case`formAction`:F=ae;break;case`formEncType`:I=ae;break;case`formMethod`:te=ae;break;case`formTarget`:ne=ae;break;case`defaultChecked`:V=ae;break;case`defaultValue`:z=ae;break;case`checked`:B=ae;break;case`value`:L=ae;break;default:ct(e,ie,ae)}}var H=st(e,i,a,F,I,te,ne,ee);return B===null?V!==null&&$e(e,`checked`,V):$e(e,`checked`,B),L===null?z!==null&&ct(e,`value`,z):ct(e,`value`,L),We(e,c),e.push(dt),H?.forEach(rt,e),null;case`button`:e.push(jt(`button`));var se=null,ce=null,le=null,de=null,fe=null,pe=null,he=null,ge;for(ge in n)if(E.call(n,ge)){var _e=n[ge];if(_e!=null)switch(ge){case`children`:se=_e;break;case`dangerouslySetInnerHTML`:ce=_e;break;case`name`:le=_e;break;case`formAction`:de=_e;break;case`formEncType`:fe=_e;break;case`formMethod`:pe=_e;break;case`formTarget`:he=_e;break;default:ct(e,ge,_e)}}var ve=st(e,i,a,de,fe,pe,he,le);if(We(e,c),e.push(lt),ve?.forEach(rt,e),ft(e,ce,se),typeof se==`string`){e.push(R(ue(se)));var be=null}else be=se;return be;case`form`:e.push(jt(`form`));var xe=null,Se=null,U=null,Ce=null,we=null,Te=null,Ee;for(Ee in n)if(E.call(n,Ee)){var De=n[Ee];if(De!=null)switch(Ee){case`children`:xe=De;break;case`dangerouslySetInnerHTML`:Se=De;break;case`action`:U=De;break;case`encType`:Ce=De;break;case`method`:we=De;break;case`target`:Te=De;break;default:ct(e,Ee,De)}}var Oe=null,ke=null;if(typeof U==`function`){var Ae=at(i,U);Ae===null?(e.push(Ye,R(`action`),Xe,tt,Ze),Te=we=Ce=U=null,q(i,a)):(U=Ae.action||``,Ce=Ae.encType,we=Ae.method,Te=Ae.target,Oe=Ae.data,ke=Ae.name)}if(U!=null&&ct(e,`action`,U),Ce!=null&&ct(e,`encType`,Ce),we!=null&&ct(e,`method`,we),Te!=null&&ct(e,`target`,Te),We(e,c),e.push(lt),ke!==null&&(e.push(nt),et(e,`name`,ke),e.push(dt),Oe?.forEach(rt,e)),ft(e,Se,xe),typeof xe==`string`){e.push(R(ue(xe)));var je=null}else je=xe;return je;case`menuitem`:for(var Me in e.push(jt(`menuitem`)),n)if(E.call(n,Me)){var Ne=n[Me];if(Ne!=null)switch(Me){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:ct(e,Me,Ne)}}return We(e,c),e.push(lt),null;case`object`:e.push(jt(`object`));var Pe=null,Fe=null,Ie;for(Ie in n)if(E.call(n,Ie)){var Le=n[Ie];if(Le!=null)switch(Ie){case`children`:Pe=Le;break;case`dangerouslySetInnerHTML`:Fe=Le;break;case`data`:var Re=me(``+Le);if(Re===``)break;e.push(Ye,R(`data`),Xe,R(ue(Re)),Ze);break;default:ct(e,Ie,Le)}}if(We(e,c),e.push(lt),ft(e,Fe,Pe),typeof Pe==`string`){e.push(R(ue(Pe)));var ze=null}else ze=Pe;return ze;case`title`:var Be=c.tagScope&1,Ve=c.tagScope&4;if(c.insertionMode===4||Be||n.itemProp!=null)var He=xt(e,n);else Ve?He=null:(xt(a.hoistableChunks,n),He=void 0);return He;case`link`:var W=c.tagScope&1,Ge=c.tagScope&4,Ke=n.rel,qe=n.href,G=n.precedence;if(c.insertionMode===4||W||n.itemProp!=null||typeof Ke!=`string`||typeof qe!=`string`||qe===``){_t(e,n);var Qe=null}else if(n.rel===`stylesheet`){if(typeof G!=`string`||n.disabled!=null||n.onLoad||n.onError)Qe=_t(e,n);else{var it=a.styles.get(G),ot=i.styleResources.hasOwnProperty(qe)?i.styleResources[qe]:void 0;if(ot!==null){i.styleResources[qe]=null,it||(it={precedence:R(ue(G)),rules:[],hrefs:[],sheets:new Map},a.styles.set(G,it));var ut={state:0,props:re({},n,{"data-precedence":n.precedence,precedence:null})};if(ot){ot.length===2&&kr(ut.props,ot);var K=a.preloads.stylesheets.get(qe);K&&0<K.length?K.length=0:ut.state=1}it.sheets.set(qe,ut),s&&s.stylesheets.add(ut)}else if(it){var ht=it.sheets.get(qe);ht&&s&&s.stylesheets.add(ht)}l&&e.push(Ue),Qe=null}}else n.onLoad||n.onError?Qe=_t(e,n):(l&&e.push(Ue),Qe=Ge?null:_t(a.hoistableChunks,n));return Qe;case`script`:var gt=c.tagScope&1,kt=n.async;if(typeof n.src!=`string`||!n.src||!kt||typeof kt==`function`||typeof kt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||gt||n.itemProp!=null)var At=Tt(e,n);else{var Nt=n.src;if(n.type===`module`)var Pt=i.moduleScriptResources,It=a.preloads.moduleScripts;else Pt=i.scriptResources,It=a.preloads.scripts;var Lt=Pt.hasOwnProperty(Nt)?Pt[Nt]:void 0;if(Lt!==null){Pt[Nt]=null;var Rt=n;if(Lt){Lt.length===2&&(Rt=re({},n),kr(Rt,Lt));var zt=It.get(Nt);zt&&(zt.length=0)}var Bt=[];a.scripts.add(Bt),Tt(Bt,Rt)}l&&e.push(Ue),At=null}return At;case`style`:var Vt=c.tagScope&1,Ht=n.precedence,Ut=n.href,Wt=n.nonce;if(c.insertionMode===4||Vt||n.itemProp!=null||typeof Ht!=`string`||typeof Ut!=`string`||Ut===``){e.push(jt(`style`));var Gt=null,Kt=null,qt;for(qt in n)if(E.call(n,qt)){var Jt=n[qt];if(Jt!=null)switch(qt){case`children`:Gt=Jt;break;case`dangerouslySetInnerHTML`:Kt=Jt;break;default:ct(e,qt,Jt)}}e.push(lt);var Yt=Array.isArray(Gt)?2>Gt.length?Gt[0]:null:Gt;typeof Yt!=`function`&&typeof Yt!=`symbol`&&Yt!=null&&e.push(R((``+Yt).replace(vt,yt))),ft(e,Kt,Gt),e.push(Ft(`style`));var Xt=null}else{var Zt=a.styles.get(Ht);if((i.styleResources.hasOwnProperty(Ut)?i.styleResources[Ut]:void 0)!==null){i.styleResources[Ut]=null,Zt||(Zt={precedence:R(ue(Ht)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Ht,Zt));var Qt=a.nonce.style;if(!Qt||Qt===Wt){Zt.hrefs.push(R(ue(Ut)));var $t=Zt.rules,en=null,tn=null,nn;for(nn in n)if(E.call(n,nn)){var rn=n[nn];if(rn!=null)switch(nn){case`children`:en=rn;break;case`dangerouslySetInnerHTML`:tn=rn}}var an=Array.isArray(en)?2>en.length?en[0]:null:en;typeof an!=`function`&&typeof an!=`symbol`&&an!=null&&$t.push(R((``+an).replace(vt,yt))),ft($t,tn,en)}}Zt&&s&&s.styles.add(Zt),l&&e.push(Ue),Xt=void 0}return Xt;case`meta`:var on=c.tagScope&1,sn=c.tagScope&4;if(c.insertionMode===4||on||n.itemProp!=null)var cn=bt(e,n,`meta`,c);else l&&e.push(Ue),cn=sn?null:typeof n.charSet==`string`?bt(a.charsetChunks,n,`meta`,c):n.name===`viewport`?bt(a.viewportChunks,n,`meta`,c):bt(a.hoistableChunks,n,`meta`,c);return cn;case`listing`:case`pre`:e.push(jt(t));var ln=null,un=null,dn;for(dn in n)if(E.call(n,dn)){var fn=n[dn];if(fn!=null)switch(dn){case`children`:ln=fn;break;case`dangerouslySetInnerHTML`:un=fn;break;default:ct(e,dn,fn)}}if(We(e,c),e.push(lt),un!=null){if(ln!=null)throw Error(r(60));if(typeof un!=`object`||!(`__html`in un))throw Error(r(61));var pn=un.__html;pn!=null&&(typeof pn==`string`&&0<pn.length&&pn[0]===`
|
|
265
|
+
`?e.push(Ot,R(pn)):e.push(R(``+pn)))}return typeof ln==`string`&&ln[0]===`
|
|
266
|
+
`&&e.push(Ot),ln;case`img`:var mn=c.tagScope&3,hn=n.src,gn=n.srcSet;if(!(n.loading===`lazy`||!hn&&!gn||typeof hn!=`string`&&hn!=null||typeof gn!=`string`&&gn!=null||n.fetchPriority===`low`||mn)&&(typeof hn!=`string`||hn[4]!==`:`||hn[0]!==`d`&&hn[0]!==`D`||hn[1]!==`a`&&hn[1]!==`A`||hn[2]!==`t`&&hn[2]!==`T`||hn[3]!==`a`&&hn[3]!==`A`)&&(typeof gn!=`string`||gn[4]!==`:`||gn[0]!==`d`&&gn[0]!==`D`||gn[1]!==`a`&&gn[1]!==`A`||gn[2]!==`t`&&gn[2]!==`T`||gn[3]!==`a`&&gn[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var _n=typeof n.sizes==`string`?n.sizes:void 0,vn=gn?gn+`
|
|
267
|
+
`+(_n||``):hn,yn=a.preloads.images,bn=yn.get(vn);if(bn)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(yn.delete(vn),a.highImagePreloads.add(bn));else if(!i.imageResources.hasOwnProperty(vn)){i.imageResources[vn]=ye;var xn=n.crossOrigin,Sn=typeof xn==`string`?xn===`use-credentials`?xn:``:void 0,Cn=a.headers,wn;Cn&&0<Cn.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>Cn.highImagePreloads.length)&&(wn=Ar(hn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:Sn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),0<=(Cn.remainingCapacity-=wn.length+2))?(a.resets.image[vn]=ye,Cn.highImagePreloads&&(Cn.highImagePreloads+=`, `),Cn.highImagePreloads+=wn):(bn=[],_t(bn,{rel:`preload`,as:`image`,href:gn?void 0:hn,imageSrcSet:gn,imageSizes:_n,crossOrigin:Sn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(bn):(a.bulkPreloads.add(bn),yn.set(vn,bn)))}}return bt(e,n,`img`,c);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return bt(e,n,t,c);case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:break;case`head`:if(2>c.insertionMode){var Tn=o||a.preamble;if(Tn.headChunks)throw Error(r(545,"`<head>`"));o!==null&&e.push(St),Tn.headChunks=[];var En=Et(Tn.headChunks,n,`head`,c)}else En=Dt(e,n,`head`,c);return En;case`body`:if(2>c.insertionMode){var Dn=o||a.preamble;if(Dn.bodyChunks)throw Error(r(545,"`<body>`"));o!==null&&e.push(Ct),Dn.bodyChunks=[];var On=Et(Dn.bodyChunks,n,`body`,c)}else On=Dt(e,n,`body`,c);return On;case`html`:if(c.insertionMode===0){var kn=o||a.preamble;if(kn.htmlChunks)throw Error(r(545,"`<html>`"));o!==null&&e.push(wt),kn.htmlChunks=[Mt];var An=Et(kn.htmlChunks,n,`html`,c)}else An=Dt(e,n,`html`,c);return An;default:if(t.indexOf(`-`)!==-1){e.push(jt(t));var jn=null,Mn=null,Nn;for(Nn in n)if(E.call(n,Nn)){var Pn=n[Nn];if(Pn!=null){var Fn=Nn;switch(Nn){case`children`:jn=Pn;break;case`dangerouslySetInnerHTML`:Mn=Pn;break;case`style`:Je(e,Pn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:Fn=`class`;default:if(oe(Nn)&&typeof Pn!=`function`&&typeof Pn!=`symbol`&&!1!==Pn){if(!0===Pn)Pn=``;else if(typeof Pn==`object`)continue;e.push(Ye,R(Fn),Xe,R(ue(Pn)),Ze)}}}}return We(e,c),e.push(lt),ft(e,Mn,jn),jn}}return Dt(e,n,t,c)}var Pt=new Map;function Ft(e){var t=Pt.get(e);return t===void 0&&(t=z(`</`+e+`>`),Pt.set(e,t)),t}function It(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Lt(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)I(e,t[n]);return n<t.length?(n=t[n],t.length=0,te(e,n)):!0}var Rt=z(`requestAnimationFrame(function(){$RT=performance.now()});`),zt=z(`<template id="`),Bt=z(`"></template>`),Vt=z(`<!--&-->`),Ht=z(`<!--/&-->`),Ut=z(`<!--$-->`),Wt=z(`<!--$?--><template id="`),Gt=z(`"></template>`),Kt=z(`<!--$!-->`),qt=z(`<!--/$-->`),Jt=z(`<template`),Yt=z(`"`),Xt=z(` data-dgst="`);z(` data-msg="`),z(` data-stck="`),z(` data-cstck="`);var Zt=z(`></template>`);function Qt(e,t,n){if(I(e,Wt),n===null)throw Error(r(395));return I(e,t.boundaryPrefix),I(e,R(n.toString(16))),te(e,Gt)}var $t=z(`<div hidden id="`),en=z(`">`),tn=z(`</div>`),nn=z(`<svg aria-hidden="true" style="display:none" id="`),rn=z(`">`),an=z(`</svg>`),on=z(`<math aria-hidden="true" style="display:none" id="`),sn=z(`">`),cn=z(`</math>`),ln=z(`<table hidden id="`),un=z(`">`),dn=z(`</table>`),fn=z(`<table hidden><tbody id="`),pn=z(`">`),mn=z(`</tbody></table>`),hn=z(`<table hidden><tr id="`),gn=z(`">`),_n=z(`</tr></table>`),vn=z(`<table hidden><colgroup id="`),yn=z(`">`),bn=z(`</colgroup></table>`);function xn(e,t,n,i){switch(n.insertionMode){case 0:case 1:case 3:case 2:return I(e,$t),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,en);case 4:return I(e,nn),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,rn);case 5:return I(e,on),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,sn);case 6:return I(e,ln),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,un);case 7:return I(e,fn),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,pn);case 8:return I(e,hn),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,gn);case 9:return I(e,vn),I(e,t.segmentPrefix),I(e,R(i.toString(16))),te(e,yn);default:throw Error(r(397))}}function Sn(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return te(e,tn);case 4:return te(e,an);case 5:return te(e,cn);case 6:return te(e,dn);case 7:return te(e,mn);case 8:return te(e,_n);case 9:return te(e,bn);default:throw Error(r(397))}}var Cn=z(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`),wn=z(`$RS("`),Tn=z(`","`),En=z(`")<\/script>`);z(`<template data-rsi="" data-sid="`),z(`" data-pid="`);var Dn=z(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
268
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`),On=R(`$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),
|
|
269
|
+
z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
|
|
270
|
+
M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
|
|
271
|
+
q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
|
|
272
|
+
A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`),kn=z(`$RC("`),An=z(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
273
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
274
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),jn=z(`$RR("`),Mn=z(`","`),Nn=z(`",`),Pn=z(`"`),Fn=z(`)<\/script>`);z(`<template data-rci="" data-bid="`),z(`<template data-rri="" data-bid="`),z(`" data-sid="`),z(`" data-sty="`);var In=z(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),Ln=z(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),Rn=z(`$RX("`),zn=z(`"`),Bn=z(`,`),Vn=z(`null`),Hn=z(`)<\/script>`);z(`<template data-rxi="" data-bid="`),z(`" data-dgst="`),z(`" data-msg="`),z(`" data-stck="`),z(`" data-cstck="`);var Un=/[<\u2028\u2029]/g;function Wn(e){return JSON.stringify(e).replace(Un,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Gn=/[&><\u2028\u2029]/g;function Kn(e){return JSON.stringify(e).replace(Gn,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var qn=z(` media="not all" data-precedence="`),Jn=z(`" data-href="`),Yn=z(`">`),Xn=z(`</style>`),Zn=!1,Qn=!0;function $n(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(I(this,be.startInlineStyle),I(this,qn),I(this,e.precedence),I(this,Jn);r<n.length-1;r++)I(this,n[r]),I(this,sr);for(I(this,n[r]),I(this,Yn),r=0;r<t.length;r++)I(this,t[r]);Qn=te(this,Xn),Zn=!0,t.length=0,n.length=0}}function er(e){return e.state===2?!1:Zn=!0}function tr(e,t,n){return Zn=!1,Qn=!0,be=n,t.styles.forEach($n,e),be=null,t.stylesheets.forEach(er),Zn&&(n.stylesToHoist=!0),Qn}function nr(e){for(var t=0;t<e.length;t++)I(this,e[t]);e.length=0}var rr=[];function ir(e){_t(rr,e.props);for(var t=0;t<rr.length;t++)I(this,rr[t]);rr.length=0,e.state=2}var ar=z(` data-precedence="`),or=z(`" data-href="`),sr=z(` `),cr=z(`">`),lr=z(`</style>`);function ur(e){var t=0<e.sheets.size;e.sheets.forEach(ir,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(I(this,be.startInlineStyle),I(this,ar),I(this,e.precedence),e=0,r.length){for(I(this,or);e<r.length-1;e++)I(this,r[e]),I(this,sr);I(this,r[e])}for(I(this,cr),e=0;e<n.length;e++)I(this,n[e]);I(this,lr),n.length=0,r.length=0}}function dr(e){if(e.state===0){e.state=1;var t=e.props;for(_t(rr,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<rr.length;e++)I(this,rr[e]);rr.length=0}}function fr(e){e.sheets.forEach(dr,this),e.sheets.clear()}z(`<link rel="expect" href="#`),z(`" blocking="render"/>`);var pr=z(` id="`);function mr(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(pr,R(ue(`_`+t.idPrefix+`R_`)),Ze))}var hr=z(`[`),gr=z(`,[`),_r=z(`,`),vr=z(`]`);function yr(e,t){I(e,hr);var n=hr;t.stylesheets.forEach(function(t){if(t.state!==2){if(t.state===3)I(e,n),I(e,R(Kn(``+t.props.href))),I(e,vr),n=gr;else{I(e,n);var i=t.props[`data-precedence`],a=t.props;for(var o in I(e,R(Kn(me(``+t.props.href)))),i=``+i,I(e,_r),I(e,R(Kn(i))),a)if(E.call(a,o)&&(i=a[o],i!=null))switch(o){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:br(e,o,i)}I(e,vr),n=gr,t.state=3}}}),I(e,vr)}function br(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=me(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!oe(t))return;t=``+n}I(e,_r),I(e,R(Kn(r))),I(e,_r),I(e,R(Kn(t)))}function xr(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Sr(e){var t=sa||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(jr,Mr)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],_t(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}oo(t)}}else ve.D(e)}function Cr(e,t){var n=sa||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(jr,Mr)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(Nr,Pr);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],_t(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}oo(n)}}else ve.C(e,t)}function wr(e,t,n){var r=sa||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
|
|
275
|
+
`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=ye,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=Ar(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=ye,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],_t(i,re({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],_t(o,re({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ye:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),_t(o,re({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ye:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=ye,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=Ar(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=ye,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=re({rel:`preload`,href:e,as:t},n),_t(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}oo(r)}}else ve.L(e,t,n)}function Tr(e,t){var n=sa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?ye:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.moduleUnknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=ye}_t(a,re({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),oo(n)}}else ve.m(e,t)}function Er(e,t,n){var r=sa||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:R(ue(t)),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:re({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&kr(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),oo(r))}}else ve.S(e,t,n)}function Dr(e,t){var n=sa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=re({src:e,async:!0},t),a&&(a.length===2&&kr(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Tt(e,t),oo(n))}}else ve.X(e,t)}function Or(e,t){var n=sa||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=re({src:e,type:`module`,async:!0},t),a&&(a.length===2&&kr(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Tt(e,t),oo(n))}}else ve.M(e,t)}function kr(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function Ar(e,t,n){for(var r in e=(``+e).replace(jr,Mr),t=(``+t).replace(Nr,Pr),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)E.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(Nr,Pr)+`"`));return t}var jr=/[<>\r\n]/g;function Mr(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
|
|
276
|
+
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var Nr=/["';,\r\n]/g;function Pr(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
|
|
277
|
+
`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function Fr(e){this.styles.add(e)}function Ir(e){this.stylesheets.add(e)}function Lr(e,t){t.styles.forEach(Fr,e),t.stylesheets.forEach(Ir,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function Rr(e,t){return t?e.suspenseyImages:0<e.stylesheets.size||e.suspenseyImages}var zr=Function.prototype.bind,Br=Symbol.for(`react.client.reference`);function Vr(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Br?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case o:return`Fragment`;case c:return`Profiler`;case s:return`StrictMode`;case f:return`Suspense`;case p:return`SuspenseList`;case _:return`Activity`;case b:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case a:return`Portal`;case u:return e.displayName||`Context`;case l:return(e._context.displayName||`Context`)+`.Consumer`;case d:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case m:return t=e.displayName||null,t===null?Vr(e.type)||`Memo`:t;case h:t=e._payload,e=e._init;try{return Vr(e(t))}catch{}}return null}var Hr={},Ur=null;function Wr(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(r(401))}else{if(n===null)throw Error(r(401));Wr(e,n)}t.context._currentValue=t.value}}function Gr(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Gr(e)}function Kr(e){var t=e.parent;t!==null&&Kr(t),e.context._currentValue=e.value}function qr(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(r(402));e.depth===t.depth?Wr(e,t):qr(e,t)}function Jr(e,t){var n=t.parent;if(n===null)throw Error(r(402));e.depth===n.depth?Wr(e,n):Jr(e,n),t.context._currentValue=t.value}function Yr(e){var t=Ur;t!==e&&(t===null?Kr(e):e===null?Gr(t):t.depth===e.depth?Wr(t,e):t.depth>e.depth?qr(t,e):Jr(t,e),Ur=e)}var Xr={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Zr={id:1,overflow:``};function Qr(e){var t=e.overflow;return e=e.id,(e&~(1<<32-ei(e)-1)).toString(32)+t}function $r(e,t,n){var r=e.id;e=e.overflow;var i=32-ei(r)-1;r&=~(1<<i),n+=1;var a=32-ei(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-ei(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var ei=Math.clz32?Math.clz32:ri,ti=Math.log,ni=Math.LN2;function ri(e){return e>>>=0,e===0?32:31-(ti(e)/ni|0)|0}function ii(){}var ai=Error(r(460));function oi(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ii,ii),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,e===void 0&&!(`reason`in t)?Error(r(600)):e;default:switch(typeof t.status==`string`?t.then(ii,ii):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw si=t,ai}}var si=null;function ci(){if(si===null)throw Error(r(459));var e=si;return si=null,e}function li(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ui=typeof Object.is==`function`?Object.is:li,di=null,fi=null,pi=null,mi=null,hi=null,gi=null,_i=!1,vi=!1,yi=0,bi=0,xi=-1,Si=0,Ci=null;function wi(e){if(e=e._reason,typeof e==`function`)try{var t=e()}catch{t=`The reason for browser-only rendering could not be determined because its initializer threw.`}else t=e;return t=Error(r(603),e===void 0?void 0:{cause:t}),Object.defineProperty(t,x,{value:!0}),t}function Ti(e){return typeof e!=`object`||!e?!1:!0===e[x]}function Ei(e){var t=Error(r(604),E.call(e,`cause`)?{cause:e.cause}:void 0);if(e=e.stack,e!==void 0){var n=e.indexOf(`
|
|
278
|
+
`);t.stack=t.name+`: `+t.message+(n===-1?``:e.slice(n))}else t.stack=void 0;return t}var Di=null,Oi=0;function ki(){if(di===null)throw Error(r(321));return di}function Ai(){if(0<Oi)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function ji(){return gi===null?hi===null?(_i=!1,hi=gi=Ai()):(_i=!0,gi=hi):gi.next===null?(_i=!1,gi=gi.next=Ai()):(_i=!0,gi=gi.next),gi}function Mi(){var e=Ci;return Ci=null,e}function Ni(){mi=pi=fi=di=null,vi=!1,hi=null,Oi=0,gi=Di=null}function Pi(e,t){return typeof t==`function`?t(e):t}function Fi(e,t,n){if(di=ki(),gi=ji(),_i){var r=gi.queue;if(t=r.dispatch,Di!==null&&(n=Di.get(r),n!==void 0)){Di.delete(r),r=gi.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return gi.memoizedState=r,[r,t]}return[gi.memoizedState,t]}return e=e===Pi?typeof t==`function`?t():t:n===void 0?t:n(t),gi.memoizedState=e,e=gi.queue={last:null,dispatch:null},e=e.dispatch=Li.bind(null,di,e),[gi.memoizedState,e]}function Ii(e,t){if(di=ki(),gi=ji(),t=t===void 0?null:t,gi!==null){var n=gi.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!ui(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),gi.memoizedState=[e,t],e}function Li(e,t,n){if(25<=Oi)throw Error(r(301));if(e===di){if(vi=!0,e={action:n,next:null},Di===null&&(Di=new Map),n=Di.get(t),n===void 0)Di.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}}function Ri(){throw Error(r(440))}function zi(){throw Error(r(394))}function Bi(){throw Error(r(479))}function Vi(e,t,n){ki();var r=bi++,i=pi;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=mi;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+D(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(xi=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+D(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Hi(e){var t=Si;return Si+=1,Ci===null&&(Ci=[]),oi(Ci,e,t)}function Ui(){throw Error(r(393))}var Wi={readContext:function(e){return e._currentValue},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Hi(e);if(e.$$typeof===x)throw wi(e);if(e.$$typeof===u)return e._currentValue}throw Error(r(438,String(e)))},useContext:function(e){return ki(),e._currentValue},useMemo:Ii,useReducer:Fi,useRef:function(e){di=ki(),gi=ji();var t=gi.memoizedState;return t===null?(e={current:e},gi.memoizedState=e):t},useState:function(e){return Fi(Pi,e)},useInsertionEffect:ii,useLayoutEffect:ii,useCallback:function(e,t){return Ii(function(){return e},t)},useImperativeHandle:ii,useEffect:ii,useDebugValue:ii,useDeferredValue:function(e,t){return ki(),t===void 0?e:t},useTransition:function(){return ki(),[!1,zi]},useId:function(){var e=Qr(fi.treeContext),t=Gi;if(t===null)throw Error(r(404));return He(t,e,yi++)},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(r(407));return n()},useOptimistic:function(e){return ki(),[e,Bi]},useActionState:Vi,useFormState:Vi,useHostTransitionStatus:function(){return ki(),_e},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return Ui},useEffectEvent:function(){return Ri}},Gi=null,Ki={getCacheForType:function(){throw Error(r(248))},cacheSignal:function(){throw Error(r(248))}},qi,Ji;function Yi(e){if(qi===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);qi=t&&t[1]||``,Ji=-1<e.stack.indexOf(`
|
|
279
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
280
|
+
`+qi+e+Ji}var Xi=!1;function Zi(e,t){if(!e||Xi)return``;Xi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
281
|
+
`),l=s.split(`
|
|
282
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
283
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Xi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Yi(n):``}function Qi(e){if(typeof e==`string`)return Yi(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?Zi(e,!0):Zi(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case d:return Zi(e.render,!1);case m:return Zi(e.type,!1);case h:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Yi(`Lazy`)}return Qi(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
|
|
284
|
+
`)&&(r=r.slice(29)),e=r.indexOf(`
|
|
285
|
+
`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
|
|
286
|
+
`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
|
|
287
|
+
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
|
288
|
+
`+e;break a}n=Yi(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Yi(`SuspenseList`);case f:return Yi(`Suspense`);case b:return Yi(`ViewTransition`)}return``}function $i(e,t){return e=e==null||typeof e==`string`?e:e.default,t=t==null||typeof t==`string`?t:t.default,t==null?e===`auto`?null:e:t===`auto`?null:t}function ea(e,t){return(500<t.byteSize||Rr(t.contentState,!1)||t.defer)&&t.preamble===null}function ta(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`%c%s%c `+e[0],`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``):e.splice(0,0,`%c%s%c`,`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``),e.unshift(console),t=zr.apply(console.error,e),t()}else console.error(e);return null}function na(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.aborted=!1,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.currentTask=null,this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.postponedState=this.trackedPostpones=null,this.onError=i===void 0?ta:i,this.onBrowserBailout=a===void 0?ii:a,this.onAllReady=o===void 0?ii:o,this.onShellReady=s===void 0?ii:s,this.onShellError=c===void 0?ii:c,this.onFatalError=l===void 0?ii:l,this.renderLifetimeController=null,this.formState=u===void 0?null:u}function ra(e,t,n,r,i,a,o,s,c,l,u,d){return t=new na(t,n,r,i,a,o,s,c,l,u,d),n=fa(t,0,null,r,!1,!1),n.parentFlushed=!0,e=ua(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Zr,null,null),pa(e),t.pingedTasks.push(e),t}function ia(e,t,n,r,i,a,o,s,c,l,u){return e=ra(e,t,n,r,i,a,o,s,c,l,u,void 0),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}function aa(e,t,n,r,i,a,o,s,c){return n=new na(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,a,o,s,c,null),n.nextSegmentId=t.nextSegmentId,typeof t.replaySlots==`number`?(r=fa(n,0,null,t.rootFormatContext,!1,!1),r.parentFlushed=!0,e=ua(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Zr,null,null),pa(e),n.pingedTasks.push(e),n):(e=da(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Zr,null,null),pa(e),n.pingedTasks.push(e),n)}function oa(e,t,n,r,i,a,o,s,c){return e=aa(e,t,n,r,i,a,o,s,c),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}var sa=null;function ca(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,e.trackedPostpones!==null||e.status===10?P(function(){return Ka(e)}):j(function(){return Ka(e)}))}function la(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,defer:i,fallbackAbortableTasks:n,errorDigest:null,contentState:xr(),fallbackState:xr(),preamble:r,tracked:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&Lr(n.contentState,e)),n}function ua(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:{resolve:function(){return ca(e,h)},reject:function(t){e.aborted?h.abortSet.delete(h)&&za(h,e,t):ca(e,h)}},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function da(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:{resolve:function(){return ca(e,m)},reject:function(t){e.aborted?m.abortSet.delete(m)&&za(m,e,t):ca(e,m)}},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function fa(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function pa(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function ma(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function ha(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Qi(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
|
289
|
+
Error generating stack: `+e.message+`
|
|
290
|
+
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function ga(e,t,n){if(Ti(t))return e=e.onBrowserBailout,e(t,n),``;if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t===``?void 0:t}function _a(e,t){var n=e.onShellError,r=e.onFatalError;e.pendingRootTasks!==0&&n(t),r(t),lo(e),e.destination===null?(e.status=12,e.aborted||(e.fatalError=t)):(e.status=13,V(e.destination,t))}function va(e,t){ya(e,t.next,t.hoistables)}function ya(e,t,n){for(;t!==null;){n!==null&&(Lr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Lr(a.contentState,n),Ga(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ba(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||ea(e,a)){r=!1;break}}r&&ya(e,t,t.hoistables)}}function xa(e){var t={pendingTasks:1,boundaries:null,hoistables:xr(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function Sa(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=xa(c),t.treeContext=$r(o,n,d);var p=l[d];typeof p==`number`?(Ea(e,t,p,f,d),delete l[d]):Fa(e,t,f,d),--c.pendingTasks===0&&va(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=xa(c),t.treeContext=$r(o,n,u),Fa(e,t,d,u),--c.pendingTasks===0&&va(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=xa(c),t.treeContext=$r(o,n,i),Fa(e,t,l,i),--c.pendingTasks===0&&va(e,c);else{for(l=t.blockedSegment,u=l.children.length,d=l.chunks.length,f=0;f<n;f++){p=i===`unstable_legacy-backwards`?n-1-f:f;var m=r[p];t.row=c=xa(c),t.treeContext=$r(o,n,p);var h=fa(e,d,null,t.formatContext,p!==0||l.lastPushedText,!0);l.children.splice(u,0,h),t.blockedSegment=h;try{Fa(e,t,m,p),h.lastPushedText&&h.textEmbedded&&h.chunks.push(Ue),h.status=1,Wa(e,t.blockedBoundary,h),--c.pendingTasks===0&&va(e,c)}catch(t){throw h.status=e.aborted?3:4,t}}t.blockedSegment=l,l.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function Ca(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,di={},fi=t,pi=e,mi=n,bi=yi=0,xi=-1,Si=0,Ci=o,e=r(i,a);vi;)vi=!1,bi=yi=0,xi=-1,Si=0,Oi+=1,gi=null,e=r(i,a);return Ni(),e}function wa(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(ht):c.push(gt)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=$r(n,1,0),Fa(e,t,r,-1),t.treeContext=n):s?Fa(e,t,r,-1):Da(e,t,r,-1),t.keyPath=a}function Ta(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var S in x={},a)S!==`ref`&&(x[S]=a[S]);var w=i.defaultProps;if(w)for(var E in x===a&&(x=re({},x,a)),w)x[E]===void 0&&(x[E]=w[E]);var D=x,O=Hr,k=i.contextType;typeof k==`object`&&k&&(O=k._currentValue);var A=new i(D,O),j=A.state===void 0?null:A.state;A.updater=Xr,A.props=D,A.state=j;var M={queue:[],replace:!1};A._reactInternals=M;var N=i.contextType;A.context=typeof N==`object`&&N?N._currentValue:Hr;var P=i.getDerivedStateFromProps;if(typeof P==`function`){var ee=P(D,j);A.state=ee==null?j:re({},j,ee)}if(typeof i.getDerivedStateFromProps!=`function`&&typeof A.getSnapshotBeforeUpdate!=`function`&&(typeof A.UNSAFE_componentWillMount==`function`||typeof A.componentWillMount==`function`)){var F=A.state;if(typeof A.componentWillMount==`function`&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount==`function`&&A.UNSAFE_componentWillMount(),F!==A.state&&Xr.enqueueReplaceState(A,A.state,null),M.queue!==null&&0<M.queue.length){var I=M.queue,te=M.replace;if(M.queue=null,M.replace=!1,te&&I.length===1)A.state=I[0];else{for(var ne=te?I[0]:A.state,L=!0,R=+!!te;R<I.length;R++){var z=I[R],B=typeof z==`function`?z.call(A,ne,D,void 0):z;B!=null&&(L?(L=!1,ne=re({},ne,B)):re(ne,B))}A.state=ne}}else M.queue=null}var V=A.render();if(e.aborted)throw null;var ie=t.keyPath;t.keyPath=n,Da(e,t,V,-1),t.keyPath=ie}else{var ae=Ca(e,t,n,i,a,void 0);if(e.aborted)throw null;wa(e,t,n,ae,yi!==0,bi,xi)}}else if(typeof i==`string`){var H=t.blockedSegment;if(H===null){var oe=a.children,se=t.formatContext,ce=t.keyPath;t.formatContext=Re(se,i,a),t.keyPath=n,Fa(e,t,oe,-1),t.formatContext=se,t.keyPath=ce}else{var le=Nt(H.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,H.lastPushedText);H.lastPushedText=!1;var ue=t.formatContext,de=t.keyPath;if(t.keyPath=n,(t.formatContext=Re(ue,i,a)).insertionMode===3){var fe=fa(e,0,null,t.formatContext,!1,!1);H.preambleChildren.push(fe),t.blockedSegment=fe;try{Fa(e,t,le,-1),fe.lastPushedText&&fe.textEmbedded&&fe.chunks.push(Ue),fe.status=1,Wa(e,t.blockedBoundary,fe)}finally{t.blockedSegment=H}}else Fa(e,t,le,-1);t.formatContext=ue,t.keyPath=de;a:{var pe=H.chunks,me=e.resumableState;switch(i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=ue.insertionMode){me.hasBody=!0;break a}break;case`html`:if(ue.insertionMode===0){me.hasHtml=!0;break a}break;case`head`:if(1>=ue.insertionMode)break a}pe.push(Ft(i))}H.lastPushedText=!1}}else{switch(i){case v:case s:case c:case o:var he=t.keyPath;t.keyPath=n,Da(e,t,a.children,-1),t.keyPath=he;return;case _:var ge=t.blockedSegment;if(ge===null){if(a.mode!==`hidden`){var _e=t.keyPath;t.keyPath=n,Fa(e,t,a.children,-1),t.keyPath=_e}}else if(a.mode!==`hidden`){ge.chunks.push(Vt),ge.lastPushedText=!1;var ve=t.keyPath;t.keyPath=n,Fa(e,t,a.children,-1),t.keyPath=ve,ge.chunks.push(Ht),ge.lastPushedText=!1}return;case p:a:{var ye=a.children,be=a.revealOrder;if(be!==`independent`&&be!==`together`){if(T(ye)){Sa(e,t,n,ye,be);break a}var xe=C(ye);if(xe){var Se=xe.call(ye);if(Se){var U=Se.next();if(!U.done){do U=Se.next();while(!U.done);Sa(e,t,n,ye,be)}break a}}}if(be===`together`){var Ce=t.keyPath,we=t.row,Te=t.row=xa(null);Te.boundaries=[],Te.together=!0,t.keyPath=n,Da(e,t,ye,-1),--Te.pendingTasks===0&&va(e,Te),t.keyPath=Ce,t.row=we,we!==null&&0<Te.pendingTasks&&(we.pendingTasks++,Te.next=we)}else{var Ee=t.keyPath;t.keyPath=n,Da(e,t,ye,-1),t.keyPath=Ee}}return;case b:var De=t.formatContext,Oe=t.keyPath,ke=e.resumableState;if(a.name!=null&&a.name!==`auto`)var Ae=a.name;else Ae=He(ke,Qr(t.treeContext),0);var je=Ae,Me=e.resumableState,Ne=$i(a.default,a.update),Pe=$i(a.default,a.enter),Le=$i(a.default,a.exit),ze=$i(a.default,a.share),W=a.name;if(Ne??=`auto`,Pe??=`auto`,Le??=`auto`,W==null){var We=De.viewTransition;We===null?(W=`auto`,ze=`none`):(W=We.name,ze=We.share)}else ze??=`auto`,De.tagScope&4&&(Me.instructions|=128);De.tagScope&8?Me.instructions|=128:Le=`none`,De.tagScope&16?Me.instructions|=128:Pe=`none`;var Ge={update:Ne,enter:Pe,exit:Le,share:ze,parentEnter:`none`,parentExit:`none`,name:W,autoName:je,nameIdx:0},Ke=De.tagScope&-25;if(Ke=Ne===`none`?Ke&-33:Ke|32,Pe!==`none`&&(Ke|=64),t.formatContext=Ie(De.insertionMode,De.selectedValue,Ke,Ge),t.keyPath=n,a.name!=null&&a.name!==`auto`)Da(e,t,a.children,-1);else{var qe=t.treeContext;t.treeContext=$r(qe,1,0),Fa(e,t,a.children,-1),t.treeContext=qe}t.formatContext=De,t.keyPath=Oe;return;case g:throw Error(r(343));case f:a:if(t.replay!==null){var G=t.keyPath,Je=t.formatContext,Ye=t.row;t.keyPath=n,t.formatContext=Ve(e.resumableState,Je),t.row=null;var Xe=a.children;try{Fa(e,t,Xe,-1)}finally{t.keyPath=G,t.formatContext=Je,t.row=Ye}}else{var Ze=t.keyPath,Qe=t.formatContext,$e=t.row,et=t.blockedBoundary,tt=t.blockedPreamble,nt=t.hoistableState,rt=t.blockedSegment,it=a.fallback,at=a.children,ot=new Set,st=la(e,t.row,ot,2>t.formatContext.insertionMode?{content:Fe(),fallback:Fe()}:null,!1),ct=fa(e,rt.chunks.length,st,t.formatContext,!1,!1);rt.children.push(ct),rt.lastPushedText=!1;var lt=fa(e,0,null,t.formatContext,!1,!1);lt.parentFlushed=!0;var ut=e.trackedPostpones;if(ut!==null){var dt=t.componentStack,ft=[n[0],`Suspense Fallback`,n[2]];if(ut!==null){var pt=[ft[1],ft[2],[],null];ut.workingMap.set(ft,pt),st.tracked={contentKeyPath:n,fallbackNode:pt}}t.blockedSegment=ct,t.blockedPreamble=st.preamble===null?null:st.preamble.fallback,t.keyPath=ft,t.formatContext=Be(e.resumableState,Qe),t.componentStack=ma(dt);try{Fa(e,t,it,-1),ct.lastPushedText&&ct.textEmbedded&&ct.chunks.push(Ue),ct.status=1,Wa(e,et,ct)}catch(t){throw ct.status=e.aborted?3:4,t}finally{t.blockedSegment=rt,t.blockedPreamble=tt,t.keyPath=Ze,t.formatContext=Qe}var mt=ua(e,null,at,-1,st,lt,st.preamble===null?null:st.preamble.content,st.contentState,t.abortSet,n,Ve(e.resumableState,t.formatContext),t.context,t.treeContext,null,dt);pa(mt),e.pingedTasks.push(mt)}else{t.blockedBoundary=st,t.blockedPreamble=st.preamble===null?null:st.preamble.content,t.hoistableState=st.contentState,t.blockedSegment=lt,t.keyPath=n,t.formatContext=Ve(e.resumableState,Qe),t.row=null;try{if(Fa(e,t,at,-1),lt.lastPushedText&<.textEmbedded&<.chunks.push(Ue),lt.status=1,Wa(e,st,lt),Ua(st,lt),st.pendingTasks===0&&st.status===0){if(st.status=1,!ea(e,st)){$e!==null&&--$e.pendingTasks===0&&va(e,$e),e.pendingRootTasks===0&&t.blockedPreamble&&Ya(e);break a}}else $e!==null&&$e.together&&ba(e,$e)}catch(n){if(st.status=4,e.aborted){lt.status=3;var K=e.fatalError}else lt.status=4,K=n;var q=ha(t.componentStack);st.errorDigest=ga(e,K,q),Ma(e,st)}finally{t.blockedBoundary=et,t.blockedPreamble=tt,t.hoistableState=nt,t.blockedSegment=rt,t.keyPath=Ze,t.formatContext=Qe,t.row=$e}var ht=ua(e,null,it,-1,et,ct,st.preamble===null?null:st.preamble.fallback,st.fallbackState,ot,[n[0],`Suspense Fallback`,n[2]],Be(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,ma(t.componentStack));pa(ht),e.pingedTasks.push(ht)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a){var gt={};for(var _t in a)_t!==`ref`&&(gt[_t]=a[_t])}else gt=a;wa(e,t,n,Ca(e,t,n,i.render,gt,y),yi!==0,bi,xi);return;case m:Ta(e,t,n,i.type,a,y);return;case u:var vt=a.children,yt=t.keyPath,bt=a.value,xt=i._currentValue;i._currentValue=bt;var St=Ur,Ct={parent:St,depth:St===null?0:St.depth+1,context:i,parentValue:xt,value:bt};Ur=Ct,t.context=Ct,t.keyPath=n,Da(e,t,vt,-1);var wt=Ur;if(wt===null)throw Error(r(403));wt.context._currentValue=wt.parentValue,t.context=Ur=wt.parent,t.keyPath=yt;return;case l:var Tt=a.children,Et=Tt(i._context._currentValue),Dt=t.keyPath;t.keyPath=n,Da(e,t,Et,-1),t.keyPath=Dt;return;case h:var Ot=i._init,kt=Ot(i._payload);if(e.aborted)throw null;Ta(e,t,n,kt,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function Ea(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=fa(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,Fa(e,t,r,i),s.status=1,Wa(e,o,s),o===null?e.completedRootSegment=s:(Ua(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function Da(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?Ea(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,pa(t),Oa(e,t),t.componentStack=n)}function Oa(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=Vr(s),m=c==null||c===w?o===-1?0:o:c;if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2],y=_[3],b=t.node;t.replay={nodes:v,slots:y,pendingTasks:1};try{if(Ta(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===ai||typeof r.then==`function`||r.message===`Maximum call stack size exceeded`))throw t.node===b?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,c=ha(t.componentStack),b=e,l=t.blockedBoundary,e=e.aborted?e.fatalError:r,c=ga(b,e,c),La(b,l,v,y,e,c)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,Vr(s)||`Unknown`));b:{g=_[5],s=_[2],d=_[3],p=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3],m=t.keyPath;var x=t.formatContext,S=t.row,E=t.replay,D=t.blockedBoundary,O=t.hoistableState,k=l.children;l=l.fallback;var A=new Set,j=la(e,t.row,A,2>t.formatContext.insertionMode?{content:Fe(),fallback:Fe()}:null,!1);j.parentFlushed=!0,j.rootSegmentID=g,t.blockedBoundary=j,t.hoistableState=j.contentState,t.keyPath=c,t.formatContext=Ve(e.resumableState,x),t.row=null,t.replay={nodes:s,slots:d,pendingTasks:1};try{if(Fa(e,t,k,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,e.completedBoundaries.push(j);break b}}catch(n){j.status=4,v=e.aborted?e.fatalError:n,y=ha(t.componentStack),b=ga(e,v,y),j.errorDigest=b,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(j)}finally{t.blockedBoundary=D,t.hoistableState=O,t.replay=E,t.keyPath=m,t.formatContext=x,t.row=S}v=da(e,null,{nodes:p,slots:_,pendingTasks:0},l,-1,D,j.fallbackState,A,[c[0],`Suspense Fallback`,c[2]],Be(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,ma(t.componentStack)),pa(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else Ta(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.aborted)throw null;Da(e,t,n,o);return}if(T(n)){ka(e,t,n,o);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){y=[];do y.push(n.value),n=v.next();while(!n.done);ka(e,t,y,o)}return}if(typeof n.then==`function`)return t.thenableState=null,Da(e,t,Hi(n),o);if(n.$$typeof===u)return Da(e,t,n._currentValue,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=W(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=W(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function ka(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(ka(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===ai||typeof r.then==`function`))throw r;t.replay.pendingTasks--;var u=ha(t.componentStack);n=e;var d=t.blockedBoundary;e=e.aborted?e.fatalError:r,u=ga(n,e,u),La(n,d,i,l,e,u)}t.replay=o,s.splice(c,1);break}}t.keyPath=a}else if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=$r(o,s,i),d=c[i],typeof d==`number`?(Ea(e,t,d,l,i),delete c[i]):Fa(e,t,l,i);t.treeContext=o,t.keyPath=a}else{for(c=0;c<s;c++)i=n[c],t.treeContext=$r(o,s,c),Fa(e,t,i,c);t.treeContext=o,t.keyPath=a}}function Aa(e,t,n){n.status=5,n.rootSegmentID=e.nextSegmentId++;var i=n.tracked;if(i===null||(e=i.contentKeyPath,e===null))throw Error(r(486));i=i.fallbackNode;var a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),po(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function ja(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=Aa(e,t,o);if(o.tracked!==null&&o.tracked.contentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],po(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),po(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function Ma(e,t){e=e.trackedPostpones,e!==null&&(t=t.tracked,t!==null&&(t=t.contentKeyPath,t!==null&&(e=e.workingMap.get(t),e!==void 0&&(e.length=4,e[2]=[],e[3]=null))))}function Na(e,t,n){return da(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Pa(e,t,n){var r=t.blockedSegment,i=fa(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,ua(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function Fa(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return Da(e,t,n,r)}catch(u){if(Ni(),n=u===ai?ci():u,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===ai?Mi():null,e=Na(e,t,r).ping,n.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Yr(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===ai?Mi():null,n=Na(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Yr(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return Da(e,t,n,r)}catch(r){if(Ni(),l.children.length=u,l.chunks.length=d,n=r===ai?ci():r,!e.aborted&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===ai?Mi():null,e=Pa(e,t,n).ping,l.then(e.resolve,e.reject),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Yr(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===ai?Mi():null,l=Pa(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Yr(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Yr(a),n}function Ia(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,Ga(this,t,e.row,n))}function La(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)La(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=la(l,null,new Set,null,!1);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function Ra(e,t){if(e!==t.currentTask){var n=e.blockedBoundary;e=e.blockedSegment,e!==null&&(e.status=3),n!==null&&n.fallbackAbortableTasks.forEach(function(e){return Ra(e,t)})}}function za(e,t,n){if(e!==t.currentTask){var r=e.blockedBoundary,i=e.blockedSegment;if(i===null||i.status===3){var a=ha(e.componentStack),o=Ti(n);if(r===null){if(r=e.replay,r===null){o||t.trackedPostpones===null||i===null?o?(e=Ei(n),ga(t,e,a),t.status!==12&&t.status!==13&&_a(t,e)):(ga(t,n,a),t.status!==12&&t.status!==13&&_a(t,n)):(r=t.trackedPostpones,ga(t,n,a),ja(t,r,e,i),Ga(t,null,e.row,i));return}t.status!==12&&t.status!==13&&(r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(a=ga(t,n,a),La(t,null,r.nodes,r.slots,n,a)),t.pendingRootTasks--,t.pendingRootTasks===0&&Va(t))}else{var s=t.trackedPostpones;if(r.status!==4){if(!o&&s!==null&&i!==null)return ga(t,n,a),ja(t,s,e,i),r.fallbackAbortableTasks.forEach(function(e){return za(e,t,n)}),r.fallbackAbortableTasks.clear(),Ga(t,r,e.row,i);r.status=4,a=ga(t,n,a),r.errorDigest=a,Ma(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,a=r.row,a!==null&&--a.pendingTasks===0&&va(t,a),r.fallbackAbortableTasks.forEach(function(e){return za(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&va(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Ha(t)}}}function Ba(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=Ar(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=ye,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:ye;else break b}}r(a?{Link:a}:{})}}}catch(t){ga(e,t,{})}}function Va(e){e.trackedPostpones===null&&Ba(e,!0),e.trackedPostpones===null&&Ya(e),e=e.onShellReady,e()}function Ha(e){Ba(e,e.trackedPostpones===null||e.completedRootSegment===null||e.completedRootSegment.status!==5),Ya(e),e=e.onAllReady,e()}function Ua(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Ua(e,n)}else e.completedSegments.push(t)}function Wa(e,t,n){if(B!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function Ga(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?va(e,n):n.together&&ba(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&Va(e)}else if(t.pendingTasks--,t.status!==4){if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Ua(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&Lr(n.hoistables,t.contentState),ea(e,t)||(e.allPendingTasks++,t.fallbackAbortableTasks.forEach(Ia,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&va(e,n),e.allPendingTasks--),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.preamble!==null&&Ya(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];Aa(e,n,o),Ga(e,o,null,null)}}e.allPendingTasks++,--t.pendingTasks===0&&va(e,t),e.allPendingTasks--}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Ua(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ba(e,t)}e.allPendingTasks===0&&Ha(e)}function Ka(e){if(!(e.aborted||11<e.status)){var t=Ur,n=he.H;he.H=Wi;var i=he.A;he.A=Ki;var a=sa;sa=e;var o=Gi;Gi=e.resumableState;try{for(var s=e.pingedTasks,c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){a:if(l.replay.pendingTasks!==0){var f=u.currentTask;u.currentTask=l,Yr(l.context);var p=l.node;try{if(typeof l.replay.slots==`number`?Ea(u,l,l.replay.slots,l.node,l.childIndex):Oa(u,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),Ga(u,l.blockedBoundary,l.row,null)}catch(e){Ni();var m=e===ai?ci():e;if(u.aborted){e===ai&&(l.thenableState=Mi()),u.currentTask=f;var h=u;Ra(l,h),l.abortSet.delete(l),za(l,h,h.fatalError)}else{if(typeof m==`object`&&m){if(typeof m.then==`function`){var g=l.ping;m.then(g.resolve,g.reject),l.thenableState=e===ai?Mi():null;break a}if(m.message===`Maximum call stack size exceeded`&&l.node!==p){l.thenableState=null,u.pingedTasks.push(l);break a}}l.replay.pendingTasks--,l.abortSet.delete(l);var _=ha(l.componentStack);h=u;var v=l.blockedBoundary,y=u.aborted?u.fatalError:m,b=l.replay.nodes,x=l.replay.slots,S=ga(h,y,_);La(h,v,b,x,y,S),u.pendingRootTasks--,u.pendingRootTasks===0&&Va(u),u.allPendingTasks--,u.allPendingTasks===0&&Ha(u)}}finally{u.currentTask=f}}}else a:if(h=d,h.status===0){var C=u.currentTask;u.currentTask=l,Yr(l.context);var w=h.children.length,T=h.chunks.length,E=l.node;try{Oa(u,l),h.lastPushedText&&h.textEmbedded&&h.chunks.push(Ue),l.abortSet.delete(l),h.status=1,Wa(u,l.blockedBoundary,h),Ga(u,l.blockedBoundary,l.row,h)}catch(e){Ni(),h.children.length=w,h.chunks.length=T;var D=e===ai?ci():e;if(u.aborted)e===ai&&(l.thenableState=Mi()),u.currentTask=C,h=u,Ra(l,h),l.abortSet.delete(l),za(l,h,h.fatalError);else{if(typeof D==`object`&&D){if(typeof D.then==`function`){h.status=0,l.thenableState=e===ai?Mi():null;var O=l.ping;D.then(O.resolve,O.reject);break a}if(D.message===`Maximum call stack size exceeded`&&l.node!==E){h.status=0,l.thenableState=null,u.pingedTasks.push(l);break a}}var k=ha(l.componentStack);l.abortSet.delete(l),h.status=4;var A=l.blockedBoundary,j=l.row;if(j!==null&&--j.pendingTasks===0&&va(u,j),u.allPendingTasks--,A===null){if(Ti(D)){var M=Ei(D);ga(u,M,k),_a(u,M)}else ga(u,D,k),_a(u,D)}else{var N=ga(u,D,k);if(A.pendingTasks--,A.status!==4){A.status=4,A.errorDigest=N,Ma(u,A);var P=A.row;P!==null&&(u.allPendingTasks++,--P.pendingTasks===0&&va(u,P),u.allPendingTasks--),A.parentFlushed&&u.clientRenderedBoundaries.push(A),u.pendingRootTasks===0&&u.trackedPostpones===null&&A.preamble!==null&&Ya(u)}u.allPendingTasks===0&&Ha(u)}}}finally{u.currentTask=C}}}s.splice(0,c),e.destination!==null&&io(e,e.destination)}catch(t){ga(e,t,{}),_a(e,t)}finally{Gi=o,he.H=n,he.A=i,n===Wi&&Yr(t),sa=a}}}function qa(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Ja(e,t.children[i],n)||r;return r}function Ja(e,t,n){var i=t.boundary;if(i===null)return qa(e,t,n);var a=i.preamble;if(a===null)return!1;switch(i.status){case 1:if(It(e.renderState,a.content),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return qa(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return It(e.renderState,a.fallback),qa(e,t,n);default:return!0}}function Ya(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=Ja(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Xa(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,I(t,zt),I(t,e.placeholderPrefix),e=R(i.toString(16)),I(t,e),te(t,Bt);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)I(t,o[s]);a=Qa(e,t,a,i)}for(;s<o.length-1;s++)I(t,o[s]);return s<o.length&&(a=te(t,o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Za=0;function Qa(e,t,n,i){var a=n.boundary;if(a===null)return Xa(e,t,n,i);if(n.boundary=null,a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&va(e,o),a=a.errorDigest,te(t,Kt),I(t,Jt),a!=null&&(I(t,Xt),I(t,R(ue(a))),I(t,Yt)),te(t,Zt),Xa(e,t,n,i)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Qt(t,e.renderState,a.rootSegmentID),i&&Lr(i,a.fallbackState),Xa(e,t,n,i);else if(!no&&ea(e,a)&&(Za+a.byteSize>e.progressiveChunkSize||Rr(a.contentState,ro)||a.defer))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Qt(t,e.renderState,a.rootSegmentID),Xa(e,t,n,i);else{if(Za+=a.byteSize,i&&Lr(i,a.contentState),n=a.row,n!==null&&ea(e,a)&&--n.pendingTasks===0&&va(e,n),te(t,Ut),n=a.completedSegments,n.length!==1)throw Error(r(391));Qa(e,t,n[0],i)}return te(t,qt)}function $a(e,t,n,r){return xn(t,e.renderState,n.parentFormatContext,n.id),Qa(e,t,n,r),Sn(t,n.parentFormatContext)}function eo(e,t,n){Za=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)to(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&ea(e,n)&&--r.pendingTasks===0&&va(e,r),tr(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist,o=!!(r.instructions&128);return e.stylesToHoist=!1,I(t,e.startInlineScript),I(t,lt),a?(!(r.instructions&4)&&(r.instructions|=4,I(t,In)),!(r.instructions&2)&&(r.instructions|=2,I(t,Dn)),o&&!(r.instructions&256)&&(r.instructions|=256,I(t,On)),r.instructions&8?I(t,jn):(r.instructions|=8,I(t,An))):(!(r.instructions&2)&&(r.instructions|=2,I(t,Dn)),o&&!(r.instructions&256)&&(r.instructions|=256,I(t,On)),I(t,kn)),r=R(i.toString(16)),I(t,e.boundaryPrefix),I(t,r),I(t,Mn),I(t,e.segmentPrefix),I(t,r),a?(I(t,Nn),yr(t,n)):I(t,Pn),n=te(t,Fn),Lt(t,e)&&n}function to(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return $a(e,t,i,a)}return o===n.rootSegmentID?$a(e,t,i,a):($a(e,t,i,a),n=e.resumableState,e=e.renderState,I(t,e.startInlineScript),I(t,lt),n.instructions&1?I(t,wn):(n.instructions|=1,I(t,Cn)),I(t,e.segmentPrefix),o=R(o.toString(16)),I(t,o),I(t,Tn),I(t,e.placeholderPrefix),I(t,o),t=te(t,En),t)}var no=!1,ro=!1;function io(e,t){ee=new Uint8Array(2048),F=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Za=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)I(t,c[u]);if(l)for(u=0;u<l.length;u++)I(t,l[u]);else I(t,jt(`head`)),I(t,lt)}else if(l)for(u=0;u<l.length;u++)I(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)I(t,d[u]);d.length=0,o.preconnects.forEach(nr,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)I(t,f[u]);f.length=0,o.fontPreloads.forEach(nr,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(nr,t),o.highImagePreloads.clear(),be=o,o.styles.forEach(ur,t),be=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)I(t,p[u]);p.length=0,o.bootstrapScripts.forEach(nr,t),o.scripts.forEach(nr,t),o.scripts.clear(),o.bulkPreloads.forEach(nr,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)I(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)Qa(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&I(t,Ft(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)I(t,v[i]);ro=!0,Qa(e,t,r,null),ro=!1,e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,I(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;I(t,pr),I(t,R(ue(x))),I(t,Ze)}I(t,lt),I(t,Rt),te(t,Se)}}Lt(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)I(t,C[r]);C.length=0,S.preconnects.forEach(nr,t),S.preconnects.clear(),S.fontPreloads.forEach(nr,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(nr,t),S.highImagePreloads.clear(),S.styles.forEach(fr,t),S.scripts.forEach(nr,t),S.scripts.clear(),S.bulkPreloads.forEach(nr,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)I(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;I(S,O.startInlineScript),I(S,lt),D.instructions&4?I(S,Rn):(D.instructions|=4,I(S,Ln)),I(S,O.boundaryPrefix),I(S,R(k.toString(16))),I(S,zn),A!=null&&(I(S,Bn),A==null?I(S,Vn):I(S,R(Wn(A))));var j=te(S,Hn);if(!j){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var M=e.completedBoundaries;for(n=0;n<M.length;n++)if(!eo(e,t,M[n])){e.destination=null,n++,M.splice(0,n);return}M.splice(0,n),ne(t),ee=new Uint8Array(2048),F=0,no=!0;var N=e.partialBoundaries;for(n=0;n<N.length;n++){var P=N[n];a:{T=e,E=t,Za=P.byteSize;var L=P.completedSegments;for(j=0;j<L.length;j++)if(!to(T,E,P,L[j])){j++,L.splice(0,j);var z=!1;break a}L.splice(0,j);var B=P.row;B!==null&&B.together&&P.pendingTasks===1&&(B.pendingTasks===1?ya(T,B,B.hoistables):B.pendingTasks--),z=tr(E,P.contentState,T.renderState)}if(!z){e.destination=null,n++,N.splice(0,n);return}}N.splice(0,n),no=!1;var V=e.completedBoundaries;for(n=0;n<V.length;n++)if(!eo(e,t,V[n])){e.destination=null,n++,V.splice(0,n);return}V.splice(0,n)}}finally{no=!1,n=e.postponedState,n!==null&&(n.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&I(t,Ft(`body`)),n.hasHtml&&I(t,Ft(`html`)),ne(t),lo(e),e.status=13,t.close(),e.destination=null):ne(t)}}function ao(e){e.flushScheduled=e.destination!==null,P(function(){return Ka(e)}),j(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&Ba(e,e.pendingRootTasks===0)})}function oo(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,j(function(){var t=e.destination;t?io(e,t):e.flushScheduled=!1}))}function so(e,t){if(e.status===12)e.status=13,e=e.fatalError,Ti(e)&&(e=Ei(e)),V(t,e);else if(e.status!==13&&e.destination===null){e.destination=t;try{io(e,t)}catch(t){ga(e,t,{}),_a(e,t)}}}function co(e,t){try{if(0<t.size){var n=e.fatalError;t.forEach(function(t){return za(t,e,n)}),t.clear()}e.destination!==null&&io(e,e.destination)}catch(t){ga(e,t,{}),_a(e,t)}}function lo(e){e=e.renderLifetimeController,e!==null&&e.abort(`The render ended.`)}function uo(e,t){if(t.aborted)fo(e,t.reason);else{var n=new AbortController;e.renderLifetimeController=n,t.addEventListener(`abort`,function(){fo(e,t.reason)},{signal:n.signal})}}function fo(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){lo(e);var n=typeof t==`object`&&!!t&&t.$$typeof===x;e.aborted=!0,t=n?wi(t):t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t,e.fatalError=t;var i=e.abortableTasks;i.forEach(function(t){return Ra(t,e)}),j(function(){return co(e,i)})}}function po(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),po(i,t[0],n)),i[2].push(e)}}function mo(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;var n=e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null;if(n){var r=e.nextSegmentId,i=t.rootSlots,a=e.resumableState;a.bootstrapScriptContent=void 0,a.bootstrapScripts=void 0,a.bootstrapModules=void 0}else{r=0,i=-1,a=e.resumableState;var o=e.renderState;a.nextFormID=0,a.hasBody=!1,a.hasHtml=!1,a.unknownResources={font:o.resets.font},a.dnsResources=o.resets.dns,a.connectResources=o.resets.connect,a.imageResources=o.resets.image,a.styleResources=o.resets.style,a.scriptResources={},a.moduleUnknownResources={},a.moduleScriptResources={},a.instructions=0}return t={nextSegmentId:r,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:i},n&&(e.postponedState=t),t}function ho(){var e=t.version;if(e!==`19.3.1`)throw Error(r(527,e,`19.3.1`))}ho(),ho(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=Pe(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=ia(e,o,Ne(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),Le(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,t?t.onBrowserBailout:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){so(s,e)},cancel:function(e){s.destination=null,fo(s,e)}},{highWaterMark:0});e={postponed:mo(s),prelude:e},n(e)},void 0,void 0,r);t&&t.signal&&uo(s,t.signal),ao(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=Pe(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=ra(e,l,Ne(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),Le(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,t?t.onBrowserBailout:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){so(u,e)},cancel:function(e){u.destination=null,fo(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.formState:void 0);t&&t.signal&&uo(u,t.signal),ao(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=aa(e,t,Ne(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,n?n.onBrowserBailout:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){so(c,e)},cancel:function(e){c.destination=null,fo(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a);n&&n.signal&&uo(c,n.signal),ao(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=oa(e,t,Ne(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,n?n.onBrowserBailout:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){so(a,e)},cancel:function(e){a.destination=null,fo(a,e)}},{highWaterMark:0});e={postponed:mo(a),prelude:e},r(e)},void 0,void 0,i);n&&n.signal&&uo(a,n.signal),ao(a)})},e.version=`19.3.1`})),qJ=(0,tt((e=>{var t=GJ(),n=KJ();e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToReadableStream=n.renderToReadableStream,e.resume=n.resume}))().renderToStaticMarkup)((0,q.jsx)(wp,{size:14,"aria-hidden":`true`})),JJ=()=>(0,q.jsx)(wp,{size:14,"aria-hidden":`true`}),YJ={"todo-blocking":`kw kw-todo-blocking`,todo:`kw kw-todo`,confirm:`kw kw-confirm`,unseen:`kw kw-confirm`,answer:`kw kw-answer`},XJ={"todo-blocking":{title:`Blocking question`,lead:`No check is generated for this until you decide.`,steps:[`Accept the sentence above: click the X button to delete this whole TODO block.`,`Decide yourself: type your answer after "Answer:".`],titleClass:`text-seal-glow`},todo:{title:`Open question`,lead:`The sentence above is a suggestion and is already used.`,steps:[`Accept it: click the X button to delete this whole TODO block.`,`Disagree: type your answer after "Answer:".`],titleClass:`text-gold-glow`},confirm:{title:`Needs QA confirmation`,lead:`Seen by the AI, not verified by a person.`,steps:[`Correct: click the X button to remove this marker.`,`Wrong: fix the sentence, then remove this marker.`],titleClass:`text-qing-glow`},unseen:{title:`Not checked on the page`,lead:`The AI could not verify this.`,steps:[`Check it on the page yourself.`,`Then click the X button to remove this marker, or fix the sentence first.`],titleClass:`text-qing-glow`},answer:{title:`Your answer`,lead:`Empty means no answer: the question stays open.`,steps:[`Type your answer here: it replaces the sentence above.`,`Click the X button to clear what you typed.`,`To accept the sentence instead: leave this empty and delete the TODO block.`],titleClass:`text-jade-glow`}},ZJ=e=>({class:YJ[e],"data-kw":e}),QJ=e=>String.raw`(?:\u{${e}}\uFE0F?[ \t]*)?`,$J=[String.raw`(?<blocking>${QJ(`1F6AB`)}\bto[-_]?dos?\s*\[blocking\])`,String.raw`(?<todo>${QJ(`2753`)}\bto[-_]?dos?\b(?:\s*\[non-blocking\])?)`,String.raw`(?<confirm>${QJ(`1F50D`)}(?:\bto be confirmed(?:\s+by\s+QA)?\b|\bTBC\b|\bTBD\b|\bneeds?\s+confirmation\b))`,String.raw`(?<unseen>${QJ(`1F441`)}\bnot observed\b)`,String.raw`(?<answer>(?<=^[ \t]*(?:(?:[-*+>]|\d+\.)[ \t]+)*)${QJ(`270D`)}\bAnswer:)`].join(`|`),eY=()=>new RegExp($J,`gimu`);function tY(e){return e?.blocking===void 0?e?.confirm===void 0?e?.unseen===void 0?e?.answer===void 0?`todo`:`answer`:`unseen`:`confirm`:`todo-blocking`}function nY(e){let t=[],n=0;for(let r of e.matchAll(eY()))r[0]!==``&&(r.index>n&&t.push({text:e.slice(n,r.index),kind:null}),t.push({text:r[0],kind:tY(r.groups)}),n=r.index+r[0].length);return n<e.length&&t.push({text:e.slice(n),kind:null}),t}var rY={"todo-blocking":`Accept the sentence above: delete this question block`,todo:`Accept the sentence above: delete this question block`,confirm:`Confirmed: remove this marker`,unseen:`Checked: remove this marker`,answer:`Clear your answer`},iY=/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,aY=/^[ \t]*(?:(?:[-*+>]|\d+\.)[ \t]+)*$/,oY=e=>iY.exec(e)?.[0].length??0,sY=e=>e.length-e.trimStart().length;function cY(e,t){let n=t===0?0:e.lastIndexOf(`
|
|
291
|
+
`,t-1)+1,r=e.indexOf(`
|
|
292
|
+
`,t);return{from:n,to:r===-1?e.length:r}}function lY(e,t){let n=sY(e.slice(t.from,t.to)),r=t.to;for(;r<e.length;){let t=cY(e,r+1),i=e.slice(t.from,t.to);if(i.trim()===``||sY(i)<=n)break;r=t.to}return r}function uY(e,t){let n=lY(e,t);return n<e.length?{from:t.from,to:n+1}:{from:Math.max(0,t.from-1),to:n}}function dY(e,t,n,r){let i=e.slice(t.from,n),a=e.slice(r,t.to),o=/\([ \t]*$/.exec(i),s=/^[ \t]*\)/.exec(a);if(o&&s){let e=i.slice(0,o.index),n=aY.test(e)?0:/[ \t]*$/.exec(e)[0].length;return{from:t.from+o.index-n,to:r+s[0].length}}let c=/^[ \t]*[;,][ \t]*/.exec(a);if(c)return{from:n,to:r+c[0].length};let l=/[ \t]*[;,][ \t]*$/.exec(i);if(l&&/^[ \t]*(?:[)\].:!?]|$)/.test(a))return{from:n-l[0].length,to:r};let u=/[ \t]+$/.exec(i);if(u&&!aY.test(i))return{from:n-u[0].length,to:r};let d=/^[ \t]+/.exec(a);return d?{from:n,to:r+d[0].length}:{from:n,to:r}}function fY(e,t,n,r){let i=cY(e,t),a=rY[r];if(r===`answer`){let t=lY(e,i);return e.slice(n,i.to).trim()!==``||t>i.to?{range:{from:n,to:t},label:a}:null}return r===`todo-blocking`||r===`todo`?aY.test(e.slice(i.from,t))?{range:uY(e,i),label:a}:null:{range:dY(e,i,t,n),label:a}}function pY(e,t,n,r){if(t<oY(e))return null;let i=eY();i.lastIndex=t;let a=i.exec(e);return!a||a.index!==t||a[0].length!==n-t||tY(a.groups)!==r?null:fY(e,t,n,r)}function mY(e){let t=[],n=oY(e);for(let r of e.matchAll(eY())){if(r[0]===``)continue;let i=tY(r.groups),a=r.index+r[0].length;t.push({from:r.index,to:a,kind:i,action:r.index<n?null:fY(e,r.index,a,i)})}return t}function hY(e,t,n,r){let i=pY(e.state.doc.toString(),t,n,r);return i?(e.dispatch({changes:{from:i.range.from,to:i.range.to,insert:``},userEvent:`delete.keyword`}),!0):!1}var gY=h.define(G.processingInstruction),_Y=A([{tag:G.heading,class:`tok-heading`},{tag:G.strong,class:`tok-strong`},{tag:G.emphasis,class:`tok-em`},{tag:G.quote,class:`tok-quote`},{tag:G.link,class:`tok-link`},{tag:G.url,class:`tok-url`},{tag:G.monospace,class:`tok-code`},{tag:G.labelName,class:`tok-label`},{tag:G.contentSeparator,class:`tok-mark`},{tag:gY,class:`tok-list-mark`},{tag:G.processingInstruction,class:`tok-mark`},{tag:G.meta,class:`tok-mark`},{tag:G.propertyName,class:`tok-property`},{tag:[G.comment,G.docComment],class:`tok-comment`},{tag:[G.keyword,G.controlKeyword,G.operatorKeyword,G.modifier,G.definitionKeyword],class:`tok-keyword`},{tag:[G.string,G.special(G.string),G.regexp],class:`tok-string`},{tag:[G.number,G.bool,G.null,G.atom],class:`tok-number`},{tag:[G.function(G.variableName),G.function(G.propertyName),G.definition(G.variableName)],class:`tok-function`},{tag:[G.typeName,G.className,G.namespace],class:`tok-type`},{tag:[G.tagName,G.angleBracket],class:`tok-tag`},{tag:G.attributeName,class:`tok-property`},{tag:[G.operator,G.punctuation,G.separator,G.bracket],class:`tok-punct`},{tag:G.invalid,class:`tok-invalid`}]),vY=class extends k{kind;from;to;constructor(e,t,n){super(),this.kind=e,this.from=t,this.to=n}eq(e){return e.kind===this.kind&&e.from===this.from&&e.to===this.to}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=`kw-remove kw-remove-${this.kind}`,t.dataset.kwRemove=this.kind,t.setAttribute(`aria-label`,rY[this.kind]),t.title=rY[this.kind],t.innerHTML=qJ,t.addEventListener(`mousedown`,e=>e.preventDefault()),t.addEventListener(`click`,n=>{n.preventDefault();let r=e.posAtDOM(t),i=mY(e.state.doc.toString()).find(e=>e.to===r);i&&hY(e,i.from,i.to,i.kind)}),t}ignoreEvent(){return!0}};function yY(e){let t=[];for(let{from:n,to:r,kind:i,action:a}of mY(e.state.doc.toString())){let{class:e,"data-kw":o}=ZJ(i);t.push(_.mark({class:e,attributes:{"data-kw":o}}).range(n,r)),a&&t.push(_.widget({widget:new vY(i,n,r),side:1}).range(r))}return _.set(t,!0)}var bY=z.fromClass(class{decorations;constructor(e){this.decorations=yY(e)}update(e){e.docChanged&&(this.decorations=yY(e.view))}},{decorations:e=>e.decorations}),xY=`inkstone-editor`,SY=S.define(),CY=w.define({create:()=>_.none,update(e,t){let n=e.map(t.changes);for(let e of t.effects)e.is(SY)&&(n=e.value===null?_.none:wY(t.state.doc,e.value));return n},provide:e=>L.decorations.from(e)});function wY(e,{from:t,to:n}){let r=e.lineAt(Tp(t,0,e.length)).number,i=e.lineAt(Tp(n,0,e.length)).number,a=[];for(let t=r;t<=i;t++)a.push(_.line({class:`cm-flash`}).range(e.line(t).from));return _.set(a,!0)}var TY=S.define(),EY=w.define({create:()=>_.none,update(e,t){let n=e.map(t.changes);for(let e of t.effects)e.is(TY)&&(n=e.value===null?_.none:_.set([_.mark({class:`cm-kw-flash`}).range(e.value.from,e.value.to)]));return n},provide:e=>L.decorations.from(e)}),DY=U.matchFilename(WJ,`spec.ts`),OY=()=>DY?.load()??Promise.resolve(null),kY=[D(_Y)],AY=[LJ({content:Dq({base:dq,codeLanguages:WJ,extensions:{props:[y({ListMark:gY})]}})}),D(_Y),bY,CY,EY],jY=[Dq({base:dq,codeLanguages:WJ,extensions:{props:[y({ListMark:gY})]}}),D(_Y)];function MY({value:e,onChange:t,ariaLabel:n,placeholder:r,maxHeight:i=220,singleLine:a=!1,autoFocus:o=!1,onEnter:s}){let c=(0,K.useRef)(s);c.current=s;let l=(0,K.useMemo)(()=>{let e=[...jY,L.lineWrapping,L.contentAttributes.of({"aria-label":n})];return a&&e.push(E.highest(Be.of([{key:`Enter`,run:()=>(c.current?.(),!0)}]))),e},[n,a]);return(0,q.jsx)(`div`,{className:`${xY} inkstone-field w-full overflow-hidden rounded border border-line-mid bg-white`,style:{"--field-max-height":`${i}px`},children:(0,q.jsx)(pR,{value:e,onChange:e=>t(a?e.replace(/\r?\n/g,` `):e),theme:`none`,autoFocus:o,extensions:l,basicSetup:{lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1,highlightSelectionMatches:!1,bracketMatching:!1,closeBrackets:!1,autocompletion:!1,rectangularSelection:!1,crosshairCursor:!1,drawSelection:!0},placeholder:r})})}function NY(){var e=[...arguments];return(0,K.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var PY=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function FY(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function IY(e){return`nodeType`in e}function LY(e){return e?FY(e)?e:IY(e)?e.ownerDocument?.defaultView??window:window:window}function RY(e){let{Document:t}=LY(e);return e instanceof t}function zY(e){return!FY(e)&&e instanceof LY(e).HTMLElement}function BY(e){return e instanceof LY(e).SVGElement}function VY(e){return e?FY(e)?e.document:IY(e)?RY(e)?e:zY(e)||BY(e)?e.ownerDocument:document:document:document}var HY=PY?K.useLayoutEffect:K.useEffect;function UY(e){let t=(0,K.useRef)(e);return HY(()=>{t.current=e}),(0,K.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function WY(){let e=(0,K.useRef)(null);return[(0,K.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,K.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function GY(e,t){t===void 0&&(t=[e]);let n=(0,K.useRef)(e);return HY(()=>{n.current!==e&&(n.current=e)},t),n}function KY(e,t){let n=(0,K.useRef)();return(0,K.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function qY(e){let t=UY(e),n=(0,K.useRef)(null);return[n,(0,K.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function JY(e){let t=(0,K.useRef)();return(0,K.useEffect)(()=>{t.current=e},[e]),t.current}var YY={};function XY(e,t){return(0,K.useMemo)(()=>{if(t)return t;let n=YY[e]==null?0:YY[e]+1;return YY[e]=n,e+`-`+n},[e,t])}function ZY(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var QY=ZY(1),$Y=ZY(-1);function eX(e){return`clientX`in e&&`clientY`in e}function tX(e){if(!e)return!1;let{KeyboardEvent:t}=LY(e.target);return t&&e instanceof t}function nX(e){if(!e)return!1;let{TouchEvent:t}=LY(e.target);return t&&e instanceof t}function rX(e){if(nX(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return eX(e)?{x:e.clientX,y:e.clientY}:null}var iX=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[iX.Translate.toString(e),iX.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),aX=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function oX(e){return e.matches(aX)?e:e.querySelector(aX)}var sX={display:`none`};function cX(e){let{id:t,value:n}=e;return K.createElement(`div`,{id:t,style:sX},n)}function lX(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return K.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function uX(){let[e,t]=(0,K.useState)(``);return{announce:(0,K.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var dX=(0,K.createContext)(null);function fX(e){let t=(0,K.useContext)(dX);(0,K.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function pX(){let[e]=(0,K.useState)(()=>new Set),t=(0,K.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,K.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var mX={draggable:`
|
|
293
|
+
To pick up a draggable item, press the space bar.
|
|
294
|
+
While dragging, use the arrow keys to move the item.
|
|
295
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
296
|
+
`},hX={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function gX(e){let{announcements:t=hX,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=mX}=e,{announce:a,announcement:o}=uX(),s=XY(`DndLiveRegion`),[c,l]=(0,K.useState)(!1);if((0,K.useEffect)(()=>{l(!0)},[]),fX((0,K.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=K.createElement(K.Fragment,null,K.createElement(cX,{id:r,value:i.draggable}),K.createElement(lX,{id:s,announcement:o}));return n?(0,rc.createPortal)(u,n):u}var _X;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(_X||={});function vX(){}function yX(e,t){return(0,K.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function bX(){var e=[...arguments];return(0,K.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var xX=Object.freeze({x:0,y:0});function SX(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function CX(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function wX(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function TX(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function EX(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function DX(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var OX=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=DX(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=SX(DX(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(CX)},kX=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=TX(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=TX(r),o=i.reduce((e,t,r)=>e+SX(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(CX)};function AX(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var jX=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=AX(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(wX)};function MX(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function NX(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:xX}function PX(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var FX=PX(1);function IX(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function LX(e,t,n){let r=IX(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var RX={ignoreTransform:!1};function zX(e,t){t===void 0&&(t=RX);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=LY(e).getComputedStyle(e);t&&(n=LX(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function BX(e){return zX(e,{ignoreTransform:!0})}function VX(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function HX(e,t){return t===void 0&&(t=LY(e).getComputedStyle(e)),t.position===`fixed`}function UX(e,t){t===void 0&&(t=LY(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function WX(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(RY(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!zY(i)||BY(i)||n.includes(i))return n;let a=LY(e).getComputedStyle(i);return i!==e&&UX(i,a)&&n.push(i),HX(i,a)?n:r(i.parentNode)}return e?r(e):n}function GX(e){let[t]=WX(e,1);return t??null}function KX(e){return!PY||!e?null:FY(e)?e:IY(e)?RY(e)||e===VY(e).scrollingElement?window:zY(e)?e:null:null}function qX(e){return FY(e)?e.scrollX:e.scrollLeft}function JX(e){return FY(e)?e.scrollY:e.scrollTop}function YX(e){return{x:qX(e),y:JX(e)}}var XX;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(XX||={});function ZX(e){return!PY||!e?!1:e===document.scrollingElement}function QX(e){let t={x:0,y:0},n=ZX(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var $X={x:.2,y:.2};function eZ(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=$X);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=QX(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=XX.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=XX.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=XX.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=XX.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function tZ(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function nZ(e){return e.reduce((e,t)=>QY(e,YX(t)),xX)}function rZ(e){return e.reduce((e,t)=>e+qX(t),0)}function iZ(e){return e.reduce((e,t)=>e+JX(t),0)}function aZ(e,t){if(t===void 0&&(t=zX),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);GX(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var oZ=[[`x`,[`left`,`right`],rZ],[`y`,[`top`,`bottom`],iZ]],sZ=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=WX(t),r=nZ(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of oZ)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},cZ=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function lZ(e){let{EventTarget:t}=LY(e);return e instanceof t?e:VY(e)}function uZ(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var dZ;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(dZ||={});function fZ(e){e.preventDefault()}function pZ(e){e.stopPropagation()}var mZ;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(mZ||={});var hZ={start:[mZ.Space,mZ.Enter],cancel:[mZ.Esc],end:[mZ.Space,mZ.Enter,mZ.Tab]},gZ=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case mZ.Right:return{...n,x:n.x+25};case mZ.Left:return{...n,x:n.x-25};case mZ.Down:return{...n,y:n.y+25};case mZ.Up:return{...n,y:n.y-25}}},_Z=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new cZ(VY(t)),this.windowListeners=new cZ(LY(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(dZ.Resize,this.handleCancel),this.windowListeners.add(dZ.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(dZ.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&aZ(n),t(xX)}handleKeyDown(e){if(tX(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=hZ,coordinateGetter:a=gZ,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:xX;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=$Y(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=QX(n),p=tZ(n),m={x:Math.min(i===mZ.Right?p.right-p.width/2:p.right,Math.max(i===mZ.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===mZ.Down?p.bottom-p.height/2:p.bottom,Math.max(i===mZ.Down?p.top:p.top+p.height/2,u.y))},h=i===mZ.Right&&!s||i===mZ.Left&&!c,g=i===mZ.Down&&!l||i===mZ.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===mZ.Right&&e<=d.x||i===mZ.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===mZ.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===mZ.Down&&e<=d.y||i===mZ.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===mZ.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,QY($Y(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};_Z.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=hZ,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function vZ(e){return!!(e&&`distance`in e)}function yZ(e){return!!(e&&`delay`in e)}var bZ=class{constructor(e,t,n){n===void 0&&(n=lZ(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=VY(i),this.documentListeners=new cZ(this.document),this.listeners=new cZ(n),this.windowListeners=new cZ(LY(i)),this.initialCoordinates=rX(r)??xX,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(dZ.Resize,this.handleCancel),this.windowListeners.add(dZ.DragStart,fZ),this.windowListeners.add(dZ.VisibilityChange,this.handleCancel),this.windowListeners.add(dZ.ContextMenu,fZ),this.documentListeners.add(dZ.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(yZ(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(vZ(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(dZ.Click,pZ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(dZ.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=rX(e)??xX,s=$Y(n,o);if(!t&&a){if(vZ(a)){if(a.tolerance!=null&&uZ(s,a.tolerance))return this.handleCancel();if(uZ(s,a.distance))return this.handleStart()}if(yZ(a)&&uZ(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===mZ.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},xZ={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},SZ=class extends bZ{constructor(e){let{event:t}=e,n=VY(t.target);super(e,xZ,n)}};SZ.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var CZ={move:{name:`mousemove`},end:{name:`mouseup`}},wZ;(function(e){e[e.RightClick=2]=`RightClick`})(wZ||={});var TZ=class extends bZ{constructor(e){super(e,CZ,VY(e.event.target))}};TZ.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==wZ.RightClick&&(r?.({event:n}),!0)}}];var EZ={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},DZ=class extends bZ{constructor(e){super(e,EZ)}static setup(){return window.addEventListener(EZ.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(EZ.move.name,e)};function e(){}}};DZ.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var OZ;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(OZ||={});var kZ;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(kZ||={});function AZ(e){let{acceleration:t,activator:n=OZ.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=kZ.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=MZ({delta:d,disabled:!a}),[m,h]=WY(),g=(0,K.useRef)({x:0,y:0}),_=(0,K.useRef)({x:0,y:0}),v=(0,K.useMemo)(()=>{switch(n){case OZ.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case OZ.DraggableRect:return i}},[n,i,c]),y=(0,K.useRef)(null),b=(0,K.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,K.useMemo)(()=>s===kZ.TreeOrder?[...l].reverse():l,[s,l]);(0,K.useEffect)(()=>{if(!a||!l.length||!v)h();else{for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=eZ(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()}},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var jZ={x:{[XX.Backward]:!1,[XX.Forward]:!1},y:{[XX.Backward]:!1,[XX.Forward]:!1}};function MZ(e){let{delta:t,disabled:n}=e,r=JY(t);return KY(e=>{if(n||!r||!e)return jZ;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[XX.Backward]:e.x[XX.Backward]||i.x===-1,[XX.Forward]:e.x[XX.Forward]||i.x===1},y:{[XX.Backward]:e.y[XX.Backward]||i.y===-1,[XX.Forward]:e.y[XX.Forward]||i.y===1}}},[n,t,r])}function NZ(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return KY(e=>t==null?null:r??e??null,[r,t])}function PZ(e,t){return(0,K.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var FZ;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(FZ||={});var IZ;(function(e){e.Optimized=`optimized`})(IZ||={});var LZ=new Map;function RZ(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,K.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,K.useRef)(e),d=g(),f=GY(d),p=(0,K.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,K.useRef)(null),h=KY(t=>{if(d&&!n)return LZ;if(!t||t===LZ||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new sZ(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,K.useEffect)(()=>{u.current=e},[e]),(0,K.useEffect)(()=>{d||p()},[n,d]),(0,K.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,K.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case FZ.Always:return!1;case FZ.BeforeDragging:return n;default:return!n}}}function zZ(e,t){return KY(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function BZ(e,t){return zZ(e,t)}function VZ(e){let{callback:t,disabled:n}=e,r=UY(t),i=(0,K.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,K.useEffect)(()=>()=>i?.disconnect(),[i]),i}function HZ(e){let{callback:t,disabled:n}=e,r=UY(t),i=(0,K.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,K.useEffect)(()=>()=>i?.disconnect(),[i]),i}function UZ(e){return new sZ(zX(e),e)}function WZ(e,t,n){t===void 0&&(t=UZ);let[r,i]=(0,K.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=VZ({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=HZ({callback:a});return HY(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function GZ(e){return NX(e,zZ(e))}var KZ=[];function qZ(e){let t=(0,K.useRef)(e),n=KY(n=>e?n&&n!==KZ&&e&&t.current&&e.parentNode===t.current.parentNode?n:WX(e):KZ,[e]);return(0,K.useEffect)(()=>{t.current=e},[e]),n}function JZ(e){let[t,n]=(0,K.useState)(null),r=(0,K.useRef)(e),i=(0,K.useCallback)(e=>{let t=KX(e.target);t&&n(e=>e?(e.set(t,YX(t)),new Map(e)):null)},[]);return(0,K.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=KX(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,YX(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{KX(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,K.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>QY(e,t),xX):nZ(e):xX,[e,t])}function YZ(e,t){t===void 0&&(t=[]);let n=(0,K.useRef)(null);return(0,K.useEffect)(()=>{n.current=null},t),(0,K.useEffect)(()=>{let t=e!==xX;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?$Y(e,n.current):xX}function XZ(e){(0,K.useEffect)(()=>{if(!PY)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function ZZ(e,t){return(0,K.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function QZ(e){return(0,K.useMemo)(()=>e?VX(e):null,[e])}var $Z=[];function eQ(e,t){t===void 0&&(t=zX);let[n]=e,r=QZ(n?LY(n):null),[i,a]=(0,K.useState)($Z);function o(){a(()=>e.length?e.map(e=>ZX(e)?r:new sZ(t(e),e)):$Z)}let s=HZ({callback:o});return HY(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function tQ(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return zY(t)?t:e}function nQ(e){let{measure:t}=e,[n,r]=(0,K.useState)(null),i=HZ({callback:(0,K.useCallback)(e=>{for(let{target:n}of e)if(zY(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=qY((0,K.useCallback)(e=>{let n=tQ(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,K.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var rQ=[{sensor:SZ,options:{}},{sensor:_Z,options:{}}],iQ={current:{}},aQ={draggable:{measure:BX},droppable:{measure:BX,strategy:FZ.WhileDragging,frequency:IZ.Optimized},dragOverlay:{measure:zX}},oQ=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},sQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new oQ,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vX},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:aQ,measureDroppableContainers:vX,windowRect:null,measuringScheduled:!1},cQ={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:vX,draggableNodes:new Map,over:null,measureDroppableContainers:vX},lQ=(0,K.createContext)(cQ),uQ=(0,K.createContext)(sQ);function dQ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new oQ}}}function fQ(e,t){switch(t.type){case _X.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _X.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _X.DragEnd:case _X.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _X.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new oQ(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case _X.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new oQ(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case _X.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new oQ(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function pQ(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,K.useContext)(lQ),a=JY(r),o=JY(n?.id);return(0,K.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!tX(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=oX(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function mQ(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function hQ(e){return(0,K.useMemo)(()=>({draggable:{...aQ.draggable,...e?.draggable},droppable:{...aQ.droppable,...e?.droppable},dragOverlay:{...aQ.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function gQ(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,K.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;HY(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=NX(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=GX(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var _Q=(0,K.createContext)({...xX,scaleX:1,scaleY:1}),vQ;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(vQ||={});var yQ=(0,K.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=rQ,collisionDetection:o=jX,measuring:s,modifiers:c,...l}=e,[u,d]=(0,K.useReducer)(fQ,void 0,dQ),[f,p]=pX(),[m,h]=(0,K.useState)(vQ.Uninitialized),g=m===vQ.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,K.useRef)({initial:null,translated:null}),C=(0,K.useMemo)(()=>_==null?null:{id:_,data:x?.data??iQ,rect:S},[_,x]),w=(0,K.useRef)(null),[T,E]=(0,K.useState)(null),[D,O]=(0,K.useState)(null),k=GY(l,Object.values(l)),A=XY(`DndDescribedBy`,t),j=(0,K.useMemo)(()=>b.getEnabled(),[b]),M=hQ(s),{droppableRects:N,measureDroppableContainers:P,measuringScheduled:ee}=RZ(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),F=NZ(v,_),I=(0,K.useMemo)(()=>D?rX(D):null,[D]),te=Te(),ne=BZ(F,M.draggable.measure);gQ({activeNode:_==null?null:v.get(_),config:te.layoutShiftCompensation,initialRect:ne,measure:M.draggable.measure});let L=WZ(F,M.draggable.measure,ne),R=WZ(F?F.parentElement:null),z=(0,K.useRef)({activatorEvent:null,active:null,activeNode:F,collisionRect:null,collisions:null,droppableRects:N,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),B=b.getNodeFor(z.current.over?.id),V=nQ({measure:M.dragOverlay.measure}),re=V.nodeRef.current??F,ie=g?V.rect??L:null,ae=!!(V.nodeRef.current&&V.rect),H=GZ(ae?null:L),oe=QZ(re?LY(re):null),se=qZ(g?B??F:null),ce=eQ(se),le=mQ(c,{transform:{x:y.x-H.x,y:y.y-H.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:L,containerNodeRect:R,draggingNodeRect:ie,over:z.current.over,overlayNodeRect:V.rect,scrollableAncestors:se,scrollableAncestorRects:ce,windowRect:oe}),ue=I?QY(I,y):null,de=JZ(se),fe=YZ(de),pe=YZ(de,[L]),me=QY(le,fe),he=ie?FX(ie,le):null,ge=C&&he?o({active:C,collisionRect:he,droppableRects:N,droppableContainers:j,pointerCoordinates:ue}):null,_e=EX(ge,`id`),[ve,ye]=(0,K.useState)(null),be=MX(ae?le:QY(le,pe),ve?.rect??null,L),xe=(0,K.useRef)(null),Se=(0,K.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:z,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,rc.unstable_batchedUpdates)(()=>{r?.(i),h(vQ.Initializing),d({type:_X.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(xe.current),O(a)})},onMove(e){d({type:_X.DragMove,coordinates:e})},onEnd:s(_X.DragEnd),onCancel:s(_X.DragCancel)});xe.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=z.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===_X.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=_X.DragCancel)}w.current=null,(0,rc.unstable_batchedUpdates)(()=>{d({type:e}),h(vQ.Uninitialized),ye(null),E(null),O(null),xe.current=null;let t=e===_X.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),U=PZ(a,(0,K.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,Se(n,t))},[v,Se]));XZ(a),HY(()=>{L&&m===vQ.Initializing&&h(vQ.Initialized)},[L,m]),(0,K.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=z.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:me.x,y:me.y},over:i};(0,rc.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[me.x,me.y]),(0,K.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=z.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(_e),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,rc.unstable_batchedUpdates)(()=>{ye(s),a?.(c),f({type:`onDragOver`,event:c})})},[_e]),HY(()=>{z.current={activatorEvent:D,active:C,activeNode:F,collisionRect:he,collisions:ge,droppableRects:N,draggableNodes:v,draggingNode:re,draggingNodeRect:ie,droppableContainers:b,over:ve,scrollableAncestors:se,scrollAdjustedTranslate:me},S.current={initial:ie,translated:he}},[C,F,ge,he,v,re,ie,N,b,ve,se,me]),AZ({...te,delta:y,draggingRect:he,pointerCoordinates:ue,scrollableAncestors:se,scrollableAncestorRects:ce});let Ce=(0,K.useMemo)(()=>({active:C,activeNode:F,activeNodeRect:L,activatorEvent:D,collisions:ge,containerNodeRect:R,dragOverlay:V,draggableNodes:v,droppableContainers:b,droppableRects:N,over:ve,measureDroppableContainers:P,scrollableAncestors:se,scrollableAncestorRects:ce,measuringConfiguration:M,measuringScheduled:ee,windowRect:oe}),[C,F,L,D,ge,R,V,v,b,N,ve,P,se,ce,M,ee,oe]),we=(0,K.useMemo)(()=>({activatorEvent:D,activators:U,active:C,activeNodeRect:L,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:ve,measureDroppableContainers:P}),[D,U,C,L,d,A,v,ve,P]);return K.createElement(dX.Provider,{value:p},K.createElement(lQ.Provider,{value:we},K.createElement(uQ.Provider,{value:Ce},K.createElement(_Q.Provider,{value:be},i)),K.createElement(pQ,{disabled:n?.restoreFocus===!1})),K.createElement(gX,{...n,hiddenTextDescribedById:A}));function Te(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),bQ=(0,K.createContext)(null),xQ=`button`,SQ=`Draggable`;function CQ(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=XY(SQ),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,K.useContext)(lQ),{role:p=xQ,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,K.useContext)(g?_Q:bQ),[v,y]=qY(),[b,x]=qY(),S=ZZ(o,t),C=GY(n);return HY(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,K.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===xQ?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function wQ(){return(0,K.useContext)(uQ)}var TQ=`Droppable`,EQ={timeout:25};function DQ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=XY(TQ),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,K.useContext)(lQ),u=(0,K.useRef)({disabled:n}),d=(0,K.useRef)(!1),f=(0,K.useRef)(null),p=(0,K.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...EQ,...i},_=GY(h??r),v=HZ({callback:(0,K.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)):d.current=!0},[g]),disabled:m||!o}),[y,b]=qY((0,K.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),d.current=!1),e&&v.observe(e))},[v])),x=GY(t);return(0,K.useEffect)(()=>{v&&y.current&&(v.disconnect(),d.current=!1,v.observe(y.current))},[y,v]),(0,K.useEffect)(()=>(s({type:_X.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:x}}),()=>s({type:_X.UnregisterDroppable,key:a,id:r})),[r]),(0,K.useEffect)(()=>{n!==u.current.disabled&&(s({type:_X.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:y,over:c,setNodeRef:b}}function OQ(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function kQ(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function AQ(e){return e!==null&&e>=0}function jQ(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function MQ(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var NQ=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=OQ(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},PQ={scaleX:1,scaleY:1},FQ=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:t<a?e.top+e.height-(o.top+o.height):e.top-o.top,...PQ}:null}let s=IQ(i,r,t);return r>t&&r<=a?{x:0,y:-o.height-s,...PQ}:r<t&&r>=a?{x:0,y:o.height+s,...PQ}:{x:0,y:0,...PQ}};function IQ(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}var LQ=`Sortable`,RQ=K.createContext({activeIndex:-1,containerId:LQ,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:NQ,disabled:{draggable:!1,droppable:!1}});function zQ(e){let{children:t,id:n,items:r,strategy:i=NQ,disabled:a=!1}=e,{active:o,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=wQ(),d=XY(LQ,n),f=s.rect!==null,p=(0,K.useMemo)(()=>r.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),m=o!=null,h=o?p.indexOf(o.id):-1,g=l?p.indexOf(l.id):-1,_=(0,K.useRef)(p),v=!jQ(p,_.current),y=g!==-1&&h===-1||v,b=MQ(a);HY(()=>{v&&m&&u(p)},[v,p,m,u]),(0,K.useEffect)(()=>{_.current=p},[p]);let x=(0,K.useMemo)(()=>({activeIndex:h,containerId:d,disabled:b,disableTransforms:y,items:p,overIndex:g,useDragOverlay:f,sortedRects:kQ(p,c),strategy:i}),[h,d,b.draggable,b.droppable,y,p,g,c,f,i]);return K.createElement(RQ.Provider,{value:x},t)}var BQ=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return OQ(n,r,i).indexOf(t)},VQ=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},HQ={duration:200,easing:`ease`},UQ=`transform`,WQ=iX.Transition.toString({property:UQ,duration:0,easing:`linear`}),GQ={roleDescription:`sortable`};function KQ(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,K.useState)(null),s=(0,K.useRef)(n);return HY(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=zX(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,K.useEffect)(()=>{a&&o(null)},[a]),a}function qQ(e){let{animateLayoutChanges:t=VQ,attributes:n,disabled:r,data:i,getNewIndex:a=BQ,id:o,strategy:s,resizeObserverConfig:c,transition:l=HQ}=e,{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:h,overIndex:g,useDragOverlay:_,strategy:v}=(0,K.useContext)(RQ),y=JQ(r,p),b=u.indexOf(o),x=(0,K.useMemo)(()=>({sortable:{containerId:d,index:b,items:u},...i}),[d,i,b,u]),S=(0,K.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:C,node:w,isOver:T,setNodeRef:E}=DQ({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...c}}),{active:D,activatorEvent:O,activeNodeRect:k,attributes:A,setNodeRef:j,listeners:M,isDragging:N,over:P,setActivatorNodeRef:ee,transform:F}=CQ({id:o,data:x,attributes:{...GQ,...n},disabled:y.draggable}),I=NY(E,j),te=!!D,ne=te&&!m&&AQ(f)&&AQ(g),L=!_&&N,R=ne?(L&&ne?F:null)??(s??v)({rects:h,activeNodeRect:k,activeIndex:f,overIndex:g,index:b}):null,z=AQ(f)&&AQ(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):b,B=D?.id,V=(0,K.useRef)({activeId:B,items:u,newIndex:z,containerId:d}),re=u!==V.current.items,ie=t({active:D,containerId:d,isDragging:N,isSorting:te,id:o,index:b,items:u,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:l,wasDragging:V.current.activeId!=null}),ae=KQ({disabled:!ie,index:b,node:w,rect:C});return(0,K.useEffect)(()=>{te&&V.current.newIndex!==z&&(V.current.newIndex=z),d!==V.current.containerId&&(V.current.containerId=d),u!==V.current.items&&(V.current.items=u)},[te,z,d,u]),(0,K.useEffect)(()=>{if(B===V.current.activeId)return;if(B!=null&&V.current.activeId==null){V.current.activeId=B;return}let e=setTimeout(()=>{V.current.activeId=B},50);return()=>clearTimeout(e)},[B]),{active:D,activeIndex:f,attributes:A,data:x,rect:C,index:b,newIndex:z,items:u,isOver:T,isSorting:te,isDragging:N,listeners:M,node:w,overIndex:g,over:P,setNodeRef:I,setActivatorNodeRef:ee,setDroppableNodeRef:E,setDraggableNodeRef:j,transform:ae??R,transition:H()};function H(){if(ae||re&&V.current.newIndex===b)return WQ;if(!(L&&!tX(O)||!l)&&(te||ie))return iX.Transition.toString({...l,property:UQ})}}function JQ(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function YQ(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var XQ=[mZ.Down,mZ.Right,mZ.Up,mZ.Left],ZQ=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(XQ.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case mZ.Down:r.top<a.top&&t.push(n);break;case mZ.Up:r.top>a.top&&t.push(n);break;case mZ.Left:r.left>a.left&&t.push(n);break;case mZ.Right:r.left<a.left&&t.push(n)}});let c=kX({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=EX(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=WX(c).some((e,t)=>s[t]!==e),i=QQ(e,t),a=$Q(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:$Y(u,l)}}}};function QQ(e,t){return!YQ(e)||!YQ(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function $Q(e,t){return!YQ(e)||!YQ(t)||!QQ(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var e$={ready:`bg-card text-ink ring-cheng/45 hover:bg-cheng-bg`,incomplete:`bg-gold-bg text-gold-deep ring-gold-deep/30 hover:bg-gold-bg/70`,missing:`bg-seal-bg text-seal-deep ring-seal/35 hover:bg-seal-bg/70`},t$=e=>{if(!e)return`missing`;let t=N_.some(t=>!e.fields[t]);return e.blocking||t?`incomplete`:`ready`},n$=e=>[...new Set([...e.matchAll(/\[(T\d+)\]/g)].map(e=>e[1]))];function r$({id:e,size:t=`sm`,className:n=``}){return(0,q.jsx)(`span`,{className:[`inline-flex shrink-0 items-center rounded-sm bg-cheng font-mono font-bold tracking-wide text-white`,t===`md`?`px-2 py-1 text-sm`:`px-1.5 py-0.5 text-[0.7rem]`,n].filter(Boolean).join(` `),children:e})}function i$({id:e,card:t,onOpen:n}){return(0,q.jsxs)(`button`,{type:`button`,title:t?`Open the card of ${e}: ${t.name}`:`Open the card of ${e}`,onClick:()=>n(e),className:`group inline-flex cursor-pointer items-center gap-1.5 rounded-sm py-0.5 pr-1.5 pl-1 text-xs font-medium ring-1 ring-inset transition duration-150 hover:shadow-paper focus-visible:ring-2 focus-visible:ring-cheng/60 focus-visible:outline-none ${e$[t$(t)]}`,children:[(0,q.jsx)(r$,{id:e}),(0,q.jsx)(`span`,{className:`underline-offset-2 group-hover:underline group-hover:decoration-dotted`,children:t?.name??`no target card`}),(0,q.jsx)(zd,{size:12,className:`shrink-0 text-ink-3 transition-colors group-hover:text-ink-2`,"aria-hidden":`true`})]})}function a$({text:e,targets:t,onOpen:n}){let r=n$(e);return r.length===0?null:(0,q.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:r.map(e=>(0,q.jsx)(i$,{id:e,card:t.get(e),onOpen:n},e))})}function o$({bullet:e,doc:t,targets:n,onOpenTarget:r,onChange:i,onRemove:a}){let{attributes:o,listeners:s,setNodeRef:c,transform:l,transition:u,isDragging:d}=qQ({id:String(e.line)}),f=n$(e.text);return(0,q.jsxs)(`li`,{ref:c,style:{transform:iX.Transform.toString(l),transition:u},className:`px-2 py-1.5 ${d?`rounded bg-warm opacity-60 shadow-paper`:``}`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-1`,children:[(0,q.jsx)(`button`,{...o,...s,"aria-label":`Drag to reorder`,title:`Drag to reorder (Space to lift, arrows to move, Space to drop)`,className:`mt-1.5 shrink-0 cursor-grab rounded p-0.5 text-ink-3 transition-colors hover:bg-warm hover:text-ink-2 focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none active:cursor-grabbing`,children:(0,q.jsx)(Af,{size:14,"aria-hidden":`true`})}),(0,q.jsx)(MY,{value:e.text,onChange:n=>i(Qv(t.text,e,n)),ariaLabel:`Bullet at line ${e.line}`,maxHeight:180}),(0,q.jsx)(`button`,{className:`${Y(`danger`)} shrink-0 px-1.5 py-1`,title:`Delete this bullet`,"aria-label":`Delete this bullet`,onClick:a,children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})})]}),f.length>0||e.questionLines.length>0?(0,q.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-1 pl-6`,children:[e.questionLines.length>0?(0,q.jsxs)(ay,{tone:`amber`,children:[e.questionLines.length,` open `,e.questionLines.length===1?`question`:`questions`]}):null,f.map(e=>(0,q.jsx)(i$,{id:e,card:n.get(e),onOpen:r},e))]}):null]})}function s$({name:e,help:t,doc:n,onOpenTarget:r,onChange:i,defaultOpen:a=!0}){let o=yv(n.text,e),s=new Map(n.targets.map(e=>[e.id,e])),[c,l]=(0,K.useState)(null),[u,d]=(0,K.useState)(``),f=bX(yX(SZ,{activationConstraint:{distance:6}}),yX(_Z,{coordinateGetter:ZQ})),p=t=>{let{active:r,over:a}=t;if(!a||r.id===a.id)return;let s=o.findIndex(e=>String(e.line)===r.id),c=o.findIndex(e=>String(e.line)===a.id);s>=0&&c>=0&&i(ty(n.text,e,s,c))},m=()=>{u.trim()!==``&&(i($v(n.text,e,u)),d(``))};return(0,q.jsxs)(CV,{title:e,help:t,storage:t,defaultOpen:a,count:o.length,tone:`blue`,children:[o.length===0?(0,q.jsx)(wV,{text:`No bullet yet.`}):null,o.length>0?(0,q.jsx)(yQ,{sensors:f,collisionDetection:OX,onDragEnd:p,children:(0,q.jsx)(zQ,{items:o.map(e=>String(e.line)),strategy:FQ,children:(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:o.map(e=>(0,q.jsx)(o$,{bullet:e,doc:n,targets:s,onOpenTarget:r,onChange:i,onRemove:()=>l(e)},e.line))})})}):null,(0,q.jsxs)(`form`,{className:`flex items-end gap-1 border-t border-line bg-warm px-2 py-1.5`,onSubmit:e=>{e.preventDefault(),m()},children:[(0,q.jsx)(`input`,{value:u,onChange:e=>d(e.target.value),placeholder:`Write a bullet and press Enter`,"aria-label":`Add a bullet to ${e}`,className:`${hy} w-full py-1`}),(0,q.jsxs)(`button`,{className:`${Y()} shrink-0 gap-1 py-1`,disabled:u.trim()===``,children:[(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),`Add`]})]}),c?(0,q.jsx)(AA,{title:`Delete this bullet?`,onClose:()=>l(null),children:(0,q.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,q.jsx)(`p`,{className:`rounded border border-line bg-warm px-2 py-1.5 text-ink`,children:c.text}),c.questionLines.length>0?(0,q.jsxs)(`p`,{className:`rounded border border-seal/40 bg-seal-bg px-2 py-1.5 text-seal-deep`,children:[c.questionLines.length,` `,c.questionLines.length===1?`open question hangs`:`open questions hang`,` under this bullet and`,` `,c.questionLines.length===1?`is`:`are`,` deleted with it.`]}):null,(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:()=>l(null),autoFocus:!0,children:`Cancel`}),(0,q.jsx)(`button`,{type:`button`,className:Y(`stop`),onClick:()=>{i(ey(n.text,c)),l(null)},children:`Delete bullet`})]})]})}):null]})}function c$(e,t,n){let r=e.position?.start.offset,i=e.position?.end.offset;if(r===void 0||i===void 0)return t.map(()=>null);let a=n.slice(r,i),o=[],s=0,c=0;for(let n of t){if(a===e.value)o.push(r+c);else{let e=a.indexOf(n.text,s);o.push(e===-1?null:r+e),e!==-1&&(s=e+n.text.length)}c+=n.text.length}return o}function l$(e,t){if(!e.children)return;let n=[];for(let r of e.children){if(r.type!==`text`||r.value===void 0){l$(r,t),n.push(r);continue}let e=nY(r.value),i=c$(r,e,t.source);e.forEach((e,r)=>{if(e.kind===null){n.push({type:`text`,value:e.text});return}let a=i[r],o=a===null?null:a+t.offset,s=o===null?null:o+e.text.length;n.push({type:`element`,tagName:`mark`,properties:{className:YJ[e.kind].split(` `),dataKw:e.kind,...o!==null&&s!==null&&{dataKwFrom:o,dataKwTo:s}},children:[{type:`text`,value:e.text}]}),t.removable&&o!==null&&s!==null&&pY(t.fullText,o,s,e.kind)&&n.push({type:`element`,tagName:`button`,properties:{type:`button`,className:[`kw-remove`,`kw-remove-${e.kind}`],dataKwRemove:e.kind,dataKwFrom:o,dataKwTo:s,ariaLabel:rY[e.kind],title:rY[e.kind]},children:[]})})}e.children=n}function u$(e={}){return(t,n)=>{l$(t,{source:typeof n.value==`string`?n.value:``,offset:e.offset??0,fullText:e.fullText??``,removable:e.removable??!0})}}var d$=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`pre`,`hr`,`tr`,`li`]),f$=new Set([`ul`,`ol`]),p$=(e,t)=>e.type===`element`&&t.has(e.tagName??``);function m$(e,t){for(let n of e.children??[]){if(n.position&&p$(n,d$)){let e=n.position.start.line,r=n.position.end.line,i=!0;if(n.tagName===`li`){let t=n.children??[];t.some(e=>p$(e,new Set([`p`])))&&(i=!1);let a=t.find(e=>p$(e,f$)&&e.position);a?.position&&(r=Math.max(e,a.position.start.line-1))}i&&(n.properties={...n.properties,dataLineStart:e+t,dataLineEnd:r+t})}m$(n,t)}}function h$(e={}){let t=e.offset??0;return e=>m$(e,t)}function g$({content:e,lineOffset:t=0,keywords:n,clickable:r=!1,className:i=``}){let a=[];return n&&a.push([u$,{offset:n.charOffset,fullText:n.fullText,removable:n.removable}]),a.push([h$,{offset:t}]),(0,q.jsx)(`div`,{className:`prose max-w-none prose-table:text-sm prose-code:before:content-none prose-code:after:content-none ${i}`,children:(0,q.jsx)(mE,{remarkPlugins:[Fk],rehypePlugins:a,components:{button:({node:e,children:t,...n})=>(0,q.jsx)(`button`,{...n,children:(0,q.jsx)(JJ,{})}),p:({node:e,children:t,...n})=>(0,q.jsx)(`p`,{...n,className:`-mx-1 rounded px-1 ${r?`hover:bg-warm`:``}`,children:t})},children:e})})}function _$({body:e,line:t,onRevealLine:n}){return(0,q.jsx)(`div`,{className:`px-3 py-2 text-sm ${n?`cursor-pointer`:``}`,title:n?`Click a paragraph to edit it in the source`:void 0,onClick:n?e=>{let t=e.target;if(t.closest(`a`))return;let r=t.closest(`[data-line-start]`);if(!r)return;let i=Number(r.getAttribute(`data-line-start`));Number.isInteger(i)&&n(i)}:void 0,children:(0,q.jsx)(g$,{content:e,lineOffset:t-1,keywords:{charOffset:0,fullText:``,removable:!1},clickable:!!n})})}function v$({name:e,help:t,doc:n,onRevealLine:r}){let i=vv(n.text,e);return i?(0,q.jsx)(CV,{title:e,help:t,storage:t,defaultOpen:!1,children:(0,q.jsx)(_$,{body:i.body,line:i.line,onRevealLine:r})}):null}function y$({doc:e}){let t=vv(e.text,`Source`);return t?(0,q.jsxs)(CV,{title:`Source`,help:`source`,storage:`source`,defaultOpen:!1,children:[(0,q.jsx)(`p`,{className:`px-3 pt-2 text-xs text-ink-3`,children:`Original notes, verbatim. Do not edit this table; it only exists so a reviewer can check what became of each line.`}),(0,q.jsx)(_$,{body:t.body,line:t.line})]}):null}function b$({label:e,values:t,options:n,onChange:r,placeholder:i,allowNew:a=!0,keepOne:o=!1,keepOneHint:s=`At least one value is needed; add another one first.`,emptyText:c=`Nothing matches.`}){let[l,u]=(0,K.useState)(``),[d,f]=(0,K.useState)(!1),[p,m]=(0,K.useState)(null),[h,g]=(0,K.useState)(0),_=(0,K.useRef)(null),v=(0,K.useRef)(null),y=(0,K.useRef)(null),b=(0,K.useId)(),x=l.trim().toLowerCase(),S=n.filter(e=>!t.includes(e)),C=(x===``?S:S.filter(e=>e.includes(x))).slice(0,8).map(e=>({value:e,isNew:!1})),w=l.trim(),T=a&&w!==``&&E_.test(w)&&!t.includes(w)&&!n.includes(w)?[...C,{value:w,isNew:!0}]:C,E=p!==null,D=E&&(T.length>0||w!==``);(0,K.useEffect)(()=>{g(0)},[l,t.length]),(0,K.useEffect)(()=>{if(!p)return;let e=e=>{let t=e.target;_.current?.contains(t)||y.current?.contains(t)||m(null)},t=e=>{e.key===`Escape`&&m(null)},n=()=>m(null);return window.addEventListener(`mousedown`,e),window.addEventListener(`keydown`,t),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`mousedown`,e),window.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[p]);let O=()=>{if(p)return;let e=_.current?.getBoundingClientRect();e&&m({left:e.left,top:e.bottom+4,width:Math.max(e.width,224)})},k=e=>{let i=e.split(`,`).map(e=>e.trim()).filter(e=>e!==``),o=[...t],s=[];for(let e of i)n.includes(e)||a&&E_.test(e)?o.includes(e)||o.push(e):s.push(e);return o.length!==t.length&&r(o),s.join(`, `)},A=e=>{t.includes(e)||r([...t,e]),u(``),f(!1),O()},j=()=>{if(D&&T.length>0){A(T[Math.min(h,T.length-1)].value);return}let e=k(l);u(e),f(e!==``)},M=e=>{let t=e.lastIndexOf(`,`);if(t===-1){u(e),f(!1),O();return}let n=k(e.slice(0,t)),r=e.slice(t+1).trimStart();u(n===``?r:`${n}, ${r}`),f(n!==``)},N=e=>r(t.filter(t=>t!==e));return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{ref:_,onClick:e=>{e.target===e.currentTarget&&v.current?.focus()},className:[`flex min-h-8 flex-wrap items-center gap-1 rounded border bg-white px-1.5 py-1 transition-colors`,d?`border-seal focus-within:border-seal focus-within:ring-2 focus-within:ring-seal/25`:`border-line-mid focus-within:border-theme focus-within:ring-2 focus-within:ring-theme/25`].join(` `),children:[t.map(e=>{let n=o&&t.length===1;return(0,q.jsxs)(`span`,{title:n?s:void 0,className:`inline-flex h-6 items-center gap-0.5 rounded-sm bg-warm pr-0.5 pl-1.5 font-mono text-xs text-ink-2 ring-1 ring-line-mid ring-inset`,children:[e,(0,q.jsx)(`button`,{type:`button`,"aria-label":`Remove ${e}`,title:n?void 0:`Remove ${e}`,disabled:n,onClick:()=>N(e),className:`rounded p-0.5 text-ink-3 transition-colors hover:text-seal-deep focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-40`,children:(0,q.jsx)(wp,{size:12,"aria-hidden":`true`})})]},e)}),(0,q.jsx)(`input`,{ref:v,value:l,role:`combobox`,"aria-label":e,"aria-autocomplete":`list`,"aria-expanded":D,"aria-controls":b,"aria-activedescendant":D&&T.length>0?`${b}-${Math.min(h,T.length-1)}`:void 0,"aria-invalid":d||void 0,autoComplete:`off`,spellCheck:!1,placeholder:i,onChange:e=>M(e.target.value),onFocus:O,onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!E){O();return}if(T.length===0)return;g(t=>(t+(e.key===`ArrowDown`?1:-1)+T.length)%T.length)}else if(e.key===`Enter`)e.preventDefault(),j();else if(e.key===`,`){e.preventDefault();let t=k(l);u(t),f(t!==``),O()}else e.key===`Escape`?E?(e.preventDefault(),m(null)):l!==``&&(e.preventDefault(),u(``),f(!1)):e.key===`Backspace`&&l===``&&t.length>0&&!(o&&t.length===1)&&(e.preventDefault(),N(t[t.length-1]))},onBlur:()=>{if(m(null),l!==``){let e=l.trim();n.includes(e)&&!t.includes(e)&&r([...t,e]),u(``),f(!1)}},className:`h-6 min-w-[6rem] flex-1 bg-transparent font-mono text-xs text-ink placeholder:text-ink-3 focus:outline-none`})]}),D&&p?(0,rc.createPortal)((0,q.jsx)(`div`,{ref:y,id:b,role:`listbox`,"aria-label":e,style:{left:p.left,top:p.top,width:p.width},className:`card-popup fixed z-50 max-h-56 overflow-auto p-1`,children:T.length===0?(0,q.jsx)(`p`,{className:`px-2 py-1 text-xs text-ink-3`,children:c}):T.map((e,t)=>(0,q.jsxs)(`button`,{type:`button`,id:`${b}-${t}`,role:`option`,"aria-selected":t===Math.min(h,T.length-1),onMouseDown:e=>e.preventDefault(),onClick:()=>A(e.value),onMouseEnter:()=>g(t),className:[`flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left font-mono text-xs transition-colors`,t===Math.min(h,T.length-1)?`bg-theme-bg text-theme-ink`:`text-ink`].join(` `),children:[(0,q.jsx)(`span`,{className:`truncate`,children:e.value}),e.isNew?(0,q.jsx)(`span`,{className:`ml-auto shrink-0 font-sans text-[0.7rem] text-ink-3`,children:`new`}):null]},`${e.isNew?`new`:`known`}:${e.value}`))}),document.body):null]})}function x$({label:e,envs:t,selected:n,onChange:r,blockedHint:i,keepOne:a=!1,keepOneHint:o=`At least one environment is needed.`}){let s=n.filter(e=>!t.includes(e)),c=e=>{if(n.includes(e)){if(a&&n.length<=1)return;r(n.filter(t=>t!==e))}else r([...n,e])};return(0,q.jsxs)(`span`,{role:`group`,"aria-label":e,className:`flex flex-wrap items-center gap-1`,children:[t.map(e=>{let t=n.includes(e),r=t&&a&&n.length<=1;return(0,q.jsxs)(`button`,{type:`button`,"aria-pressed":t,title:r?o:void 0,onClick:()=>c(e),className:[`inline-flex h-6 items-center gap-1 rounded-sm px-1.5 text-xs font-bold tracking-wider transition-colors`,`focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,t?oy(e):`bg-card text-ink-2 ring-1 ring-line-mid ring-inset hover:bg-warm hover:text-ink`,r?`cursor-not-allowed`:`cursor-pointer`].join(` `),children:[t?(0,q.jsx)(au,{size:12,"aria-hidden":`true`}):null,e.toUpperCase()]},e)}),s.map(e=>(0,q.jsx)(`button`,{type:`button`,"aria-pressed":!0,title:i?.(e),onClick:()=>r(n.filter(t=>t!==e)),className:`inline-flex h-6 items-center gap-1 rounded-sm bg-seal-bg px-1.5 text-xs font-bold tracking-wider text-seal-deep ring-1 ring-seal/35 ring-inset transition-colors hover:bg-seal/15 focus-visible:ring-2 focus-visible:ring-seal/40 focus-visible:outline-none`,children:e.toUpperCase()},`blocked:${e}`))]})}var S$=new Set([`id`,`title`,`login`,`suites`,`writes`,`writes-note`,`envs`]),C$=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`):[];function w$({doc:e,onChange:t,caseId:n,envs:r,suites:i}){let a=e.frontMatter;if(!a)return(0,q.jsx)(CV,{title:`Case settings`,help:`settings`,storage:`settings`,children:(0,q.jsx)(wV,{text:`This case has no front matter block. Add it in the source.`})});if(a.problem)return(0,q.jsx)(CV,{title:`Case settings`,help:`settings`,storage:`settings`,children:(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 px-3 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),a.problem,` Fix it in the source; the form cannot read the keys.`]})});let o=a.data,s=typeof o.title==`string`?o.title:``,c=o.login===`none`?`none`:`required`,l=o.suites===void 0?o.priority===void 0?[]:[String(o.priority)]:C$(o.suites),u=C$(o.writes),d=o.envs===void 0?null:C$(o.envs),f=d===null?r:r.filter(e=>d.includes(e)),p=typeof o[`writes-note`]==`string`?o[`writes-note`]:``,m=Tv(n,o,r,`this case`).map(e=>e.replace(/^this case: /,``)),h=a.entries.filter(e=>!S$.has(e.key)),g=(n,r)=>t(Yv(e.text,n,r)),_=n=>{let r=Yv(e.text,`writes`,n);t(n.length>0&&o[`writes-note`]===void 0?Yv(r,`writes-note`,``):r)},v=n=>r.every(e=>n.includes(e))?t(Xv(e.text,`envs`)):g(`envs`,r.filter(e=>n.includes(e))),y=`flex items-start gap-1 font-mono text-xs leading-snug text-ink-3`,b=`grid grid-cols-[8.5rem_1fr] items-start gap-2 border-t border-line px-3 py-2 first:border-t-0`,x=`text-xs text-ink-3`;return(0,q.jsx)(CV,{title:`Case settings`,help:`settings`,storage:`settings`,tone:m.length>0?`red`:`gray`,count:m.length>0?m.length:void 0,children:(0,q.jsxs)(`div`,{children:[m.length>0?(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 border-b border-seal/40 bg-seal-bg px-3 py-1.5 text-xs text-seal-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),m[0]]}):null,(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`id`,(0,q.jsx)(SV,{help:`field.id`})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,q.jsx)(`code`,{className:`font-mono`,children:n}),(0,q.jsx)(`span`,{className:`text-xs text-ink-3`,children:`rename with the pencil next to the file name`})]})]}),(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`title`,(0,q.jsx)(SV,{help:`field.title`})]}),(0,q.jsx)(MY,{value:s,onChange:e=>g(`title`,e),ariaLabel:`title`,placeholder:`One line: what this case proves`,singleLine:!0,maxHeight:80})]}),(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`login`,(0,q.jsx)(SV,{help:`field.login`})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,children:[`required`,`none`].map(e=>(0,q.jsx)(`button`,{type:`button`,"aria-pressed":c===e,onClick:()=>g(`login`,e),className:`px-3 py-0.5 text-xs ${c===e?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`,children:e},e))}),(0,q.jsx)(`span`,{className:`text-xs text-ink-3`,children:`none = public page, no saved session`})]})]}),(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`runs in`,(0,q.jsx)(SV,{help:`field.runs-in`})]}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(x$,{label:`runs in`,envs:r,selected:f,onChange:v,keepOne:!0,keepOneHint:`A case runs in at least one environment; press another one first.`}),(0,q.jsx)(`p`,{className:x,children:`All pressed means every environment, including ones added later.`})]})]}),(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`suites`,(0,q.jsx)(SV,{help:`field.suites`})]}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(b$,{label:`suites`,values:l,options:i,onChange:e=>g(`suites`,e),placeholder:`Add a suite…`,keepOne:!0,keepOneHint:`A case needs at least one suite; add another one first.`,emptyText:`No suite matches; a name uses lowercase letters, digits and dashes.`}),(0,q.jsx)(`p`,{className:x,children:`The case runs in every suite it lists.`})]})]}),(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`writes data in`,(0,q.jsx)(SV,{help:`field.writes`})]}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(x$,{label:`writes data in`,envs:f,selected:u,onChange:_,blockedHint:e=>`The case does not run in ${e}: press it under "runs in", or click to remove it here.`}),(0,q.jsx)(`p`,{className:x,children:`Nothing pressed means read-only: the case changes no test data.`})]})]}),u.length>0?(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsxs)(`span`,{className:y,children:[`what it changes`,(0,q.jsx)(`span`,{className:`text-seal-deep`,children:`*`}),(0,q.jsx)(SV,{help:`field.writes-note`})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(MY,{value:p,onChange:e=>g(`writes-note`,e),ariaLabel:`writes-note`,placeholder:`What the case creates or changes, e.g. one [asrun] draft deleted at the end.`,maxHeight:160}),(0,q.jsx)(`p`,{className:`mt-0.5 text-xs text-ink-3`,children:`Required once a write environment is pressed. Whoever confirms a run that writes data reads this first.`})]})]}):null,h.length>0?(0,q.jsxs)(`div`,{className:b,children:[(0,q.jsx)(`span`,{className:y,children:`other keys`}),(0,q.jsx)(`ul`,{className:`space-y-0.5`,children:h.map(e=>(0,q.jsxs)(`li`,{className:`font-mono text-xs text-ink-3`,children:[e.key,`: `,(0,q.jsx)(`span`,{className:`text-ink-2`,children:String(e.value)})]},e.key))})]}):null]})})}var T$=/\.(png|jpe?g|webp)$/i;function E$(e){let t=e.trim().replace(/\\/g,`/`);return/^none\b/i.test(t)||!t.startsWith(`.explore/`)||t.includes(`..`)||!T$.test(t)?null:`/explore-files?file=${encodeURIComponent(t)}`}var D$=[`what`,`where`,`identified by`,`not`,`ready when`],O$={what:`What`,where:`Where`,"identified by":`Identified by`,not:`Not`,"ready when":`Ready when`},k$=e=>O$[e]??e,A$=e=>[...D$,...Object.keys(e.fields).filter(e=>!D$.includes(e))].filter(t=>e.fields[t]).map(t=>({label:k$(t),value:e.fields[t]}));function j$({profile:e,file:t,alt:n}){let[r,i]=(0,K.useState)(!1),a=E$(t);return(0,q.jsxs)(`figure`,{className:`min-w-0 space-y-1`,children:[(0,q.jsxs)(`figcaption`,{className:`text-xs text-ink-2`,children:[`Reference `,e,(0,q.jsx)(`span`,{className:`mt-0.5 block font-mono break-all text-[0.7rem] text-ink-3`,children:t})]}),a===null?null:r?(0,q.jsx)(`p`,{className:`rounded-sm border border-gold-deep/40 bg-gold-bg px-2 py-1 text-xs text-gold-deep`,children:`This screenshot is not on this machine (a fresh checkout has none).`}):(0,q.jsx)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,className:`block`,title:`Open the screenshot at full size`,children:(0,q.jsx)(`img`,{src:a,alt:n,onError:()=>i(!0),className:`max-h-72 w-auto rounded-sm border border-line-mid bg-white object-contain`})})]})}function M$({id:e,card:t,onClose:n,onRevealLine:r}){let i=t?N_.filter(e=>!t.fields[e]):[],a=Object.entries(t?.references??{});return(0,q.jsx)(AA,{wide:!0,title:(0,q.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(r$,{id:e,size:`md`}),(0,q.jsx)(`span`,{children:t?t.name===``?`unnamed target`:t.name:`no target card`})]}),onClose:n,footer:(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[t?(0,q.jsx)(`button`,{type:`button`,className:Y(),title:`Open this card in the editor to edit it`,onClick:()=>{r(t.line),n()},children:`Open in editor`}):null,(0,q.jsx)(`button`,{type:`button`,className:Y(`primary`),onClick:n,autoFocus:!0,children:`Close`})]}),children:t?(0,q.jsxs)(`div`,{className:`space-y-4 text-sm`,children:[t.blocking||i.length>0?(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[t.blocking?(0,q.jsx)(ay,{tone:`red`,children:`an open question blocks this card`}):null,i.length>0?(0,q.jsxs)(ay,{tone:`amber`,children:[`missing `,i.map(k$).join(`, `)]}):null]}):null,(0,q.jsx)(`dl`,{className:`grid grid-cols-[7rem_1fr] gap-x-3 gap-y-2`,children:A$(t).map(({label:e,value:t})=>(0,q.jsxs)(K.Fragment,{children:[(0,q.jsx)(`dt`,{className:`font-medium text-ink-2`,children:e}),(0,q.jsx)(`dd`,{className:e===`Not`?`text-seal-deep`:`text-ink`,children:(0,q.jsx)(bV,{text:t})})]},e))}),a.length===0?(0,q.jsx)(`p`,{className:`rounded-sm border border-gold-deep/40 bg-gold-bg px-2 py-1.5 text-xs text-gold-deep`,children:`No reference screenshot yet: nobody has looked at this element on a page.`}):(0,q.jsx)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:a.map(([e,n])=>(0,q.jsx)(j$,{profile:e,file:n,alt:`What ${t.id} looks like on ${e}`},e))})]}):(0,q.jsxs)(`p`,{className:`text-sm text-seal-deep`,children:[`Nothing under Targets has the id `,e,`. Add the card, or remove the reference from the check that uses it.`]})})}function N$({doc:e,onChange:t,onRevealRange:n}){let r=e.questions.filter(e=>e.kind===`blocking`).length;return(0,q.jsx)(CV,{title:`Open questions`,count:e.questions.length,tone:r>0?`red`:`amber`,help:`questions`,children:e.questions.length===0?(0,q.jsx)(wV,{text:`No open question: every sentence of this case is confirmed.`}):(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:e.questions.map((r,i)=>(0,q.jsx)(P$,{question:r,doc:e,onChange:t,onRevealRange:n},`${r.line}-${i}`))})})}function P$({question:e,doc:t,onChange:n,onRevealRange:r}){let i=e.kind===`blocking`,a=r=>n(Mv(t.text,e));return(0,q.jsxs)(`li`,{className:`cursor-pointer px-3 py-2.5 transition-colors hover:bg-warm [&_a]:cursor-auto [&_button]:cursor-default [&_.inkstone-field]:cursor-text [&_label]:cursor-default`,title:`Click anywhere on this question to show the whole block in the source editor`,onClick:t=>{t.target.closest(`button, a, input, textarea, select, label, .inkstone-field`)||window.getSelection()?.isCollapsed!==!1&&r(e.region.start,e.region.end)},children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(ay,{tone:i?`red`:`amber`,children:i?`Must answer`:`Suggestion`}),(0,q.jsxs)(`span`,{className:`text-xs text-ink-3`,children:[e.section,` · line `,e.line]}),e.answer===``?null:(0,q.jsxs)(`button`,{className:`${Y(`danger`)} ml-auto gap-1 py-1`,title:`Delete this question together with the answer you typed`,onClick:()=>a(t.text),children:[(0,q.jsx)(wp,{size:14,"aria-hidden":`true`}),`Delete block`]})]}),e.parent?(0,q.jsxs)(`div`,{className:`mt-1.5 rounded border border-line-mid bg-warm px-2 py-1.5`,children:[(0,q.jsx)(`p`,{className:`text-xs text-ink-3`,children:`The text above this question (kept when you accept)`}),(0,q.jsx)(`p`,{className:`mt-0.5 text-sm text-ink`,children:(0,q.jsx)(bV,{text:e.parent.text})}),e.answer===``?(0,q.jsxs)(`button`,{className:`${Y(`success`)} mt-1.5 gap-1 py-1`,title:`The text above is right: delete this question and keep that text`,onClick:()=>a(t.text),children:[(0,q.jsx)(au,{size:14,"aria-hidden":`true`}),`Accept`]}):null]}):(0,q.jsxs)(`p`,{className:`mt-1.5 flex items-start gap-1.5 rounded border border-seal/40 bg-seal-bg px-2 py-1.5 text-xs text-seal-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),`No text above this question. Accept is off: deleting the block here would also delete what it stands for. Fix the case in the source.`]}),(0,q.jsx)(`p`,{className:`mt-1.5 text-sm text-ink-2`,children:(0,q.jsx)(bV,{text:e.question})}),e.evidence?(0,q.jsx)(`p`,{className:`mt-0.5 text-xs text-ink-3`,children:(0,q.jsx)(bV,{text:e.evidence})}):null,(0,q.jsxs)(`label`,{className:`mt-2 block`,children:[(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:e.answer===``?`Or answer yourself`:`Your answer (the AI folds it in on its next run)`}),(0,q.jsx)(MY,{value:e.answer,onChange:r=>n(jv(t.text,e,r)),ariaLabel:`Answer to: ${e.question}`,placeholder:`Type an answer, or accept the text above`,maxHeight:160})]})]})}var F$={writes:`bg-seal text-white ring-seal`,input:`bg-gold-deep text-white ring-gold-deep`,email:`bg-qing-deep text-white ring-qing-deep`},I$={writes:`text-ink-3 ring-line-mid hover:text-seal-deep`,input:`text-ink-3 ring-line-mid hover:text-gold-deep`,email:`text-ink-3 ring-line-mid hover:text-qing-deep`};function L$({doc:e,targets:t,onOpenTarget:n,onChange:r}){let i=e.steps.filter(e=>e.tags.includes(`input`)||e.tags.includes(`writes`)),a=t=>t.recipes.length>0||e.inputs.some(e=>e.step===t.number),o=i.filter(e=>!a(e)).length;return(0,q.jsxs)(CV,{title:`Steps`,count:e.steps.length,tone:`blue`,help:`steps`,children:[e.steps.length===0?(0,q.jsx)(wV,{text:`This case has no "## Steps" section yet.`}):(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:e.steps.map((i,a)=>(0,q.jsx)(V$,{step:i,doc:e,targets:t,onOpenTarget:n,onChange:r},`${i.line}-${a}`))}),i.length>0?(0,q.jsxs)(`p`,{className:`border-t border-line px-3 py-1 text-xs ${o>0?`text-gold-deep`:`text-ink-3`}`,children:[i.length-o,` of `,i.length,` `,i.length===1?`step that a person does has`:`steps that a person does have`,` a recipe`,o>0?`; /gen-spec stops on the other ${o}`:``]}):null]})}function R$({textLabel:e,placeholder:t,withPhase:n=!1,onCancel:r,onAdd:i}){let[a,o]=(0,K.useState)(``),[s,c]=(0,K.useState)(``);return(0,q.jsxs)(`form`,{className:`mt-1 flex flex-wrap items-end gap-2 rounded-sm border border-line bg-warm px-2 py-1.5`,onSubmit:e=>{e.preventDefault(),s.trim()!==``&&i(a,s)},children:[n?(0,q.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Phase (optional)`,(0,q.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),placeholder:`start`,className:`mt-1 block w-24 ${hy} py-1 text-xs`})]}):null,(0,q.jsxs)(`label`,{className:`min-w-40 flex-1 text-xs text-ink-2`,children:[e,(0,q.jsx)(MY,{value:s,onChange:c,ariaLabel:e,placeholder:t,maxHeight:140,singleLine:!0,autoFocus:!0,onEnter:()=>{s.trim()!==``&&i(a,s)}})]}),(0,q.jsxs)(`button`,{className:`${Y(`primary`)} gap-1 py-1`,disabled:s.trim()===``,children:[(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),`Add`]}),(0,q.jsx)(`button`,{type:`button`,className:`${Y()} py-1`,onClick:r,children:`Cancel`})]})}function z$({recipe:e,doc:t,onChange:n}){let r=e.what?`Recipe ${e.what}`:`Recipe`;return(0,q.jsxs)(`li`,{className:`flex items-start gap-1`,children:[e.what?(0,q.jsx)(`span`,{className:`mt-1.5 shrink-0 rounded-sm bg-warm px-1.5 py-0.5 text-xs text-ink-3 ring-1 ring-line-mid ring-inset`,children:e.what}):null,(0,q.jsx)(MY,{value:e.text,onChange:r=>n(Bv(t.text,e,r)),ariaLabel:r,maxHeight:140,singleLine:!0}),(0,q.jsx)(`button`,{className:`${Y(`danger`)} shrink-0 px-1.5 py-1`,title:`Delete this recipe line`,"aria-label":`Delete this recipe line`,onClick:()=>n(Vv(t.text,e)),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})})]})}function B$({signal:e,step:t,doc:n,targets:r,onOpenTarget:i,onChange:a}){return(0,q.jsxs)(`li`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-1`,children:[(0,q.jsx)(`span`,{className:`mt-1.5 shrink-0 rounded-sm bg-qing-bg px-1.5 py-0.5 text-xs text-qing-deep ring-1 ring-qing/40 ring-inset`,title:`What proves that the content this step loads is really there`,children:`ready when`}),(0,q.jsx)(MY,{value:e.text,onChange:t=>a(Uv(n.text,e,t)),ariaLabel:`Ready when, step ${t.number}`,maxHeight:140,singleLine:!0}),(0,q.jsx)(`button`,{className:`${Y(`danger`)} shrink-0 px-1.5 py-1`,title:`Delete this readiness signal`,"aria-label":`Delete this readiness signal`,onClick:()=>a(Wv(n.text,e)),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})})]}),n$(e.text).length>0?(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1 pl-6`,children:(0,q.jsx)(a$,{text:e.text,targets:r,onOpen:i})}):null]})}function V$({step:e,doc:t,targets:n,onOpenTarget:r,onChange:i}){let[a,o]=(0,K.useState)(null),s=e.tags.includes(`input`)||e.tags.includes(`writes`),c=t.inputs.some(t=>t.step===e.number),l=s&&e.recipes.length===0&&!c,u=n$(e.text);return(0,q.jsxs)(`li`,{className:`px-3 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,q.jsx)(`span`,{className:`w-6 shrink-0 pt-1 text-right font-mono text-xs leading-5 text-ink-3`,children:e.number}),(0,q.jsx)(MY,{value:e.text,onChange:n=>i(Zv(t.text,e,n)),ariaLabel:`Step ${e.number}`,placeholder:`The step sentence`,maxHeight:180}),(0,q.jsx)(`span`,{className:`flex shrink-0 gap-1 pt-0.5`,role:`group`,"aria-label":`Tags of step ${e.number}`,children:M_.map(n=>{let r=e.tags.includes(n);return(0,q.jsx)(`button`,{"aria-pressed":r,title:r?`Remove [${n}] from step ${e.number}`:`Mark step ${e.number} as [${n}]`,onClick:()=>i(Ov(t.text,e.number,n,!r)),className:`rounded-sm px-1.5 py-0.5 text-xs ring-1 ring-inset transition-colors ${r?F$[n]:I$[n]}`,children:n},n)})})]}),u.length>0?(0,q.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1 pl-8`,children:u.map(e=>(0,q.jsx)(i$,{id:e,card:n.get(e),onOpen:r},e))}):null,e.readiness.length>0?(0,q.jsx)(`ul`,{className:`mt-1 space-y-1 pl-8`,children:e.readiness.map((a,o)=>(0,q.jsx)(B$,{signal:a,step:e,doc:t,targets:n,onOpenTarget:r,onChange:i},`${a.line}-${o}`))}):null,e.recipes.length>0?(0,q.jsx)(`ul`,{className:`mt-1 space-y-1 pl-8`,children:e.recipes.map((e,n)=>(0,q.jsx)(z$,{recipe:e,doc:t,onChange:i},`${e.line}-${n}`))}):null,l?(0,q.jsx)(`p`,{className:`mt-1 pl-8 text-xs text-gold-deep`,children:`No recipe: /gen-spec stops until one is recorded (run /explore-case --attended) or written here.`}):null,c&&e.recipes.length===0?(0,q.jsxs)(`p`,{className:`mt-1 pl-8 text-xs text-gold-deep`,children:[`The recipe is in the old Inputs section below; move it under this step as`,` `,(0,q.jsx)(`code`,{className:`rounded-sm bg-dai px-1 py-px font-mono`,children:`- Recipe:`}),`.`]}):null,!s&&e.recipes.length>0?(0,q.jsx)(`p`,{className:`mt-1 pl-8 text-xs text-ink-3`,children:`Recipe lines are used only on steps tagged input or writes.`}):null,a===`ready`?(0,q.jsx)(`div`,{className:`pl-8`,children:(0,q.jsx)(R$,{textLabel:`What shows that the content has loaded`,placeholder:`The feed list has its first row, and the logo image is loaded`,onCancel:()=>o(null),onAdd:(n,r)=>{o(null),i(Gv(t.text,e.number,r))}})}):a===`recipe`?(0,q.jsx)(`div`,{className:`pl-8`,children:(0,q.jsx)(R$,{withPhase:!0,textLabel:`What the person does`,placeholder:`Positions (#1 to #3), [asrun] names, control labels`,onCancel:()=>o(null),onAdd:(n,r)=>{o(null),i(Kv(t.text,e.number,n,r))}})}):(0,q.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-1 pl-8`,children:[(0,q.jsxs)(`button`,{className:`${Y()} gap-1 px-1.5 py-0.5 text-xs`,title:`Say what proves that what this step loads is there: the test waits for it before it looks`,onClick:()=>o(`ready`),children:[(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),`Add ready signal`]}),(0,q.jsxs)(`button`,{className:`${Y()} gap-1 px-1.5 py-0.5 text-xs`,title:`Add a recipe line for this step (another phase, or a correction)`,onClick:()=>o(`recipe`),children:[(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),`Add recipe`]})]})]})}function H$({doc:e,onChange:t,profileIds:n}){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(``),[s,c]=(0,K.useState)(null),l=e.values;if(!l)return(0,q.jsx)(CV,{title:`Values`,tone:`gray`,help:`values`,children:(0,q.jsx)(wV,{text:`This case has no "## Values" block: a spec cannot assert anything for any profile.`})});if(!l.hasBlock||l.problem)return(0,q.jsx)(CV,{title:`Values`,tone:`red`,help:`values`,children:(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 px-3 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),l.problem??`The yaml block of "## Values" is incomplete.`]})});let u=Object.keys(l.values),d=[...new Set([`default`,...n,...u])],f=u.filter(e=>e!=="default"&&!n.includes(e)),p=[...new Set(d.flatMap(e=>Object.keys(l.values[e]??{})))],m=()=>{let n=r.trim();/^[A-Za-z][A-Za-z0-9]*$/.test(n)?p.includes(n)?c(`"${n}" is already in the table: edit its cells there.`):(c(null),t(Lv(e.text,n,a)),i(``),o(``)):c(`Use letters and digits only, starting with a letter.`)};return(0,q.jsxs)(CV,{title:`Values`,count:p.length,tone:`gray`,help:`values`,children:[p.length===0?(0,q.jsx)(wV,{text:`No value yet: add the first key below.`}):(0,q.jsx)(`div`,{className:`max-h-80 overflow-auto`,children:(0,q.jsxs)(`table`,{className:`w-full table-fixed border-collapse text-sm`,children:[(0,q.jsx)(`thead`,{className:`sticky top-0 z-10`,children:(0,q.jsxs)(`tr`,{className:`bg-warm`,children:[(0,q.jsx)(`th`,{className:`w-28 px-3 py-1.5 text-left font-mono text-xs font-medium text-ink-2`,children:`key`}),d.map(e=>(0,q.jsxs)(`th`,{className:`px-1.5 py-1.5 text-left text-xs font-medium text-ink-2`,children:[(0,q.jsx)(`span`,{className:`block truncate`,children:e}),f.includes(e)?(0,q.jsx)(`span`,{className:`text-seal-deep`,children:`(unknown)`}):null]},e))]})}),(0,q.jsx)(`tbody`,{children:p.map(n=>(0,q.jsxs)(`tr`,{className:`border-t border-line`,children:[(0,q.jsx)(`td`,{className:`w-28 truncate px-3 py-1 font-mono text-xs text-ink-2`,title:n,children:n}),d.map(r=>{let i=l.values[r]?.[n],a=l.values.default?.[n],o=i==null?``:String(i);return(0,q.jsx)(`td`,{className:`px-1.5 py-1`,children:(0,q.jsx)(`input`,{value:o,title:o===``?void 0:o,placeholder:r==="default"||a==null||a===``?`not set`:`default: ${String(a)}`,"aria-label":`${n} for ${r}`,onChange:i=>t(Iv(e.text,r,n,i.target.value===``?null:i.target.value)),className:`${hy} w-full py-1 font-mono text-xs`})},r)})]},n))})]})}),f.length>0?(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 border-t border-line bg-seal-bg px-3 py-1.5 text-xs text-seal-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),f.join(`, `),` `,f.length===1?`is`:`are`,` not in profiles.yaml: a spec that runs on this case refuses these values.`]}):null,l.placeholders.length>0?(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 border-t border-line bg-gold-bg px-3 py-1.5 text-xs text-gold-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),`Empty or TODO: `,l.placeholders.join(`, `),`. The test refuses to run until `,l.placeholders.length===1?`it is`:`they are`,` filled in.`]}):null,(0,q.jsxs)(`form`,{className:`flex flex-wrap items-end gap-2 border-t border-line bg-warm px-3 py-2`,onSubmit:e=>{e.preventDefault(),m()},children:[(0,q.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`New key`,(0,q.jsx)(`input`,{value:r,onChange:e=>{i(e.target.value),c(null)},placeholder:`createButton`,className:`mt-1 block w-36 ${hy} py-1 font-mono text-xs`})]}),(0,q.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Value in default`,(0,q.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),placeholder:`Create New`,className:`mt-1 block w-48 ${hy} py-1 font-mono text-xs`})]}),(0,q.jsxs)(`button`,{className:`${Y()} gap-1 py-1`,disabled:r.trim()===``,children:[(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),`Add`]}),s?(0,q.jsx)(`p`,{className:`w-full text-xs text-seal-deep`,children:s}):null]})]})}function U$({input:e,doc:t,onChange:n}){let r=e.step===null?`Note`:`Recipe for step ${e.step}${e.what?` ${e.what}`:``}`;return(0,q.jsxs)(`div`,{className:`mt-1 flex items-start gap-1`,children:[e.what?(0,q.jsx)(`span`,{className:`mt-1.5 shrink-0 rounded-sm bg-warm px-1.5 py-0.5 text-xs text-ink-3 ring-1 ring-line-mid ring-inset`,children:e.what}):null,(0,q.jsx)(MY,{value:e.recipe,onChange:r=>n(Rv(t.text,e,r)),ariaLabel:r,maxHeight:140,singleLine:!0}),(0,q.jsx)(`button`,{className:`${Y(`danger`)} shrink-0 px-1.5 py-1`,title:`Delete this line`,"aria-label":`Delete this line`,onClick:()=>n(zv(t.text,e)),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})})]})}function W$({doc:e,onChange:t}){return e.inputs.length===0?null:(0,q.jsxs)(CV,{title:`Inputs (old format)`,count:e.inputs.length,tone:`amber`,help:`inputs`,children:[(0,q.jsxs)(`p`,{className:`flex items-start gap-1.5 border-b border-line bg-gold-bg px-3 py-1.5 text-xs text-gold-deep`,children:[(0,q.jsx)(jl,{size:14,className:`mt-0.5 shrink-0`,"aria-hidden":`true`}),`This case uses the old section. Move each line under its step as`,` `,(0,q.jsx)(`code`,{className:`rounded-sm bg-dai px-1 py-px font-mono`,children:`- Recipe (phase): ...`}),`; it keeps working until then.`]}),(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:e.inputs.map(n=>(0,q.jsxs)(`li`,{className:`px-3 py-1.5`,children:[(0,q.jsx)(`span`,{className:`mb-1 block font-mono text-xs text-ink-3`,children:n.step===null?`free note`:`step ${n.step}`}),(0,q.jsx)(U$,{input:n,doc:e,onChange:t})]},`${n.line}-${n.step??`note`}`))})]})}var G$={confirm:`to confirm`,unseen:`not observed`};function K$({doc:e,onChange:t,onRevealLine:n}){return(0,q.jsx)(CV,{title:`To confirm`,count:e.markers.length,tone:`blue`,help:`markers`,children:e.markers.length===0?(0,q.jsx)(wV,{text:`Nothing waits for a person.`}):(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:e.markers.map((r,i)=>(0,q.jsxs)(`li`,{className:`flex items-start gap-2 px-3 py-1.5`,children:[(0,q.jsx)(ay,{tone:`blue`,children:G$[r.kind]}),(0,q.jsx)(`button`,{type:`button`,className:`min-w-0 flex-1 rounded text-left text-xs text-ink-2 transition-colors hover:text-ink focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,title:`Show this line in the source`,onClick:()=>n(r.line),children:(0,q.jsx)(bV,{text:r.sentence})}),(0,q.jsxs)(`button`,{className:`${Y()} gap-1 py-0.5 text-xs`,title:`This is right: remove the marker`,onClick:()=>t(Nv(e.text,r)),children:[(0,q.jsx)(au,{size:14,"aria-hidden":`true`}),`Confirmed`]})]},`${r.line}-${r.kind}-${i}`))})})}function q$(e){let t=e.sections.find(e=>e.name===`Targets`),n=t?e.text.slice(0,t.headingStart)+e.text.slice(t.body.end):e.text,r=new Map;for(let e of n.matchAll(/\[(T\d+)\]/g))r.set(e[1],(r.get(e[1])??0)+1);return r}function J$(e){return N_.filter(t=>!e.fields[t])}function Y$({doc:e,onOpenTarget:t,onRevealLine:n}){let r=q$(e),i=e.targets.filter(e=>e.blocking||J$(e).length>0).length;return(0,q.jsxs)(CV,{title:`Targets`,count:e.targets.length,tone:i>0?`amber`:`blue`,help:`targets`,defaultOpen:!1,children:[e.targets.length===0?(0,q.jsx)(wV,{text:`No card: no check names an image, an icon, a file, a PDF, a screenshot or repeated text.`}):(0,q.jsx)(`ul`,{className:`divide-y divide-line`,children:e.targets.map(e=>{let i=J$(e),a=r.get(e.id)??0;return(0,q.jsx)(`li`,{className:`px-3 py-1.5`,children:(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsxs)(`button`,{type:`button`,title:`Open this card`,onClick:()=>t(e.id),className:`flex min-w-0 flex-1 items-center gap-1.5 rounded text-left transition-colors hover:text-ink focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,children:[(0,q.jsx)(zd,{size:14,className:`shrink-0 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(r$,{id:e.id}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 text-sm text-ink`,children:e.name===``?`unnamed target`:e.name}),e.blocking?(0,q.jsx)(ay,{tone:`red`,children:`open question`}):null,i.length>0?(0,q.jsxs)(ay,{tone:`amber`,children:[`missing `,i.map(k$).join(`, `)]}):null,a===0?(0,q.jsx)(ay,{tone:`gray`,children:`no check uses it`}):null]}),(0,q.jsxs)(`button`,{className:`${Y()} shrink-0 gap-1 px-1.5 py-0.5 text-xs`,title:`Open this card in the editor to edit it`,onClick:()=>n(e.line),children:[(0,q.jsx)(Ul,{size:14,"aria-hidden":`true`}),`Open in editor`]})]})},e.id)})}),(0,q.jsx)(`p`,{className:`border-t border-line px-3 py-1 text-xs text-ink-3`,children:`Read-only here: use Open in editor to change a card. A [T1] in a step or a check is the link to its card: the chip opens it.`})]})}function X$({content:e,onChange:t,profileIds:n,envs:r,suites:i,caseId:a,onRevealLine:o,onRevealRange:s}){let c=(0,K.useMemo)(()=>Ev(e),[e]),l=_V(),[u,d]=(0,K.useState)(null),f=(0,K.useMemo)(()=>new Map(c.targets.map(e=>[e.id,e])),[c]),p=c.questions.filter(e=>e.kind===`blocking`).length,m=c.questions.filter(e=>e.answer!==``).length;return(0,q.jsxs)(`div`,{ref:l,className:`flex flex-col gap-3 p-3`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-xs text-ink-2`,children:[(0,q.jsxs)(`span`,{children:[c.steps.length,` steps`]}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,q.jsxs)(`span`,{children:[c.questions.length,` open `,c.questions.length===1?`question`:`questions`,p>0?` (${p} blocking)`:``]}),c.markers.length>0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,q.jsxs)(`span`,{children:[c.markers.length,` to confirm`]})]}):null,m>0?(0,q.jsxs)(ay,{tone:`green`,children:[m,` answered`]}):null,(0,q.jsx)(`span`,{className:`ml-auto text-ink-3`,children:`Edits land in the source: Save writes them.`})]}),(0,q.jsx)(N$,{doc:c,onChange:t,onRevealRange:s}),(0,q.jsx)(K$,{doc:c,onChange:t,onRevealLine:o}),(0,q.jsx)(w$,{doc:c,onChange:t,caseId:a,envs:r,suites:i}),(0,q.jsx)(v$,{name:`Goal`,help:`goal`,doc:c,onRevealLine:o}),(0,q.jsx)(L$,{doc:c,targets:f,onOpenTarget:d,onChange:t}),(0,q.jsx)(s$,{name:`Expected`,help:`expected`,doc:c,onOpenTarget:d,onChange:t}),(0,q.jsx)(H$,{doc:c,onChange:t,profileIds:n}),(0,q.jsx)(s$,{name:`Visual checks`,help:`visual`,doc:c,onOpenTarget:d,onChange:t,defaultOpen:!1}),(0,q.jsx)(Y$,{doc:c,onOpenTarget:d,onRevealLine:o}),(0,q.jsx)(W$,{doc:c,onChange:t}),(0,q.jsx)(v$,{name:`Notes`,help:`notes`,doc:c,onRevealLine:o}),(0,q.jsx)(y$,{doc:c}),u===null?null:(0,q.jsx)(M$,{id:u,card:f.get(u),onClose:()=>d(null),onRevealLine:o})]})}var Z$=`Optional. For example:
|
|
297
|
+
- the logo selector changed on staging
|
|
298
|
+
- only one profile fails, since the last release
|
|
299
|
+
- step 7 now opens a dialog first`,Q$=e=>e.status===`ok`,$$=e=>e.status!==`missing`&&e.status!==`expired`;function e1({caseId:e,env:t,tool:n,report:r,initialProfile:i,onClose:a}){let{startJob:o}=bl(),s=xA(n),[c]=VA(),l=fl(),u=(0,K.useMemo)(()=>(l.data?.profiles??[]).filter(e=>e.env===t),[l.data,t]),[d,f]=(0,K.useState)(null),[p,m]=(0,K.useState)(``),h=(0,K.useMemo)(()=>new Set(u.filter(e=>Q$(e)&&(!i||e.id===i)).map(e=>e.id)),[u,i]),g=d??h,_=p.length>Oc,v=g.size===0,y=e=>{let t=new Set(g);t.has(e)?t.delete(e):t.add(e),f(t)};return(0,q.jsx)(AA,{title:`Heal ${e}`,onClose:a,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:a,children:`Cancel`}),(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:v||_,onClick:()=>{a(),o({action:`ai`,tool:n,command:`heal-spec`,caseId:e,env:t,profiles:u.filter(e=>g.has(e.id)).map(e=>e.id),...p.trim()!==``&&{hints:p},...r&&{report:r},...s&&{model:s},thinking:c})},autoFocus:!0,children:[(0,q.jsx)(ep,{size:14,"aria-hidden":`true`}),`Run heal`]})]}),children:(0,q.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,q.jsxs)(`p`,{className:`flex flex-wrap items-center gap-2 text-ink-2`,children:[(0,q.jsx)(sy,{env:t}),`The agent reads `,r?(0,q.jsx)(`code`,{children:r}):`the newest report of this case`,` first and runs the case again only when that is not enough.`]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-medium text-ink-2`,children:`Profiles to heal (only logged-in profiles can run)`}),l.isLoading?(0,q.jsx)(`p`,{className:`text-xs text-ink-3`,children:`Loading...`}):null,(0,q.jsx)(`ul`,{className:`space-y-1`,children:u.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`label`,{className:`flex items-center gap-2 ${$$(e)?``:`text-ink-3`}`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:g.has(e.id),disabled:!$$(e),onChange:()=>y(e.id)}),(0,q.jsx)(`span`,{className:`font-mono`,children:e.id}),(0,q.jsx)(fy,{status:e.status})]})},e.id))}),l.isSuccess&&u.length===0?(0,q.jsx)(`p`,{className:`text-xs text-seal-deep`,children:`No profile has this environment.`}):null,l.isSuccess&&u.length>0&&v?(0,q.jsx)(`p`,{className:`mt-1 text-xs text-seal-deep`,children:`Tick at least one profile. Profiles that are not logged in are left out: log them in on the Profiles page.`}):null]}),(0,q.jsxs)(`label`,{className:`block`,children:[(0,q.jsx)(`span`,{className:`mb-1 block text-xs font-medium text-ink-2`,children:`What should be healed? Any evidence or clues (optional)`}),(0,q.jsx)(`textarea`,{value:p,onChange:e=>m(e.target.value),placeholder:Z$,spellCheck:!1,rows:6,className:`${hy} w-full resize-y leading-relaxed`}),(0,q.jsxs)(`span`,{className:`text-xs ${_?`text-seal-deep`:`text-ink-3`}`,children:[p.length.toLocaleString(),` / `,Oc.toLocaleString(),` characters. Clues guide the diagnosis; they never change what counts as a real product problem.`]})]})]})})}function t1(e){let t=XJ[e],n=document.createElement(`div`);n.className=`space-y-1`;let r=document.createElement(`p`);r.className=`font-semibold ${t.titleClass} text-sm`,r.textContent=t.title;let i=document.createElement(`p`);i.className=`text-line-mid`,i.textContent=t.lead;let a=document.createElement(`p`);a.className=`pt-0.5 font-medium`,a.textContent=`You can:`;let o=document.createElement(`ol`);o.className=`list-decimal space-y-0.5 pl-4`;for(let e of t.steps){let t=document.createElement(`li`);t.textContent=e,o.append(t)}return n.append(r,i,a,o),n}function n1(){let[e,t]=(0,K.useState)(null);return(0,K.useEffect)(()=>{if(!e)return;let t=dV(e,{target:`[data-kw]`,content:e=>t1(e.getAttribute(`data-kw`)??`todo`),theme:`inkstone`,placement:`top-start`,arrow:!0,onShow:e=>{let t=e.popper.querySelector(`.tippy-box`);t&&(t.dataset.kwKind=e.reference.getAttribute(`data-kw`)??`todo`)},delay:[200,0],maxWidth:400,offset:[0,6],touch:!1,appendTo:()=>document.body}),n=()=>lV({duration:0});return document.addEventListener(`keydown`,n,!0),()=>{document.removeEventListener(`keydown`,n,!0),(Array.isArray(t)?t:[t]).forEach(e=>e.destroy())}},[e]),t}function r1(e){let t=oY(e);return mY(e).filter(e=>e.kind!==`answer`&&e.from>=t).map(({from:e,to:t,kind:n})=>({from:e,to:t,kind:n}))}function i1(e,t,n){return e.length===0?null:n===1?e.find(e=>e.from>t)??e[0]:e.findLast(e=>e.from<t)??e[e.length-1]}var a1=`[data-line-start]`,o1=150,s1=24,c1=24,l1=1400,u1=e=>e instanceof HTMLElement&&(e.tagName===`UL`||e.tagName===`OL`);function d1(e){return{start:Number(e.dataset.lineStart),end:Number(e.dataset.lineEnd)}}function f1(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top,a=r.height;if(t.tagName===`LI`){let e=[...t.childNodes],n=e.findIndex(u1),r=n===-1?e.at(-1):e[n-1];if(r&&e[0]){let t=document.createRange();t.setStartBefore(e[0]),t.setEndAfter(r);let n=t.getBoundingClientRect();n.height>0&&(i=n.top,a=n.height)}}return{top:i-n.top+e.scrollTop,left:r.left-n.left+e.scrollLeft,width:r.width,height:a}}function p1(e,t){let n=null,r=-1;for(let i of e.querySelectorAll(a1)){let{start:e,end:a}=d1(i);e<=t&&t<=a&&e>=r&&(n=i,r=e)}return n}function m1(e,t){let n=[...e.querySelectorAll(a1)].map(t=>({line:d1(t).start,top:f1(e,t).top})).sort((e,t)=>e.line-t.line||e.top-t.top),r=[];for(let e of n){let t=r.at(-1);t&&(e.line<=t.line||e.top<t.top)||r.push(e)}return r.length===0||r[0].line>1?r.unshift({line:1,top:0}):r[0].top=0,r.push({line:t+1,top:Math.max(e.scrollHeight,r.at(-1)?.top??0)}),r}function h1(e,t,n){let r=t===`line`?`top`:`line`,i=0;for(;i<e.length-2&&e[i+1][t]<=n;)i++;let[a,o]=[e[i],e[i+1]],s=o[t]-a[t];return s<=0?a[r]:a[r]+Tp((n-a[t])/s,0,1)*(o[r]-a[r])}function g1(e,t){let n=e.state.doc,r=Tp(Math.floor(t),1,n.lines),i=t>=n.lines+1?1:t-r,a=e.lineBlockAt(n.line(r).from);return a.top+i*a.height+e.documentPadding.top}function _1(e,t){let n=e.state.doc,r=Math.max(0,t-e.documentPadding.top),i=e.lineBlockAtHeight(r);return n.lineAt(i.from).number+Tp((r-i.top)/Math.max(1,i.height),0,1)}function v1(e,t,n){let r=t===`editor`?e.view?.scrollDOM:e.preview;if(!r)return;let i=Tp(n,0,Math.max(0,r.scrollHeight-r.clientHeight));Math.abs(r.scrollTop-i)<1||(e.lock={side:t,until:performance.now()+o1},r.scrollTop=i)}function y1(e,t){if(e.lock.side===t&&performance.now()<e.lock.until)return;let{view:n,preview:r}=e;if(!n||!r)return;let i=n.scrollDOM,a=i.scrollHeight-i.clientHeight,o=r.scrollHeight-r.clientHeight;if(t===`editor`){if(i.scrollTop<=0)return v1(e,`preview`,0);if(i.scrollTop>=a-1)return v1(e,`preview`,o);let t=_1(n,i.scrollTop);v1(e,`preview`,h1(m1(r,n.state.doc.lines),`line`,t)),performance.now()-e.caretMovedAt<400&&S1(e,!0)}else{if(r.scrollTop<=0)return v1(e,`editor`,0);if(r.scrollTop>=o-1)return v1(e,`editor`,a);v1(e,`editor`,g1(n,h1(m1(r,n.state.doc.lines),`top`,r.scrollTop)))}}function b1(e,t,n,r){let i=t===`editor`?e.view?.scrollDOM:e.preview;if(!i||i.clientHeight===0)return;let a=i.clientHeight,o=n.top-i.scrollTop,s=o>=0&&o+Math.min(n.height,40)<=a,c=Tp(r,s1,Math.max(s1,a-n.height-s1));(!s||Math.abs(o-c)>a*.4)&&v1(e,t,n.top-c)}function x1(e){let{preview:t,overlay:n}=e;if(!t||!n)return null;let r=e.touched&&e.activeLine>0?p1(t,e.activeLine):null;if(!r)return n.style.display=`none`,null;let i=f1(t,r),a=r.tagName===`LI`?c1:0;return Object.assign(n.style,{display:`block`,top:`${i.top-3}px`,left:`${i.left-a-6}px`,width:`${i.width+a+12}px`,height:`${i.height+6}px`}),{top:i.top,height:i.height}}function S1(e,t){let{view:n}=e;if(!n)return;let r=n.state.selection.main.head;e.activeLine=n.state.doc.lineAt(r).number;let i=x1(e);t&&i&&b1(e,`preview`,i,n.lineBlockAt(r).top+n.documentPadding.top-n.scrollDOM.scrollTop)}function C1(e,t){let{view:n,preview:r}=e;return!n||!r?null:r.querySelector(`mark[data-kw-from="${t.from}"]`)||p1(r,n.state.doc.lineAt(t.from).number)}function w1(e,t){let n=C1(e,t),{preview:r,flash:i}=e;if(!n||!r||!i)return;let a=f1(r,n);i.style.display=`none`,i.offsetWidth,Object.assign(i.style,{display:`block`,top:`${a.top-2}px`,left:`${a.left-3}px`,width:`${a.width+6}px`,height:`${a.height+4}px`}),b1(e,`preview`,{top:a.top,height:a.height},Math.max(s1,r.clientHeight*.3)),window.clearTimeout(e.previewFlashTimer),e.previewFlashTimer=window.setTimeout(()=>{e.flash&&(e.flash.style.display=`none`)},l1)}function T1(e){window.clearTimeout(e.previewFlashTimer),window.clearTimeout(e.editorFlashTimer),e.flash&&(e.flash.style.display=`none`)}function E1(e,t){let{view:n}=e,r=Number(t.dataset.kwFrom),i=Number(t.dataset.kwTo);n&&Number.isInteger(r)&&Number.isInteger(i)&&(lV({duration:0}),hY(n,r,i,t.dataset.kwRemove))}function D1(e,t){let{view:n,preview:r}=e,i=t.target;if(!n||!r||!(i instanceof Element))return;let a=i.closest(`[data-kw-remove]`);if(a){E1(e,a);return}if(window.getSelection()?.isCollapsed===!1||i.closest(`a, button`))return;let o=i.closest(a1);if(!o||!r.contains(o))return;let{start:s,end:c}=d1(o),l=f1(r,o),u=Tp((t.clientY-r.getBoundingClientRect().top+r.scrollTop-l.top)/Math.max(1,l.height),0,.999),d=n.state.doc,f=Tp(s+Math.floor(u*(c-s+1)),1,d.lines),p=l.top-r.scrollTop;e.touched=!0,e.skipReveal=!0,n.focus(),n.dispatch({selection:{anchor:d.line(f).to}}),e.skipReveal=!1;let m=n.lineBlockAt(d.line(f).from);b1(e,`editor`,{top:m.top+n.documentPadding.top,height:m.height},p)}function O1(e,t){let n=(0,K.useRef)({view:null,preview:null,overlay:null,flash:null,previewFlashTimer:0,editorFlashTimer:0,touched:!1,skipReveal:!1,activeLine:0,caretMovedAt:0,lock:{side:`editor`,until:0}}).current,r=(0,K.useCallback)(e=>{n.view=e,e.scrollDOM.addEventListener(`scroll`,()=>y1(n,`editor`),{passive:!0})},[n]),i=(0,K.useCallback)(e=>{e.focusChanged&&e.view.hasFocus&&(n.touched=!0),e.selectionSet&&e.view.hasFocus&&(n.touched=!0,n.caretMovedAt=performance.now()),!e.docChanged&&(e.selectionSet||e.focusChanged&&e.view.hasFocus)&&S1(n,e.selectionSet&&!n.skipReveal&&e.view.hasFocus)},[n]),a=(0,K.useCallback)(e=>{if(n.preview=e,!e)return;let t=()=>y1(n,`preview`),r=new ResizeObserver(()=>x1(n));return e.addEventListener(`scroll`,t,{passive:!0}),r.observe(e),()=>{e.removeEventListener(`scroll`,t),r.disconnect(),n.preview===e&&(n.preview=null)}},[n]),o=(0,K.useCallback)(e=>{n.overlay=e},[n]),s=(0,K.useCallback)(e=>{n.flash=e},[n]),c=(0,K.useCallback)(e=>D1(n,e),[n]),l=(0,K.useCallback)((e,t)=>{let{view:r}=n;if(!r)return;let i=i1(e,r.state.selection.main.head,t);i&&(i.to>r.state.doc.length||(n.touched=!0,r.focus(),r.dispatch({selection:{anchor:i.from},effects:[L.scrollIntoView(i.from,{y:`center`}),TY.of({from:i.from,to:i.to})]}),w1(n,i),window.clearTimeout(n.editorFlashTimer),n.editorFlashTimer=window.setTimeout(()=>{n.view&&n.view.dispatch({effects:TY.of(null)})},l1)))},[n]),u=(0,K.useCallback)(e=>{let{view:t}=n;if(!t)return;let r=t.state.doc,i=r.line(Tp(Math.round(e),1,r.lines));n.touched=!0,n.activeLine=i.number,n.caretMovedAt=performance.now(),t.focus(),t.dispatch({selection:{anchor:i.to},effects:[L.scrollIntoView(i.from,{y:`center`}),SY.of({from:i.from,to:i.from})]}),window.clearTimeout(n.editorFlashTimer),n.editorFlashTimer=window.setTimeout(()=>{n.view&&n.view.dispatch({effects:SY.of(null)})},l1)},[n]),d=(0,K.useCallback)((e,t)=>{let{view:r}=n;if(!r)return;let i=r.state.doc,a=Tp(Math.min(e,t),0,i.length),o=Tp(Math.max(e,t),0,i.length);n.touched=!0,n.activeLine=i.lineAt(a).number,n.caretMovedAt=performance.now(),r.focus(),r.dispatch({selection:{anchor:a},effects:[L.scrollIntoView(a,{y:`center`}),SY.of({from:a,to:o})]}),window.clearTimeout(n.editorFlashTimer),n.editorFlashTimer=window.setTimeout(()=>{n.view&&n.view.dispatch({effects:SY.of(null)})},l1)},[n]);return(0,K.useLayoutEffect)(()=>{n.touched=!1,n.activeLine=0,T1(n),n.view?.dispatch({effects:[TY.of(null),SY.of(null)]}),x1(n)},[n,t]),(0,K.useLayoutEffect)(()=>{window.clearTimeout(n.previewFlashTimer),n.flash&&(n.flash.style.display=`none`),S1(n,n.view?.hasFocus??!1)},[n,e]),{onCreateEditor:r,onUpdate:i,previewRef:a,overlayRef:o,flashRef:s,onPreviewClick:c,goToMark:l,goToLine:u,goToRange:d}}var k1=50,A1=25,j1=75,M1=e=>e===`split`||e===`single`,N1=e=>{if(typeof e!=`object`||!e)return!1;let t=e;return M1(t.layout)&&typeof t.mode==`string`&&typeof t.single==`string`&&typeof t.split==`number`&&Number.isFinite(t.split)};function P1({surface:e,className:t=``,children:n}){return(0,q.jsxs)(`div`,{ref:e.previewRef,onClick:e.onPreviewClick,className:`relative min-h-0 flex-1 overflow-auto bg-white p-6 ${t}`,children:[(0,q.jsx)(`div`,{ref:e.overlayRef,"aria-hidden":`true`,className:`pointer-events-none absolute hidden rounded-sm border-l-2 border-theme/60 bg-theme-bg/60`}),(0,q.jsx)(`div`,{ref:e.flashRef,"aria-hidden":`true`,className:`kw-flash pointer-events-none absolute hidden rounded-sm`}),n]})}var F1=(0,K.forwardRef)(function({storageKey:e,resetKey:t,value:n,onChange:r,extensions:i,modes:a,start:o,placeholder:s,editorLabel:c=`Markdown source`},l){let[u,d]=Dp(e,{layout:o?.layout??`split`,mode:o?.mode??a[0].id,single:o?.single??a[0].id,split:k1},N1),f=(0,K.useMemo)(()=>a.map(e=>e.id),[a]),p=u.layout,m=f.includes(u.mode)?u.mode:a[0].id,h=u.single===`editor`||f.includes(u.single)?u.single:m,g=Tp(u.split,A1,j1),_=(0,K.useCallback)(e=>d({layout:p,mode:m,single:h,split:g,...e}),[d,p,m,h,g]),{onCreateEditor:v,onUpdate:y,previewRef:b,overlayRef:x,flashRef:S,onPreviewClick:C,goToMark:w,goToLine:T,goToRange:E}=O1(n,t),D=(0,K.useRef)(null),O=(0,K.useCallback)(e=>{D.current=e,v(e)},[v]),k=(0,K.useRef)(null),A=(0,K.useRef)(null),j=p===`split`||h===`editor`,M=a.find(e=>e.id===(p===`split`?m:h))??null,N=M!==null,P=(0,K.useCallback)(e=>{j?e():(A.current=e,_({single:`editor`}))},[j,_]);(0,K.useEffect)(()=>{if(!j)return;D.current?.requestMeasure();let e=A.current;e&&(A.current=null,e())},[j]);let ee=(0,K.useCallback)(e=>P(()=>T(e)),[P,T]),F=(0,K.useCallback)((e,t)=>P(()=>E(e,t)),[P,E]);(0,K.useImperativeHandle)(l,()=>({goToMark:(e,t)=>P(()=>w(e,t)),goToLine:ee,showPane:e=>_({layout:`single`,single:e}),focus:()=>D.current?.focus()}),[P,w,ee,_]);let I=(0,K.useMemo)(()=>[...i,L.lineWrapping,L.contentAttributes.of({"aria-label":c})],[i,c]),te=(0,K.useMemo)(()=>({previewRef:b,onPreviewClick:C,overlayRef:x,flashRef:S}),[b,C,x,S]),ne=(0,K.useMemo)(()=>({value:n,sync:{goToLine:ee,goToRange:F},surface:te}),[n,ee,F,te]),R=e=>`px-2.5 py-0.5 text-xs transition-colors ${e?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`;return(0,q.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-mid bg-card px-3 py-1`,children:[(0,q.jsx)(`span`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,role:`group`,"aria-label":`Layout`,children:[`split`,`single`].map(e=>(0,q.jsx)(`button`,{type:`button`,"aria-pressed":p===e,onClick:()=>_({layout:e}),className:R(p===e),children:e===`split`?`Split`:`Single`},e))}),p===`single`||a.length>1?(0,q.jsxs)(`span`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid ${p===`split`?`ml-auto`:``}`,role:`group`,"aria-label":`Pane`,children:[p===`single`?(0,q.jsx)(`button`,{type:`button`,"aria-pressed":h===`editor`,onClick:()=>_({single:`editor`}),className:R(h===`editor`),children:`Editor`}):null,a.map(e=>{let t=p===`single`?h===e.id:m===e.id;return(0,q.jsx)(`button`,{type:`button`,"aria-pressed":t,title:e.title,onClick:()=>_(p===`single`?{single:e.id}:{mode:e.id}),className:R(t),children:e.label},e.id)})]}):null]}),(0,q.jsxs)(`div`,{ref:k,className:`flex min-h-0 flex-1`,children:[(0,q.jsx)(`div`,{hidden:!j,className:`${xY} paper-grain min-h-0 min-w-0 overflow-auto bg-warm ${p===`split`?`shrink-0`:`flex-1`}`,style:p===`split`?{width:`${g}%`}:void 0,children:(0,q.jsx)(pR,{value:n,onChange:r,onCreateEditor:O,onUpdate:y,placeholder:s,theme:`none`,extensions:I,basicSetup:{foldGutter:!1},height:`100%`,style:{height:`100%`,fontSize:13}})}),p===`split`?(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the editor and the other pane`,"aria-valuenow":Math.round(g),"aria-valuemin":A1,"aria-valuemax":j1,tabIndex:0,title:`Drag to resize, double-click to reset`,className:`w-1.5 shrink-0 cursor-col-resize bg-line-mid transition-colors hover:bg-theme focus-visible:bg-theme focus-visible:outline-none`,onPointerDown:e=>{let t=k.current?.getBoundingClientRect().width??0;if(t===0)return;let n=g;Ep(e,e=>_({split:Tp(n+e/t*100,A1,j1)}))},onDoubleClick:()=>_({split:k1}),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),_({split:Tp(g+(e.key===`ArrowLeft`?-2:2),A1,j1)}))}}):null,(0,q.jsx)(`div`,{hidden:!N,className:`flex min-h-0 min-w-0 flex-1 flex-col bg-paper`,children:M?M.render(ne):null})]})]})}),I1=navigator.userAgentData?.platform??navigator.platform??``,L1=/mac|iphone|ipad/i.test(I1),R1=L1?`⌘`:`Ctrl`,z1=e=>L1?`${R1}${e}`:`${R1}+${e}`,B1=`memo`,V1=288,H1=224,U1=640,W1=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/;function G1(e){let t=W1.exec(e);return t?{meta:t[1],body:e.slice(t[0].length)}:{meta:null,body:e}}function K1(e){try{let t=C_(e);return typeof t!=`object`||!t||Array.isArray(t)?null:Object.entries(t)}catch{return null}}function q1({text:e}){return(0,q.jsx)(q.Fragment,{children:nY(e).map((e,t)=>e.kind===null?e.text:(0,q.jsx)(`mark`,{className:YJ[e.kind],"data-kw":e.kind,children:e.text},t))})}function J1({value:e}){return e==null||e===``?(0,q.jsx)(`span`,{className:`text-ink-3`,children:`-`}):Array.isArray(e)?(0,q.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.map((e,t)=>(0,q.jsx)(ay,{tone:`blue`,children:String(e)},t))}):typeof e==`object`?(0,q.jsx)(`code`,{className:`text-xs`,children:JSON.stringify(e)}):(0,q.jsx)(`span`,{className:`break-words`,children:(0,q.jsx)(q1,{text:String(e)})})}function Y1({meta:e}){let t=(0,K.useMemo)(()=>K1(e),[e]);return t===null?(0,q.jsx)(`pre`,{className:`rounded border border-line bg-warm p-3 text-xs text-ink-2`,children:(0,q.jsx)(q1,{text:e})}):(0,q.jsx)(`table`,{className:`not-prose mb-6 w-full border border-line bg-white text-sm`,children:(0,q.jsx)(`tbody`,{children:t.map(([e,t])=>(0,q.jsxs)(`tr`,{className:`border-b border-line last:border-b-0`,children:[(0,q.jsx)(`th`,{className:`w-32 bg-warm px-3 py-2 text-left align-top font-mono text-xs font-medium text-ink-2`,children:e}),(0,q.jsx)(`td`,{className:`px-3 py-2 align-top`,children:(0,q.jsx)(J1,{value:t})})]},e))})})}function X1({content:e}){let{meta:t,body:n,lineOffset:r,charOffset:i}=(0,K.useMemo)(()=>{let t=G1(e),n=e.slice(0,e.length-t.body.length);return{...t,lineOffset:n.split(`
|
|
300
|
+
`).length-1,charOffset:n.length}},[e]);return(0,q.jsxs)(q.Fragment,{children:[t===null?null:(0,q.jsx)(Y1,{meta:t}),(0,q.jsx)(g$,{content:n,lineOffset:r,keywords:{charOffset:i,fullText:e,removable:!0},className:`relative`})]})}var Z1={"explore-case":{select:`border-qing/50 bg-qing-bg text-qing-deep focus:ring-theme/25`,dot:`bg-qing`,impact:`# Explore case
|
|
301
|
+
Edits only the case file: fixes wording and writes down what the pages show and the open questions.
|
|
302
|
+
The agent only reads pages. Steps that write data are done by you (Attended).`},"gen-spec":{select:`border-gold-deep/40 bg-gold-bg text-gold-deep focus:ring-theme/25`,dot:`bg-gold`,impact:`# Generate spec
|
|
303
|
+
Creates the spec from the case file (including its "## Values").
|
|
304
|
+
Does not run the tests: do that on the Run page.`},"heal-spec":{select:`border-seal/40 bg-seal-bg text-seal-deep focus:ring-theme/25`,dot:`bg-seal`,impact:`# Heal spec
|
|
305
|
+
Reads the last report of the case first, then fixes the spec. It runs the tests again only when it needs more evidence, and only for profiles that are logged in.`}};function Q1({caseId:e,dirty:t,hasSpec:n}){let[r]=kA(),i=xA(r),[a,o]=(0,K.useState)(`explore-case`),[s,c]=Zs(),l=s.get(`ai`);(0,K.useEffect)(()=>{if(!l||!fc.includes(l))return;o(l);let e=new URLSearchParams(s);e.delete(`ai`),c(e,{replace:!0})},[l,s,c]);let[u,d]=Dp(`asrun-ui.ai-env`,``,Op),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(!1),[g,_]=(0,K.useState)(!1),[v,y]=(0,K.useState)(!0),[b]=VA(),{startJob:x}=bl(),S=dl().data?.envs??[],C=S.includes(u)?u:``,w=C===``,T=a===`explore-case`&&C!==``,E=T&&v,D=Dc(r,a,e,{env:C||`<env>`,attended:E,thinking:b,...i&&{model:i}}),O=a===`gen-spec`&&n,k=t=>void x({action:`ai`,tool:r,command:a,caseId:e,env:C,...t&&{force:t},...E&&{attended:E},thinking:b,...i&&{model:i}});return(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(by,{value:a,onChange:e=>o(e),tone:Z1[a].select,dot:Z1[a].dot,"aria-label":`AI command`,title:Z1[a].impact,children:fc.map(e=>(0,q.jsx)(`option`,{value:e,"data-dot":Z1[e].dot,children:pc[e]},e))}),(0,q.jsxs)(by,{value:C,onChange:d,invalid:w,required:!0,"aria-label":`Environment the agent works in`,title:w?`# Choose an environment
|
|
306
|
+
The agent opens real pages there. There is no default.`:`# Environment\n${hc[a]}`,children:[(0,q.jsx)(`option`,{value:``,children:`Environment: choose...`}),S.map(e=>(0,q.jsxs)(`option`,{value:e,children:[`Environment: `,e]},e))]}),a===`explore-case`?(0,q.jsxs)(`label`,{className:`flex items-center gap-1.5 text-sm ${T?`text-ink-2`:`text-ink-3`}`,title:T?`# Attended run
|
|
307
|
+
You stay at this computer. The browser opens, and for a step that writes data or needs your choice the agent pauses and shows a small card. Do the step in the browser, then click Done.
|
|
308
|
+
Untick it if nobody is at the machine. The agent then only reads.`:`# Attended run
|
|
309
|
+
Choose an environment first: an attended run opens real pages.`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:v,disabled:!T,onChange:e=>y(e.target.checked)}),`Attended`]}):null,(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:t||w,title:t?`# Save first
|
|
310
|
+
The AI reads the saved file, so save your changes before running.`:w?`# Choose an environment first
|
|
311
|
+
The agent opens real pages there. There is no default.`:a===`heal-spec`?`# Heal spec\nAsks which profiles to heal and for any clues, then starts ${dc[r]} on this case in ${C}. The output opens in the Jobs drawer.`:`# Run ${pc[a]}\nStarts ${dc[r]} on this case in ${C}${E?`, attended`:``}. The output opens in the Jobs drawer.`,onClick:()=>a===`heal-spec`?_(!0):O?h(!0):k(!1),children:[(0,q.jsx)(ep,{size:14,"aria-hidden":`true`}),`Run AI`]}),(0,q.jsx)(`button`,{className:`${Y()} h-8 w-8 px-0!`,"aria-label":`Copy shell command`,title:`# Copy shell command
|
|
312
|
+
Copies the command line that runs this AI command in a terminal, with the options chosen here.`,onClick:()=>{navigator.clipboard.writeText(D).then(()=>{p(!0),setTimeout(()=>p(!1),1200)})},children:f?(0,q.jsx)(au,{size:16,"aria-hidden":`true`}):(0,q.jsx)(Nu,{size:16,"aria-hidden":`true`})}),(0,q.jsx)(qs,{to:`/guide?case=${e}`,className:`${Y()} h-8 w-8 px-0!`,"aria-label":`AI guide`,title:`# AI guide
|
|
313
|
+
How each AI step works, and the same commands to run in a terminal.`,children:(0,q.jsx)(jd,{size:16,"aria-hidden":`true`})}),g?(0,q.jsx)(e1,{caseId:e,env:C,tool:r,onClose:()=>_(!1)}):null,m?(0,q.jsx)(t0,{caseId:e,env:C,onClose:()=>h(!1),onOverwrite:()=>{h(!1),k(!0)}}):null]})}var $1=`case-groups`;function e0(){let e=[...new Set(pl().data?.map(e=>e.group).filter(e=>e!==null))].sort();return(0,q.jsx)(`datalist`,{id:$1,children:e.map(e=>(0,q.jsx)(`option`,{value:e},e))})}function t0({caseId:e,env:t,onClose:n,onOverwrite:r}){let i=Hn({queryKey:[`case-impact`,e],queryFn:()=>cc.caseImpact(e),gcTime:0});return(0,q.jsx)(AA,{title:`Overwrite the spec of ${e}?`,onClose:n,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:n,autoFocus:!0,children:`Cancel`}),(0,q.jsx)(`button`,{className:Y(`stop`),onClick:r,children:`Overwrite the spec`})]}),children:(0,q.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,q.jsxs)(`p`,{children:[`This case already has a spec. Without overwriting, the agent leaves it alone and generates nothing. If you overwrite, the agent explores `,(0,q.jsx)(`b`,{children:t?t.toUpperCase():`the pages`}),` and writes the spec again from the case file.`]}),(0,q.jsxs)(`div`,{className:`rounded border border-seal/40 bg-seal-bg p-3 text-seal-deep`,children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-medium`,children:`It will replace (not recoverable from here, use git to get it back):`}),(0,q.jsx)(`ul`,{className:`list-disc space-y-1 pl-5`,children:(0,q.jsx)(`li`,{children:(0,q.jsx)(`code`,{children:i.data?.specFile??`the spec file`})})})]}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`The expected values stay in the case document. Baseline images are kept`,i.data?` (${i.data.snapshotCount} file${i.data.snapshotCount===1?``:`s`})`:``,`; the agent lists the ones that may be out of date. It does not run the spec.`]})]})})}function n0({impact:e,verb:t}){return(0,q.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5 text-sm`,children:[(0,q.jsxs)(`li`,{children:[t,`: `,(0,q.jsx)(`code`,{children:e.caseFile})]}),e.specFile?(0,q.jsxs)(`li`,{children:[t,`: `,(0,q.jsx)(`code`,{children:e.specFile})]}):(0,q.jsx)(`li`,{className:`opacity-70`,children:`No spec yet.`}),e.snapshotDir?(0,q.jsxs)(`li`,{children:[t,`: `,(0,q.jsxs)(`code`,{children:[e.snapshotDir,`/`]}),` (`,e.snapshotCount,` baseline file`,e.snapshotCount===1?``:`s`,`)`]}):null,(0,q.jsx)(`li`,{className:`opacity-70`,children:`Its expected values stay in the case document.`})]})}function r0({id:e,onClose:t,onRenamed:n}){let r=A_(e),[i,a]=(0,K.useState)(r.group??``),[o,s]=(0,K.useState)(r.name),c=Hn({queryKey:[`case-impact`,e],queryFn:()=>cc.caseImpact(e),gcTime:0}),l=gt(),u=j_(i.trim()||null,o.trim()),d=(i.trim()===``||O_(i.trim()))&&O_(o.trim())&&u!==`memo`,f=Un({mutationFn:()=>cc.renameCase(e,u),onSuccess:()=>{l.invalidateQueries({queryKey:ul.cases}),l.invalidateQueries({queryKey:ul.info}),l.removeQueries({queryKey:ul.case(e)}),n(u)}});return(0,q.jsx)(AA,{title:`Rename or move ${e}`,onClose:t,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:t,children:`Cancel`}),(0,q.jsx)(`button`,{type:`submit`,form:`rename-case-form`,className:Y(`primary`),disabled:!d||u===e||f.isPending,children:f.isPending?`Renaming...`:`Rename`})]}),children:(0,q.jsxs)(`form`,{id:`rename-case-form`,className:`space-y-3`,onSubmit:t=>{t.preventDefault(),d&&u!==e&&f.mutate()},children:[(0,q.jsxs)(`div`,{className:`grid grid-cols-[10rem_1fr] gap-2`,children:[(0,q.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Folder (optional)`,(0,q.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),list:$1,placeholder:`documents`,className:`mt-1 w-full ${hy} py-1 font-mono`})]}),(0,q.jsxs)(`label`,{className:`text-xs text-ink-2`,children:[`Name`,(0,q.jsx)(`input`,{autoFocus:!0,value:o,onChange:e=>s(e.target.value),className:`mt-1 w-full ${hy} py-1 font-mono`})]})]}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`New id: `,(0,q.jsx)(`code`,{children:u}),d?null:(0,q.jsx)(`span`,{className:`text-seal-deep`,children:` (lowercase words with dashes only)`})]}),(0,q.jsxs)(`div`,{className:`rounded border border-line bg-warm p-3`,children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-medium text-ink-2`,children:`What moves with it`}),c.data?(0,q.jsx)(n0,{impact:c.data,verb:`Moved`}):(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:c.isError?c.error.message:`Loading...`})]}),f.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:f.error.message}):null]})})}function i0({id:e,onClose:t,onDeleted:n}){let[r,i]=(0,K.useState)(``),a=Hn({queryKey:[`case-impact`,e],queryFn:()=>cc.caseImpact(e),gcTime:0}),o=gt(),s=Un({mutationFn:()=>cc.deleteCase(e),onSuccess:()=>{o.invalidateQueries({queryKey:ul.cases}),o.invalidateQueries({queryKey:ul.info}),o.removeQueries({queryKey:ul.case(e)}),n()}});return(0,q.jsx)(AA,{title:`Delete ${e}?`,onClose:t,footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{type:`button`,className:Y(),onClick:t,children:`Cancel`}),(0,q.jsx)(`button`,{type:`submit`,form:`delete-case-form`,className:Y(`stop`),disabled:r!==e||!a.data||s.isPending,children:s.isPending?`Deleting...`:`Delete case`})]}),children:(0,q.jsxs)(`form`,{id:`delete-case-form`,className:`space-y-3`,onSubmit:t=>{t.preventDefault(),r===e&&a.data&&s.mutate()},children:[(0,q.jsxs)(`div`,{className:`rounded border border-seal/40 bg-seal-bg p-3 text-seal-deep`,children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-medium`,children:`It will delete (the files are not recoverable from here):`}),a.data?(0,q.jsx)(n0,{impact:a.data,verb:`Delete`}):(0,q.jsx)(`p`,{className:`text-sm`,children:a.isError?a.error.message:`Loading...`})]}),(0,q.jsxs)(`label`,{className:`block text-xs text-ink-2`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1`,children:[`Type `,(0,q.jsx)(`code`,{className:`text-ink`,children:e}),` to confirm`,(0,q.jsx)(`button`,{type:`button`,className:`rounded p-1 text-ink-2 hover:bg-warm hover:text-ink`,title:`Fill in the case id`,"aria-label":`Fill in the case id`,onClick:()=>i(e),children:(0,q.jsx)(dd,{size:14,"aria-hidden":`true`})})]}),(0,q.jsx)(`input`,{autoFocus:!0,value:r,onChange:e=>i(e.target.value),className:`mt-1 w-full ${hy} py-1 font-mono`})]}),s.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:s.error.message}):null]})})}var a0=e=>e===`case`||e===`spec`;function o0({view:e,setView:t,hasSpec:n}){return(0,q.jsx)(`button`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid disabled:opacity-40`,disabled:!n,title:n?`Switch to the ${e===`case`?`spec`:`case`}`:`No spec yet. Generate one with Run AI.`,"aria-label":`Showing the ${e}. Switch to the ${e===`case`?`spec`:`case`}`,onClick:()=>t(e===`case`?`spec`:`case`),children:[`case`,`spec`].map(t=>(0,q.jsx)(`span`,{className:`px-3 py-0.5 text-sm transition-colors ${e===t?`bg-theme-btn text-white`:`bg-card text-ink-2`}`,children:t===`case`?`Case`:`Spec`},t))})}function s0(){let[e,t]=(0,K.useState)(!1);return{copied:e,copy:e=>void navigator.clipboard.writeText(e).then(()=>{t(!0),setTimeout(()=>t(!1),1200)})}}function c0({id:e,spec:t,draft:n,setDraft:r,dirty:i,save:a,conflict:o,onReload:s}){let[c,l]=(0,K.useState)(null),u=s0(),d=s0(),f=Un({mutationFn:()=>cc.openSpec(e)});(0,K.useEffect)(()=>{let e=!0;return OY().then(t=>e&&l(t)),()=>{e=!1}},[]);let p=n?.text??t.content,m=o??a.error?.message??f.error?.message??null;return(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 border-b border-line-mid bg-card px-4 py-1`,children:[(0,q.jsx)(`code`,{className:`text-xs text-ink-2`,children:t.file}),i?(0,q.jsx)(ay,{tone:`amber`,children:`Unsaved changes`}):(0,q.jsx)(ay,{tone:`gray`,children:`Saved`}),(0,q.jsx)(`span`,{className:`text-xs text-ink-3`,children:xy(new Date(t.mtimeMs).toISOString())}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,q.jsxs)(`button`,{className:`${Y()} gap-1.5 py-1`,disabled:i||f.isPending,title:i?`Save or discard your changes first, so the other editor opens the same text`:`Open the spec in the default application of your system for this file type`,onClick:()=>f.mutate(),children:[(0,q.jsx)(rd,{size:14,"aria-hidden":`true`}),`Open in editor`]}),(0,q.jsxs)(`button`,{className:`${Y()} gap-1.5 py-1`,title:`Copy the full path to paste into a terminal editor:\n${t.path}`,onClick:()=>d.copy(t.path),children:[d.copied?(0,q.jsx)(au,{size:14,"aria-hidden":`true`}):(0,q.jsx)(Tu,{size:14,"aria-hidden":`true`}),d.copied?`Copied`:`Copy path`]}),(0,q.jsx)(`button`,{className:`rounded p-1 text-ink-2 hover:bg-warm hover:text-ink`,title:`Copy the spec`,"aria-label":`Copy the spec`,onClick:()=>u.copy(p),children:u.copied?(0,q.jsx)(au,{size:14,"aria-hidden":`true`}):(0,q.jsx)(Nu,{size:14,"aria-hidden":`true`})}),(0,q.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,q.jsx)(`button`,{className:`${Y()} py-1`,disabled:!i,onClick:()=>r(null),children:`Discard`}),(0,q.jsx)(`button`,{className:`${Y(`primary`)} gap-2 py-1`,disabled:!i||a.isPending,title:`Save the spec (${z1(`S`)})`,onClick:()=>n&&a.mutate(n),children:a.isPending?`Saving...`:(0,q.jsxs)(q.Fragment,{children:[`Save`,(0,q.jsx)(`kbd`,{className:`font-sans text-xs font-normal opacity-75`,children:z1(`S`)})]})})]})]}),m?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(`span`,{children:m}),o?(0,q.jsx)(`button`,{className:`ml-auto underline`,onClick:s,children:`Discard my edits and reload`}):null]}):null,(0,q.jsx)(`div`,{className:`${xY} paper-grain min-h-0 flex-1 overflow-auto bg-warm`,children:(0,q.jsx)(pR,{value:p,onChange:e=>r(e===t.content?null:{text:e,baseMtimeMs:n?.baseMtimeMs??t.mtimeMs}),theme:`none`,extensions:[...kY,L.lineWrapping,...c?[c]:[]],basicSetup:{foldGutter:!1},height:`100%`,style:{height:`100%`,fontSize:13}})})]})}function l0({id:e}){let t=gt(),n=Do(),[r,i]=(0,K.useState)(null),[a,o]=Dp(`asrun-ui.cases.view`,`case`,a0),s=fl(),c=(0,K.useMemo)(()=>s.data?.profiles.map(e=>e.id)??[],[s.data]),l=dl().data,u=hl().data?.some(e=>e.status===`running`&&(e.kind===`ai`||e.kind===`run`))??!1,d=Hn({queryKey:ul.case(e),queryFn:()=>cc.case(e),staleTime:0,gcTime:0}),[f,p]=(0,K.useState)(null),[m,h]=(0,K.useState)(null),g=pl().data?.find(t=>t.id===e),_=g?.hasSpec??!1,v=a===`spec`&&_?`spec`:`case`,y=Hn({queryKey:ul.spec(e),queryFn:()=>cc.spec(e),enabled:_,staleTime:0,gcTime:0}),[b,x]=(0,K.useState)(null),[S,C]=(0,K.useState)(null),w=n1(),T=(0,K.useCallback)(e=>{w(e)},[w]),E=(0,K.useRef)(null),[D,O]=Zs(),k=D.get(`review`);(0,K.useEffect)(()=>{k&&v!==`case`&&o(`case`)},[k,v,o]),(0,K.useEffect)(()=>{if(!k||!d.data||v!==`case`)return;E.current?.showPane(`panel`);let e=new URLSearchParams(D);e.delete(`review`),O(e,{replace:!0})},[k,d.data,v,D,O]),(0,K.useEffect)(()=>{p(null),x(null),C(null)},[e]);let A=f?.text??d.data?.content??``,j=e=>p(t=>e===d.data.content?null:{text:e,baseMtimeMs:t?.baseMtimeMs??d.data.mtimeMs}),M=(0,K.useMemo)(()=>r1(A),[A]),N=f!==null&&f.text!==d.data?.content,P=b!==null&&b.text!==y.data?.content,ee=N||P,F=N&&f!==null&&f.baseMtimeMs!==d.data?.mtimeMs,I=P&&b!==null&&b.baseMtimeMs!==y.data?.mtimeMs,te=e=>`This ${e} changed on disk after you started editing. Your edits are kept, but saving will be refused.`,ne=m??(F?te(`case`):null),L=S??(I?te(`spec`):null),R=ee||u,z=ee?`Save or discard your changes first`:u?`Wait for the running job to finish`:`Rename the case or move it to another folder`,B=Un({mutationFn:t=>cc.saveCase(e,t.text,t.baseMtimeMs),onSuccess:(n,r)=>{t.setQueryData(ul.case(e),n),t.invalidateQueries({queryKey:ul.cases}),p(e=>e&&e.text!==r.text?{text:e.text,baseMtimeMs:n.mtimeMs}:null),h(null)},onError:e=>{e.status===409&&h(e.message)}}),V=Un({mutationFn:t=>cc.saveSpec(e,t.text,t.baseMtimeMs),onSuccess:(n,r)=>{t.setQueryData(ul.spec(e),n),x(e=>e&&e.text!==r.text?{text:e.text,baseMtimeMs:n.mtimeMs}:null),C(null)},onError:e=>{e.status===409&&C(e.message)}}),re=Jo(({currentLocation:e,nextLocation:t})=>ee&&e.pathname!==t.pathname);return(0,K.useEffect)(()=>{if(!ee)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[ee]),(0,K.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),v===`spec`?P&&b&&!V.isPending&&V.mutate(b):N&&f&&!B.isPending&&B.mutate(f))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}),d.isError?(0,q.jsx)(`p`,{className:`p-6 text-seal-deep`,children:d.error.message}):d.data?(0,q.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-2 border-b border-line-mid bg-warm px-4 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,q.jsxs)(`button`,{className:`font-mono text-sm hover:underline disabled:no-underline`,disabled:R,title:z,onClick:()=>i(`rename`),children:[`cases/`,e,`.md`]}),(0,q.jsx)(`button`,{className:`rounded p-1 text-ink-2 hover:bg-line hover:text-ink disabled:opacity-40`,disabled:R,title:z,"aria-label":`Rename or move the case`,onClick:()=>i(`rename`),children:(0,q.jsx)($u,{size:14,"aria-hidden":`true`})})]}),v===`case`?N?(0,q.jsx)(ay,{tone:`amber`,children:`Unsaved changes`}):(0,q.jsx)(ay,{tone:`gray`,children:`Saved`}):null,v===`case`&&P?(0,q.jsx)(ay,{tone:`amber`,children:`Spec has unsaved changes`}):null,v===`spec`&&N?(0,q.jsx)(ay,{tone:`amber`,children:`Case has unsaved changes`}):null,(0,q.jsx)(`div`,{className:`ml-auto flex flex-wrap items-center gap-2`,children:(0,q.jsx)(o0,{view:v,setView:o,hasSpec:_})})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-2`,children:[(0,q.jsx)(Q1,{caseId:e,dirty:ee,hasSpec:_}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,q.jsxs)(`button`,{className:`${Y(`danger`)} gap-1.5`,disabled:u,title:u?`Wait for the running job to finish`:`Delete the case, its spec and its baseline images`,onClick:()=>i(`delete`),children:[(0,q.jsx)(gp,{size:14,"aria-hidden":`true`}),`Delete`]}),v===`case`?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,q.jsxs)(`span`,{className:`flex items-center gap-1`,role:`group`,"aria-label":`Outstanding marks`,children:[(0,q.jsx)(`button`,{className:`${Y()} h-8 w-8 px-0!`,disabled:M.length===0,title:`Previous outstanding mark (TODO, to be confirmed, not observed)`,"aria-label":`Previous outstanding mark`,onClick:()=>E.current?.goToMark(M,-1),children:(0,q.jsx)(xu,{size:14,"aria-hidden":`true`})}),(0,q.jsx)(`button`,{className:`${Y()} h-8 w-8 px-0!`,disabled:M.length===0,title:`Next outstanding mark (TODO, to be confirmed, not observed)`,"aria-label":`Next outstanding mark`,onClick:()=>E.current?.goToMark(M,1),children:(0,q.jsx)(lu,{size:14,"aria-hidden":`true`})}),(0,q.jsx)(`span`,{className:`min-w-12 text-xs text-ink-2`,"aria-live":`polite`,children:M.length===0?`No marks`:`${M.length} ${M.length===1?`mark`:`marks`}`})]}),(0,q.jsx)(`span`,{className:`mx-1 h-5 w-px bg-line-mid`}),(0,q.jsx)(`button`,{className:Y(),disabled:!N,onClick:()=>p(null),children:`Discard`}),(0,q.jsx)(`button`,{className:`${Y(`primary`)} gap-2`,disabled:!N||B.isPending,title:`Save the case (${z1(`S`)})`,onClick:()=>f&&B.mutate(f),children:B.isPending?`Saving...`:(0,q.jsxs)(q.Fragment,{children:[`Save`,(0,q.jsx)(`kbd`,{className:`font-sans text-xs font-normal opacity-75`,children:z1(`S`)})]})})]}):null]})]})]}),g?.problem?(0,q.jsxs)(`div`,{className:`border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[`Front matter problem: `,g.problem]}):null,g&&g.writes.length>0?(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(cy,{}),(0,q.jsxs)(`span`,{children:[`This case writes data in `,g.writes.join(`, `),`: `,g.writesNote]}),g.envs?(0,q.jsxs)(`span`,{className:`ml-auto flex items-center gap-1 text-xs text-ink-2`,children:[`runs only in `,g.envs.map(e=>(0,q.jsx)(sy,{env:e},e))]}):null]}):g?.envs?(0,q.jsxs)(`div`,{className:`flex items-center gap-1 border-b border-line-mid bg-warm px-4 py-1 text-xs text-ink-2`,children:[`Runs only in `,g.envs.map(e=>(0,q.jsx)(sy,{env:e},e))]}):null,ne||B.isError?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-4 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(`span`,{children:ne??B.error.message}),ne?(0,q.jsx)(`button`,{className:`ml-auto underline`,onClick:()=>{p(null),h(null),d.refetch()},children:`Discard my edits and reload`}):null]}):null,v===`spec`?y.isError?(0,q.jsx)(`p`,{className:`p-6 text-seal-deep`,children:y.error.message}):y.data?(0,q.jsx)(c0,{id:e,spec:y.data,draft:b,setDraft:x,dirty:P,save:V,conflict:L,onReload:()=>{x(null),C(null),y.refetch()}}):(0,q.jsx)(`p`,{className:`p-6 text-ink-2`,children:`Loading...`}):(0,q.jsx)(`div`,{ref:T,className:`min-h-0 flex-1`,children:(0,q.jsx)(F1,{ref:E,storageKey:`asrun-ui.workbench.cases.v2`,start:{layout:`single`,single:`panel`},resetKey:e,value:A,onChange:j,extensions:AY,editorLabel:`Case source`,modes:[{id:`panel`,label:`Panel`,title:`Settings, steps (with their recipes), expected, values and questions as a form: edits land in the source`,render:({value:t,sync:n})=>(0,q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:(0,q.jsx)(X$,{content:t,onChange:j,profileIds:c,envs:l?.envs??[],suites:l?.suites??[],caseId:e,onRevealLine:n.goToLine,onRevealRange:n.goToRange})})},{id:`doc`,label:`Doc`,title:`The case rendered as a document, in step with the source`,render:({value:e,surface:t})=>(0,q.jsx)(P1,{surface:t,children:(0,q.jsx)(X1,{content:e})})}]})}),r===`rename`?(0,q.jsx)(r0,{id:e,onClose:()=>i(null),onRenamed:e=>n(`/cases/${e}`)}):null,r===`delete`?(0,q.jsx)(i0,{id:e,onClose:()=>i(null),onDeleted:()=>n(`/cases`)}):null,re.state===`blocked`?(0,q.jsx)(AA,{title:`Leave without saving?`,onClose:()=>re.reset(),footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:()=>re.reset(),children:`Stay`}),(0,q.jsx)(`button`,{className:Y(`danger`),onClick:()=>re.proceed(),children:`Leave`})]}),children:(0,q.jsxs)(`p`,{className:`text-sm text-ink-2`,children:[`Your changes to `,[N&&`${e}.md`,P&&`${e}.spec.ts`].filter(Boolean).join(` and `),` will be lost.`]})}):null]}):(0,q.jsx)(`p`,{className:`p-6 text-ink-2`,children:`Loading...`})}var u0=`Paste your test notes here, in any language. For example:
|
|
314
|
+
|
|
315
|
+
Documents hub landing page
|
|
316
|
+
- open the documents page, check the page title and the "Create New" button
|
|
317
|
+
- the logo in the header must be the profile logo
|
|
318
|
+
- create a document, publish it, share the link by email, then delete it`;function d0({memo:e,setMemo:t}){let[n]=kA(),r=xA(n),[i]=VA(),[a,o]=(0,K.useState)(!1),{startJob:s}=bl(),c=hl().data?.some(e=>e.kind===`ai`&&e.status===`running`&&e.command.includes(`/make-case`)),l=e.trim()===``,u=e.length>jc;return(0,q.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,q.jsxs)(`div`,{className:`border-b border-line-mid bg-warm px-4 py-2`,children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg tracking-wide border-l-4 border-theme pl-3`,children:`New cases from a memo`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`Write or paste your test notes as they are: a list of things to check is enough. `,(0,q.jsx)(`b`,{children:`Make cases`}),` turns them into case files you can review, and later check against the real pages. This step only creates files: nothing is changed in the product.`]})]}),(0,q.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,q.jsx)(F1,{storageKey:`asrun-ui.workbench.memo`,resetKey:B1,value:e,onChange:t,extensions:jY,placeholder:u0,editorLabel:`Memo`,modes:[{id:`doc`,label:`Doc`,title:`The memo rendered as Markdown, in step with the editor`,render:({value:e,surface:t})=>(0,q.jsx)(P1,{surface:t,children:e.trim()===``?(0,q.jsx)(`p`,{className:`text-sm text-ink-3`,children:`Nothing to preview yet: the memo appears here, rendered as Markdown, while you type.`}):(0,q.jsx)(g$,{content:e})})}]})}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-t border-line-mid bg-warm px-4 py-2`,children:[(0,q.jsxs)(`span`,{className:`text-xs ${u?`text-seal-deep`:`text-ink-3`}`,children:[e.length.toLocaleString(),` / `,jc.toLocaleString(),` characters`]}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),disabled:e===``,onClick:()=>t(``),children:`Clear`}),(0,q.jsx)(`button`,{className:Y(),disabled:l,title:`# Copy /make-case
|
|
319
|
+
Copies your notes together with the command, to paste into a terminal session where the agent can ask you about the gaps.`,onClick:()=>{navigator.clipboard.writeText(`/make-case ${e}`).then(()=>{o(!0),setTimeout(()=>o(!1),1200)})},children:a?`Copied`:`Copy /make-case`}),(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:l||u||c,title:c?`# Make cases
|
|
320
|
+
A run is already in progress. Follow it in the Jobs bar, or wait for it to finish.`:l?`# Make cases
|
|
321
|
+
Write or paste your notes above first: an empty memo cannot be turned into cases.`:u?`# Make cases\nThe notes are too long (limit ${jc.toLocaleString()} characters). Shorten them, or split them into two memos.`:`# Make cases
|
|
322
|
+
Turns your notes into case files, one per area of the product.
|
|
323
|
+
Nothing else is needed from you: the run appears in the Jobs bar and you can keep working.
|
|
324
|
+
Next: open a new case and answer the questions left in it.`,onClick:()=>void s({action:`make-cases`,tool:n,memo:e,thinking:i,...r&&{model:r}}),children:[(0,q.jsx)(ep,{size:14,"aria-hidden":`true`}),c?`Running`:`Make cases`]})]})]}),(0,q.jsxs)(`div`,{className:`space-y-1.5 border-t border-line bg-card px-4 py-2 text-xs text-ink-2`,children:[(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`What it does`}),` — Turns the notes above into case files, one per area, each with clear steps and what to expect. Steps that create or change data, or send email, are marked so a test run knows to be careful. Where a note was unclear, the case keeps a suggested sentence with a question under it.`]}),(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`While it runs`}),` — It works in the Jobs bar, so you can keep using the app. It never opens a browser and never overwrites an existing case.`]}),(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`What to do next`}),` — Open the new cases in the list. Where a question is left, keep the suggested sentence or write your own answer. Then use `,(0,q.jsx)(`b`,{children:`Explore case`}),` to check the case against the real pages.`]}),(0,q.jsxs)(`p`,{className:`text-ink-3`,children:[`Prefer to talk it through first? `,(0,q.jsx)(`b`,{children:`Copy /make-case`}),` and paste it into a terminal session started with`,` `,dc[n],`: the agent asks about the gaps before it writes anything.`]})]})]})}function f0(e,t,n){let r=t.trim(),i=r===``||O_(r),a=new Set;return e.split(/[\s,]+/).filter(Boolean).map(e=>{let t=e.includes(`/`)?e:j_(r||null,e),o=null;return!e.includes(`/`)&&!i?o=`invalid folder`:k_(t)?t===B1?o=`reserved name`:n.has(t)?o=`already exists`:a.has(t)&&(o=`listed twice`):o=`use lowercase words with dashes`,a.add(t),{raw:e,id:t,problem:o}})}function p0({caseId:e,onCreated:t}){let n=gt(),r=Do(),[i,a]=Dp(`cases-new-open`,!0,kp),[o,s]=(0,K.useState)(``),[c,l]=(0,K.useState)(``),u=pl(),d=(0,K.useMemo)(()=>new Set(u.data?.map(e=>e.id)),[u.data]),f=(0,K.useMemo)(()=>f0(o,c,d),[o,c,d]),p=f.filter(e=>e.problem!==null).length,m=c.trim()===``||O_(c.trim()),h=e===B1,g=Un({mutationFn:async e=>{let t=[],n=[];for(let r of e)try{await cc.createCase(r),t.push(r)}catch(e){n.push({id:r,message:e.message})}return{created:t,failed:n}},onSuccess:({created:e,failed:r})=>{n.invalidateQueries({queryKey:ul.cases}),n.invalidateQueries({queryKey:ul.info}),s(r.map(e=>e.id).join(`
|
|
325
|
+
`)),e.length>0&&t(e[0])}}),_=f.length>0&&p===0&&!g.isPending,v=()=>{_&&g.mutate(f.map(e=>e.id))},y=e=>`flex flex-1 items-center justify-center gap-1.5 px-3 py-1.5 text-sm transition-colors ${e?`bg-theme-btn text-white`:`bg-card text-ink-2 hover:bg-warm`}`;return(0,q.jsxs)(`div`,{children:[(0,q.jsx)(g0,{icon:(0,q.jsx)(Rf,{size:14,"aria-hidden":`true`}),label:`New cases`,open:i,onToggle:()=>a(!i)}),(0,q.jsx)(Mp,{open:i,children:(0,q.jsxs)(`div`,{className:`space-y-2 border-b border-line-mid bg-card p-3`,children:[(0,q.jsxs)(`div`,{className:`flex overflow-hidden rounded ring-1 ring-line-mid`,children:[(0,q.jsxs)(`button`,{type:`button`,className:y(!h),"aria-pressed":!h,onClick:()=>h&&r(`/cases`),children:[(0,q.jsx)(qd,{size:14,"aria-hidden":`true`}),`By name`]}),(0,q.jsxs)(qs,{to:`/cases/memo`,className:y(h),"aria-current":h?`page`:void 0,children:[(0,q.jsx)(yd,{size:14,"aria-hidden":`true`}),`From memo`]})]}),h?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Write or paste your notes in the editor, then click Make cases.`}):(0,q.jsxs)(`form`,{className:`space-y-2`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,q.jsx)(`textarea`,{value:o,onChange:e=>{s(e.target.value),g.data&&g.reset()},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())},rows:Math.min(8,Math.max(3,o.split(`
|
|
326
|
+
`).length+1)),placeholder:`header-logo
|
|
327
|
+
footer-links`,"aria-label":`Case names, one per line`,spellCheck:!1,className:`w-full resize-none ${hy} py-1 font-mono`}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[`One name per line. `,(0,q.jsx)(`code`,{children:`folder/name`}),` overrides the folder below.`]}),f.length>0?(0,q.jsx)(`ul`,{className:`max-h-28 space-y-0.5 overflow-auto text-xs`,children:f.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex items-center gap-1.5`,title:`cases/${e.id}.md`,children:[e.problem?(0,q.jsx)(Dl,{size:14,className:`shrink-0 text-seal-deep`,"aria-hidden":`true`}):(0,q.jsx)(au,{size:14,className:`shrink-0 text-jade-btn`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`min-w-0 truncate font-mono`,children:e.id}),e.problem?(0,q.jsx)(`span`,{className:`ml-auto shrink-0 text-seal-deep`,children:e.problem}):null]},t))}):null,(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(`input`,{value:c,onChange:e=>l(e.target.value),list:$1,placeholder:`folder`,"aria-label":`Folder (optional)`,title:`Folder for names without one (optional)`,className:`min-w-0 flex-1 ${hy} py-1 font-mono ${m?``:`border-seal`}`}),(0,q.jsx)(`button`,{className:`${Y(`primary`)} shrink-0`,disabled:!_,title:`Create the cases (Ctrl/Cmd+Enter)`,children:g.isPending?`Creating...`:f.length>1?`Create ${f.length}`:`Create`})]}),g.data&&g.data.failed.length>0?(0,q.jsx)(`ul`,{className:`space-y-0.5 text-xs text-seal-deep`,children:g.data.failed.map(e=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`code`,{children:e.id}),`: `,e.message]},e.id))}):null]})]})})]})}function m0(e){let t=new Map;for(let n of e)t.set(n.group,[...t.get(n.group)??[],n]);return[...t.entries()].sort(([e],[t])=>e===null?-1:t===null?1:e.localeCompare(t)).map(([e,t])=>({group:e,items:t}))}function h0(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return!0;let r=[e.id,e.title,...e.suites,e.login,e.writes.length>0?`writes ${e.writes.join(` `)}`:null,e.writesNote].filter(Boolean).join(`
|
|
328
|
+
`).toLowerCase();return n.every(e=>r.includes(e))}function g0({icon:e,label:t,aside:n,open:r,onToggle:i}){let a=`flex w-full items-center gap-2 border-y border-theme-btn bg-theme-btn px-3 py-2 text-left text-white`,o=(0,q.jsxs)(q.Fragment,{children:[e,(0,q.jsx)(`span`,{className:`eyebrow text-sm`,children:t}),n?(0,q.jsx)(`span`,{className:`ml-auto text-xs text-white/75`,children:n}):null,i?(0,q.jsx)(`span`,{className:`${n?``:`ml-auto `}flex h-6 w-6 shrink-0 items-center justify-center rounded bg-white/15 transition-colors group-hover:bg-white/30`,"aria-hidden":`true`,children:(0,q.jsx)(xu,{size:16,className:`transition-transform duration-200 motion-reduce:transition-none ${r?``:`rotate-180`}`})}):null]});return i?(0,q.jsx)(`button`,{className:`${a} group`,onClick:i,"aria-expanded":r,children:o}):(0,q.jsx)(`h2`,{className:a,children:o})}function _0({value:e,onChange:t}){return(0,q.jsxs)(`div`,{className:`relative border-b border-line-mid bg-card p-2`,children:[(0,q.jsx)(Xf,{size:14,className:`pointer-events-none absolute top-1/2 left-5 -translate-y-1/2 text-ink-3`,"aria-hidden":`true`}),(0,q.jsx)(`input`,{type:`search`,value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t(``)},placeholder:`Search name, title, suite...`,"aria-label":`Search cases`,spellCheck:!1,className:`w-full pr-8 pl-8 ${hy} [&::-webkit-search-cancel-button]:hidden`}),e?(0,q.jsx)(`button`,{type:`button`,className:`absolute top-1/2 right-4 -translate-y-1/2 text-ink-3 hover:text-ink`,"aria-label":`Clear search`,onClick:()=>t(``),children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})}):null]})}function v0(){let e=jo()[`*`]||void 0,t=Do(),n=pl(),[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(``),s=a.trim()!==``,c=(0,K.useMemo)(()=>(n.data??[]).filter(e=>h0(e,a)),[n.data,a]),l=(0,K.useMemo)(()=>m0(c),[c]),[u,d]=Dp(`asrun-ui.cases.sidebar-width`,V1,Ap),[f,p]=(0,K.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});return(0,q.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,q.jsxs)(`aside`,{className:`flex shrink-0 flex-col bg-card`,style:{width:Tp(u,H1,U1)},children:[(0,q.jsx)(`h1`,{className:`eyebrow border-l-4 border-theme px-3 py-3 text-sm`,children:`Cases`}),(0,q.jsx)(p0,{caseId:e,onCreated:e=>t(`/cases/${e}`)}),(0,q.jsx)(e0,{}),(0,q.jsx)(g0,{icon:(0,q.jsx)(qd,{size:14,"aria-hidden":`true`}),label:`Case list`,aside:s?`${c.length} / ${n.data?.length??0}`:n.data?.length??0}),(0,q.jsx)(_0,{value:a,onChange:o}),(0,q.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:[l.map(n=>(0,q.jsxs)(`div`,{children:[n.group===null?null:(0,q.jsxs)(`button`,{className:`flex w-full items-center gap-2 border-b border-line bg-warm px-3 py-1.5 text-left text-xs font-medium text-ink-2 hover:bg-line`,onClick:()=>m(n.group),"aria-expanded":s||!f.has(n.group),children:[(0,q.jsx)(lu,{size:14,className:`transition-transform duration-200 motion-reduce:transition-none ${!s&&f.has(n.group)?`-rotate-90`:``}`,"aria-hidden":`true`}),(0,q.jsx)(Dd,{size:14,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`font-mono`,children:n.group}),(0,q.jsx)(`span`,{className:`ml-auto text-ink-3`,children:n.items.length})]}),(0,q.jsx)(Mp,{open:n.group===null||s||!f.has(n.group),children:(0,q.jsx)(`ul`,{children:n.items.map(r=>(0,q.jsxs)(`li`,{className:`relative`,children:[(0,q.jsxs)(qs,{to:`/cases/${r.id}`,className:`block border-b border-l-4 border-line py-2 pr-4 hover:bg-warm ${n.group===null?`pl-8`:`pl-12`} ${r.id===e?`border-l-theme bg-theme-bg`:`border-l-transparent`}`,children:[(0,q.jsx)(`div`,{className:`font-mono text-sm`,children:A_(r.id).name}),r.title?(0,q.jsx)(`div`,{className:`truncate text-xs text-ink-2`,children:r.title}):null,r.writes.length>0||r.suites.length>0||r.problem||r.login?(0,q.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1`,children:[r.writes.length>0?(0,q.jsx)(cy,{title:r.writesNote??void 0}):null,r.suites.map(e=>(0,q.jsx)(ay,{tone:`blue`,children:e},e)),r.problem?(0,q.jsx)(ay,{tone:`red`,children:`invalid front matter`}):null,r.login?(0,q.jsxs)(ay,{tone:`gray`,children:[`login: `,r.login]}):null]}):null,(0,q.jsx)(`div`,{className:`mt-1 text-xs text-ink-3`,children:xy(r.updatedAt)})]}),r.hasSpec?(0,q.jsx)(`button`,{className:`absolute top-2 left-2 flex h-5 w-5 items-center justify-center rounded-full bg-jade text-white transition-colors hover:bg-jade-btn focus-visible:ring-2 focus-visible:ring-theme/40 focus-visible:outline-none`,"aria-label":`Run case ${r.id}`,title:`# Run ${r.id}\nIts spec is generated: run it on the Run tests page.`,onClick:()=>t(`/run`,{state:{case:r.id}}),children:(0,q.jsx)(Pf,{size:12,"aria-hidden":`true`})}):(0,q.jsx)(`span`,{className:`absolute top-2 left-2 flex h-5 w-5 items-center justify-center text-gold`,role:`img`,"aria-label":`No spec yet`,title:`# No spec yet
|
|
329
|
+
This case cannot run yet. Open it and choose Generate spec.`,children:(0,q.jsx)(jl,{size:15,"aria-hidden":`true`})})]},r.id))})})]},n.group??``)),n.isSuccess&&n.data.length===0?(0,q.jsx)(`p`,{className:`p-4 text-sm text-ink-2`,children:`No cases yet.`}):null,n.isSuccess&&n.data.length>0&&c.length===0?(0,q.jsxs)(`p`,{className:`p-4 text-sm text-ink-2`,children:[`No cases match "`,a.trim(),`".`]}):null]})]}),(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,title:`Drag to resize the sidebar, double-click to reset`,className:`w-1.5 shrink-0 cursor-col-resize bg-line-mid transition-colors hover:bg-theme`,onPointerDown:e=>{let t=Tp(u,H1,U1);Ep(e,e=>d(Tp(t+e,H1,U1)))},onDoubleClick:()=>d(V1)}),(0,q.jsx)(`section`,{className:`min-w-0 flex-1`,children:e===B1?(0,q.jsx)(d0,{memo:r,setMemo:i}):e?(0,q.jsx)(l0,{id:e},e):(0,q.jsx)(`div`,{className:`flex h-full items-center justify-center text-sm text-ink-2`,children:`Select a case to edit it, or write a memo and turn it into cases.`})})]})}var y0=[{command:`make-case`,title:`Start from raw notes`,optional:!0,what:`Turns a memo, a list of things to check or a pasted chat into case files. It writes them out as clear steps, marks the ones that change data or send email, and leaves a question in the case wherever a note was unclear. It never opens a browser and never writes a test.`,you:[`Paste your notes on Cases > From memo, then click Make cases.`,`Answer the questions it leaves in the new cases: keep the suggested sentence or write your own.`],next:[`Explore the new cases on the real pages (step 2). Until then they are drafts nobody has checked.`],cli:`A path is optional: the notes themselves can follow the command.`},{command:`explore-case`,title:`Explore a case`,what:`Checks the case against the real pages: it fixes the wording, writes down what each page shows, and leaves anything it cannot work out as a question in the case. It only edits the case file.`,you:[`Pick the environment to explore.`,`Stay at the computer with Attended ticked. When a step changes data, a card in the browser window asks you to do it yourself; click Done once you have finished.`,`Answer the questions it leaves in the case, or delete a question block to accept the sentence above it.`],next:[`Generate the spec (step 3). It stops if a step that writes data or fills in a form has no recipe of what you did.`],cli:`Add --attended when a person is at the machine: steps that write data are then handed to them, instead of becoming blocking questions.`},{command:`gen-spec`,title:`Generate the spec`,what:`Writes the spec (the test file) from the case. It is one test that runs once for each profile, with the values from the case's Values block. It does not run the test.`,you:[`Pick the environment to check the pages in; use staging while you try things out.`,`Log the profiles into the site first, on the Profiles page: the agent opens the pages with their saved sessions.`,`If a spec already exists, you are asked before it is overwritten.`],next:[`Run the test on the Run tests page. If the spec has visual checks, tick Update baselines for the first run.`,`Read the result under Reports.`],cli:`An existing spec is left alone; add --force to regenerate it and overwrite it.`},{command:`heal-spec`,title:`Heal a failing spec`,what:`For a test that fails after the product changed. The agent reads the latest report first (the failed step, the error, the screenshots) and runs the case again only when that is not enough. Then it says whether the test needed updating or whether it found a real product problem.`,you:[`Pick the environment where the failure happened.`,`Type what you know: what changed, which page, what you saw. Tick the profiles to heal; only profiles that are logged in are run.`],next:[`Read its verdict: a real product difference is a finding for the product team, not a test to change.`,`If it deleted a baseline that showed the wrong thing, tick Update baselines on the next run and check the new image.`],cli:`Add --profiles a,b to choose the profiles and --hints <file> for clues; without them, every logged-in profile is healed and no clue is read.`}];function b0({label:e,children:t}){return(0,q.jsxs)(`section`,{className:`mt-3`,children:[(0,q.jsx)(`h3`,{className:`eyebrow text-xs text-theme-ink`,children:e}),(0,q.jsx)(`div`,{className:`mt-1 text-sm text-ink-2`,children:t})]})}function x0({items:e}){return(0,q.jsx)(`ul`,{className:`list-disc space-y-1 pl-5`,children:e.map(e=>(0,q.jsx)(`li`,{children:e},e))})}function S0(){let e=dl(),[t,n]=Zs(),[r]=kA(),i=e.data?.caseIds.filter(e=>!e.startsWith(`_`))??[],a=t.get(`case`),o=a&&i.includes(a)?a:i[0]??`<case-id>`,s=`<env>`,c=e.data?.root??`the workspace folder`;return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`AI guide`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`The steps below are the AI work, in order: write a case, check it against the real pages, turn it into a test, and repair that test when the product changes.`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`In the Web UI you never type a command: choose the step in a case's toolbar (or paste notes on Cases > From memo) and click Run AI. AsRun starts the AI tool chosen in the top bar and streams the output to Jobs, so you can keep working. To drive that tool yourself, the same four commands are ready to copy at the`,` `,(0,q.jsx)(`a`,{href:`#commands`,className:`text-theme-ink underline`,children:`end of the page`}),`.`]})]}),(0,q.jsx)(`ol`,{className:`space-y-5`,children:y0.map((e,t)=>(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`h2`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-1 font-serif text-base`,children:[(0,q.jsxs)(`span`,{children:[t+1,`. `,e.title]}),(0,q.jsxs)(`code`,{className:`text-sm font-normal text-ink-2`,children:[`/`,e.command]}),e.optional?(0,q.jsx)(ay,{tone:`gray`,children:`Optional`}):null]}),(0,q.jsx)(b0,{label:`What it does`,children:e.what}),(0,q.jsx)(b0,{label:`What you do`,children:(0,q.jsx)(x0,{items:e.you})}),(0,q.jsx)(b0,{label:`Next`,children:(0,q.jsx)(x0,{items:e.next})})]},e.command))}),(0,q.jsxs)(`section`,{className:`space-y-2 text-xs text-ink-2`,children:[(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Choosing the environment.`}),` Every step that opens real pages needs an environment, and none is picked for you: choose it in the toolbar. Use `,(0,q.jsx)(`code`,{children:`staging`}),` while you try things out.`]}),(0,q.jsxs)(`p`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`If a job needs your input.`}),` When a step ends with Needs your input, open the job in the Jobs bar and click Answer: keep the suggested sentences or write your own, and the same conversation continues and folds them into the case. After the UI server restarts, a job cannot be continued: answer in the case file and run the step again.`]})]}),(0,q.jsxs)(`section`,{id:`commands`,className:`space-y-3 border-t-2 border-line-mid pt-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:`Run the commands yourself`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-ink-2`,children:[`Nothing above needs a terminal: the buttons hand each command to the AI tool for you. If you would rather work in that tool yourself (to answer in its own chat, to watch every step, or on a machine without this UI), open a terminal in `,(0,q.jsx)(`code`,{className:`text-xs`,children:c}),` and use the same commands.`,` `,(0,q.jsx)(`code`,{children:`<env>`}),` stands for one of your environments, for example `,(0,q.jsx)(`code`,{children:`staging`}),`. Each command comes twice: typed into a running tool, or as a one-shot line for the shell. A one-shot run cannot answer, so whatever the agent cannot decide goes into the case file as a question; run it again once you have answered.`]})]}),(0,q.jsxs)(`div`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`Case`}),(0,q.jsxs)(by,{value:o,onChange:e=>n({case:e}),"aria-label":`Case`,mono:!0,className:`align-middle`,children:[i.length===0?(0,q.jsx)(`option`,{children:`<case-id>`}):null,i.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e))]})]}),(0,q.jsx)(`p`,{className:`mt-1.5 text-xs text-ink-3`,children:`The commands that take a case use this one.`})]}),(0,q.jsx)(`ol`,{className:`space-y-3`,children:y0.map((e,t)=>{let n=e.command;return(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`h3`,{className:`flex flex-wrap items-baseline gap-x-2 text-sm font-medium`,children:[(0,q.jsxs)(`span`,{children:[t+1,`. `,e.title]}),(0,q.jsxs)(`code`,{className:`font-normal text-ink-2`,children:[`/`,n]})]}),e.cli?(0,q.jsx)(`p`,{className:`mt-1 text-xs text-ink-2`,children:e.cli}):null,(0,q.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-ink-3`,children:[`Interactive: start `,(0,q.jsx)(`code`,{children:r}),`, then type`]}),(0,q.jsx)(yj,{text:n===`make-case`?`/make-case path/to/notes.md`:gc(n,o,{env:s})}),(0,q.jsx)(`p`,{className:`pt-1 text-xs text-ink-3`,children:`One-shot, from the shell`}),(0,q.jsx)(yj,{text:n===`make-case`?Pc(r,`path/to/notes.md`):Dc(r,n,o,{env:s})})]})]},n)})}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`About the one-shot lines.`}),` They cannot stop for permission, so each one allows up front what the agent needs`,r===`claude`?(0,q.jsxs)(q.Fragment,{children:[` `,`(`,(0,q.jsx)(`code`,{children:`--allowedTools`}),`, limited to the folders the command may change) and never allows`,` `,(0,q.jsx)(`code`,{children:`--allow-writes`}),`.`]}):(0,q.jsxs)(q.Fragment,{children:[` `,`(`,(0,q.jsx)(`code`,{children:`--auto`}),`), and `,(0,q.jsx)(`code`,{children:`--allow-writes`}),` is never added to it.`]}),` `,`Interactive mode asks you before each step instead.`]})]}),(0,q.jsx)(YA,{})]})}var C0=[{title:`Install and start`,command:`pnpm dlx @asrunjs/asrun init --install
|
|
330
|
+
pnpm go`,todo:[(0,q.jsx)(q.Fragment,{children:`Run both commands in your project folder. The first one adds AsRun and creates the workspace; the second one installs the browser, starts this UI and opens it in your browser.`}),(0,q.jsxs)(q.Fragment,{children:[`After the first time, `,(0,q.jsx)(`code`,{children:`pnpm go`}),` is enough.`]})]},{title:`Choose your AI tool`,todo:[(0,q.jsxs)(q.Fragment,{children:[`The top bar runs every AI command with `,(0,q.jsx)(`b`,{children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{children:`OpenCode`}),`. Select the one installed and signed in on this machine.`]}),(0,q.jsx)(q.Fragment,{children:`Pick a model next to it, or keep the default. The choice is remembered in this browser.`})],image:{src:`/help/ai-tools.png`,alt:`The model picker and the AI tool switch in the top bar.`,caption:`The AI tool switch and the model picker in the top bar.`}},{title:`Add a profile`,to:`/profiles`,where:`Profiles > Add a new profile`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Expand `,(0,q.jsx)(`b`,{children:`Add a new profile`}),` at the bottom of the page, fill in the form, then click `,(0,q.jsx)(`b`,{children:`Add profile`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`A new workspace starts with an example profile. Edit it to point at your site, or remove it if you do not need it.`})],image:{src:`/help/profile-form.png`,alt:`The profile form with its fields, above the Add profile button.`,caption:`The profile form at the bottom of the Profiles page.`}},{title:`Log in`,to:`/profiles`,where:`Profiles`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Login`}),` on the row of the profile. A browser window opens.`]}),(0,q.jsx)(q.Fragment,{children:`Sign in yourself, 2FA included.`}),(0,q.jsxs)(q.Fragment,{children:[`Click `,(0,q.jsx)(`b`,{children:`Done, save the session`}),` in the bottom-left corner of that window. The Login column then shows a green YES.`]})],note:(0,q.jsx)(q.Fragment,{children:`AsRun never types your credentials. A saved login stays on this machine and is as sensitive as a password.`}),image:{src:`/help/profiles-login.png`,alt:`The Profiles table with a Login button on each profile that is not signed in yet.`,caption:`Profiles: until you sign in, a row shows NO and a Login button.`}},{title:`Make cases from your notes`,to:`/cases/memo`,where:`Cases > From memo`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open `,(0,q.jsx)(`b`,{children:`Cases`}),` and switch to `,(0,q.jsx)(`b`,{children:`From memo`}),`.`]}),(0,q.jsxs)(q.Fragment,{children:[`Paste your notes as they are, then click `,(0,q.jsx)(`b`,{children:`Make cases`}),`.`]})],image:{src:`/help/cases-memo.png`,alt:`The From memo editor with the notes on the left and the rendered text on the right.`,caption:`From memo: write or paste your notes, then make cases.`}},{title:`Explore a case`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Open a case and choose `,(0,q.jsx)(`b`,{children:`Explore case`}),` in the toolbar.`]}),(0,q.jsxs)(q.Fragment,{children:[`Pick the environment and click `,(0,q.jsx)(`b`,{children:`Run AI`}),`. Keep `,(0,q.jsx)(`b`,{children:`Attended`}),` ticked: you do the steps that change data, and the agent waits for you.`]}),(0,q.jsxs)(q.Fragment,{children:[`If the run ends with `,(0,q.jsx)(`b`,{children:`Needs your input`}),`, answer under the output, or edit the case and run it again.`]})],image:{src:`/help/case-explore.png`,alt:`The case toolbar with Explore case, the environment picker, Attended and Run AI.`,caption:`The case toolbar: command, environment and Run AI.`}},{title:`Generate the spec`,to:`/cases`,where:`Cases`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Choose `,(0,q.jsx)(`b`,{children:`Generate spec`}),` in the same toolbar, pick the environment, then click `,(0,q.jsx)(`b`,{children:`Run AI`}),`.`]}),(0,q.jsx)(q.Fragment,{children:`It writes the spec; it does not run the tests.`})],image:{src:`/help/case-generate.png`,alt:`The same case toolbar with Generate spec selected.`,caption:`With Generate spec selected, Run AI writes the spec.`}},{title:`Run the tests`,to:`/run`,where:`Run tests`,todo:[(0,q.jsxs)(q.Fragment,{children:[`Pick the environment, tick the profiles, then click `,(0,q.jsx)(`b`,{children:`Run tests`}),`. The output streams in the Jobs bar.`]}),(0,q.jsxs)(q.Fragment,{children:[`On a case with visual checks, tick `,(0,q.jsx)(`b`,{children:`Update baselines`}),` for the first run.`]})],note:(0,q.jsx)(q.Fragment,{children:`By default a test only reads the product: nothing is created or changed. A case that writes data runs only in the environments it allows.`}),image:{src:`/help/run-tests.png`,alt:`The Run tests page with an environment chosen, the profiles ticked and the Run tests button below.`,caption:`Run tests: one environment, then the profiles.`}},{title:`Read the report`,to:`/reports`,where:`Reports`,todo:[(0,q.jsx)(q.Fragment,{children:`The latest run comes first, with failed cases on top.`}),(0,q.jsxs)(q.Fragment,{children:[`Click a case to see the failed step, the error and the video. `,(0,q.jsx)(`b`,{children:`Full Playwright report`}),` has the traces.`]}),(0,q.jsxs)(q.Fragment,{children:[`After a product change breaks a test, use `,(0,q.jsx)(`b`,{children:`Heal spec`}),` in the case toolbar.`]})],image:{src:`/help/reports.png`,alt:`A report with a failed case selected, showing the failed step, the error and the video.`,caption:`A failed case: the step, the error and the evidence.`}}];function w0(){return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`How to start`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-ink-2`,children:`AsRun turns plain-language test cases into Playwright tests, runs them for every profile and shows you the evidence. This guide takes you from a new project to a test report.`})]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:`Before you begin`}),(0,q.jsxs)(`ul`,{className:`mt-2 list-disc space-y-1 pl-5 text-sm text-ink-2`,children:[(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Node.js 22 or newer`}),` and `,(0,q.jsx)(`b`,{className:`text-ink`,children:`pnpm`}),`.`]}),(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`Claude Code`}),` or `,(0,q.jsx)(`b`,{className:`text-ink`,children:`OpenCode`}),` for the AI steps. You can add one later: the other steps work without it.`]})]})]}),(0,q.jsx)(`ol`,{className:`space-y-5`,children:C0.map((e,t)=>(0,q.jsxs)(`li`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-sm bg-theme-btn font-serif text-white shadow-btn`,children:t+1}),(0,q.jsx)(`h2`,{className:`font-serif text-lg`,children:e.title}),e.to?(0,q.jsxs)(qs,{to:e.to,className:`${Y()} ml-auto gap-1.5`,children:[e.where,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]}):null]}),e.command?(0,q.jsx)(`div`,{className:`mt-3`,children:(0,q.jsx)(yj,{text:e.command})}):null,(0,q.jsx)(`ol`,{className:`mt-3 list-decimal space-y-1 pl-9 text-sm marker:font-medium marker:text-theme-ink`,children:e.todo.map((e,t)=>(0,q.jsx)(`li`,{children:e},t))}),e.image?(0,q.jsxs)(`figure`,{className:`mt-3`,children:[(0,q.jsx)(`a`,{href:e.image.src,target:`_blank`,rel:`noreferrer`,title:`Open the screenshot at full size`,className:`block`,children:(0,q.jsx)(`img`,{src:e.image.src,alt:e.image.alt,loading:`lazy`,className:`block max-w-full rounded border border-line-mid shadow-paper`})}),e.image.caption?(0,q.jsx)(`figcaption`,{className:`mt-1.5 text-xs text-ink-2`,children:e.image.caption}):null]}):null,e.note?(0,q.jsx)(`p`,{className:`mt-3 rounded-sm border border-line-mid bg-warm p-2 text-xs text-ink-2`,children:e.note}):null]},e.title))}),(0,q.jsxs)(`p`,{className:`text-xs text-ink-2`,children:[(0,q.jsx)(`b`,{className:`text-ink`,children:`What's next:`}),` the`,` `,(0,q.jsx)(qs,{to:`/guide`,className:`text-qing-deep underline`,children:`AI guide`}),` `,`explains what each AI step does and has the same commands, ready to run in a terminal, and`,` `,(0,q.jsx)(`code`,{children:`README.md`}),` explains profiles, values and baselines.`]}),(0,q.jsx)(YA,{})]})}var T0=`data-tip`,E0=`:is(button, input, select, textarea):disabled:is([title], [${T0}])`,D0={theme:`tip`,placement:`top`,arrow:!0,maxWidth:320,offset:[0,8],touch:!1,appendTo:()=>document.body};function O0(e){let t=document.createElement(`div`);t.className=`tip-body`;for(let n of e.split(`
|
|
331
|
+
`)){if(n.trim()===``)continue;let e=document.createElement(`p`);n.startsWith(`# `)?(e.className=`tip-title`,e.textContent=n.slice(2)):e.textContent=n,t.append(e)}return t}function k0(e){let t=e.getAttribute(`title`);return t!==null&&(e.setAttribute(T0,t),e.removeAttribute(`title`)),e.getAttribute(T0)??``}function A0(){dV(document.body,{...D0,target:`[title]:not(iframe):not(:disabled), [${T0}]:not(:disabled)`,delay:[300,0],onTrigger:e=>{k0(e.reference)},onShow:e=>{let t=k0(e.reference);if(t===``)return!1;e.setContent(O0(t))}});let e=document.createElement(`span`),t=null,n=cV(e,{...D0,trigger:`manual`,getReferenceClientRect:()=>t??new DOMRect}),r=null,i,a=0,o=e=>{window.clearTimeout(i),e&&n.hide()},s=(e,a)=>{let s=[...document.querySelectorAll(E0)].find(t=>{let n=t.getBoundingClientRect();return e>=n.left&&e<=n.right&&a>=n.top&&a<=n.bottom})??null;s!==r&&(o(r),r=s,s&&(i=window.setTimeout(()=>{let e=k0(s);e!==``&&(t=s.getBoundingClientRect(),n.setContent(O0(e)),n.show())},300)))};document.addEventListener(`mousemove`,e=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>s(e.clientX,e.clientY))}),document.addEventListener(`mouseleave`,()=>s(-1,-1)),document.addEventListener(`mousedown`,()=>{o(r),r=null})}function j0(){let{jobId:e}=jo(),t=hl(),n=Do(),{startError:r,clearStartError:i,markSeen:a}=bl(),o=t.data?.find(t=>t.id===e)??null;return nl(e??null,a,t.data),(0,q.jsxs)(`div`,{"data-theme":`dai`,className:`flex h-full flex-col text-ink`,children:[(0,q.jsxs)(`header`,{className:`flex items-center gap-4 border-b-2 border-ink bg-paper px-4 py-2 shadow-paper`,children:[(0,q.jsx)(`span`,{className:`seal`,children:`A`}),(0,q.jsx)(`span`,{className:`font-serif tracking-widest`,children:il}),(0,q.jsx)(qs,{to:`/run`,className:`ml-auto text-sm text-ink-2 hover:text-ink`,children:`Back to the app`})]}),r?(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-seal/40 bg-seal-bg px-3 py-2 text-sm text-seal-deep`,children:[(0,q.jsx)(`span`,{children:r}),(0,q.jsx)(`button`,{className:`ml-auto text-xs underline`,onClick:i,children:`dismiss`})]}):null,o?(0,q.jsx)(rA,{job:o,openJob:e=>n(`/jobs/${e}`)},o.id):(0,q.jsx)(`p`,{className:`p-6 text-sm text-ink-2`,children:t.isPending?`Loading...`:`This job does not exist (any more). Jobs are forgotten when the UI server restarts.`})]})}function M0({request:e,label:t,description:n,disabledReason:r}){let{startJob:i}=bl(),a=hl().data?.some(e=>e.kind===`run`&&e.status===`running`)??!1,[o,s]=(0,K.useState)(null),[c,l]=(0,K.useState)(!1),u=Un({mutationFn:async()=>{let t=await cc.previewRun({env:e.env,profiles:e.profiles,suites:e.suites,grep:e.grep,readOnly:e.readOnly});t.needsConfirmation?(l(!1),s({request:e,preview:t})):await i(e)}});return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:!!r||a||u.isPending,title:r?`# Cannot run again\n${r}`:a?`# A run is in progress
|
|
332
|
+
Wait for it to finish, or stop it in the jobs drawer.`:`# ${t}\n${n}`,onClick:()=>u.mutate(),children:[(0,q.jsx)(Kf,{size:14,"aria-hidden":`true`}),t]}),u.isError?(0,q.jsx)(`span`,{className:`text-xs text-seal-deep`,children:u.error.message}):null,o?(0,q.jsxs)(AA,{title:`Cases that write data in ${o.preview.env.toUpperCase()}`,onClose:()=>s(null),footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:()=>s(null),children:`Cancel`}),(0,q.jsxs)(`button`,{className:Y(`danger`),disabled:!c,onClick:()=>{let e={...o.request,confirmWritesIn:o.preview.env};s(null),i(e)},children:[`Run in `,o.preview.env.toUpperCase()]})]}),children:[(0,q.jsx)(`ul`,{className:`mb-3 max-h-64 space-y-2 overflow-auto text-sm`,children:o.preview.writeCases.map(e=>(0,q.jsxs)(`li`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2`,children:[(0,q.jsx)(`div`,{className:`font-mono`,children:e.id}),(0,q.jsx)(`div`,{className:`text-ink-2`,children:e.note}),(0,q.jsxs)(`div`,{className:`text-xs text-ink-2`,children:[`Accounts: `,e.profiles.join(`, `)]})]},e.id))}),(0,q.jsx)(`p`,{className:`mb-3 text-xs text-ink-2`,children:`They only touch data of the test accounts and never send email in production.`}),o.preview.skippedWriteCases.length>0?(0,q.jsxs)(`p`,{className:`mb-3 text-xs text-ink-2`,children:[`Skipped, because they have no permission to write in `,o.preview.env.toUpperCase(),`:`,` `,o.preview.skippedWriteCases.map(e=>e.id).join(`, `),`.`]}):null,(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(e.target.checked)}),`I confirm that these cases may write test data in `,o.preview.env.toUpperCase(),`.`]})]}):null]})}var N0=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),P0=e=>e.replace(/(?<!\\)\//g,`[\\\\/]`),F0=e=>`(?:^|\\s)${P0(N0(e))}\\.spec\\.ts`,I0={passed:{tone:`green`,label:`Passed`},failed:{tone:`red`,label:`Failed`},flaky:{tone:`amber`,label:`Flaky`},skipped:{tone:`gray`,label:`Skipped`}},L0={failed:0,flaky:1,skipped:2,passed:3},R0=({status:e})=>(0,q.jsx)(ay,{tone:I0[e].tone,children:I0[e].label}),z0=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`,B0=e=>{let t=e.errors[0];return t?t.headline:null};function V0({result:e,action:t}){let[n,...r]=e.errors;if(!n)return null;let i=e.status===`flaky`;return(0,q.jsxs)(`div`,{className:`rounded border border-l-4 p-4 ${i?`border-gold-deep bg-gold-bg text-ink`:`border-seal bg-seal-bg text-ink`}`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-3 gap-y-2`,children:[(0,q.jsx)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:i?`Failed on the first try, passed on retry`:`Why it failed`}),t]}),e.failedStep?(0,q.jsxs)(`div`,{className:`mt-1 text-sm`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:`Step:`}),` `,e.failedStep]}):null,(0,q.jsx)(`p`,{className:`mt-2 text-base font-semibold break-words whitespace-pre-wrap`,children:n.headline}),n.context?(0,q.jsx)(`pre`,{className:`mt-2 max-h-48 overflow-auto rounded-sm bg-white/70 p-2 font-mono text-xs break-words whitespace-pre-wrap`,children:n.context}):null,r.length>0?(0,q.jsx)(`ul`,{className:`mt-3 list-disc space-y-1 pl-5 text-sm`,children:r.map((e,t)=>(0,q.jsx)(`li`,{className:`break-words whitespace-pre-wrap`,children:e.headline},t))}):null]})}function H0({result:e}){let t=e.errors.flatMap((e,t)=>[{label:`Call log`,key:`log-${t}`,text:e.callLog},{label:`Code`,key:`code-${t}`,text:e.snippet},{label:`Stack trace`,key:`stack-${t}`,text:e.stack}]).filter(e=>e.text);return t.length===0?null:(0,q.jsxs)(`details`,{className:`card-paper`,children:[(0,q.jsx)(`summary`,{className:`cursor-pointer px-4 py-2 text-sm font-medium text-ink`,children:`Technical details (for developers)`}),(0,q.jsx)(`div`,{className:`space-y-3 border-t border-line-mid p-4`,children:t.map(e=>(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{className:`mb-1 text-xs font-semibold tracking-widest text-ink-2 uppercase`,children:e.label}),(0,q.jsx)(`pre`,{className:`paper-grain max-h-64 overflow-auto rounded bg-dai-deep p-3 font-mono text-xs whitespace-pre-wrap text-paper`,children:e.text})]},e.key))})]})}var U0=/is not logged in to/,W0=e=>e.errors.some(e=>U0.test(e.headline));function G0({runId:e,result:t,env:n}){let[r,i]=(0,K.useState)(!1),[a]=kA(),o=dl().data?.caseIds.includes(t.caseId)??!1;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{className:`${Y(`danger`)} gap-1.5`,disabled:!o,title:o?`# Heal this failure
|
|
333
|
+
Asks the AI to read this report, decide whether the test or the product is wrong and fix the spec. Opens a dialog for the profiles and any clues.`:`# Case not found
|
|
334
|
+
The case file of this result no longer exists.`,onClick:()=>i(!0),children:[(0,q.jsx)(fp,{size:14,"aria-hidden":`true`}),`Heal this failure`]}),r?(0,q.jsx)(e1,{caseId:t.caseId,env:n,tool:a,report:e,initialProfile:t.profile,onClose:()=>i(!1)}):null]})}function K0({result:e,env:t,settings:n}){let r=n?.readOnly??!1,i=n?.stepText??!1;return(0,q.jsx)(M0,{label:`Re-run`,request:{action:`run`,env:t,profiles:[e.profile],grep:F0(e.caseId),stepText:i||void 0,readOnly:r||void 0},description:`Runs ${e.caseId} for ${e.profile} in ${t.toUpperCase()} again, with the settings of this report${r?` (read-only)`:``}${i?` (step text on the videos)`:``}.`})}function q0({runId:e,result:t,runEnv:n,settings:r}){let i=`/report-files/${e}/`,a=t.env??n??`production`,o=t.status===`failed`||t.status===`flaky`,s=dl().data?.caseIds.includes(t.caseId)??!1;return(0,q.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`h2`,{className:`font-mono text-base font-bold`,children:t.caseId}),(0,q.jsx)(ay,{tone:`gray`,children:t.profile}),(0,q.jsx)(sy,{env:t.env??n}),t.writes?(0,q.jsx)(cy,{}):null,(0,q.jsx)(R0,{status:t.status})]}),(0,q.jsx)(`p`,{className:`mt-1 text-sm text-ink-2`,children:t.title}),(0,q.jsxs)(`p`,{className:`mt-1 text-xs text-ink-2`,children:[z0(t.durationMs),t.attempts>1?`, ran ${t.attempts} times`:``]})]}),(0,q.jsx)(V0,{result:t,action:o&&!W0(t)?(0,q.jsx)(G0,{runId:e,result:t,env:a}):null}),t.screenshots.length>0||t.videos.length>0||t.video?(0,q.jsxs)(`div`,{className:`flex flex-wrap items-start gap-3`,children:[t.screenshots.map(e=>(0,q.jsx)(`a`,{href:i+e,target:`_blank`,rel:`noreferrer`,children:(0,q.jsx)(`img`,{src:i+e,alt:`Screenshot`,className:`max-h-56 rounded border border-line-mid shadow-paper`})},e)),(t.video?[t.video]:t.videos).map(e=>(0,q.jsx)(`video`,{src:i+e,controls:!0,className:`max-h-56 rounded border border-line-mid shadow-paper`},e))]}):null,(0,q.jsx)(H0,{result:t}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(K0,{result:t,env:a,settings:r}),s?(0,q.jsxs)(qs,{className:`${Y()} gap-1.5`,to:`/cases/${t.caseId}`,title:`Open this case in the Cases page`,children:[(0,q.jsx)(zl,{size:14,"aria-hidden":`true`}),`Go to the case`]}):(0,q.jsxs)(`span`,{className:`${Y()} gap-1.5`,"aria-disabled":`true`,title:`# Case not found
|
|
335
|
+
The case file of this result no longer exists.`,children:[(0,q.jsx)(zl,{size:14,"aria-hidden":`true`}),`Go to the case`]}),(0,q.jsx)(`a`,{className:Y(),href:`${i}#?testId=${t.testId}`,target:`_blank`,rel:`noreferrer`,children:`Open in the Playwright report (trace)`})]})]})}var J0={failed:`The run failed`,timedout:`The run timed out`,interrupted:`The run was interrupted`};function Y0({summary:e}){let t=e.errors??[],n=e.status,r=n!==void 0&&n!==`passed`&&e.counts.failed===0;return t.length===0&&!r?null:(0,q.jsxs)(`div`,{className:`border-b border-seal/40 border-l-4 border-l-seal bg-seal-bg px-4 py-3 text-ink`,children:[(0,q.jsx)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:(n&&J0[n])??`The run failed`}),t.length===0?(0,q.jsx)(`p`,{className:`mt-1 text-sm`,children:`No test reported a failure and no error was recorded. Check the terminal output of the run.`}):(0,q.jsx)(`ul`,{className:`mt-2 space-y-3`,children:t.map((e,t)=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`p`,{className:`text-sm font-semibold break-words whitespace-pre-wrap`,children:e.headline}),e.context||e.snippet||e.stack?(0,q.jsxs)(`details`,{className:`mt-1`,children:[(0,q.jsx)(`summary`,{className:`cursor-pointer text-xs text-seal-deep`,children:`Details`}),(0,q.jsx)(`pre`,{className:`mt-1 max-h-64 overflow-auto rounded bg-white/70 p-2 font-mono text-xs break-words whitespace-pre-wrap`,children:[e.context,e.snippet,e.stack].filter(Boolean).join(`
|
|
336
|
+
|
|
337
|
+
`)})]}):null]},t))})]})}function X0({summary:e}){let t=e.leftovers??[];return t.length===0?null:(0,q.jsxs)(`div`,{className:`border-b border-seal/40 border-l-4 border-l-seal bg-seal-bg px-4 py-3 text-ink`,children:[(0,q.jsxs)(`div`,{className:`text-xs font-semibold tracking-wide uppercase`,children:[`Test data left behind: delete it by hand (`,t.length,`)`]}),(0,q.jsx)(`ul`,{className:`mt-2 space-y-1 text-sm`,children:t.map(e=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(`span`,{className:`font-mono`,children:e.profile}),` `,(0,q.jsx)(sy,{env:e.env}),` `,e.kind,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:e.name}),e.where?(0,q.jsxs)(`span`,{className:`text-ink-2`,children:[` (look in `,e.where,`)`]}):null]},`${e.runId}-${e.profile}-${e.id}-${e.caseId}`))}),(0,q.jsxs)(`div`,{className:`mt-2 text-xs text-ink-2`,children:[(0,q.jsx)(`p`,{children:`Delete these by hand, then tell AsRun they are gone so the next report stops listing them:`}),(0,q.jsxs)(`pre`,{className:`mt-1 inline-block rounded bg-white/70 px-2 py-1 font-mono text-xs`,children:[`pnpm cleanup --env `,t[0].env,` --forget`]})]})]})}function Z0({runId:e,onShowReport:t}){let n=gl(e),[r,i]=(0,K.useState)(!0),[a,o]=(0,K.useState)(null),s=(0,K.useMemo)(()=>[...n.data?.results??[]].sort((e,t)=>L0[e.status]-L0[t.status]||e.caseId.localeCompare(t.caseId)||e.profile.localeCompare(t.profile)),[n.data]);if(n.isLoading)return(0,q.jsx)(`p`,{className:`p-6 text-sm text-ink-2`,children:`Loading...`});if(n.isError||!n.data)return(0,q.jsxs)(`div`,{className:`p-6 text-sm text-ink-2`,children:[(0,q.jsx)(`p`,{children:`This run has no summary (it was made before summaries existed).`}),(0,q.jsx)(`button`,{className:`${Y()} mt-3`,onClick:t,children:`Show the full Playwright report`})]});let{counts:c}=n.data,l=n.data.env??null,u=s.filter(e=>e.status===`failed`||e.status===`flaky`),d=r&&u.length>0?u:s,f=s.find(e=>e.testId===a)??d[0];return(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,q.jsxs)(`div`,{className:`px-4 py-1.5 text-sm font-bold tracking-widest ${oy(l)}`,children:[`These results are from `,(l??`production`).toUpperCase(),l===null?` (run made before environments existed)`:``]}),(0,q.jsx)(X0,{summary:n.data}),(0,q.jsx)(Y0,{summary:n.data}),(0,q.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,q.jsxs)(`div`,{className:`flex w-[26rem] shrink-0 flex-col border-r border-line-mid bg-card`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-mid bg-warm px-4 py-2 text-sm`,children:[(0,q.jsxs)(ay,{tone:`red`,children:[c.failed,` failed`]}),c.flaky>0?(0,q.jsxs)(ay,{tone:`amber`,children:[c.flaky,` flaky`]}):null,(0,q.jsxs)(ay,{tone:`green`,children:[c.passed,` passed`]}),c.skipped>0?(0,q.jsxs)(ay,{tone:`gray`,children:[c.skipped,` skipped`]}):null,u.length>0?(0,q.jsxs)(`label`,{className:`ml-auto flex items-center gap-1 text-xs text-ink-2`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),`Only problems`]}):null]}),(0,q.jsxs)(`ul`,{className:`min-h-0 flex-1 overflow-auto`,children:[d.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`button`,{className:`block w-full border-b border-line px-4 py-2 text-left hover:bg-warm ${e.testId===f?.testId?`bg-theme-bg`:``}`,onClick:()=>o(e.testId),children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`truncate font-mono text-sm`,children:e.caseId}),(0,q.jsx)(ay,{tone:`gray`,children:e.profile}),e.writes?(0,q.jsx)(cy,{}):null,(0,q.jsx)(`span`,{className:`ml-auto shrink-0`,children:(0,q.jsx)(R0,{status:e.status})})]}),B0(e)?(0,q.jsx)(`div`,{className:`mt-1 line-clamp-2 text-xs break-words text-seal-deep`,children:B0(e)}):null]})},e.testId)),d.length===0?(0,q.jsx)(`li`,{className:`p-4 text-sm text-ink-2`,children:`No tests in this run.`}):null]})]}),(0,q.jsx)(`div`,{className:`min-w-0 flex-1 overflow-auto`,children:f?(0,q.jsx)(q0,{runId:e,result:f,runEnv:l,settings:n.data.settings},f.testId):null})]})]})}var Q0=e=>`rounded px-3 py-1 text-sm font-medium transition-colors ${e?`bg-theme-bg text-theme-ink`:`text-ink-2 hover:bg-warm hover:text-ink`}`;function $0({runId:e}){let t=gl(e).data,n=t?.settings,r=t?.env,i=t?!n||!r?`This run was made before its settings were recorded. Start it again from the Run tests page.`:n.only?`This report is one part of a run that was split to overwrite screenshot baselines. Start it again from the Run tests page.`:void 0:`The summary of this run is not available.`;return(0,q.jsx)(M0,{label:`Re-run all`,disabledReason:i,request:{action:`run`,env:r??``,profiles:n?.profiles??void 0,suites:n?.suites.length?n.suites:void 0,grep:n?.grep,stepText:n?.stepText||void 0,readOnly:n?.readOnly||void 0},description:n?`Runs everything of this report again in ${r?.toUpperCase()}: ${n.profiles?`profiles ${n.profiles.join(`, `)}`:`all profiles`}${n.suites.length?`, suites ${n.suites.join(`, `)}`:``}${n.grep?`, case filter "${n.grep}"`:``}${n.readOnly?`, read-only`:``}${n.stepText?`, step text on the videos`:``}.`:``})}function e2(){let{runId:e}=jo(),t=ml(),n=t.data??[],r=e??`latest`,i=r===`latest`?n.find(e=>e.isLatest)?.id??`latest`:r,[a,o]=(0,K.useState)(`results`);return!e&&t.isSuccess&&n.length>0?(0,q.jsx)(Es,{to:`/reports/latest`,replace:!0}):(0,q.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,q.jsxs)(`aside`,{className:`w-64 shrink-0 overflow-auto border-r border-line-mid bg-card`,children:[(0,q.jsx)(`h1`,{className:`eyebrow border-l-4 border-theme px-3 py-3 text-sm`,children:`Test runs`}),t.isSuccess&&n.length===0?(0,q.jsx)(`p`,{className:`px-4 text-sm text-ink-2`,children:`No report yet. Start a run on the "Run tests" page.`}):null,(0,q.jsx)(`ul`,{children:n.map(t=>{let n=e===t.id||r===`latest`&&t.isLatest;return(0,q.jsx)(`li`,{children:(0,q.jsxs)(qs,{to:`/reports/${t.isLatest&&r===`latest`?`latest`:t.id}`,className:`block border-b border-line px-4 py-2 text-sm hover:bg-warm ${n?`bg-theme-bg`:``}`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(sy,{env:t.env}),(0,q.jsx)(`span`,{children:xy(t.createdAt)})]}),(0,q.jsxs)(`div`,{className:`font-mono text-xs text-ink-2`,children:[t.id,t.isLatest?` (latest)`:``]}),t.counts?(0,q.jsxs)(`div`,{className:`mt-1 flex gap-1`,children:[t.counts.failed>0?(0,q.jsxs)(ay,{tone:`red`,children:[t.counts.failed,` failed`]}):null,t.counts.flaky>0?(0,q.jsxs)(ay,{tone:`amber`,children:[t.counts.flaky,` flaky`]}):null,(0,q.jsxs)(ay,{tone:`green`,children:[t.counts.passed,` passed`]})]}):null]})},t.id)})})]}),(0,q.jsx)(`section`,{className:`flex min-w-0 flex-1 flex-col`,children:n.length>0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-line-mid bg-warm px-4 py-2`,children:[(0,q.jsx)(`button`,{className:Q0(a===`results`),onClick:()=>o(`results`),children:`Results`}),(0,q.jsx)(`button`,{className:Q0(a===`report`),onClick:()=>o(`report`),children:`Full Playwright report`}),(0,q.jsx)(sy,{env:n.find(e=>e.id===i)?.env??null}),(0,q.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:i}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,q.jsx)($0,{runId:i}),(0,q.jsx)(`a`,{className:Y(),href:`/report-files/${i}/`,target:`_blank`,rel:`noreferrer`,children:`Open in new tab`})]})]}),a===`results`?(0,q.jsx)(Z0,{runId:i,onShowReport:()=>o(`report`)},i):(0,q.jsx)(`iframe`,{title:`Playwright report`,src:`/report-files/${i}/`,className:`min-h-0 flex-1 bg-white`},i)]}):null})]})}function t2({value:e,onChange:t,options:n,placeholder:r,ariaLabel:i,className:a=``,mono:o=!1}){let s=(0,K.useRef)(null),c=(0,K.useRef)(null),l=(0,K.useRef)(null),u=(0,K.useId)(),[d,f]=(0,K.useState)(!1),[p,m]=(0,K.useState)(0),h=e.trim().toLowerCase(),g=n.some(e=>e.value.toLowerCase()===h),_=(0,K.useMemo)(()=>h===``||g?n:n.filter(e=>[e.value,e.hint??``].some(e=>e.toLowerCase().includes(h))),[n,h,g]);(0,K.useEffect)(()=>{m(e=>Math.max(0,Math.min(e,_.length-1)))},[_.length]),(0,K.useEffect)(()=>{d&&l.current?.querySelector(`[data-row="${p}"]`)?.scrollIntoView({block:`nearest`})},[p,d]),(0,K.useEffect)(()=>{if(!d)return;let e=e=>{s.current?.contains(e.target)||f(!1)};return window.addEventListener(`mousedown`,e),()=>window.removeEventListener(`mousedown`,e)},[d]);let v=e=>{t(e.value),f(!1),c.current?.focus()};return(0,q.jsxs)(`div`,{ref:s,className:`relative ${a}`,onClick:()=>{c.current?.focus(),f(!0)},children:[(0,q.jsx)(Xf,{size:14,className:`pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-ink-2`,"aria-hidden":`true`}),(0,q.jsx)(`input`,{ref:c,type:`text`,role:`combobox`,"aria-label":i,"aria-expanded":d,"aria-controls":u,"aria-autocomplete":`list`,"aria-activedescendant":d&&_[p]?`${u}-${p}`:void 0,autoComplete:`off`,placeholder:r,value:e,onChange:e=>{t(e.target.value),m(0),f(!0)},onFocus:()=>f(!0),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!d){f(!0),m(e.key===`ArrowDown`?0:Math.max(0,_.length-1));return}let t=Math.max(0,Math.min(_.length-1,p+(e.key===`ArrowDown`?1:-1)));m(t)}else if(e.key===`Enter`&&d){e.preventDefault();let t=_[p];t&&v(t)}else e.key===`Escape`&&d&&(e.preventDefault(),f(!1))},className:`${hy} block h-8 w-full py-0 pl-8 pr-8 ${o?`font-mono`:``}`}),e===``?(0,q.jsx)(lu,{size:14,className:`pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 text-ink-2`,"aria-hidden":`true`}):(0,q.jsx)(`button`,{type:`button`,"aria-label":`Clear`,title:`Clear`,onClick:e=>{e.stopPropagation(),t(``),c.current?.focus(),f(!0)},className:`absolute top-1/2 right-2 -translate-y-1/2 rounded p-0.5 text-ink-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-theme/25 focus-visible:outline-none`,children:(0,q.jsx)(wp,{size:14,"aria-hidden":`true`})}),d?(0,q.jsx)(`div`,{ref:l,id:u,role:`listbox`,"aria-label":i,className:`card-popup absolute inset-x-0 top-full z-30 mt-1 max-h-64 overflow-auto p-1`,children:_.length===0?(0,q.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-ink-3`,children:`No match.`}):_.map((t,n)=>(0,q.jsxs)(`div`,{id:`${u}-${n}`,"data-row":n,role:`option`,"aria-selected":t.value===e,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),v(t)},onMouseEnter:()=>m(n),className:`cursor-pointer rounded-sm px-2 py-1.5 text-sm transition-colors ${n===p?`bg-theme-bg text-theme-ink`:`text-ink hover:bg-warm`}`,children:[(0,q.jsx)(`span`,{className:`block truncate ${o?`font-mono`:``}`,children:t.value}),t.hint?(0,q.jsx)(`span`,{className:`block truncate text-[11px] text-ink-3`,children:t.hint}):null]},t.value))}):null]})}function n2(){let e=fl(),t=dl(),n=hl(),r=Hn({queryKey:[`cases`],queryFn:cc.cases}),{startJob:i,selectJob:a}=bl(),o=Do(),s=To().state?.case,[c,l]=(0,K.useState)(null),[u,d]=(0,K.useState)(new Map),[f,p]=(0,K.useState)(new Set),[m,h]=(0,K.useState)(!1),[g,_]=(0,K.useState)(null),[v,y]=(0,K.useState)(!1),[b,x]=(0,K.useState)(typeof s==`string`?s:``),[S,C]=(0,K.useState)(!1),[w,T]=(0,K.useState)(new Set),[E,D]=(0,K.useState)(null),O=n.data?.find(e=>e.kind===`run`&&e.status===`running`),k=e.data?.envs??[],A=c??(k.includes(`staging`)?`staging`:null),j=(e.data?.profiles??[]).filter(e=>e.env===A),M=e=>e.status===`missing`||e.status===`expired`,N=e=>u.get(e.id)??!M(e),P=j.filter(N),ee=P.filter(M),[F,I]=(0,K.useState)(b);(0,K.useEffect)(()=>{let e=setTimeout(()=>I(b),300);return()=>clearTimeout(e)},[b]);let te=P.length===j.length?void 0:P.map(e=>e.id),ne=[...f].sort(),L=Hn({queryKey:[`run-plan`,A,te,ne,m,F.trim()],queryFn:()=>cc.planRun({env:A,profiles:te,suites:ne.length>0?ne:void 0,grep:F.trim()||void 0,readOnly:m||void 0}),enabled:A!==null&&P.length>0,placeholderData:Bt,retry:!1}),R=new Set((L.data?.cases??[]).filter(e=>e.skip===null).map(e=>e.id)),z=[...w].filter(e=>R.has(e)).sort(),B=L.isFetching||L.isPlaceholderData||b!==F,V=!!L.data&&!B&&(L.data.error!==null||L.data.totalTests===0),re=F.trim().toLowerCase(),ie=(r.data??[]).filter(e=>!e.hasSpec).filter(e=>re===``||e.id.toLowerCase().includes(re)||(e.title??``).toLowerCase().includes(re)),ae=(0,K.useMemo)(()=>(r.data??[]).filter(e=>e.hasSpec).map(e=>({value:e.id,hint:e.title??void 0})),[r.data]),H=Un({mutationFn:async e=>{let t=await cc.previewRun({env:e.env,profiles:e.profiles,suites:e.suites,grep:e.grep,readOnly:e.readOnly});t.needsConfirmation?(y(!1),_({request:e,preview:t})):await i(e)}}),oe=(e,t,n)=>{let r=new Set(e);r.has(t)?r.delete(t):r.add(t),n(r)};return(0,q.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-6 p-6`,children:[(0,q.jsx)(`h1`,{className:`font-serif text-2xl tracking-wide border-l-4 border-theme pl-3`,children:`Run tests`}),(0,q.jsx)(`p`,{className:`text-sm text-ink-2`,children:`Runs the tests of the matching cases, once for each profile. Only a case that has a spec can run: generate the spec on the Cases page. When the run finishes, read the result under Reports.`}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsx)(`h2`,{className:`eyebrow mb-2 text-sm text-theme-ink`,children:`Environment (required)`}),(0,q.jsx)(`div`,{className:`flex flex-wrap items-center gap-4`,children:k.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`radio`,name:`env`,checked:A===e,onChange:()=>{l(e),d(new Map)}}),(0,q.jsx)(sy,{env:e})]},e))}),A===null?(0,q.jsx)(`p`,{className:`mt-2 text-xs text-ink-2`,children:`Choose where to run. There is no default.`}):null]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsxs)(`h2`,{className:`eyebrow mb-2 text-sm text-theme-ink`,children:[`Profiles`,A?` in ${A.toUpperCase()}`:``]}),A===null?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Choose an environment first.`}):null,(0,q.jsx)(`ul`,{className:`space-y-1`,children:j.map(e=>(0,q.jsx)(`li`,{children:(0,q.jsxs)(`label`,{className:`flex items-center gap-3 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:N(e),onChange:()=>d(new Map(u).set(e.id,!N(e)))}),(0,q.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,q.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:e.id}),(0,q.jsx)(uy,{status:e.status})]})},e.id))}),ee.length>0?(0,q.jsxs)(`p`,{className:`mt-3 rounded-sm border border-gold/50 bg-gold-bg p-2 text-xs text-warn-ink`,children:[`Not logged in: `,ee.map(e=>e.id).join(`, `),`. Their tests will fail right away. Log in on the Profiles page or untick them.`]}):null]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,children:[(0,q.jsx)(`h2`,{className:`eyebrow mb-2 text-sm text-theme-ink`,children:`Filters (optional)`}),(0,q.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`Suite:`}),t.data?.suites.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-1 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:f.has(e),onChange:()=>oe(f,e,p)}),e]},e)),f.size===0?(0,q.jsx)(`span`,{className:`text-xs text-ink-2`,children:`(all)`}):null]}),(0,q.jsxs)(`label`,{className:`mb-3 flex items-center gap-2 text-sm`,title:`Cases that create or change data are left out of this run, so nothing in the product is touched`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:m,onChange:e=>h(e.target.checked)}),`Read-only: leave out the cases that write data`]}),(0,q.jsxs)(`div`,{className:`mb-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-ink-2`,children:`Case`}),(0,q.jsx)(t2,{className:`mt-1 w-full`,value:b,onChange:x,options:ae,placeholder:`e.g. hub-landing`,ariaLabel:`Case to run`,mono:!0}),(0,q.jsx)(`span`,{className:`mt-1 block text-xs text-ink-2`,children:`Only cases that have a spec can run; part of the name is enough. Clear the field to run every case.`})]}),(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,title:`Shows the current step on the video of each test, so a recording says which step was on screen`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:S,onChange:e=>C(e.target.checked)}),`Overlay the current step on the videos`]})]}),(0,q.jsxs)(`section`,{className:`card-paper p-4`,"aria-live":`polite`,children:[(0,q.jsxs)(`h2`,{className:`eyebrow mb-2 flex flex-wrap items-center gap-2 text-sm text-theme-ink`,children:[`Tests to run`,L.data&&L.data.error===null?(0,q.jsx)(`span`,{title:`# Tests to run
|
|
338
|
+
One test per case and profile. A case with no spec is not listed.`,children:(0,q.jsxs)(ay,{tone:L.data.totalTests===0?`red`:`blue`,children:[L.data.totalCases,` `,L.data.totalCases===1?`case`:`cases`,` · `,L.data.totalTests,` `,L.data.totalTests===1?`test`:`tests`]})}):null,B&&A!==null&&P.length>0?(0,q.jsx)(`span`,{className:`text-xs font-normal text-ink-2`,children:`Checking…`}):null]}),A===null?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Choose an environment first.`}):P.length===0?(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Select at least one profile.`}):L.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:L.error.message}):L.data?.error?(0,q.jsxs)(`p`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2 text-sm text-seal-deep`,children:[`The filters cannot be applied: `,(0,q.jsx)(`code`,{children:L.data.error})]}):L.data&&L.data.cases.length===0?(0,q.jsxs)(`div`,{className:`rounded-sm border border-gold/50 bg-gold-bg p-2 text-sm text-warn-ink`,children:[(0,q.jsx)(`p`,{className:`font-medium`,children:`No test to run yet`}),(0,q.jsxs)(`p`,{className:`mt-1`,children:[`A case runs only after its spec has been generated. Check the suite, the case search and the profiles; if the matching case has no spec, open it on the Cases page and choose `,(0,q.jsx)(`b`,{children:`Generate spec`}),`.`]}),ie.length>0?(0,q.jsxs)(`p`,{className:`mt-1 text-xs`,children:[`Cases with no spec yet:`,` `,(0,q.jsxs)(`span`,{className:`font-mono`,children:[ie.slice(0,5).map(e=>e.id).join(`, `),ie.length>5?` and ${ie.length-5} more`:``]})]}):null,(0,q.jsxs)(qs,{className:`${Y()} mt-2 gap-1.5`,to:`/cases`,children:[`Open the Cases page`,(0,q.jsx)(zl,{size:14,"aria-hidden":`true`})]})]}):L.data?(0,q.jsxs)(q.Fragment,{children:[L.data.totalTests===0?(0,q.jsxs)(`p`,{className:`mb-2 rounded-sm border border-gold/50 bg-gold-bg p-2 text-sm text-warn-ink`,children:[`Every matching case is skipped in `,L.data.env.toUpperCase(),`. Nothing would run: the reason is next to each case.`]}):null,(0,q.jsx)(`ul`,{className:`max-h-64 space-y-1 overflow-auto text-sm`,children:L.data.cases.map(e=>(0,q.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2 ${e.skip?`text-ink-3`:``}`,children:[(0,q.jsx)(`span`,{className:`font-mono ${e.skip?`line-through`:``}`,children:e.id}),e.writes?(0,q.jsx)(cy,{}):null,e.skip?(0,q.jsxs)(`span`,{className:`text-xs`,children:[`Skipped: `,e.skip]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`font-mono text-xs text-ink-2`,children:e.profiles.join(`, `)}),(0,q.jsxs)(`label`,{className:`ml-auto flex items-center gap-1.5 text-xs text-ink-2`,title:`Overwrite the screenshot baselines of this case with what the pages show now, instead of comparing with them`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:w.has(e.id),onChange:()=>oe(w,e.id,T)}),`Update baselines`,(0,q.jsxs)(`span`,{className:`text-ink-3`,children:[`(`,e.baselineCount===0?`none yet`:`${e.baselineCount} image${e.baselineCount===1?``:`s`}`,`)`]})]})]})]},e.id))})]}):(0,q.jsx)(`p`,{className:`text-xs text-ink-2`,children:`Checking…`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsxs)(`button`,{className:`${Y(`success`)} gap-1.5`,disabled:A===null||P.length===0||!!O||H.isPending||V,title:A===null?`Choose an environment first`:P.length===0?`Select at least one profile`:O?`A run is already in progress: show its output first`:V?`Nothing to run: no test matches these filters, or every match is skipped here`:void 0,onClick:()=>{if(A===null)return;let e={action:`run`,env:A,profiles:te,suites:f.size>0?[...f]:void 0,grep:b.trim()||void 0,stepText:S||void 0,readOnly:m||void 0,updateBaselines:z.length>0?z:void 0};z.length>0?D({request:e,ids:z}):H.mutate(e)},children:[(0,q.jsx)(Pf,{size:14,"aria-hidden":`true`}),A===null?`Run tests`:`Run tests in ${A.toUpperCase()}`]}),O?(0,q.jsx)(`button`,{className:Y(),onClick:()=>a(O.id),children:`A run is in progress: show output`}):null,(0,q.jsx)(`button`,{className:Y(),onClick:()=>o(`/reports`),children:`Open reports`})]}),H.isError?(0,q.jsx)(`p`,{className:`text-sm text-seal-deep`,children:H.error.message}):null,E?(0,q.jsxs)(AA,{title:`Overwrite screenshot baselines?`,onClose:()=>D(null),footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:()=>D(null),children:`Cancel`}),(0,q.jsx)(`button`,{className:`${Y(`danger`)} gap-1.5`,disabled:H.isPending,onClick:()=>{let e=E.request;D(null),T(new Set),H.mutate(e)},children:`Overwrite baselines and run`})]}),children:[(0,q.jsx)(`p`,{className:`mb-2 text-sm`,children:`These cases will not be compared with their baselines in this run. The images are replaced with what the pages show now, and the cases cannot fail on a visual check:`}),(0,q.jsx)(`ul`,{className:`mb-3 max-h-40 list-disc overflow-auto pl-5 font-mono text-xs`,children:E.ids.map(e=>(0,q.jsx)(`li`,{children:e},e))}),(0,q.jsx)(`p`,{className:`rounded-sm border border-gold/50 bg-gold-bg p-2 text-xs text-warn-ink`,children:`A wrong baseline stays wrong: if a check picks the wrong element, the new image shows the wrong element too. Make sure the spec looks at the element its target card names, then open the new images when the run is done (the job output shows them next to the card).`})]}):null,g?(0,q.jsxs)(AA,{title:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(cy,{}),` Cases that write data in `,(0,q.jsx)(sy,{env:g.preview.env})]}),onClose:()=>_(null),footer:(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(`button`,{className:Y(),onClick:()=>_(null),children:`Cancel`}),(0,q.jsxs)(`button`,{className:Y(`danger`),disabled:!v,onClick:()=>{let e={...g.request,confirmWritesIn:g.preview.env};_(null),i(e)},children:[`Run in `,g.preview.env.toUpperCase()]})]}),children:[(0,q.jsx)(`ul`,{className:`mb-3 max-h-64 space-y-2 overflow-auto text-sm`,children:g.preview.writeCases.map(e=>(0,q.jsxs)(`li`,{className:`rounded-sm border border-seal/30 bg-seal-bg p-2`,children:[(0,q.jsx)(`div`,{className:`font-mono`,children:e.id}),(0,q.jsx)(`div`,{className:`text-ink-2`,children:e.note}),(0,q.jsxs)(`div`,{className:`text-xs text-ink-2`,children:[`Profiles: `,e.profiles.join(`, `)]})]},e.id))}),(0,q.jsx)(`p`,{className:`mb-3 text-xs text-ink-2`,children:`They only touch data of the test accounts and never send email in production.`}),g.preview.skippedWriteCases.length>0?(0,q.jsxs)(`p`,{className:`mb-3 text-xs text-ink-2`,children:[`Skipped, because they have no permission to write in `,g.preview.env.toUpperCase(),`:`,` `,g.preview.skippedWriteCases.map(e=>e.id).join(`, `),`.`]}):null,(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:v,onChange:e=>y(e.target.checked)}),`I confirm that these cases may write test data in `,g.preview.env.toUpperCase(),`.`]})]}):null]})}A0();var r2=new On({defaultOptions:{queries:{refetchOnWindowFocus:!0,retry:1}}}),i2=Ws([{path:`/`,element:(0,q.jsx)(xl,{children:(0,q.jsx)(JA,{})}),children:[{index:!0,element:(0,q.jsx)(Es,{to:`/profiles`,replace:!0})},{path:`profiles`,element:(0,q.jsx)(Mj,{})},{path:`cases/*`,element:(0,q.jsx)(v0,{})},{path:`run`,element:(0,q.jsx)(n2,{})},{path:`reports/:runId?`,element:(0,q.jsx)(e2,{})},{path:`guide`,element:(0,q.jsx)(S0,{})},{path:`help`,element:(0,q.jsx)(w0,{})}]},{path:`jobs/:jobId`,element:(0,q.jsx)(xl,{children:(0,q.jsx)(j0,{})})}]);(0,ac.createRoot)(document.getElementById(`root`)).render((0,q.jsx)(K.StrictMode,{children:(0,q.jsx)(_t,{client:r2,children:(0,q.jsx)(ic,{router:i2})})}));export{bF as a,yF as i,lK as n,AI as o,dG as r,ZK as t};
|