railwatch 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/frontend/components/railwatch/stat.tsx +13 -1
  4. data/app/frontend/hooks/use-live.ts +26 -0
  5. data/docs/configuration.md +3 -1
  6. data/lib/railwatch/version.rb +1 -1
  7. data/lib/railwatch.rb +9 -2
  8. data/public/railwatch/assets/{app-layout-LvxN9xSS.js → app-layout-CpEbDy93.js} +1 -1
  9. data/public/railwatch/assets/{arrow-up-DG01k9AL.js → arrow-up-DAODKT5N.js} +1 -1
  10. data/public/railwatch/assets/{braces-C3w7pfxS.js → braces-DgB4bqp0.js} +1 -1
  11. data/public/railwatch/assets/{card-Dpwlr0uY.js → card-C4EFUWG1.js} +1 -1
  12. data/public/railwatch/assets/{chart-DJHv3R7W.js → chart-CD6EHDjG.js} +1 -1
  13. data/public/railwatch/assets/{chart-hover-CEH-DtXO.js → chart-hover-B5cFOZ24.js} +1 -1
  14. data/public/railwatch/assets/{chart-panel-CUdIzJvk.js → chart-panel-XD8qJDmg.js} +1 -1
  15. data/public/railwatch/assets/{code-BRZprwun.js → code-CuTKEYtT.js} +1 -1
  16. data/public/railwatch/assets/{copy-id-CwhGGiwF.js → copy-id-COM9oXfT.js} +1 -1
  17. data/public/railwatch/assets/{cursor-load-more-uF1_955Q.js → cursor-load-more-CleS4nD4.js} +1 -1
  18. data/public/railwatch/assets/{data-table-DYi-N0hm.js → data-table-Bzj8zcao.js} +1 -1
  19. data/public/railwatch/assets/{env-layout-HdcOaPPX.js → env-layout-Dic4A8Kn.js} +1 -1
  20. data/public/railwatch/assets/{execution-path-CElXXFO_.js → execution-path-C7Up9w4e.js} +1 -1
  21. data/public/railwatch/assets/{filter-bar-DEv0G_34.js → filter-bar-B5wbix1y.js} +1 -1
  22. data/public/railwatch/assets/{flamegraph-SKD9yxW9.js → flamegraph-Dve4TVkl.js} +1 -1
  23. data/public/railwatch/assets/{frames-CUpyJQDy.js → frames-CkDFkUhi.js} +1 -1
  24. data/public/railwatch/assets/{index-HRXGir-0.js → index-0glo-UpF.js} +1 -1
  25. data/public/railwatch/assets/{index-CvqfEExO.js → index-6t2RLBwA.js} +1 -1
  26. data/public/railwatch/assets/{index-CjxXgOs-.js → index-7fYWYI1v.js} +1 -1
  27. data/public/railwatch/assets/{index-CiRMSYMn.js → index-B2hTf0w6.js} +1 -1
  28. data/public/railwatch/assets/{index-74ocuU5d.js → index-B51WiPQg.js} +1 -1
  29. data/public/railwatch/assets/{index-BxCXBHP2.js → index-BA3nScnV.js} +1 -1
  30. data/public/railwatch/assets/{index-CIaZkokF.js → index-BheGBdI9.js} +1 -1
  31. data/public/railwatch/assets/{index-d-3J7gQ5.js → index-BxSwNl8H.js} +1 -1
  32. data/public/railwatch/assets/{index-BBCEkLqp.js → index-CEcv5bba.js} +1 -1
  33. data/public/railwatch/assets/{index-CEetm4oC.js → index-CG7VCShP.js} +1 -1
  34. data/public/railwatch/assets/{index-ClL-PYEV.js → index-CXSEiNWw.js} +1 -1
  35. data/public/railwatch/assets/{index-B_KFb9LS.js → index-C_3JsXHv.js} +1 -1
  36. data/public/railwatch/assets/{index-DJd3OUSd.js → index-CgoVIV-m.js} +1 -1
  37. data/public/railwatch/assets/{index-C1jc1OoH.js → index-CnlT_aCL.js} +1 -1
  38. data/public/railwatch/assets/{index-DPD-rLp6.js → index-D7t5pSOT.js} +1 -1
  39. data/public/railwatch/assets/{index-CteZ6fop.js → index-DJZkxYZf.js} +1 -1
  40. data/public/railwatch/assets/{index-Ce4SB5AB.js → index-DKwz3gSX.js} +1 -1
  41. data/public/railwatch/assets/{index-CNH85TZp.js → index-DTLmaJha.js} +1 -1
  42. data/public/railwatch/assets/{index-UJOUALr_.js → index-D_dUD6LY.js} +1 -1
  43. data/public/railwatch/assets/{index-BqK_VKom.js → index-Dj03Gham.js} +1 -1
  44. data/public/railwatch/assets/{index-DrayARrI.js → index-DqeNWrJc.js} +1 -1
  45. data/public/railwatch/assets/{index-oQrvBpOm.js → index-DwGETVLb.js} +1 -1
  46. data/public/railwatch/assets/{index-CxTLT-Qh.js → index-Dx7oNB2j.js} +1 -1
  47. data/public/railwatch/assets/{index-BDcglJzX.js → index-Kxpc-Jju.js} +1 -1
  48. data/public/railwatch/assets/{index-B8NA62Lz.js → index-YqmR-RY4.js} +1 -1
  49. data/public/railwatch/assets/{index-2W-ppwap.js → index-kX9K5M8z.js} +1 -1
  50. data/public/railwatch/assets/{index-DYK_dps4.js → index-wH-xxmJK.js} +1 -1
  51. data/public/railwatch/assets/{index-C7zREldp.js → index-x18ma-AF.js} +1 -1
  52. data/public/railwatch/assets/{inertia-FoqYZAk8.js → inertia-b7M33AzA.js} +2 -2
  53. data/public/railwatch/assets/{json-viewer-CxqMojEm.js → json-viewer-C0RZwcC2.js} +1 -1
  54. data/public/railwatch/assets/{klass-DEF-Vat5.js → klass-BT-gRTuY.js} +1 -1
  55. data/public/railwatch/assets/{origin-identity-Y6gvfQVR.js → origin-identity-ouOEvOlq.js} +1 -1
  56. data/public/railwatch/assets/{percentile-picker-E2aUdLxx.js → percentile-picker-BYFo11OE.js} +1 -1
  57. data/public/railwatch/assets/{relative-time-DcJbkKlN.js → relative-time-CJX4HXBB.js} +1 -1
  58. data/public/railwatch/assets/{release-health-C8WSCDKD.js → release-health-CIxeXQ_e.js} +1 -1
  59. data/public/railwatch/assets/{route-qO5vX1p-.js → route-eUFnanVO.js} +1 -1
  60. data/public/railwatch/assets/{segmented-BWee8uc9.js → segmented-CJq8WOHZ.js} +1 -1
  61. data/public/railwatch/assets/{select-G7rNBzv0.js → select-vYjStP1q.js} +1 -1
  62. data/public/railwatch/assets/{series-chart-C5nXIUc5.js → series-chart-FBOfRLhK.js} +1 -1
  63. data/public/railwatch/assets/{show-CTO8Lvd2.js → show-BBNCHyV9.js} +1 -1
  64. data/public/railwatch/assets/{show-Nfpxs8su.js → show-BJcTlqdU.js} +1 -1
  65. data/public/railwatch/assets/{show-CH7yxt7R.js → show-Bq4w9YtT.js} +1 -1
  66. data/public/railwatch/assets/{show-DyzHM527.js → show-C5SMVt6Z.js} +1 -1
  67. data/public/railwatch/assets/{show-BEa9PGu1.js → show-C7w8Tnt2.js} +1 -1
  68. data/public/railwatch/assets/{show-ddjUMo9G.js → show-D7fBqLw0.js} +1 -1
  69. data/public/railwatch/assets/{show-DnYsDMUt.js → show-DGPuUSHE.js} +1 -1
  70. data/public/railwatch/assets/{show-ksjbSzDH.js → show-DNY79oEl.js} +1 -1
  71. data/public/railwatch/assets/{show-BpCO49d3.js → show-DeTnRall.js} +1 -1
  72. data/public/railwatch/assets/{show-BiT_Aloc.js → show-daCAn8qV.js} +1 -1
  73. data/public/railwatch/assets/{show-BEWisLQw.js → show-zaB17ZGC.js} +1 -1
  74. data/public/railwatch/assets/{sort-header-uOq5VlrB.js → sort-header-dslBMND2.js} +1 -1
  75. data/public/railwatch/assets/{sparkline-cell-DgGij0cu.js → sparkline-cell-C7fhjJby.js} +1 -1
  76. data/public/railwatch/assets/stat-nY8iS5q9.js +1 -0
  77. data/public/railwatch/assets/{status-badge-BDkOXa-C.js → status-badge-D40D8TiV.js} +1 -1
  78. data/public/railwatch/assets/{tenant-path-DU0ezKSU.js → tenant-path-UhieazCc.js} +1 -1
  79. data/public/railwatch/assets/{use-clipboard-DoENmlWY.js → use-clipboard-T9kCBcs8.js} +1 -1
  80. data/public/railwatch/assets/use-live-rp6jfGac.js +1 -0
  81. data/public/railwatch/manifest.json +611 -611
  82. metadata +74 -74
  83. data/public/railwatch/assets/stat-BTzNKTm2.js +0 -1
  84. data/public/railwatch/assets/use-live-CE_fN5_6.js +0 -1
@@ -1 +1 @@
1
- import{c as $,r as A,o as w,j as s}from"./inertia-FoqYZAk8.js";import{q as E,b as J,C as O,a as R}from"./app-layout-LvxN9xSS.js";import{u as q,C as B}from"./use-clipboard-DoENmlWY.js";function D(i){return i!==null&&typeof i=="object"}function L(i){return i===null?"text-muted-foreground":typeof i=="string"?"text-emerald-600 dark:text-emerald-400":typeof i=="number"?"text-amber-600 dark:text-amber-400":typeof i=="boolean"?"text-primary":""}function P(i){const e=$.c(5),{value:t}=i,n=t===null?"null":typeof t=="string"?`"${t}"`:String(t);let a;e[0]!==t?(a=L(t),e[0]=t,e[1]=a):a=e[1];let u;return e[2]!==a||e[3]!==n?(u=s.jsx("span",{className:a,children:n}),e[2]=a,e[3]=n,e[4]=u):u=e[4],u}function z(i){const e=$.c(42),{label:t,value:n,depth:a,collapsed:u}=i,[f,C]=A.useState(!u),y=`${a*12}px`;let m;e[0]!==y?(m={paddingLeft:y},e[0]=y,e[1]=m):m=e[1];const r=m;if(!D(n)){let c;e[2]!==t?(c=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[2]=t,e[3]=c):c=e[3];let l;e[4]!==n?(l=s.jsx(P,{value:n}),e[4]=n,e[5]=l):l=e[5];let o;return e[6]!==r||e[7]!==c||e[8]!==l?(o=s.jsxs("div",{style:r,children:[c,l]}),e[6]=r,e[7]=c,e[8]=l,e[9]=o):o=e[9],o}let p,d;if(e[10]!==u||e[11]!==a||e[12]!==r||e[13]!==t||e[14]!==f||e[15]!==n){d=Symbol.for("react.early_return_sentinel");e:{const c=Array.isArray(n)?n.map(V):Object.entries(n);let l;e[18]!==n?(l=Array.isArray(n)?["[","]"]:["{","}"],e[18]=n,e[19]=l):l=e[19];const[o,j]=l;if(c.length===0){let h;e[20]!==t?(h=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[20]=t,e[21]=h):h=e[21];let x;e[22]!==j||e[23]!==o?(x=s.jsxs("span",{className:"text-muted-foreground",children:[o,j]}),e[22]=j,e[23]=o,e[24]=x):x=e[24];let N;e[25]!==r||e[26]!==h||e[27]!==x?(N=s.jsxs("div",{style:r,children:[h,x]}),e[25]=r,e[26]=h,e[27]=x,e[28]=N):N=e[28],d=N;break e}let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>C(T),e[29]=_):_=e[29];let g;e[30]!==f?(g=f?s.jsx(O,{className:"text-muted-foreground size-3"}):s.jsx(R,{className:"text-muted-foreground size-3"}),e[30]=f,e[31]=g):g=e[31];let b;e[32]!==t?(b=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,":"]}),e[32]=t,e[33]=b):b=e[33];const S=!f&&`…${c.length}…${j}`;let v;e[34]!==o||e[35]!==S?(v=s.jsxs("span",{className:"text-muted-foreground",children:[o,S]}),e[34]=o,e[35]=S,e[36]=v):v=e[36];let k;e[37]!==r||e[38]!==v||e[39]!==g||e[40]!==b?(k=s.jsxs("button",{type:"button",onClick:_,className:"hover:bg-muted/60 inline-flex items-center gap-0.5 rounded",style:r,children:[g,b,v]}),e[37]=r,e[38]=v,e[39]=g,e[40]=b,e[41]=k):k=e[41],p=s.jsxs("div",{children:[k,f&&s.jsxs("div",{children:[c.map(h=>{const[x,N]=h;return s.jsx(z,{label:Array.isArray(n)?void 0:x,value:N,depth:a+1,collapsed:u},x)}),s.jsx("div",{className:"text-muted-foreground",style:r,children:j})]})]})}e[10]=u,e[11]=a,e[12]=r,e[13]=t,e[14]=f,e[15]=n,e[16]=p,e[17]=d}else p=e[16],d=e[17];return d!==Symbol.for("react.early_return_sentinel")?d:p}function T(i){return!i}function V(i,e){return[String(e),i]}function I(i){const e=$.c(17),{data:t,collapsed:n,className:a}=i,u=n===void 0?!1:n,[,f]=q(),[C,y]=A.useState(!1);let m;e[0]!==a?(m=w("bg-muted/60 relative rounded p-2 pr-8 font-mono text-xs",a),e[0]=a,e[1]=m):m=e[1];let r;e[2]!==f||e[3]!==t?(r=()=>{(async()=>await f(JSON.stringify(t,null,2))&&(y(!0),setTimeout(()=>y(!1),1200)))()},e[2]=f,e[3]=t,e[4]=r):r=e[4];let p;e[5]!==C?(p=C?s.jsx(E,{className:"size-3.5"}):s.jsx(B,{className:"size-3.5"}),e[5]=C,e[6]=p):p=e[6];let d;e[7]!==r||e[8]!==p?(d=s.jsx(J,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute top-1 right-1",onClick:r,children:p}),e[7]=r,e[8]=p,e[9]=d):d=e[9];const c=t;let l;e[10]!==u||e[11]!==c?(l=s.jsx(z,{value:c,depth:0,collapsed:u}),e[10]=u,e[11]=c,e[12]=l):l=e[12];let o;return e[13]!==m||e[14]!==d||e[15]!==l?(o=s.jsxs("div",{className:m,children:[d,l]}),e[13]=m,e[14]=d,e[15]=l,e[16]=o):o=e[16],o}export{I as J};
1
+ import{c as $,r as A,o as w,j as s}from"./inertia-b7M33AzA.js";import{q as E,b as J,C as O,a as R}from"./app-layout-CpEbDy93.js";import{u as q,C as B}from"./use-clipboard-T9kCBcs8.js";function D(i){return i!==null&&typeof i=="object"}function L(i){return i===null?"text-muted-foreground":typeof i=="string"?"text-emerald-600 dark:text-emerald-400":typeof i=="number"?"text-amber-600 dark:text-amber-400":typeof i=="boolean"?"text-primary":""}function P(i){const e=$.c(5),{value:t}=i,n=t===null?"null":typeof t=="string"?`"${t}"`:String(t);let a;e[0]!==t?(a=L(t),e[0]=t,e[1]=a):a=e[1];let u;return e[2]!==a||e[3]!==n?(u=s.jsx("span",{className:a,children:n}),e[2]=a,e[3]=n,e[4]=u):u=e[4],u}function z(i){const e=$.c(42),{label:t,value:n,depth:a,collapsed:u}=i,[f,C]=A.useState(!u),y=`${a*12}px`;let m;e[0]!==y?(m={paddingLeft:y},e[0]=y,e[1]=m):m=e[1];const r=m;if(!D(n)){let c;e[2]!==t?(c=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[2]=t,e[3]=c):c=e[3];let l;e[4]!==n?(l=s.jsx(P,{value:n}),e[4]=n,e[5]=l):l=e[5];let o;return e[6]!==r||e[7]!==c||e[8]!==l?(o=s.jsxs("div",{style:r,children:[c,l]}),e[6]=r,e[7]=c,e[8]=l,e[9]=o):o=e[9],o}let p,d;if(e[10]!==u||e[11]!==a||e[12]!==r||e[13]!==t||e[14]!==f||e[15]!==n){d=Symbol.for("react.early_return_sentinel");e:{const c=Array.isArray(n)?n.map(V):Object.entries(n);let l;e[18]!==n?(l=Array.isArray(n)?["[","]"]:["{","}"],e[18]=n,e[19]=l):l=e[19];const[o,j]=l;if(c.length===0){let h;e[20]!==t?(h=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,": "]}),e[20]=t,e[21]=h):h=e[21];let x;e[22]!==j||e[23]!==o?(x=s.jsxs("span",{className:"text-muted-foreground",children:[o,j]}),e[22]=j,e[23]=o,e[24]=x):x=e[24];let N;e[25]!==r||e[26]!==h||e[27]!==x?(N=s.jsxs("div",{style:r,children:[h,x]}),e[25]=r,e[26]=h,e[27]=x,e[28]=N):N=e[28],d=N;break e}let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>C(T),e[29]=_):_=e[29];let g;e[30]!==f?(g=f?s.jsx(O,{className:"text-muted-foreground size-3"}):s.jsx(R,{className:"text-muted-foreground size-3"}),e[30]=f,e[31]=g):g=e[31];let b;e[32]!==t?(b=t!==void 0&&s.jsxs("span",{className:"text-muted-foreground",children:[t,":"]}),e[32]=t,e[33]=b):b=e[33];const S=!f&&`…${c.length}…${j}`;let v;e[34]!==o||e[35]!==S?(v=s.jsxs("span",{className:"text-muted-foreground",children:[o,S]}),e[34]=o,e[35]=S,e[36]=v):v=e[36];let k;e[37]!==r||e[38]!==v||e[39]!==g||e[40]!==b?(k=s.jsxs("button",{type:"button",onClick:_,className:"hover:bg-muted/60 inline-flex items-center gap-0.5 rounded",style:r,children:[g,b,v]}),e[37]=r,e[38]=v,e[39]=g,e[40]=b,e[41]=k):k=e[41],p=s.jsxs("div",{children:[k,f&&s.jsxs("div",{children:[c.map(h=>{const[x,N]=h;return s.jsx(z,{label:Array.isArray(n)?void 0:x,value:N,depth:a+1,collapsed:u},x)}),s.jsx("div",{className:"text-muted-foreground",style:r,children:j})]})]})}e[10]=u,e[11]=a,e[12]=r,e[13]=t,e[14]=f,e[15]=n,e[16]=p,e[17]=d}else p=e[16],d=e[17];return d!==Symbol.for("react.early_return_sentinel")?d:p}function T(i){return!i}function V(i,e){return[String(e),i]}function I(i){const e=$.c(17),{data:t,collapsed:n,className:a}=i,u=n===void 0?!1:n,[,f]=q(),[C,y]=A.useState(!1);let m;e[0]!==a?(m=w("bg-muted/60 relative rounded p-2 pr-8 font-mono text-xs",a),e[0]=a,e[1]=m):m=e[1];let r;e[2]!==f||e[3]!==t?(r=()=>{(async()=>await f(JSON.stringify(t,null,2))&&(y(!0),setTimeout(()=>y(!1),1200)))()},e[2]=f,e[3]=t,e[4]=r):r=e[4];let p;e[5]!==C?(p=C?s.jsx(E,{className:"size-3.5"}):s.jsx(B,{className:"size-3.5"}),e[5]=C,e[6]=p):p=e[6];let d;e[7]!==r||e[8]!==p?(d=s.jsx(J,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute top-1 right-1",onClick:r,children:p}),e[7]=r,e[8]=p,e[9]=d):d=e[9];const c=t;let l;e[10]!==u||e[11]!==c?(l=s.jsx(z,{value:c,depth:0,collapsed:u}),e[10]=u,e[11]=c,e[12]=l):l=e[12];let o;return e[13]!==m||e[14]!==d||e[15]!==l?(o=s.jsxs("div",{className:m,children:[d,l]}),e[13]=m,e[14]=d,e[15]=l,e[16]=o):o=e[16],o}export{I as J};
@@ -1 +1 @@
1
- import{c as de,u as pe,B as fe,j as o,d as ne,C as he,t as be}from"./inertia-FoqYZAk8.js";import{V as xe,D as ye}from"./chart-panel-CUdIzJvk.js";import{D as ve}from"./data-table-DYi-N0hm.js";import{F as ge}from"./filter-bar-DEv0G_34.js";import{O as ae}from"./origin-identity-Y6gvfQVR.js";import{u as _e,P as je,E as ke}from"./env-layout-HdcOaPPX.js";import{S as X,a as we}from"./stat-BTzNKTm2.js";import{S as Oe}from"./status-badge-BDkOXa-C.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-C5nXIUc5.js";import"./chart-hover-CEH-DtXO.js";import"./chart-DJHv3R7W.js";import"./app-layout-LvxN9xSS.js";import"./tenant-path-DU0ezKSU.js";import"./use-live-CE_fN5_6.js";import"./segmented-BWee8uc9.js";import"./arrow-up-DG01k9AL.js";function et(t){const e=de.c(104),{environment:re,window:r,range:n}=pe().props,{window:ce,label:me}=_e(),l=re.application_id,i=re.id;let F;e[0]!==n?.from||e[1]!==n?.to||e[2]!==r?(F=r==="custom"?{from:n?.from,to:n?.to}:{window:r},e[0]=n?.from,e[1]=n?.to,e[2]=r,e[3]=F):F=e[3];const Y=F,s=t.summary.current,c=t.summary.previous,m=ce==="custom"?"vs previous period":`vs previous ${me}`,ue=t.name;let u;e[4]!==l||e[5]!==i||e[6]!==r?(u=fe(l,i,{window:r}),e[4]=l,e[5]=i,e[6]=r,e[7]=u):u=e[7];let d;e[8]!==u?(d={title:"Jobs",href:u},e[8]=u,e[9]=d):d=e[9];let p;e[10]!==t.name?(p={title:t.name,href:"#"},e[10]=t.name,e[11]=p):p=e[11];let f;e[12]!==d||e[13]!==p?(f=[d,p],e[12]=d,e[13]=p,e[14]=f):f=e[14];let h;e[15]!==t.name?(h=o.jsx(je,{title:o.jsx("span",{className:"font-mono",children:t.name})}),e[15]=t.name,e[16]=h):h=e[16];let b;e[17]!==s.count?(b=Se(s.count),e[17]=s.count,e[18]=b):b=e[18];let x;e[19]!==b?(x=o.jsx(X,{label:"Attempts",value:b}),e[19]=b,e[20]=x):x=e[20];let y;e[21]!==s.count||e[22]!==s.errors?(y=qe(s.errors,s.count),e[21]=s.count,e[22]=s.errors,e[23]=y):y=e[23];const Z=s.errors?"destructive":"success",ee=s.count?s.errors/s.count*100:0,te=c.count?c.errors/c.count*100:0;let v;e[24]!==ee||e[25]!==te?(v={current:ee,previous:te,goodDirection:"down"},e[24]=ee,e[25]=te,e[26]=v):v=e[26];let g;e[27]!==m||e[28]!==Z||e[29]!==v||e[30]!==y?(g=o.jsx(X,{label:"Failed",value:y,tone:Z,delta:v,deltaCaption:m}),e[27]=m,e[28]=Z,e[29]=v,e[30]=y,e[31]=g):g=e[31];const se=s.p50/1e3;let _;e[32]!==se?(_=C(se),e[32]=se,e[33]=_):_=e[33];const oe=s.p95/1e3;let N;e[34]!==oe?(N=C(oe),e[34]=oe,e[35]=N):N=e[35];const le=`p95 ${N}`;let j;e[36]!==c.p95||e[37]!==s.p95?(j={current:s.p95,previous:c.p95,goodDirection:"down"},e[36]=c.p95,e[37]=s.p95,e[38]=j):j=e[38];let k;e[39]!==m||e[40]!==_||e[41]!==le||e[42]!==j?(k=o.jsx(X,{label:"p50 / p95",value:_,hint:le,delta:j,deltaCaption:m}),e[39]=m,e[40]=_,e[41]=le,e[42]=j,e[43]=k):k=e[43];const ie=s.max/1e3;let w;e[44]!==ie?(w=C(ie),e[44]=ie,e[45]=w):w=e[45];let O;e[46]!==w?(O=o.jsx(X,{label:"Max",value:w}),e[46]=w,e[47]=O):O=e[47];let S;e[48]!==g||e[49]!==k||e[50]!==O||e[51]!==x?(S=o.jsxs(we,{children:[x,g,k,O]}),e[48]=g,e[49]=k,e[50]=O,e[51]=x,e[52]=S):S=e[52];let q;e[53]!==t.deploys||e[54]!==t.series?(q=o.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[o.jsx(xe,{legend:"job",label:"Attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),o.jsx(ye,{label:"Duration",data:t.series,deploys:t.deploys})]}),e[53]=t.deploys,e[54]=t.series,e[55]=q):q=e[55];let W,B,L,R;e[56]===Symbol.for("react.memo_cache_sentinel")?(W={key:"user",label:"Origin user"},B={key:"tenant",label:"Origin tenant"},L={key:"queue",label:"Queue"},R={key:"job_id",label:"Job ID"},e[56]=W,e[57]=B,e[58]=L,e[59]=R):(W=e[56],B=e[57],L=e[58],R=e[59]);let $;e[60]===Symbol.for("react.memo_cache_sentinel")?($=[W,B,L,R,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[60]=$):$=e[60];let D;e[61]!==l||e[62]!==i||e[63]!==t.group_hash||e[64]!==Y?(D=a=>ne.visit(he(l,i,t.group_hash,{...Y,q:a||void 0}),{preserveState:!0}),e[61]=l,e[62]=i,e[63]=t.group_hash,e[64]=Y,e[65]=D):D=e[65];let P;e[66]!==t.q||e[67]!==D?(P=o.jsx(ge,{value:t.q,fields:$,onChange:D,placeholder:"Filter attempts by origin, queue, or outcome"}),e[66]=t.q,e[67]=D,e[68]=P):P=e[68];let E;e[69]!==l||e[70]!==i?(E=a=>ne.visit(be(l,i,a.execution_id)),e[69]=l,e[70]=i,e[71]=E):E=e[71];let Q,V,H,K;e[72]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"when",header:"When",cell:Ce},V={key:"st",header:"Outcome",cell:Ae},H={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:Me},K={key:"q",hideOnMobile:!0,header:"Queue",cell:Je},e[72]=Q,e[73]=V,e[74]=H,e[75]=K):(Q=e[72],V=e[73],H=e[74],K=e[75]);let I;e[76]!==l||e[77]!==i||e[78]!==n||e[79]!==r?(I={key:"user",hideOnMobile:!0,header:"Origin user",cell:a=>o.jsx(ae,{...a,applicationId:l,environmentId:i,kind:"user",range:n,window:r})},e[76]=l,e[77]=i,e[78]=n,e[79]=r,e[80]=I):I=e[80];let J;e[81]!==l||e[82]!==i||e[83]!==n||e[84]!==r?(J={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:a=>o.jsx(ae,{...a,applicationId:l,environmentId:i,kind:"tenant",range:n,window:r})},e[81]=l,e[82]=i,e[83]=n,e[84]=r,e[85]=J):J=e[85];let T,z,G;e[86]===Symbol.for("react.memo_cache_sentinel")?(T={key:"wait",hideOnMobile:!0,header:"Waited",align:"right",cell:Ie},z={key:"dur",header:"Duration",align:"right",cell:Ee},G={key:"ex",header:"Exception",cell:Pe},e[86]=T,e[87]=z,e[88]=G):(T=e[86],z=e[87],G=e[88]);let M;e[89]!==I||e[90]!==J?(M=[Q,V,H,K,I,J,T,z,G],e[89]=I,e[90]=J,e[91]=M):M=e[91];let A;e[92]!==t.attempts||e[93]!==E||e[94]!==M?(A=o.jsx(ve,{rows:t.attempts,rowKey:Fe,onRowClick:E,columns:M}),e[92]=t.attempts,e[93]=E,e[94]=M,e[95]=A):A=e[95];let U;return e[96]!==t.name||e[97]!==S||e[98]!==q||e[99]!==P||e[100]!==A||e[101]!==f||e[102]!==h?(U=o.jsxs(ke,{title:ue,crumbs:f,children:[h,S,q,P,A]}),e[96]=t.name,e[97]=S,e[98]=q,e[99]=P,e[100]=A,e[101]=f,e[102]=h,e[103]=U):U=e[103],U}function Pe(t){return o.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ee(t){return C(t.duration)}function Ie(t){return C(t.queue_latency)}function Je(t){return t.queue}function Me(t){return t.attempt}function Ae(t){return o.jsx(Oe,{outcome:t.outcome})}function Ce(t){return o.jsx("span",{className:"text-xs",children:De(t.occurred_at)})}function Fe(t){return t.execution_id}export{et as default};
1
+ import{c as de,u as pe,B as fe,j as o,d as ne,C as he,t as be}from"./inertia-b7M33AzA.js";import{V as xe,D as ye}from"./chart-panel-XD8qJDmg.js";import{D as ve}from"./data-table-Bzj8zcao.js";import{F as ge}from"./filter-bar-B5wbix1y.js";import{O as ae}from"./origin-identity-ouOEvOlq.js";import{u as _e,P as je,E as ke}from"./env-layout-Dic4A8Kn.js";import{S as X,a as we}from"./stat-nY8iS5q9.js";import{S as Oe}from"./status-badge-D40D8TiV.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-FBOfRLhK.js";import"./chart-hover-B5cFOZ24.js";import"./chart-CD6EHDjG.js";import"./app-layout-CpEbDy93.js";import"./tenant-path-UhieazCc.js";import"./use-live-rp6jfGac.js";import"./segmented-CJq8WOHZ.js";import"./arrow-up-DAODKT5N.js";function et(t){const e=de.c(104),{environment:re,window:r,range:n}=pe().props,{window:ce,label:me}=_e(),l=re.application_id,i=re.id;let F;e[0]!==n?.from||e[1]!==n?.to||e[2]!==r?(F=r==="custom"?{from:n?.from,to:n?.to}:{window:r},e[0]=n?.from,e[1]=n?.to,e[2]=r,e[3]=F):F=e[3];const Y=F,s=t.summary.current,c=t.summary.previous,m=ce==="custom"?"vs previous period":`vs previous ${me}`,ue=t.name;let u;e[4]!==l||e[5]!==i||e[6]!==r?(u=fe(l,i,{window:r}),e[4]=l,e[5]=i,e[6]=r,e[7]=u):u=e[7];let d;e[8]!==u?(d={title:"Jobs",href:u},e[8]=u,e[9]=d):d=e[9];let p;e[10]!==t.name?(p={title:t.name,href:"#"},e[10]=t.name,e[11]=p):p=e[11];let f;e[12]!==d||e[13]!==p?(f=[d,p],e[12]=d,e[13]=p,e[14]=f):f=e[14];let h;e[15]!==t.name?(h=o.jsx(je,{title:o.jsx("span",{className:"font-mono",children:t.name})}),e[15]=t.name,e[16]=h):h=e[16];let b;e[17]!==s.count?(b=Se(s.count),e[17]=s.count,e[18]=b):b=e[18];let x;e[19]!==b?(x=o.jsx(X,{label:"Attempts",value:b}),e[19]=b,e[20]=x):x=e[20];let y;e[21]!==s.count||e[22]!==s.errors?(y=qe(s.errors,s.count),e[21]=s.count,e[22]=s.errors,e[23]=y):y=e[23];const Z=s.errors?"destructive":"success",ee=s.count?s.errors/s.count*100:0,te=c.count?c.errors/c.count*100:0;let v;e[24]!==ee||e[25]!==te?(v={current:ee,previous:te,goodDirection:"down"},e[24]=ee,e[25]=te,e[26]=v):v=e[26];let g;e[27]!==m||e[28]!==Z||e[29]!==v||e[30]!==y?(g=o.jsx(X,{label:"Failed",value:y,tone:Z,delta:v,deltaCaption:m}),e[27]=m,e[28]=Z,e[29]=v,e[30]=y,e[31]=g):g=e[31];const se=s.p50/1e3;let _;e[32]!==se?(_=C(se),e[32]=se,e[33]=_):_=e[33];const oe=s.p95/1e3;let N;e[34]!==oe?(N=C(oe),e[34]=oe,e[35]=N):N=e[35];const le=`p95 ${N}`;let j;e[36]!==c.p95||e[37]!==s.p95?(j={current:s.p95,previous:c.p95,goodDirection:"down"},e[36]=c.p95,e[37]=s.p95,e[38]=j):j=e[38];let k;e[39]!==m||e[40]!==_||e[41]!==le||e[42]!==j?(k=o.jsx(X,{label:"p50 / p95",value:_,hint:le,delta:j,deltaCaption:m}),e[39]=m,e[40]=_,e[41]=le,e[42]=j,e[43]=k):k=e[43];const ie=s.max/1e3;let w;e[44]!==ie?(w=C(ie),e[44]=ie,e[45]=w):w=e[45];let O;e[46]!==w?(O=o.jsx(X,{label:"Max",value:w}),e[46]=w,e[47]=O):O=e[47];let S;e[48]!==g||e[49]!==k||e[50]!==O||e[51]!==x?(S=o.jsxs(we,{children:[x,g,k,O]}),e[48]=g,e[49]=k,e[50]=O,e[51]=x,e[52]=S):S=e[52];let q;e[53]!==t.deploys||e[54]!==t.series?(q=o.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[o.jsx(xe,{legend:"job",label:"Attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),o.jsx(ye,{label:"Duration",data:t.series,deploys:t.deploys})]}),e[53]=t.deploys,e[54]=t.series,e[55]=q):q=e[55];let W,B,L,R;e[56]===Symbol.for("react.memo_cache_sentinel")?(W={key:"user",label:"Origin user"},B={key:"tenant",label:"Origin tenant"},L={key:"queue",label:"Queue"},R={key:"job_id",label:"Job ID"},e[56]=W,e[57]=B,e[58]=L,e[59]=R):(W=e[56],B=e[57],L=e[58],R=e[59]);let $;e[60]===Symbol.for("react.memo_cache_sentinel")?($=[W,B,L,R,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[60]=$):$=e[60];let D;e[61]!==l||e[62]!==i||e[63]!==t.group_hash||e[64]!==Y?(D=a=>ne.visit(he(l,i,t.group_hash,{...Y,q:a||void 0}),{preserveState:!0}),e[61]=l,e[62]=i,e[63]=t.group_hash,e[64]=Y,e[65]=D):D=e[65];let P;e[66]!==t.q||e[67]!==D?(P=o.jsx(ge,{value:t.q,fields:$,onChange:D,placeholder:"Filter attempts by origin, queue, or outcome"}),e[66]=t.q,e[67]=D,e[68]=P):P=e[68];let E;e[69]!==l||e[70]!==i?(E=a=>ne.visit(be(l,i,a.execution_id)),e[69]=l,e[70]=i,e[71]=E):E=e[71];let Q,V,H,K;e[72]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"when",header:"When",cell:Ce},V={key:"st",header:"Outcome",cell:Ae},H={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:Me},K={key:"q",hideOnMobile:!0,header:"Queue",cell:Je},e[72]=Q,e[73]=V,e[74]=H,e[75]=K):(Q=e[72],V=e[73],H=e[74],K=e[75]);let I;e[76]!==l||e[77]!==i||e[78]!==n||e[79]!==r?(I={key:"user",hideOnMobile:!0,header:"Origin user",cell:a=>o.jsx(ae,{...a,applicationId:l,environmentId:i,kind:"user",range:n,window:r})},e[76]=l,e[77]=i,e[78]=n,e[79]=r,e[80]=I):I=e[80];let J;e[81]!==l||e[82]!==i||e[83]!==n||e[84]!==r?(J={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:a=>o.jsx(ae,{...a,applicationId:l,environmentId:i,kind:"tenant",range:n,window:r})},e[81]=l,e[82]=i,e[83]=n,e[84]=r,e[85]=J):J=e[85];let T,z,G;e[86]===Symbol.for("react.memo_cache_sentinel")?(T={key:"wait",hideOnMobile:!0,header:"Waited",align:"right",cell:Ie},z={key:"dur",header:"Duration",align:"right",cell:Ee},G={key:"ex",header:"Exception",cell:Pe},e[86]=T,e[87]=z,e[88]=G):(T=e[86],z=e[87],G=e[88]);let M;e[89]!==I||e[90]!==J?(M=[Q,V,H,K,I,J,T,z,G],e[89]=I,e[90]=J,e[91]=M):M=e[91];let A;e[92]!==t.attempts||e[93]!==E||e[94]!==M?(A=o.jsx(ve,{rows:t.attempts,rowKey:Fe,onRowClick:E,columns:M}),e[92]=t.attempts,e[93]=E,e[94]=M,e[95]=A):A=e[95];let U;return e[96]!==t.name||e[97]!==S||e[98]!==q||e[99]!==P||e[100]!==A||e[101]!==f||e[102]!==h?(U=o.jsxs(ke,{title:ue,crumbs:f,children:[h,S,q,P,A]}),e[96]=t.name,e[97]=S,e[98]=q,e[99]=P,e[100]=A,e[101]=f,e[102]=h,e[103]=U):U=e[103],U}function Pe(t){return o.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ee(t){return C(t.duration)}function Ie(t){return C(t.queue_latency)}function Je(t){return t.queue}function Me(t){return t.attempt}function Ae(t){return o.jsx(Oe,{outcome:t.outcome})}function Ce(t){return o.jsx("span",{className:"text-xs",children:De(t.occurred_at)})}function Fe(t){return t.execution_id}export{et as default};
@@ -1 +1 @@
1
- import{c as g,j as h,M as E,L as w}from"./inertia-FoqYZAk8.js";import{t as N}from"./tenant-path-DU0ezKSU.js";function v(l,e,o,i){const _=String(E(l,e,o,{...i})),[r,s]=_.split("?");return`${r.replace(/\./g,"%2E")}${s?`?${s}`:""}`}function y(l,e){if(l==="custom"){if(!e)throw new Error("Custom telemetry window requires a range");return{from:e.from,to:e.to}}return{window:l??"24h"}}function S(l){const e=g.c(30),{applicationId:o,environmentId:i,kind:_,person:r,range:s,tenant:a,user_ref:x,window:m}=l;if(_==="user"){if(!x){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=n):n=e[0],n}if(!r){let n;return e[1]!==x?(n=h.jsx("span",{className:"font-mono text-xs",children:x}),e[1]=x,e[2]=n):n=e[2],n}let t,d,p;if(e[3]!==o||e[4]!==i||e[5]!==r.ref||e[6]!==s||e[7]!==m){const n=y(m,s);t=w,d="font-mono text-xs hover:underline",p=v(o,i,r.ref,n),e[3]=o,e[4]=i,e[5]=r.ref,e[6]=s,e[7]=m,e[8]=t,e[9]=d,e[10]=p}else t=e[8],d=e[9],p=e[10];let P;return e[11]!==t||e[12]!==r.name||e[13]!==d||e[14]!==p?(P=h.jsx(t,{className:d,href:p,children:r.name}),e[11]=t,e[12]=r.name,e[13]=d,e[14]=p,e[15]=P):P=e[15],P}if(!a){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[16]=t):t=e[16],t}let f,c,u;if(e[17]!==o||e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==m){const t=y(m,s);f=w,c="font-mono text-xs hover:underline",u=N(o,i,a,t),e[17]=o,e[18]=i,e[19]=s,e[20]=a,e[21]=m,e[22]=f,e[23]=c,e[24]=u}else f=e[22],c=e[23],u=e[24];let j;return e[25]!==f||e[26]!==c||e[27]!==u||e[28]!==a?(j=h.jsx(f,{className:c,href:u,children:a}),e[25]=f,e[26]=c,e[27]=u,e[28]=a,e[29]=j):j=e[29],j}export{S as O};
1
+ import{c as g,j as h,M as E,L as w}from"./inertia-b7M33AzA.js";import{t as N}from"./tenant-path-UhieazCc.js";function v(l,e,o,i){const _=String(E(l,e,o,{...i})),[r,s]=_.split("?");return`${r.replace(/\./g,"%2E")}${s?`?${s}`:""}`}function y(l,e){if(l==="custom"){if(!e)throw new Error("Custom telemetry window requires a range");return{from:e.from,to:e.to}}return{window:l??"24h"}}function S(l){const e=g.c(30),{applicationId:o,environmentId:i,kind:_,person:r,range:s,tenant:a,user_ref:x,window:m}=l;if(_==="user"){if(!x){let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=n):n=e[0],n}if(!r){let n;return e[1]!==x?(n=h.jsx("span",{className:"font-mono text-xs",children:x}),e[1]=x,e[2]=n):n=e[2],n}let t,d,p;if(e[3]!==o||e[4]!==i||e[5]!==r.ref||e[6]!==s||e[7]!==m){const n=y(m,s);t=w,d="font-mono text-xs hover:underline",p=v(o,i,r.ref,n),e[3]=o,e[4]=i,e[5]=r.ref,e[6]=s,e[7]=m,e[8]=t,e[9]=d,e[10]=p}else t=e[8],d=e[9],p=e[10];let P;return e[11]!==t||e[12]!==r.name||e[13]!==d||e[14]!==p?(P=h.jsx(t,{className:d,href:p,children:r.name}),e[11]=t,e[12]=r.name,e[13]=d,e[14]=p,e[15]=P):P=e[15],P}if(!a){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("span",{className:"text-muted-foreground",children:"–"}),e[16]=t):t=e[16],t}let f,c,u;if(e[17]!==o||e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==m){const t=y(m,s);f=w,c="font-mono text-xs hover:underline",u=N(o,i,a,t),e[17]=o,e[18]=i,e[19]=s,e[20]=a,e[21]=m,e[22]=f,e[23]=c,e[24]=u}else f=e[22],c=e[23],u=e[24];let j;return e[25]!==f||e[26]!==c||e[27]!==u||e[28]!==a?(j=h.jsx(f,{className:c,href:u,children:a}),e[25]=f,e[26]=c,e[27]=u,e[28]=a,e[29]=j):j=e[29],j}export{S as O};
@@ -1 +1 @@
1
- import{d as i,c as l,j as o}from"./inertia-FoqYZAk8.js";import{a,S as p}from"./segmented-BWee8uc9.js";const u=["p50","p95","p99"];function m(){const s=new URL(globalThis.location.href).searchParams.get("pct");return{percentile:u.includes(s)?s:"p95",set:n=>{const r=new URL(globalThis.location.href);r.searchParams.set("pct",n),i.visit(r.toString(),{preserveScroll:!0,preserveState:!0})}}}const f=["p50","p95","p99"];function P(){const e=l.c(5),{percentile:s,set:c}=m();let t;e[0]!==s||e[1]!==c?(t=f.map(r=>o.jsx(a,{active:s===r,onClick:()=>c(r),children:r},r)),e[0]=s,e[1]=c,e[2]=t):t=e[2];let n;return e[3]!==t?(n=o.jsx(p,{children:t}),e[3]=t,e[4]=n):n=e[4],n}export{P,m as u};
1
+ import{d as i,c as l,j as o}from"./inertia-b7M33AzA.js";import{a,S as p}from"./segmented-CJq8WOHZ.js";const u=["p50","p95","p99"];function m(){const s=new URL(globalThis.location.href).searchParams.get("pct");return{percentile:u.includes(s)?s:"p95",set:n=>{const r=new URL(globalThis.location.href);r.searchParams.set("pct",n),i.visit(r.toString(),{preserveScroll:!0,preserveState:!0})}}}const f=["p50","p95","p99"];function P(){const e=l.c(5),{percentile:s,set:c}=m();let t;e[0]!==s||e[1]!==c?(t=f.map(r=>o.jsx(a,{active:s===r,onClick:()=>c(r),children:r},r)),e[0]=s,e[1]=c,e[2]=t):t=e[2];let n;return e[3]!==t?(n=o.jsx(p,{children:t}),e[3]=t,e[4]=n):n=e[4],n}export{P,m as u};
@@ -1 +1 @@
1
- import{c as m,j as l}from"./inertia-FoqYZAk8.js";import{ae as c}from"./app-layout-LvxN9xSS.js";import{w as f,a as p}from"./format-B9SDkrWj.js";function R(n){const e=m.c(10),{iso:t,className:s}=n;if(c(),!t){let a;return e[0]!==s?(a=l.jsx("span",{className:s,children:"never"}),e[0]=s,e[1]=a):a=e[1],a}let i;e[2]!==t?(i=f(t),e[2]=t,e[3]=i):i=e[3];let r;e[4]!==t?(r=p(t),e[4]=t,e[5]=r):r=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==r?(o=l.jsx("span",{className:s,title:i,children:r}),e[6]=s,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}export{R};
1
+ import{c as m,j as l}from"./inertia-b7M33AzA.js";import{ae as c}from"./app-layout-CpEbDy93.js";import{w as f,a as p}from"./format-B9SDkrWj.js";function R(n){const e=m.c(10),{iso:t,className:s}=n;if(c(),!t){let a;return e[0]!==s?(a=l.jsx("span",{className:s,children:"never"}),e[0]=s,e[1]=a):a=e[1],a}let i;e[2]!==t?(i=f(t),e[2]=t,e[3]=i):i=e[3];let r;e[4]!==t?(r=p(t),e[4]=t,e[5]=r):r=e[5];let o;return e[6]!==s||e[7]!==i||e[8]!==r?(o=l.jsx("span",{className:s,title:i,children:r}),e[6]=s,e[7]=i,e[8]=r,e[9]=o):o=e[9],o}export{R};
@@ -1 +1 @@
1
- import{c as D,j as x}from"./inertia-FoqYZAk8.js";import{S,a as H}from"./stat-BTzNKTm2.js";import{c as F,m as T}from"./format-B9SDkrWj.js";import"./use-live-CE_fN5_6.js";import"./arrow-up-DG01k9AL.js";function R(r){return r===null?"default":r>=99.5?"success":r>=98?"warning":"destructive"}function E(r){return r===null?"–":`${r.toFixed(2)}%`}function w(r,e){if(!(r===null||e===null||e===void 0))return{current:r,previous:e,goodDirection:"up"}}function B(r){const e=D.c(43),{health:s,previous:C,deltaCaption:t}=r;let i;e[0]!==s.crash_free_sessions?(i=E(s.crash_free_sessions),e[0]=s.crash_free_sessions,e[1]=i):i=e[1];let l;e[2]!==s.crash_free_sessions?(l=R(s.crash_free_sessions),e[2]=s.crash_free_sessions,e[3]=l):l=e[3];const g=C?.crash_free_sessions;let n;e[4]!==s.crash_free_sessions||e[5]!==g?(n=w(s.crash_free_sessions,g),e[4]=s.crash_free_sessions,e[5]=g,e[6]=n):n=e[6];let o;e[7]!==s.errored?(o=s.errored===null?void 0:`${s.errored.toFixed(2)}% errored`,e[7]=s.errored,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==i||e[11]!==l||e[12]!==n||e[13]!==o?(a=x.jsx(S,{label:"Crash-free sessions",value:i,tone:l,delta:n,deltaCaption:t,hint:o}),e[9]=t,e[10]=i,e[11]=l,e[12]=n,e[13]=o,e[14]=a):a=e[14];let f;e[15]!==s.crash_free_users?(f=E(s.crash_free_users),e[15]=s.crash_free_users,e[16]=f):f=e[16];let _;e[17]!==s.crash_free_users?(_=R(s.crash_free_users),e[17]=s.crash_free_users,e[18]=_):_=e[18];const b=C?.crash_free_users;let u;e[19]!==s.crash_free_users||e[20]!==b?(u=w(s.crash_free_users,b),e[19]=s.crash_free_users,e[20]=b,e[21]=u):u=e[21];let c;e[22]!==t||e[23]!==u||e[24]!==f||e[25]!==_?(c=x.jsx(S,{label:"Crash-free users",value:f,tone:_,delta:u,deltaCaption:t}),e[22]=t,e[23]=u,e[24]=f,e[25]=_,e[26]=c):c=e[26];let h;e[27]!==s.sessions?(h=F(s.sessions),e[27]=s.sessions,e[28]=h):h=e[28];let v;e[29]!==s.users?(v=F(s.users),e[29]=s.users,e[30]=v):v=e[30];const $=`${v} users`;let d;e[31]!==h||e[32]!==$?(d=x.jsx(S,{label:"Sessions",value:h,hint:$}),e[31]=h,e[32]=$,e[33]=d):d=e[33];let m;e[34]!==s.avg_duration_ms?(m=T(s.avg_duration_ms),e[34]=s.avg_duration_ms,e[35]=m):m=e[35];let p;e[36]!==m?(p=x.jsx(S,{label:"Session duration",value:m,hint:"average"}),e[36]=m,e[37]=p):p=e[37];let j;return e[38]!==c||e[39]!==d||e[40]!==p||e[41]!==a?(j=x.jsxs(H,{children:[a,c,d,p]}),e[38]=c,e[39]=d,e[40]=p,e[41]=a,e[42]=j):j=e[42],j}export{B as ReleaseHealthStrip,R as crashFreeTone,E as rate};
1
+ import{c as D,j as x}from"./inertia-b7M33AzA.js";import{S,a as H}from"./stat-nY8iS5q9.js";import{c as F,m as T}from"./format-B9SDkrWj.js";import"./use-live-rp6jfGac.js";import"./arrow-up-DAODKT5N.js";function R(r){return r===null?"default":r>=99.5?"success":r>=98?"warning":"destructive"}function E(r){return r===null?"–":`${r.toFixed(2)}%`}function w(r,e){if(!(r===null||e===null||e===void 0))return{current:r,previous:e,goodDirection:"up"}}function B(r){const e=D.c(43),{health:s,previous:C,deltaCaption:t}=r;let i;e[0]!==s.crash_free_sessions?(i=E(s.crash_free_sessions),e[0]=s.crash_free_sessions,e[1]=i):i=e[1];let l;e[2]!==s.crash_free_sessions?(l=R(s.crash_free_sessions),e[2]=s.crash_free_sessions,e[3]=l):l=e[3];const g=C?.crash_free_sessions;let n;e[4]!==s.crash_free_sessions||e[5]!==g?(n=w(s.crash_free_sessions,g),e[4]=s.crash_free_sessions,e[5]=g,e[6]=n):n=e[6];let o;e[7]!==s.errored?(o=s.errored===null?void 0:`${s.errored.toFixed(2)}% errored`,e[7]=s.errored,e[8]=o):o=e[8];let a;e[9]!==t||e[10]!==i||e[11]!==l||e[12]!==n||e[13]!==o?(a=x.jsx(S,{label:"Crash-free sessions",value:i,tone:l,delta:n,deltaCaption:t,hint:o}),e[9]=t,e[10]=i,e[11]=l,e[12]=n,e[13]=o,e[14]=a):a=e[14];let f;e[15]!==s.crash_free_users?(f=E(s.crash_free_users),e[15]=s.crash_free_users,e[16]=f):f=e[16];let _;e[17]!==s.crash_free_users?(_=R(s.crash_free_users),e[17]=s.crash_free_users,e[18]=_):_=e[18];const b=C?.crash_free_users;let u;e[19]!==s.crash_free_users||e[20]!==b?(u=w(s.crash_free_users,b),e[19]=s.crash_free_users,e[20]=b,e[21]=u):u=e[21];let c;e[22]!==t||e[23]!==u||e[24]!==f||e[25]!==_?(c=x.jsx(S,{label:"Crash-free users",value:f,tone:_,delta:u,deltaCaption:t}),e[22]=t,e[23]=u,e[24]=f,e[25]=_,e[26]=c):c=e[26];let h;e[27]!==s.sessions?(h=F(s.sessions),e[27]=s.sessions,e[28]=h):h=e[28];let v;e[29]!==s.users?(v=F(s.users),e[29]=s.users,e[30]=v):v=e[30];const $=`${v} users`;let d;e[31]!==h||e[32]!==$?(d=x.jsx(S,{label:"Sessions",value:h,hint:$}),e[31]=h,e[32]=$,e[33]=d):d=e[33];let m;e[34]!==s.avg_duration_ms?(m=T(s.avg_duration_ms),e[34]=s.avg_duration_ms,e[35]=m):m=e[35];let p;e[36]!==m?(p=x.jsx(S,{label:"Session duration",value:m,hint:"average"}),e[36]=m,e[37]=p):p=e[37];let j;return e[38]!==c||e[39]!==d||e[40]!==p||e[41]!==a?(j=x.jsxs(H,{children:[a,c,d,p]}),e[38]=c,e[39]=d,e[40]=p,e[41]=a,e[42]=j):j=e[42],j}export{B as ReleaseHealthStrip,R as crashFreeTone,E as rate};
@@ -1 +1 @@
1
- import{c as G,u as J,S as X,j as r,d as Y,f as Z}from"./inertia-FoqYZAk8.js";import{V as ee,D as te}from"./chart-panel-CUdIzJvk.js";import{D as se}from"./data-table-DYi-N0hm.js";import{u as re,P as oe,E as ne}from"./env-layout-HdcOaPPX.js";import{S as D,a as le}from"./stat-BTzNKTm2.js";import{S as ie}from"./status-badge-BDkOXa-C.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-C5nXIUc5.js";import"./chart-hover-CEH-DtXO.js";import"./chart-DJHv3R7W.js";import"./app-layout-LvxN9xSS.js";import"./use-live-CE_fN5_6.js";import"./segmented-BWee8uc9.js";import"./arrow-up-DG01k9AL.js";function Oe(t){const e=G.c(72),{environment:Q,window:O}=J().props,{window:z,label:A}=re(),o=Q.application_id,n=Q.id,s=t.summary.current,l=t.summary.previous,i=z==="custom"?"vs previous period":`vs previous ${A}`,F=t.route;let a;e[0]!==o||e[1]!==n||e[2]!==O?(a=X(o,n,{window:O}),e[0]=o,e[1]=n,e[2]=O,e[3]=a):a=e[3];let u;e[4]!==a?(u={title:"Requests",href:a},e[4]=a,e[5]=u):u=e[5];let c;e[6]!==t.route?(c={title:t.route,href:"#"},e[6]=t.route,e[7]=c):c=e[7];let m;e[8]!==u||e[9]!==c?(m=[u,c],e[8]=u,e[9]=c,e[10]=m):m=e[10];let d;e[11]!==t.route?(d=r.jsx(oe,{title:r.jsx("span",{className:"font-mono",children:t.route})}),e[11]=t.route,e[12]=d):d=e[12];let p;e[13]!==s.count?(p=ae(s.count),e[13]=s.count,e[14]=p):p=e[14];let f;e[15]!==p?(f=r.jsx(D,{label:"Requests",value:p}),e[15]=p,e[16]=f):f=e[16];let x;e[17]!==s.count||e[18]!==s.errors?(x=ue(s.errors,s.count),e[17]=s.count,e[18]=s.errors,e[19]=x):x=e[19];const L=s.errors?"destructive":"success",W=`${s.errors} 5xx · ${s.client_errors} 4xx`,C=s.count?s.errors/s.count*100:0,T=l.count?l.errors/l.count*100:0;let h;e[20]!==C||e[21]!==T?(h={current:C,previous:T,goodDirection:"down"},e[20]=C,e[21]=T,e[22]=h):h=e[22];let v;e[23]!==i||e[24]!==W||e[25]!==h||e[26]!==x||e[27]!==L?(v=r.jsx(D,{label:"Errors",value:x,tone:L,hint:W,delta:h,deltaCaption:i}),e[23]=i,e[24]=W,e[25]=h,e[26]=x,e[27]=L,e[28]=v):v=e[28];const V=s.p50/1e3;let j;e[29]!==V?(j=N(V),e[29]=V,e[30]=j):j=e[30];let y;e[31]!==j?(y=r.jsx(D,{label:"p50",value:j}),e[31]=j,e[32]=y):y=e[32];const B=s.p95/1e3;let _;e[33]!==B?(_=N(B),e[33]=B,e[34]=_):_=e[34];let b;e[35]!==l.p95||e[36]!==s.p95?(b={current:s.p95,previous:l.p95,goodDirection:"down"},e[35]=l.p95,e[36]=s.p95,e[37]=b):b=e[37];let w;e[38]!==i||e[39]!==_||e[40]!==b?(w=r.jsx(D,{label:"p95",value:_,delta:b,deltaCaption:i}),e[38]=i,e[39]=_,e[40]=b,e[41]=w):w=e[41];const H=s.p99/1e3;let g;e[42]!==H?(g=N(H),e[42]=H,e[43]=g):g=e[43];const I=s.max/1e3;let P;e[44]!==I?(P=N(I),e[44]=I,e[45]=P):P=e[45];const K=`max ${P}`;let q;e[46]!==g||e[47]!==K?(q=r.jsx(D,{label:"p99 / max",value:g,hint:K}),e[46]=g,e[47]=K,e[48]=q):q=e[48];let k;e[49]!==v||e[50]!==y||e[51]!==w||e[52]!==q||e[53]!==f?(k=r.jsxs(le,{children:[f,v,y,w,q]}),e[49]=v,e[50]=y,e[51]=w,e[52]=q,e[53]=f,e[54]=k):k=e[54];let R;e[55]!==t.deploys||e[56]!==t.series?(R=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r.jsx(ee,{label:"Requests",data:t.series,deploys:t.deploys}),r.jsx(te,{label:"Latency",data:t.series,deploys:t.deploys})]}),e[55]=t.deploys,e[56]=t.series,e[57]=R):R=e[57];let S;e[58]!==o||e[59]!==n?(S=U=>U.execution_id&&Y.visit(Z(o,n,U.execution_id)),e[58]=o,e[59]=n,e[60]=S):S=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=[{key:"when",header:"When",cell:je},{key:"status",header:"Status",cell:ve},{key:"dur",header:"Duration",align:"right",cell:he},{key:"q",hideOnMobile:!0,header:"Queries",align:"right",cell:xe},{key:"user",hideOnMobile:!0,header:"User",cell:fe},{key:"tenant",hideOnMobile:!0,header:"Tenant",cell:pe},{key:"comp",hideOnMobile:!0,header:"Inertia",cell:de},{key:"ex",header:"Exception",cell:me}],e[61]=$):$=e[61];let E;e[62]!==t.requests||e[63]!==S?(E=r.jsx(se,{rows:t.requests,rowKey:ye,onRowClick:S,columns:$}),e[62]=t.requests,e[63]=S,e[64]=E):E=e[64];let M;return e[65]!==t.route||e[66]!==k||e[67]!==R||e[68]!==E||e[69]!==m||e[70]!==d?(M=r.jsxs(ne,{title:F,crumbs:m,children:[d,k,R,E]}),e[65]=t.route,e[66]=k,e[67]=R,e[68]=E,e[69]=m,e[70]=d,e[71]=M):M=e[71],M}function me(t){return r.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function de(t){return r.jsx("span",{className:"font-mono text-xs",children:t.inertia_component??""})}function pe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??"–"})}function fe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function xe(t){return t.queries??"–"}function he(t){return N(t.duration)}function ve(t){return r.jsx(ie,{status:t.status})}function je(t){return r.jsx("span",{className:"text-xs tabular-nums",children:ce(t.occurred_at)})}function ye(t){return t.execution_id}export{Oe as default};
1
+ import{c as G,u as J,S as X,j as r,d as Y,f as Z}from"./inertia-b7M33AzA.js";import{V as ee,D as te}from"./chart-panel-XD8qJDmg.js";import{D as se}from"./data-table-Bzj8zcao.js";import{u as re,P as oe,E as ne}from"./env-layout-Dic4A8Kn.js";import{S as D,a as le}from"./stat-nY8iS5q9.js";import{S as ie}from"./status-badge-D40D8TiV.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-FBOfRLhK.js";import"./chart-hover-B5cFOZ24.js";import"./chart-CD6EHDjG.js";import"./app-layout-CpEbDy93.js";import"./use-live-rp6jfGac.js";import"./segmented-CJq8WOHZ.js";import"./arrow-up-DAODKT5N.js";function Oe(t){const e=G.c(72),{environment:Q,window:O}=J().props,{window:z,label:A}=re(),o=Q.application_id,n=Q.id,s=t.summary.current,l=t.summary.previous,i=z==="custom"?"vs previous period":`vs previous ${A}`,F=t.route;let a;e[0]!==o||e[1]!==n||e[2]!==O?(a=X(o,n,{window:O}),e[0]=o,e[1]=n,e[2]=O,e[3]=a):a=e[3];let u;e[4]!==a?(u={title:"Requests",href:a},e[4]=a,e[5]=u):u=e[5];let c;e[6]!==t.route?(c={title:t.route,href:"#"},e[6]=t.route,e[7]=c):c=e[7];let m;e[8]!==u||e[9]!==c?(m=[u,c],e[8]=u,e[9]=c,e[10]=m):m=e[10];let d;e[11]!==t.route?(d=r.jsx(oe,{title:r.jsx("span",{className:"font-mono",children:t.route})}),e[11]=t.route,e[12]=d):d=e[12];let p;e[13]!==s.count?(p=ae(s.count),e[13]=s.count,e[14]=p):p=e[14];let f;e[15]!==p?(f=r.jsx(D,{label:"Requests",value:p}),e[15]=p,e[16]=f):f=e[16];let x;e[17]!==s.count||e[18]!==s.errors?(x=ue(s.errors,s.count),e[17]=s.count,e[18]=s.errors,e[19]=x):x=e[19];const L=s.errors?"destructive":"success",W=`${s.errors} 5xx · ${s.client_errors} 4xx`,C=s.count?s.errors/s.count*100:0,T=l.count?l.errors/l.count*100:0;let h;e[20]!==C||e[21]!==T?(h={current:C,previous:T,goodDirection:"down"},e[20]=C,e[21]=T,e[22]=h):h=e[22];let v;e[23]!==i||e[24]!==W||e[25]!==h||e[26]!==x||e[27]!==L?(v=r.jsx(D,{label:"Errors",value:x,tone:L,hint:W,delta:h,deltaCaption:i}),e[23]=i,e[24]=W,e[25]=h,e[26]=x,e[27]=L,e[28]=v):v=e[28];const V=s.p50/1e3;let j;e[29]!==V?(j=N(V),e[29]=V,e[30]=j):j=e[30];let y;e[31]!==j?(y=r.jsx(D,{label:"p50",value:j}),e[31]=j,e[32]=y):y=e[32];const B=s.p95/1e3;let _;e[33]!==B?(_=N(B),e[33]=B,e[34]=_):_=e[34];let b;e[35]!==l.p95||e[36]!==s.p95?(b={current:s.p95,previous:l.p95,goodDirection:"down"},e[35]=l.p95,e[36]=s.p95,e[37]=b):b=e[37];let w;e[38]!==i||e[39]!==_||e[40]!==b?(w=r.jsx(D,{label:"p95",value:_,delta:b,deltaCaption:i}),e[38]=i,e[39]=_,e[40]=b,e[41]=w):w=e[41];const H=s.p99/1e3;let g;e[42]!==H?(g=N(H),e[42]=H,e[43]=g):g=e[43];const I=s.max/1e3;let P;e[44]!==I?(P=N(I),e[44]=I,e[45]=P):P=e[45];const K=`max ${P}`;let q;e[46]!==g||e[47]!==K?(q=r.jsx(D,{label:"p99 / max",value:g,hint:K}),e[46]=g,e[47]=K,e[48]=q):q=e[48];let k;e[49]!==v||e[50]!==y||e[51]!==w||e[52]!==q||e[53]!==f?(k=r.jsxs(le,{children:[f,v,y,w,q]}),e[49]=v,e[50]=y,e[51]=w,e[52]=q,e[53]=f,e[54]=k):k=e[54];let R;e[55]!==t.deploys||e[56]!==t.series?(R=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r.jsx(ee,{label:"Requests",data:t.series,deploys:t.deploys}),r.jsx(te,{label:"Latency",data:t.series,deploys:t.deploys})]}),e[55]=t.deploys,e[56]=t.series,e[57]=R):R=e[57];let S;e[58]!==o||e[59]!==n?(S=U=>U.execution_id&&Y.visit(Z(o,n,U.execution_id)),e[58]=o,e[59]=n,e[60]=S):S=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=[{key:"when",header:"When",cell:je},{key:"status",header:"Status",cell:ve},{key:"dur",header:"Duration",align:"right",cell:he},{key:"q",hideOnMobile:!0,header:"Queries",align:"right",cell:xe},{key:"user",hideOnMobile:!0,header:"User",cell:fe},{key:"tenant",hideOnMobile:!0,header:"Tenant",cell:pe},{key:"comp",hideOnMobile:!0,header:"Inertia",cell:de},{key:"ex",header:"Exception",cell:me}],e[61]=$):$=e[61];let E;e[62]!==t.requests||e[63]!==S?(E=r.jsx(se,{rows:t.requests,rowKey:ye,onRowClick:S,columns:$}),e[62]=t.requests,e[63]=S,e[64]=E):E=e[64];let M;return e[65]!==t.route||e[66]!==k||e[67]!==R||e[68]!==E||e[69]!==m||e[70]!==d?(M=r.jsxs(ne,{title:F,crumbs:m,children:[d,k,R,E]}),e[65]=t.route,e[66]=k,e[67]=R,e[68]=E,e[69]=m,e[70]=d,e[71]=M):M=e[71],M}function me(t){return r.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function de(t){return r.jsx("span",{className:"font-mono text-xs",children:t.inertia_component??""})}function pe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??"–"})}function fe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function xe(t){return t.queries??"–"}function he(t){return N(t.duration)}function ve(t){return r.jsx(ie,{status:t.status})}function je(t){return r.jsx("span",{className:"text-xs tabular-nums",children:ce(t.occurred_at)})}function ye(t){return t.execution_id}export{Oe as default};
@@ -1 +1 @@
1
- import{c as f,o as x,j as b}from"./inertia-FoqYZAk8.js";function y(i){const e=f.c(5),{children:r,className:n}=i;let t;e[0]!==n?(t=x("bg-card flex h-8 shrink-0 items-center gap-px rounded-lg border p-0.5",n),e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==r||e[3]!==t?(o=b.jsx("div",{className:t,children:r}),e[2]=r,e[3]=t,e[4]=o):o=e[4],o}function j(i){const e=f.c(12),{active:r,onClick:n,children:t,className:o,mono:u,disabled:a,"aria-label":l}=i,d=(u===void 0?!0:u)&&"font-mono uppercase",m=r?"bg-primary border-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground border-transparent",p=a&&"cursor-not-allowed opacity-50";let s;e[0]!==o||e[1]!==d||e[2]!==m||e[3]!==p?(s=x("flex h-full min-w-8 items-center justify-center gap-1.5 rounded-md border px-2.5 text-xs whitespace-nowrap transition-colors",d,m,p,o),e[0]=o,e[1]=d,e[2]=m,e[3]=p,e[4]=s):s=e[4];let c;return e[5]!==r||e[6]!==l||e[7]!==t||e[8]!==a||e[9]!==n||e[10]!==s?(c=b.jsx("button",{type:"button",onClick:n,disabled:a,"aria-pressed":r,"aria-label":l,className:s,children:t}),e[5]=r,e[6]=l,e[7]=t,e[8]=a,e[9]=n,e[10]=s,e[11]=c):c=e[11],c}export{y as S,j as a};
1
+ import{c as f,o as x,j as b}from"./inertia-b7M33AzA.js";function y(i){const e=f.c(5),{children:r,className:n}=i;let t;e[0]!==n?(t=x("bg-card flex h-8 shrink-0 items-center gap-px rounded-lg border p-0.5",n),e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==r||e[3]!==t?(o=b.jsx("div",{className:t,children:r}),e[2]=r,e[3]=t,e[4]=o):o=e[4],o}function j(i){const e=f.c(12),{active:r,onClick:n,children:t,className:o,mono:u,disabled:a,"aria-label":l}=i,d=(u===void 0?!0:u)&&"font-mono uppercase",m=r?"bg-primary border-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground border-transparent",p=a&&"cursor-not-allowed opacity-50";let s;e[0]!==o||e[1]!==d||e[2]!==m||e[3]!==p?(s=x("flex h-full min-w-8 items-center justify-center gap-1.5 rounded-md border px-2.5 text-xs whitespace-nowrap transition-colors",d,m,p,o),e[0]=o,e[1]=d,e[2]=m,e[3]=p,e[4]=s):s=e[4];let c;return e[5]!==r||e[6]!==l||e[7]!==t||e[8]!==a||e[9]!==n||e[10]!==s?(c=b.jsx("button",{type:"button",onClick:n,disabled:a,"aria-pressed":r,"aria-label":l,className:s,children:t}),e[5]=r,e[6]=l,e[7]=t,e[8]=a,e[9]=n,e[10]=s,e[11]=c):c=e[11],c}export{y as S,j as a};
@@ -1 +1 @@
1
- import{x as ze,r as a,j as u,A as Me,c as ne,o as ae}from"./inertia-FoqYZAk8.js";import{d as We,e as Oe,j as H,A as Ke,P as F,g as E,M as q,i as $e,h as Ge,N as Ye,Q as qe,U as Xe,V as Ze,D as Qe,k as Je,W as ye,n as De,X as et,Y as tt,m as ot,u as _e,f as nt,Z as rt,C as ke,q as st}from"./app-layout-LvxN9xSS.js";const lt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ct=ze("chevron-up",lt);var it=Object.defineProperty,at=(l,e)=>it(l,"name",{value:e,configurable:!0});function Ae(l){const e=a.useRef({value:l,previous:l});return a.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}at(Ae,"usePrevious");var dt=Object.defineProperty,ut=(l,e)=>dt(l,"name",{value:e,configurable:!0});function we(l,[e,o]){return Math.min(o,Math.max(e,l))}ut(we,"clamp");var pt=Object.defineProperty,S=(l,e)=>pt(l,"name",{value:e,configurable:!0}),ft=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],de="Select",[he,ve,ht]=tt(de),[re,Xt]=We(de,[ht,Oe]),Ie=Oe(),[vt,X]=re(de),[gt,St]=re(de);function Be(l){const{__scopeSelect:e,children:o,open:t,defaultOpen:r,onOpenChange:n,value:d,defaultValue:s,onValueChange:c,dir:i,name:m,autoComplete:x,disabled:y,required:C,form:w,internal_do_not_use_render:I}=l,p=Ie(e),[g,b]=a.useState(null),[v,f]=a.useState(null),[O,j]=a.useState(!1),Z=ot(i),[D,A]=_e({prop:t,defaultProp:r??!1,onChange:n,caller:de}),[Q,K]=_e({prop:d,defaultProp:s,onChange:c,caller:de}),U=a.useRef(null),z=a.useRef(Q);a.useEffect(()=>{const N=w?g?.ownerDocument.getElementById(w):g?.form;if(N instanceof HTMLFormElement){const V=S(()=>K(z.current),"reset");return N.addEventListener("reset",V),()=>N.removeEventListener("reset",V)}},[w,g,K]);const J=g?!!w||!!g.closest("form"):!0,[W,B]=a.useState(new Set),$=De(),G=Array.from(W).map(N=>N.props.value).join(";"),Y=a.useCallback(N=>{B(V=>new Set(V).add(N))},[]),L=a.useCallback(N=>{B(V=>{const ce=new Set(V);return ce.delete(N),ce})},[]),le={required:C,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:f,valueNodeHasChildren:O,onValueNodeHasChildrenChange:j,contentId:$,value:Q,onValueChange:K,open:D,onOpenChange:A,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:m,autoComplete:x,form:w,nativeOptions:W,nativeSelectKey:G,isFormControl:J};return u.jsx(nt,{...p,children:u.jsx(vt,{scope:e,...le,children:u.jsx(he.Provider,{scope:e,children:u.jsx(gt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:L,children:Fe(I)?I(le):o})})})})}S(Be,"SelectProvider");var xt=S(l=>{const{__scopeSelect:e,children:o,...t}=l;return u.jsx(Be,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(Kt,{__scopeSelect:e}):null]})})},"Select"),wt="SelectTrigger",Ct=a.forwardRef(S(function(e,o){const{__scopeSelect:t,disabled:r=!1,...n}=e,d=Ie(t),s=X(wt,t),c=s.disabled||r,i=H(o,s.onTriggerChange),m=ve(t),x=a.useRef("touch"),[y,C,w]=Te(p=>{const g=m().filter(f=>!f.disabled),b=g.find(f=>f.value===s.value),v=Pe(g,p,b);v!==void 0&&s.onValueChange(v.value)}),I=S(p=>{c||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return u.jsx(Ke,{asChild:!0,...d,children:u.jsx(F.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":pe(s.value)?"":void 0,...n,ref:i,onClick:E(n.onClick,p=>{p.currentTarget.focus(),x.current!=="mouse"&&I(p)}),onPointerDown:E(n.onPointerDown,p=>{x.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(I(p),p.preventDefault())}),onKeyDown:E(n.onKeyDown,p=>{const g=y.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&C(p.key),!(g&&p.key===" ")&&ft.includes(p.key)&&(I(),p.preventDefault())})})})},"SelectTrigger")),yt="SelectValue",It=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,children:d,placeholder:s="",...c}=e,i=X(yt,t),{onValueNodeHasChildrenChange:m}=i,x=d!==void 0,y=H(o,i.onValueNodeChange);q(()=>{m(x)},[m,x]);const C=pe(i.value);return u.jsx(F.span,{...c,asChild:C?!1:c.asChild,ref:y,style:{pointerEvents:"none"},children:u.jsx(a.Fragment,{children:C?s:d},C?"placeholder":"value")})},"SelectValue")),bt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,...n}=e;return u.jsx(F.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})},"SelectIcon")),Tt="SelectPortal",[Pt,_t]=re(Tt,{forceMount:void 0}),Rt=S(l=>{const{__scopeSelect:e,forceMount:o,...t}=l;return u.jsx(Pt,{scope:l.__scopeSelect,forceMount:o,children:u.jsx($e,{asChild:!0,...t})})},"SelectPortal"),oe="SelectContent",Et=a.forwardRef(S(function(e,o){const t=_t(oe,e.__scopeSelect),{forceMount:r=t.forceMount,...n}=e,d=X(oe,e.__scopeSelect),[s,c]=a.useState();return q(()=>{c(new DocumentFragment)},[]),u.jsx(Ge,{present:r||d.open,children:({present:i})=>i?u.jsx(Mt,{...n,ref:o}):u.jsx(jt,{...n,fragment:s})})},"SelectContent")),jt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,fragment:n}=e;return n?Me.createPortal(u.jsx(Le,{scope:t,children:u.jsx(he.Slot,{scope:t,children:u.jsx("div",{ref:o,children:r})})}),n):null},"SelectContentFragment")),k=10,[Le,se]=re(oe),Nt=rt("SelectContent.RemoveScroll"),Mt=a.forwardRef(S(function(e,o){const{__scopeSelect:t}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:d,onPointerDownOutside:s,side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g,...b}=e,v=X(oe,t),[f,O]=a.useState(null),[j,Z]=a.useState(null),D=H(o,O),[A,Q]=a.useState(null),[K,U]=a.useState(null),z=ve(t),[J,W]=a.useState(!1),B=a.useRef(!1);a.useEffect(()=>{if(f)return Ye(f)},[f]),qe();const $=a.useCallback(h=>{const[_,...M]=z().map(R=>R.ref.current),[T]=M.slice(-1),P=document.activeElement;for(const R of h)if(R===P||(R?.scrollIntoView({block:"nearest"}),R===_&&j&&(j.scrollTop=0),R===T&&j&&(j.scrollTop=j.scrollHeight),R?.focus(),document.activeElement!==P))return},[z,j]),G=a.useCallback(()=>$([A,f]),[$,A,f]);a.useEffect(()=>{J&&G()},[J,G]);const{onOpenChange:Y,triggerPointerDownPosRef:L}=v;a.useEffect(()=>{if(f){let h={x:0,y:0};const _=S(T=>{h={x:Math.abs(Math.round(T.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(T.pageY)-(L.current?.y??0))}},"handlePointerMove"),M=S(T=>{h.x<=10&&h.y<=10?T.preventDefault():T.composedPath().includes(f)||Y(!1),document.removeEventListener("pointermove",_),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",M,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",M,{capture:!0})}}},[f,Y,L]),a.useEffect(()=>{const h=S(()=>Y(!1),"close");return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[Y]);const[le,N]=Te(h=>{const _=z().filter(P=>!P.disabled),M=_.find(P=>P.ref.current===document.activeElement),T=Pe(_,h,M);T&&setTimeout(()=>T.ref.current?.focus())}),V=a.useCallback((h,_,M)=>{const T=!B.current&&!M;(v.value!==void 0&&v.value===_||T)&&(Q(h),T&&(B.current=!0))},[v.value]),ce=a.useCallback(()=>f?.focus(),[f]),ie=a.useCallback((h,_,M)=>{const T=!B.current&&!M;(v.value!==void 0&&v.value===_||T)&&U(h)},[v.value]),fe=r==="popper"?Re:Ot,ue=fe===Re?{side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g}:{};return u.jsx(Le,{scope:t,content:f,viewport:j,onViewportChange:Z,itemRefCallback:V,selectedItem:A,onItemLeave:ce,itemTextRefCallback:ie,focusSelectedItem:G,selectedItemText:K,position:r,isPositioned:J,searchRef:le,children:u.jsx(Xe,{as:Nt,allowPinchZoom:!0,children:u.jsx(Ze,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:E(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:u.jsx(Qe,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...b,...ue,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:E(b.onKeyDown,h=>{const _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&N(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let T=z().filter(P=>!P.disabled).map(P=>P.ref.current);if(["ArrowUp","End"].includes(h.key)&&(T=T.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const P=h.target,R=T.indexOf(P);T=T.slice(R+1)}setTimeout(()=>$(T)),h.preventDefault()}})})})})})})},"SelectContentImpl")),Ot=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onPlaced:r,...n}=e,d=X(oe,t),s=se(oe,t),[c,i]=a.useState(null),[m,x]=a.useState(null),y=H(o,x),C=ve(t),w=a.useRef(!1),I=a.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=s,f=a.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&m&&p&&g&&b){const D=d.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),Q=d.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(d.dir!=="rtl"){const P=K.left-A.left,R=Q.left-P,ee=D.left-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.left=xe+"px"}else{const P=A.right-K.right,R=window.innerWidth-Q.right-P,ee=window.innerWidth-D.right-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.right=xe+"px"}const U=C(),z=window.innerHeight-k*2,J=p.scrollHeight,W=window.getComputedStyle(m),B=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),L=B+$+J+Y+G,le=Math.min(g.offsetHeight*5,L),N=window.getComputedStyle(p),V=parseInt(N.paddingTop,10),ce=parseInt(N.paddingBottom,10),ie=D.top+D.height/2-k,fe=z-ie,ue=g.offsetHeight/2,h=g.offsetTop+ue,_=B+$+h,M=L-_;if(_<=ie){const P=U.length>0&&g===U[U.length-1].ref.current;c.style.bottom="0px";const R=m.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(fe,ue+(P?ce:0)+R+G),te=_+ee;c.style.height=te+"px"}else{const P=U.length>0&&g===U[0].ref.current;c.style.top="0px";const ee=Math.max(ie,B+p.offsetTop+(P?V:0)+ue)+M;c.style.height=ee+"px",p.scrollTop=_-ie+p.offsetTop}c.style.margin=`${k}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[C,d.trigger,d.valueNode,c,m,p,g,b,d.dir,r]);q(()=>f(),[f]);const[O,j]=a.useState();q(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const Z=a.useCallback(D=>{D&&I.current===!0&&(f(),v?.(),I.current=!1)},[f,v]);return u.jsx(Dt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:Z,children:u.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(F.div,{...n,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Re=a.forwardRef(S(function(e,o){const{__scopeSelect:t,align:r="start",collisionPadding:n=k,...d}=e,s=Ie(t);return u.jsx(Je,{...s,...d,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Dt,be]=re(oe,{}),Ee="SelectViewport",kt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,nonce:r,...n}=e,d=se(Ee,t),s=be(Ee,t),c=H(o,d.onViewportChange),i=a.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(he.Slot,{scope:t,children:u.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:E(n.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:C}=s;if(C?.current&&y){const w=Math.abs(i.current-x.scrollTop);if(w>0){const I=window.innerHeight-k*2,p=parseFloat(y.style.minHeight),g=parseFloat(y.style.height),b=Math.max(p,g);if(b<I){const v=b+w,f=Math.min(I,v),O=v-f;y.style.height=f+"px",y.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}i.current=x.scrollTop})})})]})},"SelectViewport")),At="SelectGroup",[Zt,Qt]=re(At),Ce="SelectItem",[Bt,Ve]=re(Ce),Lt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,value:r,disabled:n=!1,textValue:d,...s}=e,c=X(Ce,t),i=se(Ce,t),m=c.value===r,[x,y]=a.useState(d??""),[C,w]=a.useState(!1),I=ye(f=>i.itemRefCallback?.(f,r,n)),p=H(o,I),g=De(),b=a.useRef("touch"),v=S(()=>{n||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return u.jsx(Bt,{scope:t,value:r,disabled:n,textId:g,isSelected:m,onItemTextChange:a.useCallback(f=>{y(O=>O||(f?.textContent??"").trim())},[]),children:u.jsx(he.ItemSlot,{scope:t,value:r,disabled:n,textValue:x,children:u.jsx(F.div,{role:"option","aria-labelledby":g,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:p,onFocus:E(s.onFocus,()=>w(!0)),onBlur:E(s.onBlur,()=>w(!1)),onClick:E(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:E(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:E(s.onPointerDown,f=>{b.current=f.pointerType}),onPointerMove:E(s.onPointerMove,f=>{b.current=f.pointerType,n?i.onItemLeave?.():b.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:E(s.onKeyDown,f=>{n||f.target!==f.currentTarget||i.searchRef?.current!==""&&f.key===" "||(mt.includes(f.key)&&v(),f.key===" "&&f.preventDefault())})})})})},"SelectItem")),me="SelectItemText",Vt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,...d}=e,s=X(me,t),c=se(me,t),i=Ve(me,t),m=St(me,t),[x,y]=a.useState(null),C=ye(v=>c.itemTextRefCallback?.(v,i.value,i.disabled)),w=H(o,y,i.onItemTextChange,C),I=x?.textContent,p=a.useMemo(()=>u.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=m;return q(()=>(g(p),()=>b(p)),[g,b,p]),u.jsxs(u.Fragment,{children:[u.jsx(F.span,{id:i.textId,...d,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!pe(s.value)?Me.createPortal(d.children,s.valueNode):null]})},"SelectItemText")),Ht="SelectItemIndicator",Ft=a.forwardRef(S(function(e,o){const{__scopeSelect:t,...r}=e;return Ve(Ht,t).isSelected?u.jsx(F.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),je="SelectScrollUpButton",Ut=a.forwardRef(S(function(e,o){const t=se(je,e.__scopeSelect),r=be(je,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollTop>0;d(m)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null},"SelectScrollUpButton")),Ne="SelectScrollDownButton",zt=a.forwardRef(S(function(e,o){const t=se(Ne,e.__scopeSelect),r=be(Ne,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollHeight-i.clientHeight,x=Math.ceil(i.scrollTop)<m;d(x)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null},"SelectScrollDownButton")),He=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onAutoScroll:r,...n}=e,d=se("SelectScrollButton",t),s=a.useRef(null),c=ve(t),i=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>i(),[i]),q(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(F.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:E(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:E(n.onPointerMove,()=>{d.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:E(n.onPointerLeave,()=>{i()})})},"SelectScrollButtonImpl")),Wt="SelectBubbleInput",Kt=a.forwardRef(S(function({__scopeSelect:e,...o},t){const r=X(Wt,e),{value:n,onValueChange:d,required:s,disabled:c,name:i,autoComplete:m,form:x}=r,{nativeOptions:y,nativeSelectKey:C}=r,w=a.useRef(null),I=H(t,w),p=n??"",g=Ae(p),b=Array.from(y).some(v=>(v.props.value??"")==="");return a.useEffect(()=>{const v=w.current;if(!v)return;const f=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(f,"value").set;if(g!==p&&j){const Z=new Event("change",{bubbles:!0});j.call(v,p),v.dispatchEvent(Z)}},[g,p]),u.jsxs(F.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:m,disabled:c,form:x,onChange:v=>d(v.target.value),...o,style:{...et,...o.style},ref:I,defaultValue:p,children:[pe(n)&&!b?u.jsx("option",{value:""}):null,Array.from(y)]},C)},"SelectBubbleInput"));function Fe(l){return typeof l=="function"}S(Fe,"isFunction");function pe(l){return l===""||l===void 0}S(pe,"shouldShowPlaceholder");function Te(l){const e=ye(l),o=a.useRef(""),t=a.useRef(0),r=a.useCallback(d=>{const s=o.current+d;e(s),S((function c(i){o.current=i,window.clearTimeout(t.current),i!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch")(s)},[e]),n=a.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,r,n]}S(Te,"useTypeaheadSearch");function Pe(l,e,o){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,n=o?l.indexOf(o):-1;let d=Ue(l,Math.max(n,0));r.length===1&&(d=d.filter(i=>i!==o));const c=d.find(i=>i.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}S(Pe,"findNextItem");function Ue(l,e){return l.map((o,t)=>l[(e+t)%l.length])}S(Ue,"wrapArray");function Jt(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(xt,{"data-slot":"select",...o}),e[2]=o,e[3]=t):t=e[3],t}function eo(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(It,{"data-slot":"select-value",...o}),e[2]=o,e[3]=t):t=e[3],t}function to(l){const e=ne.c(13);let o,t,r,n;e[0]!==l?({className:t,size:n,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n):(o=e[1],t=e[2],r=e[3],n=e[4]);const d=n===void 0?"default":n;let s;e[5]!==t?(s=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(bt,{asChild:!0,children:u.jsx(ke,{className:"size-4 opacity-50"})}),e[7]=c):c=e[7];let i;return e[8]!==o||e[9]!==r||e[10]!==d||e[11]!==s?(i=u.jsxs(Ct,{"data-slot":"select-trigger","data-size":d,className:s,...r,children:[o,c]}),e[8]=o,e[9]=r,e[10]=d,e[11]=s,e[12]=i):i=e[12],i}function oo(l){const e=ne.c(22);let o,t,r,n,d;e[0]!==l?({className:t,children:o,position:n,align:d,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n,e[5]=d):(o=e[1],t=e[2],r=e[3],n=e[4],d=e[5]);const s=n===void 0?"popper":n,c=d===void 0?"center":d,i=s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==t||e[7]!==i?(m=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i,t),e[6]=t,e[7]=i,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=u.jsx($t,{}),e[9]=x):x=e[9];const y=s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[10]!==y?(C=ae("p-1",y),e[10]=y,e[11]=C):C=e[11];let w;e[12]!==o||e[13]!==C?(w=u.jsx(kt,{className:C,children:o}),e[12]=o,e[13]=C,e[14]=w):w=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=u.jsx(Gt,{}),e[15]=I):I=e[15];let p;return e[16]!==c||e[17]!==s||e[18]!==r||e[19]!==m||e[20]!==w?(p=u.jsx(Rt,{children:u.jsxs(Et,{"data-slot":"select-content",className:m,position:s,align:c,...r,children:[x,w,I]})}),e[16]=c,e[17]=s,e[18]=r,e[19]=m,e[20]=w,e[21]=p):p=e[21],p}function no(l){const e=ne.c(13);let o,t,r;e[0]!==l?({className:t,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r):(o=e[1],t=e[2],r=e[3]);let n;e[4]!==t?(n=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Ft,{children:u.jsx(st,{className:"size-4"})})}),e[6]=d):d=e[6];let s;e[7]!==o?(s=u.jsx(Vt,{children:o}),e[7]=o,e[8]=s):s=e[8];let c;return e[9]!==r||e[10]!==n||e[11]!==s?(c=u.jsxs(Lt,{"data-slot":"select-item",className:n,...r,children:[d,s]}),e[9]=r,e[10]=n,e[11]=s,e[12]=c):c=e[12],c}function $t(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ct,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(Ut,{"data-slot":"select-scroll-up-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}function Gt(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ke,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(zt,{"data-slot":"select-scroll-down-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}export{Jt as S,to as a,eo as b,oo as c,no as d};
1
+ import{x as ze,r as a,j as u,A as Me,c as ne,o as ae}from"./inertia-b7M33AzA.js";import{d as We,e as Oe,j as H,A as Ke,P as F,g as E,M as q,i as $e,h as Ge,N as Ye,Q as qe,U as Xe,V as Ze,D as Qe,k as Je,W as ye,n as De,X as et,Y as tt,m as ot,u as _e,f as nt,Z as rt,C as ke,q as st}from"./app-layout-CpEbDy93.js";const lt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ct=ze("chevron-up",lt);var it=Object.defineProperty,at=(l,e)=>it(l,"name",{value:e,configurable:!0});function Ae(l){const e=a.useRef({value:l,previous:l});return a.useMemo(()=>(e.current.value!==l&&(e.current.previous=e.current.value,e.current.value=l),e.current.previous),[l])}at(Ae,"usePrevious");var dt=Object.defineProperty,ut=(l,e)=>dt(l,"name",{value:e,configurable:!0});function we(l,[e,o]){return Math.min(o,Math.max(e,l))}ut(we,"clamp");var pt=Object.defineProperty,S=(l,e)=>pt(l,"name",{value:e,configurable:!0}),ft=[" ","Enter","ArrowUp","ArrowDown"],mt=[" ","Enter"],de="Select",[he,ve,ht]=tt(de),[re,Xt]=We(de,[ht,Oe]),Ie=Oe(),[vt,X]=re(de),[gt,St]=re(de);function Be(l){const{__scopeSelect:e,children:o,open:t,defaultOpen:r,onOpenChange:n,value:d,defaultValue:s,onValueChange:c,dir:i,name:m,autoComplete:x,disabled:y,required:C,form:w,internal_do_not_use_render:I}=l,p=Ie(e),[g,b]=a.useState(null),[v,f]=a.useState(null),[O,j]=a.useState(!1),Z=ot(i),[D,A]=_e({prop:t,defaultProp:r??!1,onChange:n,caller:de}),[Q,K]=_e({prop:d,defaultProp:s,onChange:c,caller:de}),U=a.useRef(null),z=a.useRef(Q);a.useEffect(()=>{const N=w?g?.ownerDocument.getElementById(w):g?.form;if(N instanceof HTMLFormElement){const V=S(()=>K(z.current),"reset");return N.addEventListener("reset",V),()=>N.removeEventListener("reset",V)}},[w,g,K]);const J=g?!!w||!!g.closest("form"):!0,[W,B]=a.useState(new Set),$=De(),G=Array.from(W).map(N=>N.props.value).join(";"),Y=a.useCallback(N=>{B(V=>new Set(V).add(N))},[]),L=a.useCallback(N=>{B(V=>{const ce=new Set(V);return ce.delete(N),ce})},[]),le={required:C,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:f,valueNodeHasChildren:O,onValueNodeHasChildrenChange:j,contentId:$,value:Q,onValueChange:K,open:D,onOpenChange:A,dir:Z,triggerPointerDownPosRef:U,disabled:y,name:m,autoComplete:x,form:w,nativeOptions:W,nativeSelectKey:G,isFormControl:J};return u.jsx(nt,{...p,children:u.jsx(vt,{scope:e,...le,children:u.jsx(he.Provider,{scope:e,children:u.jsx(gt,{scope:e,onNativeOptionAdd:Y,onNativeOptionRemove:L,children:Fe(I)?I(le):o})})})})}S(Be,"SelectProvider");var xt=S(l=>{const{__scopeSelect:e,children:o,...t}=l;return u.jsx(Be,{__scopeSelect:e,...t,internal_do_not_use_render:({isFormControl:r})=>u.jsxs(u.Fragment,{children:[o,r?u.jsx(Kt,{__scopeSelect:e}):null]})})},"Select"),wt="SelectTrigger",Ct=a.forwardRef(S(function(e,o){const{__scopeSelect:t,disabled:r=!1,...n}=e,d=Ie(t),s=X(wt,t),c=s.disabled||r,i=H(o,s.onTriggerChange),m=ve(t),x=a.useRef("touch"),[y,C,w]=Te(p=>{const g=m().filter(f=>!f.disabled),b=g.find(f=>f.value===s.value),v=Pe(g,p,b);v!==void 0&&s.onValueChange(v.value)}),I=S(p=>{c||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return u.jsx(Ke,{asChild:!0,...d,children:u.jsx(F.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":pe(s.value)?"":void 0,...n,ref:i,onClick:E(n.onClick,p=>{p.currentTarget.focus(),x.current!=="mouse"&&I(p)}),onPointerDown:E(n.onPointerDown,p=>{x.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(I(p),p.preventDefault())}),onKeyDown:E(n.onKeyDown,p=>{const g=y.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&C(p.key),!(g&&p.key===" ")&&ft.includes(p.key)&&(I(),p.preventDefault())})})})},"SelectTrigger")),yt="SelectValue",It=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,children:d,placeholder:s="",...c}=e,i=X(yt,t),{onValueNodeHasChildrenChange:m}=i,x=d!==void 0,y=H(o,i.onValueNodeChange);q(()=>{m(x)},[m,x]);const C=pe(i.value);return u.jsx(F.span,{...c,asChild:C?!1:c.asChild,ref:y,style:{pointerEvents:"none"},children:u.jsx(a.Fragment,{children:C?s:d},C?"placeholder":"value")})},"SelectValue")),bt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,...n}=e;return u.jsx(F.span,{"aria-hidden":!0,...n,ref:o,children:r||"▼"})},"SelectIcon")),Tt="SelectPortal",[Pt,_t]=re(Tt,{forceMount:void 0}),Rt=S(l=>{const{__scopeSelect:e,forceMount:o,...t}=l;return u.jsx(Pt,{scope:l.__scopeSelect,forceMount:o,children:u.jsx($e,{asChild:!0,...t})})},"SelectPortal"),oe="SelectContent",Et=a.forwardRef(S(function(e,o){const t=_t(oe,e.__scopeSelect),{forceMount:r=t.forceMount,...n}=e,d=X(oe,e.__scopeSelect),[s,c]=a.useState();return q(()=>{c(new DocumentFragment)},[]),u.jsx(Ge,{present:r||d.open,children:({present:i})=>i?u.jsx(Mt,{...n,ref:o}):u.jsx(jt,{...n,fragment:s})})},"SelectContent")),jt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,children:r,fragment:n}=e;return n?Me.createPortal(u.jsx(Le,{scope:t,children:u.jsx(he.Slot,{scope:t,children:u.jsx("div",{ref:o,children:r})})}),n):null},"SelectContentFragment")),k=10,[Le,se]=re(oe),Nt=rt("SelectContent.RemoveScroll"),Mt=a.forwardRef(S(function(e,o){const{__scopeSelect:t}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:d,onPointerDownOutside:s,side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g,...b}=e,v=X(oe,t),[f,O]=a.useState(null),[j,Z]=a.useState(null),D=H(o,O),[A,Q]=a.useState(null),[K,U]=a.useState(null),z=ve(t),[J,W]=a.useState(!1),B=a.useRef(!1);a.useEffect(()=>{if(f)return Ye(f)},[f]),qe();const $=a.useCallback(h=>{const[_,...M]=z().map(R=>R.ref.current),[T]=M.slice(-1),P=document.activeElement;for(const R of h)if(R===P||(R?.scrollIntoView({block:"nearest"}),R===_&&j&&(j.scrollTop=0),R===T&&j&&(j.scrollTop=j.scrollHeight),R?.focus(),document.activeElement!==P))return},[z,j]),G=a.useCallback(()=>$([A,f]),[$,A,f]);a.useEffect(()=>{J&&G()},[J,G]);const{onOpenChange:Y,triggerPointerDownPosRef:L}=v;a.useEffect(()=>{if(f){let h={x:0,y:0};const _=S(T=>{h={x:Math.abs(Math.round(T.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(T.pageY)-(L.current?.y??0))}},"handlePointerMove"),M=S(T=>{h.x<=10&&h.y<=10?T.preventDefault():T.composedPath().includes(f)||Y(!1),document.removeEventListener("pointermove",_),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",M,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",M,{capture:!0})}}},[f,Y,L]),a.useEffect(()=>{const h=S(()=>Y(!1),"close");return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[Y]);const[le,N]=Te(h=>{const _=z().filter(P=>!P.disabled),M=_.find(P=>P.ref.current===document.activeElement),T=Pe(_,h,M);T&&setTimeout(()=>T.ref.current?.focus())}),V=a.useCallback((h,_,M)=>{const T=!B.current&&!M;(v.value!==void 0&&v.value===_||T)&&(Q(h),T&&(B.current=!0))},[v.value]),ce=a.useCallback(()=>f?.focus(),[f]),ie=a.useCallback((h,_,M)=>{const T=!B.current&&!M;(v.value!==void 0&&v.value===_||T)&&U(h)},[v.value]),fe=r==="popper"?Re:Ot,ue=fe===Re?{side:c,sideOffset:i,align:m,alignOffset:x,arrowPadding:y,collisionBoundary:C,collisionPadding:w,sticky:I,hideWhenDetached:p,avoidCollisions:g}:{};return u.jsx(Le,{scope:t,content:f,viewport:j,onViewportChange:Z,itemRefCallback:V,selectedItem:A,onItemLeave:ce,itemTextRefCallback:ie,focusSelectedItem:G,selectedItemText:K,position:r,isPositioned:J,searchRef:le,children:u.jsx(Xe,{as:Nt,allowPinchZoom:!0,children:u.jsx(Ze,{asChild:!0,trapped:v.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:E(n,h=>{v.trigger?.focus({preventScroll:!0}),h.preventDefault()}),children:u.jsx(Qe,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:u.jsx(fe,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:h=>h.preventDefault(),...b,...ue,onPlaced:()=>W(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:E(b.onKeyDown,h=>{const _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&N(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let T=z().filter(P=>!P.disabled).map(P=>P.ref.current);if(["ArrowUp","End"].includes(h.key)&&(T=T.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){const P=h.target,R=T.indexOf(P);T=T.slice(R+1)}setTimeout(()=>$(T)),h.preventDefault()}})})})})})})},"SelectContentImpl")),Ot=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onPlaced:r,...n}=e,d=X(oe,t),s=se(oe,t),[c,i]=a.useState(null),[m,x]=a.useState(null),y=H(o,x),C=ve(t),w=a.useRef(!1),I=a.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=s,f=a.useCallback(()=>{if(d.trigger&&d.valueNode&&c&&m&&p&&g&&b){const D=d.trigger.getBoundingClientRect(),A=m.getBoundingClientRect(),Q=d.valueNode.getBoundingClientRect(),K=b.getBoundingClientRect();if(d.dir!=="rtl"){const P=K.left-A.left,R=Q.left-P,ee=D.left-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.left=xe+"px"}else{const P=A.right-K.right,R=window.innerWidth-Q.right-P,ee=window.innerWidth-D.right-R,te=D.width+ee,ge=Math.max(te,A.width),Se=window.innerWidth-k,xe=we(R,[k,Math.max(k,Se-ge)]);c.style.minWidth=te+"px",c.style.right=xe+"px"}const U=C(),z=window.innerHeight-k*2,J=p.scrollHeight,W=window.getComputedStyle(m),B=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),G=parseInt(W.borderBottomWidth,10),Y=parseInt(W.paddingBottom,10),L=B+$+J+Y+G,le=Math.min(g.offsetHeight*5,L),N=window.getComputedStyle(p),V=parseInt(N.paddingTop,10),ce=parseInt(N.paddingBottom,10),ie=D.top+D.height/2-k,fe=z-ie,ue=g.offsetHeight/2,h=g.offsetTop+ue,_=B+$+h,M=L-_;if(_<=ie){const P=U.length>0&&g===U[U.length-1].ref.current;c.style.bottom="0px";const R=m.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(fe,ue+(P?ce:0)+R+G),te=_+ee;c.style.height=te+"px"}else{const P=U.length>0&&g===U[0].ref.current;c.style.top="0px";const ee=Math.max(ie,B+p.offsetTop+(P?V:0)+ue)+M;c.style.height=ee+"px",p.scrollTop=_-ie+p.offsetTop}c.style.margin=`${k}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[C,d.trigger,d.valueNode,c,m,p,g,b,d.dir,r]);q(()=>f(),[f]);const[O,j]=a.useState();q(()=>{m&&j(window.getComputedStyle(m).zIndex)},[m]);const Z=a.useCallback(D=>{D&&I.current===!0&&(f(),v?.(),I.current=!1)},[f,v]);return u.jsx(Dt,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:w,onScrollButtonChange:Z,children:u.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(F.div,{...n,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),Re=a.forwardRef(S(function(e,o){const{__scopeSelect:t,align:r="start",collisionPadding:n=k,...d}=e,s=Ie(t);return u.jsx(Je,{...s,...d,ref:o,align:r,collisionPadding:n,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Dt,be]=re(oe,{}),Ee="SelectViewport",kt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,nonce:r,...n}=e,d=se(Ee,t),s=be(Ee,t),c=H(o,d.onViewportChange),i=a.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(he.Slot,{scope:t,children:u.jsx(F.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:E(n.onScroll,m=>{const x=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:C}=s;if(C?.current&&y){const w=Math.abs(i.current-x.scrollTop);if(w>0){const I=window.innerHeight-k*2,p=parseFloat(y.style.minHeight),g=parseFloat(y.style.height),b=Math.max(p,g);if(b<I){const v=b+w,f=Math.min(I,v),O=v-f;y.style.height=f+"px",y.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}i.current=x.scrollTop})})})]})},"SelectViewport")),At="SelectGroup",[Zt,Qt]=re(At),Ce="SelectItem",[Bt,Ve]=re(Ce),Lt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,value:r,disabled:n=!1,textValue:d,...s}=e,c=X(Ce,t),i=se(Ce,t),m=c.value===r,[x,y]=a.useState(d??""),[C,w]=a.useState(!1),I=ye(f=>i.itemRefCallback?.(f,r,n)),p=H(o,I),g=De(),b=a.useRef("touch"),v=S(()=>{n||(c.onValueChange(r),c.onOpenChange(!1))},"handleSelect");return u.jsx(Bt,{scope:t,value:r,disabled:n,textId:g,isSelected:m,onItemTextChange:a.useCallback(f=>{y(O=>O||(f?.textContent??"").trim())},[]),children:u.jsx(he.ItemSlot,{scope:t,value:r,disabled:n,textValue:x,children:u.jsx(F.div,{role:"option","aria-labelledby":g,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:p,onFocus:E(s.onFocus,()=>w(!0)),onBlur:E(s.onBlur,()=>w(!1)),onClick:E(s.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:E(s.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:E(s.onPointerDown,f=>{b.current=f.pointerType}),onPointerMove:E(s.onPointerMove,f=>{b.current=f.pointerType,n?i.onItemLeave?.():b.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(s.onPointerLeave,f=>{f.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:E(s.onKeyDown,f=>{n||f.target!==f.currentTarget||i.searchRef?.current!==""&&f.key===" "||(mt.includes(f.key)&&v(),f.key===" "&&f.preventDefault())})})})})},"SelectItem")),me="SelectItemText",Vt=a.forwardRef(S(function(e,o){const{__scopeSelect:t,className:r,style:n,...d}=e,s=X(me,t),c=se(me,t),i=Ve(me,t),m=St(me,t),[x,y]=a.useState(null),C=ye(v=>c.itemTextRefCallback?.(v,i.value,i.disabled)),w=H(o,y,i.onItemTextChange,C),I=x?.textContent,p=a.useMemo(()=>u.jsx("option",{value:i.value,disabled:i.disabled,children:I},i.value),[i.disabled,i.value,I]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=m;return q(()=>(g(p),()=>b(p)),[g,b,p]),u.jsxs(u.Fragment,{children:[u.jsx(F.span,{id:i.textId,...d,ref:w}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!pe(s.value)?Me.createPortal(d.children,s.valueNode):null]})},"SelectItemText")),Ht="SelectItemIndicator",Ft=a.forwardRef(S(function(e,o){const{__scopeSelect:t,...r}=e;return Ve(Ht,t).isSelected?u.jsx(F.span,{"aria-hidden":!0,...r,ref:o}):null},"SelectItemIndicator")),je="SelectScrollUpButton",Ut=a.forwardRef(S(function(e,o){const t=se(je,e.__scopeSelect),r=be(je,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollTop>0;d(m)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null},"SelectScrollUpButton")),Ne="SelectScrollDownButton",zt=a.forwardRef(S(function(e,o){const t=se(Ne,e.__scopeSelect),r=be(Ne,e.__scopeSelect),[n,d]=a.useState(!1),s=H(o,r.onScrollButtonChange);return q(()=>{if(t.viewport&&t.isPositioned){let c=function(){const m=i.scrollHeight-i.clientHeight,x=Math.ceil(i.scrollTop)<m;d(x)};S(c,"handleScroll");const i=t.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),n?u.jsx(He,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=t;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null},"SelectScrollDownButton")),He=a.forwardRef(S(function(e,o){const{__scopeSelect:t,onAutoScroll:r,...n}=e,d=se("SelectScrollButton",t),s=a.useRef(null),c=ve(t),i=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>i(),[i]),q(()=>{c().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(F.div,{"aria-hidden":!0,...n,ref:o,style:{flexShrink:0,...n.style},onPointerDown:E(n.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:E(n.onPointerMove,()=>{d.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:E(n.onPointerLeave,()=>{i()})})},"SelectScrollButtonImpl")),Wt="SelectBubbleInput",Kt=a.forwardRef(S(function({__scopeSelect:e,...o},t){const r=X(Wt,e),{value:n,onValueChange:d,required:s,disabled:c,name:i,autoComplete:m,form:x}=r,{nativeOptions:y,nativeSelectKey:C}=r,w=a.useRef(null),I=H(t,w),p=n??"",g=Ae(p),b=Array.from(y).some(v=>(v.props.value??"")==="");return a.useEffect(()=>{const v=w.current;if(!v)return;const f=window.HTMLSelectElement.prototype,j=Object.getOwnPropertyDescriptor(f,"value").set;if(g!==p&&j){const Z=new Event("change",{bubbles:!0});j.call(v,p),v.dispatchEvent(Z)}},[g,p]),u.jsxs(F.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:m,disabled:c,form:x,onChange:v=>d(v.target.value),...o,style:{...et,...o.style},ref:I,defaultValue:p,children:[pe(n)&&!b?u.jsx("option",{value:""}):null,Array.from(y)]},C)},"SelectBubbleInput"));function Fe(l){return typeof l=="function"}S(Fe,"isFunction");function pe(l){return l===""||l===void 0}S(pe,"shouldShowPlaceholder");function Te(l){const e=ye(l),o=a.useRef(""),t=a.useRef(0),r=a.useCallback(d=>{const s=o.current+d;e(s),S((function c(i){o.current=i,window.clearTimeout(t.current),i!==""&&(t.current=window.setTimeout(()=>c(""),1e3))}),"updateSearch")(s)},[e]),n=a.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,r,n]}S(Te,"useTypeaheadSearch");function Pe(l,e,o){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,n=o?l.indexOf(o):-1;let d=Ue(l,Math.max(n,0));r.length===1&&(d=d.filter(i=>i!==o));const c=d.find(i=>i.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==o?c:void 0}S(Pe,"findNextItem");function Ue(l,e){return l.map((o,t)=>l[(e+t)%l.length])}S(Ue,"wrapArray");function Jt(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(xt,{"data-slot":"select",...o}),e[2]=o,e[3]=t):t=e[3],t}function eo(l){const e=ne.c(4);let o;e[0]!==l?({...o}=l,e[0]=l,e[1]=o):o=e[1];let t;return e[2]!==o?(t=u.jsx(It,{"data-slot":"select-value",...o}),e[2]=o,e[3]=t):t=e[3],t}function to(l){const e=ne.c(13);let o,t,r,n;e[0]!==l?({className:t,size:n,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n):(o=e[1],t=e[2],r=e[3],n=e[4]);const d=n===void 0?"default":n;let s;e[5]!==t?(s=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(bt,{asChild:!0,children:u.jsx(ke,{className:"size-4 opacity-50"})}),e[7]=c):c=e[7];let i;return e[8]!==o||e[9]!==r||e[10]!==d||e[11]!==s?(i=u.jsxs(Ct,{"data-slot":"select-trigger","data-size":d,className:s,...r,children:[o,c]}),e[8]=o,e[9]=r,e[10]=d,e[11]=s,e[12]=i):i=e[12],i}function oo(l){const e=ne.c(22);let o,t,r,n,d;e[0]!==l?({className:t,children:o,position:n,align:d,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r,e[4]=n,e[5]=d):(o=e[1],t=e[2],r=e[3],n=e[4],d=e[5]);const s=n===void 0?"popper":n,c=d===void 0?"center":d,i=s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let m;e[6]!==t||e[7]!==i?(m=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i,t),e[6]=t,e[7]=i,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=u.jsx($t,{}),e[9]=x):x=e[9];const y=s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let C;e[10]!==y?(C=ae("p-1",y),e[10]=y,e[11]=C):C=e[11];let w;e[12]!==o||e[13]!==C?(w=u.jsx(kt,{className:C,children:o}),e[12]=o,e[13]=C,e[14]=w):w=e[14];let I;e[15]===Symbol.for("react.memo_cache_sentinel")?(I=u.jsx(Gt,{}),e[15]=I):I=e[15];let p;return e[16]!==c||e[17]!==s||e[18]!==r||e[19]!==m||e[20]!==w?(p=u.jsx(Rt,{children:u.jsxs(Et,{"data-slot":"select-content",className:m,position:s,align:c,...r,children:[x,w,I]})}),e[16]=c,e[17]=s,e[18]=r,e[19]=m,e[20]=w,e[21]=p):p=e[21],p}function no(l){const e=ne.c(13);let o,t,r;e[0]!==l?({className:t,children:o,...r}=l,e[0]=l,e[1]=o,e[2]=t,e[3]=r):(o=e[1],t=e[2],r=e[3]);let n;e[4]!==t?(n=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),e[4]=t,e[5]=n):n=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Ft,{children:u.jsx(st,{className:"size-4"})})}),e[6]=d):d=e[6];let s;e[7]!==o?(s=u.jsx(Vt,{children:o}),e[7]=o,e[8]=s):s=e[8];let c;return e[9]!==r||e[10]!==n||e[11]!==s?(c=u.jsxs(Lt,{"data-slot":"select-item",className:n,...r,children:[d,s]}),e[9]=r,e[10]=n,e[11]=s,e[12]=c):c=e[12],c}function $t(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ct,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(Ut,{"data-slot":"select-scroll-up-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}function Gt(l){const e=ne.c(9);let o,t;e[0]!==l?({className:o,...t}=l,e[0]=l,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let r;e[3]!==o?(r=ae("flex cursor-default items-center justify-center py-1",o),e[3]=o,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(ke,{className:"size-4"}),e[5]=n):n=e[5];let d;return e[6]!==t||e[7]!==r?(d=u.jsx(zt,{"data-slot":"select-scroll-down-button",className:r,...t,children:n}),e[6]=t,e[7]=r,e[8]=d):d=e[8],d}export{Jt as S,to as a,eo as b,oo as c,no as d};
@@ -1 +1 @@
1
- import{V as re,r as c,c as R,j as A}from"./inertia-FoqYZAk8.js";import{u as Ye}from"./chart-hover-CEH-DtXO.js";import{i as K,e as He,s as ne,D as ie,f as ge,g as Ct,Z as oe,L as W,u as be,h as Mt,j as Tt,k as U,l as Ue,m as F,n as H,o as Kt,p as le,q as se,r as qe,t as Pe,v as q,w as Ze,x as Ae,y as ce,z as Je,S as Qe,A as et,E as ue,F as tt,G as at,H as rt,I as nt,J as it,K as ot,M as $t,N as Z,O as J,P as lt,Q as st,T as M,U as ct,V as ut,W as dt,_ as Wt,$ as Rt,a0 as Ft,a1 as Ie,a2 as Ee,a3 as zt,a4 as Bt,a5 as Vt,a6 as Gt,a7 as Xt,a8 as Yt,a9 as pe,aa as Q,ab as pt,ac as vt,R as Ht,C as ke,X as je,Y as Oe,a as Se,b as we,c as de,B as ve,d as Ut}from"./chart-DJHv3R7W.js";import{m as ft}from"./format-B9SDkrWj.js";function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},he.apply(null,arguments)}var mt=t=>{var{cx:e,cy:a,r,className:n}=t,i=re("recharts-dot",n);return K(e)&&K(a)&&K(r)?c.createElement("circle",he({},ne(t),He(t),{className:i,cx:e,cy:a,r})):null},qt=["points"];function We(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function fe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?We(Object(a),!0).forEach(function(r){Zt(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):We(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Zt(t,e,a){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Jt(t){var e=Qt(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},ee.apply(null,arguments)}function ea(t,e){if(t==null)return{};var a,r,n=ta(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ta(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function aa(t){var{option:e,dotProps:a,className:r}=t;if(c.isValidElement(e))return c.cloneElement(e,a);if(typeof e=="function")return e(a);var n=re(r,typeof e!="boolean"?e.className:""),i=a??{},{points:l}=i,o=ea(i,qt);return c.createElement(mt,ee({},o,{className:n}))}function ra(t,e){return t==null?!1:e?!0:t.length===1}function ht(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:i,baseProps:l,needClip:o,clipPathId:s,zIndex:u=ie.scatter}=t;if(!ra(e,a))return null;var d=ge(a),p=Ct(a),v=e.map((m,x)=>{var P,h,y=fe(fe(fe({r:3},l),p),{},{index:x,cx:(P=m.x)!==null&&P!==void 0?P:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:i,value:m.value,payload:m.payload,points:e});return c.createElement(aa,{key:"dot-".concat(x),option:a,dotProps:y,className:n})}),f={};return o&&s!=null&&(f.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(s,")")),c.createElement(oe,{zIndex:u},c.createElement(W,ee({className:r},f),v))}function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function me(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(a),!0).forEach(function(r){na(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function na(t,e,a){return(e=ia(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ia(t){var e=oa(t,"string");return typeof e=="symbol"?e:e+""}function oa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var la=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:i,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var o={index:a,dataKey:i,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},s=me(me(me({},o),Ue(n)),He(n)),u;return c.isValidElement(n)?u=c.cloneElement(n,s):typeof n=="function"?u=n(s):u=c.createElement(mt,s),c.createElement(W,{className:"recharts-active-dot",clipPath:l},u)};function ye(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:i,zIndex:l=ie.activeDot}=t,o=be(Mt),s=Tt();if(e==null||s==null)return null;var u=e.find(d=>s.includes(d.payload));return U(u)?null:c.createElement(oe,{zIndex:l},c.createElement(la,{point:u,childIndex:Number(o),mainColor:a,dataKey:n,activeDot:r,clipPath:i}))}var yt=(t,e,a,r)=>le(t,"xAxis",e,r),xt=(t,e,a,r)=>se(t,"xAxis",e,r),gt=(t,e,a,r)=>le(t,"yAxis",a,r),bt=(t,e,a,r)=>se(t,"yAxis",a,r),sa=F([H,yt,gt,xt,bt],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),ca=(t,e,a,r,n)=>n;function ua(t){return t.type==="line"}var da=F([qe,ca],(t,e)=>t.filter(ua).find(a=>a.id===e)),pa=F([H,yt,gt,xt,bt,da,sa,Kt],(t,e,a,r,n,i,l,o)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:d}=o;if(!(i==null||e==null||a==null||r==null||n==null||r.length===0||n.length===0||l==null||t!=="horizontal"&&t!=="vertical")){var{dataKey:p,data:v}=i,f;if(v!=null&&v.length>0?f=v:f=s?.slice(u,d+1),f!=null)return Na({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:f})}});function Pt(t){var e=Ue(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:i}=e,l=Number(n),o=Number(i);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(o)||o<0)&&(o=r),{r:l,strokeWidth:o}}return{r:a,strokeWidth:r}}var va=["id"],fa=["type","layout","connectNulls","needClip","shape"],ma=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},X.apply(null,arguments)}function Fe(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(a),!0).forEach(function(r){ha(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function ha(t,e,a){return(e=ya(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ya(t){var e=xa(t,"string");return typeof e=="symbol"?e:e+""}function xa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(t,e){if(t==null)return{};var a,r,n=ga(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ga(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}var ba=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:r,value:ue(a,e),payload:t}]},Pa=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:r,unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})}),At=(t,e)=>"".concat(e,"px ").concat(t,"px");function Aa(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Ia=(t,e,a)=>{var r=a.reduce((v,f)=>v+f,0);if(!r)return At(e,t);for(var n=Math.floor(t/r),i=t%r,l=[],o=0,s=0;o<a.length;s+=(u=a[o])!==null&&u!==void 0?u:0,++o){var u,d=a[o];if(d!=null&&s+d>i){l=[...a.slice(0,o),i-s];break}}var p=l.length%2===0?[0,e]:[e];return[...Aa(a,n),...l,...p].map(v=>"".concat(v,"px")).join(", ")};function Ea(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:i,needClip:l}=r,{id:o}=r,s=De(r,va),u=ne(s);return c.createElement(ht,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:u,needClip:l,clipPathId:e})}function ka(t){var{showLabels:e,children:a,points:r}=t,n=c.useMemo(()=>r?.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return T(T({},s),{},{value:i.value,payload:i.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return c.createElement(ut,{value:e?n:void 0},a)}function ze(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:i}=t,{type:l,layout:o,connectNulls:s,needClip:u,shape:d}=i,p=De(i,fa),v=T(T({},dt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:o,connectNulls:s,strokeDasharray:n??i.strokeDasharray});return c.createElement(c.Fragment,null,r?.length>1&&c.createElement(Wt,X({shapeType:"curve",option:d},v,{pathRef:a})),c.createElement(Ea,{points:r,clipPathId:e,props:i}))}function ja(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function Oa(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:i}=t,{points:l,strokeDasharray:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,animateNewValues:v,width:f,height:m,onAnimationEnd:x,onAnimationStart:P}=a,h=n.current,y=lt(l,"recharts-line-"),g=c.useRef(y),[b,I]=c.useState(!1),E=!b,k=c.useCallback(()=>{typeof x=="function"&&x(),I(!1)},[x]),j=c.useCallback(()=>{typeof P=="function"&&P(),I(!0)},[P]),S=ja(r.current),D=c.useRef(0);g.current!==y&&(D.current=i.current,g.current=y);var w=D.current;return c.createElement(ka,{points:l,showLabels:E},a.children,c.createElement(st,{animationId:y,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:k,onAnimationStart:j,key:y},O=>{var L=M(w,S+w,O),_=Math.min(L,S),N;if(s)if(o){var z="".concat(o).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Ia(_,S,z)}else N=At(S,_);else N=o==null?void 0:String(o);if(O>0&&S>0&&(n.current=l,i.current=Math.max(i.current,_)),h){var G=h.length/l.length,Te=O===1?l:l.map((C,_t)=>{var Ke=Math.floor(_t*G);if(h[Ke]){var $e=h[Ke];return T(T({},C),{},{x:M($e.x,C.x,O),y:M($e.y,C.y,O)})}return v?T(T({},C),{},{x:M(f*2,C.x,O),y:M(m/2,C.y,O)}):T(T({},C),{},{x:C.x,y:C.y})});return n.current=Te,c.createElement(ze,{props:a,points:Te,clipPathId:e,pathRef:r,strokeDasharray:N})}return c.createElement(ze,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),c.createElement(ct,{label:a.label}))}function Sa(t){var{clipPathId:e,props:a}=t,r=c.useRef(null),n=c.useRef(0),i=c.useRef(null);return c.createElement(Oa,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:i})}var wa=(t,e)=>{var a,r;return{x:(a=t.x)!==null&&a!==void 0?a:void 0,y:(r=t.y)!==null&&r!==void 0?r:void 0,value:t.value,errorVal:Z(t.payload,e)}};class Da extends c.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:i,yAxisId:l,top:o,left:s,width:u,height:d,id:p,needClip:v,zIndex:f}=this.props;if(e)return null;var m=re("recharts-line",n),x=p,{r:P,strokeWidth:h}=Pt(a),y=ge(a),g=P*2+h,b=v?"url(#clipPath-".concat(y?"":"dots-").concat(x,")"):void 0;return c.createElement(oe,{zIndex:f},c.createElement(W,{className:m},v&&c.createElement("defs",null,c.createElement(ot,{clipPathId:x,xAxisId:i,yAxisId:l}),!y&&c.createElement("clipPath",{id:"clipPath-dots-".concat(x)},c.createElement("rect",{x:s-g/2,y:o-g/2,width:u+g,height:d+g}))),c.createElement($t,{xAxisId:i,yAxisId:l,data:r,dataPointFormatter:wa,errorBarOffset:0},c.createElement(Sa,{props:this.props,clipPathId:x}))),c.createElement(ye,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}var It={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ie.line,type:"linear"};function La(t){var e=Ae(t,It),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,connectNulls:o,dot:s,hide:u,isAnimationActive:d,label:p,legendType:v,xAxisId:f,yAxisId:m,id:x}=e,P=De(e,ma),{needClip:h}=rt(f,m),y=nt(),g=it(),b=ce(),I=be(D=>pa(D,f,m,b,x));if(g!=="horizontal"&&g!=="vertical"||I==null||y==null)return null;var{height:E,width:k,x:j,y:S}=y;return c.createElement(Da,X({},P,{id:x,connectNulls:o,dot:s,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,isAnimationActive:d,hide:u,label:p,legendType:v,xAxisId:f,yAxisId:m,points:I,layout:g,height:E,width:k,left:j,top:S,needClip:h}))}function Na(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=t;return s.map((u,d)=>{var p=Z(u,l);if(e==="horizontal"){var v=J({axis:a,ticks:n,bandSize:o,entry:u,index:d}),f=U(p)?null:r.scale.map(p);return{x:v,y:f??null,value:p,payload:u}}var m=U(p)?null:a.scale.map(p),x=J({axis:r,ticks:i,bandSize:o,entry:u,index:d});return m==null||x==null?null:{x:m,y:x,value:p,payload:u}}).filter(Boolean)}function _a(t){var e=Ae(t,It),a=ce();return c.createElement(Je,{id:e.id,type:"line"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:ba(e)}),c.createElement(Pa,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),c.createElement(La,X({},e,{id:r}))))}var xe=c.memo(_a,Ze);xe.displayName="Line";var Et=(t,e,a)=>le(t,"xAxis",Ie(t,e),a),kt=(t,e,a)=>se(t,"xAxis",Ie(t,e),a),jt=(t,e,a)=>le(t,"yAxis",Ee(t,e),a),Ot=(t,e,a)=>se(t,"yAxis",Ee(t,e),a),Ca=F([H,Et,jt,kt,Ot],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),Ma=(t,e)=>e,St=F([qe,Ma],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),wt=t=>{var e=H(t),a=Pe(e,"xAxis");return a?"yAxis":"xAxis"},Ta=(t,e)=>{var a=wt(t);return a==="yAxis"?Ee(t,e):Ie(t,e)},Ka=(t,e,a)=>Bt(t,wt(t),Ta(t,e),a),$a=F([St,Ka],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=zt(t);if(!(r==null||n==null)){var i=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=i?.find(o=>o.key===n);if(l!=null)return l.map(o=>[o[0],o[1]])}}}),Wa=F([H,Et,jt,kt,Ot,$a,Rt,Ca,St,Ft],(t,e,a,r,n,i,l,o,s,u)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:v}=l;if(!(s==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||o==null)){var{data:f}=s,m;if(f&&f.length>0?m=f:m=d?.slice(p,v+1),m!=null)return ir({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:s,stackedData:i,displayedData:m,chartBaseValue:u,bandSize:o})}}),Ra=["id"],Fa=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function $(){return $=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},$.apply(null,arguments)}function Dt(t,e){if(t==null)return{};var a,r,n=za(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function za(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function Be(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function B(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(a),!0).forEach(function(r){Ba(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ba(t,e,a){return(e=Va(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Va(t){var e=Ga(t,"string");return typeof e=="symbol"?e:e+""}function Ga(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t,e){return t&&t!=="none"?t:e}var Xa=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:i,hide:l}=t;return[{inactive:l,dataKey:e,type:i,color:te(r,n),value:ue(a,e),payload:t}]},Ya=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:te(r,i),unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})});function Ha(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:i,dataKey:l}=r,o=ne(r);return c.createElement(ht,{points:a,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:o,needClip:n,clipPathId:e})}function Ua(t){var{showLabels:e,children:a,points:r}=t,n=r.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return B(B({},s),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:s,fill:void 0})});return c.createElement(ut,{value:e?n:void 0},a)}function Ve(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:i}=t,{layout:l,type:o,stroke:s,connectNulls:u,isRange:d}=i,{id:p}=i,v=Dt(i,Ra),f=ne(v),m=dt(v);return c.createElement(c.Fragment,null,e?.length>1&&c.createElement(W,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},c.createElement(pe,$({},m,{id:p,points:e,connectNulls:u,type:o,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&c.createElement(pe,$({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:e})),s!=="none"&&d&&Array.isArray(a)&&c.createElement(pe,$({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:a}))),c.createElement(Ha,{points:e,props:v,clipPathId:n}))}function qa(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.y,s=(a=i[i.length-1])===null||a===void 0?void 0:a.y;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.x||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.x||0),d)),K(d)?c.createElement("rect",{x:0,y:o<s?o:o-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function Za(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.x,s=(a=i[i.length-1])===null||a===void 0?void 0:a.x;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.y||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.y||0),d)),K(d)?c.createElement("rect",{x:o<s?o:o-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function Ja(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:i}=t;return a==="vertical"?c.createElement(qa,{alpha:e,points:r,baseLine:n,strokeWidth:i}):c.createElement(Za,{alpha:e,points:r,baseLine:n,strokeWidth:i})}function Qa(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i}=t,{points:l,baseLine:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,onAnimationStart:v,onAnimationEnd:f}=r,m=c.useMemo(()=>({points:l,baseLine:o}),[l,o]),x=lt(m,"recharts-area-"),P=Xt(),[h,y]=c.useState(!1),g=!h,b=c.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),I=c.useCallback(()=>{typeof v=="function"&&v(),y(!0)},[v]);if(P==null)return null;var E=n.current,k=i.current;return c.createElement(Ua,{showLabels:g,points:l},r.children,c.createElement(st,{animationId:x,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:b,onAnimationStart:I,key:x},j=>{if(E){var S=E.length/l.length,D=j===1?l:l.map((O,L)=>{var _=Math.floor(L*S);if(E[_]){var N=E[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),w;return K(o)?w=M(k,o,j):U(o)||Yt(o)?w=M(k,0,j):w=o.map((O,L)=>{var _=Math.floor(L*S);if(Array.isArray(k)&&k[_]){var N=k[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),j>0&&(n.current=D,i.current=w),c.createElement(Ve,{points:D,baseLine:w,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,i.current=o),c.createElement(W,null,s&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(a)},c.createElement(Ja,{alpha:j,points:l,baseLine:o,layout:P,strokeWidth:r.strokeWidth}))),c.createElement(W,{clipPath:"url(#animationClipPath-".concat(a,")")},c.createElement(Ve,{points:l,baseLine:o,needClip:e,clipPathId:a,props:r})))}),c.createElement(ct,{label:r.label}))}function er(t){var{needClip:e,clipPathId:a,props:r}=t,n=c.useRef(null),i=c.useRef();return c.createElement(Qa,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i})}class tr extends c.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:i,left:l,needClip:o,xAxisId:s,yAxisId:u,width:d,height:p,id:v,baseLine:f,zIndex:m}=this.props;if(e)return null;var x=re("recharts-area",n),P=v,{r:h,strokeWidth:y}=Pt(a),g=ge(a),b=h*2+y,I=o?"url(#clipPath-".concat(g?"":"dots-").concat(P,")"):void 0;return c.createElement(oe,{zIndex:m},c.createElement(W,{className:x},o&&c.createElement("defs",null,c.createElement(ot,{clipPathId:P,xAxisId:s,yAxisId:u}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(P)},c.createElement("rect",{x:l-b/2,y:i-b/2,width:d+b,height:p+b}))),c.createElement(er,{needClip:o,clipPathId:P,props:this.props})),c.createElement(ye,{points:r,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(f)&&c.createElement(ye,{points:f,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var ar={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ie.area};function rr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,connectNulls:l,dot:o,fill:s,fillOpacity:u,hide:d,isAnimationActive:p,legendType:v,stroke:f,xAxisId:m,yAxisId:x}=t,P=Dt(t,Fa),h=it(),y=Gt(),{needClip:g}=rt(m,x),b=ce(),{points:I,isRange:E,baseLine:k}=(e=be(L=>Wa(L,t.id,b)))!==null&&e!==void 0?e:{},j=nt();if(h!=="horizontal"&&h!=="vertical"||j==null||y!=="AreaChart"&&y!=="ComposedChart")return null;var{height:S,width:D,x:w,y:O}=j;return!I||!I.length?null:c.createElement(tr,$({},P,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,baseLine:k,connectNulls:l,dot:o,fill:s,fillOpacity:u,height:S,hide:d,layout:h,isAnimationActive:p,isRange:E,legendType:v,needClip:g,points:I,stroke:f,width:D,left:w,top:O,xAxisId:m,yAxisId:x}))}var nr=(t,e,a,r,n)=>{var i=a??e;if(K(i))return i;var l=t==="horizontal"?n:r,o=l.scale.domain();if(l.type==="number"){var s=Math.max(o[0],o[1]),u=Math.min(o[0],o[1]);return i==="dataMin"?u:i==="dataMax"||s<0?s:Math.max(Math.min(o[0],o[1]),0)}return i==="dataMin"?o[0]:i==="dataMax"?o[1]:o[0]};function ir(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:i,chartBaseValue:l,xAxis:o,yAxis:s,displayedData:u,dataStartIndex:d,xAxisTicks:p,yAxisTicks:v,bandSize:f}=t,m=n&&n.length,x=nr(i,l,a,o,s),P=i==="horizontal",h=!1,y=u.map((b,I)=>{var E,k,j,S;if(m)S=n[d+I];else{var D=Z(b,r);Array.isArray(D)?(S=D,h=!0):S=[x,D]}var w=(E=(k=S)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,O=w==null||m&&!e&&Z(b,r)==null;if(P){var L;return{x:J({axis:o,ticks:p,bandSize:f,entry:b,index:I}),y:O?null:(L=s.scale.map(w))!==null&&L!==void 0?L:null,value:S,payload:b}}return{x:O?null:(j=o.scale.map(w))!==null&&j!==void 0?j:null,y:J({axis:s,ticks:v,bandSize:f,entry:b,index:I}),value:S,payload:b}}),g;return m||h?g=y.map(b=>{var I,E=Array.isArray(b.value)?b.value[0]:null;if(P){var k;return{x:b.x,y:E!=null&&b.y!=null&&(k=s.scale.map(E))!==null&&k!==void 0?k:null,payload:b.payload}}return{x:E!=null&&(I=o.scale.map(E))!==null&&I!==void 0?I:null,y:b.y,payload:b.payload}}):g=P?s.scale.map(x):o.scale.map(x),{points:y,baseLine:g??0,isRange:h}}function or(t){var e=Ae(t,ar),a=ce();return c.createElement(Je,{id:e.id,type:"area"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:Xa(e)}),c.createElement(Ya,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Vt(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),c.createElement(rr,$({},e,{id:r}))))}var Le=c.memo(or,Ze);Le.displayName="Area";var lr=["axis"],sr=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e})),cr=["axis"],Lt=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e}));const ae={count:{label:"OK",color:"var(--ok)"},errors:{label:"5xx",color:"var(--danger)"},client_errors:{label:"4xx",color:"var(--warning)"},p50:{label:"p50",color:"var(--primary)"},p95:{label:"p95",color:"var(--primary)"},p99:{label:"p99",color:"var(--primary)"},avg:{label:"avg",color:"var(--warning)"}};function ur(t){return t.length<2?0:new Date(t[1].t).getTime()-new Date(t[0].t).getTime()}const Ge=1440*60*1e3;function Ne(t){const e=ur(t),a=t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0;return e>=Ge||a>2*Ge?r=>new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}):r=>new Date(r).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Y(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const V={fontSize:10,fontFamily:"var(--font-mono)"};function Xe(t,e,a){return n=>{const i=R.c(8),{cx:l,cy:o,index:s}=n;if(l==null||o==null||s==null){let v;return i[0]!==s?(v=A.jsx("g",{},s),i[0]=s,i[1]=v):v=i[1],v}const u=t[s-1]?.[e]??null,d=t[s+1]?.[e]??null;if(u!=null||d!=null){let v;return i[2]!==s?(v=A.jsx("g",{},s),i[2]=s,i[3]=v):v=i[3],v}let p;return i[4]!==l||i[5]!==o||i[6]!==s?(p=A.jsx("circle",{cx:l,cy:o,r:2,fill:a},s),i[4]=l,i[5]=o,i[6]=s,i[7]=p):p=i[7],p}}function _e(t=[]){return t.map(e=>A.jsx(Ht,{x:new Date(e.at).toISOString(),stroke:"var(--primary)",strokeDasharray:"3 3",label:{value:e.ref,position:"insideTopRight",fontSize:9,fill:"var(--primary)",fontFamily:"var(--font-mono)"}},e.deploy))}function Ce(){const t=R.c(2),{setHoveredKey:e}=Ye();let a;return t[0]!==e?(a={onMouseMove:r=>{typeof r?.activeLabel=="string"&&e(r.activeLabel)},onMouseLeave:()=>e(null)},t[0]=e,t[1]=a):a=t[1],a}function Me(t){const e=R.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=Y(a[0].t),e[0]=a[0].t,e[1]=r):r=e[1];let n;e[2]!==r?(n=A.jsx("span",{children:r}),e[2]=r,e[3]=n):n=e[3];const i=a[a.length-1];let l;e[4]!==i.t?(l=Y(i.t),e[4]=i.t,e[5]=l):l=e[5];let o;e[6]!==l?(o=A.jsx("span",{children:l}),e[6]=l,e[7]=o):o=e[7];let s;return e[8]!==n||e[9]!==o?(s=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,o]}),e[8]=n,e[9]=o,e[10]=s):s=e[10],s}function Sr(t){const e=R.c(31),{data:a,deploys:r,label:n,className:i}=t,l=n===void 0?"Requests":n,o=i===void 0?"h-40":i;let s;e[0]!==l?(s={...ae,count:{...ae.count,label:l}},e[0]=l,e[1]=s):s=e[1];const u=s,d=Ce();let p;e[2]!==a?(p=Ne(a),e[2]=a,e[3]=p):p=e[3];const v=p,f=`${o} w-full`;let m;e[4]!==a?(m=a.map(vr),e[4]=a,e[5]=m):m=e[5];const x=d.onMouseMove,P=d.onMouseLeave;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[6]=h):h=e[6];let y;e[7]!==v?(y=A.jsx(je,{dataKey:"t",tickFormatter:v,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[7]=v,e[8]=y):y=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:pr}),e[9]=g):g=e[9];let b,I,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=A.jsx(Se,{content:A.jsx(we,{labelFormatter:dr})}),I=A.jsx(ve,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),E=A.jsx(ve,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[10]=b,e[11]=I,e[12]=E):(b=e[10],I=e[11],E=e[12]);let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=A.jsx(ve,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[13]=k):k=e[13];let j;e[14]!==r?(j=_e(r),e[14]=r,e[15]=j):j=e[15];let S;e[16]!==d.onMouseLeave||e[17]!==d.onMouseMove||e[18]!==y||e[19]!==j||e[20]!==m?(S=A.jsxs(Ut,{data:m,barCategoryGap:2,onMouseMove:x,onMouseLeave:P,children:[h,y,g,b,I,E,k,j]}),e[16]=d.onMouseLeave,e[17]=d.onMouseMove,e[18]=y,e[19]=j,e[20]=m,e[21]=S):S=e[21];let D;e[22]!==u||e[23]!==S||e[24]!==f?(D=A.jsx(de,{config:u,className:f,children:S}),e[22]=u,e[23]=S,e[24]=f,e[25]=D):D=e[25];let w;e[26]!==a?(w=A.jsx(Me,{data:a}),e[26]=a,e[27]=w):w=e[27];let O;return e[28]!==D||e[29]!==w?(O=A.jsxs("div",{children:[D,w]}),e[28]=D,e[29]=w,e[30]=O):O=e[30],O}function dr(t){return Y(String(t))}function pr(t){return Nt(Number(t))}function vr(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const fr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function wr(t){const e=R.c(27),{data:a,deploys:r,className:n}=t,i=n===void 0?"h-40":n,l=Ce();let o;e[0]!==a?(o=Ne(a),e[0]=a,e[1]=o):o=e[1];const s=o,u=`${i} w-full`;let d;e[2]!==a?(d=a.map(xr),e[2]=a,e[3]=d):d=e[3];const p=l.onMouseMove,v=l.onMouseLeave;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[4]=f):f=e[4];let m;e[5]!==s?(m=A.jsx(je,{dataKey:"t",tickFormatter:s,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[5]=s,e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:yr}),e[7]=x):x=e[7];let P,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Se,{content:A.jsx(we,{labelFormatter:hr})}),h=["ok","errored","crashed"],e[8]=P,e[9]=h):(P=e[8],h=e[9]);let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=h.map(mr),e[10]=y):y=e[10];let g;e[11]!==r?(g=_e(r),e[11]=r,e[12]=g):g=e[12];let b;e[13]!==l.onMouseLeave||e[14]!==l.onMouseMove||e[15]!==g||e[16]!==d||e[17]!==m?(b=A.jsxs(Lt,{data:d,onMouseMove:p,onMouseLeave:v,children:[f,m,x,P,y,g]}),e[13]=l.onMouseLeave,e[14]=l.onMouseMove,e[15]=g,e[16]=d,e[17]=m,e[18]=b):b=e[18];let I;e[19]!==b||e[20]!==u?(I=A.jsx(de,{config:fr,className:u,children:b}),e[19]=b,e[20]=u,e[21]=I):I=e[21];let E;e[22]!==a?(E=A.jsx(Me,{data:a}),e[22]=a,e[23]=E):E=e[23];let k;return e[24]!==I||e[25]!==E?(k=A.jsxs("div",{children:[I,E]}),e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function mr(t){return A.jsx(Le,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function hr(t){return Y(String(t))}function yr(t){return Nt(Number(t))}function xr(t){return{...t,t:new Date(t.t).toISOString()}}function Dr(t){const e=R.c(58),{data:a,deploys:r,percentile:n,className:i}=t,l=n===void 0?"p95":n,o=i===void 0?"h-40":i,s=Ce();let u;e[0]!==a?(u=Ne(a),e[0]=a,e[1]=u):u=e[1];const d=u;let p,v,f,m,x,P,h,y,g,b,I,E,k,j,S,D;if(e[2]!==o||e[3]!==a||e[4]!==s.onMouseLeave||e[5]!==s.onMouseMove||e[6]!==l||e[7]!==d){const G=a.map(Ar);f=de,g=ae,b=`${o} w-full`,v=sr,j=G,S=s.onMouseMove,D=s.onMouseLeave,e[24]===Symbol.for("react.memo_cache_sentinel")?(m=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[24]=m):m=e[24],e[25]!==d?(x=A.jsx(je,{dataKey:"t",tickFormatter:d,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[25]=d,e[26]=x):x=e[26],e[27]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oe,{width:44,tickLine:!1,axisLine:!1,tick:V,tickFormatter:Pr}),e[27]=P):P=e[27],e[28]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(Se,{content:A.jsx(we,{labelFormatter:br,formatter:gr})}),e[28]=h):h=e[28],y=A.jsx(xe,{dataKey:l,stroke:`var(--color-${l})`,dot:Xe(G,l,`var(--color-${l})`),strokeWidth:1.75,isAnimationActive:!1}),p=xe,I="avg",E="var(--color-avg)",k=Xe(G,"avg","var(--color-avg)"),e[2]=o,e[3]=a,e[4]=s.onMouseLeave,e[5]=s.onMouseMove,e[6]=l,e[7]=d,e[8]=p,e[9]=v,e[10]=f,e[11]=m,e[12]=x,e[13]=P,e[14]=h,e[15]=y,e[16]=g,e[17]=b,e[18]=I,e[19]=E,e[20]=k,e[21]=j,e[22]=S,e[23]=D}else p=e[8],v=e[9],f=e[10],m=e[11],x=e[12],P=e[13],h=e[14],y=e[15],g=e[16],b=e[17],I=e[18],E=e[19],k=e[20],j=e[21],S=e[22],D=e[23];let w;e[29]!==p||e[30]!==I||e[31]!==E||e[32]!==k?(w=A.jsx(p,{dataKey:I,stroke:E,dot:k,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[29]=p,e[30]=I,e[31]=E,e[32]=k,e[33]=w):w=e[33];let O;e[34]!==r?(O=_e(r),e[34]=r,e[35]=O):O=e[35];let L;e[36]!==v||e[37]!==m||e[38]!==x||e[39]!==P||e[40]!==h||e[41]!==y||e[42]!==w||e[43]!==O||e[44]!==j||e[45]!==S||e[46]!==D?(L=A.jsxs(v,{data:j,onMouseMove:S,onMouseLeave:D,children:[m,x,P,h,y,w,O]}),e[36]=v,e[37]=m,e[38]=x,e[39]=P,e[40]=h,e[41]=y,e[42]=w,e[43]=O,e[44]=j,e[45]=S,e[46]=D,e[47]=L):L=e[47];let _;e[48]!==f||e[49]!==g||e[50]!==b||e[51]!==L?(_=A.jsx(f,{config:g,className:b,children:L}),e[48]=f,e[49]=g,e[50]=b,e[51]=L,e[52]=_):_=e[52];let N;e[53]!==a?(N=A.jsx(Me,{data:a}),e[53]=a,e[54]=N):N=e[54];let z;return e[55]!==_||e[56]!==N?(z=A.jsxs("div",{children:[_,N]}),e[55]=_,e[56]=N,e[57]=z):z=e[57],z}function gr(t,e){return[t==null?"—":ft(Number(t)),String(e)]}function br(t){return Y(String(t))}function Pr(t){return ft(Number(t),0)}function Ar(t){return{...t,t:new Date(t.t).toISOString()}}function Lr(t){const e=R.c(22),{data:a,className:r,hoverKey:n}=t,i=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:o}=Ye(),s=n!=null&&l===n;let u;e[0]!==a?(u=a.map(Ir),e[0]=a,e[1]=u):u=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={top:1,right:1,bottom:1,left:1},e[2]=d):d=e[2];let p;e[3]!==n||e[4]!==o?(p=n?()=>o(n):void 0,e[3]=n,e[4]=o,e[5]=p):p=e[5];let v;e[6]!==n||e[7]!==o?(v=n?()=>o(null):void 0,e[6]=n,e[7]=o,e[8]=v):v=e[8];const f=s?"var(--primary)":"var(--muted-foreground)",m=s?"var(--primary)":"var(--muted-foreground)",x=s?.35:.15,P=s?2:1.25;let h;e[9]!==f||e[10]!==m||e[11]!==x||e[12]!==P?(h=A.jsx(Le,{dataKey:"v",stroke:f,fill:m,fillOpacity:x,strokeWidth:P,isAnimationActive:!1}),e[9]=f,e[10]=m,e[11]=x,e[12]=P,e[13]=h):h=e[13];let y;e[14]!==h||e[15]!==u||e[16]!==p||e[17]!==v?(y=A.jsx(Lt,{data:u,margin:d,onMouseEnter:p,onMouseLeave:v,children:h}),e[14]=h,e[15]=u,e[16]=p,e[17]=v,e[18]=y):y=e[18];let g;return e[19]!==i||e[20]!==y?(g=A.jsx(de,{config:ae,className:i,children:y}),e[19]=i,e[20]=y,e[21]=g):g=e[21],g}function Ir(t){return{v:t}}function Nt(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{Le as A,Dr as L,Lr as S,Sr as T,Lt as a,wr as b};
1
+ import{V as re,r as c,c as R,j as A}from"./inertia-b7M33AzA.js";import{u as Ye}from"./chart-hover-B5cFOZ24.js";import{i as K,e as He,s as ne,D as ie,f as ge,g as Ct,Z as oe,L as W,u as be,h as Mt,j as Tt,k as U,l as Ue,m as F,n as H,o as Kt,p as le,q as se,r as qe,t as Pe,v as q,w as Ze,x as Ae,y as ce,z as Je,S as Qe,A as et,E as ue,F as tt,G as at,H as rt,I as nt,J as it,K as ot,M as $t,N as Z,O as J,P as lt,Q as st,T as M,U as ct,V as ut,W as dt,_ as Wt,$ as Rt,a0 as Ft,a1 as Ie,a2 as Ee,a3 as zt,a4 as Bt,a5 as Vt,a6 as Gt,a7 as Xt,a8 as Yt,a9 as pe,aa as Q,ab as pt,ac as vt,R as Ht,C as ke,X as je,Y as Oe,a as Se,b as we,c as de,B as ve,d as Ut}from"./chart-CD6EHDjG.js";import{m as ft}from"./format-B9SDkrWj.js";function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},he.apply(null,arguments)}var mt=t=>{var{cx:e,cy:a,r,className:n}=t,i=re("recharts-dot",n);return K(e)&&K(a)&&K(r)?c.createElement("circle",he({},ne(t),He(t),{className:i,cx:e,cy:a,r})):null},qt=["points"];function We(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function fe(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?We(Object(a),!0).forEach(function(r){Zt(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):We(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Zt(t,e,a){return(e=Jt(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Jt(t){var e=Qt(t,"string");return typeof e=="symbol"?e:e+""}function Qt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},ee.apply(null,arguments)}function ea(t,e){if(t==null)return{};var a,r,n=ta(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ta(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function aa(t){var{option:e,dotProps:a,className:r}=t;if(c.isValidElement(e))return c.cloneElement(e,a);if(typeof e=="function")return e(a);var n=re(r,typeof e!="boolean"?e.className:""),i=a??{},{points:l}=i,o=ea(i,qt);return c.createElement(mt,ee({},o,{className:n}))}function ra(t,e){return t==null?!1:e?!0:t.length===1}function ht(t){var{points:e,dot:a,className:r,dotClassName:n,dataKey:i,baseProps:l,needClip:o,clipPathId:s,zIndex:u=ie.scatter}=t;if(!ra(e,a))return null;var d=ge(a),p=Ct(a),v=e.map((m,x)=>{var P,h,y=fe(fe(fe({r:3},l),p),{},{index:x,cx:(P=m.x)!==null&&P!==void 0?P:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:i,value:m.value,payload:m.payload,points:e});return c.createElement(aa,{key:"dot-".concat(x),option:a,dotProps:y,className:n})}),f={};return o&&s!=null&&(f.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(s,")")),c.createElement(oe,{zIndex:u},c.createElement(W,ee({className:r},f),v))}function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function me(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(a),!0).forEach(function(r){na(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function na(t,e,a){return(e=ia(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ia(t){var e=oa(t,"string");return typeof e=="symbol"?e:e+""}function oa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var la=t=>{var{point:e,childIndex:a,mainColor:r,activeDot:n,dataKey:i,clipPath:l}=t;if(n===!1||e.x==null||e.y==null)return null;var o={index:a,dataKey:i,cx:e.x,cy:e.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:e.payload,value:e.value},s=me(me(me({},o),Ue(n)),He(n)),u;return c.isValidElement(n)?u=c.cloneElement(n,s):typeof n=="function"?u=n(s):u=c.createElement(mt,s),c.createElement(W,{className:"recharts-active-dot",clipPath:l},u)};function ye(t){var{points:e,mainColor:a,activeDot:r,itemDataKey:n,clipPath:i,zIndex:l=ie.activeDot}=t,o=be(Mt),s=Tt();if(e==null||s==null)return null;var u=e.find(d=>s.includes(d.payload));return U(u)?null:c.createElement(oe,{zIndex:l},c.createElement(la,{point:u,childIndex:Number(o),mainColor:a,dataKey:n,activeDot:r,clipPath:i}))}var yt=(t,e,a,r)=>le(t,"xAxis",e,r),xt=(t,e,a,r)=>se(t,"xAxis",e,r),gt=(t,e,a,r)=>le(t,"yAxis",a,r),bt=(t,e,a,r)=>se(t,"yAxis",a,r),sa=F([H,yt,gt,xt,bt],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),ca=(t,e,a,r,n)=>n;function ua(t){return t.type==="line"}var da=F([qe,ca],(t,e)=>t.filter(ua).find(a=>a.id===e)),pa=F([H,yt,gt,xt,bt,da,sa,Kt],(t,e,a,r,n,i,l,o)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:d}=o;if(!(i==null||e==null||a==null||r==null||n==null||r.length===0||n.length===0||l==null||t!=="horizontal"&&t!=="vertical")){var{dataKey:p,data:v}=i,f;if(v!=null&&v.length>0?f=v:f=s?.slice(u,d+1),f!=null)return Na({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataKey:p,bandSize:l,displayedData:f})}});function Pt(t){var e=Ue(t),a=3,r=2;if(e!=null){var{r:n,strokeWidth:i}=e,l=Number(n),o=Number(i);return(Number.isNaN(l)||l<0)&&(l=a),(Number.isNaN(o)||o<0)&&(o=r),{r:l,strokeWidth:o}}return{r:a,strokeWidth:r}}var va=["id"],fa=["type","layout","connectNulls","needClip","shape"],ma=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},X.apply(null,arguments)}function Fe(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(a),!0).forEach(function(r){ha(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function ha(t,e,a){return(e=ya(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ya(t){var e=xa(t,"string");return typeof e=="symbol"?e:e+""}function xa(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function De(t,e){if(t==null)return{};var a,r,n=ga(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ga(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}var ba=t=>{var{dataKey:e,name:a,stroke:r,legendType:n,hide:i}=t;return[{inactive:i,dataKey:e,type:n,color:r,value:ue(a,e),payload:t}]},Pa=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:r,unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})}),At=(t,e)=>"".concat(e,"px ").concat(t,"px");function Aa(t,e){for(var a=t.length%2!==0?[...t,0]:t,r=[],n=0;n<e;++n)r.push(...a);return r}var Ia=(t,e,a)=>{var r=a.reduce((v,f)=>v+f,0);if(!r)return At(e,t);for(var n=Math.floor(t/r),i=t%r,l=[],o=0,s=0;o<a.length;s+=(u=a[o])!==null&&u!==void 0?u:0,++o){var u,d=a[o];if(d!=null&&s+d>i){l=[...a.slice(0,o),i-s];break}}var p=l.length%2===0?[0,e]:[e];return[...Aa(a,n),...l,...p].map(v=>"".concat(v,"px")).join(", ")};function Ea(t){var{clipPathId:e,points:a,props:r}=t,{dot:n,dataKey:i,needClip:l}=r,{id:o}=r,s=De(r,va),u=ne(s);return c.createElement(ht,{points:a,dot:n,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:u,needClip:l,clipPathId:e})}function ka(t){var{showLabels:e,children:a,points:r}=t,n=c.useMemo(()=>r?.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return T(T({},s),{},{value:i.value,payload:i.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[r]);return c.createElement(ut,{value:e?n:void 0},a)}function ze(t){var{clipPathId:e,pathRef:a,points:r,strokeDasharray:n,props:i}=t,{type:l,layout:o,connectNulls:s,needClip:u,shape:d}=i,p=De(i,fa),v=T(T({},dt(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(e,")"):void 0,points:r,type:l,layout:o,connectNulls:s,strokeDasharray:n??i.strokeDasharray});return c.createElement(c.Fragment,null,r?.length>1&&c.createElement(Wt,X({shapeType:"curve",option:d},v,{pathRef:a})),c.createElement(Ea,{points:r,clipPathId:e,props:i}))}function ja(t){try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch{return 0}}function Oa(t){var{clipPathId:e,props:a,pathRef:r,previousPointsRef:n,longestAnimatedLengthRef:i}=t,{points:l,strokeDasharray:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,animateNewValues:v,width:f,height:m,onAnimationEnd:x,onAnimationStart:P}=a,h=n.current,y=lt(l,"recharts-line-"),g=c.useRef(y),[b,I]=c.useState(!1),E=!b,k=c.useCallback(()=>{typeof x=="function"&&x(),I(!1)},[x]),j=c.useCallback(()=>{typeof P=="function"&&P(),I(!0)},[P]),S=ja(r.current),D=c.useRef(0);g.current!==y&&(D.current=i.current,g.current=y);var w=D.current;return c.createElement(ka,{points:l,showLabels:E},a.children,c.createElement(st,{animationId:y,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:k,onAnimationStart:j,key:y},O=>{var L=M(w,S+w,O),_=Math.min(L,S),N;if(s)if(o){var z="".concat(o).split(/[,\s]+/gim).map(C=>parseFloat(C));N=Ia(_,S,z)}else N=At(S,_);else N=o==null?void 0:String(o);if(O>0&&S>0&&(n.current=l,i.current=Math.max(i.current,_)),h){var G=h.length/l.length,Te=O===1?l:l.map((C,_t)=>{var Ke=Math.floor(_t*G);if(h[Ke]){var $e=h[Ke];return T(T({},C),{},{x:M($e.x,C.x,O),y:M($e.y,C.y,O)})}return v?T(T({},C),{},{x:M(f*2,C.x,O),y:M(m/2,C.y,O)}):T(T({},C),{},{x:C.x,y:C.y})});return n.current=Te,c.createElement(ze,{props:a,points:Te,clipPathId:e,pathRef:r,strokeDasharray:N})}return c.createElement(ze,{props:a,points:l,clipPathId:e,pathRef:r,strokeDasharray:N})}),c.createElement(ct,{label:a.label}))}function Sa(t){var{clipPathId:e,props:a}=t,r=c.useRef(null),n=c.useRef(0),i=c.useRef(null);return c.createElement(Oa,{props:a,clipPathId:e,previousPointsRef:r,longestAnimatedLengthRef:n,pathRef:i})}var wa=(t,e)=>{var a,r;return{x:(a=t.x)!==null&&a!==void 0?a:void 0,y:(r=t.y)!==null&&r!==void 0?r:void 0,value:t.value,errorVal:Z(t.payload,e)}};class Da extends c.Component{render(){var{hide:e,dot:a,points:r,className:n,xAxisId:i,yAxisId:l,top:o,left:s,width:u,height:d,id:p,needClip:v,zIndex:f}=this.props;if(e)return null;var m=re("recharts-line",n),x=p,{r:P,strokeWidth:h}=Pt(a),y=ge(a),g=P*2+h,b=v?"url(#clipPath-".concat(y?"":"dots-").concat(x,")"):void 0;return c.createElement(oe,{zIndex:f},c.createElement(W,{className:m},v&&c.createElement("defs",null,c.createElement(ot,{clipPathId:x,xAxisId:i,yAxisId:l}),!y&&c.createElement("clipPath",{id:"clipPath-dots-".concat(x)},c.createElement("rect",{x:s-g/2,y:o-g/2,width:u+g,height:d+g}))),c.createElement($t,{xAxisId:i,yAxisId:l,data:r,dataPointFormatter:wa,errorBarOffset:0},c.createElement(Sa,{props:this.props,clipPathId:x}))),c.createElement(ye,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}var It={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ie.line,type:"linear"};function La(t){var e=Ae(t,It),{activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,connectNulls:o,dot:s,hide:u,isAnimationActive:d,label:p,legendType:v,xAxisId:f,yAxisId:m,id:x}=e,P=De(e,ma),{needClip:h}=rt(f,m),y=nt(),g=it(),b=ce(),I=be(D=>pa(D,f,m,b,x));if(g!=="horizontal"&&g!=="vertical"||I==null||y==null)return null;var{height:E,width:k,x:j,y:S}=y;return c.createElement(Da,X({},P,{id:x,connectNulls:o,dot:s,activeDot:a,animateNewValues:r,animationBegin:n,animationDuration:i,animationEasing:l,isAnimationActive:d,hide:u,label:p,legendType:v,xAxisId:f,yAxisId:m,points:I,layout:g,height:E,width:k,left:j,top:S,needClip:h}))}function Na(t){var{layout:e,xAxis:a,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:s}=t;return s.map((u,d)=>{var p=Z(u,l);if(e==="horizontal"){var v=J({axis:a,ticks:n,bandSize:o,entry:u,index:d}),f=U(p)?null:r.scale.map(p);return{x:v,y:f??null,value:p,payload:u}}var m=U(p)?null:a.scale.map(p),x=J({axis:r,ticks:i,bandSize:o,entry:u,index:d});return m==null||x==null?null:{x:m,y:x,value:p,payload:u}}).filter(Boolean)}function _a(t){var e=Ae(t,It),a=ce();return c.createElement(Je,{id:e.id,type:"line"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:ba(e)}),c.createElement(Pa,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"line",id:r,data:e.data,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,dataKey:e.dataKey,hide:e.hide,isPanorama:a}),c.createElement(La,X({},e,{id:r}))))}var xe=c.memo(_a,Ze);xe.displayName="Line";var Et=(t,e,a)=>le(t,"xAxis",Ie(t,e),a),kt=(t,e,a)=>se(t,"xAxis",Ie(t,e),a),jt=(t,e,a)=>le(t,"yAxis",Ee(t,e),a),Ot=(t,e,a)=>se(t,"yAxis",Ee(t,e),a),Ca=F([H,Et,jt,kt,Ot],(t,e,a,r,n)=>Pe(t,"xAxis")?q(e,r,!1):q(a,n,!1)),Ma=(t,e)=>e,St=F([qe,Ma],(t,e)=>t.filter(a=>a.type==="area").find(a=>a.id===e)),wt=t=>{var e=H(t),a=Pe(e,"xAxis");return a?"yAxis":"xAxis"},Ta=(t,e)=>{var a=wt(t);return a==="yAxis"?Ee(t,e):Ie(t,e)},Ka=(t,e,a)=>Bt(t,wt(t),Ta(t,e),a),$a=F([St,Ka],(t,e)=>{var a;if(!(t==null||e==null)){var{stackId:r}=t,n=zt(t);if(!(r==null||n==null)){var i=(a=e[r])===null||a===void 0?void 0:a.stackedData,l=i?.find(o=>o.key===n);if(l!=null)return l.map(o=>[o[0],o[1]])}}}),Wa=F([H,Et,jt,kt,Ot,$a,Rt,Ca,St,Ft],(t,e,a,r,n,i,l,o,s,u)=>{var{chartData:d,dataStartIndex:p,dataEndIndex:v}=l;if(!(s==null||t!=="horizontal"&&t!=="vertical"||e==null||a==null||r==null||n==null||r.length===0||n.length===0||o==null)){var{data:f}=s,m;if(f&&f.length>0?m=f:m=d?.slice(p,v+1),m!=null)return ir({layout:t,xAxis:e,yAxis:a,xAxisTicks:r,yAxisTicks:n,dataStartIndex:p,areaSettings:s,stackedData:i,displayedData:m,chartBaseValue:u,bandSize:o})}}),Ra=["id"],Fa=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function $(){return $=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)({}).hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},$.apply(null,arguments)}function Dt(t,e){if(t==null)return{};var a,r,n=za(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function za(t,e){if(t==null)return{};var a={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;a[r]=t[r]}return a}function Be(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,r)}return a}function B(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(a),!0).forEach(function(r){Ba(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ba(t,e,a){return(e=Va(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Va(t){var e=Ga(t,"string");return typeof e=="symbol"?e:e+""}function Ga(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function te(t,e){return t&&t!=="none"?t:e}var Xa=t=>{var{dataKey:e,name:a,stroke:r,fill:n,legendType:i,hide:l}=t;return[{inactive:l,dataKey:e,type:i,color:te(r,n),value:ue(a,e),payload:t}]},Ya=c.memo(t=>{var{dataKey:e,data:a,stroke:r,strokeWidth:n,fill:i,name:l,hide:o,unit:s,tooltipType:u,id:d}=t,p={dataDefinedOnItem:a,getPosition:at,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:e,nameKey:void 0,name:ue(l,e),hide:o,type:u,color:te(r,i),unit:s,graphicalItemId:d}};return c.createElement(tt,{tooltipEntrySettings:p})});function Ha(t){var{clipPathId:e,points:a,props:r}=t,{needClip:n,dot:i,dataKey:l}=r,o=ne(r);return c.createElement(ht,{points:a,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:o,needClip:n,clipPathId:e})}function Ua(t){var{showLabels:e,children:a,points:r}=t,n=r.map(i=>{var l,o,s={x:(l=i.x)!==null&&l!==void 0?l:0,y:(o=i.y)!==null&&o!==void 0?o:0,width:0,lowerWidth:0,upperWidth:0,height:0};return B(B({},s),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:s,fill:void 0})});return c.createElement(ut,{value:e?n:void 0},a)}function Ve(t){var{points:e,baseLine:a,needClip:r,clipPathId:n,props:i}=t,{layout:l,type:o,stroke:s,connectNulls:u,isRange:d}=i,{id:p}=i,v=Dt(i,Ra),f=ne(v),m=dt(v);return c.createElement(c.Fragment,null,e?.length>1&&c.createElement(W,{clipPath:r?"url(#clipPath-".concat(n,")"):void 0},c.createElement(pe,$({},m,{id:p,points:e,connectNulls:u,type:o,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),s!=="none"&&c.createElement(pe,$({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:e})),s!=="none"&&d&&Array.isArray(a)&&c.createElement(pe,$({},f,{className:"recharts-area-curve",layout:l,type:o,connectNulls:u,fill:"none",points:a}))),c.createElement(Ha,{points:e,props:v,clipPathId:n}))}function qa(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.y,s=(a=i[i.length-1])===null||a===void 0?void 0:a.y;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.x||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.x||0),d)),K(d)?c.createElement("rect",{x:0,y:o<s?o:o-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function Za(t){var e,a,{alpha:r,baseLine:n,points:i,strokeWidth:l}=t,o=(e=i[0])===null||e===void 0?void 0:e.x,s=(a=i[i.length-1])===null||a===void 0?void 0:a.x;if(!Q(o)||!Q(s))return null;var u=r*Math.abs(o-s),d=Math.max(...i.map(p=>p.y||0));return K(n)?d=Math.max(n,d):n&&Array.isArray(n)&&n.length&&(d=Math.max(...n.map(p=>p.y||0),d)),K(d)?c.createElement("rect",{x:o<s?o:o-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function Ja(t){var{alpha:e,layout:a,points:r,baseLine:n,strokeWidth:i}=t;return a==="vertical"?c.createElement(qa,{alpha:e,points:r,baseLine:n,strokeWidth:i}):c.createElement(Za,{alpha:e,points:r,baseLine:n,strokeWidth:i})}function Qa(t){var{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i}=t,{points:l,baseLine:o,isAnimationActive:s,animationBegin:u,animationDuration:d,animationEasing:p,onAnimationStart:v,onAnimationEnd:f}=r,m=c.useMemo(()=>({points:l,baseLine:o}),[l,o]),x=lt(m,"recharts-area-"),P=Xt(),[h,y]=c.useState(!1),g=!h,b=c.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),I=c.useCallback(()=>{typeof v=="function"&&v(),y(!0)},[v]);if(P==null)return null;var E=n.current,k=i.current;return c.createElement(Ua,{showLabels:g,points:l},r.children,c.createElement(st,{animationId:x,begin:u,duration:d,isActive:s,easing:p,onAnimationEnd:b,onAnimationStart:I,key:x},j=>{if(E){var S=E.length/l.length,D=j===1?l:l.map((O,L)=>{var _=Math.floor(L*S);if(E[_]){var N=E[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),w;return K(o)?w=M(k,o,j):U(o)||Yt(o)?w=M(k,0,j):w=o.map((O,L)=>{var _=Math.floor(L*S);if(Array.isArray(k)&&k[_]){var N=k[_];return B(B({},O),{},{x:M(N.x,O.x,j),y:M(N.y,O.y,j)})}return O}),j>0&&(n.current=D,i.current=w),c.createElement(Ve,{points:D,baseLine:w,needClip:e,clipPathId:a,props:r})}return j>0&&(n.current=l,i.current=o),c.createElement(W,null,s&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(a)},c.createElement(Ja,{alpha:j,points:l,baseLine:o,layout:P,strokeWidth:r.strokeWidth}))),c.createElement(W,{clipPath:"url(#animationClipPath-".concat(a,")")},c.createElement(Ve,{points:l,baseLine:o,needClip:e,clipPathId:a,props:r})))}),c.createElement(ct,{label:r.label}))}function er(t){var{needClip:e,clipPathId:a,props:r}=t,n=c.useRef(null),i=c.useRef();return c.createElement(Qa,{needClip:e,clipPathId:a,props:r,previousPointsRef:n,previousBaselineRef:i})}class tr extends c.PureComponent{render(){var{hide:e,dot:a,points:r,className:n,top:i,left:l,needClip:o,xAxisId:s,yAxisId:u,width:d,height:p,id:v,baseLine:f,zIndex:m}=this.props;if(e)return null;var x=re("recharts-area",n),P=v,{r:h,strokeWidth:y}=Pt(a),g=ge(a),b=h*2+y,I=o?"url(#clipPath-".concat(g?"":"dots-").concat(P,")"):void 0;return c.createElement(oe,{zIndex:m},c.createElement(W,{className:x},o&&c.createElement("defs",null,c.createElement(ot,{clipPathId:P,xAxisId:s,yAxisId:u}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(P)},c.createElement("rect",{x:l-b/2,y:i-b/2,width:d+b,height:p+b}))),c.createElement(er,{needClip:o,clipPathId:P,props:this.props})),c.createElement(ye,{points:r,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}),this.props.isRange&&Array.isArray(f)&&c.createElement(ye,{points:f,mainColor:te(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:I}))}}var ar={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ie.area};function rr(t){var e,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,connectNulls:l,dot:o,fill:s,fillOpacity:u,hide:d,isAnimationActive:p,legendType:v,stroke:f,xAxisId:m,yAxisId:x}=t,P=Dt(t,Fa),h=it(),y=Gt(),{needClip:g}=rt(m,x),b=ce(),{points:I,isRange:E,baseLine:k}=(e=be(L=>Wa(L,t.id,b)))!==null&&e!==void 0?e:{},j=nt();if(h!=="horizontal"&&h!=="vertical"||j==null||y!=="AreaChart"&&y!=="ComposedChart")return null;var{height:S,width:D,x:w,y:O}=j;return!I||!I.length?null:c.createElement(tr,$({},P,{activeDot:a,animationBegin:r,animationDuration:n,animationEasing:i,baseLine:k,connectNulls:l,dot:o,fill:s,fillOpacity:u,height:S,hide:d,layout:h,isAnimationActive:p,isRange:E,legendType:v,needClip:g,points:I,stroke:f,width:D,left:w,top:O,xAxisId:m,yAxisId:x}))}var nr=(t,e,a,r,n)=>{var i=a??e;if(K(i))return i;var l=t==="horizontal"?n:r,o=l.scale.domain();if(l.type==="number"){var s=Math.max(o[0],o[1]),u=Math.min(o[0],o[1]);return i==="dataMin"?u:i==="dataMax"||s<0?s:Math.max(Math.min(o[0],o[1]),0)}return i==="dataMin"?o[0]:i==="dataMax"?o[1]:o[0]};function ir(t){var{areaSettings:{connectNulls:e,baseValue:a,dataKey:r},stackedData:n,layout:i,chartBaseValue:l,xAxis:o,yAxis:s,displayedData:u,dataStartIndex:d,xAxisTicks:p,yAxisTicks:v,bandSize:f}=t,m=n&&n.length,x=nr(i,l,a,o,s),P=i==="horizontal",h=!1,y=u.map((b,I)=>{var E,k,j,S;if(m)S=n[d+I];else{var D=Z(b,r);Array.isArray(D)?(S=D,h=!0):S=[x,D]}var w=(E=(k=S)===null||k===void 0?void 0:k[1])!==null&&E!==void 0?E:null,O=w==null||m&&!e&&Z(b,r)==null;if(P){var L;return{x:J({axis:o,ticks:p,bandSize:f,entry:b,index:I}),y:O?null:(L=s.scale.map(w))!==null&&L!==void 0?L:null,value:S,payload:b}}return{x:O?null:(j=o.scale.map(w))!==null&&j!==void 0?j:null,y:J({axis:s,ticks:v,bandSize:f,entry:b,index:I}),value:S,payload:b}}),g;return m||h?g=y.map(b=>{var I,E=Array.isArray(b.value)?b.value[0]:null;if(P){var k;return{x:b.x,y:E!=null&&b.y!=null&&(k=s.scale.map(E))!==null&&k!==void 0?k:null,payload:b.payload}}return{x:E!=null&&(I=o.scale.map(E))!==null&&I!==void 0?I:null,y:b.y,payload:b.payload}}):g=P?s.scale.map(x):o.scale.map(x),{points:y,baseLine:g??0,isRange:h}}function or(t){var e=Ae(t,ar),a=ce();return c.createElement(Je,{id:e.id,type:"area"},r=>c.createElement(c.Fragment,null,c.createElement(Qe,{legendPayload:Xa(e)}),c.createElement(Ya,{dataKey:e.dataKey,data:e.data,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,unit:e.unit,tooltipType:e.tooltipType,id:r}),c.createElement(et,{type:"area",id:r,data:e.data,dataKey:e.dataKey,xAxisId:e.xAxisId,yAxisId:e.yAxisId,zAxisId:0,stackId:Vt(e.stackId),hide:e.hide,barSize:void 0,baseValue:e.baseValue,isPanorama:a,connectNulls:e.connectNulls}),c.createElement(rr,$({},e,{id:r}))))}var Le=c.memo(or,Ze);Le.displayName="Area";var lr=["axis"],sr=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e})),cr=["axis"],Lt=c.forwardRef((t,e)=>c.createElement(pt,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cr,tooltipPayloadSearcher:vt,categoricalChartProps:t,ref:e}));const ae={count:{label:"OK",color:"var(--ok)"},errors:{label:"5xx",color:"var(--danger)"},client_errors:{label:"4xx",color:"var(--warning)"},p50:{label:"p50",color:"var(--primary)"},p95:{label:"p95",color:"var(--primary)"},p99:{label:"p99",color:"var(--primary)"},avg:{label:"avg",color:"var(--warning)"}};function ur(t){return t.length<2?0:new Date(t[1].t).getTime()-new Date(t[0].t).getTime()}const Ge=1440*60*1e3;function Ne(t){const e=ur(t),a=t.length>1?new Date(t[t.length-1].t).getTime()-new Date(t[0].t).getTime():0;return e>=Ge||a>2*Ge?r=>new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}):r=>new Date(r).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Y(t){return new Date(t).toLocaleString(void 0,{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})}const V={fontSize:10,fontFamily:"var(--font-mono)"};function Xe(t,e,a){return n=>{const i=R.c(8),{cx:l,cy:o,index:s}=n;if(l==null||o==null||s==null){let v;return i[0]!==s?(v=A.jsx("g",{},s),i[0]=s,i[1]=v):v=i[1],v}const u=t[s-1]?.[e]??null,d=t[s+1]?.[e]??null;if(u!=null||d!=null){let v;return i[2]!==s?(v=A.jsx("g",{},s),i[2]=s,i[3]=v):v=i[3],v}let p;return i[4]!==l||i[5]!==o||i[6]!==s?(p=A.jsx("circle",{cx:l,cy:o,r:2,fill:a},s),i[4]=l,i[5]=o,i[6]=s,i[7]=p):p=i[7],p}}function _e(t=[]){return t.map(e=>A.jsx(Ht,{x:new Date(e.at).toISOString(),stroke:"var(--primary)",strokeDasharray:"3 3",label:{value:e.ref,position:"insideTopRight",fontSize:9,fill:"var(--primary)",fontFamily:"var(--font-mono)"}},e.deploy))}function Ce(){const t=R.c(2),{setHoveredKey:e}=Ye();let a;return t[0]!==e?(a={onMouseMove:r=>{typeof r?.activeLabel=="string"&&e(r.activeLabel)},onMouseLeave:()=>e(null)},t[0]=e,t[1]=a):a=t[1],a}function Me(t){const e=R.c(11),{data:a}=t;if(a.length===0)return null;let r;e[0]!==a[0].t?(r=Y(a[0].t),e[0]=a[0].t,e[1]=r):r=e[1];let n;e[2]!==r?(n=A.jsx("span",{children:r}),e[2]=r,e[3]=n):n=e[3];const i=a[a.length-1];let l;e[4]!==i.t?(l=Y(i.t),e[4]=i.t,e[5]=l):l=e[5];let o;e[6]!==l?(o=A.jsx("span",{children:l}),e[6]=l,e[7]=o):o=e[7];let s;return e[8]!==n||e[9]!==o?(s=A.jsxs("div",{className:"text-muted-foreground mt-1 flex justify-between font-mono text-[10px]",children:[n,o]}),e[8]=n,e[9]=o,e[10]=s):s=e[10],s}function Sr(t){const e=R.c(31),{data:a,deploys:r,label:n,className:i}=t,l=n===void 0?"Requests":n,o=i===void 0?"h-40":i;let s;e[0]!==l?(s={...ae,count:{...ae.count,label:l}},e[0]=l,e[1]=s):s=e[1];const u=s,d=Ce();let p;e[2]!==a?(p=Ne(a),e[2]=a,e[3]=p):p=e[3];const v=p,f=`${o} w-full`;let m;e[4]!==a?(m=a.map(vr),e[4]=a,e[5]=m):m=e[5];const x=d.onMouseMove,P=d.onMouseLeave;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[6]=h):h=e[6];let y;e[7]!==v?(y=A.jsx(je,{dataKey:"t",tickFormatter:v,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[7]=v,e[8]=y):y=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:pr}),e[9]=g):g=e[9];let b,I,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=A.jsx(Se,{content:A.jsx(we,{labelFormatter:dr})}),I=A.jsx(ve,{dataKey:"ok",name:"count",fill:"var(--color-count)",stackId:"a"}),E=A.jsx(ve,{dataKey:"client_errors",fill:"var(--color-client_errors)",stackId:"a"}),e[10]=b,e[11]=I,e[12]=E):(b=e[10],I=e[11],E=e[12]);let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=A.jsx(ve,{dataKey:"errors",fill:"var(--color-errors)",stackId:"a",radius:[2,2,0,0]}),e[13]=k):k=e[13];let j;e[14]!==r?(j=_e(r),e[14]=r,e[15]=j):j=e[15];let S;e[16]!==d.onMouseLeave||e[17]!==d.onMouseMove||e[18]!==y||e[19]!==j||e[20]!==m?(S=A.jsxs(Ut,{data:m,barCategoryGap:2,onMouseMove:x,onMouseLeave:P,children:[h,y,g,b,I,E,k,j]}),e[16]=d.onMouseLeave,e[17]=d.onMouseMove,e[18]=y,e[19]=j,e[20]=m,e[21]=S):S=e[21];let D;e[22]!==u||e[23]!==S||e[24]!==f?(D=A.jsx(de,{config:u,className:f,children:S}),e[22]=u,e[23]=S,e[24]=f,e[25]=D):D=e[25];let w;e[26]!==a?(w=A.jsx(Me,{data:a}),e[26]=a,e[27]=w):w=e[27];let O;return e[28]!==D||e[29]!==w?(O=A.jsxs("div",{children:[D,w]}),e[28]=D,e[29]=w,e[30]=O):O=e[30],O}function dr(t){return Y(String(t))}function pr(t){return Nt(Number(t))}function vr(t){return{...t,t:new Date(t.t).toISOString(),ok:Math.max(0,t.count-t.errors-t.client_errors)}}const fr={ok:{label:"ok",color:"var(--ok)"},errored:{label:"errored",color:"var(--warning)"},crashed:{label:"crashed",color:"var(--danger)"}};function wr(t){const e=R.c(27),{data:a,deploys:r,className:n}=t,i=n===void 0?"h-40":n,l=Ce();let o;e[0]!==a?(o=Ne(a),e[0]=a,e[1]=o):o=e[1];const s=o,u=`${i} w-full`;let d;e[2]!==a?(d=a.map(xr),e[2]=a,e[3]=d):d=e[3];const p=l.onMouseMove,v=l.onMouseLeave;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[4]=f):f=e[4];let m;e[5]!==s?(m=A.jsx(je,{dataKey:"t",tickFormatter:s,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[5]=s,e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=A.jsx(Oe,{width:36,tickLine:!1,axisLine:!1,tick:V,tickFormatter:yr}),e[7]=x):x=e[7];let P,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Se,{content:A.jsx(we,{labelFormatter:hr})}),h=["ok","errored","crashed"],e[8]=P,e[9]=h):(P=e[8],h=e[9]);let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=h.map(mr),e[10]=y):y=e[10];let g;e[11]!==r?(g=_e(r),e[11]=r,e[12]=g):g=e[12];let b;e[13]!==l.onMouseLeave||e[14]!==l.onMouseMove||e[15]!==g||e[16]!==d||e[17]!==m?(b=A.jsxs(Lt,{data:d,onMouseMove:p,onMouseLeave:v,children:[f,m,x,P,y,g]}),e[13]=l.onMouseLeave,e[14]=l.onMouseMove,e[15]=g,e[16]=d,e[17]=m,e[18]=b):b=e[18];let I;e[19]!==b||e[20]!==u?(I=A.jsx(de,{config:fr,className:u,children:b}),e[19]=b,e[20]=u,e[21]=I):I=e[21];let E;e[22]!==a?(E=A.jsx(Me,{data:a}),e[22]=a,e[23]=E):E=e[23];let k;return e[24]!==I||e[25]!==E?(k=A.jsxs("div",{children:[I,E]}),e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function mr(t){return A.jsx(Le,{dataKey:t,stackId:"sessions",stroke:`var(--color-${t})`,fill:`var(--color-${t})`,fillOpacity:.3,strokeWidth:1.25,isAnimationActive:!1},t)}function hr(t){return Y(String(t))}function yr(t){return Nt(Number(t))}function xr(t){return{...t,t:new Date(t.t).toISOString()}}function Dr(t){const e=R.c(58),{data:a,deploys:r,percentile:n,className:i}=t,l=n===void 0?"p95":n,o=i===void 0?"h-40":i,s=Ce();let u;e[0]!==a?(u=Ne(a),e[0]=a,e[1]=u):u=e[1];const d=u;let p,v,f,m,x,P,h,y,g,b,I,E,k,j,S,D;if(e[2]!==o||e[3]!==a||e[4]!==s.onMouseLeave||e[5]!==s.onMouseMove||e[6]!==l||e[7]!==d){const G=a.map(Ar);f=de,g=ae,b=`${o} w-full`,v=sr,j=G,S=s.onMouseMove,D=s.onMouseLeave,e[24]===Symbol.for("react.memo_cache_sentinel")?(m=A.jsx(ke,{vertical:!1,strokeDasharray:"2 4"}),e[24]=m):m=e[24],e[25]!==d?(x=A.jsx(je,{dataKey:"t",tickFormatter:d,tickLine:!1,axisLine:!1,minTickGap:40,tick:V}),e[25]=d,e[26]=x):x=e[26],e[27]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oe,{width:44,tickLine:!1,axisLine:!1,tick:V,tickFormatter:Pr}),e[27]=P):P=e[27],e[28]===Symbol.for("react.memo_cache_sentinel")?(h=A.jsx(Se,{content:A.jsx(we,{labelFormatter:br,formatter:gr})}),e[28]=h):h=e[28],y=A.jsx(xe,{dataKey:l,stroke:`var(--color-${l})`,dot:Xe(G,l,`var(--color-${l})`),strokeWidth:1.75,isAnimationActive:!1}),p=xe,I="avg",E="var(--color-avg)",k=Xe(G,"avg","var(--color-avg)"),e[2]=o,e[3]=a,e[4]=s.onMouseLeave,e[5]=s.onMouseMove,e[6]=l,e[7]=d,e[8]=p,e[9]=v,e[10]=f,e[11]=m,e[12]=x,e[13]=P,e[14]=h,e[15]=y,e[16]=g,e[17]=b,e[18]=I,e[19]=E,e[20]=k,e[21]=j,e[22]=S,e[23]=D}else p=e[8],v=e[9],f=e[10],m=e[11],x=e[12],P=e[13],h=e[14],y=e[15],g=e[16],b=e[17],I=e[18],E=e[19],k=e[20],j=e[21],S=e[22],D=e[23];let w;e[29]!==p||e[30]!==I||e[31]!==E||e[32]!==k?(w=A.jsx(p,{dataKey:I,stroke:E,dot:k,strokeWidth:1.25,strokeOpacity:.8,isAnimationActive:!1}),e[29]=p,e[30]=I,e[31]=E,e[32]=k,e[33]=w):w=e[33];let O;e[34]!==r?(O=_e(r),e[34]=r,e[35]=O):O=e[35];let L;e[36]!==v||e[37]!==m||e[38]!==x||e[39]!==P||e[40]!==h||e[41]!==y||e[42]!==w||e[43]!==O||e[44]!==j||e[45]!==S||e[46]!==D?(L=A.jsxs(v,{data:j,onMouseMove:S,onMouseLeave:D,children:[m,x,P,h,y,w,O]}),e[36]=v,e[37]=m,e[38]=x,e[39]=P,e[40]=h,e[41]=y,e[42]=w,e[43]=O,e[44]=j,e[45]=S,e[46]=D,e[47]=L):L=e[47];let _;e[48]!==f||e[49]!==g||e[50]!==b||e[51]!==L?(_=A.jsx(f,{config:g,className:b,children:L}),e[48]=f,e[49]=g,e[50]=b,e[51]=L,e[52]=_):_=e[52];let N;e[53]!==a?(N=A.jsx(Me,{data:a}),e[53]=a,e[54]=N):N=e[54];let z;return e[55]!==_||e[56]!==N?(z=A.jsxs("div",{children:[_,N]}),e[55]=_,e[56]=N,e[57]=z):z=e[57],z}function gr(t,e){return[t==null?"—":ft(Number(t)),String(e)]}function br(t){return Y(String(t))}function Pr(t){return ft(Number(t),0)}function Ar(t){return{...t,t:new Date(t.t).toISOString()}}function Lr(t){const e=R.c(22),{data:a,className:r,hoverKey:n}=t,i=r===void 0?"h-10 w-32":r,{hoveredKey:l,setHoveredKey:o}=Ye(),s=n!=null&&l===n;let u;e[0]!==a?(u=a.map(Ir),e[0]=a,e[1]=u):u=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={top:1,right:1,bottom:1,left:1},e[2]=d):d=e[2];let p;e[3]!==n||e[4]!==o?(p=n?()=>o(n):void 0,e[3]=n,e[4]=o,e[5]=p):p=e[5];let v;e[6]!==n||e[7]!==o?(v=n?()=>o(null):void 0,e[6]=n,e[7]=o,e[8]=v):v=e[8];const f=s?"var(--primary)":"var(--muted-foreground)",m=s?"var(--primary)":"var(--muted-foreground)",x=s?.35:.15,P=s?2:1.25;let h;e[9]!==f||e[10]!==m||e[11]!==x||e[12]!==P?(h=A.jsx(Le,{dataKey:"v",stroke:f,fill:m,fillOpacity:x,strokeWidth:P,isAnimationActive:!1}),e[9]=f,e[10]=m,e[11]=x,e[12]=P,e[13]=h):h=e[13];let y;e[14]!==h||e[15]!==u||e[16]!==p||e[17]!==v?(y=A.jsx(Lt,{data:u,margin:d,onMouseEnter:p,onMouseLeave:v,children:h}),e[14]=h,e[15]=u,e[16]=p,e[17]=v,e[18]=y):y=e[18];let g;return e[19]!==i||e[20]!==y?(g=A.jsx(de,{config:ae,className:i,children:y}),e[19]=i,e[20]=y,e[21]=g):g=e[21],g}function Ir(t){return{v:t}}function Nt(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)}k`:String(t)}export{Le as A,Dr as L,Lr as S,Sr as T,Lt as a,wr as b};
@@ -1 +1 @@
1
- import{c as Ge,u as Le,l as Ke,j as s,L as Oe,i as Pe}from"./inertia-FoqYZAk8.js";import{D as ke}from"./data-table-DYi-N0hm.js";import{b as Ue,E as Se,G as ze,O as Ee}from"./app-layout-LvxN9xSS.js";import{P as Ae,E as Be}from"./env-layout-HdcOaPPX.js";import{R as We}from"./relative-time-DcJbkKlN.js";import{S as ae,a as Je}from"./stat-BTzNKTm2.js";import{I as Qe}from"./status-badge-BDkOXa-C.js";import{C as He,a as Me,b as Ie,c as Te}from"./card-Dpwlr0uY.js";import{w as Ve,m as De,p as ce,c as Fe}from"./format-B9SDkrWj.js";import{c as Xe,a as Ye}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ze}from"./release-health-C8WSCDKD.js";import"./chart-hover-CEH-DtXO.js";import"./use-live-CE_fN5_6.js";import"./segmented-BWee8uc9.js";import"./arrow-up-DG01k9AL.js";function fe(t,e){if(!t)return null;const o=(e-t)/t*100;return s.jsxs("span",{className:o>10?"text-destructive":o<-10?"text-emerald-600":"text-muted-foreground",children:[o>0?"+":"",o.toFixed(0),"%"]})}function St(t){const e=Ge.c(132),{environment:o}=Le().props,me=o.application_id,de=o.id,r=t.compare.request,l=t.compare.job_attempt,i=o.repository_url;let K;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(K=Xe(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=K):K=e[3];const U=K,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=Ke(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let z;e[16]!==t.deploy.deployed_at?(z=Ve(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=z):z=e[17];const he=`${z}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Ae,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==U?(x=U&&s.jsx(Ue,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:U,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=U,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let A;e[34]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Se,{icon:ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=A):A=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Ye(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let B,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(B={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=B,e[38]=W,e[39]=J):(B=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,B,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:A,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ze,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=De(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=De(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=Fe(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=Fe(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==l.after.count||e[91]!==l.after.errors?(T=ce(l.after.errors,l.after.count),e[90]=l.after.count,e[91]=l.after.errors,e[92]=T):T=e[92];const we=l.before.errors/Math.max(1,l.before.count),ge=l.after.errors/Math.max(1,l.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==l.before.count||e[100]!==l.before.errors?(ee=ce(l.before.errors,l.before.count),e[99]=l.before.count,e[100]=l.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Je,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Ie,{children:s.jsx(Te,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Ee,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:ot},{key:"t",header:"Title",cell:lt},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(He,{children:[te,s.jsx(Me,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let le;e[115]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Ie,{children:s.jsx(Te,{children:"Resolved in this deploy"})}),e[115]=le):le=e[115];let oe,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Se,{icon:Ee,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=oe,e[117]=ie):(oe=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(He,{children:[le,s.jsx(Me,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:oe,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Be,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(Qe,{status:t.status})}function lt(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function ot(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(We,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{St as default};
1
+ import{c as Ge,u as Le,l as Ke,j as s,L as Oe,i as Pe}from"./inertia-b7M33AzA.js";import{D as ke}from"./data-table-Bzj8zcao.js";import{b as Ue,E as Se,G as ze,O as Ee}from"./app-layout-CpEbDy93.js";import{P as Ae,E as Be}from"./env-layout-Dic4A8Kn.js";import{R as We}from"./relative-time-CJX4HXBB.js";import{S as ae,a as Je}from"./stat-nY8iS5q9.js";import{I as Qe}from"./status-badge-D40D8TiV.js";import{C as He,a as Me,b as Ie,c as Te}from"./card-C4EFUWG1.js";import{w as Ve,m as De,p as ce,c as Fe}from"./format-B9SDkrWj.js";import{c as Xe,a as Ye}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ze}from"./release-health-CIxeXQ_e.js";import"./chart-hover-B5cFOZ24.js";import"./use-live-rp6jfGac.js";import"./segmented-CJq8WOHZ.js";import"./arrow-up-DAODKT5N.js";function fe(t,e){if(!t)return null;const o=(e-t)/t*100;return s.jsxs("span",{className:o>10?"text-destructive":o<-10?"text-emerald-600":"text-muted-foreground",children:[o>0?"+":"",o.toFixed(0),"%"]})}function St(t){const e=Ge.c(132),{environment:o}=Le().props,me=o.application_id,de=o.id,r=t.compare.request,l=t.compare.job_attempt,i=o.repository_url;let K;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(K=Xe(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=K):K=e[3];const U=K,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=Ke(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let z;e[16]!==t.deploy.deployed_at?(z=Ve(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=z):z=e[17];const he=`${z}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Ae,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==U?(x=U&&s.jsx(Ue,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:U,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=U,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let A;e[34]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Se,{icon:ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=A):A=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Ye(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let B,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(B={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=B,e[38]=W,e[39]=J):(B=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,B,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:A,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ze,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=De(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=De(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=Fe(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=Fe(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==l.after.count||e[91]!==l.after.errors?(T=ce(l.after.errors,l.after.count),e[90]=l.after.count,e[91]=l.after.errors,e[92]=T):T=e[92];const we=l.before.errors/Math.max(1,l.before.count),ge=l.after.errors/Math.max(1,l.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==l.before.count||e[100]!==l.before.errors?(ee=ce(l.before.errors,l.before.count),e[99]=l.before.count,e[100]=l.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Je,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Ie,{children:s.jsx(Te,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Ee,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:ot},{key:"t",header:"Title",cell:lt},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(He,{children:[te,s.jsx(Me,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let le;e[115]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Ie,{children:s.jsx(Te,{children:"Resolved in this deploy"})}),e[115]=le):le=e[115];let oe,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Se,{icon:Ee,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=oe,e[117]=ie):(oe=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(He,{children:[le,s.jsx(Me,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:oe,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Be,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(Qe,{status:t.status})}function lt(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function ot(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(We,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{St as default};