@capagents/forgeqe 3.3.4 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +9 -0
- package/dist/docs-site/docs/area-operations/index.html +9 -0
- package/dist/forgeqe.js +1911 -1910
- package/dist/web/assets/{3d-force-graph-KUdc_88B.js → 3d-force-graph-Dzh7nZHB.js} +1 -1
- package/dist/web/assets/Agent-TMDBO05H.js +10 -0
- package/dist/web/assets/{AgentWork-DmCMV4YL.js → AgentWork-CHC16tCh.js} +1 -1
- package/dist/web/assets/{ApiTests-C8XEETqg.js → ApiTests-BhmPtlha.js} +3 -3
- package/dist/web/assets/{Browse-BjPPdirz.js → Browse-BT4NwFlf.js} +1 -1
- package/dist/web/assets/{Chat-DKOatIXA.js → Chat-5kT-DaOX.js} +3 -3
- package/dist/web/assets/{CommandPalette-BBGtkkz4.js → CommandPalette-D2T-HldB.js} +1 -1
- package/dist/web/assets/{Compare-BIUv2jE1.js → Compare-CVId7eRu.js} +1 -1
- package/dist/web/assets/{Cost-DiCKET0E.js → Cost-BcGPKNts.js} +1 -1
- package/dist/web/assets/{Data-CjWcmOft.js → Data-BoZOA_H9.js} +1 -1
- package/dist/web/assets/{Desktop-ChCPGa4S.js → Desktop-dYRmoU_-.js} +1 -1
- package/dist/web/assets/{DesktopReview-Bg2GEMn0.js → DesktopReview-CfozOqkA.js} +1 -1
- package/dist/web/assets/{Evidence-B7iO8OAV.js → Evidence-BseJLe3S.js} +1 -1
- package/dist/web/assets/{Explore-VSyrooF_.js → Explore-2g74_R0C.js} +2 -2
- package/dist/web/assets/Features-DgJqPa-3.js +1 -0
- package/dist/web/assets/{Flags-CTndlZ8W.js → Flags-C9Vli2I6.js} +1 -1
- package/dist/web/assets/{Flaky-DUztfo-f.js → Flaky-BHoLVcnp.js} +1 -1
- package/dist/web/assets/{Impact-DgJIBG7L.js → Impact-vNOLMC--.js} +2 -2
- package/dist/web/assets/{Jobs-DGtR5ObS.js → Jobs-BXJHiDme.js} +2 -2
- package/dist/web/assets/{KindPage-BVr4n0ZP.js → KindPage-CAlLQ-wX.js} +2 -2
- package/dist/web/assets/{LiveDevice-jFCQ_zeU.js → LiveDevice-DdzQmJat.js} +1 -1
- package/dist/web/assets/{Migration-DXRwsp94.js → Migration-D1uvBaBZ.js} +5 -5
- package/dist/web/assets/{Mobile-D5D-DcNd.js → Mobile-DUW4OwBK.js} +1 -1
- package/dist/web/assets/{Observability-D0Y8qi2t.js → Observability-BstgIeKO.js} +1 -1
- package/dist/web/assets/{OwnItems-7-j-eCvZ.js → OwnItems-D-GGL7l6.js} +1 -1
- package/dist/web/assets/PageAgent-sAuAp86u.js +1 -0
- package/dist/web/assets/{Product-B3dgOq3I.js → Product-BaV0xHXM.js} +2 -2
- package/dist/web/assets/{Production-CW8pMuAY.js → Production-B2O4o_2w.js} +1 -1
- package/dist/web/assets/{Quality-DCzS_GuJ.js → Quality-B-4lwa5s.js} +1 -1
- package/dist/web/assets/{Readiness-BQ811zqC.js → Readiness-DYEhtv3L.js} +1 -1
- package/dist/web/assets/{Record-Slru4bw9.js → Record-DJtJ5lHo.js} +1 -1
- package/dist/web/assets/{Regression-BT_dP1xn.js → Regression-Dl74mLPk.js} +2 -2
- package/dist/web/assets/{RelationGraph-CBY9FhUu.js → RelationGraph-Icd1HaVO.js} +1 -1
- package/dist/web/assets/{Reports-C19TfbRO.js → Reports-BEgu0hEa.js} +2 -2
- package/dist/web/assets/{Requirements-ROyC5mNL.js → Requirements-BGrUE42Y.js} +2 -2
- package/dist/web/assets/{Responsive-Cwky2L-3.js → Responsive-CE1Mk2v1.js} +2 -2
- package/dist/web/assets/{RunDiff-BbekEd9C.js → RunDiff-CL_5y-Qe.js} +1 -1
- package/dist/web/assets/{Settings-CIEWLuAi.js → Settings-COjVzBnC.js} +9 -9
- package/dist/web/assets/{Steps-BjV1MGz-.js → Steps-p2mtjaQd.js} +1 -1
- package/dist/web/assets/{TestData-ChL4QzCY.js → TestData-B6h_wMZg.js} +1 -1
- package/dist/web/assets/{TestManagement-B2oqBgb7.js → TestManagement-CmwX5zHH.js} +3 -3
- package/dist/web/assets/{WhatsNew-ID__g8MH.js → WhatsNew-BsUPo-AN.js} +1 -1
- package/dist/web/assets/{agentSettingsSheet-CCkfMiKg.js → agentSettingsSheet-BYfhgj6t.js} +1 -1
- package/dist/web/assets/{api-BsiuHmJq.js → api-BUoHbp5V.js} +1 -1
- package/dist/web/assets/{dataParts-_X5zGtE9.js → dataParts-DbfDDph_.js} +1 -1
- package/dist/web/assets/{desktopAppPath-D3mGDKPz.js → desktopAppPath-CRwtH7Mm.js} +1 -1
- package/dist/web/assets/{flowTheme-DKuXe5nP.js → flowTheme-DM9ULk-2.js} +1 -1
- package/dist/web/assets/{frame-CgBYYtdw.js → frame-DW-Hx3fC.js} +3 -3
- package/dist/web/assets/index-CsEmZt6_.js +55 -0
- package/dist/web/assets/index-DVlmTifI.css +2 -0
- package/dist/web/assets/{markdown-CwgDQU8m.js → markdown-BhteivTy.js} +1 -1
- package/dist/web/assets/{nav-B_68FVw_.js → nav-DE7YMNUI.js} +1 -1
- package/dist/web/assets/{pageBack-CbyKfisx.js → pageBack-D89f9SN4.js} +1 -1
- package/dist/web/assets/{palette-6YAAmgkD.js → palette-DLNRH9CW.js} +1 -1
- package/dist/web/assets/{parts-ClnDV-6r.js → parts-CuY97ZCG.js} +1 -1
- package/dist/web/assets/{productParts-CmNi_5fy.js → productParts-CiA1iUMC.js} +1 -1
- package/dist/web/assets/{qualityParts-BzzN4OCT.js → qualityParts-BSRlONZr.js} +1 -1
- package/dist/web/assets/{recordTest-7uIZiqOW.js → recordTest-DQFAYzce.js} +1 -1
- package/dist/web/assets/stepper-DbGnuiC8.js +1 -0
- package/dist/web/assets/{wizardParts-C0cNmIK9.js → wizardParts-D6YJXD6A.js} +1 -1
- package/dist/web/index.html +8 -8
- package/docs/ForgeQE-Static-Analysis-Report-30112026.pdf +0 -0
- package/docs/ForgeQE-Static-Analysis-Report-5bbf0da7.html +207 -0
- package/docs/user-guide.html +9 -0
- package/package.json +1 -1
- package/py/forgeqe_engine/persona.py +2 -1
- package/dist/web/assets/Agent-CPDdNdzX.js +0 -10
- package/dist/web/assets/Features-CyL67W6D.js +0 -1
- package/dist/web/assets/PageAgent-hlUDoATU.js +0 -1
- package/dist/web/assets/index-Cq1_-QV9.css +0 -2
- package/dist/web/assets/index-Ctos0-8H.js +0 -55
- package/dist/web/assets/stepper-DdgwJtbU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-BDur5s0O.js";import{r as n}from"./route-oDy8sV6H.js";import{v as r}from"./api-BsiuHmJq.js";var i=e(t(),1),a={pins:`forgeqe-pinned`,recents:`forgeqe-recent-pages`,favourites:`forgeqe-agent-favourites`,tabs:`forgeqe-kept-tabs`},o=null;function s(){return o||=(async()=>{let e;try{e=await r(`GET`,`/api/prefs`)}catch{return}for(let t of Object.keys(a)){let n=a[t];if(Array.isArray(e[t]))try{localStorage.getItem(n)!==JSON.stringify(e[t])&&(localStorage.setItem(n,JSON.stringify(e[t])),window.dispatchEvent(new Event(n)))}catch{}else{let e=null;try{e=JSON.parse(localStorage.getItem(n)||`null`)}catch{}Array.isArray(e)&&e.length&&r(`POST`,`/api/prefs`,{name:t,list:e}).catch(()=>{})}}})(),o}function c(e){s().then(()=>{let t=[];try{t=JSON.parse(localStorage.getItem(a[e])||`[]`)}catch{}Array.isArray(t)&&r(`POST`,`/api/prefs`,{name:e,list:t}).catch(()=>{})})}var l=(e,t,n,r,i,a={})=>({id:e,label:t,about:n,path:r,icon:i,...a}),u=[{id:`agents`,label:`Agents`,about:`Chat with ForgeQE, and find, make and schedule its agents.`,icon:`agents-hub`,agents:[`orchestrator`],areas:[{id:`chat`,label:`Chat`,about:`Ask and delegate in plain words.`,items:[l(`new-chat`,`New chat`,`Start a conversation with any agent`,[],`orchestrator`,{words:`home ask message`}),l(`chats`,`All chats`,`Every earlier chat`,[`chats`],`chat`,{words:`conversations history chat history`})]},{id:`catalogue`,label:`Built-in agents`,about:`The agents ForgeQE comes with.`,items:[l(`agents`,`All agents`,`Every agent, with favourites on top`,[`agents`],`board`)]},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,items:[l(`agents-custom`,`All custom agents`,`Drafts, approved versions and their runs`,[`agents`,`category`,`custom`],`board`),l(`agents-new`,`Make an agent`,`The agent builder, step by step`,[`agents`,`custom`,`new`],`wand`)]},{id:`background`,label:`In the background`,about:`Work that runs on a schedule.`,items:[l(`jobs`,`Jobs`,`Scheduled runs and their history`,[`jobs`],`speed`,{also:[[`schedules`]],words:`schedule schedules cron nightly`})]}]},{id:`knowledge`,label:`Knowledge`,about:`What the agents know about your product, and the rules they follow.`,icon:`knowledge-base`,agents:[`knowledge-agent`],areas:[{id:`search`,label:`Search`,about:`Everything the agents know, in one search.`,items:[l(`knowledge`,`Search knowledge`,`Search everything the agents know`,[`knowledge`],`knowledge-base`)]},{id:`product`,label:`Product understanding`,about:`Your product as the agents read it.`,items:[l(`product`,`Product`,`What it does and how it is built, at a glance`,[`product`],`columns`,{words:`product overview landscape systems`}),l(`product-agent`,`Product agent`,`Ask about the product in your words`,[`product`,`agent`],`chat`,{words:`ask product agent question`}),l(`product-services`,`Architecture`,`Systems, services and how they connect`,[`product`,`architecture`],`network`,{words:`architecture landscape systems services connections how they talk flow map zoom journeys`,also:[[`product`,`services`],[`product`,`systems`],[`product`,`links`],[`product`,`landscape`],[`product`,`flows`]]}),l(`product-code`,`Code map`,`Repository structure`,[`product`,`code`],`code`),l(`product-runtime`,`Runtime`,`What runs did against the code`,[`product`,`runtime`],`pulse`,{words:`runtime runs coverage endpoints seen`}),l(`product-questions`,`Open questions`,`What the build could not settle`,[`product`,`questions`],`warning`,{words:`open questions gaps unknown`}),l(`product-business`,`Business view`,`Capabilities, journeys, rules and glossary`,[`product`,`business`],`stories`)]},{id:`memory`,label:`Memory`,about:`What the agents learnt from earlier work.`,items:[l(`memory`,`Memory`,`Flows and pages remembered per site and app`,[`memory`],`architecture`)]},{id:`behaviour`,label:`Agent behaviour`,about:`How the agents work in this project.`,items:[l(`skills`,`Skills`,`Your conventions, frameworks and apps`,[`skills`],`feature`),l(`prompts`,`Prompts`,`The instructions each agent starts from`,[`prompts`],`stories`),l(`guardrails`,`Guardrails`,`Rules every chat and schedule follows`,[`guardrails`],`shield`)]}]},{id:`quality`,label:`Quality Engineering`,about:`Design, automate, run and analyse tests across web, API, mobile and desktop.`,icon:`quality-engineering`,agents:[`requirements`,`browser`,`desktop`,`mobile`,`exploration`,`coding`,`persona`,`basal`,`healing`,`migration`,`responsive`,`api`,`perf`],areas:[{id:`design`,label:`Test design`,about:`Decide what to test.`,items:[l(`requirements`,`Requirements`,`Review a requirement before it is built and tested`,[`requirements`],`stories`,{words:`requirements review spec circuit brd story stories acceptance criteria gaps open questions quality score personas req-agent`}),l(`test-management`,`Test management`,`Every case, script, gap and suite in one place`,[`test-management`],`ticket`,{words:`test management test plans suites tags coverage automated not automated gaps traceability inventory test debt untested duplicate tests never fail story stories test cases save_test_cases proposals`}),l(`explore`,`Exploratory`,`Charters and sessions that look for bugs`,[`explore`],`sparkle`,{words:`exploratory explore charter session find bugs`}),l(`basal`,`BASAL`,`A business question, played by ForgeQE's agents as the people it affects`,[`agents`,`basal`],`info`,{words:`basal business testing business assurance decision launch pricing risk misuse fraud refund coupon personas rehearse findings`})]},{id:`automation`,label:`Automation`,about:`Turn journeys and old suites into tests.`,items:[l(`record`,`Record`,`Record a journey, and Quill makes it a test`,[`record`],`screenshot`,{words:`record recording quill write tests automate pathfinder checker review`}),l(`desktop`,`Desktop apps`,`Explore, record and replay Windows apps`,[`desktop`],`desktop`,{words:`desktop windows thick client workflow replay heal ufo`}),l(`mobile`,`Mobile apps`,`Explore, record and replay Android and iOS apps`,[`mobile`],`mobile`,{words:`mobile android ios phone tablet appium maestro emulator simulator testmu browserstack workflow replay`}),l(`migration`,`Migration`,`Selenium, Cypress and Tosca suites to a new framework`,[`migration`],`table`,{also:[[`tosca`]],words:`migration convert selenium cypress suites tosca tricentis tsu export conversion`})]},{id:`execution`,label:`Execution`,about:`Run tests and suites.`,items:[l(`regression`,`Regression`,`Build, run and heal a pack`,[`regression`],`replay`,{words:`regression packs pack`}),l(`runs`,`Runs`,`Every run, with what it did`,[`runs`],`terminal`,{words:`sessions history chats`})]},{id:`specialised`,label:`Specialised testing`,about:`APIs, and what every page should be.`,items:[l(`api-tests`,`API tests`,`Contracts, scenarios and the workbench`,[`api-tests`],`plug`),l(`quality`,`Quality`,`Accessibility, performance and visual, together`,[`quality`],`columns`,{words:`a11y wcag core web vitals`}),l(`accessibility`,`Accessibility`,`WCAG checks on the pages a run visits`,[`accessibility`],`accessibility`),l(`performance`,`Performance`,`Core Web Vitals of each page`,[`performance`],`pulse`),l(`visual`,`Visual`,`Screenshots against baselines`,[`visual`],`visual`),l(`responsive`,`Responsive`,`One page on many devices at once`,[`responsive`],`mobile`,{words:`responsive devices viewports breakpoints mobile tablet phone layout preview synced`})]},{id:`insights`,label:`Insights`,about:`What the runs tell you.`,items:[l(`reports`,`Execution reports`,`One run in detail`,[`reports`],`report`),l(`reports-project`,`Project report`,`Across all runs`,[`reports`,`project`],`report`),l(`run-diff`,`Run diff`,`Two runs side by side`,[`run-diff`],`code`,{words:`compare runs side by side difference`}),l(`flaky`,`Flaky tests`,`Unstable tests and quarantine`,[`flaky`],`bug`,{words:`flaky quarantine heal unstable intermittent`})]}]},{id:`data`,label:`Data`,about:`Ask your databases questions, check the data and follow it through flows.`,icon:`database`,agents:[`db`],areas:[{id:`databases`,label:`Your data`,about:`Read and understand your data.`,items:[l(`data`,`Data agent`,`Ask for queries, checks and test scripts`,[`data`],`container`,{words:`data agent miner databases db data flows schema requests`}),l(`data-databases`,`Databases`,`Each database and its tables`,[`data`,`databases`],`database`),l(`data-ask`,`Ask`,`Questions about the data in plain words`,[`data`,`ask`],`chat`),l(`data-flows`,`Data flows`,`How data moves between systems`,[`data`,`flows`],`route`)]},{id:`test-data`,label:`Data for tests`,about:`Data for tests.`,items:[l(`test-data`,`Test data`,`Rows found or made for tests`,[`test-data`],`flask`),l(`test-data-specs`,`Data specs`,`Specs new rows are made from`,[`test-data`,`specs`],`specs`)]}]},{id:`delivery`,label:`Delivery & Operations`,about:`From a change, to a release, to production.`,icon:`rocket`,agents:[`pr-review`,`root-cause`],areas:[{id:`change`,label:`Change`,about:`What a change touches.`,items:[l(`impact`,`Change impact`,`The tests and areas a change reaches`,[`impact`],`board`)]},{id:`release`,label:`Release`,about:`Decide when to ship.`,items:[l(`readiness`,`Release readiness`,`Go or no-go, with the evidence`,[`readiness`],`shield`,{words:`release readiness go no-go sign off verdict`}),l(`flags`,`Feature flags`,`Flag combinations to cover`,[`flags`],`feature`,{words:`feature flags launchdarkly unleash toggles combinations matrix`})]},{id:`production`,label:`Production`,about:`What happens live.`,items:[l(`production`,`Production signals`,`Errors and crashes from your monitoring`,[`production`],`web`,{words:`production errors sentry datadog app insights crashes`})]}]},{id:`assurance`,label:`AI Assurance`,about:`Evaluate, govern and improve AI agents: ForgeQE's and your teams'.`,icon:`ai-assurance`,inside:[`forgeqe-judge`,`forgeqe-model-profile`],areas:[{id:`evaluation`,label:`Evaluation`,about:`How the agents did.`,items:[l(`evidence`,`Overview`,`Runs judged and where trust stands`,[`evidence`],`flask`),l(`evidence-runs`,`Agent runs`,`Every run with its verdict`,[`evidence-runs`],`scroll`),l(`evidence-review`,`Review queue`,`Runs waiting for a person`,[`evidence-review`],`ticket`)]},{id:`governance`,label:`Governance`,about:`What the agents must do, and when a version may ship.`,items:[l(`evidence-contracts`,`Contracts`,`Each agent's contract`,[`evidence-contracts`],`file`,{words:`contracts governance`}),l(`evidence-releases`,`Releases`,`Release gates per version`,[`evidence-releases`],`history`),l(`cost`,`Cost`,`Spend by model, agent and run`,[`cost`],`coins`,{words:`cost spend tokens models price usage`}),l(`observability`,`Observability`,`ForgeQE's own sessions, runs, tools and problems`,[`observability`],`pulse`,{words:`observability telemetry opentelemetry otel health errors problems sessions monitoring dashboard`})]},{id:`improvement`,label:`Improvement`,about:`Make the agents better over time.`,items:[l(`evidence-learn`,`Learn`,`Causes, and fixes proven on replays`,[`evidence-learn`],`replay`),l(`evidence-monitor`,`Monitor`,`Baselines and trust`,[`evidence-monitor`],`pulse`)]}]}],d=u.flatMap(e=>e.areas.flatMap(t=>t.items.map(n=>({item:n,category:e,area:t})))),f=e=>n(...e.path),p=e=>d.find(t=>t.item.id===e)?.item.label??e,m=e=>e.items.filter(e=>e.path.length>0),h=e=>m(e).length>1,g=(e,t)=>t.length<=e.length&&t.every((t,n)=>e[n]===t);function _(e,t){return e.path.length?Math.max(...[e.path,...e.also||[]].map(e=>g(t,e)?e.length:0)):+!t.length}function v(e){let t,n=0;for(let r of d){let i=_(r.item,e);i>n&&([t,n]=[r,i])}return t}function y(e){return e[0]===`browse`&&e[1]===`agents`?n(`agents`):n()}var b=`forgeqe-pinned`,x=`forgeqe-pinned`;function S(e,t){try{let n=JSON.parse(e||`[]`);if(!Array.isArray(n))return[];let r=new Set(d.map(e=>e.item.id));return[...new Set(n.filter(e=>typeof e==`string`&&r.has(e)))].slice(0,t)}catch{return[]}}var C=e=>S(e,8),w=[`chats`],T=e=>e===null?[...w]:C(e);function E(){let e=()=>{try{return T(localStorage.getItem(b))}catch{return[...w]}},[t,n]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(x,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(x,t),window.removeEventListener(`storage`,t)}},[]),{pins:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e].slice(-8);n(r);try{localStorage.setItem(b,JSON.stringify(r)),window.dispatchEvent(new Event(x))}catch{}c(`pins`)}}}var D=`forgeqe-recent-pages`,O=`forgeqe-recent-pages`,k=e=>S(e,12);function A(e,t){let n=v(t);return!n||!n.item.path.length?e:[n.item.id,...e.filter(e=>e!==n.item.id)].slice(0,12)}function j(){try{return k(localStorage.getItem(D))}catch{return[]}}function M(e){let t=j(),n=A(t,e);if(n.join()!==t.join()){try{localStorage.setItem(D,JSON.stringify(n)),window.dispatchEvent(new Event(O))}catch{}c(`recents`)}}function N(e){if(!e.length)return;let t=v(e);if(t&&t.item.path.length)return _(t.item,e)<e.length?{href:f(t.item),label:t.item.label}:void 0}export{h as a,_ as c,m as d,E as f,s as h,y as i,M as l,c as m,u as n,f as o,a as p,N as r,v as s,d as t,p as u};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-BDur5s0O.js";import{r as n}from"./route-oDy8sV6H.js";import{v as r}from"./api-BUoHbp5V.js";var i=e(t(),1),a={pins:`forgeqe-pinned`,recents:`forgeqe-recent-pages`,favourites:`forgeqe-agent-favourites`,tabs:`forgeqe-kept-tabs`},o=null;function s(){return o||=(async()=>{let e;try{e=await r(`GET`,`/api/prefs`)}catch{return}for(let t of Object.keys(a)){let n=a[t];if(Array.isArray(e[t]))try{localStorage.getItem(n)!==JSON.stringify(e[t])&&(localStorage.setItem(n,JSON.stringify(e[t])),window.dispatchEvent(new Event(n)))}catch{}else{let e=null;try{e=JSON.parse(localStorage.getItem(n)||`null`)}catch{}Array.isArray(e)&&e.length&&r(`POST`,`/api/prefs`,{name:t,list:e}).catch(()=>{})}}})(),o}function c(e){s().then(()=>{let t=[];try{t=JSON.parse(localStorage.getItem(a[e])||`[]`)}catch{}Array.isArray(t)&&r(`POST`,`/api/prefs`,{name:e,list:t}).catch(()=>{})})}var l=(e,t,n,r,i,a={})=>({id:e,label:t,about:n,path:r,icon:i,...a}),u=[{id:`agents`,label:`Agents`,about:`Chat with ForgeQE, and find, make and schedule its agents.`,icon:`agents-hub`,agents:[`orchestrator`],areas:[{id:`chat`,label:`Chat`,about:`Ask and delegate in plain words.`,items:[l(`new-chat`,`New chat`,`Start a conversation with any agent`,[],`orchestrator`,{words:`home ask message`}),l(`chats`,`All chats`,`Every earlier chat`,[`chats`],`chat`,{words:`conversations history chat history`})]},{id:`catalogue`,label:`Built-in agents`,about:`The agents ForgeQE comes with.`,items:[l(`agents`,`All agents`,`Every agent, with favourites on top`,[`agents`],`board`)]},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,items:[l(`agents-custom`,`All custom agents`,`Drafts, approved versions and their runs`,[`agents`,`category`,`custom`],`board`),l(`agents-new`,`Make an agent`,`The agent builder, step by step`,[`agents`,`custom`,`new`],`wand`)]},{id:`background`,label:`In the background`,about:`Work that runs on a schedule.`,items:[l(`jobs`,`Jobs`,`Scheduled runs and their history`,[`jobs`],`speed`,{also:[[`schedules`]],words:`schedule schedules cron nightly`})]}]},{id:`knowledge`,label:`Knowledge`,about:`What the agents know about your product, and the rules they follow.`,icon:`knowledge-base`,agents:[`knowledge-agent`],areas:[{id:`search`,label:`Search`,about:`Everything the agents know, in one search.`,items:[l(`knowledge`,`Search knowledge`,`Search everything the agents know`,[`knowledge`],`knowledge-base`)]},{id:`product`,label:`Product understanding`,about:`Your product as the agents read it.`,items:[l(`product`,`Product`,`What it does and how it is built, at a glance`,[`product`],`columns`,{words:`product overview landscape systems`}),l(`product-agent`,`Product agent`,`Ask about the product in your words`,[`product`,`agent`],`chat`,{words:`ask product agent question`}),l(`product-services`,`Architecture`,`Systems, services and how they connect`,[`product`,`architecture`],`network`,{words:`architecture landscape systems services connections how they talk flow map zoom journeys`,also:[[`product`,`services`],[`product`,`systems`],[`product`,`links`],[`product`,`landscape`],[`product`,`flows`]]}),l(`product-code`,`Code map`,`Repository structure`,[`product`,`code`],`code`),l(`product-runtime`,`Runtime`,`What runs did against the code`,[`product`,`runtime`],`pulse`,{words:`runtime runs coverage endpoints seen`}),l(`product-questions`,`Open questions`,`What the build could not settle`,[`product`,`questions`],`warning`,{words:`open questions gaps unknown`}),l(`product-business`,`Business view`,`Capabilities, journeys, rules and glossary`,[`product`,`business`],`stories`)]},{id:`memory`,label:`Memory`,about:`What the agents learnt from earlier work.`,items:[l(`memory`,`Memory`,`Flows and pages remembered per site and app`,[`memory`],`architecture`)]},{id:`behaviour`,label:`Agent behaviour`,about:`How the agents work in this project.`,items:[l(`skills`,`Skills`,`Your conventions, frameworks and apps`,[`skills`],`feature`),l(`prompts`,`Prompts`,`The instructions each agent starts from`,[`prompts`],`stories`),l(`guardrails`,`Guardrails`,`Rules every chat and schedule follows`,[`guardrails`],`shield`)]}]},{id:`quality`,label:`Quality Engineering`,about:`Design, automate, run and analyse tests across web, API, mobile and desktop.`,icon:`quality-engineering`,agents:[`requirements`,`browser`,`desktop`,`mobile`,`exploration`,`coding`,`persona`,`basal`,`healing`,`migration`,`responsive`,`api`,`perf`],areas:[{id:`design`,label:`Test design`,about:`Decide what to test.`,items:[l(`requirements`,`Requirements`,`Review a requirement before it is built and tested`,[`requirements`],`stories`,{words:`requirements review spec circuit brd story stories acceptance criteria gaps open questions quality score personas req-agent`}),l(`test-management`,`Test management`,`Every case, script, gap and suite in one place`,[`test-management`],`ticket`,{words:`test management test plans suites tags coverage automated not automated gaps traceability inventory test debt untested duplicate tests never fail story stories test cases save_test_cases proposals`}),l(`explore`,`Exploratory`,`Charters and sessions that look for bugs`,[`explore`],`sparkle`,{words:`exploratory explore charter session find bugs`}),l(`basal`,`BASAL`,`A business question, played by ForgeQE's agents as the people it affects`,[`agents`,`basal`],`info`,{words:`basal business testing business assurance decision launch pricing risk misuse fraud refund coupon personas rehearse findings`})]},{id:`automation`,label:`Automation`,about:`Turn journeys and old suites into tests.`,items:[l(`record`,`Record`,`Record a journey, and Quill makes it a test`,[`record`],`screenshot`,{words:`record recording quill write tests automate pathfinder checker review`}),l(`desktop`,`Desktop apps`,`Explore, record and replay Windows apps`,[`desktop`],`desktop`,{words:`desktop windows thick client workflow replay heal ufo`}),l(`mobile`,`Mobile apps`,`Explore, record and replay Android and iOS apps`,[`mobile`],`mobile`,{words:`mobile android ios phone tablet appium maestro emulator simulator testmu browserstack workflow replay`}),l(`migration`,`Migration`,`Selenium, Cypress and Tosca suites to a new framework`,[`migration`],`table`,{also:[[`tosca`]],words:`migration convert selenium cypress suites tosca tricentis tsu export conversion`})]},{id:`execution`,label:`Execution`,about:`Run tests and suites.`,items:[l(`regression`,`Regression`,`Build, run and heal a pack`,[`regression`],`replay`,{words:`regression packs pack`}),l(`runs`,`Runs`,`Every run, with what it did`,[`runs`],`terminal`,{words:`sessions history chats`})]},{id:`specialised`,label:`Specialised testing`,about:`APIs, and what every page should be.`,items:[l(`api-tests`,`API tests`,`Contracts, scenarios and the workbench`,[`api-tests`],`plug`),l(`quality`,`Quality`,`Accessibility, performance and visual, together`,[`quality`],`columns`,{words:`a11y wcag core web vitals`}),l(`accessibility`,`Accessibility`,`WCAG checks on the pages a run visits`,[`accessibility`],`accessibility`),l(`performance`,`Performance`,`Core Web Vitals of each page`,[`performance`],`pulse`),l(`visual`,`Visual`,`Screenshots against baselines`,[`visual`],`visual`),l(`responsive`,`Responsive`,`One page on many devices at once`,[`responsive`],`mobile`,{words:`responsive devices viewports breakpoints mobile tablet phone layout preview synced`})]},{id:`insights`,label:`Insights`,about:`What the runs tell you.`,items:[l(`reports`,`Execution reports`,`One run in detail`,[`reports`],`report`),l(`reports-project`,`Project report`,`Across all runs`,[`reports`,`project`],`report`),l(`run-diff`,`Run diff`,`Two runs side by side`,[`run-diff`],`code`,{words:`compare runs side by side difference`}),l(`flaky`,`Flaky tests`,`Unstable tests and quarantine`,[`flaky`],`bug`,{words:`flaky quarantine heal unstable intermittent`})]}]},{id:`data`,label:`Data`,about:`Ask your databases questions, check the data and follow it through flows.`,icon:`database`,agents:[`db`],areas:[{id:`databases`,label:`Your data`,about:`Read and understand your data.`,items:[l(`data`,`Data agent`,`Ask for queries, checks and test scripts`,[`data`],`container`,{words:`data agent miner databases db data flows schema requests`}),l(`data-databases`,`Databases`,`Each database and its tables`,[`data`,`databases`],`database`),l(`data-ask`,`Ask`,`Questions about the data in plain words`,[`data`,`ask`],`chat`),l(`data-flows`,`Data flows`,`How data moves between systems`,[`data`,`flows`],`route`)]},{id:`test-data`,label:`Data for tests`,about:`Data for tests.`,items:[l(`test-data`,`Test data`,`Rows found or made for tests`,[`test-data`],`flask`),l(`test-data-specs`,`Data specs`,`Specs new rows are made from`,[`test-data`,`specs`],`specs`)]}]},{id:`delivery`,label:`Delivery & Operations`,about:`From a change, to a release, to production.`,icon:`rocket`,agents:[`pr-review`,`root-cause`],areas:[{id:`change`,label:`Change`,about:`What a change touches.`,items:[l(`impact`,`Change impact`,`The tests and areas a change reaches`,[`impact`],`board`)]},{id:`release`,label:`Release`,about:`Decide when to ship.`,items:[l(`readiness`,`Release readiness`,`Go or no-go, with the evidence`,[`readiness`],`shield`,{words:`release readiness go no-go sign off verdict`}),l(`flags`,`Feature flags`,`Flag combinations to cover`,[`flags`],`feature`,{words:`feature flags launchdarkly unleash toggles combinations matrix`})]},{id:`production`,label:`Production`,about:`What happens live.`,items:[l(`production`,`Production signals`,`Errors and crashes from your monitoring`,[`production`],`web`,{words:`production errors sentry datadog app insights crashes`})]}]},{id:`assurance`,label:`AI Assurance`,about:`Evaluate, govern and improve AI agents: ForgeQE's and your teams'.`,icon:`ai-assurance`,inside:[`forgeqe-judge`,`forgeqe-model-profile`],areas:[{id:`evaluation`,label:`Evaluation`,about:`How the agents did.`,items:[l(`evidence`,`Overview`,`Runs judged and where trust stands`,[`evidence`],`flask`),l(`evidence-runs`,`Agent runs`,`Every run with its verdict`,[`evidence-runs`],`scroll`),l(`evidence-review`,`Review queue`,`Runs waiting for a person`,[`evidence-review`],`ticket`)]},{id:`governance`,label:`Governance`,about:`What the agents must do, and when a version may ship.`,items:[l(`evidence-contracts`,`Contracts`,`Each agent's contract`,[`evidence-contracts`],`file`,{words:`contracts governance`}),l(`evidence-releases`,`Releases`,`Release gates per version`,[`evidence-releases`],`history`),l(`cost`,`Cost`,`Spend by model, agent and run`,[`cost`],`coins`,{words:`cost spend tokens models price usage`}),l(`observability`,`Observability`,`ForgeQE's own sessions, runs, tools and problems`,[`observability`],`pulse`,{words:`observability telemetry opentelemetry otel health errors problems sessions monitoring dashboard`})]},{id:`improvement`,label:`Improvement`,about:`Make the agents better over time.`,items:[l(`evidence-learn`,`Learn`,`Causes, and fixes proven on replays`,[`evidence-learn`],`replay`),l(`evidence-monitor`,`Monitor`,`Baselines and trust`,[`evidence-monitor`],`pulse`)]}]}],d=u.flatMap(e=>e.areas.flatMap(t=>t.items.map(n=>({item:n,category:e,area:t})))),f=e=>n(...e.path),p=e=>d.find(t=>t.item.id===e)?.item.label??e,m=e=>e.items.filter(e=>e.path.length>0),h=e=>m(e).length>1,g=(e,t)=>t.length<=e.length&&t.every((t,n)=>e[n]===t);function _(e,t){return e.path.length?Math.max(...[e.path,...e.also||[]].map(e=>g(t,e)?e.length:0)):+!t.length}function v(e){let t,n=0;for(let r of d){let i=_(r.item,e);i>n&&([t,n]=[r,i])}return t}function y(e){return e[0]===`browse`&&e[1]===`agents`?n(`agents`):n()}var b=`forgeqe-pinned`,x=`forgeqe-pinned`;function S(e,t){try{let n=JSON.parse(e||`[]`);if(!Array.isArray(n))return[];let r=new Set(d.map(e=>e.item.id));return[...new Set(n.filter(e=>typeof e==`string`&&r.has(e)))].slice(0,t)}catch{return[]}}var C=e=>S(e,8),w=[`chats`],T=e=>e===null?[...w]:C(e);function E(){let e=()=>{try{return T(localStorage.getItem(b))}catch{return[...w]}},[t,n]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(x,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(x,t),window.removeEventListener(`storage`,t)}},[]),{pins:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e].slice(-8);n(r);try{localStorage.setItem(b,JSON.stringify(r)),window.dispatchEvent(new Event(x))}catch{}c(`pins`)}}}var D=`forgeqe-recent-pages`,O=`forgeqe-recent-pages`,k=e=>S(e,12);function A(e,t){let n=v(t);return!n||!n.item.path.length?e:[n.item.id,...e.filter(e=>e!==n.item.id)].slice(0,12)}function j(){try{return k(localStorage.getItem(D))}catch{return[]}}function M(e){let t=j(),n=A(t,e);if(n.join()!==t.join()){try{localStorage.setItem(D,JSON.stringify(n)),window.dispatchEvent(new Event(O))}catch{}c(`recents`)}}function N(e){if(!e.length)return;let t=v(e);if(t&&t.item.path.length)return _(t.item,e)<e.length?{href:f(t.item),label:t.item.label}:void 0}export{h as a,_ as c,m as d,E as f,s as h,y as i,M as l,c as m,u as n,f as o,a as p,N as r,v as s,d as t,p as u};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-BDur5s0O.js";import{F as n,I as r,f as i,h as a}from"./preload-helper-BupTYkQW.js";import{r as o,t as s}from"./utils-DJRAScIl.js";import{t as c}from"./jsx-runtime-LKYXHABd.js";import{j as l}from"./api-BsiuHmJq.js";import{$n as u,Ar as d,At as f,B as p,Bn as m,Bt as h,C as g,Cn as _,Ct as v,D as y,Dt as ee,Et as te,Fn as b,Fr as ne,Ft as re,G as x,Gt as S,In as C,It as w,J as T,Jn as E,Jt as D,K as O,Kn as k,Kt as A,Lr as j,Lt as M,Mr as N,Nn as P,O as F,Pn as I,Pr as L,Pt as R,Q as ie,Qt as z,Sr as ae,St as B,Tn as V,Tt as H,U,Ut as W,V as oe,Vn as se,W as ce,Wn as le,Wt as ue,Xn as de,Xt as fe,Y as pe,Zn as me,Zt as he,_n as ge,_r as _e,_t as ve,a as ye,b as be,bn as xe,cr as Se,ct as Ce,d as we,dn as Te,dt as Ee,en as De,er as Oe,et as ke,f as Ae,fn as je,ft as Me,g as Ne,gn as Pe,gr as Fe,hn as Ie,in as Le,ir as Re,jr as ze,jt as Be,l as Ve,ln as He,lt as Ue,m as We,mn as Ge,mr as Ke,n as qe,nr as Je,on as Ye,p as Xe,pr as Ze,pt as Qe,q as $e,qn as et,qt as tt,r as nt,rr as rt,rt as it,st as at,t as ot,tn as st,tr as ct,tt as lt,u as ut,ur as dt,v as ft,vr as pt,vt as mt,w as ht,wn as gt,x as _t,xt as vt,y as yt,yn as bt,zt as xt}from"./line-icons-CwCZidXs.js";import{r as St}from"./nav-B_68FVw_.js";var G=c(),Ct={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 wt({tone:e,as:t=`p`,className:n,children:r,id:i}){return(0,G.jsx)(t,{id:i,role:e===`fail`?`alert`:`status`,className:s(`m-0`,Ct[e],n),children:r})}var K=e(t(),1),Tt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Et=o,Dt=(e,t)=>n=>{if(t?.variants==null)return Et(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=Tt(t)||Tt(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 Et(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)},Ot=[];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&&Ot.push([t,e]);function kt({className:e}){let t=`dotm-${(0,K.useId)().replace(/[^\w-]/g,``)}`;return(0,G.jsx)(`span`,{"aria-hidden":`true`,"data-spinner":``,className:s(`inline-flex size-4 flex-none`,e),children:(0,G.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:`size-full`,fill:`currentColor`,children:[(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`clipPath`,{id:t,children:[(0,G.jsx)(`rect`,{className:`dotm-gate-y`,x:`0`,y:`0`,width:`16`,height:`3`}),(0,G.jsx)(`rect`,{className:`dotm-gate-x`,x:`0`,y:`0`,width:`3`,height:`16`})]})}),(0,G.jsx)(`g`,{opacity:`0.25`,children:Ot.map(([e,t])=>(0,G.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))}),(0,G.jsx)(`g`,{clipPath:`url(#${t})`,children:Ot.map(([e,t])=>(0,G.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))})]})})}var q=Dt(`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:s(r,`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`}}),At=new Set([`sm`,`inline`,`icon-xs`]);function jt({className:e,variant:t,size:n,type:r=`button`,disabled:i,onClick:a,busy:o,children:c,...l}){if(o)return(0,G.jsxs)(`button`,{type:r,disabled:!0,"aria-busy":`true`,className:s(q({variant:t,size:n}),`disabled:cursor-progress disabled:opacity-80 [&>svg]:hidden`,e),...l,children:[(0,G.jsx)(kt,{className:At.has(n??``)?`size-3.5`:`size-4`}),c]});let u=l[`data-tip`];return i&&r!==`submit`&&typeof u==`string`&&u.trim()?(0,G.jsx)(`button`,{type:r,"aria-disabled":`true`,className:s(q({variant:t,size:n}),`cursor-not-allowed opacity-50`,e),onClick:e=>{e.preventDefault(),e.stopPropagation()},...l,children:c}):(0,G.jsx)(`button`,{type:r,disabled:i,onClick:a,className:s(q({variant:t,size:n}),e),...l,children:c})}var Mt=new Map([[ot,`accessibility`],[qe,`history`],[nt,`web`],[Ve,`branch`],[Ae,`feature`],[Xe,`knowledge-base`],[We,`knowledge-base`],[Ne,`container`],[ft,`architecture`],[yt,`bug`],[be,`speed`],[_t,`history`],[g,`report`],[p,`stories`],[oe,`stories`],[U,`cloud`],[ce,`code`],[x,`code`],[O,`coins`],[$e,`columns`],[pe,`container`],[ie,`server`],[ke,`database`],[lt,`database`],[it,`download`],[at,`visual`],[Ce,`report`],[Ue,`report`],[Ee,`code`],[Me,`code`],[Qe,`file`],[ve,`table`],[mt,`stories`],[vt,`warning`],[B,`flask`],[v,`folder`],[H,`folder`],[te,`folder`],[ee,`folder`],[f,`visual`],[Be,`branch`],[R,`branch`],[re,`web`],[w,`feature`],[M,`wrench`],[xt,`pulse`],[h,`history`],[W,`screenshot`],[ue,`screenshot`],[S,`screenshot`],[A,`inbox`],[tt,`info`],[D,`key`],[fe,`desktop`],[he,`layers`],[z,`board`],[De,`info`],[st,`sparkle`],[Le,`stories`],[Ye,`layers`],[He,`key`],[Te,`mail`],[je,`web`],[Ge,`chat`],[Ie,`stories`],[Pe,`chat`],[ge,`mic`],[bt,`desktop`],[xe,`mobile`],[_,`network`],[gt,`replay`],[V,`palette`],[P,`coins`],[I,`replay`],[b,`plug`],[C,`plug`],[m,`replay`],[se,`rocket`],[le,`route`],[k,`visual`],[et,`scroll`],[de,`mail`],[me,`server`],[u,`feature`],[Oe,`shield`],[ct,`route`],[Je,`mobile`],[rt,`sparkle`],[Re,`sparkle`],[Se,`board`],[dt,`terminal`],[Ze,`table`],[Ke,`mobile`],[Fe,`terminal`],[_e,`ticket`],[pt,`history`],[ae,`warning`],[d,`coins`],[ze,`wand`],[N,`wand`],[L,`plug`],[ne,`network`],[j,`wrench`],[ut,`bell`],[we,`bell`],[T,`route`]]);function Nt({icon:e,size:t=16,className:n,label:r}){let o=Mt.get(e);if(o){let e=a(o);if(e)return(0,G.jsx)(i,{src:e,name:o,px:t+2,alt:r||``,className:n})}return(0,G.jsx)(e,{size:t,strokeWidth:1.8,"aria-hidden":!r||void 0,"aria-label":r,className:n})}var Pt={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`]},J=Math.PI*2,Ft=Math.PI*(3-Math.sqrt(5)),Y=e=>(1-Math.cos(Math.PI*e))/2,X=e=>{let t=Math.sin(e*127.1)*43758.5453;return t-Math.floor(t)},It=(e,t)=>(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2,Lt=(e,t,n)=>{let r=[],i=[],a=e[t];for(let o=0;o<e.length;o++){if(o===t)continue;let s=It(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},Rt={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},zt=new Map;function Bt(e,t,n){let r=zt.get(e);return r||zt.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 Vt=e=>1-Math.exp(-4.5*e)*Math.cos(3*Math.PI*e)-e*Math.exp(-4.5);function Ht(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*Vt((i-2200)/800);else{let e=(i-3e3)/200;s=2100*t-a+100*e*e*t}return r*(o-a)+s}function Ut(e,t){if(e===`retrying`)return Ht(2*t,J/9e3);if(e===`retrying-surge`){let e=t/3250,n=e-Math.floor(e);return(Math.floor(e)+(1-(1-n)**3))*J}return e===`using-scroll`?.4:e===`using-snap`?(Math.floor(t/_n)*vn+Math.min(t%_n,vn))/Rt[e]*J:t/Rt[e]*J}var Wt=(()=>{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)]})(),Gt=1.4,Kt=30*Math.PI/180,qt=Math.PI/2,Jt=1800,Yt=.4,Xt=.6;function Zt(e){let t=e*2.45+X(e)*1.5,n=(15+30*X(e+.5))*Math.PI/180;return[Math.sin(n)*Math.cos(t),Math.sin(n)*Math.sin(t),Math.cos(n)]}function Qt(e){let t=Math.floor(e/Jt),n=e/Jt-t,r=n<Yt?(1-Math.cos(n/Yt*Math.PI))/2:1,i=Zt(t),a=Zt(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 $t=.45,en=.5,tn=600,nn=e=>Zt(e+57),rn=(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)},an=(e,t)=>e<t?(1-(e/t)**2)**2:0,on=1400;function sn(e){let t=Math.floor(e/on),n=e/on-t;return{at:rn(nn(t),nn(t+1),n<.35?Y(n/.35):1),click:nn(n<.5?t:t+1),since:(n<.5?n+.5:n-.5)*on}}var cn=e=>e<60?e/60:Math.max(0,1-(e-60)/240)**2,ln=1,un=[[0,0],[0,16],[4,12],[7,18],[9,17],[6,11],[11,11]].map(([e,t])=>[e/18*ln,t/18*ln]);function dn(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 Z=[-.3,.5],fn=(e,t)=>[e,t,Math.sqrt(Math.max(0,1-e*e-t*t))],pn=e=>fn(Z[0]+.35*e[0],Z[1]+.35*e[1]),mn=1800;function hn(e,t){let n=e%mn/mn,r=n<.3?Y(n/.3):n<.6?1:n<.85?1-Y((n-.6)/.25):0,i=e=>fn(Z[0]+.3*e*Math.cos(t),Z[1]+.3*e*Math.sin(t));return{at:i(r),click:i(1),since:(n<.45?n+.55:n-.45)*mn}}var gn=2600,_n=2600,vn=2100;function yn(e){let t=e%_n-vn;return t<0?0:Math.exp(-t/220)}function bn(e){let t=e%_n;return t<120?1.2*(1-Y(t/120)):t<180?0:t<430?1.2*Y((t-180)/250):1.2}var xn=1200,Sn=e=>Math.abs(1-2*(e%xn/xn));function Cn(e){let t=e%gn/gn;return t<.25?Y(t/.25):t<.5?1:t<.75?1-Y((t-.5)/.25):0}var wn=1500,Tn=1.1;function En(e){let t=Math.floor(e/wn),n=Math.min(1,(e/wn-t)/.75);return{by:(t+1-(1-n)**3)*Tn,pace:(1-n)**2}}var Dn={right:0,"up-right":45,up:90,"up-left":135,left:180,"down-left":225,down:270,"down-right":315},On=[90,270,45,180,0,225].map(e=>e*Math.PI/180);function kn(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 An=(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]),Q=[`xxxx xxx xx`,`xxxxx xx xxxx`,`xxx xxxxx`],jn=.09,Mn=.3,Nn=.33,Pn=-.5,$=(()=>{let e=0;return Q.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*X(n*31+i),a}))})(),Fn=Q.map((e,t)=>$.flatMap((e,n)=>e.row===t?[n]:[])),In=$[$.length-1].at,Ln=In+1300;function Rn(e){let t=e%Ln,n=0;for(;n<$.length&&$[n].at<=t;)n++;let r=n?t-$[n-1].at:1/0,i=$[n]??{row:Q.length-1,col:Q[Q.length-1].length},a=r<300?1:+(Math.floor(t/450)%2==0);return{n,since:r,blink:a,caret:[Pn+i.col*jn,Nn-i.row*Mn],fade:t<In+900?1:Math.max(0,1-(t-In-900)/300)}}var zn=220,Bn=5,Vn=24,Hn=16,Un={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 Wn(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/(J*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*J-e));return s}).flat()}function Gn(e,t,n){return n?n.points(t,e):e===`background-spiral`?Wn(t):Array.from({length:t},(e,n)=>{let r=1-2*(n+.5)/t,i=Math.sqrt(1-r*r),a=n*Ft;return[i*Math.cos(a),r,i*Math.sin(a)]})}function Kn(e,{state:t,variant:n,size:r=20,speed:i=1,label:a,shape:o,render:s=Un,density:c=1,dotSize:l=1,tilt:u=20,direction:d}={}){let f=t===`base`?`idle`:t,p=f&&Object.hasOwn(Pt,f)?f:`idle`,m=n!=="default"&&Pt[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,ee=y*.8*(v?.scale??1),te=(r/64)**.6*(.72*Math.sqrt(4/g))*l,b=Gn(m,_,v),ne=s.mount({make:t=>e.appendChild(document.createElementNS(`http://www.w3.org/2000/svg`,t)),pts:b,size:r,radius:te}),re=!!s.flat,x=(m===`reasoning`||m===`reasoning-twins`)&&b.length>1,S=m===`compacting`||m===`compacting-fuse`,C=x?b.map((e,t)=>Lt(b,t,Vn)):[],w=Array.from({length:m===`reasoning-twins`?2:1},()=>[]),T=0,E={k:0,m:[1,0,0,0,1,0,0,0,1]},D=e=>{let t=Rt[m],n=Ut(m,e),i=m===`using-scroll`?En(e):null,a=d&&Dn[d],o=null;if(i&&a!==void 0)o=kn(a*Math.PI/180+Math.PI,i.by);else if(i){let t=Math.floor(e/wn);for(t<E.k&&(E={k:0,m:[1,0,0,0,1,0,0,0,1]});E.k<t;E.k++)E.m=An(kn(On[E.k%On.length],Tn),E.m);o=An(kn(On[t%On.length],i.by-t*Tn),E.m)}let s=m===`working-gyro`?e/5e3*J:null,c=((re?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),D=Math.cos(c),O=e=>b[e][1]*_+(-b[e][0]*h+b[e][2]*g)*D,k=new Map;if(x){let t=e/zn,n=Math.floor(t),r=t-n;if(!w[0].length){let e=[...b.keys()].reduce((e,t)=>O(t)>O(e)?t:e,0),t=t=>O(t)+It(b[t],b[e]);w.forEach((n,r)=>n.push(r?[...b.keys()].reduce((e,n)=>t(n)>t(e)?n:e,0):e))}for(T=Math.max(T,n-Hn);T<n;T++)w.forEach((e,t)=>{let n=e.slice(-8),r=e[e.length-1],i=-1,a=-1/0,o=m===`reasoning-twins`?w[1-t].at(-1):void 0;C[r].forEach((e,r)=>{let s=o===void 0?0:1.2*Math.min(Math.sqrt(It(b[e],b[o])),.8),c=O(e)+.35*X(T*31+r+t*977)+s;!n.includes(e)&&c>a&&(a=c,i=e)}),e.push(i<0?C[r][0]:i),e.length>Hn&&e.shift()});let i=(e,t)=>e!==void 0&&k.set(e,Math.max(k.get(e)??0,t));for(let e of w)for(let t=4;t>=0;t--)i(e[e.length-1-t],t===0?Y(Math.min(1,r*2)):1-(t-1+r)/Bn)}let A=e/2e3*J+n,j=J/2e3+J/t,M=e=>70*Math.PI/180*(1-2*(e%6e3/6e3)),N=Math.min(1,3*Math.sin(Math.PI*(e%6e3/6e3))),P=m===`searching`?Qt(e):null,F=m===`working-gyro`?.5*Math.sin(e/2600*J):m===`compacting-squeeze`?Math.sin(e/2600*J):0,I=null;if(S){let t=e%2800/2800,n=(t-.7)/.3,r=m===`compacting-fuse`?(1-n)**3:n<.45?1-1.25*Y(n/.45):n<.7?-.25*(1-(n-.45)/.25)**2:0;I={at:-1.15+2.3*Math.min(1,t/.7),hold:t<.7?1:r}}let L=null;m===`using-tap`&&(L=sn(e));let R=m===`using`;if(R){let t=a===void 0?sn(e):null;L=t?{...t,at:pn(t.at),click:pn(t.click)}:hn(e,(a??0)*Math.PI/180)}let ie=R&&L?1-.15*cn(L.since):1,z=m===`using-type`?Rn(e):null,ae=m===`using-zoom`?Cn(e):null,B=m===`using-snap`?yn(e):null,V=m===`idle-blink`?bn(e):null,H=m===`using-record`?Sn(e):null;b.forEach(([t,a,s],c)=>{let u=n+Gt*F*a,[d,v]=F?[Math.sin(u),Math.cos(u)]:[h,g],b=-t*d+s*v,S=t*v+s*d,C=a*D-b*_,w=b,T=S*_,E=a*_+b*D;o&&([S,C,E]=[0,3,6].map(e=>o[e]*S+o[e+1]*C+o[e+2]*E));let O=(E+1)/2,U=(.5+1.4*O)*te,W=Math.max(0,(O-.3)/.7);if(P){let e=Math.acos(Math.min(1,(S*P[0]+C*P[1]+E*P[2])/Math.hypot(S,C,E))),t=e<Xt?(1-(e/Xt)**2)**2:0;W*=1-.55*(1-t),r<=24&&(U*=1+.5*t),t&&(S*=1+.12*t,C*=1+.12*t,S+=(S-P[0])*.35*t,C+=(C-P[1])*.35*t,U*=1+.9*t,W+=(1-W)*t)}if(I){let e=S,t=Math.min(1,Math.max(0,(I.at-e)/.2))*I.hold,n=m===`compacting`?1.5:1;if(S*=1-.2*n*t,C*=1-.2*n*t,U*=1-.3*n*t,m===`compacting-fuse`){W*=1-.5*t;let n=Math.exp(-(((e-I.at)/.08)**2))*Math.max(0,I.hold)*Math.min(1,O/.5);U*=1+.8*n,W+=(1-W)*n}}if(m===`working`){let t=e%1700,n=1.3-2.6*Y(Math.min(1,t/1200)),r=re?C:S*Wt[0]+C*Wt[1]+E*Wt[2],i=t<1200?Math.exp(-(((r-n)/.2)**2)):0;U*=1+.6*i,W+=(1-W)*i;let a=Math.min(1,Math.max(0,(r-n)/.2))*(t<1200?1:1-Math.min(1,1.6*((t-1200)/800)));S*=1-.08*a,C*=1-.08*a,U*=1-.15*a}if(m===`searching-lighthouse`){W*=.5;let t=Math.sin(Kt),n=Math.cos(Kt),r=S*n-C*t,i=-_*(S*t+C*n)+D*E,a=((Math.atan2(r,i)-(e/2500%1*J-Math.PI)+Math.PI)%J+J)%J-Math.PI,o=(a<0?Math.max(0,1+a/qt):Math.exp(-((a/.45)**2)))*(.25+.75*Math.min(1,Math.max(0,(O-.4)/.3)));U*=1+.6*o,W+=(1-W)*o}if(x){let e=k.get(c)??0;W*=.5,e&&(U*=1+.8*e,W+=(1-W)*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-A),Math.cos(r-A)),o=i*Math.cos(n),c=Math.exp(-(((n-M(e+i/j))/.28)**2))*Math.exp(-((o/(i*j>0?.12:1))**2)),l=N*c**.6;W=W*.5+(1-W*.5)*l,U*=1+1.1*l}if(L){let e=Math.hypot(S,C,E)||1,t=t=>Math.acos(Math.min(1,Math.max(-1,(S*t[0]+C*t[1]+E*t[2])/e)));W*=R?.25:.5;let n=L.since,r=R?0:an(t(L.at),$t),i=t(L.click),a=cn(n),o=a*an(i,en),s=Math.min(1,n/tn),c=Math.exp(-(((i-(.15+1.3*(1-(1-s)**2)))/.18)**2))*(1-s)**2;if(S*=1-.14*o,C*=1-.14*o,U*=(1-.35*o)*(1+.7*Math.max(c,r*(1-a))),W+=(1-W)*Math.max(r,c),R&&dn(un,(S-L.at[0])/ie,(L.at[1]-C)/ie)){let e=Math.min(1,Math.max(0,(O-.5)/.2));U*=1+.15*e,W+=(1-W)*e}}if(z){W*=.25;let e=Math.round((Nn-C)/Mn),t=Math.floor((S-Pn)/jn),n=Fn[e]?.[t],r=0;n!==void 0&&n<z.n&&Q[e][t]===`x`&&Math.abs(Nn-e*Mn-C)<.085&&(r=.75+(n===z.n-1?.25*Math.exp(-z.since/120):0));let[i,a]=z.caret;Math.abs(C-a)<.1&&(r=Math.max(r,z.blink*Math.exp(-(((S-i)/.04)**2)))),W+=(1-W)*r*z.fade*Math.min(1,Math.max(0,(O-.5)/.2))}if(ae){let e=ae*Math.max(0,E);S*=1+.45*e,C*=1+.45*e,U*=1+.8*e,W*=Math.min(1,Math.max(0,(1.05-Math.hypot(S,C))/.1))}if(i&&(W*=.55+.45*i.pace),B!==null&&(W*=.55,U*=1+.25*B,W+=(1-W)*B),V!==null){let e=Math.exp(-(((Math.abs(C)-V)/.06)**2))*+(V<1.2);W*=Math.min(1,Math.max(0,(V-Math.abs(C))/.08)),U*=1+.4*e,W+=(1-W)*e*Math.min(1,Math.max(0,(O-.4)/.3))}H!==null&&(S*=.92+.08*H,C*=.92+.08*H,W*=.3+.7*H),l&&([S,C]=[S*p-C*f,S*f+C*p]),ne.dot(c,y+S*ee,y-C*ee,U,W,w,-T)}),ne.frame?.()},O=`${m}@${i}`;D(Bt(O,performance.now(),i));let k=matchMedia(`(prefers-reduced-motion: reduce)`).matches,A=!1,j=0,M=!1,N=new IntersectionObserver(e=>A=e[e.length-1].isIntersecting);N.observe(e);function P(e){A&&D(Bt(O,e,i)),j=requestAnimationFrame(P)}let F=()=>{cancelAnimationFrame(j),j=0},I=()=>{j||k||M||(j=requestAnimationFrame(P))};return I(),{pause:F,play:I,destroy(){M=!0,F(),N.disconnect(),e.replaceChildren()}}}function qn({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,K.useRef)(null),m=(0,K.useRef)(null);(0,K.useEffect)(()=>(m.current=Kn(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,K.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,G.jsx)(`svg`,{ref:p,width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:`currentColor`,className:f,...h})}var Jn={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 Yn({state:e=`working`,label:t,px:n=16,className:r}){return(0,G.jsx)(qn,{...Jn[e],size:n,label:t,className:s(`block flex-none text-ink`,r)})}async function Xn(e,t=l.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 Zn({icon:e,title:t,children:n,action:r,center:i=!1,className:a}){return(0,G.jsxs)(`div`,{role:`status`,className:s(`flex flex-col gap-2 py-6`,i?`items-center text-center`:`items-start`,a),children:[e&&(0,G.jsx)(Nt,{icon:e,size:22,className:`mb-1 text-muted`}),t&&(0,G.jsx)(`p`,{className:`m-0 text-body-lg font-medium text-ink`,children:t}),n&&(0,G.jsx)(`div`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:n}),r&&(0,G.jsx)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:r})]})}var Qn={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`},$n={pass:`bg-pass-dot`,fail:`bg-fail-dot`,warn:`bg-warn-dot`,neutral:`bg-muted`};function er({tone:e,children:t,className:n,icon:r=!0,orb:i=`working`}){let a=r&&e!==`running`?$n[e]:void 0,o=r&&e===`running`;return(0,G.jsxs)(`span`,{className:s(`inline-flex min-h-6 items-center gap-1 rounded-full px-2 text-label-sm whitespace-nowrap`,(a||o)&&`pl-2`,Qn[e],n),children:[o&&(0,G.jsx)(Yn,{state:i,px:16}),a&&(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`size-1.5 flex-none rounded-full`,a)}),t]})}function tr({id:e,label:t,value:r,onChange:i,placeholder:a,className:o}){return(0,G.jsxs)(`div`,{className:s(`relative min-w-0 w-full max-w-[320px] flex-[0_1_320px]`,o),children:[(0,G.jsx)(E,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-muted`}),(0,G.jsx)(`label`,{htmlFor:e,className:`sr-only`,children:t}),(0,G.jsx)(n,{size:`sm`,id:e,type:`search`,value:r,onChange:e=>i(e.target.value),placeholder:a??t,className:`pl-8`})]})}function nr({items:e,value:t,onChange:n}){return(0,G.jsx)(G.Fragment,{children:e.map(e=>(0,G.jsxs)(`button`,{type:`button`,"aria-pressed":t===e.id,"data-tip":e.tip,onClick:()=>n(e.id),className:s(q({size:`sm`}),`gap-1`),children:[e.icon&&(0,G.jsx)(Nt,{icon:e.icon,size:14}),e.label,e.n!==void 0&&(0,G.jsx)(`span`,{className:s(`tabular-nums`,e.alert&&e.n?`text-fail`:``),children:e.n})]},e.id))})}function rr({items:e,value:t,onChange:n,className:r}){return(0,G.jsx)(G.Fragment,{children:e.map(e=>{let i=t.includes(e.id);return(0,G.jsxs)(`button`,{type:`button`,"aria-pressed":i,"data-tip":e.title,onClick:()=>n(i?t.filter(t=>t!==e.id):[...t,e.id]),className:s(q({size:`sm`}),``,r),children:[i&&(0,G.jsx)(ht,{size:14,"aria-hidden":`true`}),e.label,e.note&&(0,G.jsx)(`span`,{className:s(`text-body-sm font-normal`,e.noteClass),children:e.note})]},e.id)})})}function ir({page:e,size:t,total:n,onPage:r,label:i,children:a}){let o=Math.max(1,Math.ceil(n/t));return(0,G.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,G.jsxs)(`span`,{className:`flex-1`,children:[n?`${e*t+1}–${Math.min(n,e*t+t)} of ${n}`:`None`,a]}),o>1&&(0,G.jsxs)(`nav`,{"aria-label":i,className:`flex items-center gap-1`,children:[(0,G.jsx)(jt,{size:`sm`,variant:`ghost`,disabled:e===0,onClick:()=>r(e-1),"aria-label":`Previous page`,"data-tip":`Previous page`,children:(0,G.jsx)(y,{"aria-hidden":`true`})}),(0,G.jsxs)(`span`,{className:`px-1 tabular-nums`,children:[`Page `,e+1,` of `,o]}),(0,G.jsx)(jt,{size:`sm`,variant:`ghost`,disabled:e>=o-1,onClick:()=>r(e+1),"aria-label":`Next page`,"data-tip":`Next page`,children:(0,G.jsx)(F,{"aria-hidden":`true`})})]})]})}var ar={accent:`text-icon`,soft:`text-accent-line`,pass:`text-pass`,fail:`text-fail`};function or(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 sr({series:e,label:t,axis:n,hover:r=-1,onHover:i,max:a,padded:o=!0,lead:c=0,className:l=`h-24`}){let u=(0,K.useId)().replace(/:/g,``),d=Math.max(1,...e.map(e=>e.values.length)),f=a??Math.max(Number.MIN_VALUE,...e.flatMap(e=>e.values)),p=e=>d>1?e/(d-1)*280:140,m=e=>o?92-Math.max(0,e)/(f||1)*80:96-Math.max(0,e)/(f||1)*96,h=e.map((e,t)=>{let n=e.values.map((e,t)=>[p(t),m(e)]);return{s:e,k:t,pts:n,line:or(n,o?92:96)}}),g=h[c]??h[0],_=e=>g&&g.pts[e]?g.pts[e]:null,v=(e,t)=>{let n=_(e);return n?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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,G.jsxs)(`div`,{role:`img`,"aria-label":t,className:`flex w-full min-w-0 flex-col gap-2`,children:[(0,G.jsxs)(`div`,{className:s(`relative w-full`,l,g?ar[g.s.tone??`accent`]:``),onMouseLeave:i?()=>i(-1):void 0,children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 280 96`,preserveAspectRatio:`none`,className:`block size-full overflow-visible`,"aria-hidden":`true`,children:[(0,G.jsx)(`defs`,{children:h.map(({k:e})=>(0,G.jsxs)(`linearGradient`,{id:`${u}-f${e}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:`0.28`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:`0`})]},e))}),h.map(({s:e,k:t,line:n})=>(0,G.jsxs)(`g`,{className:ar[e.tone??`accent`],children:[e.fill!==!1&&(0,G.jsx)(`path`,{d:`${n} L${p(e.values.length-1)} 96 L0 96 Z`,fill:`url(#${u}-f${t})`}),(0,G.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,G.jsx)(`div`,{className:`absolute inset-0 flex`,"aria-hidden":`true`,children:Array.from({length:d},(e,t)=>(0,G.jsx)(`span`,{className:s(`h-full flex-1`,r===t&&`bg-current/5`),onMouseEnter:()=>i(t)},t))})]}),n&&n.length>0&&(0,G.jsx)(`div`,{className:`flex justify-between text-body-sm text-muted tabular-nums`,"aria-hidden":`true`,children:n.map((e,t)=>(0,G.jsx)(`span`,{children:e},t))})]})}function cr({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),c=r===`fail`?`bg-fail text-bg`:r===`pass`?`bg-pass text-bg`:n?`bg-accent text-white`:`bg-accent-line`;return(0,G.jsxs)(`span`,{"aria-hidden":`true`,className:s(`flex h-5 min-w-0 items-center gap-2 rounded-md bg-surface-strong`,i),children:[(0,G.jsx)(`span`,{className:s(`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`,c),style:{width:a>0?`${Math.max(2,a)}%`:`0`},children:o?t:null}),!o&&(0,G.jsx)(`span`,{className:`text-label-sm whitespace-nowrap text-ink-2 tabular-nums`,children:t})]})}function lr({rows:e,label:t,more:n}){return(0,G.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,G.jsxs)(`li`,{className:s(`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,G.jsx)(`span`,{"data-tip":e.label,className:`min-w-0 truncate text-body-sm text-ink-2`,children:e.label}),(0,G.jsxs)(`span`,{className:`row-span-2 flex flex-col items-end gap-1`,children:[(0,G.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,G.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,G.jsx)(`span`,{className:`text-headline-sm font-medium text-ink tabular-nums`,children:e.value}),e.sub?(0,G.jsx)(`span`,{className:`truncate text-label-sm text-muted tabular-nums`,children:e.sub}):null]})]},e.key)),n?(0,G.jsx)(`li`,{className:`border-t border-line px-4 py-2 text-body-sm text-muted`,children:n}):null]})}function ur({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)),c=e=>`${Math.min(100,e/o*100).toFixed(2)}%`,l=a>=1?`over`:a>=n?`near`:`fine`,u={width:c(Math.max(.01,a))};return l===`over`&&(u.backgroundImage=`linear-gradient(90deg, var(--color-accent), var(--color-fail))`),(0,G.jsxs)(`span`,{className:s(`flex min-w-0 items-center gap-2`,i),children:[(0,G.jsxs)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`${r}: ${Math.round(a*100)} percent of the limit, ${l===`over`?`over`:l===`near`?`near the limit`:`fine`}`,className:`relative block h-2 min-w-0 flex-1 rounded-full bg-surface-strong`,children:[(0,G.jsx)(`span`,{className:s(`absolute inset-y-0 left-0 rounded-full transition-[width] duration-200 ease-out`,l===`near`?`bg-warn`:`bg-accent`),style:u}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-px bg-warn`,style:{left:c(n)}}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-0.5 bg-fail`,style:{left:c(1)}})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`text-label-sm whitespace-nowrap`,l===`over`?`text-fail`:l===`near`?`text-warn`:`text-muted`),children:l===`over`?`over`:l===`near`?`near the limit`:`fine`})]})}function dr({parts:e,label:t,className:n}){let r=e.reduce((e,t)=>e+Math.max(0,t.value),0);return(0,G.jsx)(`span`,{role:`img`,"aria-label":t,className:s(`flex h-6 w-full min-w-0 gap-1`,n),children:e.filter(e=>e.value>0).map(e=>(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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`},pr={pass:`var(--color-pass)`,fail:`var(--color-fail)`,warn:`var(--color-warn)`,muted:`var(--color-line-strong)`};function mr({runs:e,label:t,className:n}){return(0,G.jsx)(`span`,{role:`img`,"aria-label":t,className:s(`inline-flex flex-none items-center gap-1`,n),children:e.map((t,n)=>{let r=n===e.length-1;return(0,G.jsx)(`span`,{"data-tip":t.title,"aria-hidden":`true`,className:s(`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 ${pr[t.tone]}`}:void 0},n)})})}function hr({share:e,marks:t,className:n,fill:r}){return(0,G.jsxs)(`span`,{"aria-hidden":`true`,className:s(`relative block h-2 rounded-full bg-surface-strong`,n),children:[(0,G.jsx)(`span`,{className:s(`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,G.jsx)(`span`,{className:`absolute -inset-y-1 w-px bg-muted`,style:{left:`${e*100}%`}},e))]})}function gr({value:e,label:t,size:n=`sm`,className:r}){let i=n===`lg`?104:56,a=n===`lg`?8:5,o=(i-a)/2,c=2*Math.PI*o,l=e===null?0:Math.max(0,Math.min(100,e))/100,u=e===null?`text-muted`:`text-accent`;return(0,G.jsxs)(`figure`,{role:`img`,"aria-label":`${t}: ${e===null?`not scored`:`${Math.round(e)} out of 100`}`,className:s(`m-0 flex flex-col items-center gap-2`,r),children:[(0,G.jsxs)(`span`,{className:`relative inline-flex`,style:{width:i,height:i},children:[(0,G.jsxs)(`svg`,{"aria-hidden":`true`,width:i,height:i,viewBox:`0 0 ${i} ${i}`,className:`-rotate-90`,children:[(0,G.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,className:`text-surface-strong`}),(0,G.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,strokeLinecap:`round`,strokeDasharray:c,strokeDashoffset:c*(1-l),className:s(`transition-[stroke-dashoffset] duration-200 ease-out`,u)})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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,G.jsx)(`figcaption`,{"aria-hidden":`true`,className:`text-center text-body-sm text-muted`,children:t})]})}var _r={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,yr=/\b(?:error|errors|fatal|exception|traceback|failed|failure|failing|panic|critical)\b|\bERR!|\b[A-Z]\w*(?:Error|Exception):|[✗✘❌]/i,br=/\b(?:warn|warning|warnings|deprecated|deprecation)\b|⚠/i;function xr(e){let t=e.replace(vr,``);return yr.test(t)?`error`:br.test(t)?`warn`:null}function Sr({text:e}){let t=e.split(`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-BDur5s0O.js";import{F as n,I as r,f as i,h as a}from"./preload-helper-BupTYkQW.js";import{r as o,t as s}from"./utils-DJRAScIl.js";import{t as c}from"./jsx-runtime-LKYXHABd.js";import{j as l}from"./api-BUoHbp5V.js";import{$n as u,Ar as d,At as f,B as p,Bn as m,Bt as h,C as g,Cn as _,Ct as v,D as y,Dt as ee,Et as te,Fn as b,Fr as ne,Ft as re,G as x,Gt as S,In as C,It as w,J as T,Jn as E,Jt as D,K as O,Kn as k,Kt as A,Lr as j,Lt as M,Mr as N,Nn as P,O as F,Pn as I,Pr as L,Pt as R,Q as ie,Qt as z,Sr as ae,St as B,Tn as V,Tt as H,U,Ut as W,V as oe,Vn as se,W as ce,Wn as le,Wt as ue,Xn as de,Xt as fe,Y as pe,Zn as me,Zt as he,_n as ge,_r as _e,_t as ve,a as ye,b as be,bn as xe,cr as Se,ct as Ce,d as we,dn as Te,dt as Ee,en as De,er as Oe,et as ke,f as Ae,fn as je,ft as Me,g as Ne,gn as Pe,gr as Fe,hn as Ie,in as Le,ir as Re,jr as ze,jt as Be,l as Ve,ln as He,lt as Ue,m as We,mn as Ge,mr as Ke,n as qe,nr as Je,on as Ye,p as Xe,pr as Ze,pt as Qe,q as $e,qn as et,qt as tt,r as nt,rr as rt,rt as it,st as at,t as ot,tn as st,tr as ct,tt as lt,u as ut,ur as dt,v as ft,vr as pt,vt as mt,w as ht,wn as gt,x as _t,xt as vt,y as yt,yn as bt,zt as xt}from"./line-icons-CwCZidXs.js";import{r as St}from"./nav-DE7YMNUI.js";var G=c(),Ct={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 wt({tone:e,as:t=`p`,className:n,children:r,id:i}){return(0,G.jsx)(t,{id:i,role:e===`fail`?`alert`:`status`,className:s(`m-0`,Ct[e],n),children:r})}var K=e(t(),1),Tt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Et=o,Dt=(e,t)=>n=>{if(t?.variants==null)return Et(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=Tt(t)||Tt(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 Et(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)},Ot=[];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&&Ot.push([t,e]);function kt({className:e}){let t=`dotm-${(0,K.useId)().replace(/[^\w-]/g,``)}`;return(0,G.jsx)(`span`,{"aria-hidden":`true`,"data-spinner":``,className:s(`inline-flex size-4 flex-none`,e),children:(0,G.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:`size-full`,fill:`currentColor`,children:[(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`clipPath`,{id:t,children:[(0,G.jsx)(`rect`,{className:`dotm-gate-y`,x:`0`,y:`0`,width:`16`,height:`3`}),(0,G.jsx)(`rect`,{className:`dotm-gate-x`,x:`0`,y:`0`,width:`3`,height:`16`})]})}),(0,G.jsx)(`g`,{opacity:`0.25`,children:Ot.map(([e,t])=>(0,G.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))}),(0,G.jsx)(`g`,{clipPath:`url(#${t})`,children:Ot.map(([e,t])=>(0,G.jsx)(`circle`,{cx:e,cy:t,r:`1.2`},`${e}-${t}`))})]})})}var q=Dt(`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:s(r,`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`}}),At=new Set([`sm`,`inline`,`icon-xs`]);function jt({className:e,variant:t,size:n,type:r=`button`,disabled:i,onClick:a,busy:o,children:c,...l}){if(o)return(0,G.jsxs)(`button`,{type:r,disabled:!0,"aria-busy":`true`,className:s(q({variant:t,size:n}),`disabled:cursor-progress disabled:opacity-80 [&>svg]:hidden`,e),...l,children:[(0,G.jsx)(kt,{className:At.has(n??``)?`size-3.5`:`size-4`}),c]});let u=l[`data-tip`];return i&&r!==`submit`&&typeof u==`string`&&u.trim()?(0,G.jsx)(`button`,{type:r,"aria-disabled":`true`,className:s(q({variant:t,size:n}),`cursor-not-allowed opacity-50`,e),onClick:e=>{e.preventDefault(),e.stopPropagation()},...l,children:c}):(0,G.jsx)(`button`,{type:r,disabled:i,onClick:a,className:s(q({variant:t,size:n}),e),...l,children:c})}var Mt=new Map([[ot,`accessibility`],[qe,`history`],[nt,`web`],[Ve,`branch`],[Ae,`feature`],[Xe,`knowledge-base`],[We,`knowledge-base`],[Ne,`container`],[ft,`architecture`],[yt,`bug`],[be,`speed`],[_t,`history`],[g,`report`],[p,`stories`],[oe,`stories`],[U,`cloud`],[ce,`code`],[x,`code`],[O,`coins`],[$e,`columns`],[pe,`container`],[ie,`server`],[ke,`database`],[lt,`database`],[it,`download`],[at,`visual`],[Ce,`report`],[Ue,`report`],[Ee,`code`],[Me,`code`],[Qe,`file`],[ve,`table`],[mt,`stories`],[vt,`warning`],[B,`flask`],[v,`folder`],[H,`folder`],[te,`folder`],[ee,`folder`],[f,`visual`],[Be,`branch`],[R,`branch`],[re,`web`],[w,`feature`],[M,`wrench`],[xt,`pulse`],[h,`history`],[W,`screenshot`],[ue,`screenshot`],[S,`screenshot`],[A,`inbox`],[tt,`info`],[D,`key`],[fe,`desktop`],[he,`layers`],[z,`board`],[De,`info`],[st,`sparkle`],[Le,`stories`],[Ye,`layers`],[He,`key`],[Te,`mail`],[je,`web`],[Ge,`chat`],[Ie,`stories`],[Pe,`chat`],[ge,`mic`],[bt,`desktop`],[xe,`mobile`],[_,`network`],[gt,`replay`],[V,`palette`],[P,`coins`],[I,`replay`],[b,`plug`],[C,`plug`],[m,`replay`],[se,`rocket`],[le,`route`],[k,`visual`],[et,`scroll`],[de,`mail`],[me,`server`],[u,`feature`],[Oe,`shield`],[ct,`route`],[Je,`mobile`],[rt,`sparkle`],[Re,`sparkle`],[Se,`board`],[dt,`terminal`],[Ze,`table`],[Ke,`mobile`],[Fe,`terminal`],[_e,`ticket`],[pt,`history`],[ae,`warning`],[d,`coins`],[ze,`wand`],[N,`wand`],[L,`plug`],[ne,`network`],[j,`wrench`],[ut,`bell`],[we,`bell`],[T,`route`]]);function Nt({icon:e,size:t=16,className:n,label:r}){let o=Mt.get(e);if(o){let e=a(o);if(e)return(0,G.jsx)(i,{src:e,name:o,px:t+2,alt:r||``,className:n})}return(0,G.jsx)(e,{size:t,strokeWidth:1.8,"aria-hidden":!r||void 0,"aria-label":r,className:n})}var Pt={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`]},J=Math.PI*2,Ft=Math.PI*(3-Math.sqrt(5)),Y=e=>(1-Math.cos(Math.PI*e))/2,X=e=>{let t=Math.sin(e*127.1)*43758.5453;return t-Math.floor(t)},It=(e,t)=>(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2,Lt=(e,t,n)=>{let r=[],i=[],a=e[t];for(let o=0;o<e.length;o++){if(o===t)continue;let s=It(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},Rt={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},zt=new Map;function Bt(e,t,n){let r=zt.get(e);return r||zt.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 Vt=e=>1-Math.exp(-4.5*e)*Math.cos(3*Math.PI*e)-e*Math.exp(-4.5);function Ht(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*Vt((i-2200)/800);else{let e=(i-3e3)/200;s=2100*t-a+100*e*e*t}return r*(o-a)+s}function Ut(e,t){if(e===`retrying`)return Ht(2*t,J/9e3);if(e===`retrying-surge`){let e=t/3250,n=e-Math.floor(e);return(Math.floor(e)+(1-(1-n)**3))*J}return e===`using-scroll`?.4:e===`using-snap`?(Math.floor(t/_n)*vn+Math.min(t%_n,vn))/Rt[e]*J:t/Rt[e]*J}var Wt=(()=>{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)]})(),Gt=1.4,Kt=30*Math.PI/180,qt=Math.PI/2,Jt=1800,Yt=.4,Xt=.6;function Zt(e){let t=e*2.45+X(e)*1.5,n=(15+30*X(e+.5))*Math.PI/180;return[Math.sin(n)*Math.cos(t),Math.sin(n)*Math.sin(t),Math.cos(n)]}function Qt(e){let t=Math.floor(e/Jt),n=e/Jt-t,r=n<Yt?(1-Math.cos(n/Yt*Math.PI))/2:1,i=Zt(t),a=Zt(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 $t=.45,en=.5,tn=600,nn=e=>Zt(e+57),rn=(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)},an=(e,t)=>e<t?(1-(e/t)**2)**2:0,on=1400;function sn(e){let t=Math.floor(e/on),n=e/on-t;return{at:rn(nn(t),nn(t+1),n<.35?Y(n/.35):1),click:nn(n<.5?t:t+1),since:(n<.5?n+.5:n-.5)*on}}var cn=e=>e<60?e/60:Math.max(0,1-(e-60)/240)**2,ln=1,un=[[0,0],[0,16],[4,12],[7,18],[9,17],[6,11],[11,11]].map(([e,t])=>[e/18*ln,t/18*ln]);function dn(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 Z=[-.3,.5],fn=(e,t)=>[e,t,Math.sqrt(Math.max(0,1-e*e-t*t))],pn=e=>fn(Z[0]+.35*e[0],Z[1]+.35*e[1]),mn=1800;function hn(e,t){let n=e%mn/mn,r=n<.3?Y(n/.3):n<.6?1:n<.85?1-Y((n-.6)/.25):0,i=e=>fn(Z[0]+.3*e*Math.cos(t),Z[1]+.3*e*Math.sin(t));return{at:i(r),click:i(1),since:(n<.45?n+.55:n-.45)*mn}}var gn=2600,_n=2600,vn=2100;function yn(e){let t=e%_n-vn;return t<0?0:Math.exp(-t/220)}function bn(e){let t=e%_n;return t<120?1.2*(1-Y(t/120)):t<180?0:t<430?1.2*Y((t-180)/250):1.2}var xn=1200,Sn=e=>Math.abs(1-2*(e%xn/xn));function Cn(e){let t=e%gn/gn;return t<.25?Y(t/.25):t<.5?1:t<.75?1-Y((t-.5)/.25):0}var wn=1500,Tn=1.1;function En(e){let t=Math.floor(e/wn),n=Math.min(1,(e/wn-t)/.75);return{by:(t+1-(1-n)**3)*Tn,pace:(1-n)**2}}var Dn={right:0,"up-right":45,up:90,"up-left":135,left:180,"down-left":225,down:270,"down-right":315},On=[90,270,45,180,0,225].map(e=>e*Math.PI/180);function kn(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 An=(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]),Q=[`xxxx xxx xx`,`xxxxx xx xxxx`,`xxx xxxxx`],jn=.09,Mn=.3,Nn=.33,Pn=-.5,$=(()=>{let e=0;return Q.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*X(n*31+i),a}))})(),Fn=Q.map((e,t)=>$.flatMap((e,n)=>e.row===t?[n]:[])),In=$[$.length-1].at,Ln=In+1300;function Rn(e){let t=e%Ln,n=0;for(;n<$.length&&$[n].at<=t;)n++;let r=n?t-$[n-1].at:1/0,i=$[n]??{row:Q.length-1,col:Q[Q.length-1].length},a=r<300?1:+(Math.floor(t/450)%2==0);return{n,since:r,blink:a,caret:[Pn+i.col*jn,Nn-i.row*Mn],fade:t<In+900?1:Math.max(0,1-(t-In-900)/300)}}var zn=220,Bn=5,Vn=24,Hn=16,Un={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 Wn(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/(J*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*J-e));return s}).flat()}function Gn(e,t,n){return n?n.points(t,e):e===`background-spiral`?Wn(t):Array.from({length:t},(e,n)=>{let r=1-2*(n+.5)/t,i=Math.sqrt(1-r*r),a=n*Ft;return[i*Math.cos(a),r,i*Math.sin(a)]})}function Kn(e,{state:t,variant:n,size:r=20,speed:i=1,label:a,shape:o,render:s=Un,density:c=1,dotSize:l=1,tilt:u=20,direction:d}={}){let f=t===`base`?`idle`:t,p=f&&Object.hasOwn(Pt,f)?f:`idle`,m=n!=="default"&&Pt[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,ee=y*.8*(v?.scale??1),te=(r/64)**.6*(.72*Math.sqrt(4/g))*l,b=Gn(m,_,v),ne=s.mount({make:t=>e.appendChild(document.createElementNS(`http://www.w3.org/2000/svg`,t)),pts:b,size:r,radius:te}),re=!!s.flat,x=(m===`reasoning`||m===`reasoning-twins`)&&b.length>1,S=m===`compacting`||m===`compacting-fuse`,C=x?b.map((e,t)=>Lt(b,t,Vn)):[],w=Array.from({length:m===`reasoning-twins`?2:1},()=>[]),T=0,E={k:0,m:[1,0,0,0,1,0,0,0,1]},D=e=>{let t=Rt[m],n=Ut(m,e),i=m===`using-scroll`?En(e):null,a=d&&Dn[d],o=null;if(i&&a!==void 0)o=kn(a*Math.PI/180+Math.PI,i.by);else if(i){let t=Math.floor(e/wn);for(t<E.k&&(E={k:0,m:[1,0,0,0,1,0,0,0,1]});E.k<t;E.k++)E.m=An(kn(On[E.k%On.length],Tn),E.m);o=An(kn(On[t%On.length],i.by-t*Tn),E.m)}let s=m===`working-gyro`?e/5e3*J:null,c=((re?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),D=Math.cos(c),O=e=>b[e][1]*_+(-b[e][0]*h+b[e][2]*g)*D,k=new Map;if(x){let t=e/zn,n=Math.floor(t),r=t-n;if(!w[0].length){let e=[...b.keys()].reduce((e,t)=>O(t)>O(e)?t:e,0),t=t=>O(t)+It(b[t],b[e]);w.forEach((n,r)=>n.push(r?[...b.keys()].reduce((e,n)=>t(n)>t(e)?n:e,0):e))}for(T=Math.max(T,n-Hn);T<n;T++)w.forEach((e,t)=>{let n=e.slice(-8),r=e[e.length-1],i=-1,a=-1/0,o=m===`reasoning-twins`?w[1-t].at(-1):void 0;C[r].forEach((e,r)=>{let s=o===void 0?0:1.2*Math.min(Math.sqrt(It(b[e],b[o])),.8),c=O(e)+.35*X(T*31+r+t*977)+s;!n.includes(e)&&c>a&&(a=c,i=e)}),e.push(i<0?C[r][0]:i),e.length>Hn&&e.shift()});let i=(e,t)=>e!==void 0&&k.set(e,Math.max(k.get(e)??0,t));for(let e of w)for(let t=4;t>=0;t--)i(e[e.length-1-t],t===0?Y(Math.min(1,r*2)):1-(t-1+r)/Bn)}let A=e/2e3*J+n,j=J/2e3+J/t,M=e=>70*Math.PI/180*(1-2*(e%6e3/6e3)),N=Math.min(1,3*Math.sin(Math.PI*(e%6e3/6e3))),P=m===`searching`?Qt(e):null,F=m===`working-gyro`?.5*Math.sin(e/2600*J):m===`compacting-squeeze`?Math.sin(e/2600*J):0,I=null;if(S){let t=e%2800/2800,n=(t-.7)/.3,r=m===`compacting-fuse`?(1-n)**3:n<.45?1-1.25*Y(n/.45):n<.7?-.25*(1-(n-.45)/.25)**2:0;I={at:-1.15+2.3*Math.min(1,t/.7),hold:t<.7?1:r}}let L=null;m===`using-tap`&&(L=sn(e));let R=m===`using`;if(R){let t=a===void 0?sn(e):null;L=t?{...t,at:pn(t.at),click:pn(t.click)}:hn(e,(a??0)*Math.PI/180)}let ie=R&&L?1-.15*cn(L.since):1,z=m===`using-type`?Rn(e):null,ae=m===`using-zoom`?Cn(e):null,B=m===`using-snap`?yn(e):null,V=m===`idle-blink`?bn(e):null,H=m===`using-record`?Sn(e):null;b.forEach(([t,a,s],c)=>{let u=n+Gt*F*a,[d,v]=F?[Math.sin(u),Math.cos(u)]:[h,g],b=-t*d+s*v,S=t*v+s*d,C=a*D-b*_,w=b,T=S*_,E=a*_+b*D;o&&([S,C,E]=[0,3,6].map(e=>o[e]*S+o[e+1]*C+o[e+2]*E));let O=(E+1)/2,U=(.5+1.4*O)*te,W=Math.max(0,(O-.3)/.7);if(P){let e=Math.acos(Math.min(1,(S*P[0]+C*P[1]+E*P[2])/Math.hypot(S,C,E))),t=e<Xt?(1-(e/Xt)**2)**2:0;W*=1-.55*(1-t),r<=24&&(U*=1+.5*t),t&&(S*=1+.12*t,C*=1+.12*t,S+=(S-P[0])*.35*t,C+=(C-P[1])*.35*t,U*=1+.9*t,W+=(1-W)*t)}if(I){let e=S,t=Math.min(1,Math.max(0,(I.at-e)/.2))*I.hold,n=m===`compacting`?1.5:1;if(S*=1-.2*n*t,C*=1-.2*n*t,U*=1-.3*n*t,m===`compacting-fuse`){W*=1-.5*t;let n=Math.exp(-(((e-I.at)/.08)**2))*Math.max(0,I.hold)*Math.min(1,O/.5);U*=1+.8*n,W+=(1-W)*n}}if(m===`working`){let t=e%1700,n=1.3-2.6*Y(Math.min(1,t/1200)),r=re?C:S*Wt[0]+C*Wt[1]+E*Wt[2],i=t<1200?Math.exp(-(((r-n)/.2)**2)):0;U*=1+.6*i,W+=(1-W)*i;let a=Math.min(1,Math.max(0,(r-n)/.2))*(t<1200?1:1-Math.min(1,1.6*((t-1200)/800)));S*=1-.08*a,C*=1-.08*a,U*=1-.15*a}if(m===`searching-lighthouse`){W*=.5;let t=Math.sin(Kt),n=Math.cos(Kt),r=S*n-C*t,i=-_*(S*t+C*n)+D*E,a=((Math.atan2(r,i)-(e/2500%1*J-Math.PI)+Math.PI)%J+J)%J-Math.PI,o=(a<0?Math.max(0,1+a/qt):Math.exp(-((a/.45)**2)))*(.25+.75*Math.min(1,Math.max(0,(O-.4)/.3)));U*=1+.6*o,W+=(1-W)*o}if(x){let e=k.get(c)??0;W*=.5,e&&(U*=1+.8*e,W+=(1-W)*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-A),Math.cos(r-A)),o=i*Math.cos(n),c=Math.exp(-(((n-M(e+i/j))/.28)**2))*Math.exp(-((o/(i*j>0?.12:1))**2)),l=N*c**.6;W=W*.5+(1-W*.5)*l,U*=1+1.1*l}if(L){let e=Math.hypot(S,C,E)||1,t=t=>Math.acos(Math.min(1,Math.max(-1,(S*t[0]+C*t[1]+E*t[2])/e)));W*=R?.25:.5;let n=L.since,r=R?0:an(t(L.at),$t),i=t(L.click),a=cn(n),o=a*an(i,en),s=Math.min(1,n/tn),c=Math.exp(-(((i-(.15+1.3*(1-(1-s)**2)))/.18)**2))*(1-s)**2;if(S*=1-.14*o,C*=1-.14*o,U*=(1-.35*o)*(1+.7*Math.max(c,r*(1-a))),W+=(1-W)*Math.max(r,c),R&&dn(un,(S-L.at[0])/ie,(L.at[1]-C)/ie)){let e=Math.min(1,Math.max(0,(O-.5)/.2));U*=1+.15*e,W+=(1-W)*e}}if(z){W*=.25;let e=Math.round((Nn-C)/Mn),t=Math.floor((S-Pn)/jn),n=Fn[e]?.[t],r=0;n!==void 0&&n<z.n&&Q[e][t]===`x`&&Math.abs(Nn-e*Mn-C)<.085&&(r=.75+(n===z.n-1?.25*Math.exp(-z.since/120):0));let[i,a]=z.caret;Math.abs(C-a)<.1&&(r=Math.max(r,z.blink*Math.exp(-(((S-i)/.04)**2)))),W+=(1-W)*r*z.fade*Math.min(1,Math.max(0,(O-.5)/.2))}if(ae){let e=ae*Math.max(0,E);S*=1+.45*e,C*=1+.45*e,U*=1+.8*e,W*=Math.min(1,Math.max(0,(1.05-Math.hypot(S,C))/.1))}if(i&&(W*=.55+.45*i.pace),B!==null&&(W*=.55,U*=1+.25*B,W+=(1-W)*B),V!==null){let e=Math.exp(-(((Math.abs(C)-V)/.06)**2))*+(V<1.2);W*=Math.min(1,Math.max(0,(V-Math.abs(C))/.08)),U*=1+.4*e,W+=(1-W)*e*Math.min(1,Math.max(0,(O-.4)/.3))}H!==null&&(S*=.92+.08*H,C*=.92+.08*H,W*=.3+.7*H),l&&([S,C]=[S*p-C*f,S*f+C*p]),ne.dot(c,y+S*ee,y-C*ee,U,W,w,-T)}),ne.frame?.()},O=`${m}@${i}`;D(Bt(O,performance.now(),i));let k=matchMedia(`(prefers-reduced-motion: reduce)`).matches,A=!1,j=0,M=!1,N=new IntersectionObserver(e=>A=e[e.length-1].isIntersecting);N.observe(e);function P(e){A&&D(Bt(O,e,i)),j=requestAnimationFrame(P)}let F=()=>{cancelAnimationFrame(j),j=0},I=()=>{j||k||M||(j=requestAnimationFrame(P))};return I(),{pause:F,play:I,destroy(){M=!0,F(),N.disconnect(),e.replaceChildren()}}}function qn({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,K.useRef)(null),m=(0,K.useRef)(null);(0,K.useEffect)(()=>(m.current=Kn(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,K.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,G.jsx)(`svg`,{ref:p,width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:`currentColor`,className:f,...h})}var Jn={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 Yn({state:e=`working`,label:t,px:n=16,className:r}){return(0,G.jsx)(qn,{...Jn[e],size:n,label:t,className:s(`block flex-none text-ink`,r)})}async function Xn(e,t=l.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 Zn({icon:e,title:t,children:n,action:r,center:i=!1,className:a}){return(0,G.jsxs)(`div`,{role:`status`,className:s(`flex flex-col gap-2 py-6`,i?`items-center text-center`:`items-start`,a),children:[e&&(0,G.jsx)(Nt,{icon:e,size:22,className:`mb-1 text-muted`}),t&&(0,G.jsx)(`p`,{className:`m-0 text-body-lg font-medium text-ink`,children:t}),n&&(0,G.jsx)(`div`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:n}),r&&(0,G.jsx)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:r})]})}var Qn={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`},$n={pass:`bg-pass-dot`,fail:`bg-fail-dot`,warn:`bg-warn-dot`,neutral:`bg-muted`};function er({tone:e,children:t,className:n,icon:r=!0,orb:i=`working`}){let a=r&&e!==`running`?$n[e]:void 0,o=r&&e===`running`;return(0,G.jsxs)(`span`,{className:s(`inline-flex min-h-6 items-center gap-1 rounded-full px-2 text-label-sm whitespace-nowrap`,(a||o)&&`pl-2`,Qn[e],n),children:[o&&(0,G.jsx)(Yn,{state:i,px:16}),a&&(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`size-1.5 flex-none rounded-full`,a)}),t]})}function tr({id:e,label:t,value:r,onChange:i,placeholder:a,className:o}){return(0,G.jsxs)(`div`,{className:s(`relative min-w-0 w-full max-w-[320px] flex-[0_1_320px]`,o),children:[(0,G.jsx)(E,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-muted`}),(0,G.jsx)(`label`,{htmlFor:e,className:`sr-only`,children:t}),(0,G.jsx)(n,{size:`sm`,id:e,type:`search`,value:r,onChange:e=>i(e.target.value),placeholder:a??t,className:`pl-8`})]})}function nr({items:e,value:t,onChange:n}){return(0,G.jsx)(G.Fragment,{children:e.map(e=>(0,G.jsxs)(`button`,{type:`button`,"aria-pressed":t===e.id,"data-tip":e.tip,onClick:()=>n(e.id),className:s(q({size:`sm`}),`gap-1`),children:[e.icon&&(0,G.jsx)(Nt,{icon:e.icon,size:14}),e.label,e.n!==void 0&&(0,G.jsx)(`span`,{className:s(`tabular-nums`,e.alert&&e.n?`text-fail`:``),children:e.n})]},e.id))})}function rr({items:e,value:t,onChange:n,className:r}){return(0,G.jsx)(G.Fragment,{children:e.map(e=>{let i=t.includes(e.id);return(0,G.jsxs)(`button`,{type:`button`,"aria-pressed":i,"data-tip":e.title,onClick:()=>n(i?t.filter(t=>t!==e.id):[...t,e.id]),className:s(q({size:`sm`}),``,r),children:[i&&(0,G.jsx)(ht,{size:14,"aria-hidden":`true`}),e.label,e.note&&(0,G.jsx)(`span`,{className:s(`text-body-sm font-normal`,e.noteClass),children:e.note})]},e.id)})})}function ir({page:e,size:t,total:n,onPage:r,label:i,children:a}){let o=Math.max(1,Math.ceil(n/t));return(0,G.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,G.jsxs)(`span`,{className:`flex-1`,children:[n?`${e*t+1}–${Math.min(n,e*t+t)} of ${n}`:`None`,a]}),o>1&&(0,G.jsxs)(`nav`,{"aria-label":i,className:`flex items-center gap-1`,children:[(0,G.jsx)(jt,{size:`sm`,variant:`ghost`,disabled:e===0,onClick:()=>r(e-1),"aria-label":`Previous page`,"data-tip":`Previous page`,children:(0,G.jsx)(y,{"aria-hidden":`true`})}),(0,G.jsxs)(`span`,{className:`px-1 tabular-nums`,children:[`Page `,e+1,` of `,o]}),(0,G.jsx)(jt,{size:`sm`,variant:`ghost`,disabled:e>=o-1,onClick:()=>r(e+1),"aria-label":`Next page`,"data-tip":`Next page`,children:(0,G.jsx)(F,{"aria-hidden":`true`})})]})]})}var ar={accent:`text-icon`,soft:`text-accent-line`,pass:`text-pass`,fail:`text-fail`};function or(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 sr({series:e,label:t,axis:n,hover:r=-1,onHover:i,max:a,padded:o=!0,lead:c=0,className:l=`h-24`}){let u=(0,K.useId)().replace(/:/g,``),d=Math.max(1,...e.map(e=>e.values.length)),f=a??Math.max(Number.MIN_VALUE,...e.flatMap(e=>e.values)),p=e=>d>1?e/(d-1)*280:140,m=e=>o?92-Math.max(0,e)/(f||1)*80:96-Math.max(0,e)/(f||1)*96,h=e.map((e,t)=>{let n=e.values.map((e,t)=>[p(t),m(e)]);return{s:e,k:t,pts:n,line:or(n,o?92:96)}}),g=h[c]??h[0],_=e=>g&&g.pts[e]?g.pts[e]:null,v=(e,t)=>{let n=_(e);return n?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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,G.jsxs)(`div`,{role:`img`,"aria-label":t,className:`flex w-full min-w-0 flex-col gap-2`,children:[(0,G.jsxs)(`div`,{className:s(`relative w-full`,l,g?ar[g.s.tone??`accent`]:``),onMouseLeave:i?()=>i(-1):void 0,children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 280 96`,preserveAspectRatio:`none`,className:`block size-full overflow-visible`,"aria-hidden":`true`,children:[(0,G.jsx)(`defs`,{children:h.map(({k:e})=>(0,G.jsxs)(`linearGradient`,{id:`${u}-f${e}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:`currentColor`,stopOpacity:`0.28`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:`currentColor`,stopOpacity:`0`})]},e))}),h.map(({s:e,k:t,line:n})=>(0,G.jsxs)(`g`,{className:ar[e.tone??`accent`],children:[e.fill!==!1&&(0,G.jsx)(`path`,{d:`${n} L${p(e.values.length-1)} 96 L0 96 Z`,fill:`url(#${u}-f${t})`}),(0,G.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,G.jsx)(`div`,{className:`absolute inset-0 flex`,"aria-hidden":`true`,children:Array.from({length:d},(e,t)=>(0,G.jsx)(`span`,{className:s(`h-full flex-1`,r===t&&`bg-current/5`),onMouseEnter:()=>i(t)},t))})]}),n&&n.length>0&&(0,G.jsx)(`div`,{className:`flex justify-between text-body-sm text-muted tabular-nums`,"aria-hidden":`true`,children:n.map((e,t)=>(0,G.jsx)(`span`,{children:e},t))})]})}function cr({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),c=r===`fail`?`bg-fail text-bg`:r===`pass`?`bg-pass text-bg`:n?`bg-accent text-white`:`bg-accent-line`;return(0,G.jsxs)(`span`,{"aria-hidden":`true`,className:s(`flex h-5 min-w-0 items-center gap-2 rounded-md bg-surface-strong`,i),children:[(0,G.jsx)(`span`,{className:s(`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`,c),style:{width:a>0?`${Math.max(2,a)}%`:`0`},children:o?t:null}),!o&&(0,G.jsx)(`span`,{className:`text-label-sm whitespace-nowrap text-ink-2 tabular-nums`,children:t})]})}function lr({rows:e,label:t,more:n}){return(0,G.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,G.jsxs)(`li`,{className:s(`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,G.jsx)(`span`,{"data-tip":e.label,className:`min-w-0 truncate text-body-sm text-ink-2`,children:e.label}),(0,G.jsxs)(`span`,{className:`row-span-2 flex flex-col items-end gap-1`,children:[(0,G.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,G.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,G.jsx)(`span`,{className:`text-headline-sm font-medium text-ink tabular-nums`,children:e.value}),e.sub?(0,G.jsx)(`span`,{className:`truncate text-label-sm text-muted tabular-nums`,children:e.sub}):null]})]},e.key)),n?(0,G.jsx)(`li`,{className:`border-t border-line px-4 py-2 text-body-sm text-muted`,children:n}):null]})}function ur({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)),c=e=>`${Math.min(100,e/o*100).toFixed(2)}%`,l=a>=1?`over`:a>=n?`near`:`fine`,u={width:c(Math.max(.01,a))};return l===`over`&&(u.backgroundImage=`linear-gradient(90deg, var(--color-accent), var(--color-fail))`),(0,G.jsxs)(`span`,{className:s(`flex min-w-0 items-center gap-2`,i),children:[(0,G.jsxs)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`${r}: ${Math.round(a*100)} percent of the limit, ${l===`over`?`over`:l===`near`?`near the limit`:`fine`}`,className:`relative block h-2 min-w-0 flex-1 rounded-full bg-surface-strong`,children:[(0,G.jsx)(`span`,{className:s(`absolute inset-y-0 left-0 rounded-full transition-[width] duration-200 ease-out`,l===`near`?`bg-warn`:`bg-accent`),style:u}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-px bg-warn`,style:{left:c(n)}}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute -inset-y-1 w-0.5 bg-fail`,style:{left:c(1)}})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`text-label-sm whitespace-nowrap`,l===`over`?`text-fail`:l===`near`?`text-warn`:`text-muted`),children:l===`over`?`over`:l===`near`?`near the limit`:`fine`})]})}function dr({parts:e,label:t,className:n}){let r=e.reduce((e,t)=>e+Math.max(0,t.value),0);return(0,G.jsx)(`span`,{role:`img`,"aria-label":t,className:s(`flex h-6 w-full min-w-0 gap-1`,n),children:e.filter(e=>e.value>0).map(e=>(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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`},pr={pass:`var(--color-pass)`,fail:`var(--color-fail)`,warn:`var(--color-warn)`,muted:`var(--color-line-strong)`};function mr({runs:e,label:t,className:n}){return(0,G.jsx)(`span`,{role:`img`,"aria-label":t,className:s(`inline-flex flex-none items-center gap-1`,n),children:e.map((t,n)=>{let r=n===e.length-1;return(0,G.jsx)(`span`,{"data-tip":t.title,"aria-hidden":`true`,className:s(`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 ${pr[t.tone]}`}:void 0},n)})})}function hr({share:e,marks:t,className:n,fill:r}){return(0,G.jsxs)(`span`,{"aria-hidden":`true`,className:s(`relative block h-2 rounded-full bg-surface-strong`,n),children:[(0,G.jsx)(`span`,{className:s(`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,G.jsx)(`span`,{className:`absolute -inset-y-1 w-px bg-muted`,style:{left:`${e*100}%`}},e))]})}function gr({value:e,label:t,size:n=`sm`,className:r}){let i=n===`lg`?104:56,a=n===`lg`?8:5,o=(i-a)/2,c=2*Math.PI*o,l=e===null?0:Math.max(0,Math.min(100,e))/100,u=e===null?`text-muted`:`text-accent`;return(0,G.jsxs)(`figure`,{role:`img`,"aria-label":`${t}: ${e===null?`not scored`:`${Math.round(e)} out of 100`}`,className:s(`m-0 flex flex-col items-center gap-2`,r),children:[(0,G.jsxs)(`span`,{className:`relative inline-flex`,style:{width:i,height:i},children:[(0,G.jsxs)(`svg`,{"aria-hidden":`true`,width:i,height:i,viewBox:`0 0 ${i} ${i}`,className:`-rotate-90`,children:[(0,G.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,className:`text-surface-strong`}),(0,G.jsx)(`circle`,{cx:i/2,cy:i/2,r:o,fill:`none`,stroke:`currentColor`,strokeWidth:a,strokeLinecap:`round`,strokeDasharray:c,strokeDashoffset:c*(1-l),className:s(`transition-[stroke-dashoffset] duration-200 ease-out`,u)})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:s(`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,G.jsx)(`figcaption`,{"aria-hidden":`true`,className:`text-center text-body-sm text-muted`,children:t})]})}var _r={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,yr=/\b(?:error|errors|fatal|exception|traceback|failed|failure|failing|panic|critical)\b|\bERR!|\b[A-Z]\w*(?:Error|Exception):|[✗✘❌]/i,br=/\b(?:warn|warning|warnings|deprecated|deprecation)\b|⚠/i;function xr(e){let t=e.replace(vr,``);return yr.test(t)?`error`:br.test(t)?`warn`:null}function Sr({text:e}){let t=e.split(`
|
|
2
2
|
`);return(0,G.jsx)(G.Fragment,{children:t.map((e,n)=>{let r=xr(e),i=n<t.length-1?`
|
|
3
3
|
`:``;return r?(0,G.jsxs)(`span`,{"data-level":r,className:_r[r],children:[e,i]},n):(0,G.jsxs)(K.Fragment,{children:[e,i]},n)})})}function Cr({href:e,label:t,className:n}){return(0,G.jsxs)(`a`,{href:e,className:s(`inline-flex min-h-9 w-fit items-center gap-2 self-start text-body-sm`,n),children:[(0,G.jsx)(ye,{size:16,"aria-hidden":`true`}),t]})}var wr=()=>typeof location>`u`?[]:location.hash.replace(/^#\/?/,``).split(`/`).filter(Boolean);function Tr(){let[e,t]=(0,K.useState)(wr);return(0,K.useEffect)(()=>{let e=()=>t(wr());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),e}function Er({to:e,className:t}){let n=St(Tr()),r=e??n;return r?(0,G.jsx)(Cr,{href:r.href,label:r.label,className:s(`md:hidden`,t)}):null}export{Ct as C,q as S,Zn as _,ur as a,Nt as b,gr as c,cr as d,nr as f,er as g,tr as h,sr as i,hr as l,rr as m,Er as n,lr as o,ir as p,Sr as r,mr as s,Cr as t,dr as u,Xn as v,wt as w,jt as x,Yn as y};
|