@capagents/forgeqe 3.4.0 → 3.4.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.
Files changed (106) hide show
  1. package/dist/forgeqe.js +2049 -2049
  2. package/dist/template.html +63 -63
  3. package/dist/web/assets/{3d-force-graph-COJCPPtP.js → 3d-force-graph-B-g_aIro.js} +1 -1
  4. package/dist/web/assets/Agent-C5oBtGk7.js +10 -0
  5. package/dist/web/assets/{AgentWork-B28xaxOA.js → AgentWork-DJ8Vs06n.js} +1 -1
  6. package/dist/web/assets/ApiTests-BLCfYh51.js +17 -0
  7. package/dist/web/assets/{Browse-vulmdCCu.js → Browse-DLECqaFU.js} +1 -1
  8. package/dist/web/assets/Chat-Cv8DeS-_.js +3 -0
  9. package/dist/web/assets/{CommandPalette-gLmXo4vu.js → CommandPalette-x_RA-vYW.js} +1 -1
  10. package/dist/web/assets/Compare-DaIqZceW.js +1 -0
  11. package/dist/web/assets/Cost-CITIwCiU.js +1 -0
  12. package/dist/web/assets/{Data-jwfy5h4u.js → Data-DSoaKTFT.js} +4 -4
  13. package/dist/web/assets/Desktop-CSaj8gd9.js +1 -0
  14. package/dist/web/assets/{DesktopReview-BNcHZZdH.js → DesktopReview-Dz5XOBgo.js} +2 -2
  15. package/dist/web/assets/Evidence-WRJ5Ocx1.js +1 -0
  16. package/dist/web/assets/Explore-CnsxID-z.js +2 -0
  17. package/dist/web/assets/Features-Do6F_oaP.js +1 -0
  18. package/dist/web/assets/Flags-KtTYNU6g.js +2 -0
  19. package/dist/web/assets/Flaky-BBPNCZOq.js +1 -0
  20. package/dist/web/assets/Impact-DXpXmLyE.js +3 -0
  21. package/dist/web/assets/Jobs-Fj0wBOAO.js +5 -0
  22. package/dist/web/assets/KindPage--MHC32ho.js +6 -0
  23. package/dist/web/assets/{LiveDevice-fsRa0HWk.js → LiveDevice-CuJzvCUi.js} +1 -1
  24. package/dist/web/assets/Migration-6aYe_2EG.js +8 -0
  25. package/dist/web/assets/Mobile-Dv6f7u3D.js +1 -0
  26. package/dist/web/assets/Observability-Dqb01Eyo.js +1 -0
  27. package/dist/web/assets/{OwnItems-DcfXa2ig.js → OwnItems-BWX70VhE.js} +3 -3
  28. package/dist/web/assets/{PageAgent-Cf6cES5X.js → PageAgent-CPVv-rb3.js} +1 -1
  29. package/dist/web/assets/Product-Bg8GLZO1.js +6 -0
  30. package/dist/web/assets/Production-D_-UKwAW.js +1 -0
  31. package/dist/web/assets/Quality-AK4ooDrk.js +1 -0
  32. package/dist/web/assets/Readiness-oW5ApJNH.js +1 -0
  33. package/dist/web/assets/Record-DB3vbV-C.js +1 -0
  34. package/dist/web/assets/Regression-DuYa0h-o.js +5 -0
  35. package/dist/web/assets/{RelationGraph-CKUt2nN9.js → RelationGraph-CrEnF6ZB.js} +1 -1
  36. package/dist/web/assets/Reports-1mP0MxVQ.js +2 -0
  37. package/dist/web/assets/Requirements-BRXFZQuu.js +2 -0
  38. package/dist/web/assets/Responsive-CnoYMfsl.js +3 -0
  39. package/dist/web/assets/RunDiff-Wro2Olyz.js +1 -0
  40. package/dist/web/assets/Settings-DBCDjRxF.js +21 -0
  41. package/dist/web/assets/SiteScan-BkdOUe_S.js +5 -0
  42. package/dist/web/assets/Steps-ndafqk8T.js +2 -0
  43. package/dist/web/assets/TestData-4P28hX0Q.js +2 -0
  44. package/dist/web/assets/TestManagement-Dohg2yyF.js +4 -0
  45. package/dist/web/assets/{WhatsNew-BwOrUNiN.js → WhatsNew-Bcv9S0Tj.js} +1 -1
  46. package/dist/web/assets/{agentSettingsSheet-Dti2gac2.js → agentSettingsSheet-ElGgFEeo.js} +1 -1
  47. package/dist/web/assets/{api-CLFzGvjv.js → api-B8AQ8-Gb.js} +1 -1
  48. package/dist/web/assets/{dataParts-BO1c58Zl.js → dataParts-_MZY-U_N.js} +3 -3
  49. package/dist/web/assets/{desktopAppPath-BQG20MeU.js → desktopAppPath-Mg0cuo3X.js} +1 -1
  50. package/dist/web/assets/{flowTheme-CBFdbvyc.js → flowTheme-BcMJKyow.js} +1 -1
  51. package/dist/web/assets/frame-wloj3-xC.js +139 -0
  52. package/dist/web/assets/index-BCu9qAny.js +47 -0
  53. package/dist/web/assets/index-BEY6ZWQm.css +2 -0
  54. package/dist/web/assets/{nav--Ztl9BFf.js → nav-DRpijFeN.js} +1 -1
  55. package/dist/web/assets/pageBack-CINGjBHZ.js +9 -0
  56. package/dist/web/assets/{palette-CX3RCtC1.js → palette-DOQemIAv.js} +1 -1
  57. package/dist/web/assets/{paletteCommands-DOF2o-rv.js → paletteCommands-Bx61jZay.js} +1 -1
  58. package/dist/web/assets/{parts-DAsJI5QF.js → parts-BNAiSyF0.js} +1 -1
  59. package/dist/web/assets/{productParts-DU5Mqpy8.js → productParts-Pp0gh7QX.js} +1 -1
  60. package/dist/web/assets/qualityParts-diTrGtUR.js +3 -0
  61. package/dist/web/assets/{recordTest-B5LNeQFu.js → recordTest-S5MOLSrL.js} +1 -1
  62. package/dist/web/assets/sectionList-BPBmSZXk.js +1 -0
  63. package/dist/web/assets/{stepper-DpPfKWnN.js → stepper-B7sbuU1Q.js} +1 -1
  64. package/dist/web/assets/{wizardParts-DfQICLTv.js → wizardParts-OhFd_xL2.js} +1 -1
  65. package/dist/web/index.html +8 -8
  66. package/package.json +1 -1
  67. package/py/forgeqe_engine/diagnostics.py +87 -6
  68. package/py/forgeqe_engine/recordsession.py +4 -1
  69. package/dist/web/assets/Agent-CpUTlFZ-.js +0 -10
  70. package/dist/web/assets/ApiTests-lM99MWdo.js +0 -17
  71. package/dist/web/assets/Chat-C5HT3xQ6.js +0 -3
  72. package/dist/web/assets/Compare-8UYX74Lj.js +0 -1
  73. package/dist/web/assets/Cost-AXBTBBCh.js +0 -1
  74. package/dist/web/assets/Desktop-Cj3xG2xu.js +0 -1
  75. package/dist/web/assets/Evidence-jLpLvuuq.js +0 -1
  76. package/dist/web/assets/Explore-CdVHaJw9.js +0 -2
  77. package/dist/web/assets/Features-Cklg138_.js +0 -1
  78. package/dist/web/assets/Flags-Db14UE8F.js +0 -2
  79. package/dist/web/assets/Flaky-Co8pOPGY.js +0 -1
  80. package/dist/web/assets/Impact-DxC0ik4k.js +0 -3
  81. package/dist/web/assets/Jobs-C-8bg8Pd.js +0 -5
  82. package/dist/web/assets/KindPage-BeFuktfD.js +0 -6
  83. package/dist/web/assets/Migration-CMYz77fl.js +0 -8
  84. package/dist/web/assets/Mobile-BmMA0xV2.js +0 -1
  85. package/dist/web/assets/Observability-CH1Ww9a0.js +0 -1
  86. package/dist/web/assets/Product-DmaqhVyO.js +0 -6
  87. package/dist/web/assets/Production-I-_oJxP-.js +0 -1
  88. package/dist/web/assets/Quality-FscfMj9c.js +0 -1
  89. package/dist/web/assets/Readiness-S9TLEg-y.js +0 -1
  90. package/dist/web/assets/Record-ChW3mCvV.js +0 -1
  91. package/dist/web/assets/Regression-Bu1W9YDq.js +0 -5
  92. package/dist/web/assets/Reports-Clwwngni.js +0 -2
  93. package/dist/web/assets/Requirements-DXnNmoYo.js +0 -2
  94. package/dist/web/assets/Responsive-CUbZeMQD.js +0 -3
  95. package/dist/web/assets/RunDiff-B_exyRTR.js +0 -1
  96. package/dist/web/assets/Settings-DwKlszsQ.js +0 -21
  97. package/dist/web/assets/SiteScan-CjwkNI8J.js +0 -5
  98. package/dist/web/assets/Steps-DbBUfJ23.js +0 -2
  99. package/dist/web/assets/TestData-3s9zUpzm.js +0 -2
  100. package/dist/web/assets/TestManagement-CVV0I41E.js +0 -4
  101. package/dist/web/assets/frame-BUnqEFkX.js +0 -23
  102. package/dist/web/assets/index-CPftbTjg.js +0 -47
  103. package/dist/web/assets/index-ZA7Ojgea.css +0 -2
  104. package/dist/web/assets/pageBack-DZTkmgGZ.js +0 -9
  105. package/dist/web/assets/qualityParts-CoXsldUS.js +0 -2
  106. package/dist/web/assets/sectionList-DMyhAqst.js +0 -1
@@ -1,9 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlight-b70fFRUT.js","assets/rolldown-runtime-XKyaHtl9.js","assets/jsx-runtime-LKYXHABd.js","assets/default-DB4ZMZxa.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{t as n}from"./react-BDur5s0O.js";import{B as r,F as i,I as a,f as o,h as s,l as c,o as l,s as u,t as d}from"./preload-helper-BupTYkQW.js";import{r as f,t as p}from"./utils-DJRAScIl.js";import{t as m}from"./jsx-runtime-LKYXHABd.js";import{M as h}from"./api-CLFzGvjv.js";import{$ as g,At as _,B as v,Bn as y,Bt as b,C as x,Cn as S,D as C,Dn as w,E as T,Er as E,Et as D,G as O,Gn as k,Hr as A,Ir as j,J as M,Jn as N,Jt as ee,K as P,Ln as F,Lr as te,Lt as I,Nt as ne,O as re,On as L,Ot as ie,Pt as ae,Qn as oe,Qt as se,Rn as ce,Rr as le,Rt as ue,Sr as R,Tt as z,U as de,Ur as fe,Ut as pe,V as me,Vr as he,W as ge,Wn as _e,Wr as ve,Wt as ye,Xn as be,Xt as xe,Y as Se,Yt as Ce,Z as we,Zn as Te,Zt as Ee,_r as De,a as Oe,an as ke,ar as Ae,b as je,bn as Me,br as Ne,bt as Pe,cn as Fe,cr as Ie,ct as Le,d as Re,dr as ze,dt as Be,en as Ve,er as He,f as Ue,fr as We,ft as Ge,g as Ke,gn as qe,gt as Je,hn as Ye,ht as Xe,in as Ze,ir as Qe,it as $e,kn as et,kt as tt,l as nt,lt as rt,m as it,mr as at,mt as ot,n as st,nn as ct,nt as lt,or as ut,p as dt,pn as ft,q as pt,qt as mt,r as ht,rr as gt,sr as _t,t as vt,tn as yt,tr as bt,tt as xt,u as St,un as Ct,ur as wt,v as Tt,vn as Et,vr as Dt,w as Ot,wn as kt,wt as At,x as jt,xn as Mt,xr as Nt,xt as Pt,y as Ft,yn as It,zn as Lt,zt as Rt}from"./line-icons-Cwj9OmCz.js";import{r as zt}from"./nav--Ztl9BFf.js";import"./default-DB4ZMZxa.js";var B=m(),Bt={fail:`rounded-base bg-fail-soft px-4 py-2 text-body-sm text-fail [overflow-wrap:anywhere]`,warn:`rounded-base bg-warn-soft px-4 py-2 text-body-sm text-warn [overflow-wrap:anywhere]`,pass:`rounded-base bg-pass-soft px-4 py-2 text-body-sm text-pass [overflow-wrap:anywhere]`,info:`rounded-base bg-accent-soft px-4 py-2 text-body-sm text-ink [overflow-wrap:anywhere]`};function Vt({tone:e,as:t=`p`,className:n,children:r,id:i}){return(0,B.jsx)(t,{id:i,role:e===`fail`?`alert`:`status`,className:p(`m-0`,Bt[e],n),children:r})}var Ht=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ut=f,Wt=(e,t)=>n=>{if(t?.variants==null)return Ut(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ht(t)||Ht(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ut(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},V=t(n(),1),Gt=[];for(let e of[2,5,8,11,14])for(let t of[2,5,8,11,14])Math.hypot(t-8,e-8)<=7&&Gt.push([t,e]);function Kt({className:e}){let t=`dotm-${(0,V.useId)().replace(/[^\w-]/g,``)}`;return(0,B.jsx)(`span`,{"aria-hidden":`true`,"data-spinner":``,className:p(`inline-flex size-4 flex-none`,e),children:(0,B.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:`size-full`,fill:`currentColor`,children:[(0,B.jsx)(`defs`,{children:(0,B.jsxs)(`clipPath`,{id:t,children:[(0,B.jsx)(`rect`,{className:`dotm-gate-y`,x:`0`,y:`0`,width:`16`,height:`3`}),(0,B.jsx)(`rect`,{className:`dotm-gate-x`,x:`0`,y:`0`,width:`3`,height:`16`})]})}),(0,B.jsx)(`g`,{opacity:`0.25`,children:Gt.map(([e,t])=>(0,B.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))}),(0,B.jsx)(`g`,{clipPath:`url(#${t})`,children:Gt.map(([e,t])=>(0,B.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))})]})})}var qt=Wt(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap font-medium no-underline transition-[background-color,color,opacity,transform] duration-150 disabled:cursor-not-allowed disabled:opacity-50`,{variants:{variant:{outline:`rounded-full border-0 bg-accent-fg/10 text-ink hover:bg-accent-fg/16 hover:text-ink aria-pressed:bg-accent-fg/24 aria-checked:bg-accent-fg/24 [&>svg]:text-icon`,primary:`rounded-full border-0 bg-primary-btn text-primary-btn-ink hover:-translate-y-[0.5px] hover:bg-primary-btn/88 hover:text-primary-btn-ink`,accent:`rounded-full border-0 bg-accent text-accent-ink hover:-translate-y-[0.5px] hover:bg-accent-hover hover:text-accent-ink`,danger:`rounded-full border-0 bg-tint text-fail hover:bg-fail-soft hover:text-fail`,destructive:`rounded-full border-0 bg-fail text-bg hover:opacity-90 hover:text-bg`,ghost:`rounded-full border-0 bg-transparent text-ink hover:bg-tint [&>svg]:text-icon`,icon:`rounded-full border-0 bg-transparent text-ink-2 hover:bg-tint hover:text-ink [&>svg]:text-icon`,link:`border-0 bg-transparent text-accent-fg underline-offset-2 hover:text-accent-fg-hover hover:underline`,field:p(a,`justify-start px-4 font-normal text-muted hover:text-ink [&>svg]:text-icon`)},size:{default:`min-h-10 px-4 text-body-sm [&>svg]:size-4 [&>svg]:flex-none`,lg:`min-h-11 px-6 text-body-sm [&>svg]:size-4 [&>svg]:flex-none`,sm:`min-h-8 px-4 text-body-sm [&>svg]:size-3.5 [&>svg]:flex-none`,icon:`size-10 [&>svg]:size-4`,"icon-sm":`size-8 [&>svg]:size-4`,"icon-xs":`size-7 pointer-coarse:size-9 [&>svg]:size-3.5`,inline:`min-h-0 p-0 text-body-sm [&>svg]:size-3.5 [&>svg]:flex-none`}},defaultVariants:{variant:`outline`,size:`default`}}),Jt=new Set([`sm`,`inline`,`icon-xs`]);function Yt({className:e,variant:t,size:n,type:r=`button`,disabled:i,onClick:a,busy:o,children:s,...c}){if(o)return(0,B.jsxs)(`button`,{type:r,disabled:!0,"aria-busy":`true`,className:p(qt({variant:t,size:n}),`disabled:cursor-progress disabled:opacity-80 [&>svg]:hidden`,e),...c,children:[(0,B.jsx)(Kt,{className:Jt.has(n??``)?`size-3.5`:`size-4`}),s]});let l=c[`data-tip`];return i&&r!==`submit`&&typeof l==`string`&&l.trim()?(0,B.jsx)(`button`,{type:r,"aria-disabled":`true`,className:p(qt({variant:t,size:n}),`cursor-not-allowed opacity-50`,e),onClick:e=>{e.preventDefault(),e.stopPropagation()},...c,children:s}):(0,B.jsx)(`button`,{type:r,disabled:i,onClick:a,className:p(qt({variant:t,size:n}),e),...c,children:s})}var Xt=new Map([[vt,`accessibility`],[st,`history`],[ht,`web`],[nt,`branch`],[Ue,`feature`],[dt,`knowledge-base`],[it,`knowledge-base`],[Ke,`container`],[Tt,`architecture`],[Ft,`bug`],[je,`speed`],[jt,`history`],[x,`report`],[v,`stories`],[me,`stories`],[de,`cloud`],[ge,`code`],[O,`code`],[P,`coins`],[pt,`columns`],[Se,`container`],[g,`server`],[xt,`database`],[lt,`database`],[$e,`download`],[rt,`visual`],[Be,`report`],[Ge,`report`],[ot,`code`],[Xe,`code`],[Je,`file`],[Pe,`table`],[Pt,`stories`],[At,`warning`],[z,`flask`],[D,`folder`],[ie,`folder`],[tt,`folder`],[_,`folder`],[ne,`visual`],[ae,`branch`],[I,`branch`],[ue,`web`],[Rt,`feature`],[b,`wrench`],[pe,`pulse`],[ye,`history`],[mt,`screenshot`],[ee,`screenshot`],[Ce,`screenshot`],[xe,`inbox`],[Ee,`info`],[se,`key`],[Ve,`desktop`],[yt,`layers`],[ct,`board`],[Ze,`info`],[ke,`sparkle`],[Fe,`stories`],[Ct,`layers`],[ft,`key`],[Ye,`mail`],[qe,`web`],[Et,`chat`],[It,`stories`],[Me,`chat`],[Mt,`mic`],[S,`desktop`],[kt,`mobile`],[w,`network`],[L,`replay`],[et,`palette`],[F,`coins`],[ce,`replay`],[Lt,`plug`],[y,`plug`],[_e,`replay`],[k,`rocket`],[N,`route`],[be,`visual`],[Te,`scroll`],[He,`mail`],[bt,`server`],[gt,`feature`],[Qe,`shield`],[Ae,`route`],[ut,`mobile`],[_t,`sparkle`],[Ie,`sparkle`],[We,`board`],[at,`terminal`],[De,`table`],[Dt,`mobile`],[Ne,`terminal`],[Nt,`ticket`],[R,`history`],[E,`warning`],[j,`coins`],[te,`wand`],[le,`wand`],[he,`plug`],[A,`network`],[ve,`wrench`],[St,`bell`],[Re,`bell`],[M,`route`]]);function Zt({icon:e,size:t=16,className:n,label:r}){let i=Xt.get(e);if(i){let e=s(i);if(e)return(0,B.jsx)(o,{src:e,name:i,px:t+2,alt:r||``,className:n})}return(0,B.jsx)(e,{size:t,strokeWidth:1.8,"aria-hidden":!r||void 0,"aria-label":r,className:n})}var Qt={idle:[`default`,`blink`],working:[`default`,`gyro`],reasoning:[`default`,`twins`],searching:[`default`,`lighthouse`],background:[`default`,`spiral`],retrying:[`default`,`surge`],compacting:[`default`,`squeeze`,`fuse`],waiting:[`default`],using:[`default`,`tap`,`scroll`,`type`,`zoom`,`snap`,`record`]},H=Math.PI*2,$t=Math.PI*(3-Math.sqrt(5)),en=e=>(1-Math.cos(Math.PI*e))/2,tn=e=>{let t=Math.sin(e*127.1)*43758.5453;return t-Math.floor(t)},nn=(e,t)=>(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2,rn=(e,t,n)=>{let r=[],i=[],a=e[t];for(let o=0;o<e.length;o++){if(o===t)continue;let s=nn(a,e[o]),c=r.length;if(c===n){if(s>=i[n-1])continue;c--}for(;c>0&&i[c-1]>s;)r[c]=r[c-1],i[c]=i[c-1],c--;r[c]=o,i[c]=s}return r},an={idle:6500,"idle-blink":13e3,working:3e3,"working-gyro":3e3,reasoning:6500,"reasoning-twins":6500,searching:13e3,"searching-lighthouse":13e3,background:13e3,"background-spiral":13e3,retrying:13e3,"retrying-surge":13e3,compacting:1e4,"compacting-squeeze":1e4,"compacting-fuse":1e4,waiting:13e3,using:13e3,"using-tap":13e3,"using-scroll":13e3,"using-type":13e3,"using-zoom":13e3,"using-snap":13e3,"using-record":13e3},on=new Map;function sn(e,t,n){let r=on.get(e);return r||on.set(e,r={t:0,last:t}),t>r.last&&(r.t+=Math.min(t-r.last,100)*n,r.last=t),r.t}var cn=e=>1-Math.exp(-4.5*e)*Math.cos(3*Math.PI*e)-e*Math.exp(-4.5);function ln(e,t){let n=3200,r=Math.floor(e/n),i=e-r*n,a=1260*t,o=2200*t,s;if(i<2e3)s=i*t;else if(i<2200){let e=(i-2e3)/200;s=(2e3+200*(e-e*e/2))*t}else if(i<3e3)s=2100*t-a*cn((i-2200)/800);else{let e=(i-3e3)/200;s=2100*t-a+100*e*e*t}return r*(o-a)+s}function un(e,t){if(e===`retrying`)return ln(2*t,H/9e3);if(e===`retrying-surge`){let e=t/3250,n=e-Math.floor(e);return(Math.floor(e)+(1-(1-n)**3))*H}return e===`using-scroll`?.4:e===`using-snap`?(Math.floor(t/Rn)*zn+Math.min(t%Rn,zn))/an[e]*H:t/an[e]*H}var dn=(()=>{let e=30*Math.PI/180,t=10*Math.PI/180;return[-Math.sin(t)*Math.cos(e),Math.cos(t)*Math.cos(e),Math.sin(e)]})(),fn=1.4,pn=30*Math.PI/180,mn=Math.PI/2,hn=1800,gn=.4,_n=.6;function vn(e){let t=e*2.45+tn(e)*1.5,n=(15+30*tn(e+.5))*Math.PI/180;return[Math.sin(n)*Math.cos(t),Math.sin(n)*Math.sin(t),Math.cos(n)]}function yn(e){let t=Math.floor(e/hn),n=e/hn-t,r=n<gn?(1-Math.cos(n/gn*Math.PI))/2:1,i=vn(t),a=vn(t+1),o=i.map((e,t)=>e+(a[t]-e)*r),s=Math.hypot(o[0],o[1],o[2]);return o.map(e=>e/s)}var bn=.45,xn=.5,Sn=600,Cn=e=>vn(e+57),wn=(e,t,n)=>{let r=e.map((e,r)=>e+(t[r]-e)*n),i=Math.hypot(r[0],r[1],r[2]);return r.map(e=>e/i)},Tn=(e,t)=>e<t?(1-(e/t)**2)**2:0,En=1400;function Dn(e){let t=Math.floor(e/En),n=e/En-t;return{at:wn(Cn(t),Cn(t+1),n<.35?en(n/.35):1),click:Cn(n<.5?t:t+1),since:(n<.5?n+.5:n-.5)*En}}var On=e=>e<60?e/60:Math.max(0,1-(e-60)/240)**2,kn=1,An=[[0,0],[0,16],[4,12],[7,18],[9,17],[6,11],[11,11]].map(([e,t])=>[e/18*kn,t/18*kn]);function jn(e,t,n){let r=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){let[o,s]=e[i],[c,l]=e[a];s>n!=l>n&&t<(c-o)*(n-s)/(l-s)+o&&(r=!r)}return r}var Mn=[-.3,.5],Nn=(e,t)=>[e,t,Math.sqrt(Math.max(0,1-e*e-t*t))],Pn=e=>Nn(Mn[0]+.35*e[0],Mn[1]+.35*e[1]),Fn=1800;function In(e,t){let n=e%Fn/Fn,r=n<.3?en(n/.3):n<.6?1:n<.85?1-en((n-.6)/.25):0,i=e=>Nn(Mn[0]+.3*e*Math.cos(t),Mn[1]+.3*e*Math.sin(t));return{at:i(r),click:i(1),since:(n<.45?n+.55:n-.45)*Fn}}var Ln=2600,Rn=2600,zn=2100;function Bn(e){let t=e%Rn-zn;return t<0?0:Math.exp(-t/220)}function Vn(e){let t=e%Rn;return t<120?1.2*(1-en(t/120)):t<180?0:t<430?1.2*en((t-180)/250):1.2}var Hn=1200,Un=e=>Math.abs(1-2*(e%Hn/Hn));function Wn(e){let t=e%Ln/Ln;return t<.25?en(t/.25):t<.5?1:t<.75?1-en((t-.5)/.25):0}var Gn=1500,Kn=1.1;function qn(e){let t=Math.floor(e/Gn),n=Math.min(1,(e/Gn-t)/.75);return{by:(t+1-(1-n)**3)*Kn,pace:(1-n)**2}}var Jn={right:0,"up-right":45,up:90,"up-left":135,left:180,"down-left":225,down:270,"down-right":315},Yn=[90,270,45,180,0,225].map(e=>e*Math.PI/180);function Xn(e,t){let n=-Math.sin(e),r=Math.cos(e),i=Math.sin(t),a=Math.cos(t),o=1-a;return[a+n*n*o,n*r*o,r*i,n*r*o,a+r*r*o,-n*i,-r*i,n*i,a]}var Zn=(e,t)=>e.map((n,r)=>e[r-r%3]*t[r%3]+e[r-r%3+1]*t[r%3+3]+e[r-r%3+2]*t[r%3+6]),Qn=[`xxxx xxx xx`,`xxxxx xx xxxx`,`xxx xxxxx`],$n=.09,er=.3,tr=.33,nr=-.5,rr=(()=>{let e=0;return Qn.flatMap((t,n)=>[...t].map((r,i)=>{let a={row:n,col:i,at:e};return e+=r===` `?200:i===t.length-1?350:70+60*tn(n*31+i),a}))})(),ir=Qn.map((e,t)=>rr.flatMap((e,n)=>e.row===t?[n]:[])),ar=rr[rr.length-1].at,or=ar+1300;function sr(e){let t=e%or,n=0;for(;n<rr.length&&rr[n].at<=t;)n++;let r=n?t-rr[n-1].at:1/0,i=rr[n]??{row:Qn.length-1,col:Qn[Qn.length-1].length},a=r<300?1:+(Math.floor(t/450)%2==0);return{n,since:r,blink:a,caret:[nr+i.col*$n,tr-i.row*er],fade:t<ar+900?1:Math.max(0,1-(t-ar-900)/300)}}var cr=220,lr=5,ur=24,dr=16,fr={mount:({make:e,pts:t})=>{let n=t.map(()=>e(`circle`)),r=new Uint8Array(t.length);return{dot(e,t,i,a,o){let s=n[e],c=o.toFixed(2);c===`0.00`&&r[e]||(r[e]=+(c===`0.00`),s.setAttribute(`cx`,t.toFixed(2)),s.setAttribute(`cy`,i.toFixed(2)),s.setAttribute(`r`,Math.max(.45,a).toFixed(2)),s.setAttribute(`fill-opacity`,c))}}}};function pr(e){let t=(e,t)=>[Math.cos(e)*Math.cos(t),Math.sin(e),Math.cos(e)*Math.sin(t)],n=Math.sqrt(4*Math.PI/e),r=.6*n;return Array.from({length:8},(e,i)=>{let a=i?i&-i:8,o=Math.min(85*Math.PI/180,Math.acos(Math.min(1,n*8/(H*a)))),s=[];for(let e=-o+i*.618%1*r;e<=o;e+=r/Math.sqrt(1+Math.cos(e)**2))s.push(t(e,i/8*H-e));return s}).flat()}function mr(e,t,n){return n?n.points(t,e):e===`background-spiral`?pr(t):Array.from({length:t},(e,n)=>{let r=1-2*(n+.5)/t,i=Math.sqrt(1-r*r),a=n*$t;return[i*Math.cos(a),r,i*Math.sin(a)]})}function hr(e,{state:t,variant:n,size:r=20,speed:i=1,label:a,shape:o,render:s=fr,density:c=1,dotSize:l=1,tilt:u=20,direction:d}={}){let f=t===`base`?`idle`:t,p=f&&Object.hasOwn(Qt,f)?f:`idle`,m=n!=="default"&&Qt[p].includes(n??``)?`${p}-${n}`:p,h={width:r,height:r,viewBox:`0 0 ${r} ${r}`,fill:`currentColor`};for(let[t,n]of Object.entries(h))e.setAttribute(t,String(n));a?(e.setAttribute(`role`,`img`),e.setAttribute(`aria-label`,a),e.removeAttribute(`aria-hidden`)):(e.setAttribute(`aria-hidden`,`true`),e.removeAttribute(`role`),e.removeAttribute(`aria-label`));let g=m===`background`?1:m===`using`||m===`using-type`?Math.max(4,1e3/r):4,_=Math.max(8,Math.round(r*g*c)),v=typeof o==`function`?{points:o}:o,y=r/2,b=y*.8*(v?.scale??1),x=(r/64)**.6*(.72*Math.sqrt(4/g))*l,S=mr(m,_,v),C=s.mount({make:t=>e.appendChild(document.createElementNS(`http://www.w3.org/2000/svg`,t)),pts:S,size:r,radius:x}),w=!!s.flat,T=(m===`reasoning`||m===`reasoning-twins`)&&S.length>1,E=m===`compacting`||m===`compacting-fuse`,D=T?S.map((e,t)=>rn(S,t,ur)):[],O=Array.from({length:m===`reasoning-twins`?2:1},()=>[]),k=0,A={k:0,m:[1,0,0,0,1,0,0,0,1]},j=e=>{let t=an[m],n=un(m,e),i=m===`using-scroll`?qn(e):null,a=d&&Jn[d],o=null;if(i&&a!==void 0)o=Xn(a*Math.PI/180+Math.PI,i.by);else if(i){let t=Math.floor(e/Gn);for(t<A.k&&(A={k:0,m:[1,0,0,0,1,0,0,0,1]});A.k<t;A.k++)A.m=Zn(Xn(Yn[A.k%Yn.length],Kn),A.m);o=Zn(Xn(Yn[t%Yn.length],i.by-t*Kn),A.m)}let s=m===`working-gyro`?e/5e3*H:null,c=((w?0:u)+(v?.tip??0)+(s===null?0:10*Math.cos(s)))*Math.PI/180,l=s===null?0:12*Math.sin(s)*Math.PI/180,f=Math.sin(l),p=Math.cos(l),h=Math.sin(n),g=Math.cos(n),_=Math.sin(c),j=Math.cos(c),M=e=>S[e][1]*_+(-S[e][0]*h+S[e][2]*g)*j,N=new Map;if(T){let t=e/cr,n=Math.floor(t),r=t-n;if(!O[0].length){let e=[...S.keys()].reduce((e,t)=>M(t)>M(e)?t:e,0),t=t=>M(t)+nn(S[t],S[e]);O.forEach((n,r)=>n.push(r?[...S.keys()].reduce((e,n)=>t(n)>t(e)?n:e,0):e))}for(k=Math.max(k,n-dr);k<n;k++)O.forEach((e,t)=>{let n=e.slice(-8),r=e[e.length-1],i=-1,a=-1/0,o=m===`reasoning-twins`?O[1-t].at(-1):void 0;D[r].forEach((e,r)=>{let s=o===void 0?0:1.2*Math.min(Math.sqrt(nn(S[e],S[o])),.8),c=M(e)+.35*tn(k*31+r+t*977)+s;!n.includes(e)&&c>a&&(a=c,i=e)}),e.push(i<0?D[r][0]:i),e.length>dr&&e.shift()});let i=(e,t)=>e!==void 0&&N.set(e,Math.max(N.get(e)??0,t));for(let e of O)for(let t=4;t>=0;t--)i(e[e.length-1-t],t===0?en(Math.min(1,r*2)):1-(t-1+r)/lr)}let ee=e/2e3*H+n,P=H/2e3+H/t,F=e=>70*Math.PI/180*(1-2*(e%6e3/6e3)),te=Math.min(1,3*Math.sin(Math.PI*(e%6e3/6e3))),I=m===`searching`?yn(e):null,ne=m===`working-gyro`?.5*Math.sin(e/2600*H):m===`compacting-squeeze`?Math.sin(e/2600*H):0,re=null;if(E){let t=e%2800/2800,n=(t-.7)/.3,r=m===`compacting-fuse`?(1-n)**3:n<.45?1-1.25*en(n/.45):n<.7?-.25*(1-(n-.45)/.25)**2:0;re={at:-1.15+2.3*Math.min(1,t/.7),hold:t<.7?1:r}}let L=null;m===`using-tap`&&(L=Dn(e));let ie=m===`using`;if(ie){let t=a===void 0?Dn(e):null;L=t?{...t,at:Pn(t.at),click:Pn(t.click)}:In(e,(a??0)*Math.PI/180)}let ae=ie&&L?1-.15*On(L.since):1,oe=m===`using-type`?sr(e):null,se=m===`using-zoom`?Wn(e):null,ce=m===`using-snap`?Bn(e):null,le=m===`idle-blink`?Vn(e):null,ue=m===`using-record`?Un(e):null;S.forEach(([t,a,s],c)=>{let u=n+fn*ne*a,[d,v]=ne?[Math.sin(u),Math.cos(u)]:[h,g],S=-t*d+s*v,E=t*v+s*d,D=a*j-S*_,O=S,k=E*_,A=a*_+S*j;o&&([E,D,A]=[0,3,6].map(e=>o[e]*E+o[e+1]*D+o[e+2]*A));let M=(A+1)/2,R=(.5+1.4*M)*x,z=Math.max(0,(M-.3)/.7);if(I){let e=Math.acos(Math.min(1,(E*I[0]+D*I[1]+A*I[2])/Math.hypot(E,D,A))),t=e<_n?(1-(e/_n)**2)**2:0;z*=1-.55*(1-t),r<=24&&(R*=1+.5*t),t&&(E*=1+.12*t,D*=1+.12*t,E+=(E-I[0])*.35*t,D+=(D-I[1])*.35*t,R*=1+.9*t,z+=(1-z)*t)}if(re){let e=E,t=Math.min(1,Math.max(0,(re.at-e)/.2))*re.hold,n=m===`compacting`?1.5:1;if(E*=1-.2*n*t,D*=1-.2*n*t,R*=1-.3*n*t,m===`compacting-fuse`){z*=1-.5*t;let n=Math.exp(-(((e-re.at)/.08)**2))*Math.max(0,re.hold)*Math.min(1,M/.5);R*=1+.8*n,z+=(1-z)*n}}if(m===`working`){let t=e%1700,n=1.3-2.6*en(Math.min(1,t/1200)),r=w?D:E*dn[0]+D*dn[1]+A*dn[2],i=t<1200?Math.exp(-(((r-n)/.2)**2)):0;R*=1+.6*i,z+=(1-z)*i;let a=Math.min(1,Math.max(0,(r-n)/.2))*(t<1200?1:1-Math.min(1,1.6*((t-1200)/800)));E*=1-.08*a,D*=1-.08*a,R*=1-.15*a}if(m===`searching-lighthouse`){z*=.5;let t=Math.sin(pn),n=Math.cos(pn),r=E*n-D*t,i=-_*(E*t+D*n)+j*A,a=((Math.atan2(r,i)-(e/2500%1*H-Math.PI)+Math.PI)%H+H)%H-Math.PI,o=(a<0?Math.max(0,1+a/mn):Math.exp(-((a/.45)**2)))*(.25+.75*Math.min(1,Math.max(0,(M-.4)/.3)));R*=1+.6*o,z+=(1-z)*o}if(T){let e=N.get(c)??0;z*=.5,e&&(R*=1+.8*e,z+=(1-z)*e)}if(m===`waiting`){let n=Math.asin(a/(Math.hypot(t,a,s)||1)),r=Math.atan2(s,t),i=Math.atan2(Math.sin(r-ee),Math.cos(r-ee)),o=i*Math.cos(n),c=Math.exp(-(((n-F(e+i/P))/.28)**2))*Math.exp(-((o/(i*P>0?.12:1))**2)),l=te*c**.6;z=z*.5+(1-z*.5)*l,R*=1+1.1*l}if(L){let e=Math.hypot(E,D,A)||1,t=t=>Math.acos(Math.min(1,Math.max(-1,(E*t[0]+D*t[1]+A*t[2])/e)));z*=ie?.25:.5;let n=L.since,r=ie?0:Tn(t(L.at),bn),i=t(L.click),a=On(n),o=a*Tn(i,xn),s=Math.min(1,n/Sn),c=Math.exp(-(((i-(.15+1.3*(1-(1-s)**2)))/.18)**2))*(1-s)**2;if(E*=1-.14*o,D*=1-.14*o,R*=(1-.35*o)*(1+.7*Math.max(c,r*(1-a))),z+=(1-z)*Math.max(r,c),ie&&jn(An,(E-L.at[0])/ae,(L.at[1]-D)/ae)){let e=Math.min(1,Math.max(0,(M-.5)/.2));R*=1+.15*e,z+=(1-z)*e}}if(oe){z*=.25;let e=Math.round((tr-D)/er),t=Math.floor((E-nr)/$n),n=ir[e]?.[t],r=0;n!==void 0&&n<oe.n&&Qn[e][t]===`x`&&Math.abs(tr-e*er-D)<.085&&(r=.75+(n===oe.n-1?.25*Math.exp(-oe.since/120):0));let[i,a]=oe.caret;Math.abs(D-a)<.1&&(r=Math.max(r,oe.blink*Math.exp(-(((E-i)/.04)**2)))),z+=(1-z)*r*oe.fade*Math.min(1,Math.max(0,(M-.5)/.2))}if(se){let e=se*Math.max(0,A);E*=1+.45*e,D*=1+.45*e,R*=1+.8*e,z*=Math.min(1,Math.max(0,(1.05-Math.hypot(E,D))/.1))}if(i&&(z*=.55+.45*i.pace),ce!==null&&(z*=.55,R*=1+.25*ce,z+=(1-z)*ce),le!==null){let e=Math.exp(-(((Math.abs(D)-le)/.06)**2))*+(le<1.2);z*=Math.min(1,Math.max(0,(le-Math.abs(D))/.08)),R*=1+.4*e,z+=(1-z)*e*Math.min(1,Math.max(0,(M-.4)/.3))}ue!==null&&(E*=.92+.08*ue,D*=.92+.08*ue,z*=.3+.7*ue),l&&([E,D]=[E*p-D*f,E*f+D*p]),C.dot(c,y+E*b,y-D*b,R,z,O,-k)}),C.frame?.()},M=`${m}@${i}`;j(sn(M,performance.now(),i));let N=matchMedia(`(prefers-reduced-motion: reduce)`).matches,ee=!1,P=0,F=!1,te=new IntersectionObserver(e=>ee=e[e.length-1].isIntersecting);te.observe(e);function I(e){ee&&j(sn(M,e,i)),P=requestAnimationFrame(I)}let ne=()=>{cancelAnimationFrame(P),P=0},re=()=>{P||N||F||(P=requestAnimationFrame(I))};return re(),{pause:ne,play:re,destroy(){F=!0,ne(),te.disconnect(),e.replaceChildren()}}}function gr({state:e,variant:t,size:n=20,speed:r=1,paused:i=!1,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d,className:f}){let p=(0,V.useRef)(null),m=(0,V.useRef)(null);(0,V.useEffect)(()=>(m.current=hr(p.current,{state:e,variant:t,size:n,speed:r,label:a,shape:o,render:s,density:c,dotSize:l,tilt:u,direction:d})).destroy,[e,t,n,r,a,o,s,c,l,u,d]),(0,V.useEffect)(()=>{i?m.current.pause():m.current.play()},[i,e,t,n,r,a,o,s,c,l,u,d]);let h=a?{role:`img`,"aria-label":a}:{"aria-hidden":!0};return(0,B.jsx)(`svg`,{ref:p,width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:`currentColor`,className:f,...h})}var _r={thinking:{state:`reasoning`},searching:{state:`searching`},reading:{state:`searching`,variant:`lighthouse`},working:{state:`working`},writing:{state:`working`,variant:`gyro`},browsing:{state:`using`,variant:`tap`},recording:{state:`using`,variant:`record`},handing:{state:`background`},retrying:{state:`retrying`},compacting:{state:`compacting`},waiting:{state:`waiting`},idle:{state:`idle`}};function vr({state:e=`working`,label:t,px:n=16,className:r}){return(0,B.jsx)(gr,{..._r[e],size:n,label:t,className:p(`block flex-none text-ink`,r)})}async function yr(e,t=h.open){let n=window.open(`about:blank`,`_blank`);try{let r=await t(e);if(r.kind===`download`){n?.close();let e=document.createElement(`a`);return e.href=r.url,e.download=r.name,e.click(),``}return n?(n.opener=null,n.location.href=r.url,``):`The browser blocked the new tab.`}catch(e){return n?.close(),e.message}}function br({icon:e,title:t,children:n,action:r,center:i=!1,page:a=!1,className:o}){return(0,B.jsxs)(`div`,{role:`status`,className:p(`flex flex-col gap-2 py-6`,i||a?`items-center text-center`:`items-start`,a&&`mx-auto max-w-[480px] py-16`,o),children:[e&&(0,B.jsx)(Zt,{icon:e,size:22,className:`mb-1 text-muted`}),t&&(0,B.jsx)(`p`,{className:`m-0 text-body-lg font-medium text-ink`,children:t}),n&&(0,B.jsx)(`div`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:n}),r&&(0,B.jsx)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:r})]})}var xr={pass:`bg-pass-soft text-pass`,fail:`bg-fail-soft text-fail`,warn:`bg-warn-soft text-warn`,running:`bg-accent-soft text-accent-fg`,neutral:`bg-surface-strong text-ink-2`},Sr={pass:`bg-pass-dot`,fail:`bg-fail-dot`,warn:`bg-warn-dot`,neutral:`bg-muted`};function Cr({tone:e,children:t,className:n,icon:r=!0,orb:i=`working`}){let a=r&&e!==`running`?Sr[e]:void 0,o=r&&e===`running`;return(0,B.jsxs)(`span`,{className:p(`inline-flex min-h-6 items-center gap-1 rounded-full px-2 text-label-sm whitespace-nowrap`,(a||o)&&`pl-2`,xr[e],n),children:[o&&(0,B.jsx)(vr,{state:i,px:16}),a&&(0,B.jsx)(`span`,{"aria-hidden":`true`,className:p(`size-1.5 flex-none rounded-full`,a)}),t]})}function wr({id:e,label:t,value:n,onChange:r,placeholder:a,className:o}){return(0,B.jsxs)(`div`,{className:p(`relative min-w-0 w-full max-w-[320px] flex-[0_1_320px]`,o),children:[(0,B.jsx)(oe,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-muted`}),(0,B.jsx)(`label`,{htmlFor:e,className:`sr-only`,children:t}),(0,B.jsx)(i,{size:`sm`,id:e,type:`search`,value:n,onChange:e=>r(e.target.value),placeholder:a??t,className:`pl-8`})]})}function Tr({items:e,value:t,onChange:n}){return(0,B.jsx)(B.Fragment,{children:e.map(e=>(0,B.jsxs)(`button`,{type:`button`,"aria-pressed":t===e.id,"data-tip":e.tip,onClick:()=>n(e.id),className:p(qt({size:`sm`}),`gap-1`),children:[e.icon&&(0,B.jsx)(Zt,{icon:e.icon,size:14}),e.label,e.n!==void 0&&(0,B.jsx)(`span`,{className:p(`tabular-nums`,e.alert&&e.n?`text-fail`:``),children:e.n})]},e.id))})}function Er({items:e,value:t,onChange:n,className:r}){return(0,B.jsx)(B.Fragment,{children:e.map(e=>{let i=t.includes(e.id);return(0,B.jsxs)(`button`,{type:`button`,"aria-pressed":i,"data-tip":e.title,onClick:()=>n(i?t.filter(t=>t!==e.id):[...t,e.id]),className:p(qt({size:`sm`}),``,r),children:[i&&(0,B.jsx)(Ot,{size:14,"aria-hidden":`true`}),e.label,e.note&&(0,B.jsx)(`span`,{className:p(`text-body-sm font-normal`,e.noteClass),children:e.note})]},e.id)})})}function Dr({page:e,size:t,total:n,onPage:r,label:i,children:a}){let o=Math.max(1,Math.ceil(n/t));return(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4 border-t border-line-soft px-4 py-2 text-body-sm text-muted`,children:[(0,B.jsxs)(`span`,{className:`flex-1`,children:[n?`${e*t+1}–${Math.min(n,e*t+t)} of ${n}`:`None`,a]}),o>1&&(0,B.jsxs)(`nav`,{"aria-label":i,className:`flex items-center gap-1`,children:[(0,B.jsx)(Yt,{size:`sm`,variant:`ghost`,disabled:e===0,onClick:()=>r(e-1),"aria-label":`Previous page`,"data-tip":`Previous page`,children:(0,B.jsx)(C,{"aria-hidden":`true`})}),(0,B.jsxs)(`span`,{className:`px-1 tabular-nums`,children:[`Page `,e+1,` of `,o]}),(0,B.jsx)(Yt,{size:`sm`,variant:`ghost`,disabled:e>=o-1,onClick:()=>r(e+1),"aria-label":`Next page`,"data-tip":`Next page`,children:(0,B.jsx)(re,{"aria-hidden":`true`})})]})]})}var Or={accent:`text-icon`,soft:`text-accent-line`,pass:`text-pass`,fail:`text-fail`};function kr(e,t){if(!e.length)return``;let n=`M${e[0][0].toFixed(1)} ${e[0][1].toFixed(1)}`;for(let r=0;r<e.length-1;r++){let i=e[r-1]??e[r],a=e[r],o=e[r+1],s=e[r+2]??o,c=Math.min(t,a[1]+(o[1]-i[1])/6),l=Math.min(t,o[1]-(s[1]-a[1])/6);n+=` C${(a[0]+(o[0]-i[0])/6).toFixed(1)} ${c.toFixed(1)} ${(o[0]-(s[0]-a[0])/6).toFixed(1)} ${l.toFixed(1)} ${o[0].toFixed(1)} ${o[1].toFixed(1)}`}return n}function Ar({series:e,label:t,axis:n,hover:r=-1,onHover:i,max:a,padded:o=!0,lead:s=0,className:c=`h-24`}){let l=(0,V.useId)().replace(/:/g,``),u=Math.max(1,...e.map(e=>e.values.length)),d=a??Math.max(Number.MIN_VALUE,...e.flatMap(e=>e.values)),f=e=>u>1?e/(u-1)*280:140,m=e=>o?92-Math.max(0,e)/(d||1)*80:96-Math.max(0,e)/(d||1)*96,h=e.map((e,t)=>{let n=e.values.map((e,t)=>[f(t),m(e)]);return{s:e,k:t,pts:n,line:kr(n,o?92:96)}}),g=h[s]??h[0],_=e=>g&&g.pts[e]?g.pts[e]:null,v=(e,t)=>{let n=_(e);return n?(0,B.jsx)(`span`,{"aria-hidden":`true`,className:p(`pointer-events-none absolute -translate-x-1/2 -translate-y-1/2 rounded-full bg-current ring-2 ring-bg`,t?`size-2`:`size-1.5 opacity-80`),style:{left:`${n[0]/280*100}%`,top:`${n[1]/96*100}%`,boxShadow:t?`0 0 8px 1px color-mix(in srgb, currentColor 60%, transparent)`:void 0}},`dot-${e}`):null},y=(g?.pts.length??1)-1;return(0,B.jsxs)(`div`,{role:`img`,"aria-label":t,className:`flex w-full min-w-0 flex-col gap-2`,children:[(0,B.jsxs)(`div`,{className:p(`relative w-full`,c,g?Or[g.s.tone??`accent`]:``),onMouseLeave:i?()=>i(-1):void 0,children:[(0,B.jsxs)(`svg`,{viewBox:`0 0 280 96`,preserveAspectRatio:`none`,className:`block size-full overflow-visible`,"aria-hidden":`true`,children:[(0,B.jsx)(`defs`,{children:h.map(({k:e})=>(0,B.jsxs)(`linearGradient`,{id:`${l}-f${e}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,B.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:`0.28`}),(0,B.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:`0`})]},e))}),h.map(({s:e,k:t,line:n})=>(0,B.jsxs)(`g`,{className:Or[e.tone??`accent`],children:[e.fill!==!1&&(0,B.jsx)(`path`,{d:`${n} L${f(e.values.length-1)} 96 L0 96 Z`,fill:`url(#${l}-f${t})`}),(0,B.jsx)(`path`,{d:n,fill:`none`,stroke:`currentColor`,strokeWidth:e.glow===!1?1.5:2,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`,style:e.glow===!1?void 0:{filter:`drop-shadow(0 0 4px color-mix(in srgb, currentColor 55%, transparent))`}})]},t))]}),v(y,!0),r>=0&&r!==y&&v(r,!1),i&&(0,B.jsx)(`div`,{className:`absolute inset-0 flex`,"aria-hidden":`true`,children:Array.from({length:u},(e,t)=>(0,B.jsx)(`span`,{className:p(`h-full flex-1`,r===t&&`bg-current/5`),onMouseEnter:()=>i(t)},t))})]}),n&&n.length>0&&(0,B.jsx)(`div`,{className:`flex justify-between text-body-sm text-muted tabular-nums`,"aria-hidden":`true`,children:n.map((e,t)=>(0,B.jsx)(`span`,{children:e},t))})]})}function jr({share:e,text:t,lead:n=!1,tone:r,className:i}){let a=Math.max(0,Math.min(1,e))*100,o=a>=25&&(n||!!r),s=r===`fail`?`bg-fail text-bg`:r===`pass`?`bg-pass text-bg`:n?`bg-accent text-white`:`bg-accent-line`;return(0,B.jsxs)(`span`,{"aria-hidden":`true`,className:p(`flex h-5 min-w-0 items-center gap-2 rounded-md bg-surface-strong`,i),children:[(0,B.jsx)(`span`,{className:p(`flex h-full items-center justify-end rounded-md px-2 text-label-sm font-medium whitespace-nowrap tabular-nums transition-[width] duration-200 ease-out`,s),style:{width:a>0?`${Math.max(2,a)}%`:`0`},children:o?t:null}),!o&&(0,B.jsx)(`span`,{className:`text-label-sm whitespace-nowrap text-ink-2 tabular-nums`,children:t})]})}function Mr({rows:e,label:t,more:n}){return(0,B.jsxs)(`ul`,{"aria-label":t,className:`m-0 flex list-none flex-col overflow-hidden rounded-base p-0`,children:[e.map((e,t)=>(0,B.jsxs)(`li`,{className:p(`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-1 px-4 py-2`,t>0&&`border-t border-line`,t%2==1&&`bg-surface-muted`),children:[(0,B.jsx)(`span`,{"data-tip":e.label,className:`min-w-0 truncate text-body-sm text-ink-2`,children:e.label}),(0,B.jsxs)(`span`,{className:`row-span-2 flex flex-col items-end gap-1`,children:[(0,B.jsxs)(`span`,{className:`rounded-full border border-accent-line px-2 text-label-sm font-medium text-ink-2 tabular-nums`,children:[e.share>0&&e.share<.005?`<1`:Math.round(Math.max(0,Math.min(1,e.share))*100),`%`]}),e.note]}),(0,B.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,B.jsx)(`span`,{className:`text-headline-sm font-medium text-ink tabular-nums`,children:e.value}),e.sub?(0,B.jsx)(`span`,{className:`truncate text-label-sm text-muted tabular-nums`,children:e.sub}):null]})]},e.key)),n?(0,B.jsx)(`li`,{className:`border-t border-line px-4 py-2 text-body-sm text-muted`,children:n}):null]})}function Nr({value:e,limit:t,warnAt:n=.8,label:r,className:i}){let a=t>0?e/t:0,o=Math.max(1.15,Math.min(a,1.5)),s=e=>`${Math.min(100,e/o*100).toFixed(2)}%`,c=a>=1?`over`:a>=n?`near`:`fine`,l={width:s(Math.max(.01,a))};return c===`over`&&(l.backgroundImage=`linear-gradient(90deg, var(--color-accent), var(--color-fail))`),(0,B.jsxs)(`span`,{className:p(`flex min-w-0 items-center gap-2`,i),children:[(0,B.jsxs)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`${r}: ${Math.round(a*100)} percent of the limit, ${c===`over`?`over`:c===`near`?`near the limit`:`fine`}`,className:`relative block h-2 min-w-0 flex-1 rounded-full bg-surface-strong`,children:[(0,B.jsx)(`span`,{className:p(`absolute inset-y-0 left-0 rounded-full transition-[width] duration-200 ease-out`,c===`near`?`bg-warn`:`bg-accent`),style:l}),(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-px bg-warn`,style:{left:s(n)}}),(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-0.5 bg-fail`,style:{left:s(1)}})]}),(0,B.jsx)(`span`,{"aria-hidden":`true`,className:p(`text-label-sm whitespace-nowrap`,c===`over`?`text-fail`:c===`near`?`text-warn`:`text-muted`),children:c===`over`?`over`:c===`near`?`near the limit`:`fine`})]})}function Pr({parts:e,label:t,className:n}){let r=e.reduce((e,t)=>e+Math.max(0,t.value),0);return(0,B.jsx)(`span`,{role:`img`,"aria-label":t,className:p(`flex h-6 w-full min-w-0 gap-1`,n),children:e.filter(e=>e.value>0).map(e=>(0,B.jsx)(`span`,{"aria-hidden":`true`,className:p(`flex min-w-1 items-center justify-center overflow-hidden rounded-md text-label-sm font-medium whitespace-nowrap text-bg tabular-nums transition-[flex-grow] duration-200 ease-out`,e.className),style:{flexGrow:e.value,flexBasis:0},children:r&&e.value/r>=.08?e.text??e.value:null},e.key))})}var Fr={pass:`bg-pass`,fail:`bg-fail`,warn:`bg-warn`,muted:`bg-line-strong`},Ir={pass:`var(--color-pass)`,fail:`var(--color-fail)`,warn:`var(--color-warn)`,muted:`var(--color-line-strong)`};function Lr({runs:e,label:t,className:n}){return(0,B.jsx)(`span`,{role:`img`,"aria-label":t,className:p(`inline-flex flex-none items-center gap-1`,n),children:e.map((t,n)=>{let r=n===e.length-1;return(0,B.jsx)(`span`,{"data-tip":t.title,"aria-hidden":`true`,className:p(`block flex-none rounded-full`,Fr[t.tone],r?`size-3`:`size-2`),style:r?{boxShadow:`0 0 0 2px var(--color-bg), 0 0 0 3px ${Ir[t.tone]}`}:void 0},n)})})}function Rr({share:e,marks:t,className:n,fill:r}){return(0,B.jsxs)(`span`,{"aria-hidden":`true`,className:p(`relative block h-2 rounded-full bg-surface-strong`,n),children:[(0,B.jsx)(`span`,{className:p(`absolute inset-y-0 left-0 rounded-full transition-[width] duration-200 ease-out`,r),style:{width:`${Math.max(0,Math.min(1,e))*100}%`}}),t.map(e=>(0,B.jsx)(`span`,{className:`absolute -inset-y-1 w-px bg-muted`,style:{left:`${e*100}%`}},e))]})}function zr({value:e,label:t,size:n=`sm`,className:r}){let i=n===`lg`?104:56,a=n===`lg`?8:5,o=(i-a)/2,s=2*Math.PI*o,c=e===null?0:Math.max(0,Math.min(100,e))/100,l=e===null?`text-muted`:`text-accent`;return(0,B.jsxs)(`figure`,{role:`img`,"aria-label":`${t}: ${e===null?`not scored`:`${Math.round(e)} out of 100`}`,className:p(`m-0 flex flex-col items-center gap-2`,r),children:[(0,B.jsxs)(`span`,{className:`relative inline-flex`,style:{width:i,height:i},children:[(0,B.jsxs)(`svg`,{"aria-hidden":`true`,width:i,height:i,viewBox:`0 0 ${i} ${i}`,className:`-rotate-90`,children:[(0,B.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,className:`text-surface-strong`}),(0,B.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,strokeLinecap:`round`,strokeDasharray:s,strokeDashoffset:s*(1-c),className:p(`transition-[stroke-dashoffset] duration-200 ease-out`,l)})]}),(0,B.jsx)(`span`,{"aria-hidden":`true`,className:p(`absolute inset-0 flex items-center justify-center tabular-nums`,n===`lg`?`text-headline-md`:`text-body-sm font-medium`),children:e===null?`–`:Math.round(e)})]}),(0,B.jsx)(`figcaption`,{"aria-hidden":`true`,className:`text-center text-body-sm text-muted`,children:t})]})}var Br={error:`text-fail`,warn:`text-warn`},Vr=/\b(?:0|no|zero)\s+(?:errors?|failures?|failed|warnings?)\b|"(?:errors?|warnings?)"\s*:\s*(?:(?:null|false|0)\b|""|\[\])/gi,Hr=/\b(?:error|errors|fatal|exception|traceback|failed|failure|failing|panic|critical)\b|\bERR!|\b[A-Z]\w*(?:Error|Exception):|[✗✘❌]/i,Ur=/\b(?:warn|warning|warnings|deprecated|deprecation)\b|⚠/i;function Wr(e){let t=e.replace(Vr,``);return Hr.test(t)?`error`:Ur.test(t)?`warn`:null}function Gr({text:e}){let t=e.split(`
3
- `);return(0,B.jsx)(B.Fragment,{children:t.map((e,n)=>{let r=Wr(e),i=n<t.length-1?`
4
- `:``;return r?(0,B.jsxs)(`span`,{"data-level":r,className:Br[r],children:[e,i]},n):(0,B.jsxs)(V.Fragment,{children:[e,i]},n)})})}var Kr=`overflow-auto rounded-base bg-surface-muted p-4 font-mono text-body-sm leading-relaxed whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,qr=`font-mono text-body-sm font-medium text-ink [overflow-wrap:anywhere]`,Jr=p(u,`rounded-full px-6 py-2 font-mono text-headline-sm tracking-[0.12em] text-ink`);function Yr({diff:e,className:t}){let n=0,r=0,i=e.split(`
5
- `).flatMap((e,t)=>{if(/^(diff |index |--- |\+\+\+ )/.test(e))return[];let i=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(e);return i?(n=Number(i[1]),r=Number(i[2]),[{key:t,kind:`hunk`,text:e,a:``,b:``}]):e.startsWith(`+`)?[{key:t,kind:`add`,text:e.slice(1),a:``,b:String(r++)}]:e.startsWith(`-`)?[{key:t,kind:`del`,text:e.slice(1),a:String(n++),b:``}]:e.startsWith(`\\`)?[{key:t,kind:`hunk`,text:e,a:``,b:``}]:[{key:t,kind:`same`,text:e.startsWith(` `)?e.slice(1):e,a:String(n++),b:String(r++)}]});return(0,B.jsx)(`div`,{className:p(Kr,`max-h-[420px] p-0 leading-[1.6]`,t),children:(0,B.jsx)(`table`,{className:`w-full border-collapse`,children:(0,B.jsx)(`tbody`,{children:i.map(e=>(0,B.jsxs)(`tr`,{className:e.kind===`add`?`bg-pass-soft`:e.kind===`del`?`bg-fail-soft`:e.kind===`hunk`?`bg-surface-muted`:void 0,children:[(0,B.jsx)(`td`,{className:`w-10 px-2 text-right align-top text-muted tabular-nums select-none`,children:e.a}),(0,B.jsx)(`td`,{className:`w-10 px-2 text-right align-top text-muted tabular-nums select-none`,children:e.b}),(0,B.jsx)(`td`,{"aria-hidden":`true`,className:p(`w-4 align-top select-none`,e.kind===`add`?`text-pass`:e.kind===`del`?`text-fail`:`text-muted`),children:e.kind===`add`?`+`:e.kind===`del`?`−`:``}),(0,B.jsxs)(`td`,{className:p(`pr-4 align-top whitespace-pre`,e.kind===`hunk`?`text-muted`:`text-ink`),children:[(0,B.jsx)(`span`,{className:`sr-only`,children:e.kind===`add`?`added: `:e.kind===`del`?`removed: `:``}),e.text||` `]})]},e.key))})})})}function Xr({children:e,className:t,...n}){return(0,B.jsx)(`div`,{"data-code-block":``,className:p(`not-prose flex w-full min-w-0 flex-col overflow-clip rounded-xl border border-line bg-bg text-ink shadow-sm`,t),...n,children:e})}function Zr({children:e,className:t,...n}){return(0,B.jsx)(`div`,{className:p(`flex items-center justify-between gap-2`,t),...n,children:e})}function Qr({code:e,language:t=`plaintext`,log:n=!1,wrap:i=!1,marked:a=new Set,lineNumbers:o=!1,className:s}){let c=sl(n?null:e||null,t),l=n?(0,B.jsx)(Gr,{text:e}):c,u=e.split(`
6
- `),d=o||a.size>0,f=(0,V.useRef)(null),m=a.size?Math.min(...a):-1;return(0,V.useEffect)(()=>{f.current?.scrollIntoView({block:`center`,behavior:r()})},[m]),(0,B.jsxs)(`div`,{className:p(`flex min-h-0 w-full flex-1 overflow-auto py-4 font-mono text-body-sm leading-[1.7]`,s),children:[d&&(0,B.jsx)(`pre`,{"aria-hidden":`true`,className:`m-0 min-h-full flex-none self-start text-right text-muted/70 select-none`,children:u.map((e,t)=>(0,B.jsx)(`span`,{ref:t===m?f:void 0,className:p(`block px-4`,a.has(t)&&`font-medium text-ink`),children:t+1},t))}),(0,B.jsxs)(`pre`,{className:p(`relative m-0 min-w-0 flex-1 pr-4`,d?``:`pl-4`,i?`whitespace-pre-wrap [overflow-wrap:anywhere]`:`whitespace-pre`),children:[!i&&[...a].map(e=>(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 left-[-16px] bg-accent-soft`,style:{top:`calc(${e} * 1.7em)`,height:`1.7em`}},e)),(0,B.jsx)(`code`,{className:`hljs relative`,children:l})]})]})}function $r({files:e,footer:t,empty:n,className:r,label:i,wrap:a=!1,lineNumbers:o=!1}){let[s,c]=(0,V.useState)(0),[l,u]=(0,V.useState)(a),d=e[Math.min(s,e.length-1)],f=d?.code||``;return(0,B.jsxs)(Xr,{role:`figure`,"aria-label":i,className:p(`min-h-0`,r),children:[(0,B.jsxs)(Zr,{className:`min-h-10 border-b border-line bg-surface-muted py-1 pr-2 pl-4`,children:[e.length>1?(0,B.jsx)(`div`,{role:`group`,"aria-label":`Files`,className:`flex min-w-0 flex-1 items-center gap-1 overflow-x-auto`,children:e.map((e,t)=>(0,B.jsx)(`button`,{type:`button`,"aria-pressed":t===s,onClick:()=>c(t),"data-tip":e.title,className:p(qt({size:`sm`}),`block flex-none truncate px-2 font-mono font-normal`),children:e.name},e.name+t))}):(0,B.jsx)(`span`,{"data-tip":d?.title,className:`min-w-0 truncate font-mono text-body-sm text-muted`,children:d?.name}),f&&(0,B.jsxs)(`span`,{className:`flex flex-none items-center gap-1`,children:[(0,B.jsx)(Yt,{variant:`icon`,size:`icon-sm`,"aria-pressed":l,"aria-label":l?`Do not wrap long lines`:`Wrap long lines`,"data-tip":l?`Do not wrap long lines`:`Wrap long lines`,onClick:()=>u(!l),children:(0,B.jsx)(fe,{size:14,"aria-hidden":`true`})}),(0,B.jsx)(rl,{text:f,label:`Copy ${d?.name||`the code`}`})]})]}),f?(0,B.jsx)(Qr,{code:f,language:d?.lang||`plaintext`,log:d?.log,wrap:l,marked:d?.marked,lineNumbers:o},d?.name):(0,B.jsx)(`div`,{className:`flex min-h-[200px] flex-1 items-center justify-center px-4 text-center text-body-sm text-muted`,children:n??`Nothing to show.`}),t&&(0,B.jsx)(`div`,{className:`border-t border-line px-4 py-2 text-body-sm text-muted`,children:t})]})}var ei={};function ti(e,t){let n=t||ei;return ni(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function ni(e,t,n){if(ii(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 ri(e.children,t,n)}return Array.isArray(e)?ri(e,t,n):``}function ri(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ni(e[i],t,n);return r.join(``)}function ii(e){return!!(e&&typeof e==`object`)}var ai=document.createElement(`i`);function oi(e){let t=`&`+e+`;`;ai.innerHTML=t;let n=ai.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function U(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 W(e,t){return e.length>0?(U(e,e.length,0,t),e):t}var si={}.hasOwnProperty;function ci(e){let t={},n=-1;for(;++n<e.length;)li(t,e[n]);return t}function li(e,t){let n;for(n in t){let r=(si.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){si.call(r,a)||(r[a]=[]);let e=i[a];ui(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ui(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);U(e,0,0,r)}function di(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 G(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var K=yi(/[A-Za-z]/),q=yi(/[\dA-Za-z]/),fi=yi(/[#-'*+\--9=?A-Z^-~]/);function pi(e){return e!==null&&(e<32||e===127)}var mi=yi(/\d/),hi=yi(/[\dA-Fa-f]/),gi=yi(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function Y(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}var _i=yi(/\p{P}|\p{S}/u),vi=yi(/\s/);function yi(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Z(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return X(r)?(e.enter(n),s(r)):t(r)}function s(r){return X(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function bi(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&X(t)?(e.enter(r),c(t)):l(t)}function c(t){return X(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var xi={tokenize:Si};function Si(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`),Z(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 J(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ci=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){wi(this,e,t,n,!1)}addBefore(e,t,n){wi(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 wi(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 Ti={tokenize:Di},Ei={tokenize:Oi};function Di(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 Ci;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(Ei,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(Ei,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 J(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 Ci;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 Oi(e,t,n){return Z(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function ki(e){if(e===null||Y(e)||vi(e))return 1;if(_i(e))return 2}function Ai(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 ji={name:`attention`,resolveAll:Mi,tokenize:Ni};function Mi(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};Pi(o,-a),Pi(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=W(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=W(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=W(r,Ai(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=W(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=W(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),U(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 Ni(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ki(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=ki(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 Pi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Fi={name:`autolink`,tokenize:Ii};function Ii(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 K(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||q(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||q(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||pi(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):fi(t)?(e.consume(t),l):n(t)}function u(e){return q(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||q(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Li={partial:!0,tokenize:Ri};function Ri(e,t,n){return r;function r(t){return X(t)?Z(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||J(e)?t(e):n(e)}}var zi={continuation:{tokenize:Vi},exit:Hi,name:`blockQuote`,tokenize:Bi};function Bi(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 X(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Vi(e,t,n){let r=this;return i;function i(t){return X(t)?Z(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(zi,t,n)(r)}}function Hi(e){e.exit(`blockQuote`)}var Ui={name:`characterEscape`,tokenize:Wi};function Wi(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 gi(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Gi={name:`characterReference`,tokenize:Ki};function Ki(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=q,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=hi,u):(e.enter(`characterReferenceValue`),a=7,o=mi,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===q&&!oi(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 qi={partial:!0,tokenize:Ji};function Ji(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 Yi={concrete:!0,name:`codeFenced`,tokenize:Xi};function Xi(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`),X(t)?Z(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||J(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(qi,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||J(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):X(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Z(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||J(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||J(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&&X(t)?Z(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||J(t)?e.check(qi,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||J(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`),X(t)?Z(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`),X(t)?Z(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||J(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Zi={name:`codeIndented`,tokenize:$i},Qi={partial:!0,tokenize:ea};function $i(e,t,n){return r;function r(t){return e.enter(`codeIndented`),bi(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):J(t)?e.attempt(Qi,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||J(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function ea(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):J(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):bi(e,t,a,`linePrefix`,4,4)(o)}function a(e){return J(e)?i(e):n(e)}}var ta={name:`codeText`,previous:ra,resolve:na,tokenize:ia};function na(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 ra(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function ia(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)):J(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||J(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 aa=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&&oa(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),oa(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),oa(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);oa(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);oa(this.left,t.reverse())}}}};function oa(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 sa(e){let t={},n=-1,r,i,a,o,s,c,l,u=new aa(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,ca(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 U(e,0,1/0,u.slice(0)),!l}function ca(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 la={resolve:da,tokenize:fa},ua={partial:!0,tokenize:pa};function da(e){return sa(e),e}function fa(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):J(t)?e.check(ua,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 pa(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Z(e,a,`linePrefix`)}function a(i){if(i===null||J(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 ma(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||pi(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||J(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||Y(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||pi(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 ha(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):J(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||J(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!X(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function ga(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):J(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Z(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||J(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 _a(e,t){let n;return r;function r(i){return J(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):X(i)?Z(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var va={name:`definition`,tokenize:ba},ya={partial:!0,tokenize:xa};function ba(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return ha.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=G(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 Y(t)?_a(e,l)(t):l(t)}function l(t){return ma(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(ya,d,d)(t)}function d(t){return X(t)?Z(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||J(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function xa(e,t,n){return r;function r(t){return Y(t)?_a(e,i)(t):n(t)}function i(t){return ga(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return X(t)?Z(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||J(e)?t(e):n(e)}}var Sa={name:`hardBreakEscape`,tokenize:Ca};function Ca(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return J(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var wa={name:`headingAtx`,resolve:Ta,tokenize:Ea};function Ta(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`};U(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Ea(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||Y(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||J(n)?(e.exit(`atxHeading`),t(n)):X(n)?Z(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||Y(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Da=`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(`.`),Oa=[`pre`,`script`,`style`,`textarea`],ka={concrete:!0,name:`htmlFlow`,resolveTo:ja,tokenize:Ma},Aa={partial:!0,tokenize:Na};function ja(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 Ma(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):K(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):K(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 K(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Y(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Oa.includes(l)?(i=1,r.interrupt?t(s):O(s)):Da.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||q(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 X(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||K(t)?(e.consume(t),b):X(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||q(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):X(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):X(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||J(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||Y(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||X(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||J(t)?O(t):X(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),te):t===63&&i===3?(e.consume(t),F):t===93&&i===5?(e.consume(t),P):J(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Aa,I,k)(t)):t===null||J(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(qi,A,I)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||J(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=``,ee):O(t)}function ee(t){if(t===62){let n=o.toLowerCase();return Oa.includes(n)?(e.consume(t),te):O(t)}return K(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ee):O(t)}function P(t){return t===93?(e.consume(t),F):O(t)}function F(t){return t===62?(e.consume(t),te):t===45&&i===2?(e.consume(t),F):O(t)}function te(t){return t===null||J(t)?(e.exit(`htmlFlowData`),I(t)):(e.consume(t),te)}function I(n){return e.exit(`htmlFlow`),t(n)}}function Na(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Li,t,n)}}var Pa={name:`htmlText`,tokenize:Fa};function Fa(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):K(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):K(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):J(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):J(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):J(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):J(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return K(t)?(e.consume(t),S):n(t)}function S(t){return t===45||q(t)?(e.consume(t),S):C(t)}function C(t){return J(t)?(o=C,N(t)):X(t)?(e.consume(t),C):M(t)}function w(t){return t===45||q(t)?(e.consume(t),w):t===47||t===62||Y(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||K(t)?(e.consume(t),E):J(t)?(o=T,N(t)):X(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||q(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):J(t)?(o=D,N(t)):X(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):J(t)?(o=O,N(t)):X(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):J(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||Y(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Y(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`),ee}function ee(t){return X(t)?Z(e,P,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):P(t)}function P(t){return e.enter(`htmlTextData`),o(t)}}var Ia={name:`labelEnd`,resolveAll:Ba,resolveTo:Va,tokenize:Ha},La={tokenize:Ua},Ra={tokenize:Wa},za={tokenize:Ga};function Ba(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&&U(e,0,e.length,n),e}function Va(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=W(o,e.slice(i+1,i+r+3)),o=W(o,[[`enter`,l,t]]),o=W(o,Ai(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=W(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=W(o,e.slice(a+1)),o=W(o,[[`exit`,s,t]]),U(e,i,e.length,o),e}function Ha(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(G(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(La,u,o?u:d)(t):t===91?e.attempt(Ra,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(za,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Ua(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 Y(t)?_a(e,a)(t):a(t)}function a(t){return t===41?u(t):ma(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Y(t)?_a(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?ga(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Y(t)?_a(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 Wa(e,t,n){let r=this;return i;function i(t){return ha.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(G(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Ga(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 Ka={name:`labelStartImage`,resolveAll:Ia.resolveAll,tokenize:qa};function qa(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 Ja={name:`labelStartLink`,resolveAll:Ia.resolveAll,tokenize:Ya};function Ya(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 Xa={name:`lineEnding`,tokenize:Za};function Za(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Z(e,t,`linePrefix`)}}var Qa={name:`thematicBreak`,tokenize:$a};function $a(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||J(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),X(t)?Z(e,s,`whitespace`)(t):s(t))}}var Q={continuation:{tokenize:ro},exit:ao,name:`list`,tokenize:no},eo={partial:!0,tokenize:oo},to={partial:!0,tokenize:io};function no(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:mi(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(Qa,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 mi(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(Li,r.interrupt?n:u,e.attempt(eo,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return X(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 ro(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Li,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Z(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!X(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(to,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Z(e,e.attempt(Q,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function io(e,t,n){let r=this;return Z(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 ao(e){e.exit(this.containerState.type)}function oo(e,t,n){let r=this;return Z(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!X(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var so={name:`setextUnderline`,resolveTo:co,tokenize:lo};function co(e,t){let n=new Ci,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 lo(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`),X(t)?Z(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||J(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var uo={tokenize:fo};function fo(e){let t=this,n=e.attempt(Li,r,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(la,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 po={resolveAll:_o()},mo=go(`string`),ho=go(`text`);function go(e){return{resolveAll:_o(e===`text`?vo: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 _o(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 vo(e,t){let n=new Ci,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 yo=e({attentionMarkers:()=>Do,contentInitial:()=>xo,disable:()=>Oo,document:()=>bo,flow:()=>Co,flowInitial:()=>So,insideSpan:()=>Eo,string:()=>wo,text:()=>To}),bo={42:Q,43:Q,45:Q,48:Q,49:Q,50:Q,51:Q,52:Q,53:Q,54:Q,55:Q,56:Q,57:Q,62:zi},xo={91:va},So={[-2]:Zi,[-1]:Zi,32:Zi},Co={35:wa,42:Qa,45:[so,Qa],60:ka,61:so,95:Qa,96:Yi,126:Yi},wo={38:Gi,92:Ui},To={[-5]:Xa,[-4]:Xa,[-3]:Xa,33:Ka,38:Gi,42:ji,60:[Fi,Pa],91:Ja,92:[Sa,Ui],93:Ia,95:ji,96:ta},Eo={null:[ji,po]},Do={null:[42,95]},Oo={null:[]};function ko(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=W(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Ai(a,l.events,l),l.events):[]}function f(e,t){return jo(p(e),t)}function p(e){return Ao(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){J(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&&U(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 Ao(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 jo(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=`
7
- `;break;case-3:o=`\r
8
- `;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 Mo(e){let t={constructs:ci([yo,...(e||{}).extensions||[]]),content:n(xi),defined:[],document:n(Ti),flow:n(uo),lazy:{},string:n(mo),text:n(ho)};return t;function n(e){return n;function n(n){return ko(t,e,n)}}}function No(e){for(;!sa(e););return e}var Po=/[\0\t\n\r]/g;function Fo(){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;){Po.lastIndex=c;let n=Po.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 Io=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lo(e){return e.replace(Io,Ro)}function Ro(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return di(n.slice(t?2:1),t?16:10)}return oi(n)||e}function zo(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Vo(e.position):`start`in e||`end`in e?Vo(e):`line`in e||`column`in e?Bo(e):``}function Bo(e){return Ho(e&&e.line)+`:`+Ho(e&&e.column)}function Vo(e){return Bo(e&&e.start)+`-`+Bo(e&&e.end)}function Ho(e){return e&&typeof e==`number`?e:1}var Uo={}.hasOwnProperty;function Wo(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Go(n)(No(Mo(n).document().write(Fo()(e,t,!0))))}function Go(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ge),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(fe),blockQuote:o(le),characterEscape:E,characterReference:E,codeFenced:o(ue),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ue,s),codeText:o(R,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(z),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(de),hardBreakEscape:o(pe),hardBreakTrailing:o(pe),htmlFlow:o(me,s),htmlFlowData:E,htmlText:o(me,s),htmlTextData:E,image:o(he),label:s,link:o(ge),listItem:o(ve),listItemValue:p,listOrdered:o(_e,f),listUnordered:o(_e),paragraph:o(ye),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(fe),strong:o(be),thematicBreak:o(Se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ce,autolinkProtocol:se,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:ae,characterReference:oe,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(ee),label:F,labelText:P,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:L,resourceDestinationString:te,resourceTitleString:I,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};qo(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]),Uo.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]||Yo).call(o,void 0,e[0])}for(r.position={start:Ko(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ko(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:Ko(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+"` ("+zo({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Yo).call(this,e,r[0])),n.position.end=Ko(e.end)}function d(){return ti(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=G(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=xe(),n.position={start:Ko(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=Ko(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=Ko(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 ee(){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(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Lo(t),n.identifier=G(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 te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function L(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=G(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ie(e){this.data.characterReferenceType=e.type}function ae(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=di(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=oi(t);let i=this.stack[this.stack.length-1];i.value+=r}function oe(e){let t=this.stack.pop();t.position.end=Ko(e.end)}function se(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function le(){return{type:`blockquote`,children:[],position:void 0}}function ue(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function R(){return{type:`inlineCode`,value:``,position:void 0}}function z(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function de(){return{type:`emphasis`,children:[],position:void 0}}function fe(){return{type:`heading`,depth:0,children:[],position:void 0}}function pe(){return{type:`break`,position:void 0}}function me(){return{type:`html`,value:``,position:void 0}}function he(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ge(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function _e(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ve(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function ye(){return{type:`paragraph`,children:[],position:void 0}}function be(){return{type:`strong`,children:[],position:void 0}}function xe(){return{type:`text`,value:``,position:void 0}}function Se(){return{type:`thematicBreak`,position:void 0}}}function Ko(e){return{line:e.line,column:e.column,offset:e.offset}}function qo(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?qo(e,r):Jo(e,r)}}function Jo(e,t){let n;for(n in t)if(Uo.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 Yo(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+zo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zo({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+zo({start:t.start,end:t.end})+`) is still open`)}function Xo(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 Zo(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var Qo=(function(e){if(e==null)return rs;if(typeof e==`function`)return ns(e);if(typeof e==`object`)return Array.isArray(e)?$o(e):es(e);if(typeof e==`string`)return ts(e);throw Error(`Expected function, string, or object as test`)});function $o(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Qo(e[n]);return ns(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function es(e){let t=e;return ns(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function ts(e){return ns(t);function t(t){return t&&t.type===e}}function ns(e){return t;function t(t,n,r){return!!(is(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function rs(){return!0}function is(e){return typeof e==`object`&&!!e&&`type`in e}function as(e){return e}var os=[],ss=`skip`;function cs(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=Qo(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 (`+as(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=os;if(s&&r&&(o=ls(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=ls(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 ls(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?os:[e]}function us(e,t,n){let r=Qo((n||{}).ignore||[]),i=ds(t),a=-1;for(;++a<i.length;)cs(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 ss}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 ds(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([fs(e[0]),ps(e[1])])}return t}function fs(e){return typeof e==`string`?new RegExp(Zo(e),`g`):e}function ps(e){return typeof e==`function`?e:function(){return e}}function ms(){return{transforms:[xs],enter:{literalAutolink:hs,literalAutolinkEmail:gs,literalAutolinkHttp:gs,literalAutolinkWww:gs},exit:{literalAutolink:bs,literalAutolinkEmail:ys,literalAutolinkHttp:_s,literalAutolinkWww:vs}}}function hs(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function gs(e){this.config.enter.autolinkProtocol.call(this,e)}function _s(e){this.config.exit.autolinkProtocol.call(this,e)}function vs(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 ys(e){this.config.exit.autolinkEmail.call(this,e)}function bs(e){this.exit(e)}function xs(e){us(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ss],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Cs]],{ignore:[`link`,`linkReference`]})}function Ss(e,t,n,r,i){let a=``;if(!Es(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!ws(n)))return!1;let o=Ts(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 Cs(e,t,n,r){return!Es(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function ws(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 Ts(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=Xo(e,`(`),a=Xo(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 Es(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||vi(n)||_i(n))&&(!t||n!==47)}Is.peek=Fs;function Ds(){this.buffer()}function Os(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ks(){this.buffer()}function As(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function js(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=G(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ms(e){this.exit(e)}function Ns(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=G(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ps(e){this.exit(e)}function Fs(){return`[`}function Is(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 Ls(){return{enter:{gfmFootnoteCallString:Ds,gfmFootnoteCall:Os,gfmFootnoteDefinitionLabelString:ks,gfmFootnoteDefinition:As},exit:{gfmFootnoteCallString:js,gfmFootnoteCall:Ms,gfmFootnoteDefinitionLabelString:Ns,gfmFootnoteDefinition:Ps}}}Vs.attention=Hs,Vs.peek=Us;function Rs(){return{canContainEols:[`delete`],enter:{strikethrough:zs},exit:{strikethrough:Bs}}}function zs(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Bs(e){this.exit(e)}function Vs(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 Hs(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Us(){return`~`}function Ws(){return{enter:{table:Gs,tableData:Ys,tableHeader:Ys,tableRow:qs},exit:{codeText:Xs,table:Ks,tableData:Js,tableHeader:Js,tableRow:Js}}}function Gs(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 Ks(e){this.exit(e),this.data.inTable=void 0}function qs(e){this.enter({type:`tableRow`,children:[]},e)}function Js(e){this.exit(e)}function Ys(e){this.enter({type:`tableCell`,children:[]},e)}function Xs(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Zs));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Zs(e,t){return t===`|`?t:e}function Qs(){return{exit:{taskListCheckValueChecked:$s,taskListCheckValueUnchecked:$s,paragraph:ec}}}function $s(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function ec(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 tc(){return[ms(),Ls(),Rs(),Ws(),Qs()]}var nc={tokenize:gc,partial:!0},rc={tokenize:_c,partial:!0},ic={tokenize:vc,partial:!0},ac={tokenize:yc,partial:!0},oc={tokenize:bc,partial:!0},sc={name:`wwwAutolink`,tokenize:mc,previous:xc},cc={name:`protocolAutolink`,tokenize:hc,previous:Sc},lc={name:`emailAutolink`,tokenize:pc,previous:Cc},uc={};function dc(){return{text:uc}}for(var fc=48;fc<123;)uc[fc]=lc,fc++,fc===58?fc=65:fc===91&&(fc=97);uc[43]=lc,uc[45]=lc,uc[46]=lc,uc[95]=lc,uc[72]=[lc,cc],uc[104]=[lc,cc],uc[87]=[lc,sc],uc[119]=[lc,sc];function pc(e,t,n){let r=this,i,a;return o;function o(t){return!wc(t)||!Cc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return wc(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(oc,u,l)(t):t===45||t===95||q(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&&K(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function mc(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!xc.call(r,r.previous)||Tc(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(nc,e.attempt(rc,e.attempt(ic,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function hc(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Sc.call(r,r.previous)&&!Tc(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(K(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||pi(t)||Y(t)||vi(t)||_i(t)?n(t):e.attempt(rc,e.attempt(ic,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function gc(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 _c(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(ac,c,s)(t):t===null||Y(t)||vi(t)||t!==45&&_i(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 vc(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(ac,t,a)(o):o===null||Y(o)||vi(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function yc(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||Y(o)||vi(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Y(e)||vi(e)?t(e):r(e)}function a(e){return K(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):K(t)?(e.consume(t),o):n(t)}}function bc(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return q(e)?n(e):t(e)}}function xc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Y(e)}function Sc(e){return!K(e)}function Cc(e){return!(e===47||wc(e))}function wc(e){return e===43||e===45||e===46||e===95||q(e)}function Tc(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 Ec={tokenize:Pc,partial:!0};function Dc(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:jc,continuation:{tokenize:Mc},exit:Nc}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ac},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Oc,resolveTo:kc}}}}function Oc(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=G(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 kc(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 Ac(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||Y(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(G(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Y(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 jc(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||Y(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=G(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Y(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),Z(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Mc(e,t,n){return e.check(Li,t,e.attempt(Ec,t,n))}function Nc(e){e.exit(`gfmFootnoteDefinition`)}function Pc(e,t,n){let r=this;return Z(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 Fc(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&&U(o,o.length,0,Ai(s,e.slice(r+1,n),t)),U(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),U(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=ki(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=ki(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Ic=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){Lc(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 Lc(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 Rc(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 zc(){return{flow:{null:{name:`table`,tokenize:Bc,resolveAll:Vc}}}}function Bc(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):J(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):X(t)?Z(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||Y(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,X(t)?Z(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 X(t)?Z(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||J(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 X(t)?Z(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||J(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||J(n)?(e.exit(`tableRow`),t(n)):X(n)?Z(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Y(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 Vc(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 Ic;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Uc(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=Hc(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=Hc(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=Hc(f,t,o,i,n,d)):(o[0]=o[1],d=Hc(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Uc(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=Rc(t.events,n))}return e}function Hc(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Wc(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Wc(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=Wc(t.events,n[2]),a=Wc(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({},Wc(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Uc(e,t,n,r,i){let a=[],o=Wc(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 Wc(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Gc={name:`tasklistCheck`,tokenize:qc};function Kc(){return{text:{91:Gc}}}function qc(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 Y(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 J(r)?t(r):X(r)?e.check({tokenize:Jc},t,n)(r):n(r)}}function Jc(e,t,n){return Z(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Yc(e){return ci([dc(),Dc(),Fc(e),zc(),Kc()])}var Xc=12,Zc=`[&_p]:max-w-measure [&_ul]:max-w-measure [&_ol]:max-w-measure [&_blockquote]:max-w-measure [&_h1]:max-w-measure [&_h2]:max-w-measure [&_h3]:max-w-measure [&_h4]:max-w-measure [&_h5]:max-w-measure [&_h6]:max-w-measure`,Qc=`[&>h3:not(:first-child)]:mt-8 [&>h3:not(:first-child)]:pt-6 [&>hr+h3]:mt-6 [&>hr+h3]:pt-0[&>h4:not(:first-child)]:mt-8 [&>h4:not(:first-child)]:pt-6 [&>hr+h4]:mt-6 [&>hr+h4]:pt-0`;function $c(e){let t=String(e??``).replace(/[\u0000-\u0020\u007f-\u009f]/g,``).trim();return t?/^https?:\/\/[^/]/i.test(t)?`web`:/^mailto:[^\s@]+@/i.test(t)?`mail`:/^[a-z]:[\\/]/i.test(t)?`path`:/^[a-z][a-z0-9+.-]*:/i.test(t)?`unsafe`:`path`:`unsafe`}function el(e){return Wo(e,{extensions:[Yc()],mdastExtensions:[tc()]})}var tl=e=>`value`in e&&typeof e.value==`string`?e.value:`children`in e?e.children.map(tl).join(``):``;async function nl(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function rl({text:e,label:t}){let[n,r]=(0,V.useState)(!1);return(0,B.jsx)(Yt,{variant:`icon`,size:`icon-sm`,"aria-label":n?`Copied`:t,"data-tip":n?`Copied`:t,onClick:async()=>{await nl(e)&&(r(!0),setTimeout(()=>r(!1),1500))},className:`flex-none`,children:n?(0,B.jsx)(Ot,{size:14,"aria-hidden":`true`,className:`text-pass`}):(0,B.jsx)(we,{size:14,"aria-hidden":`true`})})}var il=null,al,ol=()=>al??=d(()=>import(`./highlight-b70fFRUT.js`).then(e=>void(il=e),e=>{throw al=void 0,e}),__vite__mapDeps([0,1,2,3]));function sl(e,t){let[n,r]=(0,V.useState)(!!il);return(0,V.useEffect)(()=>{if(n||e===null)return;let t=!1;return ol().then(()=>!t&&r(!0),()=>{}),()=>{t=!0}},[n,e]),(0,V.useMemo)(()=>e===null?null:il?il.highlighted(e,t):e,[e,t,n])}function cl(e){return(/(?:title|file|filename)=["']?([^"'\s]+)["']?/.exec(e||``)||/^\s*([\w./\\-]+\.\w{1,8})\s*$/.exec(e||``))?.[1]??``}function ll(e){let[t=``,n=``]=String(e||``).split(`:`);return{lang:t.toLowerCase(),file:n}}var ul={ts:`typescript`,tsx:`typescript`,js:`javascript`,jsx:`javascript`,py:`python`,sh:`bash`,shell:`bash`,yml:`yaml`,cs:`csharp`,md:`markdown`};function dl({value:e,lang:t,meta:n}){let{lang:r,file:i}=ll(t),a=i||cl(n);return r===`diff`||r===`patch`?(0,B.jsx)(Yr,{diff:e,className:`my-4`}):(0,B.jsx)($r,{files:[{name:a||ul[r]||r||`text`,code:e,lang:r||`plaintext`}],label:a||`Code`,className:`my-4 max-h-[480px]`})}var fl=/^(passed|pass|ok|success|succeeded|done|✓|✅|yes)$/i,pl=/^(failed|fail|error|errored|broken|✗|❌|no)$/i,ml=/^(skipped|skip|pending|blocked|n\/a|stopped|flaky)$/i;function hl({node:e,ctx:t}){let[n,r]=(0,V.useState)(!1),[i,...a]=e.children,o=e.align||[],s=n?a:a.slice(0,Xc),l=e.children.map(e=>e.children.map(e=>tl(e).replace(/\s+/g,` `).trim()).join(` `)).join(`
9
- `),u=(e,n,r,i)=>{let a=tl(e).trim(),s=r?`th`:`td`,c=!r&&(fl.test(a)?`pass`:pl.test(a)?`fail`:ml.test(a)?`skip`:``);return(0,B.jsx)(s,{scope:r?`col`:void 0,className:p(`border-t border-line-soft px-4 py-2 align-top`,r&&`border-t-0 bg-surface-muted text-body-sm font-medium whitespace-nowrap text-ink-2`,o[i]===`right`?`text-right tabular-nums`:o[i]===`center`?`text-center`:`text-left`),children:c?(0,B.jsx)(Cr,{tone:c===`pass`?`pass`:c===`fail`?`fail`:`neutral`,children:a}):$(e,t)},n)};return(0,B.jsxs)(`figure`,{className:`my-4`,children:[(0,B.jsx)(`div`,{className:p(c,`overflow-x-auto`),children:(0,B.jsxs)(`table`,{className:`min-w-full border-collapse text-body-sm [overflow-wrap:normal]`,children:[i&&(0,B.jsx)(`thead`,{className:`bg-surface-strong`,children:(0,B.jsx)(`tr`,{children:i.children.map((e,t)=>u(e,t,!0,t))})}),(0,B.jsx)(`tbody`,{children:s.map((e,t)=>(0,B.jsx)(`tr`,{className:`even:bg-surface-muted/50`,children:e.children.map((e,t)=>u(e,t,!1,t))},t))})]})}),(0,B.jsxs)(`figcaption`,{className:`mt-1 flex items-center gap-2`,children:[(0,B.jsxs)(`span`,{className:`flex-1 text-body-sm text-muted`,children:[a.length,` row`,a.length===1?``:`s`]}),a.length>s.length&&(0,B.jsxs)(Yt,{variant:`ghost`,size:`sm`,onClick:()=>r(!0),"data-tip":`Show all ${a.length} rows`,children:[(0,B.jsx)(T,{size:14,"aria-hidden":`true`}),`All (`,a.length,`)`]}),(0,B.jsx)(rl,{text:l,label:`Copy the table, for a spreadsheet`})]})]})}var gl=e=>{try{return new URL(e).host.replace(/^www\./,``)}catch{return``}},_l=e=>{try{let t=new URL(e);return`${t.host.replace(/^www\./,``)}${t.pathname.replace(/\/$/,``)}`}catch{return e}};function vl(e){let t=e.trim().replace(/(?<![\\/])[\\/]+$/,``);return/\.html?$/i.test(t)||!/\.[A-Za-z][A-Za-z0-9]{0,7}$/.test(t.split(/[\\/]/).pop()||``)?`report`:/\.(cs|ts|tsx|js|jsx|mjs|py|java|kt|go|rb|php|feature|spec|robot|cy\.ts|json|ya?ml|xml|csproj|sln|sql|sh|ps1)$/i.test(t)?`code`:`file`}function yl(e,t=3){let n=e.trim().split(/[\\/]/).filter(Boolean);return n.length>t?`…/${n.slice(-t).join(`/`)}`:e.trim()}function bl({path:e,line:t}){let n=yl(e),r=Math.max(n.lastIndexOf(`/`),n.lastIndexOf(`\\`))+1;return(0,B.jsxs)(B.Fragment,{children:[r>0&&(0,B.jsx)(`span`,{className:`font-normal text-muted`,children:n.slice(0,r)}),n.slice(r),t]})}function xl(e){let t=/^(.+?)(:\d{1,7}(?:[-–]\d{1,7})?)$/.exec(e.trim());return t?{path:t[1],line:t[2]}:{path:e.trim(),line:``}}function Sl({note:e}){return(0,B.jsx)(`span`,{role:`status`,className:`mx-1 inline-block max-w-full align-baseline text-body-sm text-muted [overflow-wrap:anywhere]`,children:e})}function Cl({path:e,line:t=``,children:n,onNote:r}){let[i,a]=(0,V.useState)(``),[o,s]=(0,V.useState)(!1),c=async()=>{a(``);let t=await yr(e);r?r(t):a(t)},l=vl(e),u=l===`report`?/\.html?$/i.test(e)?Ge:_:l===`code`?ot:Pt;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`span`,{className:`group/file mx-1 inline-flex max-w-full items-baseline gap-1 align-baseline`,children:[(0,B.jsxs)(Yt,{variant:`link`,size:`inline`,"data-tip":`Open ${e}${t}`,onClick:()=>void c(),className:`min-w-0 gap-1 self-center font-mono text-label-md font-normal`,children:[(0,B.jsx)(Zt,{icon:u,size:13,className:`flex-none`}),(0,B.jsx)(`span`,{className:`truncate`,children:n??(0,B.jsx)(bl,{path:e,line:t})})]}),(0,B.jsx)(Yt,{variant:`icon`,size:`icon-xs`,"aria-label":o?`Copied`:`Copy the path ${e}`,"data-tip":o?`Copied`:`Copy the path ${e}`,onClick:async()=>{await nl(e)&&(s(!0),setTimeout(()=>s(!1),1500))},className:`self-center opacity-40 group-hover/file:opacity-100 focus-visible:opacity-100`,children:o?(0,B.jsx)(Ot,{size:12,"aria-hidden":`true`,className:`text-pass`}):(0,B.jsx)(we,{size:12,"aria-hidden":`true`})})]}),i&&(0,B.jsx)(Sl,{note:i})]})}function wl({path:e,alt:t}){let[n,r]=(0,V.useState)(``),[i,a]=(0,V.useState)(!1);return(0,V.useEffect)(()=>{let t=!1;return h.open(e).then(e=>!t&&(e.kind===`image`?r(e.url):a(!0)),()=>!t&&a(!0)),()=>{t=!0}},[e]),i?(0,B.jsx)(Cl,{path:e,children:t}):n?(0,B.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,"data-tip":`${t}: open full size`,className:`my-2 block w-fit`,children:(0,B.jsx)(`img`,{src:n,alt:t,className:p(l,`block max-h-[360px] max-w-full object-contain`)})}):(0,B.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[t,`…`]})}var Tl=/(?<![\w/\\.:@~-])((?:[A-Za-z]:)?(?:\.{1,2})?[\\/]?(?:\.?[\w@-][\w@.-]*[\\/])+\.?[\w@-][\w@.-]*\.[A-Za-z][A-Za-z0-9]{0,7})(?![\w\\/-])/g;function El(e){let t=[],n=0;for(let r of e.matchAll(Tl))r.index>n&&t.push(e.slice(n,r.index)),t.push((0,B.jsx)(Cl,{path:r[1]},r.index)),n=r.index+r[0].length;return t.length?(n<e.length&&t.push(e.slice(n)),t):e}var Dl=/^(?:[A-Za-z]:)?[\\/]?(?:[\w@.~-]+[\\/])*\.forgeqe[\\/]reports[\\/][\w.-]+[\\/]?$/,Ol=e=>{if(Dl.test(e.trim()))return!0;Tl.lastIndex=0;let t=[...e.trim().matchAll(Tl)];return t.length===1&&t[0][0]===e.trim()};function kl({url:e,children:t}){return(0,B.jsxs)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`inline text-accent-fg underline-offset-2 hover:underline`,"data-tip":e,children:[t,(0,B.jsx)(Le,{size:12,"aria-hidden":`true`,className:`ml-1 inline align-[-1px]`})]})}function Al({name:e,refs:t,code:n}){return(0,B.jsx)(Yt,{variant:`link`,size:`inline`,onClick:()=>t.open(e),className:p(n&&`font-mono`),children:e})}function jl(e,t){let n=[...t].filter(Boolean).sort((e,t)=>t.length-e.length);if(!n.length)return[{text:e,ref:!1}];let r=RegExp(`(?<![\\w./-])(${n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`)})(?![\\w/-]|\\.\\w)`,`g`),i=[],a=0;for(let t of e.matchAll(r))t.index>a&&i.push({text:e.slice(a,t.index),ref:!1}),i.push({text:t[0],ref:!0}),a=t.index+t[0].length;return a<e.length&&i.push({text:e.slice(a),ref:!1}),i}function $(e,t){return`children`in e?e.children.map((e,n)=>(0,B.jsx)(V.Fragment,{children:Ml(e,t)},n)):null}function Ml(e,t){switch(e.type){case`paragraph`:return(0,B.jsx)(`p`,{className:`my-2`,children:$(e,t)});case`heading`:{let n=[`text-headline-md`,`text-headline-sm`,`text-body-lg`,`text-body-sm text-muted`,`text-body-sm text-muted`,`text-body-sm text-muted`][e.depth-1],r=`h${Math.min(6,e.depth+2)}`;return(0,B.jsx)(r,{className:p(`mb-2 font-medium`,n,e.depth<=2?`mt-8`:`mt-6`),children:$(e,t)})}case`text`:if(t.refs?.names.length){let n=t.refs;return jl(e.value,n.names).map((e,t)=>(0,B.jsx)(V.Fragment,{children:e.ref?(0,B.jsx)(Al,{name:e.text,refs:n}):El(e.text)},t))}return El(e.value);case`strong`:return(0,B.jsx)(`strong`,{className:`font-medium`,children:$(e,t)});case`emphasis`:return(0,B.jsx)(`em`,{children:$(e,t)});case`delete`:return(0,B.jsx)(`del`,{className:`text-muted`,children:$(e,t)});case`inlineCode`:if(t.refs?.names.includes(e.value.trim()))return(0,B.jsx)(Al,{name:e.value.trim(),refs:t.refs,code:!0});if(Ol(e.value))return(0,B.jsx)(Cl,{path:e.value.trim()});{let{path:t,line:n}=xl(e.value);if(n&&Ol(t))return(0,B.jsx)(Cl,{path:t,line:n})}return(0,B.jsx)(`code`,{className:p(qr,`text-label-md font-normal`),children:e.value});case`break`:return(0,B.jsx)(`br`,{});case`thematicBreak`:return(0,B.jsx)(`hr`,{className:`my-6 border-0 border-t border-line`});case`blockquote`:return(0,B.jsx)(`blockquote`,{className:`my-4 border-0 border-l-[3px] border-solid border-line-strong py-1 pl-4 text-ink-2`,children:$(e,t)});case`list`:{let n=e.children.some(e=>typeof e.checked==`boolean`),r=e.ordered?`ol`:`ul`;return(0,B.jsx)(r,{start:e.ordered&&e.start&&e.start!==1?e.start:void 0,className:p(`my-2 pl-6 marker:text-muted [&_ol]:my-1 [&_ol]:pl-6 [&_ul]:my-1 [&_ul]:list-[circle] [&_ul]:pl-6`,n?`list-none pl-1`:e.ordered?`list-decimal`:`list-disc`),children:$(e,t)})}case`listItem`:{let n=e.children.map((n,r)=>n.type===`paragraph`&&!e.spread?(0,B.jsx)(V.Fragment,{children:$(n,t)},r):(0,B.jsx)(V.Fragment,{children:Ml(n,t)},r));return typeof e.checked==`boolean`?(0,B.jsxs)(`li`,{className:`my-1 flex items-start gap-2`,children:[e.checked?(0,B.jsx)(ze,{size:16,"aria-label":`Done`,className:`mt-1 flex-none text-pass`}):(0,B.jsx)(wt,{size:16,"aria-label":`Not done`,className:`mt-1 flex-none text-muted`}),(0,B.jsx)(`span`,{className:p(`min-w-0`,e.checked&&`text-ink-2`),children:n})]}):(0,B.jsx)(`li`,{className:`my-1 pl-1`,children:n})}case`code`:return(0,B.jsx)(dl,{value:e.value,lang:e.lang,meta:e.meta});case`table`:return(0,B.jsx)(hl,{node:e,ctx:t});case`link`:{let n=$c(e.url),r=$(e,{...t,refs:void 0});if(n===`web`){let t=tl(e);return(0,B.jsx)(kl,{url:e.url,children:t===e.url?_l(e.url):r})}return n===`mail`?(0,B.jsx)(`a`,{href:e.url,className:`text-accent-fg underline-offset-2 hover:underline`,children:r}):n===`path`?(0,B.jsx)(Cl,{path:e.url,children:tl(e)===e.url?void 0:r}):(0,B.jsx)(`span`,{children:r})}case`image`:{let t=$c(e.url),n=e.alt||`image`;return t===`web`?(0,B.jsxs)(kl,{url:e.url,children:[(0,B.jsx)(mt,{size:14,"aria-hidden":`true`,className:`mr-1 inline align-[-2px]`}),n,` (`,gl(e.url),`)`]}):t===`path`?(0,B.jsx)(wl,{path:e.url,alt:n}):(0,B.jsx)(`span`,{children:n})}case`html`:return(0,B.jsx)(`span`,{className:`font-mono text-body-sm text-ink-2`,children:e.value});case`footnoteReference`:{let n=t.footnotes.get(e.identifier)??t.footnotes.size+1;return t.footnotes.set(e.identifier,n),(0,B.jsxs)(`sup`,{className:`text-body-sm text-muted`,children:[`[`,n,`]`]})}case`footnoteDefinition`:return(0,B.jsxs)(`div`,{className:`my-1 flex gap-2 text-body-sm text-ink-2`,children:[(0,B.jsxs)(`span`,{className:`text-muted`,children:[`[`,t.footnotes.get(e.identifier)??e.label??e.identifier,`]`]}),(0,B.jsx)(`div`,{className:`min-w-0 [&>p]:my-0`,children:$(e,t)})]});case`definition`:return null;case`yaml`:return(0,B.jsx)(dl,{value:e.value,lang:`yaml`});default:return`children`in e?$(e,t):`value`in e?String(e.value):null}}function Nl({text:e,className:t,refs:n,fill:r}){let i=(0,V.useMemo)(()=>el(e),[e]),a={footnotes:new Map,refs:n};return(0,B.jsx)(`div`,{className:p(`text-body-lg leading-[1.65] text-ink [overflow-wrap:anywhere] [&>:first-child]:mt-0 [&>:last-child]:mb-0`,Qc,!r&&Zc,t),children:i.children.map((e,t)=>(0,B.jsx)(V.Fragment,{children:Ml(e,a)},t))})}function Pl({href:e,label:t,className:n}){return(0,B.jsxs)(`a`,{href:e,className:p(`inline-flex min-h-9 w-fit items-center gap-2 self-start text-body-sm`,n),children:[(0,B.jsx)(Oe,{size:16,"aria-hidden":`true`}),t]})}var Fl=()=>typeof location>`u`?[]:location.hash.replace(/^#\/?/,``).split(`/`).filter(Boolean);function Il(){let[e,t]=(0,V.useState)(Fl);return(0,V.useEffect)(()=>{let e=()=>t(Fl());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),e}function Ll({to:e,className:t}){let n=zt(Il()),r=e??n;return r?(0,B.jsx)(Pl,{href:r.href,label:r.label,className:p(`md:hidden`,t)}):null}export{vr as A,Tr as C,Cr as D,wr as E,Vt as F,Yt as M,qt as N,br as O,Bt as P,jr as S,Er as T,Mr as _,Nl as a,Rr as b,Qr as c,Kr as d,qr as f,Nr as g,Ar as h,Cl as i,Zt as j,yr as k,$r as l,Gr as m,Ll as n,$c as o,Jr as p,rl as r,sl as s,Pl as t,Yr as u,Lr as v,Dr as w,Pr as x,zr as y};
@@ -1,2 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-BDur5s0O.js";import{r as n}from"./route-9BkoTWUE.js";import{F as r,H as i,l as a,o,u as s}from"./preload-helper-BupTYkQW.js";import{t as c}from"./utils-DJRAScIl.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";import{Y as u}from"./api-CLFzGvjv.js";import{C as d,D as f,F as p,M as m,N as h,P as g,i as _,j as v,k as y,x as b}from"./pageBack-DZTkmgGZ.js";import{$t as x,E as S,Er as C,Gr as ee,I as w,Kr as T,N as E,Nr as D,Nt as O,Qn as k,Rt as te,Tr as ne,Wn as A,Wr as re,Yt as ie,Zt as ae,_t as oe,at as se,cn as ce,ct as le,lt as ue,o as de,or as fe,t as pe,v as me,wr as he,xt as ge,yt as _e,z as ve}from"./line-icons-Cwj9OmCz.js";import{Ct as j,Dt as M,Et as N,Tt as P,bt as F,dn as I,en as ye,kt as be,mt as xe,xt as Se}from"./frame-BUnqEFkX.js";import{J as L,Y as R,q as Ce}from"./index-CPftbTjg.js";var z=e(t(),1),B=l(),V={failed:{label:`Fails`,cell:`bg-fail text-bg`,key:`bg-fail`},review:{label:`Needs a person`,cell:`bg-warn text-bg`,key:`bg-warn`},passed:{label:`Rules pass`,cell:`bg-pass-soft`,key:`bg-pass-soft`},exercised:{label:`A persona got through`,cell:`bg-accent-line`,key:`bg-accent-line`},not_tested:{label:`Checked by hand`,cell:`bg-bg ring-1 ring-line ring-inset`,key:`bg-bg ring-1 ring-line-strong ring-inset`}};function we({cells:e,label:t,className:n,words:r,count:i,keyed:a=!0}){let o=[...new Set(e.map(e=>e.group))],s=e=>r?.[e]??V[e].label;return(0,B.jsxs)(`div`,{className:c(`@container flex min-w-0 flex-col gap-4`,n),children:[(0,B.jsx)(`div`,{className:`flex flex-col gap-4 @3xl:flex-row @3xl:gap-4`,children:o.map(n=>{let r=e.filter(e=>e.group===n);return(0,B.jsxs)(`div`,{className:`flex min-w-32 flex-col gap-2`,style:{flexGrow:r.length,flexBasis:0},children:[(0,B.jsx)(`ol`,{"aria-label":`${t}: ${n}`,className:`m-0 flex list-none gap-1 p-0`,children:r.map(e=>{let t=V[e.result],n=e.result===`failed`||e.result===`review`;return(0,B.jsxs)(`li`,{"data-tip":`${e.id} ${e.title} (${e.level}): ${s(e.result)}`,className:c(`flex h-11 min-w-0 flex-1 items-end justify-center overflow-hidden rounded-sm pb-1`,t.cell),children:[n&&(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`text-label-sm [writing-mode:vertical-rl] rotate-180`,children:e.id}),(0,B.jsx)(`span`,{className:`sr-only`,children:`${e.id} ${e.title}: ${s(e.result)}`})]},e.id)})}),(0,B.jsxs)(`span`,{className:`flex justify-between gap-2 text-label-md text-ink-2`,children:[(0,B.jsx)(`span`,{className:`truncate`,children:n}),(0,B.jsx)(`span`,{className:`flex-none text-muted tabular-nums`,children:i?i(r):r.length})]})]},n)})}),a&&(0,B.jsx)(Te,{cells:e,words:r})]})}function Te({cells:e,words:t}){let n=Object.keys(V).filter(t=>e.some(e=>e.result===t));return(0,B.jsx)(`ul`,{"aria-label":`Key`,className:`m-0 flex list-none flex-wrap gap-x-4 gap-y-1 p-0 text-label-md text-muted`,children:n.map(e=>(0,B.jsxs)(`li`,{className:`inline-flex items-center gap-2`,children:[(0,B.jsx)(`span`,{"aria-hidden":`true`,className:c(`size-3 rounded-sm`,V[e].key)}),t?.[e]??V[e].label]},e))})}var H={region:{title:`Some content sits outside the page's regions`,why:`Screen reader users jump between regions (header, main, navigation, footer) to find things. Content outside every region is easy to miss.`,fix:["Put the content inside a region: `<main>`, `<header>`, `<nav>`, `<aside>` or `<footer>`.","For a banner or strip of its own, a `<section>` or `<aside>` with an `aria-label` is enough."]},"landmark-unique":{title:`Two regions of the same kind have the same name`,why:`A screen reader lists both under one name, so people can't tell which one they are moving to.`,fix:["Give each region its own `aria-label`, such as “Flight filters” and “Sort options”.",`Or, if they are one thing, merge them into a single region.`]},"landmark-one-main":{title:`The page has no main region`,why:`Screen reader users skip straight to the main content with one key. Without a main region they have to read through everything before it.`,fix:["Wrap the page's main content in one `<main>` element."]},"landmark-complementary-is-top-level":{title:`A side region is nested inside another region`,why:`Screen readers list regions as an outline; a side region buried inside another is hard to find and confusing to reach.`,fix:["Move the `<aside>` out so it is not inside `<main>`, `<nav>` or another region, or make it a plain `<div>`."]},"color-contrast":{title:`Text is too faint against its background`,why:`People with low vision, colour blindness or a screen in sunlight can't read text without enough contrast.`,fix:[`Darken the text or lighten the background until the contrast is at least 4.5:1 (3:1 for large text).`,`Check the colours with a contrast checker, including hover and disabled states.`]},"link-in-text-block":{title:`A link in a sentence can only be told apart by its colour`,why:`People who can't see the colour difference don't know the words are a link.`,fix:[`Underline links inside text, or give them a contrast of 3:1 with the text around them plus a visible change on hover and focus.`]},"image-alt":{title:`An image has no text alternative`,why:`Screen readers can't describe the image, so its meaning is lost; some read out the file name instead.`,fix:["Add an `alt` that says what the image shows or does.",'If it is only decoration, use `alt=""` so screen readers skip it.']},"role-img-alt":{title:`An element shown as an image has no text alternative`,why:`Screen readers announce an image with nothing to say about it.`,fix:["Give it an `aria-label` or `aria-labelledby` that says what it shows."]},"svg-img-alt":{title:`An SVG image has no text alternative`,why:`Screen readers announce an image with nothing to say about it.`,fix:["Add a `<title>` inside the SVG, or an `aria-label` on it.",'If it is only decoration, add `aria-hidden="true"`.']},"input-image-alt":{title:`An image button has no text alternative`,why:`Screen reader users hear “button” but not what it does.`,fix:['Add an `alt` to the `<input type="image">` that says what the button does.']},"image-redundant-alt":{title:`An image's text repeats the words next to it`,why:`Screen reader users hear the same thing twice.`,fix:["Make the image's `alt` empty, or say something the nearby text doesn't."]},label:{title:`A form field has no label`,why:`Screen reader users don't know what to type, and clicking the words next to the field doesn't focus it.`,fix:['Add a `<label for="…">` tied to the field\'s `id`.',"If a visible label really can't be shown, add an `aria-label`."]},"select-name":{title:`A drop-down has no label`,why:`Screen reader users don't know what they are choosing.`,fix:['Add a `<label for="…">` tied to the `<select>`\'s `id`, or an `aria-label`.']},"autocomplete-valid":{title:`A field's autocomplete value is not one browsers know`,why:`Browsers and password managers can't fill it in, which matters most to people who find typing hard.`,fix:["Use a standard `autocomplete` value, such as `email`, `given-name` or `postal-code`."]},"button-name":{title:`A button has no name`,why:`Screen reader users hear “button” but not what it does; voice control users can't say its name to press it.`,fix:["Put text inside the button, or add an `aria-label` for an icon-only button."]},"link-name":{title:`A link has no name`,why:`Screen reader users hear “link” but not where it goes.`,fix:["Put text inside the link, or give an icon link an `aria-label`.","For an image link, give the image an `alt` that says where it goes."]},"html-has-lang":{title:`The page doesn't say which language it is in`,why:`Screen readers read the page with the wrong voice and pronunciation.`,fix:['Add the language to the page, such as `<html lang="en">`.']},"html-lang-valid":{title:`The page's language code is not a real one`,why:`Screen readers can't pick the right voice and pronunciation.`,fix:["Use a valid code in `<html lang>`, such as `en`, `en-GB` or `fr`."]},"document-title":{title:`The page has no title`,why:`The title is the first thing a screen reader says and what shows in tabs and history; without it people can't tell pages apart.`,fix:["Add a `<title>` that says what the page is, such as “Search results – Flights”."]},"frame-title":{title:`A frame has no title`,why:`Screen reader users don't know what the embedded content is before going into it.`,fix:["Add a `title` to the `<iframe>` that says what it holds."]},"heading-order":{title:`Heading levels skip a step`,why:`Screen reader users move through a page by its headings; a skipped level makes them think something is missing.`,fix:["Go down one level at a time: an `<h2>` is followed by an `<h3>`, not an `<h4>`.",`Choose the level by the outline, then style it to the size you want.`]},"page-has-heading-one":{title:`The page has no main heading`,why:`Screen reader users jump to the main heading to learn what the page is about.`,fix:["Add one `<h1>` that names the page."]},"empty-heading":{title:`A heading is empty`,why:`Screen readers announce a heading with nothing in it, which is confusing when moving by headings.`,fix:[`Put text in the heading, or remove it if it is only used for spacing.`]},list:{title:`A list holds things that aren't list items`,why:`Screen readers miscount the items or don't announce it as a list.`,fix:["Put only `<li>` elements (or `<script>` and `<template>`) directly inside `<ul>` and `<ol>`."]},listitem:{title:`A list item is outside a list`,why:`Screen readers don't announce it as part of a list.`,fix:["Put every `<li>` inside a `<ul>` or `<ol>`."]},"duplicate-id-aria":{title:`Two elements share an id that labels something`,why:`A field or control can end up announced with another element's label.`,fix:["Give every element that `aria-labelledby`, `aria-describedby` or `<label for>` points at its own `id`."]},"aria-allowed-attr":{title:`An element uses an ARIA attribute its role doesn't allow`,why:`Screen readers ignore it or announce the element wrongly.`,fix:["Remove the attribute, or change the element's `role` to one that supports it."]},"aria-required-attr":{title:`An element is missing an ARIA attribute its role needs`,why:`Screen readers can't tell its state, such as whether a box is ticked or a section is open.`,fix:['Add the attribute the role needs, such as `aria-checked` on a `role="checkbox"`.']},"aria-valid-attr-value":{title:`An ARIA attribute has a value that isn't allowed`,why:`Screen readers ignore it, so the element's state or relations are lost.`,fix:[`Use one of the attribute's allowed values, and make every id it points at exist on the page.`]},"aria-hidden-focus":{title:`Hidden content can still be reached with the keyboard`,why:`Keyboard users land on something a screen reader says nothing about.`,fix:['Make the controls inside unfocusable with `tabindex="-1"` or `inert`, or don\'t hide the content.']},"nested-interactive":{title:`A control is inside another control`,why:`Screen readers announce only the outer one, and the inner one may be impossible to reach.`,fix:[`Move the inner link or button out, so no control holds another.`]},"scrollable-region-focusable":{title:`A scrolling area can't be scrolled with the keyboard`,why:`Keyboard users can't reach the content hidden in it.`,fix:['Add `tabindex="0"` and an `aria-label` to the scrolling element, or put a focusable control in it.']},tabindex:{title:`An element jumps the keyboard order`,why:"A `tabindex` above 0 makes keyboard focus jump around the page in an order people don't expect.",fix:['Use `tabindex="0"` or none, and order the HTML the way people should move through it.']},"meta-viewport":{title:`The page stops people from zooming`,why:`People with low vision need to zoom in to read.`,fix:["Remove `user-scalable=no` and any `maximum-scale` below 5 from the viewport `<meta>`."]},"target-size":{title:`A control is too small to tap reliably`,why:`People with tremors or large fingers hit the wrong thing.`,fix:[`Make the control at least 24 by 24 pixels, or leave that much space around it.`]}},Ee=e=>e.split("`").map((e,t)=>({code:t%2==1,text:e})).filter(e=>e.text),U=[`critical`,`serious`,`moderate`,`minor`],De={critical:`fail`,serious:`fail`,moderate:`warn`,minor:`neutral`},W=[{key:`lcp`,label:`LCP`,good:2500,poor:4e3,unit:`ms`},{key:`cls`,label:`CLS`,good:.1,poor:.25,unit:``},{key:`inp`,label:`INP`,good:200,poor:500,unit:`ms`},{key:`fcp`,label:`FCP`,good:1800,poor:3e3,unit:`ms`},{key:`ttfb`,label:`TTFB`,good:800,poor:1800,unit:`ms`},{key:`load`,label:`Load`,good:1/0,poor:1/0,unit:`ms`}],G=(e,t)=>t?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${Math.round(e)}ms`:e.toFixed(3).replace(/(?<!0)0+$/,``).replace(/\.$/,``),K=(e,t)=>`${e} ${t}${e===1?``:`s`}`,q=e=>`${e} ${e===1?`criterion`:`criteria`}`,Oe=e=>e.replace(/(data:[\w/+.-]+;base64,)[A-Za-z0-9+/=]{24,}/g,`$1…`),J=e=>{try{let t=new URL(e),n=t.pathname===`/`?``:t.pathname.length>44?`${t.pathname.slice(0,20)}…${t.pathname.slice(-20)}`:t.pathname;return`${t.host}${n}${t.search?`?…`:``}`}catch{return e.length>70?`${e.slice(0,68)}…`:e}},ke=e=>{try{let t=new URL(String(e??``));return t.protocol===`http:`||t.protocol===`https:`?t.href:null}catch{return null}},Y=e=>e>=90?`text-pass`:e>=60?`text-warn`:`text-fail`,Ae=[{label:`Use only a keyboard`,icon:x,how:`Tab through every control: can you reach it, see where focus is, and get out again?`,people:[`Keyboard only`]},{label:`Zoom to 200% and enlarge text`,icon:T,how:`Nothing is cut off, overlaps or needs scrolling sideways.`,people:[`200% zoom`,`Large text`]},{label:`Listen with a screen reader`,icon:se,how:`Headings, names and changes on the page are announced in a sensible order.`,people:[`Screen reader`]},{label:`Look past colour and motion`,icon:ue,how:`Nothing relies on colour alone, motion can be stopped, and contrast holds in high contrast mode.`,people:[`Colour vision`,`Reduced motion`,`High contrast`,`Blur or low contrast`]},{label:`Read, understand and correct`,icon:me,how:`Instructions, errors and help are clear, consistent and let you recover.`,people:[`Cognitive`]},{label:`Touch, gestures and media`,icon:fe,how:`Targets are big enough, gestures have a simple way round, media has captions.`,people:[`Touch`,`Hand tremor`,`Deaf or hard of hearing`]}],je={label:`Read and judge the content`,icon:_e,how:`A person reads the page and judges it against the criterion.`},Me={critical:`bg-fail`,serious:`bg-warn`,moderate:`bg-placeholder`,minor:`bg-line-strong`};function Ne({items:e}){return(0,B.jsx)(`span`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-body-sm text-ink-2 tabular-nums`,children:e.map(e=>(0,B.jsx)(`span`,{"data-tip":e.title,children:e.id},e.id))})}function Pe({text:e}){return(0,B.jsx)(B.Fragment,{children:Ee(e).map((e,t)=>e.code?(0,B.jsx)(`code`,{className:`rounded-sm bg-surface-muted px-1 font-mono text-body-sm`,children:e.text},t):(0,B.jsx)(`span`,{children:e.text},t))})}function Fe({f:e,examples:t}){let[n,r]=(0,z.useState)(!1),a=Object.hasOwn(H,e.rule)?H[e.rule]:void 0,o=[...new Set(t.map(e=>e.page))],s=ke(e.helpUrl);return(0,B.jsxs)(`li`,{className:`flex flex-col`,children:[(0,B.jsxs)(`button`,{type:`button`,"aria-expanded":n,onClick:()=>r(!n),className:c(i,`grid grid-cols-[minmax(0,1fr)_auto_16px] gap-4 text-left @xl:grid-cols-[96px_minmax(0,1fr)_72px_56px_16px]`),children:[(0,B.jsx)(`span`,{className:`col-span-3 @xl:col-span-1`,children:(0,B.jsx)(f,{tone:De[e.impact],className:`capitalize`,children:e.impact})}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,B.jsx)(`span`,{className:`text-body-md text-ink [overflow-wrap:anywhere]`,children:a?.title??e.help}),a?(0,B.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:a.why}):null,(0,B.jsx)(`span`,{className:`font-mono text-body-sm text-muted`,children:e.rule})]}),(0,B.jsxs)(`span`,{className:`flex flex-col items-end`,children:[(0,B.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:e.count}),(0,B.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.count===1?`element`:`elements`})]}),(0,B.jsxs)(`span`,{className:`hidden flex-col items-end @xl:flex`,children:[(0,B.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:e.pages}),(0,B.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.pages===1?`page`:`pages`})]}),(0,B.jsx)(S,{size:16,"aria-hidden":`true`,className:c(`text-icon transition-transform`,n&&`rotate-180`)})]}),(0,B.jsx)(I,{open:n,children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-4 px-4 pb-4 @xl:pl-32`,children:[a?(0,B.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,B.jsx)(`span`,{className:`text-body-sm font-medium text-ink`,children:`How to fix it`}),(0,B.jsx)(`ol`,{className:`m-0 flex list-decimal flex-col gap-1 pl-6 text-body-sm text-ink-2`,children:a.fix.map((e,t)=>(0,B.jsx)(`li`,{children:(0,B.jsx)(Pe,{text:e})},t))})]}):null,t.length?(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(`span`,{className:`text-body-sm font-medium text-ink`,children:t.length<e.count?`The first ${t.length} of ${e.count}`:K(e.count,`element`)}),t.slice(0,3).map((e,t)=>(0,B.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-wrap gap-x-2 text-body-sm text-muted`,children:[(0,B.jsx)(`span`,{"data-tip":e.page,children:J(e.page)}),e.target&&(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono`,"data-tip":e.target,children:e.target})]}),e.html&&(0,B.jsx)(`code`,{className:c(`overflow-auto rounded-base bg-surface-muted p-4 font-mono text-body-sm leading-relaxed whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,`line-clamp-3 break-all`),children:Oe(e.html)}),e.fix?.length?(0,B.jsx)(`span`,{className:`flex flex-col text-body-sm text-ink-2`,children:e.fix.map((e,t)=>(0,B.jsx)(`span`,{className:t===0&&/:$/.test(e)?`text-muted`:void 0,children:e},t))}):null]},t))]}):(0,B.jsx)(`span`,{className:`text-body-sm text-muted`,children:`No elements were kept for this rule.`}),(0,B.jsxs)(`span`,{className:`flex flex-wrap items-center justify-between gap-2 text-body-sm`,children:[(0,B.jsx)(`span`,{className:`text-muted`,children:o.length?`On ${o.map(J).join(`, `)}`:``}),s&&(0,B.jsxs)(`a`,{href:s,target:`_blank`,rel:`noreferrer noopener`,className:`inline-flex items-center gap-1`,children:[a?`More from the checker`:`How to fix it`,` `,(0,B.jsx)(le,{size:12,"aria-hidden":`true`})]})]})]})})]})}var Ie=(e,t)=>Object.hasOwn(e.examples,t)&&Array.isArray(e.examples[t])?e.examples[t]:[];function Le({run:e,standard:t,disclaimer:n,links:r={}}){let i=e.report,a=e.ledger,[o,l]=(0,z.useState)(!1),[u,d]=(0,z.useState)(!1),[h,g]=(0,z.useState)(null);if(!i?.accessibility.pages)return(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`This run has no accessibility results: report.accessibility was off, or the run visited no page.`});let _=i.accessibility,v=i.breaches.filter(e=>e.kind===`accessibility`),y=a?.criteria??[],x=e=>y.find(t=>t.id===e),C=a?.summary??{},ee=_.failed.reduce((e,t)=>e+t.count,0),T=y.map(e=>({id:e.id,title:e.title,level:e.level,group:e.principle,result:e.result})),E=new Map;for(let e of[..._.failed].sort((e,t)=>U.indexOf(e.impact)-U.indexOf(t.impact)||t.count-e.count))E.set(e.wcag||``,[...E.get(e.wcag||``)||[],e]);let O=y.filter(e=>e.result===`not_tested`),k=[...Ae.map(e=>({...e,items:O.filter(t=>t.people.some(t=>e.people.includes(t)))})),{...je,items:O.filter(e=>!e.people.length)}].filter(e=>e.items.length),ne=(0,B.jsx)(L,{icon:re,title:`Fix these`,n:_.failed.length?`${K(_.failed.length,`rule`)} break ${q([...E.keys()].filter(Boolean).length)}, ${ee} elements in all`:void 0,divider:!1,children:_.failed.length?(0,B.jsx)(`div`,{className:`flex flex-col gap-6`,children:[...E.entries()].map(([t,n])=>{let r=x(t),i=new Set(n.flatMap(t=>Ie(e,t.rule).map(e=>e.page)));return(0,B.jsxs)(`section`,{"aria-label":t?`${t} ${r?.title??``}`:`Not tied to a criterion`,className:`flex flex-col gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,B.jsx)(`span`,{className:`flex h-9 w-14 flex-none items-center justify-center rounded-base bg-fail-soft text-label-md text-fail tabular-nums`,children:t||`–`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,B.jsx)(`span`,{className:`text-body-lg font-medium`,children:t?r?.title??`WCAG ${t}`:`Not tied to a WCAG criterion`}),(0,B.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[r?`Level ${r.level}, `:``,K(n.length,`rule`),`, `,n.reduce((e,t)=>e+t.count,0),` elements`,i.size?` on ${K(i.size,`page`)}`:``]})]})]}),(0,B.jsx)(s,{className:`p-0 @xl:ml-18`,children:(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col divide-y divide-line-soft p-0`,children:n.map(t=>(0,B.jsx)(Fe,{f:t,examples:Ie(e,t.rule)},t.rule))})})]},t||`none`)})}):(0,B.jsx)(p,{tone:`pass`,children:`No rule failed on the pages this run checked.`})}),A=a?(0,B.jsxs)(L,{icon:ce,title:`Check these by hand`,description:`What the rules cannot settle.`,divider:!1,children:[a.review.length>0&&(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(R,{icon:w,level:3,title:`The rules could not decide`,n:a.review.length}),(0,B.jsx)(p,{tone:`warn`,as:`div`,children:(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col divide-y divide-warn/10 p-0`,children:a.review.map(e=>(0,B.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1 py-2`,children:[(0,B.jsx)(`span`,{className:`text-ink`,children:Object.hasOwn(H,e.rule)?H[e.rule].title:(0,B.jsx)(`span`,{className:`font-mono`,children:e.rule})}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 text-ink-2`,children:e.criteria.map(e=>`${e.id} ${e.title}`).join(`, `)}),(0,B.jsx)(`span`,{className:`text-muted tabular-nums`,children:K(e.pages,`page`)})]},e.rule))})})]}),k.length>0&&(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(R,{icon:D,level:3,title:`No rule checks these ${q(O.length)}`}),(0,B.jsx)(s,{className:`p-0`,children:(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col divide-y divide-line-soft p-0`,children:k.map(e=>{let t=h===e.label,n=`hand-${e.label.replace(/\W+/g,`-`).toLowerCase()}`;return(0,B.jsxs)(`li`,{children:[(0,B.jsxs)(`button`,{type:`button`,"aria-expanded":t,"aria-controls":n,onClick:()=>g(t?null:e.label),className:c(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`w-full gap-4`),children:[(0,B.jsx)(ye,{icon:e.icon}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 text-left text-body-md`,children:e.label}),(0,B.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:e.items.length}),(0,B.jsx)(S,{size:14,"aria-hidden":`true`,className:c(`text-icon transition-transform`,!t&&`-rotate-90`)})]}),(0,B.jsxs)(I,{open:t,id:n,className:`flex flex-col gap-2 px-4 pb-4 @xl:pl-18`,children:[(0,B.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.how}),(0,B.jsx)(Ne,{items:e.items})]})]},e.label)})})}),(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[`Personas test most of these by how they use the page.`,r.personas?(0,B.jsxs)(B.Fragment,{children:[` `,(0,B.jsx)(`a`,{href:r.personas,children:`Test with personas`})]}):null]})]})]}):null;return(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-6`,children:[a&&(0,B.jsxs)(s,{className:`flex flex-col gap-4`,children:[(0,B.jsxs)(`p`,{className:`m-0 flex flex-wrap items-baseline gap-x-4 gap-y-1`,children:[(0,B.jsx)(`span`,{className:c(`text-headline-sm`,C.failed?`text-fail`:`text-pass`),children:C.failed?`${q(C.failed)} ${C.failed===1?`fails`:`fail`}`:`Nothing failed`}),C.review?(0,B.jsx)(`span`,{className:`text-body-md text-warn`,children:C.review===1?`1 check needs you`:`${C.review} checks need you`}):null]}),(0,B.jsx)(we,{keyed:!1,label:`${a.label} criteria`,cells:T}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsxs)(m,{variant:`ghost`,size:`sm`,"aria-expanded":u,"aria-controls":`ruler-help-${e.id}`,onClick:()=>d(!u),className:`gap-1 self-start`,children:[(0,B.jsx)(S,{size:13,"aria-hidden":`true`,className:c(`text-muted transition-transform`,!u&&`-rotate-90`)}),`How to read this`]}),(0,B.jsxs)(I,{open:u,id:`ruler-help-${e.id}`,className:`flex flex-col gap-2`,children:[(0,B.jsx)(Te,{cells:T}),(0,B.jsxs)(`p`,{className:`m-0 text-body-md text-ink-2`,children:[`Each square is one `,a.label,` criterion. `,C.failed?`${q(C.failed)} ${C.failed===1?`fails`:`fail`}`:`No criterion fails`,` on `,_.pages===1?`this page`:`these ${_.pages} pages`,C.review?`, and ${C.review} ${C.review===1?`needs`:`need`} a person to decide`:``,`. `,C.passed??0,` `,C.passed===1?`passes`:`pass`,` every rule that checks `,C.passed===1?`it`:`them`,`; the other `,C.not_tested??0,` no rule can check, so a person tests them by hand.`]})]})]})]}),v.map((e,t)=>(0,B.jsxs)(p,{tone:`fail`,children:[`Over budget on `,J(e.page),`: `,e.text]},t)),(0,B.jsxs)(`div`,{className:`grid items-start gap-10 @5xl:grid-cols-[minmax(0,1fr)_300px]`,children:[(0,B.jsx)(`div`,{className:`flex min-w-0 flex-col gap-10`,children:_.failed.length?(0,B.jsxs)(B.Fragment,{children:[ne,A]}):(0,B.jsxs)(B.Fragment,{children:[!a&&(0,B.jsx)(p,{tone:`pass`,children:`Nothing failed on the pages this run checked.`}),A]})}),(0,B.jsxs)(`aside`,{"aria-label":`About this run`,className:`flex min-w-0 flex-col gap-6 @5xl:sticky @5xl:top-6`,children:[a&&(0,B.jsxs)(s,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(R,{icon:te,level:3,title:`Pages checked`,n:a.pages.length}),(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col divide-y divide-line-soft p-0`,children:a.pages.map(e=>(0,B.jsxs)(`li`,{className:`flex flex-col gap-1 py-2`,children:[(0,B.jsxs)(`span`,{className:`flex items-baseline justify-between gap-2`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate text-body-sm font-medium text-ink`,"data-tip":e.url,children:e.title||J(e.url)}),(0,B.jsx)(`span`,{className:c(`text-body-sm font-medium tabular-nums`,e.total?`text-fail`:`text-pass`),children:e.total})]}),(0,B.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:J(e.url)}),e.total>0&&(0,B.jsx)(b,{label:U.filter(t=>e.byImpact[t]).map(t=>`${e.byImpact[t]} ${t}`).join(`, `),parts:U.map(t=>({key:t,value:e.byImpact[t],className:Me[t],text:``})),className:`h-2`})]},e.url))})]}),(0,B.jsxs)(s,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(R,{icon:ae,level:3,title:`This run`}),(0,B.jsxs)(`dl`,{className:`m-0 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-body-sm`,children:[(0,B.jsx)(`dt`,{className:`text-muted`,children:`Standard`}),(0,B.jsx)(`dd`,{className:`m-0 text-ink-2`,children:a?.label??t}),(0,B.jsx)(`dt`,{className:`text-muted`,children:`Engine`}),(0,B.jsx)(`dd`,{className:`m-0 text-ink-2`,children:a?.engine||i.engine||`axe-core`}),(0,B.jsx)(`dt`,{className:`text-muted`,children:`Budget`}),(0,B.jsx)(`dd`,{className:`m-0 text-ink-2`,children:i.budgets.accessibility?v.length?`${K(v.length,`budget`)} exceeded`:`Within the budget`:`None set, so nothing fails the run`})]}),r.measured?(0,B.jsx)(Ce,{href:r.measured,children:`Everything it measured`}):null]}),_.passed.length>0&&(0,B.jsxs)(s,{className:`flex flex-col p-0`,children:[(0,B.jsxs)(`button`,{type:`button`,"aria-expanded":o,onClick:()=>l(!o),className:c(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`justify-between`),children:[(0,B.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,B.jsx)(S,{size:14,"aria-hidden":`true`,className:c(`text-icon transition-transform`,!o&&`-rotate-90`)}),`Rules that passed`]}),(0,B.jsx)(`span`,{className:`text-muted tabular-nums`,children:_.passed.length})]}),(0,B.jsx)(I,{open:o,children:(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1 p-2`,children:_.passed.map(e=>(0,B.jsx)(`li`,{children:(0,B.jsx)(f,{tone:`pass`,icon:!1,className:`font-mono`,children:e})},e))})})]})]})]}),(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:n})]})}function Re({run:e}){let t=e.report;if(!t?.performance.pages.length)return(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`This run has no timings: the run visited no page.`});let n=(e,t)=>e>t.poor?`poor`:e>t.good?`needs improvement`:`good`,r={poor:`text-fail`,"needs improvement":`text-warn`,good:`text-pass`},i=t.breaches.filter(e=>e.kind===`performance`);return(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[`Core Web Vitals of each page, from one visit in ForgeQE's browser, against Google's thresholds: `,(0,B.jsx)(`span`,{className:`text-pass`,children:`good`}),`, `,(0,B.jsx)(`span`,{className:`text-warn`,children:`needs improvement`}),`, `,(0,B.jsx)(`span`,{className:`text-fail`,children:`poor`}),`.`,` `,t.budgets.performance?`Pages over quality.budgets.performance are marked.`:`No performance budget set: nothing fails on timings.`]}),i.map((e,t)=>(0,B.jsxs)(`p`,{className:c(g.fail,`m-0`),children:[`Over budget · `,J(e.page),`: `,e.text]},t)),(0,B.jsx)(F,{label:`Timings`,minWidth:720,head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:N,children:`Page`}),W.map(e=>(0,B.jsx)(`th`,{scope:`col`,className:M,"data-tip":e.label,children:e.label},e.key)),(0,B.jsx)(`th`,{scope:`col`,className:M,children:`Requests`}),(0,B.jsx)(`th`,{scope:`col`,className:M,children:`Size`})]}),children:t.performance.pages.map((e,t)=>(0,B.jsxs)(`tr`,{className:`border-t border-line-soft align-top`,children:[(0,B.jsxs)(`td`,{className:j,children:[(0,B.jsx)(`span`,{className:`block max-w-[340px] truncate font-mono text-body-sm`,"data-tip":e.url,children:J(e.url)}),e.over.length>0&&(0,B.jsxs)(`span`,{className:`text-body-sm text-fail`,children:[`over: `,e.over.join(`, `)]})]}),W.map(t=>{let i=e[t.key];return(0,B.jsxs)(`td`,{"data-sort":typeof i==`number`?i:-1,className:c(P,typeof i==`number`&&t.good!==1/0?r[n(i,t)]:typeof i==`number`?`text-ink-2`:`text-muted`),children:[typeof i==`number`?G(i,t.unit):`–`,typeof i==`number`&&t.good!==1/0&&(0,B.jsxs)(`span`,{className:`sr-only`,children:[` (`,n(i,t),`)`]})]},t.key)}),(0,B.jsx)(`td`,{className:c(P,`text-muted`),children:e.requests??`–`}),(0,B.jsx)(`td`,{className:c(P,`text-muted`),"data-sort":e.kb??-1,children:e.kb===void 0?`–`:`${e.kb} KB`})]},t))}),(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[W.filter(e=>e.good!==1/0).map(e=>`${e.label}: good up to ${G(e.good,e.unit)}, poor over ${G(e.poor,e.unit)}`).join(`; `),`. Lab values from one visit, not data from real users.`]})]})}var X={pass:{label:`Passed`,tone:`pass`,cell:`bg-pass-dot`},warn:{label:`Warning`,tone:`warn`,cell:`bg-warn-dot`},fail:{label:`Failed`,tone:`fail`,cell:`bg-fail-dot`}},ze={fail:0,warn:1,pass:2};function Be({checks:e}){return(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.map(e=>(0,B.jsxs)(`li`,{className:`flex flex-col gap-1 border-t border-line-soft py-2 first:border-t-0 @xl:flex-row @xl:gap-4`,children:[(0,B.jsx)(`span`,{className:`flex-none font-medium text-ink @xl:w-56`,children:e.label}),(0,B.jsx)(`span`,{className:`min-w-0 text-body-sm text-ink-2 [overflow-wrap:anywhere]`,children:e.text})]},e.id))})}function Ve({checks:e}){let[t,n]=(0,z.useState)(!1),r=t=>e.filter(e=>e.status===t),i=[{status:`fail`,title:`To fix`,items:r(`fail`)},{status:`warn`,title:`To improve`,items:r(`warn`)}].filter(e=>e.items.length),a=r(`pass`);return(0,B.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[i.map(e=>(0,B.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[(0,B.jsxs)(`h4`,{className:`m-0 flex items-center gap-2 text-body-md font-medium text-ink`,children:[(0,B.jsx)(f,{tone:X[e.status].tone,className:`min-h-5 px-2 text-body-sm`,children:e.items.length}),e.title]}),(0,B.jsx)(Be,{checks:e.items})]},e.status)),!i.length&&(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-pass`,children:`Every check passed.`}),a.length>0&&(0,B.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,B.jsxs)(`button`,{type:`button`,"aria-expanded":t,onClick:()=>n(!t),className:`flex cursor-pointer items-center gap-1 self-start border-0 bg-transparent p-0 text-body-sm text-ink-2`,children:[(0,B.jsx)(S,{size:14,"aria-hidden":`true`,className:c(`text-muted transition-transform`,!t&&`-rotate-90`)}),`Passed `,(0,B.jsx)(`span`,{className:`text-muted tabular-nums`,children:a.length})]}),t&&(0,B.jsx)(Be,{checks:a})]})]})}var He=e=>{try{return new URL(e).host}catch{return e}};function Ue({seo:e}){let[t,n]=(0,z.useState)(e.pages[0]?.url??``),[r,i]=(0,z.useState)(!1),a=(e,t)=>e.checks.filter(e=>e.status===t).length,o=e.pages.reduce((e,t)=>e+a(t,`fail`),0),s=e.pages.reduce((e,t)=>e+a(t,`warn`),0),l=e.pages.find(e=>e.url===t)??e.pages[0];return(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-6`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,B.jsxs)(`p`,{className:`m-0 flex flex-wrap items-baseline gap-x-4 gap-y-1`,children:[(0,B.jsxs)(`span`,{className:c(`text-headline-sm font-medium`,Y(e.score)),children:[`Score `,e.score,e.pages.length>1?(0,B.jsx)(`span`,{className:`text-body-md font-normal text-muted`,children:` on average`}):null]}),(0,B.jsx)(`span`,{className:c(`text-body-md`,o?`text-fail`:`text-muted`),children:o?`${K(o,`check`)} to fix`:`Nothing to fix`}),(0,B.jsx)(`span`,{className:c(`text-body-md`,s?`text-warn`:`text-muted`),children:s?`${s} to improve`:`Nothing to improve`})]}),(0,B.jsxs)(`button`,{type:`button`,"aria-expanded":r,onClick:()=>i(!r),className:`flex cursor-pointer items-center gap-1 self-start border-0 bg-transparent p-0 text-body-sm text-accent-fg`,children:[(0,B.jsx)(S,{size:14,"aria-hidden":`true`,className:c(`transition-transform`,!r&&`-rotate-90`)}),`How the score works`]}),r&&(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-ink-2`,children:`Each page gets the share of its checks that passed, weighted by how much each matters; a check to improve counts half. The checks read what the page tells search engines: its title, description, headings, canonical address, whether it may be indexed, language, mobile viewport, links, images and structured data.`})]}),e.pages.length>1&&(0,B.jsx)(`ul`,{"aria-label":`Pages`,className:`m-0 flex list-none flex-col p-0`,children:e.pages.map(e=>{let t=l?.url===e.url;return(0,B.jsx)(`li`,{children:(0,B.jsxs)(`button`,{type:`button`,"aria-pressed":t,onClick:()=>n(e.url),className:c(`flex w-full cursor-pointer items-center gap-4 rounded-base border-0 px-4 py-2 text-left`,t?`bg-surface-strong`:`bg-transparent hover:bg-tint`),children:[(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,B.jsx)(`span`,{className:`truncate font-medium text-ink`,children:e.title||J(e.url)}),(0,B.jsx)(`span`,{className:`truncate text-body-sm text-muted`,"data-tip":e.url,children:J(e.url)})]}),(0,B.jsxs)(`span`,{className:c(`w-24 flex-none text-right text-body-sm`,a(e,`fail`)?`text-fail`:`text-muted`),children:[a(e,`fail`),` to fix`]}),(0,B.jsxs)(`span`,{className:c(`hidden w-24 flex-none text-right text-body-sm @xl:inline`,a(e,`warn`)?`text-warn`:`text-muted`),children:[a(e,`warn`),` to improve`]}),(0,B.jsx)(`span`,{className:c(`w-10 flex-none text-right font-medium tabular-nums`,Y(e.score)),children:e.score})]})},e.url)})}),l&&(0,B.jsx)(L,{level:3,icon:k,title:l.title||J(l.url),description:J(l.url),children:(0,B.jsx)(Ve,{checks:l.checks})}),e.sites.map(e=>(0,B.jsx)(L,{level:3,icon:te,title:`${He(e.origin)}: robots.txt and sitemap`,description:`What the site tells every crawler.`,children:(0,B.jsx)(Ve,{checks:e.checks})},e.origin))]})}function We({seo:e}){let t=e.analytics,n=e.pages.map(e=>e.url);return(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[t.tools.length?`${K(t.tools.length,`tool`)} found`:`No analytics tag found`,t.consentManagers.length?`; consent banner: ${t.consentManagers.join(`, `)}`:`; no consent banner found`,`. Each page was opened fresh, with no consent given, so a hit sent here was sent before anyone answered a banner.`]}),t.tools.length>0&&(0,B.jsxs)(`div`,{className:`overflow-x-auto`,children:[(0,B.jsx)(F,{label:`Analytics tools on each page`,head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,children:`Tool`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Ids`}),(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,children:`Hits`}),n.map((e,t)=>(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,`w-8 text-center`),"data-tip":e,children:(0,B.jsx)(`span`,{"aria-label":`Page ${t+1}: ${e}`,children:t+1})},e))]}),children:t.tools.map(e=>(0,B.jsxs)(`tr`,{className:`border-t border-line-soft`,children:[(0,B.jsx)(`td`,{className:c(`px-4 py-2`,`font-medium`),children:e.tool}),(0,B.jsx)(`td`,{className:c(`px-4 py-2`,`hidden font-mono text-body-sm text-ink-2 @xl:table-cell`),children:e.ids.join(`, `)||`–`}),(0,B.jsx)(`td`,{className:`px-4 py-2 text-right whitespace-nowrap tabular-nums`,children:e.hits}),n.map(t=>{let n=e.pages.includes(t);return(0,B.jsx)(`td`,{className:c(`px-4 py-2`,`text-center`),"data-sort":+!!n,children:(0,B.jsx)(`span`,{role:`img`,"aria-label":n?`On ${t}`:`Not on ${t}`,className:c(`inline-block size-3 rounded-full`,n?`bg-accent`:`shadow-[inset_0_0_0_1.5px_var(--color-line-strong)]`)})},t)})]},e.tool))}),(0,B.jsx)(`ol`,{className:`m-0 mt-2 flex list-none flex-wrap gap-x-4 gap-y-1 p-0 text-body-sm text-muted`,children:n.map((e,t)=>(0,B.jsxs)(`li`,{className:`font-mono`,"data-tip":e,children:[t+1,`: `,J(e)]},e))})]}),t.findings.length>0&&(0,B.jsx)(F,{label:`Analytics findings`,empty:`Nothing matches.`,head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,`w-[110px]`),children:`Status`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,`w-[22%]`),children:`Tool`}),(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium whitespace-nowrap text-muted`,children:`Finding`}),(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,children:`Pages`})]}),children:t.findings.map((e,t)=>(0,B.jsxs)(`tr`,{className:`border-t border-line-soft align-top`,children:[(0,B.jsx)(`td`,{className:`px-4 py-2`,"data-sort":ze[e.status],children:(0,B.jsx)(f,{tone:X[e.status].tone,className:`min-h-5 px-2 text-body-sm`,children:X[e.status].label})}),(0,B.jsx)(`td`,{className:`px-4 py-2`,children:e.tool}),(0,B.jsx)(`td`,{className:c(`px-4 py-2`,`text-ink-2 [overflow-wrap:anywhere]`),"data-tip":e.pages.join(`
2
- `),children:e.text}),(0,B.jsx)(`td`,{className:`px-4 py-2 text-right whitespace-nowrap tabular-nums`,children:e.pages.length})]},t))})]})}var Ge={same:{label:`Same`,tone:`pass`},changed:{label:`Changed`,tone:`warn`},new:{label:`New baseline`,tone:`neutral`},no_baseline:{label:`No baseline`,tone:`neutral`}},Z=e=>new Date(e).toLocaleString([],{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),Ke=e=>!!(e.breaches||e.a11y?.failed||e.perf.over||e.visual?.changed);function qe({run:e,standard:t,disclaimer:r}){return(0,B.jsx)(Le,{run:e,standard:t,disclaimer:r,links:{personas:n(`accessibility`),measured:n(`quality`,encodeURIComponent(e.id))}})}function Je({run:e}){return(0,B.jsx)(Re,{run:e})}function Q({run:e,index:t,which:n,label:r}){let[i,a]=(0,z.useState)(``),[s,l]=(0,z.useState)(!1);return(0,z.useEffect)(()=>{let r=!1;return a(``),l(!1),u.image(e,t,n).then(e=>!r&&a(e),()=>!r&&l(!0)),()=>{r=!0}},[e,t,n]),(0,B.jsxs)(`figure`,{className:`m-0 flex min-w-0 flex-col gap-2`,children:[(0,B.jsx)(`figcaption`,{className:`text-body-sm font-medium text-muted`,children:r}),i?(0,B.jsx)(`img`,{src:i,alt:`${r} of the page`,className:c(o,`block h-auto w-full`)}):(0,B.jsx)(`span`,{className:c(o,`flex h-[120px] items-center justify-center gap-2 text-body-sm text-muted`),children:s?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(v,{icon:ie,size:14}),` Not available`]}):`Loading…`})]})}function Ye({run:e,budget:t,onChange:n}){let[i,a]=(0,z.useState)(null),[o,s]=(0,z.useState)(``),[l,d]=(0,z.useState)(!1),[p,_]=(0,z.useState)(``),[v,y]=(0,z.useState)(new Set),[b,x]=(0,z.useState)(`all`),C=e.visual?.pages??[],w=C.find(e=>e.status===`changed`)?.index;(0,z.useEffect)(()=>y(w===void 0?new Set:new Set([w])),[e.id,w]);let T=async e=>{d(!0),_(``);try{n(await e()),a(null),s(``)}catch(e){_(e.message)}finally{d(!1)}};if(!e.visual)return e.captured?(0,B.jsxs)(`div`,{className:`flex flex-col items-start gap-2`,children:[(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-ink-2`,children:[`This run captured `,K(e.captured,`page`),` but they were not compared with the baselines yet.`]}),(0,B.jsxs)(m,{size:`sm`,variant:`primary`,disabled:l,"data-tip":`Compare with the baselines`,onClick:()=>T(()=>u.compare(e.id)),children:[(0,B.jsx)(oe,{"aria-hidden":`true`}),`Compare`]}),p&&(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:p})]}):(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`This run has no visual captures: quality.visual.enabled was off, or the run visited no page.`});let D=C.filter(e=>e.status===`changed`),O=(b===`changed`?D:C).toSorted((e,t)=>Number(t.status===`changed`)-Number(e.status===`changed`)||(t.diffPercent??0)-(e.diffPercent??0)),k=e=>{let t=new Set(v);t.has(e)?t.delete(e):t.add(e),y(t)};return(0,B.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,B.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[`Each page captured with animations frozen and masked regions hidden, against its approved baseline. `,t?`A page over quality.budgets.visual fails the run.`:`No visual budget set: a change does not fail the run.`]}),(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,B.jsx)(`div`,{role:`group`,"aria-label":`Show`,className:`flex gap-1`,children:[[`all`,`All pages`,C.length],[`changed`,`Changed`,D.length]].map(([e,t,n])=>(0,B.jsxs)(`button`,{type:`button`,"aria-pressed":b===e,onClick:()=>x(e),className:c(h({size:`sm`}),`gap-1 font-normal`),children:[t,` `,(0,B.jsx)(`span`,{className:`tabular-nums opacity-75`,children:n})]},e))}),(0,B.jsx)(`span`,{className:`flex-1`}),D.length>1&&(0,B.jsxs)(m,{size:`sm`,disabled:l,"data-tip":`Approve all ${D.length} changes`,onClick:()=>a(D.map(e=>e.url)),children:[(0,B.jsx)(E,{"aria-hidden":`true`}),`Approve (`,D.length,`)`]})]}),i&&(0,B.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Approve as baseline`,className:c(g.info,`flex flex-col gap-2`),children:[(0,B.jsxs)(`span`,{className:`font-medium`,children:[`Make this run's capture the baseline of `,i.length===1?J(i[0]):K(i.length,`page`),`?`]}),(0,B.jsx)(`span`,{className:`text-ink-2`,children:`Later runs are compared with it. Approve only a change that was intended; one that was not is a visual defect.`}),(0,B.jsxs)(`label`,{className:`flex flex-col gap-1`,children:[`Why it changed (kept with the baseline)`,(0,B.jsx)(r,{size:`sm`,value:o,maxLength:300,placeholder:`New checkout banner`,onChange:e=>s(e.target.value),className:`max-w-[480px]`})]}),(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,B.jsxs)(m,{size:`sm`,variant:`primary`,disabled:l,onClick:()=>T(()=>u.approve(e.id,i,o.trim()||void 0)),children:[(0,B.jsx)(E,{"aria-hidden":`true`}),`Approve`]}),(0,B.jsxs)(m,{size:`sm`,onClick:()=>a(null),children:[(0,B.jsx)(ee,{"aria-hidden":`true`}),`Cancel`]})]})]}),p&&(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:p}),(0,B.jsx)(F,{label:`Pages against their baselines`,fixed:!0,resetKey:b,empty:`No page changed.`,head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:N,children:`Page`}),(0,B.jsx)(`th`,{scope:`col`,className:c(N,`hidden w-[110px] @2xl:table-cell`),children:`Size`}),(0,B.jsx)(`th`,{scope:`col`,className:c(M,`w-[90px]`),children:`Changed`}),(0,B.jsx)(`th`,{scope:`col`,className:c(N,`w-[120px]`),children:`Result`}),(0,B.jsx)(`th`,{scope:`col`,className:c(N,`w-[96px]`),children:(0,B.jsx)(`span`,{className:`sr-only`,children:`Approve`})})]}),children:O.map(t=>{let n=v.has(t.index);return(0,B.jsxs)(z.Fragment,{children:[(0,B.jsxs)(`tr`,{onClick:()=>k(t.index),"aria-expanded":n,className:c(be,n&&`bg-surface-muted`),children:[(0,B.jsx)(`td`,{className:j,children:(0,B.jsxs)(`span`,{className:`flex items-start gap-1`,children:[(0,B.jsx)(S,{size:13,"aria-hidden":`true`,className:c(`mt-1 flex-none text-muted transition-transform`,!n&&`-rotate-90`)}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,B.jsx)(`span`,{className:`truncate`,"data-tip":t.title||t.url,children:t.title||J(t.url)}),(0,B.jsx)(`span`,{className:`truncate font-mono text-body-sm text-muted`,"data-tip":t.url,children:J(t.url)})]})]})}),(0,B.jsxs)(`td`,{className:c(j,`hidden whitespace-nowrap text-muted @2xl:table-cell`),children:[t.size||`–`,t.resized?` · resized ${t.resized}`:``]}),(0,B.jsx)(`td`,{"data-sort":t.status===`changed`?t.diffPercent:-1,className:c(P,t.over?`text-fail`:t.status===`changed`?`text-warn`:`text-muted`),children:t.status===`changed`?`${t.diffPercent}%${t.limit===void 0?``:` / ${t.limit}%`}`:`–`}),(0,B.jsx)(`td`,{className:j,children:(0,B.jsx)(f,{tone:t.over?`fail`:Ge[t.status].tone,className:`min-h-5 px-2 text-body-sm`,children:t.over?`Over budget`:Ge[t.status].label})}),(0,B.jsx)(`td`,{className:P,onClick:e=>e.stopPropagation(),children:t.status===`changed`&&(0,B.jsx)(m,{variant:`icon`,size:`icon-sm`,disabled:l,"aria-label":`Approve ${J(t.url)}`,"data-tip":`Approve ${J(t.url)}`,onClick:()=>a([t.url]),children:(0,B.jsx)(E,{"aria-hidden":`true`})})})]}),n&&(0,B.jsx)(`tr`,{className:`bg-surface-muted`,children:(0,B.jsx)(`td`,{colSpan:5,className:`px-4 py-2`,children:(0,B.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-4`,children:[t.images.baseline&&(0,B.jsx)(Q,{run:e.id,index:t.index,which:`baseline`,label:`Baseline`}),t.images.current&&(0,B.jsx)(Q,{run:e.id,index:t.index,which:`current`,label:`This run`}),t.images.diff&&(0,B.jsx)(Q,{run:e.id,index:t.index,which:`diff`,label:`Difference (in red)`})]})})})]},t.index)})})]})}function Xe({values:e}){if(e.length<2)return null;let t=Math.max(1,...e);return(0,B.jsx)(`span`,{role:`img`,"aria-label":`Violations over the last ${e.length} runs: ${e.join(`, `)}`,className:`flex flex-none items-end gap-1`,children:e.map((n,r)=>{let i=n?Math.max(1,Math.round(n/t*5)):0;return(0,B.jsx)(`span`,{className:`flex flex-col-reverse gap-1`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(t,n)=>(0,B.jsx)(`i`,{className:c(`size-1.5 rounded-full`,i?r===e.length-1?`bg-accent`:`bg-accent-line`:`bg-line`)},n))},r)})})}function Ze({icon:e,className:t,lines:n}){return n.length?(0,B.jsxs)(`span`,{className:c(`flex items-start gap-2 text-body-sm`,t),children:[(0,B.jsx)(v,{icon:e,size:14,className:`mt-1 flex-none`}),(0,B.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:n.join(` · `)})]}):null}function Qe({trends:e}){return e.length?(0,B.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.map(e=>{let t=e.a11y.latest?U.reduce((t,n)=>t+(e.a11y.latest[n]||0),0):void 0;return(0,B.jsxs)(`li`,{className:`flex flex-col gap-2 border-t border-line-soft py-4 first:border-t-0`,children:[(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-4`,children:[(0,B.jsx)(`span`,{className:`min-w-0 flex-[1_1_240px] truncate font-mono text-body-sm`,"data-tip":e.page,children:/^https?:/.test(e.page)?J(e.page):e.page}),(0,B.jsx)(Xe,{values:e.a11y.trail}),(0,B.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[K(e.runs,`run`),t===void 0?``:` · ${K(t,`violation`)} now`]})]}),(0,B.jsx)(Ze,{icon:ne,className:`text-fail`,lines:[...e.perf.worse.map(e=>`slower: ${e}`),...e.a11y.newRules.map(e=>`newly failing: ${e}`)]}),(0,B.jsx)(Ze,{icon:he,className:`text-pass`,lines:[...e.perf.better.map(e=>`faster: ${e}`),...e.a11y.fixedRules.map(e=>`fixed: ${e}`)]})]},e.page)})}):(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No history yet: every browser run adds each page's accessibility and timings to quality-history.json in the reports folder.`})}var $e={accessibility:e=>!!e.a11y?.pages,performance:e=>e.perf.pages>0,visual:e=>!!e.visual||e.captured>0},$={accessibility:e=>!!e.a11y?.failed,performance:e=>e.perf.over>0,visual:e=>!!(e.visual?.changed||e.visual?.over)},et=(e,t)=>t.filter($e[e]);function tt({kind:e,runs:t}){let[r,i]=(0,z.useState)(`all`),a=et(e,t),o=r===`attention`?a.filter($[e]):a,s=t=>location.hash=n(e,encodeURIComponent(t));return(0,B.jsx)(F,{label:`Runs`,placeholder:`Find a run by what it did`,resetKey:r,empty:`Nothing matches.`,height:Se,tools:(0,B.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,B.jsx)(d,{items:[{id:`all`,label:`All`,n:a.length},{id:`attention`,label:`Needs a look`,n:a.filter($[e]).length,alert:!0}],value:r,onChange:i})}),head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:c(N,`w-[46%]`),children:`Run`}),e===`accessibility`&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,children:`Rules failed`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @2xl:table-cell`),children:`Critical · serious`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @3xl:table-cell`),children:`Moderate · minor`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Pages`})]}),e===`performance`&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,children:`Over budget`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Pages timed`})]}),e===`visual`&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,children:`Changed`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @2xl:table-cell`),children:`New`}),(0,B.jsx)(`th`,{scope:`col`,className:c(`px-4 py-2 text-right text-label-md font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Same`})]}),(0,B.jsx)(`th`,{scope:`col`,className:c(N,`hidden @xl:table-cell`),children:`When`})]}),children:o.map(t=>{let r=$[e](t),i=(t.over?.[e]??0)>0,a=i?ve:r?C:E,o=i?`text-fail`:r?`text-warn`:`text-pass`,l=i?`Over a budget`:r?`Needs a look`:`Within budgets`;return(0,B.jsxs)(`tr`,{onClick:()=>s(t.id),className:be,children:[(0,B.jsx)(`td`,{className:c(j,`max-w-0`),children:(0,B.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(a,{size:15,"aria-label":l,className:c(`flex-none`,o)}),(0,B.jsx)(`a`,{href:n(e,encodeURIComponent(t.id)),onClick:e=>e.stopPropagation(),"data-tip":t.goal,className:`truncate text-ink no-underline hover:underline`,children:t.goal})]})}),e===`accessibility`&&t.a11y&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,t.a11y.failed?`text-fail`:`text-muted`),children:t.a11y.failed}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden @2xl:table-cell`,t.a11y.critical+t.a11y.serious?`text-fail`:`text-muted`),"data-sort":t.a11y.critical*1e3+t.a11y.serious,children:`${t.a11y.critical} · ${t.a11y.serious}`}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-muted @3xl:table-cell`),"data-sort":t.a11y.moderate*1e3+t.a11y.minor,children:`${t.a11y.moderate} · ${t.a11y.minor}`}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-muted @xl:table-cell`),children:t.a11y.pages})]}),e===`performance`&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,t.perf.over?`text-fail`:`text-muted`),children:t.perf.over}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-muted @xl:table-cell`),children:t.perf.pages})]}),e===`visual`&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,t.visual?.changed?`text-warn`:`text-muted`),"data-sort":t.visual?t.visual.changed:-1,children:t.visual?t.visual.changed:`not compared`}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-muted @2xl:table-cell`),"data-sort":t.visual?t.visual.new+t.visual.no_baseline:-1,children:t.visual?t.visual.new+t.visual.no_baseline:`–`}),(0,B.jsx)(`td`,{className:c(`px-4 py-2 text-right whitespace-nowrap tabular-nums`,`hidden text-muted @xl:table-cell`),"data-sort":t.visual?t.visual.same:-1,children:t.visual?t.visual.same:`–`})]}),(0,B.jsx)(`td`,{className:c(j,`hidden whitespace-nowrap text-body-sm text-muted @xl:table-cell`),"data-tip":Z(t.at),"data-sort":new Date(t.at).getTime()||0,children:xe(t.at)})]},t.id)})})}function nt({kind:e,id:t,view:r,onChanged:i}){let[a,o]=(0,z.useState)(null),[s,l]=(0,z.useState)(``);(0,z.useEffect)(()=>{let e=!1;return o(null),u.run(t).then(t=>{e||(o(t),l(``))},t=>!e&&l(t.message)),()=>{e=!0}},[t]);let[d,f]=(0,z.useState)(``),m=(0,B.jsxs)(`a`,{href:n(e),className:`inline-flex items-center gap-1 self-start text-body-sm no-underline`,children:[(0,B.jsx)(S,{size:14,"aria-hidden":`true`,className:`rotate-90`}),`All runs`]});return s||!a?(0,B.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[m,s?(0,B.jsx)(`p`,{className:c(g.fail,`m-0`),children:s}):(0,B.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Loading…`})]}):(0,B.jsxs)(`section`,{"aria-labelledby":`run-h`,className:`flex min-w-0 flex-col gap-4`,children:[m,e===`accessibility`?(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,B.jsx)(R,{id:`run-h`,icon:pe,title:(0,B.jsx)(`span`,{"data-tip":a.goal,className:`block truncate`,children:a.goal}),actions:(0,B.jsx)(rt,{run:a,note:f})}),(0,B.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1 text-body-sm text-muted`,children:[(0,B.jsx)(`span`,{children:Z(a.at)}),(a.ledger||a.report)&&(0,B.jsx)(`span`,{children:a.ledger?`${a.ledger.engine||`axe-core`} with ${a.ledger.label}`:`${a.report.engine||`axe-core`} with ${r.standard}`}),(0,B.jsx)(_,{path:a.dir})]}),d&&(0,B.jsx)(p,{tone:`fail`,children:d})]}):(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,B.jsx)(R,{id:`run-h`,icon:e===`performance`?O:ie,title:(0,B.jsx)(`span`,{"data-tip":a.goal,className:`block truncate`,children:a.goal})}),(0,B.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 text-body-sm text-muted`,children:[Z(a.at),` · `,(0,B.jsx)(_,{path:a.dir}),` · `,(0,B.jsx)(`a`,{href:n(`quality`,encodeURIComponent(a.id)),children:`Everything it measured`})]})]}),e===`accessibility`&&(0,B.jsx)(qe,{run:a,standard:r.standard,disclaimer:r.disclaimer}),e===`performance`&&(0,B.jsx)(Je,{run:a}),e===`visual`&&(0,B.jsx)(Ye,{run:a,budget:r.budgets.visual,onChange:e=>{o(e),i()}})]})}function rt({run:e,note:t}){let[r,i]=(0,z.useState)(!1),a=e.ledger?.report,o=async()=>{i(!0),t(``);let n=await y(`${e.dir}/${a}`);i(!1),n&&t(n)};return(0,B.jsxs)(B.Fragment,{children:[a&&(0,B.jsxs)(m,{size:`sm`,variant:`ghost`,busy:r,"data-tip":`Open this run's own report`,onClick:()=>void o(),children:[(0,B.jsx)(ge,{"aria-hidden":`true`}),`Full report`]}),e.ledger?.scan&&(0,B.jsxs)(`a`,{href:n(`accessibility`,`suites`,`new`,`scan:${encodeURIComponent(e.id)}`),className:h({size:`sm`,variant:`ghost`}),"data-tip":`Check these pages again later with no model, against a baseline`,children:[(0,B.jsx)(A,{"aria-hidden":`true`}),`Save as regression suite`]}),(0,B.jsxs)(`a`,{href:n(`accessibility`),className:h({size:`sm`,variant:`primary`}),"data-tip":`Have the personas use the site: they test what no rule can`,children:[(0,B.jsx)(D,{"aria-hidden":`true`}),`Test with personas`]})]})}function it({r:e,to:t,line:n}){return(0,B.jsxs)(`div`,{className:c(a,`ml-12 flex flex-wrap items-center gap-x-4 gap-y-2`),children:[(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col`,children:[(0,B.jsx)(`span`,{className:`text-body-lg font-medium [overflow-wrap:anywhere]`,children:e.goal}),(0,B.jsx)(`span`,{className:`text-body-sm text-muted`,children:n})]}),(0,B.jsxs)(m,{size:`sm`,variant:`primary`,"data-tip":`Open the run`,onClick:()=>location.hash=t,children:[(0,B.jsx)(de,{"aria-hidden":`true`}),`Open`]})]})}export{G as _,Je as a,J as b,Ye as c,Z as d,We as f,W as g,De as h,tt as i,Ke as l,U as m,Ze as n,it as o,Ue as p,nt as r,Qe as s,qe as t,et as u,K as v,Y as y};
@@ -1 +0,0 @@
1
- import{Cn as e,Dn as t,Gn as n,Jn as r,K as i,Nt as a,Ot as o,Qt as ee,Rr as s,Tt as c,Ut as l,W as u,Wn as d,Wt as te,Xn as ne,Y as re,Zn as ie,Zt as ae,cr as oe,ft as se,gt as ce,ir as le,kn as ue,l as de,or as fe,pn as pe,q as me,r as he,tn as ge,tr as _e,tt as ve,u as f,xn as ye,y as be,yn as xe,zn as Se,zt as Ce}from"./line-icons-Cwj9OmCz.js";var we=`ForgeQE`,Te=/\bForgeQE\b/g,p=[`placeholder`,`title`,`aria-label`,`data-tip`,`alt`],Ee=`input, textarea, pre, code, [contenteditable], [data-keep-name]`,m=(e,t)=>t===`ForgeQE`?e:e.replace(Te,()=>t),h=new WeakMap,g=new WeakMap;function _(e,t){return e&&e.shown===t?e.from:t}function v(e){return!!e?.closest(Ee)}function y(e,t){if(v(e.parentElement))return;let n=e.nodeValue??``,r=_(h.get(e),n);if(r===n&&!r.includes(`ForgeQE`))return;let i=m(r,t);h.set(e,{from:r,shown:i}),i!==n&&(e.nodeValue=i)}function b(e,t){if(!e.closest(`pre, code, [contenteditable], [data-keep-name]`))for(let n of p){let r=e.getAttribute(n);if(r===null)continue;let i=g.get(e),a=_(i?.get(n),r);if(a===r&&!a.includes(`ForgeQE`))continue;let o=m(a,t);i||g.set(e,i=new Map),i.set(n,{from:a,shown:o}),o!==r&&e.setAttribute(n,o)}}function x(e,t){if(e.nodeType===Node.TEXT_NODE)return y(e,t);if(e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)return;e.nodeType===Node.ELEMENT_NODE&&b(e,t);let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);for(let e=n.nextNode();e;e=n.nextNode())e.nodeType===Node.TEXT_NODE?y(e,t):b(e,t)}var S,C=we,w,T=()=>C,E=e=>m(e,C);function D(e){let t=e?.trim()||`ForgeQE`;typeof document>`u`?C=t:(w===void 0&&(w=document.title),!(t===C&&S)&&(C=t,S?.disconnect(),x(document.body,C),document.title=m(w,C),S=new MutationObserver(e=>{S?.disconnect();for(let t of e)if(t.type===`characterData`)y(t.target,C);else if(t.type===`attributes`)b(t.target,C);else for(let e of t.addedNodes)x(e,C);S?.observe(document.body,O)}),S.observe(document.body,O)))}var O={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[...p]},k=`forgeqe.engine.forgeqe-test.forgeqe-read.forgeqe-review.forgeqe-test-plan.forgeqe-heal.forgeqe-migrate.forgeqe-perf.forgeqe-tosca.forgeqe-tosca-assistant.forgeqe-find.forgeqe-pr-review.forgeqe-api.forgeqe-api-plan.forgeqe-explore-plan.forgeqe-defect-rca.forgeqe-refine.forgeqe-agent-builder.forgeqe-suite-builder.forgeqe-team-builder.forgeqe-responsive.forgeqe-test-linker.forgeqe-bug-report.forgeqe-data.forgeqe-persona.forgeqe-basal.forgeqe-doc-reader.forgeqe-knowledge-agent.forgeqe-judge.forgeqe-model-profile.forgeqe-knowledge.forgeqe-investigate.forgeqe-evidence-acceptance.forgeqe-impact-reader.forgeqe-evidence-content.forgeqe-evidence-scenarios.explore.general`.split(`.`);function De(e){try{let t=A(e);return t&&t!==`ForgeQE`?t:void 0}catch{return}}function A(e,t=`the name`){if(e==null)return``;if(typeof e!=`string`)throw Error(`${t} must be text.`);if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/.test(e))throw Error(`${t} must be one line of plain text.`);let n=e.replace(/\s+/g,` `).trim();if(n.length>40)throw Error(`${t} is ${n.length} characters; at most 40.`);return n}var j={};function M(e){let t={};if(!e||typeof e!=`object`||Array.isArray(e))return t;for(let[n,r]of Object.entries(e))if(k.includes(n))try{let e=A(r);e&&(t[n]=e)}catch{}return t}function Oe(e){j=M(e)}var ke=e=>Object.hasOwn(j,e)?j[e]:void 0,N=[`orchestrator`,`specs`,`api`,`explorer`,`case`,`browser-agent`,`test-finder`,`report`,`scribe`,`knowledge-base`,`healer`,`result`,`pr-reviewer`,`rule`,`trace`,`model`,`context-engine`,`database`],P={orchestrator:`Atlas`,specs:`Specs`,api:`API`,explorer:`Explorer`,case:`Test case`,"browser-agent":`Browser`,"test-finder":`Search`,report:`Report`,scribe:`Coding`,"knowledge-base":`Knowledge`,healer:`Healing`,result:`Result`,"pr-reviewer":`PR review`,rule:`Rule`,trace:`Trace`,model:`Model`,"context-engine":`Helper`,database:`Database`},F=new Set(N),Ae=/^[a-z0-9]+(-[a-z0-9]+)*$/,je=/^(ph|lucide):([a-z0-9]+(?:-[a-z0-9]+)*)$/;function I(e){return typeof e==`string`&&F.has(e)}function L(e){if(typeof e!=`string`||e.length>80)return;let t=je.exec(e);if(!t)return;let n=t[1],r=t[2];if(!(!Ae.test(r)||r.length>64)&&!/-(bold|fill|light|thin|duotone|bold-duotone)$/.test(r))return{set:n,name:r,id:`${n}:${r}`}}function R(e){return typeof e!=`string`||!e||e.length>80||e.includes(`\0`)||e.includes(`/`)||e.includes(`\\`)||e.includes(`..`)?!1:F.has(e)?!0:L(e)!==void 0}function Me(e){if(I(e))return P[e];let t=L(e);return t?t.name.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):e}var z=new Map,B=new Set,V=0;function Ne(){return{ids:[...B].sort(),version:V}}var Pe=`forgeqe`,H={forgeqe:{name:`Atlas`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Polish`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`Planner`,icon:`ph:list-checks`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Rover`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Pathfinder`,icon:`case`,hue:`#c9b3ff`},engine:{name:`WebPilot`,icon:`browser-agent`,hue:`#5ea6f0`},desktop:{name:`DeskPilot`,icon:`ph:desktop`,hue:`#4f7fd9`},mobile:{name:`MobilePilot`,icon:`ph:device-mobile`,hue:`#3a8fb7`},"forgeqe-find":{name:`Hound`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-test":{name:`Quill`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Vera`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Mender`,icon:`healer`,hue:`#86a92c`},"forgeqe-migrate":{name:`Mover`,icon:`ph:arrows-left-right`,hue:`#2f8f63`},"forgeqe-tosca":{name:`Bridge`,icon:`ph:bridge`,hue:`#2c7a4b`},"forgeqe-responsive":{name:`Prism`,icon:`ph:devices`,hue:`#b03a7a`},"forgeqe-api":{name:`Link`,icon:`api`,hue:`#1f9c90`},"forgeqe-perf":{name:`Surge`,icon:`ph:gauge`,hue:`#1f6b3a`},"forgeqe-review":{name:`Checker`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`Patch`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Gavel`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Sleuth`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Scales`,icon:`model`,hue:`#b88a14`},"forgeqe-data":{name:`Miner`,icon:`database`,hue:`#2b7fc2`},"req-agent":{name:`Spec`,icon:`ph:file-magnifying-glass`,hue:`#5b6fd6`},"forgeqe-persona":{name:`Mask`,icon:`ph:identification-badge`,hue:`#7d3f8a`},"forgeqe-basal":{name:`BASAL`,icon:`ph:columns`,hue:`#1f6f66`},"forgeqe-knowledge-agent":{name:`Librarian`,icon:`ph:lightbulb`,hue:`#4f6672`},explore:{name:`Scout`,icon:`ph:binoculars`,hue:`#62789e`},general:{name:`Jack`,icon:`context-engine`,hue:`#a07c43`}},U={"forgeqe-agent-builder":`Smith`,"forgeqe-suite-builder":`Sorter`,"forgeqe-team-builder":`Captain`,"forgeqe-test-linker":`Matchmaker`,"forgeqe-talk":`Aria`,"forgeqe-bug-report":`Herald`,"forgeqe-bi":`Beacon`,"forgeqe-knowledge":`Mapper`,"forgeqe-investigate":`Digger`,"forgeqe-evidence-acceptance":`Clerk`,"forgeqe-impact-reader":`Ripple`,"forgeqe-evidence-content":`Grader`,"forgeqe-evidence-scenarios":`Drafter`,"forgeqe-doc-reader":`Skimmer`,"forgeqe-tosca-assistant":`Guide`},W={"forgeqe-agent-builder":`ph:puzzle-piece`,"forgeqe-suite-builder":`ph:stack`,"forgeqe-team-builder":`ph:users-three`,"forgeqe-test-linker":`ph:link-simple`,"forgeqe-talk":`ph:microphone-stage`,"forgeqe-bug-report":`ph:bug`,"forgeqe-bi":`report`,"forgeqe-knowledge":`ph:share-network`,"forgeqe-investigate":`ph:magnifying-glass-plus`,"forgeqe-evidence-acceptance":`ph:clipboard-text`,"forgeqe-impact-reader":`ph:waves`,"forgeqe-evidence-content":`ph:quotes`,"forgeqe-evidence-scenarios":`ph:cards`,"forgeqe-doc-reader":`ph:book-open-text`},Fe=Object.freeze(Object.keys(W));function G(e){let t=ke(e),n=K(e);return t?{...n,name:t}:n}function Ie(e,t=!1){return/\bagent$/i.test(e.trim())?`${t?`The`:`the`} ${e}`:e}function K(e){let t=Object.hasOwn(H,e)?H[e]:void 0;if(t)return t;let n=z.get(e)||(Object.hasOwn(W,e)?W[e]:void 0)||`context-engine`;if(Object.hasOwn(U,e))return{name:U[e],icon:n,hue:`#62789e`};let r=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40),i=r?r.charAt(0).toUpperCase()+r.slice(1):``;return{name:i?/ agent$/i.test(i)?i:`${i} agent`:`Jack`,icon:n,hue:`#62789e`}}var q=[{id:`assisted`,label:`Advisers`,about:`AI assisted: they help with your work, saying what ForgeQE knows and reviewing pull requests, and you decide.`,short:`Help you decide`},{id:`native`,label:`Builders`,about:`AI native: they make the work itself, tests, test data, personas and diagnoses, from your recordings, runs and descriptions.`,short:`Do the work for you`},{id:`agentic`,label:`Operators`,about:`Agentic: they act on their own across many steps, using the browser, your tools and the other agents to finish a task.`,short:`Work on their own`},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,short:`Made by your team`}],J=[{id:`orchestrator`,short:`Leads every chat`,category:`agentic`,agent:`forgeqe`,runs:[`forgeqe`,`forgeqe-refine`,`forgeqe-find`,`explore`,`general`],about:`Leads every chat: works out what you asked, uses ForgeQE's tools and your connected systems, and hands parts to the other agents.`,crew:[{agent:`forgeqe-refine`,does:`turns a rough request into a clear task, from Refine in the message box`},{agent:`forgeqe-find`,does:`finds the tests in your repository a request means, to run them`},{agent:`explore`,does:`searches and reads the repository and web pages; it changes nothing`},{agent:`general`,does:`takes on a part of a bigger task, with the same tools`}],starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Review requirements`,text:`Review the payments refund brief and list its gaps`},{label:`Find and run tests`,text:`Find the tests for the basket and run them`}]},{id:`browser`,short:`Runs tests in a browser`,category:`agentic`,agent:`engine`,runs:[`engine`,`browser agent`],about:`Runs your test cases in a real browser, step by step, and keeps a screenshot of every step as evidence.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Check a page`,text:`Sign in to QA and check the dashboard loads with this week's orders`},{label:`Try it as a blind user`,text:`Act as a blind screen reader user and try to check out on QA: list the accessibility barriers`}]},{id:`desktop`,opens:[`desktop`],short:`Automates desktop apps`,category:`agentic`,agent:`desktop`,runs:[`desktop`,`desktop agent`],about:`Carries out a goal in a Windows desktop app and saves it as a workflow with checks, records the steps you do by hand, and replays saved workflows with no model. It asks before it takes the mouse and keyboard.`,prompt:!1,starters:[{label:`Automate a task`,text:`Create an invoice for Contoso in the Billing app and save it as a test`},{label:`Record my steps`,text:`I'll show you the steps in Billing: record them`},{label:`Replay a workflow`,text:`Replay the billing workflow with customer Fabrikam`}]},{id:`mobile`,opens:[`mobile`],short:`Automates mobile apps`,category:`agentic`,agent:`mobile`,runs:[`mobile`,`mobile agent`],about:`Carries out a goal in an Android or iOS app through Appium and saves it as a workflow with checks, replays saved workflows on Appium or Maestro with no model, and runs your team's Maestro flows. You watch the device while it works, and it asks before it acts on one.`,prompt:!1,starters:[{label:`Automate a task`,text:`Sign in to the courier app and accept the first delivery, and save it as a test`},{label:`Replay on Maestro`,text:`Replay the courier login on Maestro`},{label:`Run our Maestro flows`,text:`Run our Maestro flows in .maestro/`},{label:`Upload a build`,text:`Upload builds/courier.apk to TestMu for the courier app`}]},{id:`exploration`,opens:[`explore`],short:`Explores user journeys`,category:`agentic`,agent:`forgeqe-explore-plan`,runs:[`forgeqe-explore-plan`],about:`Explores a journey the way a curious user would, and plans charters for what is worth a closer look.`,starters:[{label:`Explore a journey`,text:`Explore the checkout on QA and report anything that looks wrong`},{label:`Plan charters`,text:`Plan exploratory charters for the new refunds page`}]},{id:`coding`,opens:[`record`,`agent`],short:`Records and writes tests`,category:`native`,agent:`forgeqe-test`,runs:[`forgeqe-test`,`forgeqe-read`,`forgeqe-test-plan`,`forgeqe-review`],about:`Writes automated tests in your repository, in your team's style, from a journey you record, a verified run or a test case, and shows its plan first; ForgeQE runs every test it writes.`,crew:[{agent:`forgeqe-test-plan`,does:`places a recorded test in your repository and finds what it reuses there`},{agent:`forgeqe-read`,does:`reads the repository ahead, for the code a test can reuse`},{agent:`forgeqe-review`,does:`reviews each written test against your team's rules before you take it`}],starters:[{label:`Write a test`,text:`Write a Playwright test for the login flow on QA`},{label:`Automate a case`,text:`Turn SHOP-12 into an automated test`},{label:`From my recording`,text:`Write the test for my last recording`},{label:`Review written tests`,text:`Review the tests written in my last chat`}]},{id:`knowledge-agent`,opens:[`knowledge`],short:`Says what ForgeQE knows`,category:`assisted`,agent:`forgeqe-knowledge-agent`,runs:[`forgeqe-knowledge-agent`,`Librarian`],about:`Tells you what ForgeQE has understood about your product, from its knowledge notes, documents, skills and product graph, and takes your corrections. Each change to a note, a skill, a team prompt or the graph is shown first and written only when you approve it.`,starters:[{label:`Ask what it knows`,text:`What do you know about refunds?`},{label:`Correct it`,text:`Refunds over 1000 EUR need a supervisor, not 500: correct it`}]},{id:`healing`,opens:[`regression`],short:`Runs and heals packs`,category:`agentic`,agent:`forgeqe-heal`,runs:[`forgeqe-heal`],about:`Builds a regression pack from a release's changes, runs it, and fixes the tests the application outgrew, such as a moved button or a renamed field, saying what it changed.`,starters:[{label:`Heal failing tests`,text:`Heal the tests that failed in last night's run`}]},{id:`migration`,short:`Migrates test suites`,category:`agentic`,agent:`forgeqe-migrate`,runs:[`forgeqe-migrate`,`forgeqe-tosca`,`forgeqe-tosca-assistant`],about:`Moves a test suite to another framework or language, such as Selenium Java to Playwright, or Tricentis Tosca test cases from a .tsu export to code, after a plan you confirm; every Tosca step and check is kept, and ForgeQE runs every migrated test.`,opens:[`migration`],crew:[{agent:`forgeqe-tosca`,does:`converts Tricentis Tosca test cases from a .tsu export, one file at a time, keeping every step and check`},{agent:`forgeqe-tosca-assistant`,does:`reads what you ask to convert from Tosca and fills in New migration for you`}],starters:[{label:`Plan a migration`,text:`Plan migrating our Selenium tests in tests/ to Playwright TypeScript`},{label:`Convert a Tosca export`,text:`Plan converting tosca/checkout.tsu to Playwright TypeScript`}]},{id:`requirements`,short:`Reviews requirements`,category:`assisted`,agent:`req-agent`,runs:[`req-agent`],prompt:!1,about:`Reviews a requirement before it is built and tested: eight specialist roles and the business personas you pick read it with what ForgeQE knows about your product: its knowledge, documents, requirements search, product graph and what earlier reviews decided. They score it on six dimensions, and list its gaps and questions, each with a change you keep or leave.`,opens:[`requirements`],starters:[{label:`What makes a good requirement?`,text:`What should a requirement say so that the Requirements Agent scores it well on testability?`},{label:`Write test cases from a review`,text:`Write test cases from the requirements.json of my latest requirement review`}]},{id:`responsive`,short:`Tests pages on devices`,category:`agentic`,agent:`forgeqe-responsive`,runs:[`forgeqe-responsive`],about:`Opens one page on many phones, tablets and desktops at once, does your steps on every device, planned for each layout, and finds what breaks: sideways scrolling, text and tap targets too small, broken images, and your own checks.`,opens:[`responsive`],starters:[{label:`Check a page on phones`,text:`Check the home page on phones, tablets and desktops and tell me what breaks`},{label:`What scrolls sideways?`,text:`Which devices make the checkout page scroll sideways?`}]},{id:`api`,opens:[`api-tests`,`agent`],short:`Writes API tests`,category:`native`,agent:`forgeqe-api`,runs:[`forgeqe-api`,`forgeqe-api-plan`],about:`Writes API and contract tests in your repository from your API's description, with test data from your databases, and plans end-to-end scenarios for them.`,crew:[{agent:`forgeqe-api-plan`,does:`plans end-to-end scenarios: the calls, their order and what each checks`}],starters:[{label:`Contract tests`,text:`Write contract tests for the orders API`},{label:`Plan scenarios`,text:`Plan end-to-end scenarios for the payments API`}]},{id:`perf`,opens:[`performance`,`agent`],short:`Writes load tests`,category:`native`,agent:`forgeqe-perf`,runs:[`forgeqe-perf`],about:`Writes JMeter load test plans from your words; ForgeQE checks each plan and runs it with the users you choose on a test environment, never production, with response times, throughput and errors per request.`,starters:[{label:`Write a load test`,text:`Write a load test for checkout with 100 users over 5 minutes`},{label:`Run a load test`,text:`Which load tests do we have, and which can run?`}]},{id:`db`,opens:[`data`],short:`Finds test data`,category:`native`,agent:`forgeqe-data`,runs:[`forgeqe-data`,`Miner`],about:`Reads your connected databases and answers in your words: the test data a test needs, as existing rows or new ones with their INSERT script, and queries, data checks and database test scripts. The other agents ask it before they run.`,starters:[{label:`Find test data`,text:`Find two customers with paid orders for the checkout test`},{label:`Check the data`,text:`Check the orders table: no order without a customer, no negative totals`}]},{id:`persona`,short:`Business personas`,category:`native`,agent:`forgeqe-persona`,runs:[`forgeqe-persona`,`Mask`],about:`Describes the people who validate your software the way the business does: a subject matter expert such as a payments SME, an end user, a specialist or a business user, with what each one checks before they accept it. Every agent can act as one or test for one.`,starters:[{label:`A payments SME`,text:`Create a persona of an SME in card payments who reconciles settlements and handles refunds`},{label:`Test as a customer`,text:`Test the checkout as the retail-customer persona`}]},{id:`basal`,short:`BASAL: business testing`,category:`agentic`,agent:`forgeqe-basal`,runs:[`forgeqe-basal`,`BASAL`],about:`Tests a business decision the way real people meet it. Ask a business question with its brief: BASAL reads your product's knowledge graph and documents, writes a test strategy, casts the stakeholders as personas, and has ForgeQE's browser, API, mobile and desktop agents play each step as them on a test environment. Code judges the business outcome from the evidence.`,starters:[{label:`Launch decision`,text:`Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected`},{label:`Weekend sale`,text:`Before our weekend sale, test that prices stay the same from list to cart and that no customer gets a lower price than shown`}]},{id:`pr-review`,short:`Reviews pull requests`,category:`assisted`,agent:`forgeqe-pr-review`,runs:[`forgeqe-pr-review`],about:`Reviews a pull request's tests and changes, and says what is missing or risky.`,starters:[{label:`Review a pull request`,text:`Review the tests in pull request 42`}]},{id:`root-cause`,short:`Explains failures`,category:`native`,agent:`forgeqe-defect-rca`,runs:[`forgeqe-defect-rca`],about:`Finds why a test failed: the defect, the step where it showed, and the evidence for it.`,starters:[{label:`Find a root cause`,text:`Find the root cause of last night's checkout failure`}]}],Y=e=>J.find(t=>t.id===e),X=Object.freeze({planning:`coding`,review:`coding`,"api-planning":`api`,refine:`orchestrator`,search:`orchestrator`,research:`orchestrator`,helper:`orchestrator`,tosca:`migration`});Object.freeze({"forgeqe-judge":{label:`Settings › Product knowledge`,path:[`settings`,`evidence`]},"forgeqe-model-profile":{label:`Settings › Routing`,path:[`settings`,`routing`]}});var Z=e=>Y(e)??(e&&Object.hasOwn(X,e)?Y(X[e]):void 0);function Le(e,t=`all`){let n=e.toLowerCase().split(/\s+/).filter(Boolean),r=e=>q.find(t=>t.id===e)?.label||``,i=e=>(e.crew||[]).map(e=>`${G(e.agent).name} ${e.does}`).join(` `);return J.filter(e=>(t===`all`||e.category===t)&&n.every(t=>`${G(e.agent).name} ${e.id} ${e.short} ${e.about} ${i(e)} ${r(e.category)}`.toLowerCase().includes(t)))}var Re=`category`,ze=e=>q.find(t=>t.id===e);function Q(e){try{let t=JSON.parse(e||`[]`);if(!Array.isArray(t))return[];let n=t.filter(e=>typeof e==`string`).map(e=>Z(e)?.id??e);return[...new Set(n.filter(e=>Y(e)!==void 0||He(e)!==void 0))]}catch{return[]}}var $=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Be(e,t=`merge`){let n=[...B].join(`,`);t===`replace`&&(z.clear(),B.clear());for(let t of e)typeof t.id!=`string`||!$.test(t.id)||t.id.length>40||(B.add(t.id),R(t.icon)?z.set(t.id,t.icon):z.delete(t.id));[...B].join(`,`)!==n&&V++}var Ve=e=>`custom:${e}`;function He(e){let t=e.startsWith(`custom:`)?e.slice(7):``;return $.test(t)&&t.length<=40?t:void 0}function Ue(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>n.every(t=>`${e.name} ${e.id} ${e.description} custom`.toLowerCase().includes(t)))}var We=[{id:`setup`,group:`Start`,icon:o,label:`Set up`,file:``,intro:`The project folder ForgeQE works on, ForgeQE in it, and what this computer needs to run it.`},{id:`environments`,group:`General`,icon:ge,label:`Environments`,file:``,intro:`Where the agents work, and the apps in each place. The active one is used unless a request names another.`},{id:`signins`,group:`General`,icon:ee,label:`Sign-ins`,file:`forgeqe.yaml`,intro:`Logins for the apps the agents sign in to. Passwords go to your credential store; the model sees only a placeholder.`},{id:`secrets`,group:`General`,icon:pe,label:`Secrets`,file:``,intro:`Every password, key and token ForgeQE keeps, by name, and the vaults it pulls them from: Azure Key Vault, Google Secret Manager and AWS Secrets Manager. Values go to your credential store; the agents see only the names.`},{id:`integrations`,group:`General`,icon:Se,label:`Integrations`,file:`forgeqe.yaml`,intro:`Test case systems and bugs (sources:), and remote browser grids (browser.providers).`},{id:`notifications`,group:`General`,icon:f,label:`Notifications`,file:`forgeqe.yaml`,intro:`Teams channels and email lists, and the events each one gets (notify:). Monitor alerts are set under Monitor.`},{id:`appearance`,group:`General`,icon:ue,label:`Appearance`,file:`forgeqe.yaml`,intro:`The project's logo, name and colours in this web app, for everyone who opens it (theme:).`},{id:`voice`,group:`General`,icon:ye,label:`Voice`,file:``,intro:`Talk to ForgeQE's agents: speech set up on this computer, in English for now, and how long Talk waits when you pause. Speech never leaves this computer.`},{id:`models`,group:`AI`,icon:oe,label:`Models`,file:`llms.json and forgeqe.yaml`,intro:`The models the agents use (llm:). Keys you type go to your credential store, never to a file.`},{id:`routing`,group:`AI`,icon:r,label:`Routing`,file:`forgeqe.yaml`,intro:`Which model each area of work and each agent gets (llm.routing, llm.routes, llm.agents).`},{id:`skills`,group:`AI`,icon:Ce,label:`Skills`,file:`forgeqe.yaml`,intro:`What the agents know how to do: your test conventions, frameworks and apps, as folders with a SKILL.md, grouped by the agents that use them. Add your own for this project.`},{id:`prompts`,group:`AI`,icon:xe,label:`Prompts`,file:``,intro:`The instructions each agent starts from, with the agents that use each. Edit one to change how that agent works in this project, or add your own prompt for the agents you choose.`},{id:`guardrails`,group:`AI`,icon:le,label:`Guardrails`,file:`.forgeqe/guardrails`,intro:`Rules your agents follow in every chat and schedule: for every agent, or only the ones you choose.`},{id:`agents`,group:`AI`,icon:t,label:`Agents`,file:`forgeqe.yaml`,intro:`What you call the agents, their instructions, where their knowledge and guardrails are, custom agents, and the tools they get.`},{id:`evidence`,group:`AI`,icon:c,label:`Product knowledge`,file:`forgeqe.yaml`,intro:`What the agents know about your product, in five steps: its repositories, where its requirements are searched, its documents, the product and its knowledge, and how the graph is built.`},{id:`mcp`,group:`AI`,icon:_e,label:`MCP servers`,file:`forgeqe.yaml`,intro:`More MCP servers whose tools ForgeQE's agent gets (mcp:). Each test case system's own server is set with it under Integrations.`},{id:`tests`,group:`Testing`,icon:u,label:`Code`,file:`forgeqe.yaml`,intro:`Writing tests (code:): where passed runs become tests, how hard the coding agent tries, its time limits, and the help it gets.`},{id:`runs`,group:`Testing`,icon:se,label:`Reports and memory`,file:`forgeqe.yaml`,intro:`Where reports are exported (export:, report:), page memory and replays (memory:, registry:), suites, flaky tests, release readiness, defect analysis, and the project report (bi:).`},{id:`registry`,group:`Testing`,icon:d,label:`Replays`,file:`forgeqe.yaml`,intro:`Run a passed test again for free: ForgeQE repeats its saved steps without the AI.`},{id:`parallel`,group:`Testing`,icon:me,label:`Parallel execution`,file:`forgeqe.yaml`,intro:`How many browsers, scheduled runs and monitor checks go at once. Mobile devices at once are set under Mobile.`},{id:`browser`,group:`Testing`,icon:he,label:`Browser`,file:`forgeqe.yaml`,intro:`How the browser agent runs: where, how it looks, and how long it may take.`},{id:`monitor`,group:`Testing`,icon:l,label:`Monitor`,file:`forgeqe.yaml`,intro:`Checks that run on a schedule, and the alerts when one starts failing, keeps failing, or recovers.`},{id:`mobile`,group:`Testing`,icon:fe,label:`Mobile`,file:`forgeqe.yaml and the clouds' files`,intro:`How Android and iOS apps run (mobile:): Appium or Maestro, on several devices at once, on this machine or a device cloud such as TestMu AI. The apps themselves are in Environments.`},{id:`desktop`,group:`Testing`,icon:e,label:`Desktop`,file:`forgeqe.yaml`,intro:`How Windows desktop apps replay (desktop:). The apps themselves are in Environments.`},{id:`containers`,group:`Testing`,icon:re,label:`Containers`,file:`forgeqe.yaml`,intro:`Services for test runs in Docker or Podman (containers:): databases, queues, the API under test, mocks, and the images tests and agents run in.`},{id:`databases`,group:`Testing`,icon:ve,label:`Databases`,file:`forgeqe.yaml`,intro:`Databases the agent may read, and write to after you confirm (databases:), for questions, test data and data flows. An environment can add its own.`},{id:`quality`,group:`Testing`,icon:a,label:`Quality`,file:`forgeqe.yaml`,intro:`Accessibility, performance, visual and API checks on every page a run visits.`},{id:`logs`,group:`Activity`,icon:ie,label:`Logs`,file:``,intro:`A log of each chat, run and suite on this machine, for finding out what happened.`},{id:`audit`,group:`Activity`,icon:te,label:`Audit`,file:``,intro:`What ForgeQE did and what went wrong: sessions, tool and model calls, runs and errors, and who changed which setting.`},{id:`observability`,group:`Activity`,icon:ne,label:`Observability`,file:``,intro:`Send ForgeQE's own spans and metrics to your OpenTelemetry collector: off unless you turn it on, and never what the agents read or wrote.`},{id:`tokenomics`,group:`Activity`,icon:i,label:`Tokenomics`,file:`forgeqe.yaml`,intro:`Where the tokens and money went, from this project's reports, and the budgets that warn before they run out.`},{id:`generated`,group:`Activity`,icon:s,label:`Generated code`,file:``,intro:`How much of the code ForgeQE wrote in the repository is still there, by run (forgeqe generated).`},{id:`files`,group:`Advanced`,icon:ce,label:`Settings as text`,file:``,intro:`forgeqe.yaml, llms.json and env.yaml as they are on disk, for anything the form does not have.`},{id:`report`,group:`Advanced`,icon:be,label:`Report a problem`,file:``,intro:`Tell the ForgeQE team about a problem in ForgeQE. It drafts the bug with you, shows everything it will send, and files it in their Azure DevOps.`},{id:`features`,group:`Advanced`,icon:de,label:`What's ready`,file:``,intro:`What ForgeQE can do here. Pick one to see what it needs.`},{id:`whats-new`,group:`Advanced`,icon:n,label:`What's new`,file:``,intro:`What each release of ForgeQE added, improved and fixed. Pick a change to read more.`},{id:`about`,group:`Advanced`,icon:ae,label:`About ForgeQE`,file:``,intro:`The version of ForgeQE on this computer, updating it, and its guides.`}],Ge=[`guardrails`,`skills`,`prompts`];export{Oe as A,P as C,L as D,R as E,T as M,E as N,k as O,D as P,N as S,I as T,Ne as _,Pe as a,Be as b,$ as c,Y as d,Z as f,Ue as g,Le as h,J as i,M as j,De as k,X as l,G as m,Ge as n,Re as o,Ve as p,q as r,Fe as s,We as t,ze as u,K as v,Me as w,Ie as x,Q as y};