apitestcenter 0.18.2 → 0.18.3
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/dist/THIRD-PARTY-NOTICES-UI.txt +1 -1
- package/dist/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/cli.mjs +245 -245
- package/dist/ui/404/index.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +5 -5
- package/dist/ui/__next._full.txt +5 -5
- package/dist/ui/__next._tree.txt +1 -1
- package/dist/ui/_next/static/chunks/{2c1b5jqwxl4ra.js → 1snbdq1z951ks.js} +2 -2
- package/dist/ui/_next/static/chunks/{2sb9zma7ae-_f.js → 2sr5dm3__ghgo.js} +1 -1
- package/dist/ui/_next/static/chunks/{1mm60-ywpri7b.js → 3eti_s9gpiis0.js} +2 -2
- package/dist/ui/_not-found/__next._full.txt +3 -3
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +3 -3
- package/dist/ui/_not-found/__next._tree.txt +1 -1
- package/dist/ui/_not-found/index.html +1 -1
- package/dist/ui/_not-found/index.txt +3 -3
- package/dist/ui/compare/__next._full.txt +3 -3
- package/dist/ui/compare/__next._tree.txt +1 -1
- package/dist/ui/compare/__next.compare.__PAGE__.txt +3 -3
- package/dist/ui/compare/index.html +1 -1
- package/dist/ui/compare/index.txt +3 -3
- package/dist/ui/connections/__next._full.txt +3 -3
- package/dist/ui/connections/__next._tree.txt +1 -1
- package/dist/ui/connections/__next.connections.__PAGE__.txt +3 -3
- package/dist/ui/connections/index.html +2 -2
- package/dist/ui/connections/index.txt +3 -3
- package/dist/ui/history/__next._full.txt +5 -5
- package/dist/ui/history/__next._tree.txt +1 -1
- package/dist/ui/history/__next.history.__PAGE__.txt +5 -5
- package/dist/ui/history/index.html +1 -1
- package/dist/ui/history/index.txt +5 -5
- package/dist/ui/home/__next._full.txt +5 -5
- package/dist/ui/home/__next._tree.txt +1 -1
- package/dist/ui/home/__next.home.__PAGE__.txt +5 -5
- package/dist/ui/home/index.html +1 -1
- package/dist/ui/home/index.txt +5 -5
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +5 -5
- package/dist/ui/preview/__next._full.txt +3 -3
- package/dist/ui/preview/__next._tree.txt +1 -1
- package/dist/ui/preview/__next.preview.__PAGE__.txt +3 -3
- package/dist/ui/preview/index.html +1 -1
- package/dist/ui/preview/index.txt +3 -3
- package/dist/ui/suite/__next._full.txt +3 -3
- package/dist/ui/suite/__next._tree.txt +1 -1
- package/dist/ui/suite/__next.suite.__PAGE__.txt +3 -3
- package/dist/ui/suite/index.html +1 -1
- package/dist/ui/suite/index.txt +3 -3
- package/dist/ui/tests/__next._full.txt +3 -3
- package/dist/ui/tests/__next._tree.txt +1 -1
- package/dist/ui/tests/__next.tests.__PAGE__.txt +3 -3
- package/dist/ui/tests/index.html +1 -1
- package/dist/ui/tests/index.txt +3 -3
- package/package.json +1 -1
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → lomhkNrlljr9WxdUu6_Mc}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → lomhkNrlljr9WxdUu6_Mc}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/_next/static/{8uBf4sRL82dkVbEC6zib9 → lomhkNrlljr9WxdUu6_Mc}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6980,e=>{var t=e.i(72587);e.i(24856);var s=e.i(90870),n=e.i(2385),a=e.i(36163),r=e.i(78451),l=e.i(90139),i=e.i(95486),o=e.i(1245),c=e.i(33577),d=e.i(89932),u=e.i(85905),m=e.i(47677),h=e.i(20621),x=e.i(91694),p=e.i(30197),f=e.i(27813),b=e.i(99522);let y=(0,b.f)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),g=(0,b.f)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);var v=e.i(3792),k=e.i(5769),j=e.i(71189);let w=(0,b.f)("rows-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);var N=e.i(95927),S=e.i(50962),q=e.i(66478);let $=(0,b.f)("square-x",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var C=e.i(10281),E=e.i(87283),R=e.i(55218),M=e.i(63343),O=e.i(44794),z=e.i(31753),L=e.i(29724),I=e.i(60566),P=e.i(39170),A=e.i(13318),T=e.i(68228),D=e.i(59100);let U=(0,b.f)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var F=e.i(80707),J=e.i(56396);e.i(42674);var _=e.i(5305),V=e.i(6278);let H="\0new";function B(e,t){if(!t.has("baseUrl"))return"baseUrl";let s="api";try{s=new URL(e).hostname.split(".")[0].replace(/[^A-Za-z0-9]/g,"")||"api"}catch{}let n=`${s}Url`;for(let e=2;t.has(n);e++)n=`${s}Url${e}`;return n}function K({draft:e,sent:s,onChange:n}){let{environments:a,activeEnv:r,vars:l}=(0,V.U)(),[i,o]=(0,R.useState)(!1),c=function(e){try{let t=new URL(e);if(!/^https?:$/.test(t.protocol)||["localhost","127.0.0.1"].includes(t.hostname))return[];let s=t.origin,n=t.pathname.split("/").filter(Boolean);return n.length>=2?[s,`${s}/${n[0]}`]:[s]}catch{return[]}}(e.url),d=new Set(Object.values(l).map(e=>e.trim().replace(/\/+$/,"")));return!s||!c.length||c.some(e=>d.has(e))?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-accent hover:underline",title:"Keep this server address in an environment",children:[(0,t.jsx)(U,{size:13,"aria-hidden":!0})," Save ",c[0].replace(/^https?:\/\//,"")," as a base URL"]}),i?(0,t.jsx)(W,{draft:e,addresses:c,environments:a,activeEnvId:r?.id??null,onChange:n,onClose:()=>o(!1)}):null]})}function W({draft:e,addresses:s,environments:n,activeEnvId:a,onChange:r,onClose:l}){let i=(0,J.d)(),{index:o,saveEnvironments:c,setActiveEnv:d,refresh:u}=(0,V.U)(),[m,h]=(0,R.useState)(s[0]),[x,p]=(0,R.useState)(a??n[0]?.id??H),[f,b]=(0,R.useState)(()=>{try{return new URL(s[0]).hostname.split(".").slice(0,2).join(" ")}catch{return"My API"}}),y=n.find(e=>e.id===x)??null,g=(0,R.useMemo)(()=>new Set((y?.variables??[]).map(e=>e.key)),[y]),[v,k]=(0,R.useState)(()=>B(s[0],g)),[j,w]=(0,R.useState)(!0),[N,S]=(0,R.useState)(!1),q=(0,R.useRef)(null);(0,R.useEffect)(()=>q.current?.focus(),[]),(0,R.useEffect)(()=>k(B(m,g)),[m,g]);let $=(o?.requests??[]).filter(t=>t.url.startsWith(m)&&t.url!==e.url),C=y?.variables.find(e=>e.key===v),M=D.y.test(v)&&(x!==H||f.trim());async function O(){if(M&&!N){S(!0);try{let t=x===H?globalThis.crypto?.randomUUID?.()??`env-${Date.now().toString(36)}`:x,s=structuredClone(n),a=s.find(e=>e.id===t);a||(a={id:t,name:f.trim(),variables:[]},s.push(a)),a.variables=[...a.variables.filter(e=>e.key!==v),{key:v,value:m,secret:!1}],await c(s),d(t),r((0,_.e)(e,`{{${v}}}${e.url.slice(m.length)}`));let o=0,h=0;if(j){for(let e of $){let t=await V.v.get(e.id).catch(()=>null);if(!t||t.secretsMissing?.length){h++;continue}let s=(0,_.i)(t.request);s.url.startsWith(m)&&(await V.v.update(e.id,{name:t.name,collection:t.collection,request:(0,_.e)(s,`{{${v}}}${s.url.slice(m.length)}`)}),o++)}await u()}i(`Saved {{${v}}} in ${a.name}.${o?` ${o} other saved request${1===o?"":"s"} now use it.`:""}${h?` ${h} left as they were (a saved secret isn't available).`:""} Save this request to keep the change.`,"success"),l()}catch(e){i(e instanceof Error?e.message:"Could not save the base URL","error")}finally{S(!1)}}}return(0,t.jsx)("div",{className:"fixed inset-0 z-[75] flex items-center-safe justify-center overflow-y-auto bg-black/50 p-4 sm:p-16",role:"presentation",onMouseDown:e=>e.target===e.currentTarget&&!N&&l(),children:(0,t.jsxs)("form",{role:"dialog","aria-modal":"true","aria-labelledby":"save-base-title",onSubmit:e=>{e.preventDefault(),O()},onKeyDown:e=>"Escape"===e.key&&!N&&l(),className:"w-full max-w-lg space-y-4 rounded-xl border border-line bg-panel p-5 shadow-2xl",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{id:"save-base-title",className:"text-base font-medium text-ink",children:"Save as a base URL"}),(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":"Close",className:"ml-auto rounded p-1 text-mute hover:text-ink",children:(0,t.jsx)(E.X,{size:16})})]}),(0,t.jsx)("p",{className:"text-sm text-mute",children:"Keep the server address in an environment, so you type only the path — and switch servers (UAT, Prod) by switching environments."}),(0,t.jsxs)("fieldset",{className:"space-y-1.5",children:[(0,t.jsx)("legend",{className:"mb-1 text-xs text-mute",children:"Address"}),s.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"radio",name:"address",checked:m===e,onChange:()=>h(e)}),(0,t.jsx)("span",{className:"font-mono text-xs break-all",children:e})]},e))]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Environment",(0,t.jsx)(F.f,{label:"Environment",value:x,onChange:p,options:[...n.map(e=>({value:e.id,label:e.name,hint:`${e.variables.length} variables`})),{value:H,label:"New environment…"}],className:"rounded-md border border-line bg-panel-2 px-2 py-1.5 text-sm text-ink"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Variable name",(0,t.jsx)("input",{ref:q,value:v,onChange:e=>k(e.target.value.replace(/[^\w.-]/g,"")),className:"input py-1.5 font-mono text-sm"})]}),x===H?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute sm:col-span-2",children:["New environment name",(0,t.jsx)("input",{value:f,onChange:e=>b(e.target.value),className:"input py-1.5 text-sm"})]}):null]}),C&&C.value!==m?(0,t.jsxs)("p",{className:"text-xs text-warn",children:[`{{${v}}}`," already exists in this environment (",C.value,") — it will be replaced."]}):null,(0,t.jsxs)("p",{className:"rounded-md bg-panel-2 px-3 py-2 font-mono text-xs text-ink break-all",children:[`{{${v}}}`,(0,t.jsx)("span",{className:"text-mute",children:e.url.slice(m.length)||"/"})]}),$.length?(0,t.jsxs)("label",{className:"flex items-start gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:j,onChange:e=>w(e.target.checked),className:"mt-1"}),(0,t.jsxs)("span",{children:["Also switch ",$.length," other saved request",1===$.length?"":"s"," that use this address",(0,t.jsxs)("span",{className:"block text-xs text-mute",children:[$.slice(0,3).map(e=>e.name).join(", "),$.length>3?` and ${$.length-3} more`:""]})]})]}):null,(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:N,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:!M||N,children:"Save base URL"})]})]})})}var Z=e.i(65638),G=e.i(37837),X=e.i(17847);function Q(e,t){let s=(0,R.useRef)(!0);(0,R.useEffect)(()=>{if(s.current){s.current=!1;return}let t=e.current;!t||function(){try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}()||"function"!=typeof t.animate||t.animate([{opacity:.35,transform:"translateY(3px)"},{opacity:1,transform:"none"}],{duration:180,easing:"cubic-bezier(0.2, 0, 0, 1)"})},[e,t])}var Y=e.i(97716);let ee=(e,t)=>"number"==typeof t?`${e}[${t}]`:/^[A-Za-z_$][\w$]*$/.test(t)?`${e}.${t}`:`${e}[${JSON.stringify(t)}]`;var et=e.i(96659),es=e.i(19656);function en({requestId:e,refreshKey:s,onOpen:n}){let a=(0,R.useRef)(null),[r,l]=(0,R.useState)(!1),[i,o]=(0,R.useState)([]),c=()=>void fetch(`/engine/responses/${e}`,{cache:"no-store"}).then(e=>e.ok?e.json():{answers:[]}).then(e=>o(e.answers)).catch(()=>void 0);return((0,R.useEffect)(c,[e,s]),i.length<2)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:a,type:"button",onClick:()=>l(e=>!e),"aria-expanded":r,title:"Earlier answers of this request — open one, or see what changed",className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-0.5 text-xs text-mute hover:border-accent hover:text-ink",children:[(0,t.jsx)(x.f,{size:12,"aria-hidden":!0})," Earlier · ",i.length-1]}),(0,t.jsx)(G.f,{anchor:a,open:r,onClose:()=>l(!1),label:"Earlier answers",width:340,children:(0,t.jsxs)("div",{className:"max-h-80 overflow-auto p-1",children:[(0,t.jsxs)("p",{className:"px-2 py-1.5 text-xs text-mute",children:["The last ",i.length," answers of this request, newest first · ",(0,es.L)(i.reduce((e,t)=>e+t.size,0))," kept"]}),(0,t.jsx)("ul",{children:i.map((s,a)=>{let r;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:async()=>{let t=await fetch(`/engine/responses/${e}/${a}`,{cache:"no-store"});t.ok&&n(await t.json(),a),l(!1)},className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs hover:bg-panel-2",children:[(0,t.jsx)("span",{className:`rounded border px-1.5 font-mono ${(0,I.Z)(s.status)}`,children:s.status||"ERR"}),(0,t.jsx)("span",{className:"text-ink",children:0===a?"Latest":(r=new Date(s.at),new Date().toDateString()===r.toDateString()?r.toLocaleTimeString():r.toLocaleString())}),(0,t.jsxs)("span",{className:"ml-auto font-mono text-mute",children:[Math.round(s.durationMs)," ms"]}),(0,t.jsx)("span",{className:"w-16 text-right font-mono text-mute",children:(0,es.L)(s.size)}),s.checks?(0,t.jsxs)("span",{className:s.passed===s.checks?"text-ok":"text-bad",children:[s.passed,"/",s.checks]}):null]})},s.at)})}),(0,t.jsxs)("button",{type:"button",onClick:async()=>{await fetch(`/engine/responses/${e}`,{method:"DELETE"}),l(!1),c()},className:"mt-1 flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs text-mute hover:bg-panel-2 hover:text-bad",children:[(0,t.jsx)(et.f,{size:12,"aria-hidden":!0})," Forget these answers"]})]})})]})}function ea(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}let er=e=>{let t="string"==typeof e?JSON.stringify(e):JSON.stringify(e)??"undefined";return t.length>80?`${t.slice(0,79)}…`:t};function el({earlier:e,latest:s}){let n=(0,R.useMemo)(()=>(function(e,t,s=200){let n,a;try{n=JSON.parse(e),a=JSON.parse(t)}catch{return null}let r=[],l=(e,t,n,a)=>{if(r.length>=s)return;let i=null!==t&&"object"==typeof t;if(null!==e&&"object"==typeof e&&i&&Array.isArray(e)===Array.isArray(t)&&a<40){if(Array.isArray(e)&&Array.isArray(t)){for(let i=0;i<Math.max(e.length,t.length)&&(i>=e.length?r.push({path:ee(n,i),kind:"added",after:t[i]}):i>=t.length?r.push({path:ee(n,i),kind:"removed",before:e[i]}):l(e[i],t[i],ee(n,i),a+1),!(r.length>=s));i++);return}for(let i of new Set([...Object.keys(e),...Object.keys(t)]))if(i in t?i in e?l(e[i],t[i],ee(n,i),a+1):r.push({path:ee(n,i),kind:"added",after:t[i]}):r.push({path:ee(n,i),kind:"removed",before:e[i]}),r.length>=s)break;return}JSON.stringify(e)!==JSON.stringify(t)&&r.push({path:n,kind:"changed",before:e,after:t})};return l(n,a,"$",0),r})(e.body,s.body),[e.body,s.body]),a=(0,R.useMemo)(()=>(function(e,t,s=3e3){let n=e.split("\n"),a=t.split("\n"),r=n.length>s||a.length>s;n=n.slice(0,s),a=a.slice(0,s);let l=0;for(;l<n.length&&l<a.length&&n[l]===a[l];)l++;let i=n.length,o=a.length;for(;i>l&&o>l&&n[i-1]===a[o-1];)i--,o--;let c=n.slice(l,i),d=a.slice(l,o),u=n.slice(0,l).map(e=>({kind:"same",text:e}));if(c.length*d.length>4e6)u.push(...c.map(e=>({kind:"removed",text:e})),...d.map(e=>({kind:"added",text:e})));else{let e=d.length+1,t=new Uint32Array((c.length+1)*e);for(let s=c.length-1;s>=0;s--)for(let n=d.length-1;n>=0;n--)t[s*e+n]=c[s]===d[n]?t[(s+1)*e+n+1]+1:Math.max(t[(s+1)*e+n],t[s*e+n+1]);let s=0,n=0;for(;s<c.length&&n<d.length;)c[s]===d[n]?(u.push({kind:"same",text:c[s]}),s++,n++):t[(s+1)*e+n]>=t[s*e+n+1]?u.push({kind:"removed",text:c[s++]}):u.push({kind:"added",text:d[n++]});for(;s<c.length;)u.push({kind:"removed",text:c[s++]});for(;n<d.length;)u.push({kind:"added",text:d[n++]})}return u.push(...n.slice(i).map(e=>({kind:"same",text:e}))),{lines:u,cut:r}})(ea(e.body),ea(s.body)),[e.body,s.body]),r=a.lines.filter(e=>"same"!==e.kind).length;return(0,t.jsxs)("div",{className:"space-y-3 overflow-auto",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-mute",children:[(0,t.jsxs)("span",{children:["Status ",(0,t.jsx)("span",{className:"font-mono text-ink",children:e.status})," → ",(0,t.jsx)("span",{className:"font-mono text-ink",children:s.status}),e.status===s.status?" (same)":""]}),(0,t.jsxs)("span",{children:["Time ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(e.durationMs)," ms"]})," → ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(s.durationMs)," ms"]})]}),(0,t.jsx)("span",{children:r?`${r} line${1===r?"":"s"} differ`:"The body is the same"})]}),e.masked?(0,t.jsx)("p",{className:"text-xs text-mute",children:"Values that look like secrets were hidden when the earlier answer was kept, so they show as changed."}):null,n&&n.length?(0,t.jsxs)("section",{"aria-label":"Changed fields",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:[n.length," field",1===n.length?"":"s"," changed",n.length>=200?" (the first 200)":""]}),(0,t.jsx)("ul",{className:"max-h-56 space-y-0.5 overflow-auto rounded-md border border-line bg-panel-2 p-2 font-mono text-xs",children:n.map((e,s)=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"text-ink",children:e.path})," ","changed"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-bad line-through decoration-bad/60",children:er(e.before)})," → ",(0,t.jsx)("span",{className:"text-ok",children:er(e.after)})]}):"added"===e.kind?(0,t.jsxs)("span",{className:"text-ok",children:["added ",er(e.after)]}):(0,t.jsxs)("span",{className:"text-bad",children:["removed (was ",er(e.before),")"]})]},s))})]}):null,(0,t.jsxs)("section",{"aria-label":"Line by line",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:["Line by line",a.cut?" (the first 3,000 lines)":""]}),(0,t.jsx)("pre",{className:"max-h-[28rem] overflow-auto rounded-md border border-line bg-panel-2 py-2 font-mono text-[12.5px] leading-5",children:a.lines.map((e,s)=>(0,t.jsxs)("div",{className:"added"===e.kind?"bg-ok/10 text-ok":"removed"===e.kind?"bg-bad/10 text-bad":"text-ink",children:[(0,t.jsx)("span",{className:"inline-block w-5 select-none text-center text-mute",children:"added"===e.kind?"+":"removed"===e.kind?"−":" "}),e.text]},s))})]})]})}var ei=e.i(21206),eo=e.i(20054);let ec="apitestcenter-lab-draft";var ed=e.i(59180),eu=e.i(88153),em=e.i(2603),eh=e.i(28950),ex=e.i(99822),ep=e.i(62766),ef=e.i(32610),eb=e.i(14865),ey=e.i(46679),eg=e.i(65238),ev=e.i(7149),ek=e.i(727),ej=e.i(45672),ew=e.i(69578),eN=e.i(17118),eS=e.i(40945),eq=e.i(27122);function e$({steps:e,startedAt:s,onCancel:n}){let[a,r]=(0,R.useState)(()=>Date.now()),[l]=(0,R.useState)(()=>new Map);for(let t of e)"start"!==t.state||l.has(t.id)||l.set(t.id,Date.now());(0,R.useEffect)(()=>{let e=window.setInterval(()=>r(Date.now()),100);return()=>window.clearInterval(e)},[]);let i=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`;return a-s<250?(0,t.jsx)("div",{className:"flex-1","aria-busy":"true"}):(0,t.jsxs)("div",{role:"status","aria-label":"Sending",className:"flex flex-1 flex-col items-center justify-center gap-5 py-10",children:[(0,t.jsxs)("ul",{className:"w-full max-w-md space-y-2",children:[e.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm",children:["done"===e.state?(0,t.jsx)(eN.f,{size:16,className:"shrink-0 text-ok","aria-label":"done"}):"failed"===e.state?(0,t.jsx)(eq.f,{size:16,className:"shrink-0 text-bad","aria-label":"failed"}):(0,t.jsx)(f.f,{size:16,className:"shrink-0 animate-spin text-accent","aria-label":"running"}),(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate ${"start"===e.state?"text-ink":"text-mute"}`,children:e.label}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-mute",children:void 0!==e.ms?i(e.ms):i(a-(l.get(e.id)??a))})]},e.id)),e.every(e=>"start"!==e.state)?(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm text-mute",children:[(0,t.jsx)(eS.f,{size:16,className:"shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"flex-1",children:"Starting…"})]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:n,children:"Cancel"}),(0,t.jsxs)("span",{className:"font-mono text-xs text-mute",children:[i(a-s)," in all"]})]})]})}var eC=e.i(48181),eE=e.i(25120),eR=e.i(97942),eM=e.i(91549);let eO=(0,eE.f)("apitestcenter-lab-saved"),ez="apitestcenter-requests-panel",eL="lab:answers",eI=(0,eE.f)("apitestcenter-lab-tabs"),eP=()=>Math.random().toString(36).slice(2,10),eA=JSON.stringify((0,_.t)()),eT=()=>({key:eP(),draft:(0,_.t)(),saved:null,result:null,liveId:null,liveOpen:!1}),eD=e=>e.saved?.name??(e.draft.url.trim()?(0,_.m)(e.draft).replace(/ · \d.*$/,"").replace(/^[A-Z]+ /,""):"New request"),eU=e=>e.saved?JSON.stringify(e.draft)!==e.saved.snapshot:JSON.stringify(e.draft)!==eA,eF={GET:"text-ok",POST:"text-warn",PUT:"text-accent",PATCH:"text-accent",DELETE:"text-bad"},eJ=(0,eE.f)("apitestcenter-last-run");function e_(e){try{sessionStorage.setItem(eJ,e)}catch{}}function eV(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-accent opacity-60"}),(0,t.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-accent"})]}),"Load running"]})}function eH({title:e,lines:s,action:n}){return(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center rounded-lg border border-dashed border-line px-6 py-14 text-center",children:[(0,t.jsx)("h2",{className:"text-base font-medium text-ink",children:e}),(0,t.jsx)("div",{className:"mt-2 max-w-md space-y-1.5 text-sm text-mute",children:s.map((e,s)=>(0,t.jsx)("p",{children:e},s))}),n?(0,t.jsx)("div",{className:"mt-5",children:n}):null]})}function eB({runs:e,current:s,disabled:a,onPick:r}){let{slo:l}=(0,eu.G)(),[o,c]=(0,R.useState)(!1),d=(0,R.useRef)(null),u=(0,R.useMemo)(()=>e.slice(0,30),[e]);return(0,R.useEffect)(()=>{if(!o)return;let e=e=>{d.current?.contains(e.target)||c(!1)},t=e=>"Escape"===e.key&&c(!1);return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[o]),(0,t.jsxs)("div",{ref:d,className:"relative",children:[(0,t.jsxs)("button",{type:"button",disabled:a,"aria-haspopup":"listbox","aria-expanded":o,onClick:()=>c(e=>!e),className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-1 text-xs text-mute hover:text-ink disabled:opacity-40",children:["Recent runs",u.length?(0,t.jsx)("span",{className:"rounded bg-panel-2 px-1 font-mono text-[10px] text-ink",children:u.length}):null,(0,t.jsx)(i.f,{size:12})]}),o?(0,t.jsx)("ul",{role:"listbox","aria-label":"Recent runs",className:"absolute right-0 z-30 mt-1 max-h-80 w-80 overflow-auto rounded-md border border-line bg-panel p-1 shadow-xl",children:u.map(e=>{let a=(0,n.F)(e.verdict,{slo:l}).overall,i=s?.id===e.id;return(0,t.jsx)("li",{role:"option","aria-selected":i,children:(0,t.jsxs)("button",{type:"button",onClick:()=>{r(e),c(!1)},className:`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-left text-xs ${i?"bg-accent-dim text-ink":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsxs)("span",{className:"min-w-0 truncate",children:[e.baseline?(0,t.jsx)("span",{className:"mr-1 text-accent",title:"Baseline",children:"◆"}):null,e.name]}),(0,t.jsx)(eK,{level:a})]})},e.id)})}):null]})}function eK({level:e}){let s="pass"===e?"text-ok":"fail"===e?"text-bad":"text-warn";return(0,t.jsxs)("span",{className:`shrink-0 font-mono text-xs uppercase ${s}`,children:[(0,t.jsxs)("span",{"aria-hidden":!0,children:["pass"===e?"✓":"fail"===e?"✕":"!"," "]}),e]})}function eW(){let{slo:e,setSlo:s,ready:n}=(0,eu.G)(),[a,r]=(0,R.useState)(!1),[l,i]=(0,R.useState)(500),[o,c]=(0,R.useState)(0),[d,u]=(0,R.useState)(1),[m,h]=(0,R.useState)(99),[x,p]=(0,R.useState)(!1),f=(0,R.useRef)(!1);function b(e){let t={on:a,p95:l,p99:o,errPct:d,checksPct:m,abort:x,...e};if(r(t.on),i(t.p95),c(t.p99),u(t.errPct),h(t.checksPct),p(t.abort),!t.on||!(t.p95>0)||t.errPct<0)return s(null);s({p95Ms:t.p95,errorRate:t.errPct/100,p99Ms:t.p99>0?t.p99:void 0,checksRate:Math.min(100,Math.max(0,t.checksPct))/100,abortOnFail:t.abort})}(0,R.useEffect)(()=>{n&&!f.current&&(f.current=!0,e&&(r(!0),i(e.p95Ms),c(e.p99Ms??0),u(Number((100*e.errorRate).toFixed(4))),h(null!=e.checksRate?Number((100*e.checksRate).toFixed(2)):99),p(!0===e.abortOnFail)))},[n,e]);let y=(e,s,n,a)=>(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"mb-1 block text-xs text-mute",children:e}),(0,t.jsx)("input",{type:"number",min:a.min,max:a.max,step:a.step,value:s,onChange:e=>b({[n]:Number(e.target.value)}),className:"input font-mono"}),a.hint?(0,t.jsx)("span",{className:"mt-1 block text-xs text-mute",children:a.hint}):null]});return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-sm text-mute",children:"Targets decide whether a performance test passes. They are sent to k6 as thresholds, drive the verdict and the report colours, and are remembered on this computer."}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:e=>b({on:e.target.checked}),className:"accent-[var(--accent)]"}),"Use my own performance targets"]}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[y("p95 must stay under (ms)",l,"p95",{min:1}),y("p99 must stay under (ms)",o,"p99",{min:0,hint:"0 = no p99 target"}),y("Error rate must stay under (%)",d,"errPct",{min:0,max:100,step:.1}),y("Checks must pass at least (%)",m,"checksPct",{min:0,max:100,step:.1,hint:"Only used when the request has checks"})]}),(0,t.jsxs)("label",{className:"flex items-start gap-2 rounded-md border border-line px-3 py-2.5 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:x,onChange:e=>b({abort:e.target.checked}),className:"mt-0.5 accent-[var(--accent)]"}),(0,t.jsxs)("span",{children:["Stop the test early if a target is clearly missed",(0,t.jsx)("span",{className:"block text-xs text-mute",children:"After a 10-second warm-up, k6 ends the run as soon as a target fails — saves time and stops hammering a struggling API."})]})]})]}):(0,t.jsx)("p",{className:"rounded-md bg-panel-2 px-3 py-2 text-sm text-mute",children:"Using built-in defaults: warn at p95 ≥ 500 ms or errors ≥ 1%, fail at p95 ≥ 2 s or errors ≥ 5%. No thresholds are sent to k6."})]})}function eZ({dirty:e,isSaved:s,title:n,onSave:a,onSaveAs:r,onHistory:l,onExport:o}){let[c,d]=(0,R.useState)(!1),p=(0,R.useRef)(null);return(0,t.jsxs)("div",{className:"inline-flex",children:[(0,t.jsxs)("button",{type:"button",onClick:a,disabled:s&&!e,title:n,className:"btn btn-secondary rounded-r-none border-r-0",children:[(0,t.jsx)(N.f,{size:16,"aria-hidden":!0}),"Save",e?(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-accent","aria-label":"unsaved changes"}):null]}),(0,t.jsx)("button",{ref:p,type:"button",onClick:()=>d(e=>!e),"aria-label":"More ways to save","aria-haspopup":"menu","aria-expanded":c,className:"btn btn-secondary rounded-l-none px-2",children:(0,t.jsx)(i.f,{size:14,"aria-hidden":!0})}),(0,t.jsx)(G.f,{anchor:p,open:c,onClose:()=>d(!1),label:"More ways to save",width:220,role:"menu",children:(0,t.jsxs)("div",{className:"-m-2",children:[(0,t.jsx)(X.d,{icon:s?u.f:h.f,label:s?"Save as a new request…":"Save to a folder…",onSelect:()=>{d(!1),r()}}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:x.f,label:"Version history…",onSelect:()=>{d(!1),l()}})]}):null,o?(0,t.jsx)(X.d,{icon:m.f,label:"Export…",onSelect:()=>{d(!1),o()}}):null]})})]})}e.s(["LabPage",0,function(){var e;let i=(0,J.d)(),m=(0,P.L)(),x=(0,eo.J)(),b=(0,em.P)(),{slo:N}=(0,eu.G)(),{vars:D,activeEnv:U,refresh:F,rememberValues:H}=(0,V.U)(),[B,W]=(0,R.useState)(null),[G,ee]=(0,R.useState)(!1),[et,es]=(0,R.useState)(!0),ea=(0,R.useRef)(null),[er,eN]=(0,R.useState)(_.t),[eS,eq]=(0,R.useState)(_.j),[eE,eK]=(0,R.useState)(!1),[eG,eX]=(0,R.useState)(null),[eQ,eY]=(0,R.useState)(null),[e0,e1]=(0,R.useState)(!1),[e2,e5]=(0,R.useState)(null),[e6,e9]=(0,R.useState)(!1),e3=(0,R.useRef)(null),e7=(0,R.useRef)(null);Q(e3,B?.id),Q(e7,eG);let[e4,e8]=(0,R.useState)(!1),[te,tt]=(0,R.useState)([]),[ts,tn]=(0,R.useState)(0),ta=(0,R.useRef)(null),[tr,tl]=(0,R.useState)(!1),[ti,to]=(0,R.useState)(!1),[tc,td]=(0,R.useState)(null),[tu,tm]=(0,R.useState)(null),{index:th,refresh:tx}=(0,ed.K)(),tp=th?.runs??[],[tf,tb]=(0,R.useState)("response"),[ty,tg]=(0,R.useState)(!1),{layout:tv,setLayout:tk}=(0,eb.x)(),tj="below"===tv,tw=(0,ep.f)(tv,et),[tN,tS]=(0,R.useState)(!1),[tq,t$]=(0,R.useState)([]),[tC,tE]=(0,R.useState)("");(0,ex.R)(e0||tq.some(e=>e.key!==tC&&e.liveOpen),"a live connection is open");let tR=tu?.status==="running"||tu?.status==="queued",tM=(0,_.k)(er),tO=(0,_.w)(eS),tz=e4||tr;(0,R.useEffect)(()=>{let e=null;try{e=sessionStorage.getItem(eJ)}catch{}e&&(0,ei.c)(e).then(async t=>{if(t)return tm(t);let s=await ed.c.run(e).catch(()=>null);s&&tm({id:s.report.id,status:s.report.status,report:s.report})});let t=function(){try{let e=sessionStorage.getItem(ec);if(!e)return null;let t=JSON.parse(e);if(2===t.v)return{request:(0,_.i)(t.request),load:(0,_.W)(t.load)};return{request:(0,_.i)(t),load:(0,_.W)(t)}}catch{return null}}();t&&eq(t.load);let s=[],n="";try{let e=JSON.parse(localStorage.getItem(eI)??"null"),t=(0,eh.q)(eL)??{};s=(e?.tabs??[]).map(e=>({key:e.key||eP(),draft:(0,_.i)(e.draft),saved:e.saved??null,result:t[e.key]??null,liveId:null,liveOpen:!1})),n=e?.active??"",es("closed"!==localStorage.getItem(ez))}catch{}if(!s.length){let e=null;try{e=JSON.parse(sessionStorage.getItem(eO)??"null")}catch{}s=[{...eT(),draft:t?.request??(0,_.t)(),saved:e}]}let a=s.find(e=>e.key===n)??s[0];t$(s),tE(a.key),eN(a.draft),W(a.saved),eX(a.result),eK(!0)},[]),(0,R.useEffect)(()=>{if(!eE)return;let e={};for(let t of tq){let s=t.key===tC?eG:t.result;s&&(e[t.key]=s)}(0,eh.V)(eL,e)},[eE,tq,tC,eG]),(0,R.useEffect)(()=>{if(!eE)return;let e=window.setTimeout(()=>{try{sessionStorage.setItem(ec,JSON.stringify({v:2,request:er,load:eS}))}catch{}try{let e=tq.map(e=>e.key===tC?{key:e.key,draft:er,saved:B}:{key:e.key,draft:e.draft,saved:e.saved});localStorage.setItem(eI,JSON.stringify({tabs:e,active:tC}))}catch{}},250);return()=>window.clearTimeout(e)},[er,eS,eE,tq,tC,B]),(0,R.useEffect)(()=>{if(!tu||!tR)return;let e=!1,t=window.setInterval(async()=>{let t=await (0,ei.c)(tu.id);if(t&&!e&&(tm(t),(0,ei.P)(t.status))){tx();let e="completed"===t.status?"finished":t.status;i(`Performance test ${e}`,"failed"===t.status?"error":"success");let s=(0,n.s)(t.report,{slo:N});(0,ek.G)({title:`Performance test ${e}`,body:`${t.report.testName}
|
|
2
|
-
${"completed"===t.status?s.headline:t.error??"See the report for details."}`,ok:"completed"===t.status&&"fail"!==s.overall})}},500);return()=>{e=!0,window.clearInterval(t)}},[tu?.id,tR]);let tL=!!B&&JSON.stringify(er)!==B.snapshot;function tI(e){W(e);try{e?sessionStorage.setItem(eO,JSON.stringify(e)):sessionStorage.removeItem(eO)}catch{}}function tP(e){es(e);try{localStorage.setItem(ez,e?"open":"closed")}catch{}}async function tA(e){try{let t={name:e?.name??B.name,collection:e?.collection??B.collection,request:er},s=B&&!e?await V.v.update(B.id,t):await V.v.create(t);tI({id:s.id,name:s.name,collection:s.collection,snapshot:JSON.stringify(er)}),ee(!1),await F(),i(`Saved “${s.name}”${s.collection?` in ${s.collection}`:""}`,"success")}catch(e){i(e instanceof Error?e.message:"Could not save the request","error")}}let tT=()=>({key:tC,draft:er,saved:B,result:eG,liveId:eQ,liveOpen:e0});function tD(e){tE(e.key),eN(e.draft),tI(e.saved),eX(e.result),eY(e.liveId),e1(e.liveOpen),e5(null),e9(!1),to(!1),td(null),ee(!1),tb("response")}function tU(e){if(e===tC)return;let t=tq.find(t=>t.key===e);t&&(t$(e=>e.map(e=>e.key===tC?tT():e)),tD(t))}function tF(e,t){let s=!B&&!eG&&!eQ&&JSON.stringify(er)===eA,n={key:s?tC:eP(),draft:e,saved:t,result:null,liveId:null,liveOpen:!1};t$(e=>{if(s)return e.map(e=>e.key===tC?n:e);let t=e.map(e=>e.key===tC?tT():e),a=t.findIndex(e=>e.key===tC);return[...t.slice(0,a+1),n,...t.slice(a+1)]}),tD(n)}async function tJ(e){let t=tq.map(e=>e.key===tC?tT():e),s=t.filter(t=>e.includes(t.key));if(!s.length)return;let n=s.filter(eU);if(n.length){let e=1===s.length;if(!await m({title:e?`Close “${eD(n[0])}” without saving?`:`Close ${s.length} tabs?`,body:e?"Its changes have not been saved.":1===n.length?`“${eD(n[0])}” has changes that are not saved.`:`${n.length} of them have changes that are not saved.`,confirmLabel:"Close",tone:"danger"}))return}for(let e of s)e.liveId&&Y.D.close(e.liveId);let a=t.filter(t=>!e.includes(t.key));if(!e.includes(tC))return t$(a);let r=t.findIndex(e=>e.key===tC),l=t.slice(r+1).find(t=>!e.includes(t.key))??t.slice(0,r).reverse().find(t=>!e.includes(t.key))??eT();t$(a.length?a:[l]),tD(l)}let[t_,tV]=(0,R.useState)(null),[tH,tB]=(0,R.useState)(!1);async function tK(){try{let e=await V.v.index(),t=t=>e.requests.find(e=>"Practice"===e.collection&&e.name===t),s=t("Sign in")?.id??(await V.v.create({name:"Sign in",collection:"Practice",request:{...(0,_.e)({...(0,_.t)(),method:"POST"},"{{practiceApi}}/login"),bodyMode:"json",bodyText:'{\n "username": "you",\n "password": "demo"\n}',checks:[{type:"status",expect:"200"}]}})).id,n=t("My orders"),a=n?await V.v.get(n.id):await V.v.create({name:"My orders",collection:"Practice",request:{...(0,_.e)((0,_.t)(),"{{practiceApi}}/orders"),authMode:"bearer",token:"{{token}}",checks:[{type:"status",expect:"200"}],before:{requestId:s,requestName:"Sign in",extract:[{name:"token",from:"json",path:"data.token"}]}}});await F(),tP(!0),await tW(a),i("Added Practice → Sign in and My orders. Press Send: it signs in first, then uses the token.","success")}catch(e){i(e instanceof Error?e.message:"Could not add the practice requests","error")}}function tW(e){if(B?.id===e.id)return;let t=tq.find(t=>t.key!==tC&&t.saved?.id===e.id);if(t)return tU(t.key);let s=(0,_.i)(e.request);tF(s,{id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(s)})}(0,R.useEffect)(()=>{let e=()=>tB(!(0,ej.v)());return e(),window.addEventListener(ej.c,e),()=>window.removeEventListener(ej.c,e)},[]);let tZ=(0,R.useRef)(()=>{});tZ.current=e=>{let t=(0,_.i)(e.request),s={id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(t)};B?.id===e.id?(eN(t),tI(s)):t$(n=>n.map(n=>n.saved?.id===e.id?{...n,draft:t,saved:s}:n))},(0,R.useEffect)(()=>{let e=e=>tZ.current(e.detail);return window.addEventListener(eR.H,e),()=>window.removeEventListener(eR.H,e)},[]),(0,R.useEffect)(()=>{let e=e=>{let t=e.detail;W(e=>e?.id===t.id?{...e,name:t.name,collection:t.collection}:e),t$(e=>e.map(e=>e.saved?.id===t.id?{...e,saved:{...e.saved,name:t.name,collection:t.collection}}:e))};return window.addEventListener(Z.C,e),()=>window.removeEventListener(Z.C,e)},[]);let tG=(0,R.useRef)(tW);tG.current=tW;let tX=(0,R.useRef)(tF);function tQ(){tF((0,_.t)(),null),window.setTimeout(()=>ea.current?.focus(),0)}async function tY(){try{td(null);let e=await (0,eg.c)(er,B?.collection,D),t=(0,_.x)(e.draft,e.vars,U?.name),s=/^wss?:\/\//i.test(t.url),n=s?(0,_.e)(t,t.url.replace(/^ws/i,"http")):t,a=(0,_.M)(n,(0,_.S)(eS),(0,_.m)(n,B?.name),(0,_.n)(N));return e.contract&&!s&&(a.contract=e.contract),s&&(a.request={...a.request,url:a.request.url.replace(/^http/i,"ws")}),await (0,ey.f)(a,t,D,U?.name)}catch(e){return td(e instanceof Error?e.message:"Request is not valid"),null}}async function t0(){try{let e={...er,method:"POST",bodyMode:"graphql",graphqlQuery:s.V,graphqlVariables:"",graphqlOperation:"IntrospectionQuery",graphqlErrorsFail:!1,checks:[],saveValues:[],testData:null},t=await (0,eg.c)(e,B?.collection,D),n=(0,_.x)(t.draft,t.vars,U?.name),{request:a,auth:r,options:l,setup:i}=await (0,ey.f)((0,_.M)(n,(0,_.S)(eS),"schema"),n,D,U?.name),o=await fetch("/engine/graphql/introspect",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({request:a,auth:r,options:l,setup:i})}),c=await o.json();return o.ok?c:{status:0,body:"",error:c.error??`Engine error (${o.status})`}}catch(e){return{status:0,body:"",error:e instanceof Error?e.message:String(e)}}}tX.current=tF,(0,R.useEffect)(()=>{let e=()=>{let e=null;try{e=sessionStorage.getItem(ew.M),sessionStorage.removeItem(ew.M)}catch{}e&&V.v.get(e).then(e=>tG.current(e)).catch(()=>i("That saved request is gone","error"));let t=null;try{t=sessionStorage.getItem(ew.n),sessionStorage.removeItem(ew.n)}catch{}if(t)try{let e=JSON.parse(t);tX.current((0,_.e)((0,_.i)(e),e.url??""),null)}catch{}};return eE&&e(),window.addEventListener(ew.V,e),()=>window.removeEventListener(ew.V,e)},[eE]);let[t1,t2]=(0,R.useState)(0);async function t5(){if(tz||!tM)return;let e=performance.now(),s=await tY(),n=Math.round(performance.now()-e);if(!s)return;if(/^wss?:\/\//i.test(s.request.url)){if(eQ&&e0)return void await Y.D.close(eQ);e8(!0),tb("response");try{eQ&&Y.D.close(eQ);let{id:e}=await Y.D.connect({request:s.request,auth:s.auth,options:s.options});eX(null),eY(e),e1(!0)}catch(e){td(e instanceof Error?e.message:"Could not connect")}finally{e8(!1)}return}if("production"===(0,eC.v)(U)&&!(0,eC.p)(s.request.method)&&!await m({title:`Send ${s.request.method} to ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["This request can change real data on ",(0,ei.q)(s.request.url),"."]}),confirmLabel:`Send to ${U.name}`,tone:"danger"}))return;e8(!0),to(!1),tb("response");let a=new AbortController;ta.current=a,tn(Date.now()),tt([{id:"prepare",label:"Prepared: folders, connection, variables",state:"done",ms:n}]);try{eY(null);let e=await (0,ei.V)(s,B?.id,{signal:a.signal,onStep:e=>tt(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e])});e5(null),e9(!1),eX(e);let t=(e.saved??[]).flatMap(e=>e.found&&void 0!==e.value?[{name:e.name,value:e.value}]:[]);H(t,B?.name??"the last Send")}finally{e8(!1),ta.current=null}}async function t6(e=!1){if(tz||tR||!tM||!x.k6Ready)return;if(tO)return void td(tO);let s=await tY();if(s){if(to(!1),!e){tl(!0);try{let e=await (0,ei.V)(s);if(eX(e),!(0,ei.A)(e)){to(!0),tb("response");return}}finally{tl(!1)}}if("production"===(0,eC.v)(U)){if(!await m({title:`Performance test ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["A performance test sends many requests at once to ",(0,ei.q)(s.request.url),". Real users of that system may notice."]}),confirmLabel:"Start performance test",tone:"danger"}))return}else if((0,ei.n)(eS.preset,s.load,s.request.url)&&!await m({title:`Start a ${(0,M.A)(eS)} performance test against ${(0,ei.q)(s.request.url)}?`,body:(0,t.jsxs)(t.Fragment,{children:["This is a ",(0,t.jsx)("span",{className:"text-ink",children:eS.preset})," profile against a non-local host (",(0,M.A)(eS),"). Only load-test systems you own or are allowed to test.",(0,t.jsxs)("span",{className:"mt-2 block",children:["Each simulated user sends its next request as soon as the last one returns, so a few dozen users can mean thousands of requests per second. Public sites and APIs behind a CDN or firewall usually answer that with ",(0,t.jsx)("span",{className:"text-ink",children:"429"})," or"," ",(0,t.jsx)("span",{className:"text-ink",children:"403"})," and may block this computer for a while — test a staging server, or use Requests per second mode with a modest rate."]})]}),confirmLabel:"Start performance test",tone:"danger"}))return;try{let e=await (0,ei.Q)(s);e_(e.id),tm(e),tb("report")}catch(e){i(e instanceof Error?e.message:"Failed to start load","error")}}}async function t9(){if(!tu)return;let e=await (0,ei.Z)(tu.id);e?tm(e):i("Could not reach the engine to stop the run","error")}(0,R.useEffect)(()=>{t1&&t5()},[t1]),(0,em.B)({send:()=>void t5(),run:()=>void t6(),focusUrl:()=>ea.current?.focus(),save:()=>B?void tA():ee(!0),toggleSaved:()=>tP(!et)});let t3=/^wss?:\/\//i.test((0,r.N)(er.url,D).text),t7=t3?"Performance tests of WebSockets aren't available yet — Connect to try it":x.k6Ready?tM?tO??void 0:"Enter a URL first":x.k6Label,t4=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button","data-tour":"send",onClick:()=>void t5(),disabled:tz||!tM,title:t3?e0?"Close the connection":`Open the WebSocket (${b}+Enter)`:`Send one request (${b}+Enter)`,className:t3&&e0?"btn btn-secondary":"btn btn-primary",children:[e4?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):t3?e0?(0,t.jsx)(C.f,{size:16}):(0,t.jsx)(k.f,{size:16}):(0,t.jsx)(S.f,{size:16}),t3?e0?"Disconnect":"Connect":"Send"]}),tR?(0,t.jsxs)("button",{type:"button",onClick:()=>void t9(),disabled:tu?.stopping,className:"btn btn-danger",children:[tu?.stopping?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(q.f,{size:16}),tu?.stopping?"Stopping…":"Stop"]}):(0,t.jsxs)("button",{type:"button","data-tour":"run",onClick:()=>void t6(),disabled:tz||!!t7,title:t7??`Check the request, then run the load profile (${b}+Shift+Enter)`,className:"btn btn-secondary",children:[tr?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(v.f,{size:16}),tr?"Checking…":"Run performance test"]}),(0,t.jsx)(eZ,{dirty:B?tL:JSON.stringify(er)!==eA,isSaved:!!B,onHistory:B?()=>(0,eR.g)(B.id):void 0,onExport:B?()=>(0,eM.q)({kind:"request",id:B.id,name:B.name,collection:B.collection}):void 0,title:`Save request (${b}+S)`,onSave:()=>B?void tA():ee(!0),onSaveAs:()=>ee(!0)})]}),t8=tq.map(e=>e.key===tC?tT():e);return(0,t.jsx)(ev.$,{collection:B?.collection,url:er.url,children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[t8.length?(0,t.jsxs)("div",{className:"flex shrink-0 items-stretch border-b border-line bg-canvas",children:[(0,t.jsx)("button",{type:"button",onClick:()=>tP(!et),"aria-label":et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,"aria-pressed":et,title:et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,className:`hidden shrink-0 items-center border-r border-line px-3 hover:bg-panel/60 hover:text-ink lg:flex ${et?"text-ink":"text-mute"}`,children:(0,t.jsx)(h.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{role:"tablist","aria-label":"Open requests",className:"flex min-w-0 items-stretch overflow-x-auto",children:t8.map(e=>{let s=e.key===tC,n=eD(e);return(0,t.jsxs)("div",{onContextMenu:t=>{t.preventDefault();let s=Number(document.documentElement.style.zoom)||1;tV({key:e.key,x:t.clientX/s,y:t.clientY/s})},onMouseDown:t=>{1===t.button&&(t.preventDefault(),tJ([e.key]))},className:`flex max-w-60 min-w-0 shrink-0 items-center border-r border-line ${s?"bg-panel shadow-[inset_0_2px_0_var(--accent)]":"hover:bg-panel/60"}`,children:[(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>tU(e.key),onKeyDown:t=>{if("ContextMenu"===t.key||t.shiftKey&&"F10"===t.key){t.preventDefault();let s=(0,eb.C)(t.currentTarget);tV({key:e.key,x:s.left+8,y:s.bottom})}},title:e.saved?.collection?`${e.saved.collection} / ${n}`:n,className:"tab-btn flex min-w-0 items-center gap-2 py-2 pr-1 pl-3 text-sm",children:[(0,t.jsx)("span",{className:`font-mono text-[11px] font-semibold ${eF[e.draft.method]??"text-mute"}`,children:"DELETE"===e.draft.method?"DEL":e.draft.method}),(0,t.jsx)("span",{className:`truncate ${s?"text-ink":"text-mute"}`,children:n})]}),e.saved&&eU(e)?(0,t.jsx)("span",{title:"Not saved","aria-label":"not saved",className:"h-1.5 w-1.5 shrink-0 rounded-full bg-accent"}):null,(0,t.jsx)("button",{type:"button",onClick:()=>{tJ([e.key])},"aria-label":`Close ${n}`,title:"Close (middle click)",className:"mx-1 shrink-0 rounded p-1 text-mute hover:bg-panel-2 hover:text-ink",children:(0,t.jsx)(E.X,{size:13,"aria-hidden":!0})})]},e.key)})}),t_?(()=>{let e=t8.map(e=>e.key),s=e.indexOf(t_.key),n=t8[s];if(!n)return null;let a=e=>()=>{tV(null),e()},r=t8.filter(e=>!eU(e)).map(e=>e.key);return(0,t.jsxs)(X.c,{at:t_,label:`Actions for ${eD(n)}`,onClose:()=>tV(null),children:[(0,t.jsx)(X.d,{icon:E.X,label:"Close",hint:"Middle click",onSelect:a(()=>void tJ([t_.key]))}),(0,t.jsx)(X.d,{icon:$,label:"Close others",disabled:e.length<2,onSelect:a(()=>void tJ(e.filter(e=>e!==t_.key)))}),(0,t.jsx)(X.d,{icon:l.f,label:"Close to the right",disabled:s===e.length-1,onSelect:a(()=>void tJ(e.slice(s+1)))}),(0,t.jsx)(X.d,{icon:o.f,label:"Close unchanged",disabled:!r.length,onSelect:a(()=>void tJ(r))}),(0,t.jsx)(X.d,{icon:p.f,label:"Close all",onSelect:a(()=>void tJ(e))}),(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:u.f,label:"Duplicate",onSelect:a(()=>(function(e){let t=e===tC?tT():tq.find(t=>t.key===e);if(!t)return;let s={key:eP(),draft:structuredClone(t.draft),saved:null,result:null,liveId:null,liveOpen:!1};t$(t=>{let n=t.map(e=>e.key===tC?tT():e),a=n.findIndex(t=>t.key===e);return[...n.slice(0,a+1),s,...n.slice(a+1)]}),tD(s)})(t_.key))}),(0,t.jsx)(X.d,{icon:d.f,label:"Copy URL",disabled:!n.draft.url.trim(),onSelect:a(()=>void navigator.clipboard.writeText(n.draft.url).then(()=>i("Copied the URL","success"),()=>i("Could not copy","error")))})]})})():null,(0,t.jsx)("button",{type:"button",onClick:()=>tQ(),"aria-label":"New request tab",title:"New request",className:"shrink-0 px-3 text-mute hover:bg-panel/60 hover:text-ink",children:(0,t.jsx)(j.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{className:"ml-auto flex shrink-0 items-center px-2",children:(0,t.jsx)(T.f,{compact:!0,drafts:[er],collections:[B?.collection]})})]}):null,(0,t.jsxs)("header",{className:"border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsx)("h1",{className:"sr-only",children:"Test an API"}),(0,t.jsx)(O.f,{ref:ea,draft:er,onChange:e=>{eN(e),td(null)},onImported:e=>i(e,"success"),actions:t4}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-mute empty:hidden",children:[(0,t.jsx)(K,{draft:er,sent:!!(eG&&eG.status>0),onChange:eN}),G?(0,t.jsx)(Z.Z,{initial:{name:B?.name??(0,_.m)(er).replace(/ · \d.*$/,""),collection:B?.collection??""},onSave:(e,t)=>void tA({name:e,collection:t}),onCancel:()=>ee(!1)}):null,tc?(0,t.jsx)("span",{className:"text-bad",role:"alert",children:tc}):null]})]}),(0,t.jsxs)("div",{ref:tw.gridRef,style:ty?void 0:tw.gridStyle,className:`relative grid min-h-0 flex-1 overflow-y-auto ${tN?"":"transition-[grid-template-columns] duration-200 ease-out"} motion-reduce:transition-none lg:overflow-hidden ${ty?"":tj?`lg:grid-rows-[minmax(0,1fr)_minmax(0,1fr)] ${et?"lg:grid-cols-[15rem_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,1fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)]"}`:et?"lg:grid-cols-[15rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,5fr)_minmax(0,7fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[0rem_minmax(0,5fr)_minmax(0,7fr)]"}`,children:[ty?null:(0,t.jsx)("div",{inert:!et,"aria-hidden":!et||void 0,className:`min-h-0 min-w-0 overflow-hidden transition-opacity duration-200 motion-reduce:transition-none ${tj?"lg:row-span-2":""} ${et?"opacity-100":"opacity-0 max-lg:hidden"}`,children:(0,t.jsx)("div",{className:"flex h-full w-[15rem] flex-col 2xl:w-[16rem] [&>aside]:flex-1",style:tw.panelWidth?{width:tw.panelWidth}:void 0,children:(0,t.jsx)(Z.N,{activeId:B?.id??null,onOpen:e=>void tW(e),onNew:()=>void tQ()})})}),!ty&&et?(0,t.jsx)(ef.f,{orientation:"vertical",label:"Saved requests panel width",value:tw.panel.value,onMove:e=>tw.panel.onMove(e),onStep:tw.panel.onStep,onReset:tw.panel.onReset,onDragging:tS,className:"absolute inset-y-0 -translate-x-1/2",style:tw.panel.style}):null,ty?null:(0,t.jsx)(ef.f,{orientation:tj?"horizontal":"vertical",label:tj?"Request and response heights":"Request and response widths",value:tw.split.value,onMove:tw.split.onMove,onStep:tw.split.onStep,onReset:tw.split.onReset,onDragging:tS,className:tj?"absolute -translate-y-1/2":"absolute -translate-x-1/2",style:tw.split.style}),ty?null:(0,t.jsx)("section",{ref:e3,"aria-label":"Request",className:"min-w-0 px-4 py-4 lg:overflow-y-auto lg:px-6",children:(0,t.jsx)(z.p,{id:"lab-request",draft:er,onChange:eN,checkResults:eG?.checks,lastBody:eG?.body,lastResult:eG??void 0,setupResult:eG?.setup,savedResults:eG?.saved,currentId:B?.id,collection:B?.collection,introspect:t0,extraTabs:[{id:"load",label:"Performance",badge:eS.stages?.length?"stages":"rate"===eS.mode?`${eS.rps}/s`:`${eS.vus} users \xb7 ${eS.duration}`,content:(0,t.jsx)(M.B,{load:eS,onChange:eq})},{id:"targets",label:"Goals",content:(0,t.jsx)(eW,{})}]})}),(0,t.jsxs)("section",{ref:e7,"aria-label":"Results",className:`@container flex min-h-[32rem] min-w-0 flex-col border-line bg-panel/40 px-4 py-4 lg:min-h-0 lg:overflow-y-auto lg:px-6 ${tj&&!ty?"lg:border-t":"lg:border-l"}`,children:[(0,t.jsx)(A.i,{id:"lab-results",label:"Results",value:tf,onChange:tb,items:[{id:"response",label:"Response",badge:eG?eG.status||"ERR":void 0},{id:"report",label:tR?(0,t.jsx)(eV,{}):"Performance report"}],trailing:(0,t.jsxs)(t.Fragment,{children:["report"===tf&&tp.length>0?(0,t.jsx)(eB,{runs:tp,current:tu,disabled:tR,onPick:async e=>{try{let t=await ed.c.run(e.id);e_(e.id),tm({id:t.report.id,status:t.report.status,report:t.report})}catch(e){i(e instanceof Error?e.message:"Could not open that run","error")}}}):null,ty?null:(0,t.jsx)("button",{type:"button",onClick:()=>tk(tj?"beside":"below"),"aria-label":tj?"Show the response beside the request":"Show the response below the request",title:tj?"Response beside the request":"Response below the request",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:tj?(0,t.jsx)(c.f,{size:14}):(0,t.jsx)(w,{size:14})}),(0,t.jsx)("button",{type:"button",onClick:()=>tg(e=>!e),"aria-label":ty?"Show the request editor":"Expand results to full width",title:ty?"Show the request editor":"Expand results",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:ty?(0,t.jsx)(g,{size:14}):(0,t.jsx)(y,{size:14})})]})}),(0,t.jsx)("div",{...(0,A.q)("lab-results",tf),className:"flex min-h-0 flex-1 flex-col pt-4",children:"response"===tf?(0,t.jsxs)(t.Fragment,{children:[ti&&eG?(0,t.jsxs)("div",{role:"alert",className:"mb-4 flex flex-wrap items-center gap-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2.5",children:[(0,t.jsxs)("p",{className:"min-w-0 flex-1 text-sm text-ink",children:[(0,t.jsx)("span",{className:"font-medium text-warn",children:"Performance test not started."})," The check returned"," ",eG.status||"an error",", not 2xx. Fix the request, or run anyway if this status is expected."]}),(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>void t6(!0),children:"Run anyway"})]}):null,e4&&te.length?(0,t.jsx)(e$,{steps:te,startedAt:ts,onCancel:()=>ta.current?.abort()}):eQ&&!eG?(0,t.jsx)(Y.d,{id:eQ,onClosed:()=>e1(!1)}):eG&&e2?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-accent/40 bg-accent/10 px-3 py-2 text-xs",children:[(0,t.jsxs)("span",{className:"text-ink",children:[e6?"What changed since":"An earlier answer —"," ",new Date(e2.answer.at).toLocaleString()]}),(0,t.jsxs)("span",{className:"ml-auto flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e9(e=>!e),children:e6?"Show that answer":"Compare with the latest"}),(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e5(null),children:"Back to the latest"})]})]}),e6?(0,t.jsx)(el,{earlier:e2.answer,latest:eG}):(0,t.jsx)(I.p,{result:{ok:(e=e2.answer).status>=200&&e.status<400,status:e.status,statusText:String(e.status),headers:e.headers,body:e.body,truncated:e.truncated,durationMs:e.durationMs,url:e.url,...e.error?{error:e.error}:{},...e.checks?{checks:e.checks}:{}}})]}):eG?(0,t.jsx)(I.p,{result:eG,onWaitLonger:e=>{eN(t=>({...t,timeout:e})),t2(e=>e+1),i(`This request now waits up to ${e} — save it to keep that`,"success")},extra:B?.id?(0,t.jsx)(en,{requestId:B.id,refreshKey:eG,onOpen:(e,t)=>0===t?e5(null):(e5({answer:e,index:t}),e9(!1))}):null,onSaveExample:()=>{eN(e=>({...e,mock:(0,a.j)(eG.status,eG.headers,eG.body)})),i(B?"Kept as the mock example — save the request to keep it":"Kept as the mock example — save the request to use it in the mock server","success")}}):tH?(0,t.jsx)(ej.y,{practiceReady:!!x.demoApi,onSimple:()=>void(tF({...(0,_.e)((0,_.t)(),"{{practiceApi}}/products"),checks:[{type:"status",expect:"2xx"},{type:"json",path:"items[0].name",op:"exists",value:""}]},null),i("Practice request ready — press Send","success")),onSignIn:()=>void tK(),onHide:()=>(0,ej.e)(!0)}):(0,t.jsx)(eH,{title:"Send a request to see the response",lines:[(0,t.jsx)(t.Fragment,{children:"Paste a URL — or a whole curl command from your browser's DevTools — into the bar above."}),(0,t.jsxs)(t.Fragment,{children:["Press ",(0,t.jsx)("span",{className:"kbd",children:b}),"+",(0,t.jsx)("span",{className:"kbd",children:"Enter"})," to send it."]})]})]}):tu?(0,t.jsxs)(t.Fragment,{children:[tu.error?(0,t.jsx)("p",{role:"alert",className:"mb-3 rounded-md border border-bad/40 bg-bad/10 px-3 py-2 text-sm text-bad",children:tu.error}):null,(0,t.jsx)(L.f,{report:tu.report,source:"session",live:tR,probe:eG})]}):(0,t.jsx)(eH,{title:"No performance test yet",lines:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-ink",children:"Run performance test"})," sends one check request first, then runs"," ",(0,t.jsx)("span",{className:"font-mono text-ink",children:(0,M.A)(eS)})," with k6."]}),(0,t.jsx)(t.Fragment,{children:"Change users, duration, and ramps in the Performance tab. Set pass/fail goals in Goals."})],action:(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",disabled:tz||!!t7,title:t7,onClick:()=>void t6(),children:[(0,t.jsx)(v.f,{size:16}),"Run performance test"]})})})]})]})]})})},"VerdictTag",0,eK],6980)},90139,1245,33577,85905,e=>{var t=e.i(99522);let s=(0,t.f)("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]);e.s(["f",0,s],90139);var n=e.i(95754);e.s(["f",()=>n.f],1245);let a=(0,t.f)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);e.s(["f",0,a],33577);let r=(0,t.f)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["f",0,r],85905)},30197,e=>{let t=(0,e.i(99522).f)("list-x",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]);e.s(["f",0,t],30197)}])})();
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6980,e=>{var t=e.i(72587);e.i(24856);var s=e.i(90870),n=e.i(2385),a=e.i(36163),r=e.i(78451),l=e.i(90139),i=e.i(95486),o=e.i(1245),c=e.i(33577),d=e.i(89932),u=e.i(85905),m=e.i(47677),h=e.i(20621),x=e.i(91694),p=e.i(30197),f=e.i(27813),b=e.i(99522);let y=(0,b.f)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),g=(0,b.f)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);var v=e.i(3792),k=e.i(5769),j=e.i(71189);let w=(0,b.f)("rows-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);var N=e.i(95927),S=e.i(50962),q=e.i(66478);let $=(0,b.f)("square-x",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var C=e.i(10281),E=e.i(87283),R=e.i(55218),M=e.i(63343),O=e.i(44794),z=e.i(31753),L=e.i(29724),I=e.i(60566),P=e.i(39170),A=e.i(13318),T=e.i(68228),D=e.i(59100);let U=(0,b.f)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var F=e.i(80707),J=e.i(56396);e.i(42674);var _=e.i(5305),V=e.i(6278);let H="\0new";function B(e,t){if(!t.has("baseUrl"))return"baseUrl";let s="api";try{s=new URL(e).hostname.split(".")[0].replace(/[^A-Za-z0-9]/g,"")||"api"}catch{}let n=`${s}Url`;for(let e=2;t.has(n);e++)n=`${s}Url${e}`;return n}function K({draft:e,sent:s,onChange:n}){let{environments:a,activeEnv:r,vars:l}=(0,V.U)(),[i,o]=(0,R.useState)(!1),c=function(e){try{let t=new URL(e);if(!/^https?:$/.test(t.protocol)||["localhost","127.0.0.1"].includes(t.hostname))return[];let s=t.origin,n=t.pathname.split("/").filter(Boolean);return n.length>=2?[s,`${s}/${n[0]}`]:[s]}catch{return[]}}(e.url),d=new Set(Object.values(l).map(e=>e.trim().replace(/\/+$/,"")));return!s||!c.length||c.some(e=>d.has(e))?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-accent hover:underline",title:"Keep this server address in an environment",children:[(0,t.jsx)(U,{size:13,"aria-hidden":!0})," Save ",c[0].replace(/^https?:\/\//,"")," as a base URL"]}),i?(0,t.jsx)(W,{draft:e,addresses:c,environments:a,activeEnvId:r?.id??null,onChange:n,onClose:()=>o(!1)}):null]})}function W({draft:e,addresses:s,environments:n,activeEnvId:a,onChange:r,onClose:l}){let i=(0,J.d)(),{index:o,saveEnvironments:c,setActiveEnv:d,refresh:u}=(0,V.U)(),[m,h]=(0,R.useState)(s[0]),[x,p]=(0,R.useState)(a??n[0]?.id??H),[f,b]=(0,R.useState)(()=>{try{return new URL(s[0]).hostname.split(".").slice(0,2).join(" ")}catch{return"My API"}}),y=n.find(e=>e.id===x)??null,g=(0,R.useMemo)(()=>new Set((y?.variables??[]).map(e=>e.key)),[y]),[v,k]=(0,R.useState)(()=>B(s[0],g)),[j,w]=(0,R.useState)(!0),[N,S]=(0,R.useState)(!1),q=(0,R.useRef)(null);(0,R.useEffect)(()=>q.current?.focus(),[]),(0,R.useEffect)(()=>k(B(m,g)),[m,g]);let $=(o?.requests??[]).filter(t=>t.url.startsWith(m)&&t.url!==e.url),C=y?.variables.find(e=>e.key===v),M=D.y.test(v)&&(x!==H||f.trim());async function O(){if(M&&!N){S(!0);try{let t=x===H?globalThis.crypto?.randomUUID?.()??`env-${Date.now().toString(36)}`:x,s=structuredClone(n),a=s.find(e=>e.id===t);a||(a={id:t,name:f.trim(),variables:[]},s.push(a)),a.variables=[...a.variables.filter(e=>e.key!==v),{key:v,value:m,secret:!1}],await c(s),d(t),r((0,_.e)(e,`{{${v}}}${e.url.slice(m.length)}`));let o=0,h=0;if(j){for(let e of $){let t=await V.v.get(e.id).catch(()=>null);if(!t||t.secretsMissing?.length){h++;continue}let s=(0,_.i)(t.request);s.url.startsWith(m)&&(await V.v.update(e.id,{name:t.name,collection:t.collection,request:(0,_.e)(s,`{{${v}}}${s.url.slice(m.length)}`)}),o++)}await u()}i(`Saved {{${v}}} in ${a.name}.${o?` ${o} other saved request${1===o?"":"s"} now use it.`:""}${h?` ${h} left as they were (a saved secret isn't available).`:""} Save this request to keep the change.`,"success"),l()}catch(e){i(e instanceof Error?e.message:"Could not save the base URL","error")}finally{S(!1)}}}return(0,t.jsx)("div",{className:"fixed inset-0 z-[75] flex items-center-safe justify-center overflow-y-auto bg-black/50 p-4 sm:p-16",role:"presentation",onMouseDown:e=>e.target===e.currentTarget&&!N&&l(),children:(0,t.jsxs)("form",{role:"dialog","aria-modal":"true","aria-labelledby":"save-base-title",onSubmit:e=>{e.preventDefault(),O()},onKeyDown:e=>"Escape"===e.key&&!N&&l(),className:"w-full max-w-lg space-y-4 rounded-xl border border-line bg-panel p-5 shadow-2xl",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{id:"save-base-title",className:"text-base font-medium text-ink",children:"Save as a base URL"}),(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":"Close",className:"ml-auto rounded p-1 text-mute hover:text-ink",children:(0,t.jsx)(E.X,{size:16})})]}),(0,t.jsx)("p",{className:"text-sm text-mute",children:"Keep the server address in an environment, so you type only the path — and switch servers (UAT, Prod) by switching environments."}),(0,t.jsxs)("fieldset",{className:"space-y-1.5",children:[(0,t.jsx)("legend",{className:"mb-1 text-xs text-mute",children:"Address"}),s.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"radio",name:"address",checked:m===e,onChange:()=>h(e)}),(0,t.jsx)("span",{className:"font-mono text-xs break-all",children:e})]},e))]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Environment",(0,t.jsx)(F.f,{label:"Environment",value:x,onChange:p,options:[...n.map(e=>({value:e.id,label:e.name,hint:`${e.variables.length} variables`})),{value:H,label:"New environment…"}],className:"rounded-md border border-line bg-panel-2 px-2 py-1.5 text-sm text-ink"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute",children:["Variable name",(0,t.jsx)("input",{ref:q,value:v,onChange:e=>k(e.target.value.replace(/[^\w.-]/g,"")),className:"input py-1.5 font-mono text-sm"})]}),x===H?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs text-mute sm:col-span-2",children:["New environment name",(0,t.jsx)("input",{value:f,onChange:e=>b(e.target.value),className:"input py-1.5 text-sm"})]}):null]}),C&&C.value!==m?(0,t.jsxs)("p",{className:"text-xs text-warn",children:[`{{${v}}}`," already exists in this environment (",C.value,") — it will be replaced."]}):null,(0,t.jsxs)("p",{className:"rounded-md bg-panel-2 px-3 py-2 font-mono text-xs text-ink break-all",children:[`{{${v}}}`,(0,t.jsx)("span",{className:"text-mute",children:e.url.slice(m.length)||"/"})]}),$.length?(0,t.jsxs)("label",{className:"flex items-start gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:j,onChange:e=>w(e.target.checked),className:"mt-1"}),(0,t.jsxs)("span",{children:["Also switch ",$.length," other saved request",1===$.length?"":"s"," that use this address",(0,t.jsxs)("span",{className:"block text-xs text-mute",children:[$.slice(0,3).map(e=>e.name).join(", "),$.length>3?` and ${$.length-3} more`:""]})]})]}):null,(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:l,disabled:N,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:!M||N,children:"Save base URL"})]})]})})}var Z=e.i(65638),G=e.i(37837),X=e.i(17847);function Q(e,t){let s=(0,R.useRef)(!0);(0,R.useEffect)(()=>{if(s.current){s.current=!1;return}let t=e.current;!t||function(){try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}()||"function"!=typeof t.animate||t.animate([{opacity:.35,transform:"translateY(3px)"},{opacity:1,transform:"none"}],{duration:180,easing:"cubic-bezier(0.2, 0, 0, 1)"})},[e,t])}var Y=e.i(97716);let ee=(e,t)=>"number"==typeof t?`${e}[${t}]`:/^[A-Za-z_$][\w$]*$/.test(t)?`${e}.${t}`:`${e}[${JSON.stringify(t)}]`;var et=e.i(96659),es=e.i(19656);function en({requestId:e,refreshKey:s,onOpen:n}){let a=(0,R.useRef)(null),[r,l]=(0,R.useState)(!1),[i,o]=(0,R.useState)([]),c=()=>void fetch(`/engine/responses/${e}`,{cache:"no-store"}).then(e=>e.ok?e.json():{answers:[]}).then(e=>o(e.answers)).catch(()=>void 0);return((0,R.useEffect)(c,[e,s]),i.length<2)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:a,type:"button",onClick:()=>l(e=>!e),"aria-expanded":r,title:"Earlier answers of this request — open one, or see what changed",className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-0.5 text-xs text-mute hover:border-accent hover:text-ink",children:[(0,t.jsx)(x.f,{size:12,"aria-hidden":!0})," Earlier · ",i.length-1]}),(0,t.jsx)(G.f,{anchor:a,open:r,onClose:()=>l(!1),label:"Earlier answers",width:340,children:(0,t.jsxs)("div",{className:"max-h-80 overflow-auto p-1",children:[(0,t.jsxs)("p",{className:"px-2 py-1.5 text-xs text-mute",children:["The last ",i.length," answers of this request, newest first · ",(0,es.L)(i.reduce((e,t)=>e+t.size,0))," kept"]}),(0,t.jsx)("ul",{children:i.map((s,a)=>{let r;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:async()=>{let t=await fetch(`/engine/responses/${e}/${a}`,{cache:"no-store"});t.ok&&n(await t.json(),a),l(!1)},className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs hover:bg-panel-2",children:[(0,t.jsx)("span",{className:`rounded border px-1.5 font-mono ${(0,I.Z)(s.status)}`,children:s.status||"ERR"}),(0,t.jsx)("span",{className:"text-ink",children:0===a?"Latest":(r=new Date(s.at),new Date().toDateString()===r.toDateString()?r.toLocaleTimeString():r.toLocaleString())}),(0,t.jsxs)("span",{className:"ml-auto font-mono text-mute",children:[Math.round(s.durationMs)," ms"]}),(0,t.jsx)("span",{className:"w-16 text-right font-mono text-mute",children:(0,es.L)(s.size)}),s.checks?(0,t.jsxs)("span",{className:s.passed===s.checks?"text-ok":"text-bad",children:[s.passed,"/",s.checks]}):null]})},s.at)})}),(0,t.jsxs)("button",{type:"button",onClick:async()=>{await fetch(`/engine/responses/${e}`,{method:"DELETE"}),l(!1),c()},className:"mt-1 flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs text-mute hover:bg-panel-2 hover:text-bad",children:[(0,t.jsx)(et.f,{size:12,"aria-hidden":!0})," Forget these answers"]})]})})]})}function ea(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}let er=e=>{let t="string"==typeof e?JSON.stringify(e):JSON.stringify(e)??"undefined";return t.length>80?`${t.slice(0,79)}…`:t};function el({earlier:e,latest:s}){let n=(0,R.useMemo)(()=>(function(e,t,s=200){let n,a;try{n=JSON.parse(e),a=JSON.parse(t)}catch{return null}let r=[],l=(e,t,n,a)=>{if(r.length>=s)return;let i=null!==t&&"object"==typeof t;if(null!==e&&"object"==typeof e&&i&&Array.isArray(e)===Array.isArray(t)&&a<40){if(Array.isArray(e)&&Array.isArray(t)){for(let i=0;i<Math.max(e.length,t.length)&&(i>=e.length?r.push({path:ee(n,i),kind:"added",after:t[i]}):i>=t.length?r.push({path:ee(n,i),kind:"removed",before:e[i]}):l(e[i],t[i],ee(n,i),a+1),!(r.length>=s));i++);return}for(let i of new Set([...Object.keys(e),...Object.keys(t)]))if(i in t?i in e?l(e[i],t[i],ee(n,i),a+1):r.push({path:ee(n,i),kind:"added",after:t[i]}):r.push({path:ee(n,i),kind:"removed",before:e[i]}),r.length>=s)break;return}JSON.stringify(e)!==JSON.stringify(t)&&r.push({path:n,kind:"changed",before:e,after:t})};return l(n,a,"$",0),r})(e.body,s.body),[e.body,s.body]),a=(0,R.useMemo)(()=>(function(e,t,s=3e3){let n=e.split("\n"),a=t.split("\n"),r=n.length>s||a.length>s;n=n.slice(0,s),a=a.slice(0,s);let l=0;for(;l<n.length&&l<a.length&&n[l]===a[l];)l++;let i=n.length,o=a.length;for(;i>l&&o>l&&n[i-1]===a[o-1];)i--,o--;let c=n.slice(l,i),d=a.slice(l,o),u=n.slice(0,l).map(e=>({kind:"same",text:e}));if(c.length*d.length>4e6)u.push(...c.map(e=>({kind:"removed",text:e})),...d.map(e=>({kind:"added",text:e})));else{let e=d.length+1,t=new Uint32Array((c.length+1)*e);for(let s=c.length-1;s>=0;s--)for(let n=d.length-1;n>=0;n--)t[s*e+n]=c[s]===d[n]?t[(s+1)*e+n+1]+1:Math.max(t[(s+1)*e+n],t[s*e+n+1]);let s=0,n=0;for(;s<c.length&&n<d.length;)c[s]===d[n]?(u.push({kind:"same",text:c[s]}),s++,n++):t[(s+1)*e+n]>=t[s*e+n+1]?u.push({kind:"removed",text:c[s++]}):u.push({kind:"added",text:d[n++]});for(;s<c.length;)u.push({kind:"removed",text:c[s++]});for(;n<d.length;)u.push({kind:"added",text:d[n++]})}return u.push(...n.slice(i).map(e=>({kind:"same",text:e}))),{lines:u,cut:r}})(ea(e.body),ea(s.body)),[e.body,s.body]),r=a.lines.filter(e=>"same"!==e.kind).length;return(0,t.jsxs)("div",{className:"space-y-3 overflow-auto",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-mute",children:[(0,t.jsxs)("span",{children:["Status ",(0,t.jsx)("span",{className:"font-mono text-ink",children:e.status})," → ",(0,t.jsx)("span",{className:"font-mono text-ink",children:s.status}),e.status===s.status?" (same)":""]}),(0,t.jsxs)("span",{children:["Time ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(e.durationMs)," ms"]})," → ",(0,t.jsxs)("span",{className:"font-mono text-ink",children:[Math.round(s.durationMs)," ms"]})]}),(0,t.jsx)("span",{children:r?`${r} line${1===r?"":"s"} differ`:"The body is the same"})]}),e.masked?(0,t.jsx)("p",{className:"text-xs text-mute",children:"Values that look like secrets were hidden when the earlier answer was kept, so they show as changed."}):null,n&&n.length?(0,t.jsxs)("section",{"aria-label":"Changed fields",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:[n.length," field",1===n.length?"":"s"," changed",n.length>=200?" (the first 200)":""]}),(0,t.jsx)("ul",{className:"max-h-56 space-y-0.5 overflow-auto rounded-md border border-line bg-panel-2 p-2 font-mono text-xs",children:n.map((e,s)=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"text-ink",children:e.path})," ","changed"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-bad line-through decoration-bad/60",children:er(e.before)})," → ",(0,t.jsx)("span",{className:"text-ok",children:er(e.after)})]}):"added"===e.kind?(0,t.jsxs)("span",{className:"text-ok",children:["added ",er(e.after)]}):(0,t.jsxs)("span",{className:"text-bad",children:["removed (was ",er(e.before),")"]})]},s))})]}):null,(0,t.jsxs)("section",{"aria-label":"Line by line",children:[(0,t.jsxs)("h3",{className:"mb-1 text-xs font-medium text-mute",children:["Line by line",a.cut?" (the first 3,000 lines)":""]}),(0,t.jsx)("pre",{className:"max-h-[28rem] overflow-auto rounded-md border border-line bg-panel-2 py-2 font-mono text-[12.5px] leading-5",children:a.lines.map((e,s)=>(0,t.jsxs)("div",{className:"added"===e.kind?"bg-ok/10 text-ok":"removed"===e.kind?"bg-bad/10 text-bad":"text-ink",children:[(0,t.jsx)("span",{className:"inline-block w-5 select-none text-center text-mute",children:"added"===e.kind?"+":"removed"===e.kind?"−":" "}),e.text]},s))})]})]})}var ei=e.i(21206),eo=e.i(20054);let ec="apitestcenter-lab-draft";var ed=e.i(59180),eu=e.i(88153),em=e.i(2603),eh=e.i(28950),ex=e.i(99822),ep=e.i(62766),ef=e.i(32610),eb=e.i(14865),ey=e.i(46679),eg=e.i(65238),ev=e.i(7149),ek=e.i(727),ej=e.i(45672),ew=e.i(69578),eN=e.i(17118),eS=e.i(40945),eq=e.i(27122);function e$({steps:e,startedAt:s,onCancel:n}){let[a,r]=(0,R.useState)(()=>Date.now()),[l]=(0,R.useState)(()=>new Map);for(let t of e)"start"!==t.state||l.has(t.id)||l.set(t.id,Date.now());(0,R.useEffect)(()=>{let e=window.setInterval(()=>r(Date.now()),100);return()=>window.clearInterval(e)},[]);let i=e=>e<1e3?`${e} ms`:`${(e/1e3).toFixed(1)} s`;return a-s<250?(0,t.jsx)("div",{className:"flex-1","aria-busy":"true"}):(0,t.jsxs)("div",{role:"status","aria-label":"Sending",className:"flex flex-1 flex-col items-center justify-center gap-5 py-10",children:[(0,t.jsxs)("ul",{className:"w-full max-w-md space-y-2",children:[e.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm",children:["done"===e.state?(0,t.jsx)(eN.f,{size:16,className:"shrink-0 text-ok","aria-label":"done"}):"failed"===e.state?(0,t.jsx)(eq.f,{size:16,className:"shrink-0 text-bad","aria-label":"failed"}):(0,t.jsx)(f.f,{size:16,className:"shrink-0 animate-spin text-accent","aria-label":"running"}),(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate ${"start"===e.state?"text-ink":"text-mute"}`,children:e.label}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-mute",children:void 0!==e.ms?i(e.ms):i(a-(l.get(e.id)??a))})]},e.id)),e.every(e=>"start"!==e.state)?(0,t.jsxs)("li",{className:"flex items-center gap-2.5 text-sm text-mute",children:[(0,t.jsx)(eS.f,{size:16,className:"shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"flex-1",children:"Starting…"})]}):null]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-sm",onClick:n,children:"Cancel"}),(0,t.jsxs)("span",{className:"font-mono text-xs text-mute",children:[i(a-s)," in all"]})]})]})}var eC=e.i(48181),eE=e.i(25120),eR=e.i(97942),eM=e.i(91549);let eO=(0,eE.f)("apitestcenter-lab-saved"),ez="apitestcenter-requests-panel",eL="lab:answers",eI=(0,eE.f)("apitestcenter-lab-tabs"),eP=()=>Math.random().toString(36).slice(2,10),eA=JSON.stringify((0,_.t)()),eT=()=>({key:eP(),draft:(0,_.t)(),saved:null,result:null,liveId:null,liveOpen:!1}),eD=e=>e.saved?.name??(e.draft.url.trim()?(0,_.m)(e.draft).replace(/ · \d.*$/,"").replace(/^[A-Z]+ /,""):"New request"),eU=e=>e.saved?JSON.stringify(e.draft)!==e.saved.snapshot:JSON.stringify(e.draft)!==eA,eF={GET:"text-ok",POST:"text-warn",PUT:"text-accent",PATCH:"text-accent",DELETE:"text-bad"},eJ=(0,eE.f)("apitestcenter-last-run");function e_(e){try{sessionStorage.setItem(eJ,e)}catch{}}function eV(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-accent opacity-60"}),(0,t.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-accent"})]}),"Load running"]})}function eH({title:e,lines:s,action:n}){return(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center rounded-lg border border-dashed border-line px-6 py-14 text-center",children:[(0,t.jsx)("h2",{className:"text-base font-medium text-ink",children:e}),(0,t.jsx)("div",{className:"mt-2 max-w-md space-y-1.5 text-sm text-mute",children:s.map((e,s)=>(0,t.jsx)("p",{children:e},s))}),n?(0,t.jsx)("div",{className:"mt-5",children:n}):null]})}function eB({runs:e,current:s,disabled:a,onPick:r}){let{slo:l}=(0,eu.G)(),[o,c]=(0,R.useState)(!1),d=(0,R.useRef)(null),u=(0,R.useMemo)(()=>e.slice(0,30),[e]);return(0,R.useEffect)(()=>{if(!o)return;let e=e=>{d.current?.contains(e.target)||c(!1)},t=e=>"Escape"===e.key&&c(!1);return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[o]),(0,t.jsxs)("div",{ref:d,className:"relative",children:[(0,t.jsxs)("button",{type:"button",disabled:a,"aria-haspopup":"listbox","aria-expanded":o,onClick:()=>c(e=>!e),className:"inline-flex items-center gap-1 rounded-md border border-line px-2 py-1 text-xs text-mute hover:text-ink disabled:opacity-40",children:["Recent runs",u.length?(0,t.jsx)("span",{className:"rounded bg-panel-2 px-1 font-mono text-[10px] text-ink",children:u.length}):null,(0,t.jsx)(i.f,{size:12})]}),o?(0,t.jsx)("ul",{role:"listbox","aria-label":"Recent runs",className:"absolute right-0 z-30 mt-1 max-h-80 w-80 overflow-auto rounded-md border border-line bg-panel p-1 shadow-xl",children:u.map(e=>{let a=(0,n.F)(e.verdict,{slo:l}).overall,i=s?.id===e.id;return(0,t.jsx)("li",{role:"option","aria-selected":i,children:(0,t.jsxs)("button",{type:"button",onClick:()=>{r(e),c(!1)},className:`flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-left text-xs ${i?"bg-accent-dim text-ink":"text-ink hover:bg-panel-2"}`,children:[(0,t.jsxs)("span",{className:"min-w-0 truncate",children:[e.baseline?(0,t.jsx)("span",{className:"mr-1 text-accent",title:"Baseline",children:"◆"}):null,e.name]}),(0,t.jsx)(eK,{level:a})]})},e.id)})}):null]})}function eK({level:e}){let s="pass"===e?"text-ok":"fail"===e?"text-bad":"text-warn";return(0,t.jsxs)("span",{className:`shrink-0 font-mono text-xs uppercase ${s}`,children:[(0,t.jsxs)("span",{"aria-hidden":!0,children:["pass"===e?"✓":"fail"===e?"✕":"!"," "]}),e]})}function eW(){let{slo:e,setSlo:s,ready:n}=(0,eu.G)(),[a,r]=(0,R.useState)(!1),[l,i]=(0,R.useState)(500),[o,c]=(0,R.useState)(0),[d,u]=(0,R.useState)(1),[m,h]=(0,R.useState)(99),[x,p]=(0,R.useState)(!1),f=(0,R.useRef)(!1);function b(e){let t={on:a,p95:l,p99:o,errPct:d,checksPct:m,abort:x,...e};if(r(t.on),i(t.p95),c(t.p99),u(t.errPct),h(t.checksPct),p(t.abort),!t.on||!(t.p95>0)||t.errPct<0)return s(null);s({p95Ms:t.p95,errorRate:t.errPct/100,p99Ms:t.p99>0?t.p99:void 0,checksRate:Math.min(100,Math.max(0,t.checksPct))/100,abortOnFail:t.abort})}(0,R.useEffect)(()=>{n&&!f.current&&(f.current=!0,e&&(r(!0),i(e.p95Ms),c(e.p99Ms??0),u(Number((100*e.errorRate).toFixed(4))),h(null!=e.checksRate?Number((100*e.checksRate).toFixed(2)):99),p(!0===e.abortOnFail)))},[n,e]);let y=(e,s,n,a)=>(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"mb-1 block text-xs text-mute",children:e}),(0,t.jsx)("input",{type:"number",min:a.min,max:a.max,step:a.step,value:s,onChange:e=>b({[n]:Number(e.target.value)}),className:"input font-mono"}),a.hint?(0,t.jsx)("span",{className:"mt-1 block text-xs text-mute",children:a.hint}):null]});return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-sm text-mute",children:"Targets decide whether a performance test passes. They are sent to k6 as thresholds, drive the verdict and the report colours, and are remembered on this computer."}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:e=>b({on:e.target.checked}),className:"accent-[var(--accent)]"}),"Use my own performance targets"]}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[y("p95 must stay under (ms)",l,"p95",{min:1}),y("p99 must stay under (ms)",o,"p99",{min:0,hint:"0 = no p99 target"}),y("Error rate must stay under (%)",d,"errPct",{min:0,max:100,step:.1}),y("Checks must pass at least (%)",m,"checksPct",{min:0,max:100,step:.1,hint:"Only used when the request has checks"})]}),(0,t.jsxs)("label",{className:"flex items-start gap-2 rounded-md border border-line px-3 py-2.5 text-sm text-ink",children:[(0,t.jsx)("input",{type:"checkbox",checked:x,onChange:e=>b({abort:e.target.checked}),className:"mt-0.5 accent-[var(--accent)]"}),(0,t.jsxs)("span",{children:["Stop the test early if a target is clearly missed",(0,t.jsx)("span",{className:"block text-xs text-mute",children:"After a 10-second warm-up, k6 ends the run as soon as a target fails — saves time and stops hammering a struggling API."})]})]})]}):(0,t.jsx)("p",{className:"rounded-md bg-panel-2 px-3 py-2 text-sm text-mute",children:"Using built-in defaults: warn at p95 ≥ 500 ms or errors ≥ 1%, fail at p95 ≥ 2 s or errors ≥ 5%. No thresholds are sent to k6."})]})}function eZ({dirty:e,isSaved:s,title:n,onSave:a,onSaveAs:r,onHistory:l,onExport:o}){let[c,d]=(0,R.useState)(!1),p=(0,R.useRef)(null);return(0,t.jsxs)("div",{className:"inline-flex",children:[(0,t.jsxs)("button",{type:"button",onClick:a,disabled:s&&!e,title:n,className:"btn btn-secondary rounded-r-none border-r-0",children:[(0,t.jsx)(N.f,{size:16,"aria-hidden":!0}),"Save",e?(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-accent","aria-label":"unsaved changes"}):null]}),(0,t.jsx)("button",{ref:p,type:"button",onClick:()=>d(e=>!e),"aria-label":"More ways to save","aria-haspopup":"menu","aria-expanded":c,className:"btn btn-secondary rounded-l-none px-2",children:(0,t.jsx)(i.f,{size:14,"aria-hidden":!0})}),(0,t.jsx)(G.f,{anchor:p,open:c,onClose:()=>d(!1),label:"More ways to save",width:220,role:"menu",children:(0,t.jsxs)("div",{className:"-m-2",children:[(0,t.jsx)(X.d,{icon:s?u.f:h.f,label:s?"Save as a new request…":"Save to a folder…",onSelect:()=>{d(!1),r()}}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:x.f,label:"Version history…",onSelect:()=>{d(!1),l()}})]}):null,o?(0,t.jsx)(X.d,{icon:m.f,label:"Export…",onSelect:()=>{d(!1),o()}}):null]})})]})}e.s(["LabPage",0,function(){var e;let i=(0,J.d)(),m=(0,P.L)(),x=(0,eo.J)(),b=(0,em.P)(),{slo:N}=(0,eu.G)(),{vars:D,activeEnv:U,refresh:F,rememberValues:H}=(0,V.U)(),[B,W]=(0,R.useState)(null),[G,ee]=(0,R.useState)(!1),[et,es]=(0,R.useState)(!0),ea=(0,R.useRef)(null),[er,eN]=(0,R.useState)(_.t),[eS,eq]=(0,R.useState)(_.j),[eE,eK]=(0,R.useState)(!1),[eG,eX]=(0,R.useState)(null),[eQ,eY]=(0,R.useState)(null),[e0,e1]=(0,R.useState)(!1),[e2,e5]=(0,R.useState)(null),[e6,e9]=(0,R.useState)(!1),e3=(0,R.useRef)(null),e7=(0,R.useRef)(null);Q(e3,B?.id),Q(e7,eG);let[e4,e8]=(0,R.useState)(!1),[te,tt]=(0,R.useState)([]),[ts,tn]=(0,R.useState)(0),ta=(0,R.useRef)(null),[tr,tl]=(0,R.useState)(!1),[ti,to]=(0,R.useState)(!1),[tc,td]=(0,R.useState)(null),[tu,tm]=(0,R.useState)(null),{index:th,refresh:tx}=(0,ed.K)(),tp=th?.runs??[],[tf,tb]=(0,R.useState)("response"),[ty,tg]=(0,R.useState)(!1),{layout:tv,setLayout:tk}=(0,eb.x)(),tj="below"===tv,tw=(0,ep.f)(tv,et),[tN,tS]=(0,R.useState)(!1),[tq,t$]=(0,R.useState)([]),[tC,tE]=(0,R.useState)("");(0,ex.R)(e0||tq.some(e=>e.key!==tC&&e.liveOpen),"a live connection is open");let tR=tu?.status==="running"||tu?.status==="queued",tM=(0,_.k)(er),tO=(0,_.w)(eS),tz=e4||tr;(0,R.useEffect)(()=>{let e=null;try{e=sessionStorage.getItem(eJ)}catch{}e&&(0,ei.c)(e).then(async t=>{if(t)return tm(t);let s=await ed.c.run(e).catch(()=>null);s&&tm({id:s.report.id,status:s.report.status,report:s.report})});let t=function(){try{let e=sessionStorage.getItem(ec);if(!e)return null;let t=JSON.parse(e);if(2===t.v)return{request:(0,_.i)(t.request),load:(0,_.W)(t.load)};return{request:(0,_.i)(t),load:(0,_.W)(t)}}catch{return null}}();t&&eq(t.load);let s=[],n="";try{let e=JSON.parse(localStorage.getItem(eI)??"null"),t=(0,eh.q)(eL)??{};s=(e?.tabs??[]).map(e=>({key:e.key||eP(),draft:(0,_.i)(e.draft),saved:e.saved??null,result:t[e.key]??null,liveId:null,liveOpen:!1})),n=e?.active??"",es("closed"!==localStorage.getItem(ez))}catch{}if(!s.length){let e=null;try{e=JSON.parse(sessionStorage.getItem(eO)??"null")}catch{}s=[{...eT(),draft:t?.request??(0,_.t)(),saved:e}]}let a=s.find(e=>e.key===n)??s[0];t$(s),tE(a.key),eN(a.draft),W(a.saved),eX(a.result),eK(!0)},[]),(0,R.useEffect)(()=>{if(!eE)return;let e={};for(let t of tq){let s=t.key===tC?eG:t.result;s&&(e[t.key]=s)}(0,eh.V)(eL,e)},[eE,tq,tC,eG]);let tL=(0,R.useRef)(null);(0,R.useEffect)(()=>{if(!eE)return;let e=()=>{tL.current=null;try{sessionStorage.setItem(ec,JSON.stringify({v:2,request:er,load:eS}))}catch{}try{let e=tq.map(e=>e.key===tC?{key:e.key,draft:er,saved:B}:{key:e.key,draft:e.draft,saved:e.saved});localStorage.setItem(eI,JSON.stringify({tabs:e,active:tC}))}catch{}};tL.current=e;let t=window.setTimeout(e,250);return()=>window.clearTimeout(t)},[er,eS,eE,tq,tC,B]),(0,R.useEffect)(()=>()=>tL.current?.(),[]),(0,R.useEffect)(()=>{if(!tu||!tR)return;let e=!1,t=window.setInterval(async()=>{let t=await (0,ei.c)(tu.id);if(t&&!e&&(tm(t),(0,ei.P)(t.status))){tx();let e="completed"===t.status?"finished":t.status;i(`Performance test ${e}`,"failed"===t.status?"error":"success");let s=(0,n.s)(t.report,{slo:N});(0,ek.G)({title:`Performance test ${e}`,body:`${t.report.testName}
|
|
2
|
+
${"completed"===t.status?s.headline:t.error??"See the report for details."}`,ok:"completed"===t.status&&"fail"!==s.overall})}},500);return()=>{e=!0,window.clearInterval(t)}},[tu?.id,tR]);let tI=!!B&&JSON.stringify(er)!==B.snapshot;function tP(e){W(e);try{e?sessionStorage.setItem(eO,JSON.stringify(e)):sessionStorage.removeItem(eO)}catch{}}function tA(e){es(e);try{localStorage.setItem(ez,e?"open":"closed")}catch{}}async function tT(e){try{let t={name:e?.name??B.name,collection:e?.collection??B.collection,request:er},s=B&&!e?await V.v.update(B.id,t):await V.v.create(t);tP({id:s.id,name:s.name,collection:s.collection,snapshot:JSON.stringify(er)}),ee(!1),await F(),i(`Saved “${s.name}”${s.collection?` in ${s.collection}`:""}`,"success")}catch(e){i(e instanceof Error?e.message:"Could not save the request","error")}}let tD=()=>({key:tC,draft:er,saved:B,result:eG,liveId:eQ,liveOpen:e0});function tU(e){tE(e.key),eN(e.draft),tP(e.saved),eX(e.result),eY(e.liveId),e1(e.liveOpen),e5(null),e9(!1),to(!1),td(null),ee(!1),tb("response")}function tF(e){if(e===tC)return;let t=tq.find(t=>t.key===e);t&&(t$(e=>e.map(e=>e.key===tC?tD():e)),tU(t))}function tJ(e,t){let s=!B&&!eG&&!eQ&&JSON.stringify(er)===eA,n={key:s?tC:eP(),draft:e,saved:t,result:null,liveId:null,liveOpen:!1};t$(e=>{if(s)return e.map(e=>e.key===tC?n:e);let t=e.map(e=>e.key===tC?tD():e),a=t.findIndex(e=>e.key===tC);return[...t.slice(0,a+1),n,...t.slice(a+1)]}),tU(n)}async function t_(e){let t=tq.map(e=>e.key===tC?tD():e),s=t.filter(t=>e.includes(t.key));if(!s.length)return;let n=s.filter(eU);if(n.length){let e=1===s.length;if(!await m({title:e?`Close “${eD(n[0])}” without saving?`:`Close ${s.length} tabs?`,body:e?"Its changes have not been saved.":1===n.length?`“${eD(n[0])}” has changes that are not saved.`:`${n.length} of them have changes that are not saved.`,confirmLabel:"Close",tone:"danger"}))return}for(let e of s)e.liveId&&Y.D.close(e.liveId);let a=t.filter(t=>!e.includes(t.key));if(!e.includes(tC))return t$(a);let r=t.findIndex(e=>e.key===tC),l=t.slice(r+1).find(t=>!e.includes(t.key))??t.slice(0,r).reverse().find(t=>!e.includes(t.key))??eT();t$(a.length?a:[l]),tU(l)}let[tV,tH]=(0,R.useState)(null),[tB,tK]=(0,R.useState)(!1);async function tW(){try{let e=await V.v.index(),t=t=>e.requests.find(e=>"Practice"===e.collection&&e.name===t),s=t("Sign in")?.id??(await V.v.create({name:"Sign in",collection:"Practice",request:{...(0,_.e)({...(0,_.t)(),method:"POST"},"{{practiceApi}}/login"),bodyMode:"json",bodyText:'{\n "username": "you",\n "password": "demo"\n}',checks:[{type:"status",expect:"200"}]}})).id,n=t("My orders"),a=n?await V.v.get(n.id):await V.v.create({name:"My orders",collection:"Practice",request:{...(0,_.e)((0,_.t)(),"{{practiceApi}}/orders"),authMode:"bearer",token:"{{token}}",checks:[{type:"status",expect:"200"}],before:{requestId:s,requestName:"Sign in",extract:[{name:"token",from:"json",path:"data.token"}]}}});await F(),tA(!0),await tZ(a),i("Added Practice → Sign in and My orders. Press Send: it signs in first, then uses the token.","success")}catch(e){i(e instanceof Error?e.message:"Could not add the practice requests","error")}}function tZ(e){if(B?.id===e.id)return;let t=tq.find(t=>t.key!==tC&&t.saved?.id===e.id);if(t)return tF(t.key);let s=(0,_.i)(e.request);tJ(s,{id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(s)})}(0,R.useEffect)(()=>{let e=()=>tK(!(0,ej.v)());return e(),window.addEventListener(ej.c,e),()=>window.removeEventListener(ej.c,e)},[]);let tG=(0,R.useRef)(()=>{});tG.current=e=>{let t=(0,_.i)(e.request),s={id:e.id,name:e.name,collection:e.collection,snapshot:JSON.stringify(t)};B?.id===e.id?(eN(t),tP(s)):t$(n=>n.map(n=>n.saved?.id===e.id?{...n,draft:t,saved:s}:n))},(0,R.useEffect)(()=>{let e=e=>tG.current(e.detail);return window.addEventListener(eR.H,e),()=>window.removeEventListener(eR.H,e)},[]),(0,R.useEffect)(()=>{let e=e=>{let t=e.detail;W(e=>e?.id===t.id?{...e,name:t.name,collection:t.collection}:e),t$(e=>e.map(e=>e.saved?.id===t.id?{...e,saved:{...e.saved,name:t.name,collection:t.collection}}:e))};return window.addEventListener(Z.C,e),()=>window.removeEventListener(Z.C,e)},[]);let tX=(0,R.useRef)(tZ);tX.current=tZ;let tQ=(0,R.useRef)(tJ);function tY(){tJ((0,_.t)(),null),window.setTimeout(()=>ea.current?.focus(),0)}async function t0(){try{td(null);let e=await (0,eg.c)(er,B?.collection,D),t=(0,_.x)(e.draft,e.vars,U?.name),s=/^wss?:\/\//i.test(t.url),n=s?(0,_.e)(t,t.url.replace(/^ws/i,"http")):t,a=(0,_.M)(n,(0,_.S)(eS),(0,_.m)(n,B?.name),(0,_.n)(N));return e.contract&&!s&&(a.contract=e.contract),s&&(a.request={...a.request,url:a.request.url.replace(/^http/i,"ws")}),await (0,ey.f)(a,t,D,U?.name)}catch(e){return td(e instanceof Error?e.message:"Request is not valid"),null}}async function t1(){try{let e={...er,method:"POST",bodyMode:"graphql",graphqlQuery:s.V,graphqlVariables:"",graphqlOperation:"IntrospectionQuery",graphqlErrorsFail:!1,checks:[],saveValues:[],testData:null},t=await (0,eg.c)(e,B?.collection,D),n=(0,_.x)(t.draft,t.vars,U?.name),{request:a,auth:r,options:l,setup:i}=await (0,ey.f)((0,_.M)(n,(0,_.S)(eS),"schema"),n,D,U?.name),o=await fetch("/engine/graphql/introspect",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({request:a,auth:r,options:l,setup:i})}),c=await o.json();return o.ok?c:{status:0,body:"",error:c.error??`Engine error (${o.status})`}}catch(e){return{status:0,body:"",error:e instanceof Error?e.message:String(e)}}}tQ.current=tJ,(0,R.useEffect)(()=>{let e=()=>{let e=null;try{e=sessionStorage.getItem(ew.M),sessionStorage.removeItem(ew.M)}catch{}e&&V.v.get(e).then(e=>tX.current(e)).catch(()=>i("That saved request is gone","error"));let t=null;try{t=sessionStorage.getItem(ew.n),sessionStorage.removeItem(ew.n)}catch{}if(t)try{let e=JSON.parse(t);tQ.current((0,_.e)((0,_.i)(e),e.url??""),null)}catch{}};return eE&&e(),window.addEventListener(ew.V,e),()=>window.removeEventListener(ew.V,e)},[eE]);let[t2,t5]=(0,R.useState)(0);async function t6(){if(tz||!tM)return;let e=performance.now(),s=await t0(),n=Math.round(performance.now()-e);if(!s)return;if(/^wss?:\/\//i.test(s.request.url)){if(eQ&&e0)return void await Y.D.close(eQ);e8(!0),tb("response");try{eQ&&Y.D.close(eQ);let{id:e}=await Y.D.connect({request:s.request,auth:s.auth,options:s.options});eX(null),eY(e),e1(!0)}catch(e){td(e instanceof Error?e.message:"Could not connect")}finally{e8(!1)}return}if("production"===(0,eC.v)(U)&&!(0,eC.p)(s.request.method)&&!await m({title:`Send ${s.request.method} to ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["This request can change real data on ",(0,ei.q)(s.request.url),"."]}),confirmLabel:`Send to ${U.name}`,tone:"danger"}))return;e8(!0),to(!1),tb("response");let a=new AbortController;ta.current=a,tn(Date.now()),tt([{id:"prepare",label:"Prepared: folders, connection, variables",state:"done",ms:n}]);try{eY(null);let e=await (0,ei.V)(s,B?.id,{signal:a.signal,onStep:e=>tt(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e])});e5(null),e9(!1),eX(e);let t=(e.saved??[]).flatMap(e=>e.found&&void 0!==e.value?[{name:e.name,value:e.value}]:[]);H(t,B?.name??"the last Send")}finally{e8(!1),ta.current=null}}async function t9(e=!1){if(tz||tR||!tM||!x.k6Ready)return;if(tO)return void td(tO);let s=await t0();if(s){if(to(!1),!e){tl(!0);try{let e=await (0,ei.V)(s);if(eX(e),!(0,ei.A)(e)){to(!0),tb("response");return}}finally{tl(!1)}}if("production"===(0,eC.v)(U)){if(!await m({title:`Performance test ${U.name}?`,body:(0,t.jsxs)(t.Fragment,{children:["A performance test sends many requests at once to ",(0,ei.q)(s.request.url),". Real users of that system may notice."]}),confirmLabel:"Start performance test",tone:"danger"}))return}else if((0,ei.n)(eS.preset,s.load,s.request.url)&&!await m({title:`Start a ${(0,M.A)(eS)} performance test against ${(0,ei.q)(s.request.url)}?`,body:(0,t.jsxs)(t.Fragment,{children:["This is a ",(0,t.jsx)("span",{className:"text-ink",children:eS.preset})," profile against a non-local host (",(0,M.A)(eS),"). Only load-test systems you own or are allowed to test.",(0,t.jsxs)("span",{className:"mt-2 block",children:["Each simulated user sends its next request as soon as the last one returns, so a few dozen users can mean thousands of requests per second. Public sites and APIs behind a CDN or firewall usually answer that with ",(0,t.jsx)("span",{className:"text-ink",children:"429"})," or"," ",(0,t.jsx)("span",{className:"text-ink",children:"403"})," and may block this computer for a while — test a staging server, or use Requests per second mode with a modest rate."]})]}),confirmLabel:"Start performance test",tone:"danger"}))return;try{let e=await (0,ei.Q)(s);e_(e.id),tm(e),tb("report")}catch(e){i(e instanceof Error?e.message:"Failed to start load","error")}}}async function t3(){if(!tu)return;let e=await (0,ei.Z)(tu.id);e?tm(e):i("Could not reach the engine to stop the run","error")}(0,R.useEffect)(()=>{t2&&t6()},[t2]),(0,em.B)({send:()=>void t6(),run:()=>void t9(),focusUrl:()=>ea.current?.focus(),save:()=>B?void tT():ee(!0),toggleSaved:()=>tA(!et)});let t7=/^wss?:\/\//i.test((0,r.N)(er.url,D).text),t4=t7?"Performance tests of WebSockets aren't available yet — Connect to try it":x.k6Ready?tM?tO??void 0:"Enter a URL first":x.k6Label,t8=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button","data-tour":"send",onClick:()=>void t6(),disabled:tz||!tM,title:t7?e0?"Close the connection":`Open the WebSocket (${b}+Enter)`:`Send one request (${b}+Enter)`,className:t7&&e0?"btn btn-secondary":"btn btn-primary",children:[e4?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):t7?e0?(0,t.jsx)(C.f,{size:16}):(0,t.jsx)(k.f,{size:16}):(0,t.jsx)(S.f,{size:16}),t7?e0?"Disconnect":"Connect":"Send"]}),tR?(0,t.jsxs)("button",{type:"button",onClick:()=>void t3(),disabled:tu?.stopping,className:"btn btn-danger",children:[tu?.stopping?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(q.f,{size:16}),tu?.stopping?"Stopping…":"Stop"]}):(0,t.jsxs)("button",{type:"button","data-tour":"run",onClick:()=>void t9(),disabled:tz||!!t4,title:t4??`Check the request, then run the load profile (${b}+Shift+Enter)`,className:"btn btn-secondary",children:[tr?(0,t.jsx)(f.f,{size:16,className:"animate-spin"}):(0,t.jsx)(v.f,{size:16}),tr?"Checking…":"Run performance test"]}),(0,t.jsx)(eZ,{dirty:B?tI:JSON.stringify(er)!==eA,isSaved:!!B,onHistory:B?()=>(0,eR.g)(B.id):void 0,onExport:B?()=>(0,eM.q)({kind:"request",id:B.id,name:B.name,collection:B.collection}):void 0,title:`Save request (${b}+S)`,onSave:()=>B?void tT():ee(!0),onSaveAs:()=>ee(!0)})]}),se=tq.map(e=>e.key===tC?tD():e);return(0,t.jsx)(ev.$,{collection:B?.collection,url:er.url,children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[se.length?(0,t.jsxs)("div",{className:"flex shrink-0 items-stretch border-b border-line bg-canvas",children:[(0,t.jsx)("button",{type:"button",onClick:()=>tA(!et),"aria-label":et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,"aria-pressed":et,title:et?`Hide saved requests (${b}+B)`:`Show saved requests (${b}+B)`,className:`hidden shrink-0 items-center border-r border-line px-3 hover:bg-panel/60 hover:text-ink lg:flex ${et?"text-ink":"text-mute"}`,children:(0,t.jsx)(h.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{role:"tablist","aria-label":"Open requests",className:"flex min-w-0 items-stretch overflow-x-auto",children:se.map(e=>{let s=e.key===tC,n=eD(e);return(0,t.jsxs)("div",{onContextMenu:t=>{t.preventDefault();let s=Number(document.documentElement.style.zoom)||1;tH({key:e.key,x:t.clientX/s,y:t.clientY/s})},onMouseDown:t=>{1===t.button&&(t.preventDefault(),t_([e.key]))},className:`flex max-w-60 min-w-0 shrink-0 items-center border-r border-line ${s?"bg-panel shadow-[inset_0_2px_0_var(--accent)]":"hover:bg-panel/60"}`,children:[(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>tF(e.key),onKeyDown:t=>{if("ContextMenu"===t.key||t.shiftKey&&"F10"===t.key){t.preventDefault();let s=(0,eb.C)(t.currentTarget);tH({key:e.key,x:s.left+8,y:s.bottom})}},title:e.saved?.collection?`${e.saved.collection} / ${n}`:n,className:"tab-btn flex min-w-0 items-center gap-2 py-2 pr-1 pl-3 text-sm",children:[(0,t.jsx)("span",{className:`font-mono text-[11px] font-semibold ${eF[e.draft.method]??"text-mute"}`,children:"DELETE"===e.draft.method?"DEL":e.draft.method}),(0,t.jsx)("span",{className:`truncate ${s?"text-ink":"text-mute"}`,children:n})]}),e.saved&&eU(e)?(0,t.jsx)("span",{title:"Not saved","aria-label":"not saved",className:"h-1.5 w-1.5 shrink-0 rounded-full bg-accent"}):null,(0,t.jsx)("button",{type:"button",onClick:()=>{t_([e.key])},"aria-label":`Close ${n}`,title:"Close (middle click)",className:"mx-1 shrink-0 rounded p-1 text-mute hover:bg-panel-2 hover:text-ink",children:(0,t.jsx)(E.X,{size:13,"aria-hidden":!0})})]},e.key)})}),tV?(()=>{let e=se.map(e=>e.key),s=e.indexOf(tV.key),n=se[s];if(!n)return null;let a=e=>()=>{tH(null),e()},r=se.filter(e=>!eU(e)).map(e=>e.key);return(0,t.jsxs)(X.c,{at:tV,label:`Actions for ${eD(n)}`,onClose:()=>tH(null),children:[(0,t.jsx)(X.d,{icon:E.X,label:"Close",hint:"Middle click",onSelect:a(()=>void t_([tV.key]))}),(0,t.jsx)(X.d,{icon:$,label:"Close others",disabled:e.length<2,onSelect:a(()=>void t_(e.filter(e=>e!==tV.key)))}),(0,t.jsx)(X.d,{icon:l.f,label:"Close to the right",disabled:s===e.length-1,onSelect:a(()=>void t_(e.slice(s+1)))}),(0,t.jsx)(X.d,{icon:o.f,label:"Close unchanged",disabled:!r.length,onSelect:a(()=>void t_(r))}),(0,t.jsx)(X.d,{icon:p.f,label:"Close all",onSelect:a(()=>void t_(e))}),(0,t.jsx)(X.Z,{}),(0,t.jsx)(X.d,{icon:u.f,label:"Duplicate",onSelect:a(()=>(function(e){let t=e===tC?tD():tq.find(t=>t.key===e);if(!t)return;let s={key:eP(),draft:structuredClone(t.draft),saved:null,result:null,liveId:null,liveOpen:!1};t$(t=>{let n=t.map(e=>e.key===tC?tD():e),a=n.findIndex(t=>t.key===e);return[...n.slice(0,a+1),s,...n.slice(a+1)]}),tU(s)})(tV.key))}),(0,t.jsx)(X.d,{icon:d.f,label:"Copy URL",disabled:!n.draft.url.trim(),onSelect:a(()=>void navigator.clipboard.writeText(n.draft.url).then(()=>i("Copied the URL","success"),()=>i("Could not copy","error")))})]})})():null,(0,t.jsx)("button",{type:"button",onClick:()=>tY(),"aria-label":"New request tab",title:"New request",className:"shrink-0 px-3 text-mute hover:bg-panel/60 hover:text-ink",children:(0,t.jsx)(j.f,{size:15,"aria-hidden":!0})}),(0,t.jsx)("div",{className:"ml-auto flex shrink-0 items-center px-2",children:(0,t.jsx)(T.f,{compact:!0,drafts:[er],collections:[B?.collection]})})]}):null,(0,t.jsxs)("header",{className:"border-b border-line bg-panel px-4 py-3 lg:px-6",children:[(0,t.jsx)("h1",{className:"sr-only",children:"Test an API"}),(0,t.jsx)(O.f,{ref:ea,draft:er,onChange:e=>{eN(e),td(null)},onImported:e=>i(e,"success"),actions:t8}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-mute empty:hidden",children:[(0,t.jsx)(K,{draft:er,sent:!!(eG&&eG.status>0),onChange:eN}),G?(0,t.jsx)(Z.Z,{initial:{name:B?.name??(0,_.m)(er).replace(/ · \d.*$/,""),collection:B?.collection??""},onSave:(e,t)=>void tT({name:e,collection:t}),onCancel:()=>ee(!1)}):null,tc?(0,t.jsx)("span",{className:"text-bad",role:"alert",children:tc}):null]})]}),(0,t.jsxs)("div",{ref:tw.gridRef,style:ty?void 0:tw.gridStyle,className:`relative grid min-h-0 flex-1 overflow-y-auto ${tN?"":"transition-[grid-template-columns] duration-200 ease-out"} motion-reduce:transition-none lg:overflow-hidden ${ty?"":tj?`lg:grid-rows-[minmax(0,1fr)_minmax(0,1fr)] ${et?"lg:grid-cols-[15rem_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,1fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)]"}`:et?"lg:grid-cols-[15rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[16rem_minmax(0,5fr)_minmax(0,7fr)]":"lg:grid-cols-[0rem_minmax(0,1fr)_minmax(0,1fr)] 2xl:grid-cols-[0rem_minmax(0,5fr)_minmax(0,7fr)]"}`,children:[ty?null:(0,t.jsx)("div",{inert:!et,"aria-hidden":!et||void 0,className:`min-h-0 min-w-0 overflow-hidden transition-opacity duration-200 motion-reduce:transition-none ${tj?"lg:row-span-2":""} ${et?"opacity-100":"opacity-0 max-lg:hidden"}`,children:(0,t.jsx)("div",{className:"flex h-full w-[15rem] flex-col 2xl:w-[16rem] [&>aside]:flex-1",style:tw.panelWidth?{width:tw.panelWidth}:void 0,children:(0,t.jsx)(Z.N,{activeId:B?.id??null,onOpen:e=>void tZ(e),onNew:()=>void tY()})})}),!ty&&et?(0,t.jsx)(ef.f,{orientation:"vertical",label:"Saved requests panel width",value:tw.panel.value,onMove:e=>tw.panel.onMove(e),onStep:tw.panel.onStep,onReset:tw.panel.onReset,onDragging:tS,className:"absolute inset-y-0 -translate-x-1/2",style:tw.panel.style}):null,ty?null:(0,t.jsx)(ef.f,{orientation:tj?"horizontal":"vertical",label:tj?"Request and response heights":"Request and response widths",value:tw.split.value,onMove:tw.split.onMove,onStep:tw.split.onStep,onReset:tw.split.onReset,onDragging:tS,className:tj?"absolute -translate-y-1/2":"absolute -translate-x-1/2",style:tw.split.style}),ty?null:(0,t.jsx)("section",{ref:e3,"aria-label":"Request",className:"min-w-0 px-4 py-4 lg:overflow-y-auto lg:px-6",children:(0,t.jsx)(z.p,{id:"lab-request",draft:er,onChange:eN,checkResults:eG?.checks,lastBody:eG?.body,lastResult:eG??void 0,setupResult:eG?.setup,savedResults:eG?.saved,currentId:B?.id,collection:B?.collection,introspect:t1,extraTabs:[{id:"load",label:"Performance",badge:eS.stages?.length?"stages":"rate"===eS.mode?`${eS.rps}/s`:`${eS.vus} users \xb7 ${eS.duration}`,content:(0,t.jsx)(M.B,{load:eS,onChange:eq})},{id:"targets",label:"Goals",content:(0,t.jsx)(eW,{})}]})}),(0,t.jsxs)("section",{ref:e7,"aria-label":"Results",className:`@container flex min-h-[32rem] min-w-0 flex-col border-line bg-panel/40 px-4 py-4 lg:min-h-0 lg:overflow-y-auto lg:px-6 ${tj&&!ty?"lg:border-t":"lg:border-l"}`,children:[(0,t.jsx)(A.i,{id:"lab-results",label:"Results",value:tf,onChange:tb,items:[{id:"response",label:"Response",badge:eG?eG.status||"ERR":void 0},{id:"report",label:tR?(0,t.jsx)(eV,{}):"Performance report"}],trailing:(0,t.jsxs)(t.Fragment,{children:["report"===tf&&tp.length>0?(0,t.jsx)(eB,{runs:tp,current:tu,disabled:tR,onPick:async e=>{try{let t=await ed.c.run(e.id);e_(e.id),tm({id:t.report.id,status:t.report.status,report:t.report})}catch(e){i(e instanceof Error?e.message:"Could not open that run","error")}}}):null,ty?null:(0,t.jsx)("button",{type:"button",onClick:()=>tk(tj?"beside":"below"),"aria-label":tj?"Show the response beside the request":"Show the response below the request",title:tj?"Response beside the request":"Response below the request",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:tj?(0,t.jsx)(c.f,{size:14}):(0,t.jsx)(w,{size:14})}),(0,t.jsx)("button",{type:"button",onClick:()=>tg(e=>!e),"aria-label":ty?"Show the request editor":"Expand results to full width",title:ty?"Show the request editor":"Expand results",className:"hidden rounded p-1.5 text-mute hover:bg-panel-2 hover:text-ink lg:block",children:ty?(0,t.jsx)(g,{size:14}):(0,t.jsx)(y,{size:14})})]})}),(0,t.jsx)("div",{...(0,A.q)("lab-results",tf),className:"flex min-h-0 flex-1 flex-col pt-4",children:"response"===tf?(0,t.jsxs)(t.Fragment,{children:[ti&&eG?(0,t.jsxs)("div",{role:"alert",className:"mb-4 flex flex-wrap items-center gap-3 rounded-md border border-warn/40 bg-warn/10 px-3 py-2.5",children:[(0,t.jsxs)("p",{className:"min-w-0 flex-1 text-sm text-ink",children:[(0,t.jsx)("span",{className:"font-medium text-warn",children:"Performance test not started."})," The check returned"," ",eG.status||"an error",", not 2xx. Fix the request, or run anyway if this status is expected."]}),(0,t.jsx)("button",{type:"button",className:"btn btn-secondary py-1.5 text-xs",onClick:()=>void t9(!0),children:"Run anyway"})]}):null,e4&&te.length?(0,t.jsx)(e$,{steps:te,startedAt:ts,onCancel:()=>ta.current?.abort()}):eQ&&!eG?(0,t.jsx)(Y.d,{id:eQ,onClosed:()=>e1(!1)}):eG&&e2?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-accent/40 bg-accent/10 px-3 py-2 text-xs",children:[(0,t.jsxs)("span",{className:"text-ink",children:[e6?"What changed since":"An earlier answer —"," ",new Date(e2.answer.at).toLocaleString()]}),(0,t.jsxs)("span",{className:"ml-auto flex gap-2",children:[(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e9(e=>!e),children:e6?"Show that answer":"Compare with the latest"}),(0,t.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:()=>e5(null),children:"Back to the latest"})]})]}),e6?(0,t.jsx)(el,{earlier:e2.answer,latest:eG}):(0,t.jsx)(I.p,{result:{ok:(e=e2.answer).status>=200&&e.status<400,status:e.status,statusText:String(e.status),headers:e.headers,body:e.body,truncated:e.truncated,durationMs:e.durationMs,url:e.url,...e.error?{error:e.error}:{},...e.checks?{checks:e.checks}:{}}})]}):eG?(0,t.jsx)(I.p,{result:eG,onWaitLonger:e=>{eN(t=>({...t,timeout:e})),t5(e=>e+1),i(`This request now waits up to ${e} — save it to keep that`,"success")},extra:B?.id?(0,t.jsx)(en,{requestId:B.id,refreshKey:eG,onOpen:(e,t)=>0===t?e5(null):(e5({answer:e,index:t}),e9(!1))}):null,onSaveExample:()=>{eN(e=>({...e,mock:(0,a.j)(eG.status,eG.headers,eG.body)})),i(B?"Kept as the mock example — save the request to keep it":"Kept as the mock example — save the request to use it in the mock server","success")}}):tB?(0,t.jsx)(ej.y,{practiceReady:!!x.demoApi,onSimple:()=>void(tJ({...(0,_.e)((0,_.t)(),"{{practiceApi}}/products"),checks:[{type:"status",expect:"2xx"},{type:"json",path:"items[0].name",op:"exists",value:""}]},null),i("Practice request ready — press Send","success")),onSignIn:()=>void tW(),onHide:()=>(0,ej.e)(!0)}):(0,t.jsx)(eH,{title:"Send a request to see the response",lines:[(0,t.jsx)(t.Fragment,{children:"Paste a URL — or a whole curl command from your browser's DevTools — into the bar above."}),(0,t.jsxs)(t.Fragment,{children:["Press ",(0,t.jsx)("span",{className:"kbd",children:b}),"+",(0,t.jsx)("span",{className:"kbd",children:"Enter"})," to send it."]})]})]}):tu?(0,t.jsxs)(t.Fragment,{children:[tu.error?(0,t.jsx)("p",{role:"alert",className:"mb-3 rounded-md border border-bad/40 bg-bad/10 px-3 py-2 text-sm text-bad",children:tu.error}):null,(0,t.jsx)(L.f,{report:tu.report,source:"session",live:tR,probe:eG})]}):(0,t.jsx)(eH,{title:"No performance test yet",lines:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-ink",children:"Run performance test"})," sends one check request first, then runs"," ",(0,t.jsx)("span",{className:"font-mono text-ink",children:(0,M.A)(eS)})," with k6."]}),(0,t.jsx)(t.Fragment,{children:"Change users, duration, and ramps in the Performance tab. Set pass/fail goals in Goals."})],action:(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",disabled:tz||!!t4,title:t4,onClick:()=>void t9(),children:[(0,t.jsx)(v.f,{size:16}),"Run performance test"]})})})]})]})]})})},"VerdictTag",0,eK],6980)},90139,1245,33577,85905,e=>{var t=e.i(99522);let s=(0,t.f)("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]);e.s(["f",0,s],90139);var n=e.i(95754);e.s(["f",()=>n.f],1245);let a=(0,t.f)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);e.s(["f",0,a],33577);let r=(0,t.f)("copy-plus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["f",0,r],85905)},30197,e=>{let t=(0,e.i(99522).f)("list-x",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]);e.s(["f",0,t],30197)}])})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:"/_next/static/chunks/0g9k0swrer6i5.js"
|
|
3
3
|
3:"/_next/static/chunks/0bgmfb8f3pd8e.js"
|
|
4
|
-
4:"/_next/static/chunks/
|
|
5
|
-
5:"/_next/static/chunks/
|
|
4
|
+
4:"/_next/static/chunks/2sr5dm3__ghgo.js"
|
|
5
|
+
5:"/_next/static/chunks/1snbdq1z951ks.js"
|
|
6
6
|
6:I[87329,["$2","$3","$4","$5"],"Providers"]
|
|
7
7
|
7:I[60459,["$2","$3","$4","$5"],"AppShell"]
|
|
8
8
|
8:I[80474,["$2","$3","$4","$5"],"default"]
|
|
@@ -18,7 +18,7 @@ e:"$Sreact.suspense"
|
|
|
18
18
|
b:X
|
|
19
19
|
c:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$Ld",null,{"children":["$","$e",null,{"name":"Next.MetadataOutlet","children":"$@f"}]}]]}],"p":false,"v":null}}]]
|
|
20
20
|
a:[["children",{"s":"/_not-found","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$b"},"c":"$Qc"}]]
|
|
21
|
-
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0g9k0swrer6i5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0bgmfb8f3pd8e.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/
|
|
21
|
+
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0g9k0swrer6i5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0bgmfb8f3pd8e.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/2sr5dm3__ghgo.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/1snbdq1z951ks.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"h-full HSxXEW_variable _2UZmra_variable","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-full font-sans antialiased","children":["$","$L6",null,{"children":["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L11",null,{"children":"$L12"}],["$","$L14",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":"$L15"}]}],null]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"p":false,"v":null}},"m":"$undefined","G":["$16",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"lomhkNrlljr9WxdUu6_Mc"}
|
|
22
22
|
b:C
|
|
23
23
|
12:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
24
24
|
17:I[64052,["$2","$3","$4","$5"],"IconMark"]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:"/_next/static/chunks/0g9k0swrer6i5.js"
|
|
3
3
|
3:"/_next/static/chunks/0bgmfb8f3pd8e.js"
|
|
4
|
-
4:"/_next/static/chunks/
|
|
5
|
-
5:"/_next/static/chunks/
|
|
4
|
+
4:"/_next/static/chunks/2sr5dm3__ghgo.js"
|
|
5
|
+
5:"/_next/static/chunks/1snbdq1z951ks.js"
|
|
6
6
|
6:I[87329,["$2","$3","$4","$5"],"Providers"]
|
|
7
7
|
7:I[60459,["$2","$3","$4","$5"],"AppShell"]
|
|
8
8
|
8:I[80474,["$2","$3","$4","$5"],"default"]
|
|
@@ -20,7 +20,7 @@ e:X
|
|
|
20
20
|
e:C
|
|
21
21
|
f:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}],"p":"$@13","v":null,"s":"$b"}}]]
|
|
22
22
|
c:[["children",{"s":"/_not-found","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","template":["$","$L9",null,{}]}]]}],"p":"$@d","v":"$e","s":"$b"},"c":"$Qf"}]]
|
|
23
|
-
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0g9k0swrer6i5.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0bgmfb8f3pd8e.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/
|
|
23
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2sjog4to0fmbb.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0g9k0swrer6i5.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0bgmfb8f3pd8e.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/2sr5dm3__ghgo.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/1snbdq1z951ks.js","async":true}]],["$","html",null,{"lang":"en","className":"h-full HSxXEW_variable _2UZmra_variable","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-full font-sans antialiased","children":["$","$L6",null,{"children":["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","template":["$","$L9",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"p":"$@a","v":null,"s":"$b"},"c":"$Qc"},"h":{"r":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L15",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L17",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$11",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"APITestCenter"}],["$","meta","1",{"name":"description","content":"Test APIs and performance test them, on your own computer."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0pwkek30ie1za.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/icon.png?icon.3k806k9hro987.png","sizes":"512x512","type":"image/png"}],["$","$L18","4",{}]]}]}],null]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"p":"$@19","v":null,"s":"$b"}},"a":"$@1a","u":"$@1b","b":"lomhkNrlljr9WxdUu6_Mc"}
|
|
24
24
|
12:null
|
|
25
25
|
b:300
|
|
26
26
|
1b:true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:HL["/_next/static/chunks/2sjog4to0fmbb.css","style"]
|
|
2
2
|
2:[["children",{"s":"__PAGE__","h":160}]]
|
|
3
3
|
1:[["children",{"s":"/_not-found","h":96,"c":"$Q2"}]]
|
|
4
|
-
0:{"b":"
|
|
4
|
+
0:{"b":"lomhkNrlljr9WxdUu6_Mc","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="h-full HSxXEW_variable _2UZmra_variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2sjog4to0fmbb.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1-t79a3q7gmjn.js"/><script src="/_next/static/chunks/12whdxhkvkd-y.js" async=""></script><script src="/_next/static/chunks/243c1-49gb3pr.js" async=""></script><script src="/_next/static/chunks/32_tmz8ibsdo3.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/0g9k0swrer6i5.js" async=""></script><script src="/_next/static/chunks/0bgmfb8f3pd8e.js" async=""></script><script src="/_next/static/chunks/2sb9zma7ae-_f.js" async=""></script><script src="/_next/static/chunks/2c1b5jqwxl4ra.js" async=""></script><meta name="robots" content="noindex"/><title>APITestCenter</title><meta name="description" content="Test APIs and performance test them, on your own computer."/><link rel="icon" href="/favicon.ico?favicon.0pwkek30ie1za.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="/icon.png?icon.3k806k9hro987.png" sizes="512x512" type="image/png"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="h-full font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","apitestcenter-theme","system",null,["light","dark"],null,true,true)</script><div class="flex flex-col overflow-hidden" style="height:calc(100dvh / var(--zoom, 1))"><a href="#main" class="sr-only z-50 rounded-md bg-accent px-3 py-2 text-sm text-canvas focus:not-sr-only focus:fixed focus:top-2 focus:left-2">Skip to content</a><header class="app-titlebar flex shrink-0 items-center gap-3 border-b border-line bg-panel px-3" style="height:calc(48px / var(--zoom, 1))"><a class="flex shrink-0 items-center gap-2 rounded-md px-1 py-1" aria-label="APITestCenter home" href="/"><svg width="26" height="26" viewBox="10.5 8.5 47 47" aria-hidden="true"><rect x="10.5" y="8.5" width="47" height="47" rx="11" fill="#C8F560"></rect><path d="M47.4 32.3 V36.7 Q47.4 40.9 43.75 42.98 L35.65 47.72 Q32 49.8 28.35 47.72 L20.25 42.98 Q16.6 40.9 16.6 36.7 V27.3 Q16.6 23.1 20.25 21.02 L28.35 16.28 Q32 14.2 35.65 16.28 L43.75 21.02 Q47.4 23.1 47.4 27.3" fill="none" stroke="#10140A" stroke-width="4" stroke-linejoin="round"></path><path d="M37.5 29.8 H51.5" stroke="#10140A" stroke-width="2.6"></path><circle cx="51.5" cy="29.8" r="3" fill="#10140A"></circle><path d="M22.9 23.7 L29.4 29.8 L22.9 35.9" fill="none" stroke="#10140A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><circle cx="37.5" cy="29.8" r="4.1" fill="#10140A"></circle><path d="M27.2 37.9 Q32 42.1 36.8 37.9" fill="none" stroke="#10140A" stroke-width="3.3" stroke-linecap="round"></path></svg><span class="hidden text-sm font-semibold tracking-tight text-ink sm:inline">APITestCenter</span></a><div class="flex min-w-0 flex-1 justify-center"><button type="button" aria-label="Open command palette" title="Search, run or jump to anything (Ctrl+K)" class="flex h-8 w-full max-w-md min-w-0 items-center gap-2 rounded-lg border border-line bg-canvas px-3 text-sm text-mute hover:border-mute hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search shrink-0" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><span class="min-w-0 flex-1 truncate text-left">Search, run or jump to anything</span><span class="kbd shrink-0">Ctrl<!-- --> K</span></button></div><div class="flex shrink-0 items-center justify-end gap-2 sm:min-w-40"><button type="button" title="Optional: brings a Pro or Team plan to this computer" class="flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-log-in" aria-hidden="true"><path d="m10 17 5-5-5-5"></path><path d="M15 12H3"></path><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path></svg> Sign in</button><button type="button" aria-label="Settings" title="Settings (Ctrl+,)" class="rounded-md p-1.5 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></div></header><div class="flex min-h-0 flex-1"><aside aria-label="Main navigation" class="flex w-[4.75rem] shrink-0 flex-col items-center gap-1 border-r border-line bg-panel py-2"><nav class="flex w-full flex-col items-center gap-1 px-1.5"><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/home/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>Home</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-flask-conical" aria-hidden="true"><path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"></path><path d="M6.453 15h11.094"></path><path d="M8.5 2h7"></path></svg>Test API</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/suite/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-list-checks" aria-hidden="true"><path d="m3 17 2 2 4-4"></path><path d="m3 7 2 2 4-4"></path><path d="M13 6h8"></path><path d="M13 12h8"></path><path d="M13 18h8"></path></svg>Run collection</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/compare/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-compare-arrows" aria-hidden="true"><circle cx="5" cy="6" r="3"></circle><path d="M12 6h5a2 2 0 0 1 2 2v7"></path><path d="m15 9-3-3 3-3"></path><circle cx="19" cy="18" r="3"></circle><path d="M12 18H7a2 2 0 0 1-2-2V9"></path><path d="m9 15 3 3-3 3"></path></svg>Compare</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/connections/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plug" aria-hidden="true"><path d="M12 22v-5"></path><path d="M9 8V2"></path><path d="M15 8V2"></path><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"></path></svg>Connections</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/history/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-history" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M12 7v5l4 2"></path></svg>History</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/preview/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-search" aria-hidden="true"><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"></path><path d="m9 18-1.5-1.5"></path><circle cx="5" cy="14" r="3"></circle></svg>Open report</a></nav><div class="flex-1"></div><button type="button" title="Deleted requests — restore them for 30 days" class="flex w-[calc(100%-0.75rem)] flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash2 lucide-trash-2" aria-hidden="true"><path d="M10 11v6"></path><path d="M14 11v6"></path><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path><path d="M3 6h18"></path><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>Trash</button></aside><main id="main" class="flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><footer aria-label="Status bar" class="flex h-8 shrink-0 items-center gap-0.5 overflow-x-auto border-t border-line bg-panel px-2 text-xs whitespace-nowrap"><span role="status" class="inline-flex shrink-0 items-center gap-2 px-2 text-ink" title="Start it with pnpm dev"><span class="h-2 w-2 rounded-full bg-mute" aria-hidden="true"></span>Checking engine</span><span class="mx-1 h-4 w-px shrink-0 bg-line" aria-hidden="true"></span><button type="button" title="Import requests — Postman, Insomnia, Bruno, OpenAPI, .http, Hurl, HAR" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-up" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M12 12v6"></path><path d="m15 15-3-3-3 3"></path></svg> Import</button><button type="button" title="Cookies kept between requests" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cookie" aria-hidden="true"><path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"></path><path d="M8.5 8.5v.01"></path><path d="M16 15.5v.01"></path><path d="M12 12v.01"></path><path d="M11 17v.01"></path><path d="M7 14v.01"></path></svg> Cookies</button><button type="button" title="Client certificates and trusted CAs" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg> Certificates</button><button type="button" title="Answer requests with example responses" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server" aria-hidden="true"><rect width="20" height="8" x="2" y="2" rx="2" ry="2"></rect><rect width="20" height="8" x="2" y="14" rx="2" ry="2"></rect><line x1="6" x2="6.01" y1="6" y2="6"></line><line x1="6" x2="6.01" y1="18" y2="18"></line></svg> Mock server</button><span class="flex-1"></span><span role="group" aria-label="Zoom" class="inline-flex shrink-0 items-center"><button type="button" title="Zoom out (Ctrl −)" aria-label="Zoom out" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-minus" aria-hidden="true"><path d="M5 12h14"></path></svg></button><button type="button" title="Reset zoom (Ctrl 0)" aria-label="Zoom 100%, reset" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><span class="tabular w-9 text-center font-mono">100<!-- -->%</span></button><button type="button" title="Zoom in (Ctrl +)" aria-label="Zoom in" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></span><button type="button" title="Comfortable rows — click for compact" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rows3 lucide-rows-3" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M21 9H3"></path><path d="M21 15H3"></path></svg>Comfortable</button><button type="button" title="Theme follows the system — click to change" aria-label="Theme follows the system. Click to change." class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-monitor" aria-hidden="true"><rect width="20" height="14" x="2" y="3" rx="2"></rect><line x1="8" x2="16" y1="21" y2="21"></line><line x1="12" x2="12" y1="17" y2="21"></line></svg></button><span data-tour="help" class="inline-flex"><button type="button" title="What the words mean, and the tour" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> Help</button></span><button type="button" title="Version, updates, and where your files are" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink">Development build</button></footer><!--$!--><template data-dgst=""></template><!--/$--></div><div aria-live="polite" class="pointer-events-none fixed right-4 bottom-4 z-50 flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-2"></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/1-t79a3q7gmjn.js","static/chunks/12whdxhkvkd-y.js","static/chunks/243c1-49gb3pr.js","static/chunks/32_tmz8ibsdo3.js"],"runtimeModuleIds":[47942]});</script><script src="/_next/static/chunks/1-t79a3q7gmjn.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0g9k0swrer6i5.js\"\n3:\"/_next/static/chunks/0bgmfb8f3pd8e.js\"\n4:\"/_next/static/chunks/2sb9zma7ae-_f.js\"\n5:\"/_next/static/chunks/2c1b5jqwxl4ra.js\"\n6:I[87329,[\"$2\",\"$3\",\"$4\",\"$5\"],\"Providers\"]\n7:I[60459,[\"$2\",\"$3\",\"$4\",\"$5\"],\"AppShell\"]\n8:I[80474,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n9:I[2236,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\nd:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n10:\"ViewportBoundary\"\n11:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$10\"]\n13:\"MetadataBoundary\"\n14:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$13\"]\n16:I[50965,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/2sjog4to0fmbb.css\",\"style\"]\nb:X\nc:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}],\"p\":false,\"v\":null}}]]\na:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$b\"},\"c\":\"$Qc\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0g9k0swrer6i5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0bgmfb8f3pd8e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2sb9zma7ae-_f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/2c1b5jqwxl4ra.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"h-full HSxXEW_variable _2UZmra_variable\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"h-full font-sans antialiased\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Qa\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"$L14\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$16\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"8uBf4sRL82dkVbEC6zib9\"}\nb:C\n12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n17:I[64052,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\nf:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"APITestCenter\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Test APIs and performance test them, on your own computer.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0pwkek30ie1za.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.3k806k9hro987.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="h-full HSxXEW_variable _2UZmra_variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2sjog4to0fmbb.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1-t79a3q7gmjn.js"/><script src="/_next/static/chunks/12whdxhkvkd-y.js" async=""></script><script src="/_next/static/chunks/243c1-49gb3pr.js" async=""></script><script src="/_next/static/chunks/32_tmz8ibsdo3.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/0g9k0swrer6i5.js" async=""></script><script src="/_next/static/chunks/0bgmfb8f3pd8e.js" async=""></script><script src="/_next/static/chunks/2sr5dm3__ghgo.js" async=""></script><script src="/_next/static/chunks/1snbdq1z951ks.js" async=""></script><meta name="robots" content="noindex"/><title>APITestCenter</title><meta name="description" content="Test APIs and performance test them, on your own computer."/><link rel="icon" href="/favicon.ico?favicon.0pwkek30ie1za.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="/icon.png?icon.3k806k9hro987.png" sizes="512x512" type="image/png"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="h-full font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","apitestcenter-theme","system",null,["light","dark"],null,true,true)</script><div class="flex flex-col overflow-hidden" style="height:calc(100dvh / var(--zoom, 1))"><a href="#main" class="sr-only z-50 rounded-md bg-accent px-3 py-2 text-sm text-canvas focus:not-sr-only focus:fixed focus:top-2 focus:left-2">Skip to content</a><header class="app-titlebar flex shrink-0 items-center gap-3 border-b border-line bg-panel px-3" style="height:calc(48px / var(--zoom, 1))"><a class="flex shrink-0 items-center gap-2 rounded-md px-1 py-1" aria-label="APITestCenter home" href="/"><svg width="26" height="26" viewBox="10.5 8.5 47 47" aria-hidden="true"><rect x="10.5" y="8.5" width="47" height="47" rx="11" fill="#C8F560"></rect><path d="M47.4 32.3 V36.7 Q47.4 40.9 43.75 42.98 L35.65 47.72 Q32 49.8 28.35 47.72 L20.25 42.98 Q16.6 40.9 16.6 36.7 V27.3 Q16.6 23.1 20.25 21.02 L28.35 16.28 Q32 14.2 35.65 16.28 L43.75 21.02 Q47.4 23.1 47.4 27.3" fill="none" stroke="#10140A" stroke-width="4" stroke-linejoin="round"></path><path d="M37.5 29.8 H51.5" stroke="#10140A" stroke-width="2.6"></path><circle cx="51.5" cy="29.8" r="3" fill="#10140A"></circle><path d="M22.9 23.7 L29.4 29.8 L22.9 35.9" fill="none" stroke="#10140A" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><circle cx="37.5" cy="29.8" r="4.1" fill="#10140A"></circle><path d="M27.2 37.9 Q32 42.1 36.8 37.9" fill="none" stroke="#10140A" stroke-width="3.3" stroke-linecap="round"></path></svg><span class="hidden text-sm font-semibold tracking-tight text-ink sm:inline">APITestCenter</span></a><div class="flex min-w-0 flex-1 justify-center"><button type="button" aria-label="Open command palette" title="Search, run or jump to anything (Ctrl+K)" class="flex h-8 w-full max-w-md min-w-0 items-center gap-2 rounded-lg border border-line bg-canvas px-3 text-sm text-mute hover:border-mute hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search shrink-0" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><span class="min-w-0 flex-1 truncate text-left">Search, run or jump to anything</span><span class="kbd shrink-0">Ctrl<!-- --> K</span></button></div><div class="flex shrink-0 items-center justify-end gap-2 sm:min-w-40"><button type="button" title="Optional: brings a Pro or Team plan to this computer" class="flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-log-in" aria-hidden="true"><path d="m10 17 5-5-5-5"></path><path d="M15 12H3"></path><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path></svg> Sign in</button><button type="button" aria-label="Settings" title="Settings (Ctrl+,)" class="rounded-md p-1.5 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></div></header><div class="flex min-h-0 flex-1"><aside aria-label="Main navigation" class="flex w-[4.75rem] shrink-0 flex-col items-center gap-1 border-r border-line bg-panel py-2"><nav class="flex w-full flex-col items-center gap-1 px-1.5"><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/home/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-house" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>Home</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-flask-conical" aria-hidden="true"><path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"></path><path d="M6.453 15h11.094"></path><path d="M8.5 2h7"></path></svg>Test API</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/suite/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-list-checks" aria-hidden="true"><path d="m3 17 2 2 4-4"></path><path d="m3 7 2 2 4-4"></path><path d="M13 6h8"></path><path d="M13 12h8"></path><path d="M13 18h8"></path></svg>Run collection</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/compare/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-compare-arrows" aria-hidden="true"><circle cx="5" cy="6" r="3"></circle><path d="M12 6h5a2 2 0 0 1 2 2v7"></path><path d="m15 9-3-3 3-3"></path><circle cx="19" cy="18" r="3"></circle><path d="M12 18H7a2 2 0 0 1-2-2V9"></path><path d="m9 15 3 3-3 3"></path></svg>Compare</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/connections/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plug" aria-hidden="true"><path d="M12 22v-5"></path><path d="M9 8V2"></path><path d="M15 8V2"></path><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"></path></svg>Connections</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/history/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-history" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M12 7v5l4 2"></path></svg>History</a><a class="flex w-full flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight transition-colors text-mute hover:bg-panel-2 hover:text-ink" href="/preview/"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-search" aria-hidden="true"><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"></path><path d="m9 18-1.5-1.5"></path><circle cx="5" cy="14" r="3"></circle></svg>Open report</a></nav><div class="flex-1"></div><button type="button" title="Deleted requests — restore them for 30 days" class="flex w-[calc(100%-0.75rem)] flex-col items-center gap-1 rounded-lg px-1 py-2 text-center text-[11px] leading-tight text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash2 lucide-trash-2" aria-hidden="true"><path d="M10 11v6"></path><path d="M14 11v6"></path><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path><path d="M3 6h18"></path><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>Trash</button></aside><main id="main" class="flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><footer aria-label="Status bar" class="flex h-8 shrink-0 items-center gap-0.5 overflow-x-auto border-t border-line bg-panel px-2 text-xs whitespace-nowrap"><span role="status" class="inline-flex shrink-0 items-center gap-2 px-2 text-ink" title="Start it with pnpm dev"><span class="h-2 w-2 rounded-full bg-mute" aria-hidden="true"></span>Checking engine</span><span class="mx-1 h-4 w-px shrink-0 bg-line" aria-hidden="true"></span><button type="button" title="Import requests — Postman, Insomnia, Bruno, OpenAPI, .http, Hurl, HAR" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-up" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M12 12v6"></path><path d="m15 15-3-3-3 3"></path></svg> Import</button><button type="button" title="Cookies kept between requests" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cookie" aria-hidden="true"><path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"></path><path d="M8.5 8.5v.01"></path><path d="M16 15.5v.01"></path><path d="M12 12v.01"></path><path d="M11 17v.01"></path><path d="M7 14v.01"></path></svg> Cookies</button><button type="button" title="Client certificates and trusted CAs" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg> Certificates</button><button type="button" title="Answer requests with example responses" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server" aria-hidden="true"><rect width="20" height="8" x="2" y="2" rx="2" ry="2"></rect><rect width="20" height="8" x="2" y="14" rx="2" ry="2"></rect><line x1="6" x2="6.01" y1="6" y2="6"></line><line x1="6" x2="6.01" y1="18" y2="18"></line></svg> Mock server</button><span class="flex-1"></span><span role="group" aria-label="Zoom" class="inline-flex shrink-0 items-center"><button type="button" title="Zoom out (Ctrl −)" aria-label="Zoom out" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-minus" aria-hidden="true"><path d="M5 12h14"></path></svg></button><button type="button" title="Reset zoom (Ctrl 0)" aria-label="Zoom 100%, reset" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><span class="tabular w-9 text-center font-mono">100<!-- -->%</span></button><button type="button" title="Zoom in (Ctrl +)" aria-label="Zoom in" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></span><button type="button" title="Comfortable rows — click for compact" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rows3 lucide-rows-3" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M21 9H3"></path><path d="M21 15H3"></path></svg>Comfortable</button><button type="button" title="Theme follows the system — click to change" aria-label="Theme follows the system. Click to change." class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-monitor" aria-hidden="true"><rect width="20" height="14" x="2" y="3" rx="2"></rect><line x1="8" x2="16" y1="21" y2="21"></line><line x1="12" x2="12" y1="17" y2="21"></line></svg></button><span data-tour="help" class="inline-flex"><button type="button" title="What the words mean, and the tour" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> Help</button></span><button type="button" title="Version, updates, and where your files are" class="inline-flex h-6 shrink-0 items-center gap-1.5 rounded px-2 text-mute hover:bg-panel-2 hover:text-ink">Development build</button></footer><!--$!--><template data-dgst=""></template><!--/$--></div><div aria-live="polite" class="pointer-events-none fixed right-4 bottom-4 z-50 flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-2"></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/1-t79a3q7gmjn.js","static/chunks/12whdxhkvkd-y.js","static/chunks/243c1-49gb3pr.js","static/chunks/32_tmz8ibsdo3.js"],"runtimeModuleIds":[47942]});</script><script src="/_next/static/chunks/1-t79a3q7gmjn.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0g9k0swrer6i5.js\"\n3:\"/_next/static/chunks/0bgmfb8f3pd8e.js\"\n4:\"/_next/static/chunks/2sr5dm3__ghgo.js\"\n5:\"/_next/static/chunks/1snbdq1z951ks.js\"\n6:I[87329,[\"$2\",\"$3\",\"$4\",\"$5\"],\"Providers\"]\n7:I[60459,[\"$2\",\"$3\",\"$4\",\"$5\"],\"AppShell\"]\n8:I[80474,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n9:I[2236,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\nd:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n10:\"ViewportBoundary\"\n11:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$10\"]\n13:\"MetadataBoundary\"\n14:I[88987,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$13\"]\n16:I[50965,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/2sjog4to0fmbb.css\",\"style\"]\nb:X\nc:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}],\"p\":false,\"v\":null}}]]\na:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$b\"},\"c\":\"$Qc\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0g9k0swrer6i5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0bgmfb8f3pd8e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2sr5dm3__ghgo.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/1snbdq1z951ks.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"h-full HSxXEW_variable _2UZmra_variable\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"h-full font-sans antialiased\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Qa\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"$L14\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$16\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2sjog4to0fmbb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"lomhkNrlljr9WxdUu6_Mc\"}\nb:C\n12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n17:I[64052,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\nf:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"APITestCenter\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Test APIs and performance test them, on your own computer.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0pwkek30ie1za.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.3k806k9hro987.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
|