apitestcenter 0.18.3 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/THIRD-PARTY-NOTICES-UI.txt +40 -10
  2. package/dist/THIRD-PARTY-NOTICES.txt +3 -3
  3. package/dist/cli.mjs +336 -330
  4. package/dist/ui/404/index.html +1 -1
  5. package/dist/ui/404.html +1 -1
  6. package/dist/ui/__next.__PAGE__.txt +17 -17
  7. package/dist/ui/__next._full.txt +18 -18
  8. package/dist/ui/__next._tree.txt +2 -2
  9. package/dist/ui/_next/static/chunks/0faedhifzwobh.js +31 -0
  10. package/dist/ui/_next/static/chunks/{0q8iq_7i4ohjr.js → 0glo5t3rr5ux5.js} +2 -2
  11. package/dist/ui/_next/static/chunks/0jksxb6220hcg.js +4 -0
  12. package/dist/ui/_next/static/chunks/0jq6xbzrkaewp.js +2 -0
  13. package/dist/ui/_next/static/chunks/1-9ymrwk2b425.js +1 -0
  14. package/dist/ui/_next/static/chunks/13ez75q2t6tkt.js +51 -0
  15. package/dist/ui/_next/static/chunks/{12whdxhkvkd-y.js → 1s068j2ev364j.js} +1 -1
  16. package/dist/ui/_next/static/chunks/{3wtqdtu331_vc.js → 2-ccpn24ve6pz.js} +3 -3
  17. package/dist/ui/_next/static/chunks/20hgurwocz54g.js +123 -0
  18. package/dist/ui/_next/static/chunks/26cw_brv1ud3e.js +27 -0
  19. package/dist/ui/_next/static/chunks/2at40-h3piqdk.js +50 -0
  20. package/dist/ui/_next/static/chunks/2d4j4s35zfogt.js +3 -0
  21. package/dist/ui/_next/static/chunks/2eitm7108zqkh.js +50 -0
  22. package/dist/ui/_next/static/chunks/{1snbdq1z951ks.js → 2ihpgl_z3eude.js} +87 -86
  23. package/dist/ui/_next/static/chunks/2lr6d098vgexb.js +1 -0
  24. package/dist/ui/_next/static/chunks/2qci5ienr5rb9.css +3 -0
  25. package/dist/ui/_next/static/chunks/33purk5k-9o6l.js +1 -0
  26. package/dist/ui/_next/static/chunks/{0-zga2d528cxt.js → 3ixmudnloab4j.js} +3 -3
  27. package/dist/ui/_next/static/chunks/3ps_0myey2cxz.js +22 -0
  28. package/dist/ui/_next/static/chunks/3rshqqryni7gb.js +2 -0
  29. package/dist/ui/_next/static/chunks/45bkmnyf6ozrx.js +50 -0
  30. package/dist/ui/_not-found/__next._full.txt +13 -13
  31. package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +12 -12
  32. package/dist/ui/_not-found/__next._tree.txt +2 -2
  33. package/dist/ui/_not-found/index.html +1 -1
  34. package/dist/ui/_not-found/index.txt +13 -13
  35. package/dist/ui/compare/__next._full.txt +18 -18
  36. package/dist/ui/compare/__next._tree.txt +2 -2
  37. package/dist/ui/compare/__next.compare.__PAGE__.txt +17 -17
  38. package/dist/ui/compare/index.html +1 -1
  39. package/dist/ui/compare/index.txt +18 -18
  40. package/dist/ui/connections/__next._full.txt +16 -16
  41. package/dist/ui/connections/__next._tree.txt +2 -2
  42. package/dist/ui/connections/__next.connections.__PAGE__.txt +15 -15
  43. package/dist/ui/connections/index.html +2 -2
  44. package/dist/ui/connections/index.txt +16 -16
  45. package/dist/ui/history/__next._full.txt +19 -19
  46. package/dist/ui/history/__next._tree.txt +2 -2
  47. package/dist/ui/history/__next.history.__PAGE__.txt +18 -18
  48. package/dist/ui/history/index.html +1 -1
  49. package/dist/ui/history/index.txt +19 -19
  50. package/dist/ui/home/__next._full.txt +18 -18
  51. package/dist/ui/home/__next._tree.txt +2 -2
  52. package/dist/ui/home/__next.home.__PAGE__.txt +17 -17
  53. package/dist/ui/home/index.html +1 -1
  54. package/dist/ui/home/index.txt +18 -18
  55. package/dist/ui/index.html +1 -1
  56. package/dist/ui/index.txt +18 -18
  57. package/dist/ui/preview/__next._full.txt +17 -17
  58. package/dist/ui/preview/__next._tree.txt +2 -2
  59. package/dist/ui/preview/__next.preview.__PAGE__.txt +16 -16
  60. package/dist/ui/preview/index.html +1 -1
  61. package/dist/ui/preview/index.txt +17 -17
  62. package/dist/ui/suite/__next._full.txt +15 -15
  63. package/dist/ui/suite/__next._tree.txt +2 -2
  64. package/dist/ui/suite/__next.suite.__PAGE__.txt +14 -14
  65. package/dist/ui/suite/index.html +1 -1
  66. package/dist/ui/suite/index.txt +15 -15
  67. package/dist/ui/tests/__next._full.txt +13 -13
  68. package/dist/ui/tests/__next._tree.txt +2 -2
  69. package/dist/ui/tests/__next.tests.__PAGE__.txt +12 -12
  70. package/dist/ui/tests/index.html +1 -1
  71. package/dist/ui/tests/index.txt +13 -13
  72. package/package.json +1 -1
  73. package/dist/ui/_next/static/chunks/03ligbvtk7nsc.js +0 -123
  74. package/dist/ui/_next/static/chunks/03y58w9gmwqc-.js +0 -50
  75. package/dist/ui/_next/static/chunks/08rlo-0gnct9m.js +0 -50
  76. package/dist/ui/_next/static/chunks/0bgmfb8f3pd8e.js +0 -1
  77. package/dist/ui/_next/static/chunks/0g9k0swrer6i5.js +0 -1
  78. package/dist/ui/_next/static/chunks/1-t79a3q7gmjn.js +0 -31
  79. package/dist/ui/_next/static/chunks/14dtemzsvcfmn.js +0 -50
  80. package/dist/ui/_next/static/chunks/20j4wusnbtqa2.js +0 -4
  81. package/dist/ui/_next/static/chunks/243c1-49gb3pr.js +0 -1
  82. package/dist/ui/_next/static/chunks/2sjog4to0fmbb.css +0 -3
  83. package/dist/ui/_next/static/chunks/2sr5dm3__ghgo.js +0 -27
  84. package/dist/ui/_next/static/chunks/2su0ql-zu4q0_.js +0 -3
  85. package/dist/ui/_next/static/chunks/3-rdixjnndtyk.js +0 -51
  86. package/dist/ui/_next/static/chunks/32_tmz8ibsdo3.js +0 -22
  87. package/dist/ui/_next/static/chunks/3eti_s9gpiis0.js +0 -2
  88. package/dist/ui/_next/static/chunks/3wzu1zkfqdmn6.js +0 -2
  89. /package/dist/ui/_next/static/{lomhkNrlljr9WxdUu6_Mc → P0KsXFffpHNOo_vW1PSSr}/_buildManifest.js +0 -0
  90. /package/dist/ui/_next/static/{lomhkNrlljr9WxdUu6_Mc → P0KsXFffpHNOo_vW1PSSr}/_clientMiddlewareManifest.js +0 -0
  91. /package/dist/ui/_next/static/{lomhkNrlljr9WxdUu6_Mc → P0KsXFffpHNOo_vW1PSSr}/_ssgManifest.js +0 -0
@@ -1,31 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27895,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={WarningIcon:function(){return u},errorStyles:function(){return l},errorThemeCss:function(){return i}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});e.r(36437);let a=e.r(72587);e.r(55218);let l={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},i=`
2
- :root {
3
- --next-error-bg: #fff;
4
- --next-error-text: #171717;
5
- --next-error-title: #171717;
6
- --next-error-message: #171717;
7
- --next-error-digest: #666666;
8
- --next-error-btn-text: #fff;
9
- --next-error-btn-bg: #171717;
10
- --next-error-btn-border: none;
11
- --next-error-btn-secondary-text: #171717;
12
- --next-error-btn-secondary-bg: transparent;
13
- --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
14
- }
15
- @media (prefers-color-scheme: dark) {
16
- :root {
17
- --next-error-bg: #0a0a0a;
18
- --next-error-text: #ededed;
19
- --next-error-title: #ededed;
20
- --next-error-message: #ededed;
21
- --next-error-digest: #a0a0a0;
22
- --next-error-btn-text: #0a0a0a;
23
- --next-error-btn-bg: #ededed;
24
- --next-error-btn-border: none;
25
- --next-error-btn-secondary-text: #ededed;
26
- --next-error-btn-secondary-bg: transparent;
27
- --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
28
- }
29
- }
30
- body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
31
- `.replace(/\n\s*/g,"");function u(){return(0,a.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:l.icon,children:(0,a.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},50965,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),e.r(36437);let n=e.r(72587);e.r(55218);let o=e.r(34262),a=e.r(27895),l=function({error:e}){let r=e?.digest,t=!!r;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:a.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:a.errorStyles.container,children:(0,n.jsxs)("div",{style:a.errorStyles.card,children:[(0,n.jsx)(a.WarningIcon,{}),(0,n.jsx)("h1",{style:a.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:a.errorStyles.message,children:t?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:a.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:a.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:a.errorStyles.button,children:"Reload"})}),!t&&(0,n.jsx)("button",{type:"button",style:a.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),r&&(0,n.jsxs)("p",{style:a.errorStyles.digestFooter,children:["ERROR ",r]})]})]})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},86424,(e,r,t)=>{e.i(11158),Object.defineProperty(t,"__esModule",{value:!0});var n={ErrorBoundary:function(){return b},ErrorBoundaryHandler:function(){return y}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(56421),l=e.r(72587),i=a._(e.r(55218)),u=e.r(18930),d=e.r(88820);e.r(79028);let s=e.r(34262),c=e.r(74388),f=e.r(7716),p="u">typeof window&&(0,c.isBot)(window.navigator.userAgent);class y extends i.default.Component{static{this.contextType=f.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.retry=()=>{(0,i.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,d.isNextRouterError)(e))throw e;return{error:{thrownValue:e}}}static getDerivedStateFromProps(e,r){let{error:t}=r;return e.pathname!==r.previousPathname&&r.error?{error:null,previousPathname:e.pathname}:{error:r.error,previousPathname:e.pathname}}render(){if(this.state.error&&!p){let e=this.state.error.thrownValue;return(0,s.handleISRError)({error:e}),(0,l.jsxs)(l.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,l.jsx)(this.props.errorComponent,{error:e,reset:this.reset,retry:this.retry})]})}return this.props.children}}function b({errorComponent:e,errorStyles:r,errorScripts:t,children:n}){let o=(0,u.useUntrackedPathname)();return e?(0,l.jsx)(y,{pathname:o,errorComponent:e,errorStyles:r,errorScripts:t,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},34262,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleISRError",{enumerable:!0,get:function(){return o}});let n=e.r(22411);function o({error:e}){if(!n.workUnitAsyncStorage)return;let r=n.workUnitAsyncStorage.getStore();switch(r?.type){case"prerender":case"prerender-client":case"prerender-legacy":throw e&&console.error(e),e;case"request":case"prerender-runtime":case"validation-client":case"cache":case"private-cache":case"unstable-cache":case"build-time-generator":case void 0:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},79028,(e,r,t)=>{e.i(11158),Object.defineProperty(t,"__esModule",{value:!0});var n={handleHardNavError:function(){return l},useNavFailureHandler:function(){return i}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});e.r(55218);let a=e.r(23648);function l(e){return"u">typeof window&&!!window.next.__pendingUrl&&(0,a.createHrefFromUrl)(new URL(window.location.href))!==(0,a.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function i(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},18930,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return l}});let n=e.r(55218),o=e.r(51828),a=e.r(22411);function l(){return!function(){if("u"<typeof window){let e=a.workUnitAsyncStorage.getStore();if(!e)return!1;switch(e.type){case"prerender":case"prerender-client":case"validation-client":let r=e.fallbackRouteParams;return!!r&&r.size>0}}return!1}()?(0,n.useContext)(o.PathnameContext):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},42365,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={RedirectBoundary:function(){return p},RedirectErrorBoundary:function(){return f}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(56421),l=e.r(72587),i=a._(e.r(55218)),u=e.r(4784),d=e.r(9784),s=e.r(28806);function c({redirect:e,reset:r,redirectType:t}){let n=(0,u.useRouter)();return(0,i.useEffect)(()=>{i.default.startTransition(()=>{"push"===t?n.push(e,{}):n.replace(e,{}),r()})},[e,t,r,n]),null}class f extends i.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,s.isRedirectError)(e)){let r=(0,d.getURLFromRedirectError)(e),t=(0,d.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:r,redirectType:t}}throw e}render(){let{redirect:e,redirectType:r}=this.state;return null!==e&&null!==r?(0,l.jsx)(c,{redirect:e,redirectType:r,reset:()=>this.setState({redirect:null})}):this.props.children}}function p({children:e}){let r=(0,u.useRouter)();return(0,l.jsx)(f,{router:r,children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},3668,(e,r,t)=>{function n(e){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},10063,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={createHeadKey:function(){return l},createSegmentKey:function(){return a.createRouterCacheKey}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(3668);function l(e){let r=[e.value],t=e.parent;for(;null!==t;){let e=t.value;"string"==typeof e&&r.push(e),t=t.parent}return JSON.stringify(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},72024,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},88987,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={MetadataBoundary:function(){return i},OutletBoundary:function(){return d},RootLayoutBoundary:function(){return s},ViewportBoundary:function(){return u}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a=e.r(71455),l={[a.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[a.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[a.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[a.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},i=l[a.METADATA_BOUNDARY_NAME.slice(0)],u=l[a.VIEWPORT_BOUNDARY_NAME.slice(0)],d=l[a.OUTLET_BOUNDARY_NAME.slice(0)],s=l[a.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]},71455,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return a},OUTLET_BOUNDARY_NAME:function(){return i},ROOT_LAYOUT_BOUNDARY_NAME:function(){return u},VIEWPORT_BOUNDARY_NAME:function(){return l}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let a="__next_metadata_boundary__",l="__next_viewport_boundary__",i="__next_outlet_boundary__",u="__next_root_layout_boundary__"}])})();
@@ -1,50 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53356,e=>{var t=e.i(72587),s=e.i(32610),n=e.i(62766);e.i(24856);var r=e.i(2385),a=e.i(53012),l=e.i(93250),i=e.i(84355),o=e.i(20621),c=e.i(67951),d=e.i(91694),m=e.i(27813),u=e.i(88293),p=e.i(96659),h=e.i(87283),f=e.i(75998),x=e.i(70989),y=e.i(55218),v=e.i(67754),b=e.i(6980),g=e.i(29724),w=e.i(39170),k=e.i(28867),j=e.i(56396),N=e.i(19656),S=e.i(59180),C=e.i(88231),$=e.i(88153);function T(e){return"run"===e.kind?e.startedAt:e.savedAt}function F(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function _({run:e,slo:s}){let n=(0,r.F)(e.verdict,{slo:s}).overall;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:[e.baseline?(0,t.jsx)(l.f,{size:11,className:"mr-1 inline fill-current align-[-1px] text-accent","aria-label":"Reference run"}):null,e.name]}),"failed"===e.status||"cancelled"===e.status?(0,t.jsx)("span",{className:"shrink-0 text-xs text-mute capitalize",children:e.status}):(0,t.jsx)(b.VerdictTag,{level:n})]}),(0,t.jsx)("div",{className:"mt-0.5 truncate font-mono text-xs text-mute",children:e.endpoint}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap gap-x-3 font-mono text-xs text-mute",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.E)(e.p95)]}),(0,t.jsxs)("span",{children:[(0,N.Z)(e.errorRate)," err"]}),(0,t.jsx)("span",{children:F(e.startedAt)})]}),e.note?(0,t.jsx)("p",{className:"mt-1 line-clamp-1 text-xs text-ink",children:e.note}):null]})}function E({compare:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.f,{size:13,className:"shrink-0 text-accent","aria-label":"Compare"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-ink",children:e.name})]}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-mute",children:[e.titles.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:(0,C.f)(s)},"aria-hidden":!0}),e]},s)),(0,t.jsx)("span",{className:"font-mono",children:F(e.savedAt)})]})]})}function M({name:e,note:s,onSave:n}){let[r,a]=(0,y.useState)(e),[l,i]=(0,y.useState)(s??"");return(0,y.useEffect)(()=>a(e),[e]),(0,y.useEffect)(()=>i(s??""),[s]),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Name"}),(0,t.jsx)("input",{value:r,onChange:e=>a(e.target.value),onBlur:()=>r.trim()!==e&&void n({name:r}),onKeyDown:e=>"Enter"===e.key&&e.target.blur(),className:"w-full rounded-md border border-transparent bg-transparent px-1 py-0.5 text-xl font-medium text-ink hover:border-line focus:border-accent focus:outline-none",title:"Click to rename"})]}),(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Note"}),(0,t.jsx)("textarea",{value:l,rows:l?2:1,onChange:e=>i(e.target.value),onBlur:()=>l.trim()!==(s??"")&&void n({note:l}),placeholder:"Add a note — what changed, which build, why you ran it…",className:"input resize-y text-sm"})]})]})}function I({summary:e,related:s,onSelect:n,onDelete:r,onReveal:a}){let l=(0,j.d)(),{refresh:i}=(0,S.K)(),[c,d]=(0,y.useState)(null),[u,h]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.c.run(e.id).then(e=>!t&&d(e)).catch(e=>!t&&h(e instanceof Error?e.message:"Could not read the file")),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;let f=s.filter(t=>t.endpoint===e.endpoint);async function x(t){try{await S.c.updateRun(e.id,t),await i()}catch(e){l(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(M,{name:e.name,note:e.note,onSave:x}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>a(e.id),children:[(0,t.jsx)(o.f,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>r(e.id),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]})]})]}),e.error?(0,t.jsx)("p",{role:"alert",className:"rounded-md border border-bad/40 bg-bad/10 px-3 py-2 font-mono text-xs text-bad",children:e.error}):null,f.length>=2?(0,t.jsx)(v.N,{runs:f,selectedId:e.id,onSelect:n}):null,u?(0,t.jsx)("p",{className:"text-sm text-bad",children:u}):c&&c.report.id===e.id?(0,t.jsx)(g.f,{report:c.report,source:"session",showTitle:!1}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Opening…"]})]})}function L({summary:e,onDelete:s,onReveal:n}){let a=(0,j.d)(),{slo:l}=(0,$.G)(),{refresh:i}=(0,S.K)(),[d,u]=(0,y.useState)(null);if((0,y.useEffect)(()=>{if(!e)return;let t=!1;return S.c.compare(e.id).then(e=>!t&&u(e)).catch(()=>void 0),()=>{t=!0}},[e?.id,e?.bytes]),!e)return null;async function h(t){try{await S.c.updateCompare(e.id,t),await i()}catch(e){a(e instanceof Error?e.message:"Could not save","error")}}return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"px-1 text-xs tracking-wide text-accent uppercase",children:["Compare · ","parallel"===e.mode?"all at once":"one after another"]}),(0,t.jsx)(M,{name:e.name,note:e.note,onSave:h}),(0,t.jsx)("p",{className:"mt-1 px-1 font-mono text-xs break-all text-mute",children:e.file})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2",children:[(0,t.jsxs)(f.default,{href:`/compare?compare=${e.id}`,className:"btn btn-primary py-1.5 text-xs",children:[(0,t.jsx)(c.f,{size:13}),"Open overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>n(e.id),children:[(0,t.jsx)(o.f,{size:13}),"Show file"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1.5 text-xs",onClick:()=>s(e.id),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]})]})]}),d?(0,t.jsx)("ul",{className:"grid gap-2 @2xl:grid-cols-2",children:d.apis.map((e,s)=>(0,t.jsxs)("li",{className:"rounded-lg border border-line bg-panel p-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-sm text-ink",children:[(0,t.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:(0,C.f)(s)},"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.title})]}),(0,t.jsx)(b.VerdictTag,{level:(0,r.s)(e.report,{slo:l}).overall})]}),(0,t.jsxs)("p",{className:"mt-1 truncate font-mono text-xs text-mute",children:[e.report.definition.method," ",e.report.definition.url]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-4 font-mono text-xs text-ink",children:[(0,t.jsxs)("span",{children:["p95 ",(0,N.E)(e.report.summary.latencyMs.p95)]}),(0,t.jsxs)("span",{children:[(0,N.Z)(e.report.summary.http.failed.rate)," err"]}),(0,t.jsxs)("span",{children:[e.report.summary.http.requests.toLocaleString()," req"]})]})]},e.id))}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Opening…"]})]})}function D({index:e,onChanged:s,onReveal:n}){let r=(0,w.L)(),l=(0,j.d)();return(0,t.jsxs)("details",{className:"mx-1 mb-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2 text-sm",children:[(0,t.jsxs)("summary",{className:"cursor-pointer text-ink",children:[(0,t.jsx)(a.f,{size:13,className:"mr-1 inline align-[-2px] text-warn","aria-hidden":!0}),e.invalid.length," ",1===e.invalid.length?"file":"files"," in your history folder couldn't be read"]}),(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.invalid.map(e=>(0,t.jsxs)("li",{className:"text-xs",children:[(0,t.jsxs)("span",{className:"font-mono text-ink",children:[e.folder,"/",e.file]}),(0,t.jsx)("span",{className:"block text-mute",children:e.reason})]},`${e.folder}/${e.file}`))}),(0,t.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1 text-xs",onClick:n,children:"Show folder"}),(0,t.jsx)("button",{type:"button",className:"btn btn-danger py-1 text-xs",onClick:async()=>{await r({title:"Delete the unreadable files?",body:"They are not valid APITestCenter records. If you edited one by hand, fix it instead and it will reappear.",confirmLabel:"Delete files",tone:"danger"})&&(await S.c.remove({invalid:e.invalid.map(({folder:e,file:t})=>({folder:e,file:t}))}),await s(),l("Unreadable files deleted","success"))},children:"Delete them"})]})]})}function R({filtered:e,hasAny:s}){return(0,t.jsx)("p",{className:"px-3 py-6 text-sm text-mute",children:e&&s?"Nothing matches. Clear the search or filter.":"No saved records yet."})}function A(){return(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center px-6 py-16 text-center",children:[(0,t.jsx)("div",{className:"grid h-12 w-12 place-items-center rounded-full bg-accent-dim text-accent",children:(0,t.jsx)(d.f,{size:22,strokeWidth:1.75,"aria-hidden":!0})}),(0,t.jsx)("h2",{className:"mt-4 text-base font-medium text-ink",children:"Your history is empty"}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm text-mute",children:"Every performance test and compare is saved here automatically, as a JSON file on this computer. Nothing leaves your machine."}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[(0,t.jsxs)(f.default,{href:"/",className:"btn btn-primary text-sm",children:[(0,t.jsx)(i.f,{size:14}),"Test an API"]}),(0,t.jsxs)(f.default,{href:"/compare",className:"btn btn-secondary text-sm",children:[(0,t.jsx)(c.f,{size:14}),"Compare APIs"]})]})]})}e.s(["default",0,function(){let e=(0,n.K)("history",{min:280}),r=(0,x.useRouter)(),a=(0,j.d)(),l=(0,w.L)(),{slo:i}=(0,$.G)(),{index:d,loading:f,error:v,refresh:b}=(0,S.K)(),[g,C]=(0,y.useState)(""),[F,M]=(0,y.useState)("all"),[z,q]=(0,y.useState)(null),[U,O]=(0,y.useState)(new Set),[P,H]=(0,y.useState)(!1),V=d?.runs??[],W=d?.compares??[],B=(0,y.useMemo)(()=>{let e=g.trim().toLowerCase();return[..."compares"===F?[]:V.filter(e=>"baselines"!==F||e.baseline),..."runs"===F||"baselines"===F?[]:W].filter(t=>!e||t.name.toLowerCase().includes(e)||(t.note??"").toLowerCase().includes(e)||("run"===t.kind?t.endpoint.toLowerCase().includes(e):t.titles.join(" ").toLowerCase().includes(e))).sort((e,t)=>Date.parse(T(t))-Date.parse(T(e)))},[V,W,g,F]);(0,y.useEffect)(()=>{if(d&&!(z&&("run"===z.kind?V.some(e=>e.id===z.id):W.some(e=>e.id===z.id)))){let e=B[0];q(e?{kind:e.kind,id:e.id}:null)}},[d]);let K=[...U].filter(e=>e.startsWith("run:")).map(e=>e.slice(4)),J=[...U].filter(e=>e.startsWith("compare:")).map(e=>e.slice(8));async function X(e,t){let s=e.length+t.length;if(await l({title:`Delete ${s} ${1===s?"record":"records"}?`,body:"The JSON files are removed from your history folder. This cannot be undone — export first if you want a copy.",confirmLabel:"Delete",tone:"danger"})){H(!0);try{let{removed:s}=await S.c.remove({runs:e,compares:t});O(new Set),await b(),a(`Deleted ${s} ${1===s?"record":"records"}`,"success")}catch(e){a(e instanceof Error?e.message:"Delete failed","error")}finally{H(!1)}}}async function Y(e){try{await S.c.reveal(e)}catch(e){a(e instanceof Error?e.message:"Could not open the folder","error")}}let Z=function(e){let t=new Map,s=new Date,n=new Date(s.getTime()-864e5),r=(e,t)=>e.toDateString()===t.toDateString();for(let a of e){let e=new Date(T(a)),l=r(e,s)?"Today":r(e,n)?"Yesterday":e.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",year:e.getFullYear()===s.getFullYear()?void 0:"numeric"}),i=t.get(l)??[];i.push(a),t.set(l,i)}return[...t]}(B);return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-lg font-medium text-ink",children:"History"}),(0,t.jsx)("p",{className:"truncate text-xs text-mute",title:d?.dataDir,children:d?`${V.length} load ${1===V.length?"test":"tests"} \xb7 ${W.length} ${1===W.length?"compare":"compares"} \xb7 ${(0,N.L)(d.totalBytes)} on this computer`:f?"Loading…":"History is unavailable"})]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:()=>void Y(),disabled:!d,children:[(0,t.jsx)(o.f,{size:15}),"Show folder"]})]}),v&&!d?(0,t.jsxs)("div",{role:"alert",className:"m-6 rounded-md border border-bad/40 bg-bad/10 px-4 py-3 text-sm text-ink",children:[(0,t.jsx)("p",{className:"font-medium text-bad",children:"Can't reach the engine"}),(0,t.jsxs)("p",{className:"mt-1",children:["History is stored by the local engine. Start it with pnpm dev, then come back. (",v,")"]})]}):null,(0,t.jsxs)("div",{ref:e.gridRef,style:e.gridStyle,className:"relative grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(20rem,26rem)_minmax(0,1fr)] lg:overflow-hidden",children:[(0,t.jsx)(s.f,{label:"History list width",...e.splitter}),(0,t.jsxs)("section",{"aria-label":"Saved records",className:"flex min-h-0 flex-col border-line lg:border-r",children:[(0,t.jsxs)("div",{className:"space-y-2 border-b border-line px-4 py-3",children:[(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)("span",{className:"sr-only",children:"Search history"}),(0,t.jsx)(u.f,{size:14,className:"pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-mute","aria-hidden":!0}),(0,t.jsx)("input",{value:g,onChange:e=>C(e.target.value),placeholder:"Search name, URL, or note",className:"input pl-8"})]}),(0,t.jsx)(k.f,{label:"Show",value:F,onChange:M,options:[{value:"all",label:"All"},{value:"runs",label:"Performance tests"},{value:"compares",label:"Compares"},{value:"baselines",label:"Reference runs"}]})]}),U.size>0?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-line bg-accent-dim px-4 py-2 text-sm",children:[(0,t.jsxs)("span",{className:"text-ink",children:[U.size," selected"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary ml-auto py-1 text-xs",disabled:K.length<2||K.length>6||J.length>0,title:K.length<2?"Tick 2–6 performance tests to overlay them":"Overlay these runs on Compare",onClick:()=>r.push(`/compare?ids=${K.join(",")}`),children:[(0,t.jsx)(c.f,{size:13}),"Overlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-danger py-1 text-xs",disabled:P,onClick:()=>void X(K,J),children:[(0,t.jsx)(p.f,{size:13}),"Delete"]}),(0,t.jsx)("button",{type:"button","aria-label":"Clear selection",className:"rounded p-1 text-mute hover:text-ink",onClick:()=>O(new Set),children:(0,t.jsx)(h.X,{size:14})})]}):null,(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 py-2",children:[d?.invalid.length?(0,t.jsx)(D,{index:d,onChanged:b,onReveal:()=>void Y()}):null,f&&!d?(0,t.jsxs)("p",{className:"flex items-center gap-2 px-3 py-6 text-sm text-mute",children:[(0,t.jsx)(m.f,{size:14,className:"animate-spin"})," Reading your history folder…"]}):0===B.length?(0,t.jsx)(R,{filtered:!!g||"all"!==F,hasAny:V.length+W.length>0}):Z.map(([e,s])=>(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h2",{className:"px-2 py-1 text-xs font-medium text-mute",children:e}),(0,t.jsx)("ul",{className:"space-y-0.5",children:s.map(e=>{let s=`${e.kind}:${e.id}`,n=z?.kind===e.kind&&z.id===e.id;return(0,t.jsxs)("li",{className:`flex items-start gap-2 rounded-md px-2 py-2 ${n?"bg-accent-dim":"hover:bg-panel-2"}`,children:[(0,t.jsx)("input",{type:"checkbox",checked:U.has(s),onChange:()=>{let t;return t=`${e.kind}:${e.id}`,void O(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},"aria-label":`Select ${e.name}`,className:"mt-1 accent-[var(--accent)]"}),(0,t.jsx)("button",{type:"button",onClick:()=>q({kind:e.kind,id:e.id}),"aria-current":n?"true":void 0,className:"min-w-0 flex-1 text-left",children:"run"===e.kind?(0,t.jsx)(_,{run:e,slo:i}):(0,t.jsx)(E,{compare:e})})]},s)})})]},e))]})]}),(0,t.jsx)("section",{"aria-label":"Details",className:"@container min-h-0 min-w-0 overflow-y-auto px-4 py-4 lg:px-6",children:z?.kind==="run"?(0,t.jsx)(I,{summary:V.find(e=>e.id===z.id),related:V,onSelect:e=>q({kind:"run",id:e}),onDelete:e=>void X([e],[]),onReveal:e=>void Y({folder:"runs",id:e})},z.id):z?.kind==="compare"?(0,t.jsx)(L,{summary:W.find(e=>e.id===z.id),onDelete:e=>void X([],[e]),onReveal:e=>void Y({folder:"compares",id:e})},z.id):d?(0,t.jsx)(A,{}):null})]})]})}])},37837,e=>{var t=e.i(72587),s=e.i(55218),n=e.i(90484),r=e.i(14865);e.s(["f",0,function({anchor:e,open:a,onClose:l,children:i,label:o,width:c=280,role:d="dialog"}){let m=(0,s.useRef)(null),[u,p]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{if(!a)return;let t=()=>{if(!e.current)return;let t=(0,r.C)(e.current),s=(0,r.v)(),n=m.current?.offsetHeight??320,a=s.height-t.bottom-8,l=t.top-8,i=a<Math.min(n,240)&&l>a,o=Math.min(Math.max(8,t.right-c),s.width-c-8);p({top:i?Math.max(8,t.top-Math.min(n,l)-4):t.bottom+4,left:o,maxHeight:Math.max(160,(i?l:a)-4)})};t();let s=window.requestAnimationFrame(t);return window.addEventListener("resize",t),()=>{window.cancelAnimationFrame(s),window.removeEventListener("resize",t)}},[a,e,c]),(0,s.useEffect)(()=>{if(!a)return;let t=t=>{let s=t.target;m.current?.contains(s)||e.current?.contains(s)||l()},s=t=>{"Escape"===t.key&&(t.stopPropagation(),l(),e.current?.focus())},n=e=>{m.current?.contains(e.target)||l()},r=t=>{e.current?.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),l())};return document.addEventListener("pointerdown",t,!0),document.addEventListener("click",r,!0),document.addEventListener("keydown",s,!0),document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("pointerdown",t,!0),document.removeEventListener("click",r,!0),document.removeEventListener("keydown",s,!0),document.removeEventListener("scroll",n,!0)}},[a,l,e]),(0,s.useEffect)(()=>{a&&window.setTimeout(()=>m.current?.querySelector("[role=menuitem], input, select, button")?.focus(),0)},[a]),!a||"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:m,role:d,"aria-label":o,style:{top:u?.top??-9999,left:u?.left??-9999,width:c,maxHeight:u?.maxHeight},className:"anim-pop fixed z-[70] overflow-auto rounded-lg border border-line bg-panel p-3 shadow-2xl",children:i}),document.body)}])},32610,e=>{var t=e.i(72587),s=e.i(55218);e.s(["f",0,function({orientation:e,label:n,value:r,onMove:a,onStep:l,onReset:i,onDragging:o,className:c="",style:d}){let[m,u]=(0,s.useState)(!1);(0,s.useEffect)(()=>o?.(m),[m,o]),(0,s.useEffect)(()=>{if(!m)return;let t=e=>a(e.clientX,e.clientY),s=()=>u(!1);return document.body.style.userSelect="none",document.body.style.cursor="vertical"===e?"col-resize":"row-resize",window.addEventListener("pointermove",t),window.addEventListener("pointerup",s),()=>{document.body.style.userSelect="",document.body.style.cursor="",window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",s)}},[m,a,e]);let p="vertical"===e;return(0,t.jsx)("div",{role:"separator",tabIndex:0,"aria-orientation":e,"aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r),title:`${n} — drag, or double-click to reset`,onPointerDown:e=>{0===e.button&&(e.preventDefault(),u(!0))},onDoubleClick:i,style:{...d,outline:"none"},onKeyDown:e=>{let t=p?"ArrowLeft":"ArrowUp";e.key===t||e.key===(p?"ArrowRight":"ArrowDown")?(e.preventDefault(),l(e.key===t?-1:1,e.shiftKey)):("Enter"===e.key||"Home"===e.key)&&(e.preventDefault(),i())},className:`group z-20 hidden touch-none outline-none lg:block ${p?"w-2 cursor-col-resize":"h-2 cursor-row-resize"} ${c}`,children:(0,t.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute bg-accent opacity-0 transition-opacity group-hover:opacity-60 group-focus-visible:opacity-100 ${m?"opacity-100":""} ${p?"inset-y-0 left-1/2 w-0.5 -translate-x-1/2":"inset-x-0 top-1/2 h-0.5 -translate-y-1/2"}`})})}])},30617,e=>{e.i(24856);var t=e.i(46306),s=e.i(36558),n=e.i(2385),r=e.i(17219);let a={base:0,header:1,desc:2,pass:3,warn:4,fail:5};function l(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("\n","&#10;")}function i(e,t,s){if("level"===e)return"pass"===t?a.pass:"warn"===t?a.warn:"fail"===t?a.fail:a.base;let n="number"==typeof t?t:Number(t);return"errors"===e?n>=s.errorFail?a.fail:n>=s.errorWarn?a.warn:a.pass:n>=s.p95FailMs?a.fail:n>=s.p95WarnMs?a.warn:a.pass}let o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
3
- <fonts count="3">
4
- <font><sz val="11"/><name val="Calibri"/></font>
5
- <font><b/><sz val="11"/><color rgb="FFFFFFFF"/><name val="Calibri"/></font>
6
- <font><sz val="10"/><color rgb="FF5C6778"/><name val="Calibri"/></font>
7
- </fonts>
8
- <fills count="6">
9
- <fill><patternFill patternType="none"/></fill>
10
- <fill><patternFill patternType="gray125"/></fill>
11
- <fill><patternFill patternType="solid"><fgColor rgb="FF0B8F7C"/></patternFill></fill>
12
- <fill><patternFill patternType="solid"><fgColor rgb="FFDCFCE7"/></patternFill></fill>
13
- <fill><patternFill patternType="solid"><fgColor rgb="FFFEF3C7"/></patternFill></fill>
14
- <fill><patternFill patternType="solid"><fgColor rgb="FFFECACA"/></patternFill></fill>
15
- </fills>
16
- <borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>
17
- <cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>
18
- <cellXfs count="6">
19
- <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
20
- <xf numFmtId="0" fontId="1" fillId="2" borderId="0" xfId="0" applyFont="1" applyFill="1" applyAlignment="1"><alignment horizontal="center" vertical="center"/></xf>
21
- <xf numFmtId="0" fontId="2" fillId="0" borderId="0" xfId="0" applyFont="1" applyAlignment="1"><alignment wrapText="1" vertical="center"/></xf>
22
- <xf numFmtId="0" fontId="0" fillId="3" borderId="0" xfId="0" applyFill="1"/>
23
- <xf numFmtId="0" fontId="0" fillId="4" borderId="0" xfId="0" applyFill="1"/>
24
- <xf numFmtId="0" fontId="0" fillId="5" borderId="0" xfId="0" applyFill="1"/>
25
- </cellXfs>
26
- </styleSheet>`;async function c(e,r,l){let o=(0,n.s)(e,{slo:r}),c=(0,n.v)(r),m=(0,t.$)(l,(0,t.L)(e));return d([{name:"Overview",rows:[[{v:"Key",s:a.header},{v:"Value",s:a.header},{v:"What this means",s:a.header}],...(0,s.E)(e).map(e=>{let t=a.base;return"failed_rate"===e.key&&(t=i("errors",e.value,c)),"latency_p95_ms"===e.key&&(t=i("latency",e.value,c)),(e.key.startsWith("status_5")||"status_0"===e.key)&&(t=Number(e.value)>0?a.fail:a.pass),e.key.startsWith("status_4")&&Number(e.value)>0&&(t=a.warn),e.key.startsWith("threshold:")&&(t="pass"===e.value?a.pass:a.fail),[{v:e.key},{v:e.value,s:t},{v:e.description,s:a.desc}]})]},{name:"Result summary",rows:[[{v:"Field",s:a.header},{v:"Level",s:a.header},{v:"What this means",s:a.header}],[{v:"overall"},{v:o.overall,s:i("level",o.overall,c)},{v:o.headline,s:a.desc}],...o.aspects.map(e=>[{v:e.title},{v:e.level,s:i("level",e.level,c)},{v:e.summary,s:a.desc}]),[{v:"disclaimer"},{v:""},{v:o.disclaimer,s:a.desc}],...m.map((e,s)=>[{v:`chart_${s+1}`},{v:`${e.w}x${e.h}`},{v:t.p[e.id],s:a.desc}])]},{name:"Second by second",rows:[s.V.map(e=>({v:e.header,s:a.header})),...e.buckets.map(e=>(0,s.u)(e).map((e,t)=>{let n=s.V[t]?.key,r=a.base;return"p95_ms"===n&&(r=i("latency",e,c)),"failed_rate"===n&&(r=i("errors",e,c)),"http_5xx"===n&&Number(e)>0&&(r=a.fail),"http_0"===n&&Number(e)>0&&(r=a.fail),"http_4xx"===n&&Number(e)>0&&(r=a.warn),"http_2xx"===n&&Number(e)>0&&(r=a.pass),{v:e,s:r}}))]}])}function d(e){let t={"[Content_Types].xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
27
- <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
28
- <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
29
- <Default Extension="xml" ContentType="application/xml"/>
30
- <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>
31
- <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>
32
- ${e.map((e,t)=>` <Override PartName="/xl/worksheets/sheet${t+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`).join("\n")}
33
- </Types>`,"_rels/.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
34
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
35
- <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
36
- </Relationships>`,"xl/workbook.xml":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
37
- <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
38
- <sheets>
39
- ${e.map((e,t)=>` <sheet name="${l(e.name.replace(/[:\\/?*[\]]/g," ").trim().slice(0,31)||"Sheet")}" sheetId="${t+1}" r:id="rId${t+1}"/>`).join("\n")}
40
- </sheets>
41
- </workbook>`,"xl/_rels/workbook.xml.rels":`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
42
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
43
- ${e.map((e,t)=>` <Relationship Id="rId${t+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${t+1}.xml"/>`).join("\n")}
44
- <Relationship Id="rId${e.length+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
45
- </Relationships>`,"xl/styles.xml":o};return e.forEach((e,s)=>{var n;let r,a,i;return t[`xl/worksheets/sheet${s+1}.xml`]=(n=e.rows,a=Array.from({length:r=n[0]?.length??0},(e,t)=>{let s=function(e,t,s=10,n=48){let r=s;for(let s of e){let e=s[t]?.v;void 0!==e&&(r=Math.max(r,String(e).length+2))}return Math.min(n,r)}(n,t,t===r-1&&r>=3?36:12,t===r-1&&r>=3?72:42);return`<col min="${t+1}" max="${t+1}" width="${s}" customWidth="1"/>`}).join(""),i=n.map((e,t)=>`<row r="${t+1}" ht="${0===t?22:18}" customHeight="1">${e.map((e,s)=>{var n;let r,a;return n=t+1,r=`${function(e){let t=e+1,s="";for(;t>0;)s=String.fromCharCode(65+(t-1)%26)+s,t=Math.floor((t-1)/26);return s}(s)}${n}`,a=void 0!==e.s?` s="${e.s}"`:"","number"==typeof e.v&&Number.isFinite(e.v)?`<c r="${r}"${a}><v>${e.v}</v></c>`:`<c r="${r}"${a} t="inlineStr"><is><t xml:space="preserve">${l(e.v)}</t></is></c>`}).join("")}</row>`).join(""),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
46
- <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
47
- <sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>
48
- <cols>${a}</cols>
49
- <sheetData>${i}</sheetData>
50
- </worksheet>`)}),new Blob([(0,r.f)(t)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})}e.s(["S",0,a,"a",0,c,"F",0,d])},62766,e=>{var t=e.i(55218);let s="apitestcenter-pane-sizes",n=(e,t,s)=>Math.min(s,Math.max(t,e));function r(e){let[s,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),s=()=>n(t.matches);return s(),t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[e]),s}e.s(["K",0,function(e,{min:a=220,max:l=900,rest:i=360}={}){let o=r("(min-width: 1024px)"),c=(0,t.useRef)(null),d=`${s}:${e}`,[m,u]=(0,t.useState)(null),[p,h]=(0,t.useState)(0);(0,t.useEffect)(()=>{try{let e=Number(JSON.parse(localStorage.getItem(d)??"null"));Number.isFinite(e)&&e>0&&u(e)}catch{}},[d]),(0,t.useEffect)(()=>{let e=[...c.current?.children??[]].find(e=>"separator"!==e.getAttribute("role"));if(!e)return;let t=new ResizeObserver(()=>h(e.getBoundingClientRect().width));return t.observe(e),()=>t.disconnect()},[o]);let f=(0,t.useCallback)(e=>{let t=c.current?.getBoundingClientRect(),s=null===e?null:Math.round(n(e,a,Math.max(a,Math.min(l,(t?.width??l+i)-i))));u(s);try{null===s?localStorage.removeItem(d):localStorage.setItem(d,JSON.stringify(s))}catch{}},[l,a,i,d]),x=()=>c.current?.getBoundingClientRect();return{wide:o,gridRef:c,gridStyle:o&&null!==m?{gridTemplateColumns:`${m}px minmax(0,1fr)`}:void 0,splitter:{orientation:"vertical",value:(m??p)/Math.max(1,x()?.width??1)*100,onMove:e=>{let t=x();t&&f(e-t.left)},onStep:(e,t)=>f((m??p)+16*e*(t?4:1)),onReset:()=>f(null),className:"absolute inset-y-0 -translate-x-1/2",style:{left:`${p}px`}}}},"f",0,function(e,a){let l=r("(min-width: 1024px)"),i=r("(min-width: 1536px)"),o=(0,t.useRef)(null),[c,d]=(0,t.useState)({panel:null,beside:null,below:null});(0,t.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(s)??"null"),t=e=>"number"==typeof e&&Number.isFinite(e)?e:null;e&&d({panel:t(e.panel),beside:t(e.beside),below:t(e.below)})}catch{}},[]);let m=(0,t.useCallback)(e=>{d(t=>{let n={...t,...e};try{localStorage.setItem(s,JSON.stringify(n))}catch{}return n})},[]),u=n(c.panel??(i?256:240),180,480),p=a?u:0,h=n("below"===e?c.below??.5:c.beside??(i?5/12:.5),.2,.8),f=l?"below"===e?{gridTemplateColumns:`${p}px minmax(0,1fr)`,gridTemplateRows:`minmax(0,${h}fr) minmax(0,${1-h}fr)`}:{gridTemplateColumns:`${p}px minmax(0,${h}fr) minmax(0,${1-h}fr)`}:void 0,x=()=>o.current?.getBoundingClientRect(),y=(0,t.useCallback)(e=>{let t=x();t&&m({panel:n(e-t.left,180,Math.min(480,.4*t.width))})},[m]),v=(0,t.useCallback)((t,s)=>{let r=x();r&&("below"===e?m({below:n((s-r.top)/r.height,.2,.8)}):m({beside:n((t-r.left-p)/Math.max(1,r.width-p),.2,.8)}))},[m,e,p]);return{wide:l,gridRef:o,gridStyle:f,panelWidth:l?u:void 0,panel:{value:u/480*100,onMove:e=>y(e),onStep:(e,t)=>m({panel:n(u+16*e*(t?4:1),180,480)}),onReset:()=>m({panel:null}),style:{left:`${p}px`}},split:{value:100*h,onMove:v,onStep:(t,s)=>m("below"===e?{below:n(h+.02*t*(s?5:1),.2,.8)}:{beside:n(h+.02*t*(s?5:1),.2,.8)}),onReset:()=>m("below"===e?{below:null}:{beside:null}),style:"below"===e?{top:`${100*h}%`,left:`${p}px`,right:0}:{left:`calc(${p}px + (100% - ${p}px) * ${h})`,top:0,bottom:0}}}}])},61230,17847,e=>{e.s(["f",0,function(e){try{return decodeURI(e.replace(/\+/g,"%20")).replace(/%2C/gi,",").replace(/%24/g,"$").replace(/%27/g,"'").replace(/%3A/gi,":").replace(/%2F/gi,"/").replace(/%3D/gi,"=")}catch{return e}}],61230);var t=e.i(72587),s=e.i(55218),n=e.i(90484),r=e.i(14865);e.s(["c",0,function({at:e,label:a,onClose:l,children:i}){let o=(0,s.useRef)(null),[c,d]=(0,s.useState)(null);return((0,s.useLayoutEffect)(()=>{let t=o.current;if(!t)return;let s=(0,r.v)();d({left:Math.max(8,Math.min(e.x,s.width-t.offsetWidth-8)),top:Math.max(8,Math.min(e.y,s.height-t.offsetHeight-8))}),t.querySelector('[role="menuitem"]:not(:disabled)')?.focus()},[e]),(0,s.useEffect)(()=>{let e=e=>{o.current?.contains(e.target)||l()},t=e=>{if("Escape"===e.key)e.stopPropagation(),l();else if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=[...o.current?.querySelectorAll('[role="menuitem"]:not(:disabled)')??[]],s=t.indexOf(document.activeElement);t[(s+("ArrowDown"===e.key?1:-1)+t.length)%t.length]?.focus()}};return document.addEventListener("pointerdown",e,!0),document.addEventListener("scroll",e,!0),window.addEventListener("resize",l),window.addEventListener("keydown",t,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",l),window.removeEventListener("keydown",t,!0)}},[l]),"u"<typeof document)?null:(0,n.createPortal)((0,t.jsx)("div",{ref:o,role:"menu","aria-label":a,style:{left:c?.left??-9999,top:c?.top??-9999},className:"fixed z-[80] w-56 rounded-lg border border-line bg-panel p-1 shadow-2xl",children:i}),document.body)},"d",0,function({icon:e,label:s,hint:n,onSelect:r,danger:a=!1,disabled:l=!1}){return(0,t.jsxs)("button",{type:"button",role:"menuitem",disabled:l,onClick:r,className:`flex w-full items-center gap-2.5 rounded-md px-2.5 py-1.5 text-left text-sm disabled:opacity-40 ${a?"text-bad hover:bg-bad/10":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsx)("span",{className:`flex w-4 shrink-0 justify-center ${a?"":"text-mute"}`,"aria-hidden":!0,children:e?(0,t.jsx)(e,{size:14}):null}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:s}),n?(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-mute",children:n}):null]})},"U",0,function({children:e}){return(0,t.jsx)("div",{className:"px-2.5 pt-1.5 pb-1 text-[11px] font-medium tracking-wide text-mute uppercase",children:e})},"Z",0,function(){return(0,t.jsx)("div",{role:"separator",className:"my-1 h-px bg-line"})}],17847)},17219,e=>{let t=new Uint32Array(256).map((e,t)=>{let s=t;for(let e=0;e<8;e++)s=1&s?0xedb88320^s>>>1:s>>>1;return s>>>0});function s(e){let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!0),t}function n(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),t}function r(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),s=0;for(let n of e)t.set(n,s),s+=n.length;return t}e.s(["f",0,function(e){let a=new TextEncoder,l=[],i=[],o=0;for(let[c,d]of Object.entries(e)){let e=a.encode(c),m="string"==typeof d?a.encode(d):d,u=function(e){let s=0xffffffff;for(let n of e)s=t[(s^n)&255]^s>>>8;return(0xffffffff^s)>>>0}(m),p=r([n(0x4034b50),s(20),s(0),s(0),s(0),s(0),n(u),n(m.length),n(m.length),s(e.length),s(0),e,m]),h=r([n(0x2014b50),s(20),s(20),s(0),s(0),s(0),s(0),n(u),n(m.length),n(m.length),s(e.length),s(0),s(0),s(0),s(0),n(0),n(o),e]);l.push(p),i.push(h),o+=p.length}let c=r(i),d=r([n(0x6054b50),s(0),s(0),s(Object.keys(e).length),s(Object.keys(e).length),n(c.length),n(o),s(0)]),m=r([...l,c,d]);return new Blob([m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)],{type:"application/zip"})}])},13643,e=>{let t=(0,e.i(99522).f)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);e.s(["f",0,t],13643)},95211,e=>{let t=(0,e.i(99522).f)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["f",0,t],95211)},81538,e=>{let t=(0,e.i(99522).f)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["f",0,t],81538)},13163,e=>{let t=(0,e.i(99522).f)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["f",0,t],13163)},3792,e=>{let t=(0,e.i(99522).f)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["f",0,t],3792)},95927,e=>{let t=(0,e.i(99522).f)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["f",0,t],95927)},66478,14168,e=>{let t=(0,e.i(99522).f)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);async function s(e){let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Engine error (${e.status})`);return t}e.s(["f",0,t],66478);let n=(e,t,s)=>fetch(t,{method:e,headers:void 0===s?void 0:{"content-type":"application/json"},body:void 0===s?void 0:JSON.stringify(s)});e.s(["Y",0,{plan:e=>fetch(`/engine/suites/plan?collection=${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),savePlan:(e,t)=>n("PUT","/engine/suites/plan",{collection:e,...t}).then(e=>s(e)),start:e=>n("POST","/engine/suites/runs",e).then(e=>s(e)),get:e=>fetch(`/engine/suites/runs/${encodeURIComponent(e)}`,{cache:"no-store"}).then(e=>s(e)),stop:e=>n("POST",`/engine/suites/runs/${encodeURIComponent(e)}/stop`).then(e=>s(e))},"W",0,function(e){return`/suite?c=${encodeURIComponent(e)}`}],14168)},36558,e=>{function t(e,s=2){if(!Number.isFinite(e))return 0;let n=10**s;return Math.round(e*n)/n}function s(e){return e>=100?Math.round(e):e>=10?t(e,1):t(e,2)}function n(e){return e>=10?Math.round(e):t(e,1)}function r(e,t=e=>e){return null==e?"":t(e)}e.s(["V",0,[{key:"elapsed_s",header:"Seconds into test",description:"Seconds from the start of the run."},{key:"ts",header:"Clock time",description:"Wall-clock time for this one-second sample."},{key:"vus",header:"Concurrent users",description:"Virtual users (VUs) active in this second."},{key:"rps",header:"Requests per second",description:"Completed requests in this second."},{key:"p50_ms",header:"Median latency (ms)",description:"Half of requests this second were faster than this."},{key:"p95_ms",header:"95th percentile (ms)",description:"95% of requests this second were faster than this."},{key:"p99_ms",header:"99th percentile (ms)",description:"The slow tail this second — 1 in 100 was slower."},{key:"failed_rate",header:"Error rate",description:"Share of requests that failed in this second (0–1)."},{key:"http_2xx",header:"Success (2xx)",description:"Successful HTTP responses this second."},{key:"http_4xx",header:"Client errors (4xx)",description:"Client / auth errors this second."},{key:"http_5xx",header:"Server errors (5xx)",description:"Server errors this second."},{key:"http_0",header:"Network failures",description:"No HTTP status (timeout / reset) this second."},{key:"bytes_in",header:"Bytes received",description:"Response bytes this second."},{key:"bytes_out",header:"Bytes sent",description:"Request bytes this second."},{key:"p90_ms",header:"90th percentile (ms)",description:"90% of requests this second were faster than this."},{key:"p999_ms",header:"99.9th percentile (ms)",description:"1 in 1,000 requests this second was slower than this."},{key:"max_ms",header:"Slowest (ms)",description:"Slowest request this second."},{key:"ttfb_ms",header:"Server time (ms)",description:"Average time to first byte this second — the server's own work."},{key:"connect_ms",header:"TCP connect (ms)",description:"Average TCP connect time this second (0 when connections are reused)."},{key:"tls_ms",header:"TLS handshake (ms)",description:"Average TLS handshake time this second."},{key:"checks_passed",header:"Checks passed",description:"Response checks that passed this second."},{key:"checks_failed",header:"Checks failed",description:"Response checks that failed this second."},{key:"dropped",header:"Dropped requests",description:"Rate mode: requests k6 could not start this second."}],"u",0,function(e){return[e.elapsedS,e.ts,t(e.vus,1),s(e.rps),n(e.p50Ms),n(e.p95Ms),n(e.p99Ms),t(e.failedRate,4),e.http2xx,e.http4xx,e.http5xx,e.http0,e.bytesIn,e.bytesOut,r(e.p90Ms,n),r(e.p999Ms,n),r(e.maxMs,n),r(e.ttfbMs,n),r(e.connectMs,n),r(e.tlsMs,n),r(e.checksPassed),r(e.checksFailed),r(e.dropped)]},"E",0,function(e){let{summary:r}=e,a=[{key:"run_id",value:e.id,description:"Id of this run in this browser tab."},{key:"test_name",value:e.testName,description:"Display name (method, path, time)."},{key:"status",value:e.status,description:"completed, failed, cancelled, or still running."},{key:"started_at",value:e.startedAt,description:"When the load test started (UTC)."},{key:"ended_at",value:e.endedAt,description:"When the load test finished (UTC)."},{key:"method",value:e.definition.method,description:"HTTP method that was repeated."},{key:"url",value:e.definition.url,description:"Target URL (secrets are not exported)."},{key:"auth_mode",value:e.definition.auth.mode,description:"Auth used: none, bearer, basic, or api_key. The secret is not exported."},{key:"executor",value:e.definition.load.executor,description:"Load pattern: constant-vus (steady) or ramping-vus (ramp / hold / down)."},{key:"requests",value:r.http.requests,description:"How many HTTP calls finished. Zero usually means the target never answered."},{key:"rps_avg",value:s(r.http.rps.avg),description:"Average requests per second completed by this generator."},{key:"rps_max",value:s(r.http.rps.max),description:"Peak requests per second in any one-second sample."},{key:"failed_count",value:r.http.failed.count,description:"Requests that failed (4xx, 5xx, timeout, or no status)."},{key:"failed_rate",value:t(r.http.failed.rate,4),description:"Failed / total. Default warning bar is 1% (0.01)."},{key:"latency_min_ms",value:n(r.latencyMs.min),description:"Fastest request (milliseconds)."},{key:"latency_mean_ms",value:n(r.latencyMs.mean),description:"Average response time. Slow outliers pull this up."},{key:"latency_p50_ms",value:n(r.latencyMs.median),description:"Median — half of requests were faster than this."},{key:"latency_p95_ms",value:n(r.latencyMs.p95),description:"95th percentile — 95% of requests were faster. Usual headline latency."},{key:"latency_p99_ms",value:n(r.latencyMs.p99),description:"99th percentile — the slow tail (1 in 100 was slower)."},{key:"latency_max_ms",value:n(r.latencyMs.max),description:"Slowest single request."},{key:"vus_max",value:r.vus.max,description:"Peak concurrent users (virtual users / VUs)."},{key:"vus_avg",value:t(r.vus.avg,1),description:"Average concurrent users over the run."},{key:"bytes_in",value:r.data.bytesIn,description:"Response bytes received by the generator."},{key:"bytes_out",value:r.data.bytesOut,description:"Request bytes sent by the generator."},{key:"phase_ttfb_avg_ms",value:n(r.phasesMs.ttfb.avg),description:"Time to first byte — waiting on the server after the connection is up."},{key:"phase_tls_avg_ms",value:n(r.phasesMs.tls.avg),description:"TLS handshake time. High values often mean a far or overloaded endpoint."}];for(let[e,t]of Object.entries(r.http.status)){let s="0"===e?"No HTTP status (timeout / network).":Number(e)>=500?"Server error.":Number(e)>=400?"Client / auth error.":"Success-class response.";a.push({key:`status_${e}`,value:t,description:`How many responses had status ${e}. ${s}`})}for(let e of r.thresholds)a.push({key:`threshold:${e.name}`,value:e.ok?"pass":"fail",description:"k6 threshold result for this run."});return a}])}])})();