From b087d5d469bcf4fc0e7cc88ad613408d3b43810d Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:20:55 +1000 Subject: [PATCH] fix(spinifexui): confirm destructive route, rule, gateway, EIP and version actions Deleting a route, disassociating a subnet or Elastic IP, revoking a security-group rule, detaching an internet gateway and deleting a launch template version each ran on one click. They now open a confirmation dialog, and a failed launch template version delete is reported instead of silently leaving the row. --- .../frontend/dist/assets/_id-25A_0Mmi.js | 1 + .../frontend/dist/assets/_id-BFSvpe_J.js | 1 + .../{_id-CPocyLi-.js => _id-BKrvyNGK.js} | 4 +- .../{_id-BuqhMNl9.js => _id-BptKFr_w.js} | 2 +- .../{_id-B4aFNmnb.js => _id-Bu86Ozrp.js} | 4 +- .../{_id-CFTKSqKZ.js => _id-BzKiV85u.js} | 4 +- .../{_id-Ck6daj1a.js => _id-C1szo2bQ.js} | 4 +- .../{_id-xGPlB2BQ.js => _id-C7DPQ7rV.js} | 2 +- .../{_id-Bn-1OLdZ.js => _id-CAM9SxvA.js} | 2 +- .../{_id-DJPhi_l2.js => _id-CHbbEp3J.js} | 4 +- .../{_id-BK8ACEVr.js => _id-CI0L8b6B.js} | 2 +- .../{_id-BuyBs1hH.js => _id-CIkBAv7u.js} | 2 +- .../{_id-BioUIboR.js => _id-CK5xP23X.js} | 2 +- .../frontend/dist/assets/_id-CV9F9MdY.js | 1 - .../frontend/dist/assets/_id-CVZ3C1BH.js | 1 + .../frontend/dist/assets/_id-CVxg-0fv.js | 1 - .../{_id-BNPP6ioO.js => _id-Cd-Ww3Z8.js} | 4 +- .../{_id-sGpUX4UE.js => _id-ChrUHOzx.js} | 4 +- .../{_id-BPFJvgT0.js => _id-CihXDo2a.js} | 4 +- .../{_id-ZlKy-FIQ.js => _id-Culh_OPm.js} | 2 +- .../frontend/dist/assets/_id-CzLQnO41.js | 1 + .../{_id-CTND5et4.js => _id-D5CApzw1.js} | 4 +- .../frontend/dist/assets/_id-DOj2c_YP.js | 1 - .../frontend/dist/assets/_id-DaazrII8.js | 1 - .../{_id-BZ9hs4ty.js => _id-DdYQRnmS.js} | 2 +- .../{_id-BE0619AY.js => _id-DesZsQPD.js} | 2 +- .../{_id-D8zrT_uR.js => _id-DflRwii5.js} | 4 +- .../{_id-ChH83MQ3.js => _id-Dl1qhQTl.js} | 4 +- .../frontend/dist/assets/_id-DoiZQ8Gx.js | 1 - .../{_id-COdll1OG.js => _id-DrtEnCId.js} | 2 +- .../{_id-D52K_DBJ.js => _id-DzUrXYNb.js} | 4 +- .../frontend/dist/assets/_id-InQH-S8V.js | 1 + .../{_id-DRav28tS.js => _id-O0zfpNfp.js} | 4 +- .../{_id-DCV_D6-q.js => _id-UthkaM-l.js} | 4 +- .../{_id-Cf3gSkxZ.js => _id-Xfn6G0NO.js} | 4 +- ...PcFdXH.js => allocate-address-Cj5JFsW1.js} | 2 +- ...js => create-internet-gateway-Cpxiz-Mj.js} | 2 +- ...4fE7ZNR.js => create-key-pair-CAViKLoj.js} | 2 +- ....js => create-launch-template-CZvRqBCG.js} | 2 +- ...nd5L.js => create-nat-gateway-z5NzuiEa.js} | 2 +- ....js => create-placement-group-D_o6h2Gq.js} | 2 +- ...7kGf.js => create-route-table-0q7LO8Yz.js} | 2 +- ...z.js => create-security-group-BVBSieXt.js} | 2 +- ...yPysm1M.js => create-snapshot-CcXkvbR6.js} | 4 +- ...GFwX1Vu.js => create-snapshot-cahtvLdo.js} | 2 +- ...-D7wVMuBW.js => create-subnet-D6P8yW2z.js} | 2 +- ...-BoOOKqZV.js => create-volume-BjkVTXNd.js} | 2 +- ...vpc-M1EQVlaB.js => create-vpc-HC_JSJiq.js} | 2 +- .../frontend/dist/assets/ec2-B8rwH6Fi.js | 1 - .../frontend/dist/assets/ec2-BXFEIaSs.js | 1 + ...pwcgf7b.js => import-key-pair-BivCaRzr.js} | 2 +- .../{index-D9vpt7K9.js => index-D7KGTIfZ.js} | 6 +- ...-DAHwEmVQ.js => run-instances-IlcZaw6e.js} | 4 +- ...-BjKJclfU.js => run-instances-tb1i6-Eb.js} | 2 +- .../spinifexui/frontend/dist/index.html | 36 ++--- .../frontend/src/mutations/ec2.test.tsx | 28 ++++ .../spinifexui/frontend/src/mutations/ec2.ts | 10 +- .../describe-addresses/$id.test.tsx | 96 ++++++++++++++ .../(elastic-ips)/describe-addresses/$id.tsx | 24 +++- .../describe-internet-gateways/$id.test.tsx | 94 +++++++++++++ .../describe-internet-gateways/$id.tsx | 36 ++++- .../describe-launch-templates/$id.test.tsx | 106 +++++++++++++++ .../describe-launch-templates/$id.tsx | 40 +++++- .../describe-route-tables/$id.test.tsx | 125 ++++++++++++++++++ .../describe-route-tables/$id.tsx | 84 ++++++++++-- .../describe-security-groups/$id.test.tsx | 113 ++++++++++++++++ .../describe-security-groups/$id.tsx | 17 ++- 67 files changed, 835 insertions(+), 108 deletions(-) create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-25A_0Mmi.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-BFSvpe_J.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-CPocyLi-.js => _id-BKrvyNGK.js} (90%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BuqhMNl9.js => _id-BptKFr_w.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-B4aFNmnb.js => _id-Bu86Ozrp.js} (91%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-CFTKSqKZ.js => _id-BzKiV85u.js} (89%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-Ck6daj1a.js => _id-C1szo2bQ.js} (90%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-xGPlB2BQ.js => _id-C7DPQ7rV.js} (95%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-Bn-1OLdZ.js => _id-CAM9SxvA.js} (96%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-DJPhi_l2.js => _id-CHbbEp3J.js} (93%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BK8ACEVr.js => _id-CI0L8b6B.js} (97%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BuyBs1hH.js => _id-CIkBAv7u.js} (99%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BioUIboR.js => _id-CK5xP23X.js} (97%) delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-CV9F9MdY.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-CVZ3C1BH.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-CVxg-0fv.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BNPP6ioO.js => _id-Cd-Ww3Z8.js} (92%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-sGpUX4UE.js => _id-ChrUHOzx.js} (91%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BPFJvgT0.js => _id-CihXDo2a.js} (89%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-ZlKy-FIQ.js => _id-Culh_OPm.js} (97%) create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-CzLQnO41.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-CTND5et4.js => _id-D5CApzw1.js} (90%) delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-DOj2c_YP.js delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-DaazrII8.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BZ9hs4ty.js => _id-DdYQRnmS.js} (95%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-BE0619AY.js => _id-DesZsQPD.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-D8zrT_uR.js => _id-DflRwii5.js} (89%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-ChH83MQ3.js => _id-Dl1qhQTl.js} (89%) delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-DoiZQ8Gx.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-COdll1OG.js => _id-DrtEnCId.js} (95%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-D52K_DBJ.js => _id-DzUrXYNb.js} (89%) create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/_id-InQH-S8V.js rename spinifex/services/spinifexui/frontend/dist/assets/{_id-DRav28tS.js => _id-O0zfpNfp.js} (91%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-DCV_D6-q.js => _id-UthkaM-l.js} (89%) rename spinifex/services/spinifexui/frontend/dist/assets/{_id-Cf3gSkxZ.js => _id-Xfn6G0NO.js} (92%) rename spinifex/services/spinifexui/frontend/dist/assets/{allocate-address-bOPcFdXH.js => allocate-address-Cj5JFsW1.js} (97%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-internet-gateway-DXtpKz1N.js => create-internet-gateway-Cpxiz-Mj.js} (97%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-key-pair-C4fE7ZNR.js => create-key-pair-CAViKLoj.js} (99%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-launch-template-eS85bS-q.js => create-launch-template-CZvRqBCG.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-nat-gateway-CSx3nd5L.js => create-nat-gateway-z5NzuiEa.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-placement-group-Cei835Yj.js => create-placement-group-D_o6h2Gq.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-route-table-DUgY7kGf.js => create-route-table-0q7LO8Yz.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-security-group-6b38uylz.js => create-security-group-BVBSieXt.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-snapshot-jyPysm1M.js => create-snapshot-CcXkvbR6.js} (91%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-snapshot-CGFwX1Vu.js => create-snapshot-cahtvLdo.js} (96%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-subnet-D7wVMuBW.js => create-subnet-D6P8yW2z.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-volume-BoOOKqZV.js => create-volume-BjkVTXNd.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{create-vpc-M1EQVlaB.js => create-vpc-HC_JSJiq.js} (99%) delete mode 100644 spinifex/services/spinifexui/frontend/dist/assets/ec2-B8rwH6Fi.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/ec2-BXFEIaSs.js rename spinifex/services/spinifexui/frontend/dist/assets/{import-key-pair-1pwcgf7b.js => import-key-pair-BivCaRzr.js} (98%) rename spinifex/services/spinifexui/frontend/dist/assets/{index-D9vpt7K9.js => index-D7KGTIfZ.js} (99%) rename spinifex/services/spinifexui/frontend/dist/assets/{run-instances-DAHwEmVQ.js => run-instances-IlcZaw6e.js} (90%) rename spinifex/services/spinifexui/frontend/dist/assets/{run-instances-BjKJclfU.js => run-instances-tb1i6-Eb.js} (99%) create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.test.tsx create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id.test.tsx create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(launch-templates)/describe-launch-templates/$id.test.tsx create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.test.tsx create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.test.tsx diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-25A_0Mmi.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-25A_0Mmi.js new file mode 100644 index 000000000..fb9b8fe89 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-25A_0Mmi.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as ee}from"./link-BokOReHc.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{an as a}from"./cluster-config-DNNpxkEw.js";import{t as o}from"./createLucideIcon-BQgzNCBR.js";import{t as s}from"./back-link-wsXUoJ12.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./trash-DVab4pEz.js";import{t as m}from"./button-C9VMD5Xn.js";import{t as h}from"./input-CBUMH1Jl.js";import{h as g,m as _}from"./ec2-BzWGOxUI.js";import{A as v,Y as y,g as te,k as ne}from"./ec2-BXFEIaSs.js";import{t as re}from"./_id-BKrvyNGK.js";import{t as b}from"./page-heading-vksh_67w.js";import{t as x}from"./badge-BtRPNxFL.js";import{i as S,t as C}from"./zod-A4qtKH_p.js";import{t as w}from"./error-banner-DeOeVBKS.js";import{s as T,t as E}from"./field-BKQO3cRo.js";import{t as D}from"./delete-confirmation-dialog-8byauM7I.js";import{n as O,t as k}from"./detail-row-DNBRlVeK.js";import{c as ie}from"./ec2-CSDTsDKe.js";import{t as ae}from"./launch-template-data-fields-KubGXzaR.js";var A={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};A.node;var j=o(A),M={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};M.node;var N=o(M),P=t(n()),F=e();function I(e){if(!e)return``;try{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;et.LaunchTemplateId===e),G=(o.LaunchTemplateVersions??[]).toSorted((e,t)=>(t.VersionNumber??0)-(e.VersionNumber??0)),{control:K,handleSubmit:q,register:J,getValues:Y,reset:X,formState:{errors:oe,isSubmitting:Z}}=S({resolver:C(ie),defaultValues:{versionDescription:``,...R}});if(!W?.LaunchTemplateId)return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`Launch template not found.`})]});let Q=W.DefaultVersionNumber,se=e=>{if(e===`none`){X({...Y(),sourceVersion:void 0,...R});return}let t=G.find(t=>String(t.VersionNumber)===e);X({...Y(),sourceVersion:e,...L(t?.LaunchTemplateData)})},ce=async t=>{await A.mutateAsync({launchTemplateId:e,defaultVersion:String(t)})},le=async()=>{if(H!==null)try{await M.mutateAsync({launchTemplateId:e,versions:[String(H)]})}catch{}finally{U(null)}},ue=async()=>{try{await I.mutateAsync(e),t({to:`/ec2/describe-launch-templates`})}finally{V(!1)}},de=async t=>{await z.mutateAsync({...t,launchTemplateId:e}),X({versionDescription:``,sourceVersion:void 0,...R})},$=A.error??M.error;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),I.error&&(0,F.jsx)(w,{error:I.error,msg:`Failed to delete launch template`}),(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(b,{actions:(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(m,{disabled:I.isPending,onClick:()=>{V(!0)},size:`sm`,variant:`destructive`,children:[(0,F.jsx)(p,{className:`size-4`}),`Delete`]}),(0,F.jsxs)(x,{variant:`secondary`,children:[`default v`,Q]})]}),subtitle:`Launch Template Details`,title:W.LaunchTemplateName??W.LaunchTemplateId}),(0,F.jsxs)(O,{children:[(0,F.jsx)(O.Header,{children:`Launch Template Information`}),(0,F.jsxs)(O.Content,{children:[(0,F.jsx)(k,{label:`Launch Template ID`,value:W.LaunchTemplateId}),(0,F.jsx)(k,{label:`Name`,value:W.LaunchTemplateName}),(0,F.jsx)(k,{label:`Default Version`,value:String(W.DefaultVersionNumber)}),(0,F.jsx)(k,{label:`Latest Version`,value:String(W.LatestVersionNumber)}),(0,F.jsx)(k,{label:`Created`,value:a(W.CreateTime)})]})]}),(0,F.jsxs)(O,{children:[(0,F.jsx)(O.Header,{children:`Versions`}),(0,F.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$&&(0,F.jsx)(w,{error:$,msg:`Failed to update version`}),(0,F.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,F.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,F.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:`p-2 font-medium`,children:`Version`}),(0,F.jsx)(`th`,{className:`p-2 font-medium`,children:`Description`}),(0,F.jsx)(`th`,{className:`p-2 font-medium`,children:`Default`}),(0,F.jsx)(`th`,{className:`p-2 font-medium`,children:`Created`}),(0,F.jsx)(`th`,{className:`p-2`,children:(0,F.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,F.jsx)(`tbody`,{children:G.map(t=>{let n=t.VersionNumber,r=n===Q;return(0,F.jsxs)(`tr`,{className:`border-t`,children:[(0,F.jsx)(`td`,{className:`p-2 font-mono`,children:n}),(0,F.jsx)(`td`,{className:`p-2`,children:t.VersionDescription??`—`}),(0,F.jsx)(`td`,{className:`p-2`,children:r?(0,F.jsx)(x,{variant:`secondary`,children:`Default`}):`—`}),(0,F.jsx)(`td`,{className:`p-2`,children:a(t.CreateTime)}),(0,F.jsx)(`td`,{className:`p-2`,children:(0,F.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[(0,F.jsx)(ee,{search:{launchTemplateId:e,launchTemplateVersion:String(n)},to:`/ec2/run-instances`,children:(0,F.jsxs)(m,{size:`sm`,variant:`ghost`,children:[(0,F.jsx)(j,{className:`size-4`}),`Launch`]})}),!r&&n!==void 0&&(0,F.jsxs)(m,{disabled:A.isPending,onClick:async()=>{await ce(n)},size:`sm`,variant:`ghost`,children:[(0,F.jsx)(N,{className:`size-4`}),`Set default`]}),(0,F.jsxs)(m,{disabled:r||M.isPending||n===void 0,onClick:()=>{n!==void 0&&U(n)},size:`sm`,variant:`ghost`,children:[(0,F.jsx)(p,{className:`size-4`}),(0,F.jsxs)(`span`,{className:`sr-only`,children:[`Delete version `,n]})]})]})})]},n)})})]})})]})]}),(0,F.jsxs)(O,{children:[(0,F.jsx)(O.Header,{children:`Create Version`}),(0,F.jsxs)(`div`,{className:`p-4`,children:[z.error&&(0,F.jsx)(w,{error:z.error,msg:`Failed to create version`}),(0,F.jsxs)(`form`,{className:`space-y-6`,onSubmit:q(de),children:[(0,F.jsxs)(E,{children:[(0,F.jsx)(T,{children:(0,F.jsx)(`label`,{htmlFor:`sourceVersion`,children:`Clone from version`})}),(0,F.jsxs)(f,{onValueChange:e=>{se(e??`none`)},value:Y(`sourceVersion`)??`none`,children:[(0,F.jsx)(d,{className:`w-full`,id:`sourceVersion`,children:(0,F.jsx)(c,{})}),(0,F.jsxs)(u,{children:[(0,F.jsx)(l,{value:`none`,children:`none (start blank)`}),G.map(e=>(0,F.jsxs)(l,{value:String(e.VersionNumber),children:[`v`,e.VersionNumber,e.VersionDescription?` — ${e.VersionDescription}`:``]},e.VersionNumber))]})]})]}),(0,F.jsxs)(E,{children:[(0,F.jsx)(T,{children:(0,F.jsx)(`label`,{htmlFor:`versionDescription`,children:`Version Description`})}),(0,F.jsx)(h,{id:`versionDescription`,placeholder:`What changed in this version`,...J(`versionDescription`)})]}),(0,F.jsx)(ae,{control:K,errors:oe,register:J}),(0,F.jsx)(m,{disabled:Z||z.isPending,type:`submit`,children:Z||z.isPending?`Creating…`:`Create Version`})]})]})]})]}),(0,F.jsx)(D,{description:`Are you sure you want to delete the launch template "${W.LaunchTemplateName??W.LaunchTemplateId}"? All versions will be deleted. This action cannot be undone.`,isPending:I.isPending,onConfirm:ue,onOpenChange:V,open:B,title:`Delete Launch Template`}),(0,F.jsx)(D,{description:`Delete version ${H} of "${W.LaunchTemplateName??W.LaunchTemplateId}"? This action cannot be undone.`,isPending:M.isPending,onConfirm:le,onOpenChange:e=>{e||U(null)},open:H!==null,title:`Delete Launch Template Version`})]})}export{z as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BFSvpe_J.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-BFSvpe_J.js new file mode 100644 index 000000000..195045d09 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-BFSvpe_J.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./trash-DVab4pEz.js";import{t as m}from"./button-C9VMD5Xn.js";import{t as h}from"./input-CBUMH1Jl.js";import{O as g,_,d as ee,x as te}from"./ec2-BzWGOxUI.js";import{G as ne,N as re,P as ie,a as ae,y as oe}from"./ec2-BXFEIaSs.js";import{t as se}from"./_id-Xfn6G0NO.js";import{t as ce}from"./page-heading-vksh_67w.js";import{t as v}from"./badge-BtRPNxFL.js";import{a as y,i as b,n as x,t as S}from"./zod-A4qtKH_p.js";import{t as C}from"./error-banner-DeOeVBKS.js";import{r as w,s as T,t as E}from"./field-BKQO3cRo.js";import{t as D}from"./delete-confirmation-dialog-8byauM7I.js";import{n as O,t as k}from"./detail-row-DNBRlVeK.js";import{d as le,r as ue}from"./ec2-CSDTsDKe.js";var A=t(n()),j=e();function de(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function M(){let{id:e}=se.useParams(),t=a(),{data:n}=r(te(e)),{data:M}=r(ee),{data:fe}=r(_),{data:N}=r(g),P=ie(),F=oe(),I=re(),L=ae(),R=ne(),[z,B]=(0,A.useState)(!1),[V,H]=(0,A.useState)(null),[U,W]=(0,A.useState)(null),G=n.RouteTables?.[0],K=b({resolver:S(le),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),pe=y({control:K.control,name:`targetType`}),q=b({resolver:S(ue),defaultValues:{subnetId:``}});if(!G?.RouteTableId)return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,j.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let J=G.RouteTableId,Y=o(G.Tags),X=G.Associations?.some(e=>e.Main)??!1,Z=G.Routes??[],Q=(G.Associations??[]).filter(e=>e.SubnetId),me=(M.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===G.VpcId)),he=(fe.NatGateways??[]).filter(e=>e.VpcId===G.VpcId&&e.State===`available`),ge=new Set(Q.map(e=>e.SubnetId)),$=(N.Subnets??[]).filter(e=>e.VpcId===G.VpcId&&!ge.has(e.SubnetId)),_e=async()=>{try{await P.mutateAsync(J),t({to:`/ec2/describe-route-tables`})}finally{B(!1)}},ve=async()=>{if(V)try{await I.mutateAsync({routeTableId:J,destinationCidrBlock:V})}catch{}finally{H(null)}},ye=async()=>{if(U)try{await R.mutateAsync(U.associationId)}catch{}finally{W(null)}},be=async e=>{await F.mutateAsync({routeTableId:J,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),K.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},xe=async e=>{await L.mutateAsync({routeTableId:J,subnetId:e.subnetId}),q.reset({subnetId:``})};return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),P.error&&(0,j.jsx)(C,{error:P.error,msg:`Failed to delete Route Table`}),(0,j.jsxs)(`div`,{className:`space-y-6`,children:[(0,j.jsx)(ce,{actions:(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(m,{disabled:X||P.isPending,onClick:()=>{B(!0)},size:`sm`,variant:`destructive`,children:[(0,j.jsx)(p,{className:`size-4`}),`Delete`]}),X&&(0,j.jsx)(v,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:Y?`${G.RouteTableId} (${Y})`:G.RouteTableId}),(0,j.jsxs)(O,{children:[(0,j.jsx)(O.Header,{children:`Route Table Information`}),(0,j.jsxs)(O.Content,{children:[(0,j.jsx)(k,{label:`Route Table ID`,value:G.RouteTableId}),(0,j.jsx)(k,{label:`Main`,value:X?`Yes`:`No`}),(0,j.jsx)(k,{label:`VPC ID`,value:G.VpcId?(0,j.jsx)(i,{className:`text-primary hover:underline`,params:{id:G.VpcId},to:`/ec2/describe-vpcs/$id`,children:G.VpcId}):`—`}),(0,j.jsx)(k,{label:`Owner ID`,value:G.OwnerId??`—`})]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(O.Header,{children:`Routes`}),(0,j.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,j.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,j.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,j.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,j.jsxs)(`tr`,{children:[(0,j.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,j.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,j.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,j.jsx)(`th`,{className:`p-2`,children:(0,j.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,j.jsx)(`tbody`,{children:Z.length>0?Z.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,j.jsxs)(`tr`,{className:`border-t`,children:[(0,j.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,j.jsx)(`td`,{className:`p-2 font-mono`,children:de(e)}),(0,j.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,j.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,j.jsxs)(m,{disabled:I.isPending,onClick:()=>{H(r)},size:`sm`,variant:`ghost`,children:[(0,j.jsx)(p,{className:`size-4`}),(0,j.jsxs)(`span`,{className:`sr-only`,children:[`Delete route to `,r]})]})})]},t)}):(0,j.jsx)(`tr`,{children:(0,j.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(F.error??I.error)&&(0,j.jsx)(C,{error:F.error??I.error??void 0,msg:`Failed to update route`}),(0,j.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:K.handleSubmit(be),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,j.jsx)(h,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...K.register(`destinationCidrBlock`)}),(0,j.jsx)(w,{errors:[K.formState.errors.destinationCidrBlock]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,j.jsx)(x,{control:K.control,name:`targetType`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>{e.onChange(t),K.setValue(`targetId`,``)},value:e.value,children:[(0,j.jsx)(d,{className:`w-full`,id:`targetType`,children:(0,j.jsx)(c,{})}),(0,j.jsxs)(u,{children:[(0,j.jsx)(l,{value:`igw`,children:`Internet Gateway`}),(0,j.jsx)(l,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,j.jsx)(x,{control:K.control,name:`targetId`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>{e.onChange(t)},value:e.value??``,children:[(0,j.jsx)(d,{"aria-invalid":!!K.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,j.jsx)(c,{placeholder:`Select target`})}),(0,j.jsx)(u,{children:pe===`igw`?me.map(e=>(0,j.jsx)(l,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):he.map(e=>(0,j.jsx)(l,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,j.jsx)(w,{errors:[K.formState.errors.targetId]})]}),(0,j.jsx)(m,{disabled:F.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(O.Header,{children:`Subnet Associations`}),(0,j.jsxs)(`div`,{className:`space-y-4 p-4`,children:[Q.length>0?(0,j.jsx)(`ul`,{className:`space-y-2`,children:Q.map(e=>{let t=e.RouteTableAssociationId;return(0,j.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,j.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,j.jsxs)(m,{disabled:!t||R.isPending,onClick:()=>{t&&W({associationId:t,subnetId:e.SubnetId??t})},size:`sm`,variant:`ghost`,children:[(0,j.jsx)(p,{className:`size-4`}),(0,j.jsxs)(`span`,{className:`sr-only`,children:[`Disassociate `,e.SubnetId]})]})]},t)})}):(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(L.error??R.error)&&(0,j.jsx)(C,{error:L.error??R.error??void 0,msg:`Failed to update association`}),(0,j.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:q.handleSubmit(xe),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(T,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,j.jsx)(x,{control:q.control,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(f,{onValueChange:t=>{e.onChange(t)},value:e.value??``,children:[(0,j.jsx)(d,{"aria-invalid":!!q.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,j.jsx)(c,{placeholder:`Select a subnet`})}),(0,j.jsx)(u,{children:$.map(e=>{let t=o(e.Tags);return(0,j.jsx)(l,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,j.jsx)(w,{errors:[q.formState.errors.subnetId]})]}),(0,j.jsx)(m,{disabled:L.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,j.jsx)(D,{description:`Are you sure you want to delete the Route Table "${G.RouteTableId}"? This action cannot be undone.`,isPending:P.isPending,onConfirm:_e,onOpenChange:B,open:z,title:`Delete Route Table`}),(0,j.jsx)(D,{description:`Delete the route to ${V} from "${J}"? Traffic to that destination from every subnet using this table stops being routed.`,isPending:I.isPending,onConfirm:ve,onOpenChange:e=>{e||H(null)},open:V!==null,title:`Delete Route`}),(0,j.jsx)(D,{confirmLabel:`Disassociate`,description:`Disassociate "${U?.subnetId}" from "${J}"? The subnet stops using this table's routes.`,isPending:R.isPending,onConfirm:ye,onOpenChange:e=>{e||W(null)},open:U!==null,pendingLabel:`Disassociating…`,title:`Disassociate Subnet`})]})}export{M as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CPocyLi-.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-BKrvyNGK.js similarity index 90% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-CPocyLi-.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-BKrvyNGK.js index dcf128750..ed08e4326 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-CPocyLi-.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-BKrvyNGK.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DoiZQ8Gx.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/useRender-D_r-BeIy.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js","assets/launch-template-data-fields-KubGXzaR.js","assets/textarea-CTBs9AlF.js","assets/collapsible-C1lL0Zbp.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,c as i,h as a,m as o,o as s,p as c,w as l}from"./ec2-BzWGOxUI.js";var u=e(`/_auth/ec2/(launch-templates)/describe-launch-templates/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...o(t.id),staleTime:`static`}),e.queryClient.query({...s,staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`}),e.queryClient.query({...c,staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`}),e.queryClient.query({...l,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Launch Template | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DoiZQ8Gx.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),`component`)});export{u as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-25A_0Mmi.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/useRender-D_r-BeIy.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js","assets/launch-template-data-fields-KubGXzaR.js","assets/textarea-CTBs9AlF.js","assets/collapsible-C1lL0Zbp.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,c as i,h as a,m as o,o as s,p as c,w as l}from"./ec2-BzWGOxUI.js";var u=e(`/_auth/ec2/(launch-templates)/describe-launch-templates/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...o(t.id),staleTime:`static`}),e.queryClient.query({...s,staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`}),e.queryClient.query({...c,staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`}),e.queryClient.query({...l,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Launch Template | Mulga`}]}),component:t(()=>n(()=>import(`./_id-25A_0Mmi.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),`component`)});export{u as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BuqhMNl9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-BptKFr_w.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BuqhMNl9.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-BptKFr_w.js index bb4190616..57f99954a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BuqhMNl9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-BptKFr_w.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{A as i}from"./removable-Dwr9otKB.js";import{t as a}from"./useMutation-6rdxVQpi.js";import{t as o}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as s}from"./useNavigate-CTe_-BZA.js";import{s as c}from"./cluster-config-DNNpxkEw.js";import{t as l}from"./back-link-wsXUoJ12.js";import{t as u}from"./circle-arrow-up-Bs5cB5tN.js";import{t as d}from"./trash-DVab4pEz.js";import{t as f}from"./button-C9VMD5Xn.js";import{n as p}from"./admin-context-CDHgX8i9.js";import{r as m}from"./signed-fetch-BbgZm19g.js";import{a as h}from"./ec2-BzWGOxUI.js";import{B as g}from"./ec2-B8rwH6Fi.js";import{t as _}from"./_id-CTND5et4.js";import{t as v}from"./page-heading-vksh_67w.js";import{t as y}from"./error-banner-DeOeVBKS.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog-Da3OTbL9.js";import{t as O}from"./delete-confirmation-dialog-8byauM7I.js";import{t as k}from"./state-badge-BbpKF1NE.js";import{i as A}from"./system-managed-Dk7ySh_E.js";import{t as j}from"./ami-details-D-jFY8_1.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=i(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),a(n)}async function F(e){let t=c();if(!t)throw Error(`Not authenticated`);return await m({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=_.useParams(),t=s(),{data:n}=o(h(e)),r=n?.Images?.[0],{isAdmin:i}=p(),a=g(),c=P(),[m,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await a.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await c.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),a.error&&(0,I.jsx)(y,{error:a.error,msg:`Failed to deregister image`}),c.error&&(0,I.jsx)(y,{error:c.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(v,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(f,{onClick:()=>{R(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(u,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(f,{onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(d,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(k,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(O,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:a.isPending,onConfirm:B,onOpenChange:N,open:m,title:`Deregister Image`}),(0,I.jsx)(D,{onOpenChange:R,open:F,children:(0,I.jsxs)(x,{children:[(0,I.jsxs)(E,{children:[(0,I.jsx)(S,{children:`Promote to System Image`}),(0,I.jsxs)(b,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(w,{children:[(0,I.jsx)(T,{children:`Cancel`}),(0,I.jsx)(C,{disabled:c.isPending,onClick:V,children:c.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{A as i}from"./removable-Dwr9otKB.js";import{t as a}from"./useMutation-6rdxVQpi.js";import{t as o}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as s}from"./useNavigate-CTe_-BZA.js";import{s as c}from"./cluster-config-DNNpxkEw.js";import{t as l}from"./back-link-wsXUoJ12.js";import{t as u}from"./circle-arrow-up-Bs5cB5tN.js";import{t as d}from"./trash-DVab4pEz.js";import{t as f}from"./button-C9VMD5Xn.js";import{n as p}from"./admin-context-CDHgX8i9.js";import{r as m}from"./signed-fetch-BbgZm19g.js";import{a as h}from"./ec2-BzWGOxUI.js";import{B as g}from"./ec2-BXFEIaSs.js";import{t as _}from"./_id-D5CApzw1.js";import{t as v}from"./page-heading-vksh_67w.js";import{t as y}from"./error-banner-DeOeVBKS.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog-Da3OTbL9.js";import{t as O}from"./delete-confirmation-dialog-8byauM7I.js";import{t as k}from"./state-badge-BbpKF1NE.js";import{i as A}from"./system-managed-Dk7ySh_E.js";import{t as j}from"./ami-details-D-jFY8_1.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=i(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),a(n)}async function F(e){let t=c();if(!t)throw Error(`Not authenticated`);return await m({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=_.useParams(),t=s(),{data:n}=o(h(e)),r=n?.Images?.[0],{isAdmin:i}=p(),a=g(),c=P(),[m,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await a.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await c.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),a.error&&(0,I.jsx)(y,{error:a.error,msg:`Failed to deregister image`}),c.error&&(0,I.jsx)(y,{error:c.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(v,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(f,{onClick:()=>{R(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(u,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(f,{onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(d,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(k,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(O,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:a.isPending,onConfirm:B,onOpenChange:N,open:m,title:`Deregister Image`}),(0,I.jsx)(D,{onOpenChange:R,open:F,children:(0,I.jsxs)(x,{children:[(0,I.jsxs)(E,{children:[(0,I.jsx)(S,{children:`Promote to System Image`}),(0,I.jsxs)(b,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(w,{children:[(0,I.jsx)(T,{children:`Cancel`}),(0,I.jsx)(C,{disabled:c.isPending,onClick:V,children:c.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-B4aFNmnb.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-Bu86Ozrp.js similarity index 91% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-B4aFNmnb.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-Bu86Ozrp.js index 866a4aebd..3dba55059 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-B4aFNmnb.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-Bu86Ozrp.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BioUIboR.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/copy-CamWo-pg.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/input-CBUMH1Jl.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/useScrollLock-aaqhvzFs.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{t as r}from"./createLucideIcon-BQgzNCBR.js";import{T as i,b as a}from"./ec2-BzWGOxUI.js";var o={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};o.node;var s=r(o),c=e(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BioUIboR.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{s as n,c as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CK5xP23X.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/copy-CamWo-pg.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/input-CBUMH1Jl.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/useScrollLock-aaqhvzFs.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{t as r}from"./createLucideIcon-BQgzNCBR.js";import{T as i,b as a}from"./ec2-BzWGOxUI.js";var o={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};o.node;var s=r(o),c=e(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CK5xP23X.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{s as n,c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CFTKSqKZ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-BzKiV85u.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-CFTKSqKZ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-BzKiV85u.js index 291f4e918..d2040b922 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-CFTKSqKZ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-BzKiV85u.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-Bn-1OLdZ.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/input-CBUMH1Jl.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{k as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-Bn-1OLdZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CAM9SxvA.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/input-CBUMH1Jl.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{k as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CAM9SxvA.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-Ck6daj1a.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-C1szo2bQ.js similarity index 90% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-Ck6daj1a.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-C1szo2bQ.js index 6b0372fe5..f8203e0eb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-Ck6daj1a.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-C1szo2bQ.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CVxg-0fv.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{l as r,t as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CVxg-0fv.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{a as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CVZ3C1BH.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{l as r,t as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CVZ3C1BH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-xGPlB2BQ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-C7DPQ7rV.js similarity index 95% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-xGPlB2BQ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-C7DPQ7rV.js index 5317f689f..3badf8e83 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-xGPlB2BQ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-C7DPQ7rV.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{g as u}from"./ec2-BzWGOxUI.js";import{j as d}from"./ec2-B8rwH6Fi.js";import{t as f}from"./_id-D8zrT_uR.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),x=d(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(m,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{disabled:x.isPending,onClick:()=>{C(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{g as u}from"./ec2-BzWGOxUI.js";import{j as d}from"./ec2-BXFEIaSs.js";import{t as f}from"./_id-DflRwii5.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),x=d(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=o(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(m,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{disabled:x.isPending,onClick:()=>{C(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-Bn-1OLdZ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CAM9SxvA.js similarity index 96% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-Bn-1OLdZ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CAM9SxvA.js index 46144f4aa..2516b36de 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-Bn-1OLdZ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CAM9SxvA.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{t as a}from"./input-CBUMH1Jl.js";import{k as o}from"./ec2-BzWGOxUI.js";import{X as s}from"./ec2-B8rwH6Fi.js";import{t as c}from"./_id-CFTKSqKZ.js";import{t as l}from"./page-heading-vksh_67w.js";import{i as u,t as d}from"./zod-A4qtKH_p.js";import{t as f}from"./error-banner-DeOeVBKS.js";import{t as p}from"./form-actions-ECg9_Gdo.js";import{r as m,s as h,t as g}from"./field-BKQO3cRo.js";import{y as _}from"./ec2-CSDTsDKe.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=c.useParams(),b=r(),x;e[0]===t?x=e[1]:(x=o(t),e[0]=t,e[1]=x);let{data:S}=n(x),C=S.Volumes?.[0],w=C?.VolumeId,T=s(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=d(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=u(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(i,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(l,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(f,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(a,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(m,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=async()=>{await b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(p,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{t as a}from"./input-CBUMH1Jl.js";import{k as o}from"./ec2-BzWGOxUI.js";import{X as s}from"./ec2-BXFEIaSs.js";import{t as c}from"./_id-BzKiV85u.js";import{t as l}from"./page-heading-vksh_67w.js";import{i as u,t as d}from"./zod-A4qtKH_p.js";import{t as f}from"./error-banner-DeOeVBKS.js";import{t as p}from"./form-actions-ECg9_Gdo.js";import{r as m,s as h,t as g}from"./field-BKQO3cRo.js";import{y as _}from"./ec2-CSDTsDKe.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=c.useParams(),b=r(),x;e[0]===t?x=e[1]:(x=o(t),e[0]=t,e[1]=x);let{data:S}=n(x),C=S.Volumes?.[0],w=C?.VolumeId,T=s(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=d(_.refine(e=>e.size>E,{message:`New size must be greater than current size (${E} GiB)`,path:[`size`]})),e[2]=E,e[3]=D);let O;e[4]===E?O=e[5]:(O={size:E},e[4]=E,e[5]=O);let k;e[6]!==D||e[7]!==O?(k={resolver:D,defaultValues:O},e[6]=D,e[7]=O,e[8]=k):k=e[8];let{handleSubmit:A,register:j,formState:M}=u(k),{errors:N,isSubmitting:P}=M;if(!w){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,y.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]}),e[9]=t):t=e[9],t}let F;e[10]!==T||e[11]!==b||e[12]!==w?(F=async e=>{await T.mutateAsync({...e,volumeId:w}),b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[10]=T,e[11]=b,e[12]=w,e[13]=F):F=e[13];let I=F,L,R;e[14]===w?(L=e[15],R=e[16]):(L=(0,y.jsx)(i,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(l,{subtitle:w,title:`Resize Volume`}),e[14]=w,e[15]=L,e[16]=R);let z;e[17]===T.error?z=e[18]:(z=T.error&&(0,y.jsx)(f,{error:T.error,msg:`Failed to resize volume`}),e[17]=T.error,e[18]=z);let B;e[19]!==A||e[20]!==I?(B=A(I),e[19]=A,e[20]=I,e[21]=B):B=e[21];let V;e[22]===E?V=e[23]:(V=(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Current size: `,E,` GiB`]})}),e[22]=E,e[23]=V);let H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,y.jsx)(h,{children:(0,y.jsx)(`label`,{htmlFor:`size`,children:`New size (GiB)`})}),e[24]=H):H=e[24];let U=!!N.size,W=E+1,G;e[25]===j?G=e[26]:(G=j(`size`,{valueAsNumber:!0}),e[25]=j,e[26]=G);let K;e[27]!==U||e[28]!==W||e[29]!==G?(K=(0,y.jsx)(a,{"aria-invalid":U,id:`size`,min:W,type:`number`,...G}),e[27]=U,e[28]=W,e[29]=G,e[30]=K):K=e[30];let q;e[31]===N.size?q=e[32]:(q=(0,y.jsx)(m,{errors:[N.size]}),e[31]=N.size,e[32]=q);let J;e[33]!==K||e[34]!==q?(J=(0,y.jsxs)(g,{children:[H,K,q]}),e[33]=K,e[34]=q,e[35]=J):J=e[35];let Y;e[36]!==b||e[37]!==w?(Y=async()=>{await b({to:`/ec2/describe-volumes/$id`,params:{id:w}})},e[36]=b,e[37]=w,e[38]=Y):Y=e[38];let X;e[39]!==P||e[40]!==T.isPending||e[41]!==Y?(X=(0,y.jsx)(p,{isPending:T.isPending,isSubmitting:P,onCancel:Y,pendingLabel:`Resizing\\u2026`,submitLabel:`Resize Volume`}),e[39]=P,e[40]=T.isPending,e[41]=Y,e[42]=X):X=e[42];let Z;e[43]!==V||e[44]!==J||e[45]!==X||e[46]!==B?(Z=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[V,J,X]}),e[43]=V,e[44]=J,e[45]=X,e[46]=B,e[47]=Z):Z=e[47];let Q;return e[48]!==Z||e[49]!==L||e[50]!==R||e[51]!==z?(Q=(0,y.jsxs)(y.Fragment,{children:[L,R,z,Z]}),e[48]=Z,e[49]=L,e[50]=R,e[51]=z,e[52]=Q):Q=e[52],Q}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DJPhi_l2.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CHbbEp3J.js similarity index 93% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-DJPhi_l2.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CHbbEp3J.js index ddc7e1c55..735cbb603 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DJPhi_l2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CHbbEp3J.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BuyBs1hH.js","assets/compiler-runtime-D_vZfn79.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/check-BO7W8OSs.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/copy-CamWo-pg.js","assets/network-RAx0KOlf.js","assets/rotate-cw-FTUcK_f-.js","assets/trash-DVab4pEz.js","assets/triangle-alert-DcjzeKLg.js","assets/input-CBUMH1Jl.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/iam-3D5jlLAz.js","assets/commandBuilder-D4HJ1FUj.js","assets/json-CeLiNx_J.js","assets/page-heading-vksh_67w.js","assets/admin-sWEcUPHY.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/ami-details-D-jFY8_1.js","assets/gpu-instance-type-select-BhiDEfOH.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{a as r,c as i,s as a}from"./ec2-BzWGOxUI.js";var o=e(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.query({...a(t.id),staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`})]),o=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.query({...r(o),staleTime:`static`}),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BuyBs1hH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60])),`component`)});export{o as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CIkBAv7u.js","assets/compiler-runtime-D_vZfn79.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/check-BO7W8OSs.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/copy-CamWo-pg.js","assets/network-RAx0KOlf.js","assets/rotate-cw-FTUcK_f-.js","assets/trash-DVab4pEz.js","assets/triangle-alert-DcjzeKLg.js","assets/input-CBUMH1Jl.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/iam-3D5jlLAz.js","assets/commandBuilder-D4HJ1FUj.js","assets/json-CeLiNx_J.js","assets/page-heading-vksh_67w.js","assets/admin-sWEcUPHY.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/ami-details-D-jFY8_1.js","assets/gpu-instance-type-select-BhiDEfOH.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{a as r,c as i,s as a}from"./ec2-BzWGOxUI.js";var o=e(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.query({...a(t.id),staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`})]),o=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.query({...r(o),staleTime:`static`}),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CIkBAv7u.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60])),`component`)});export{o as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BK8ACEVr.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CI0L8b6B.js similarity index 97% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BK8ACEVr.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CI0L8b6B.js index 30c662a7f..fd2b4ec3f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BK8ACEVr.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CI0L8b6B.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{an as a}from"./cluster-config-DNNpxkEw.js";import{t as o}from"./back-link-wsXUoJ12.js";import{t as s}from"./trash-DVab4pEz.js";import{t as c}from"./button-C9VMD5Xn.js";import{f as l}from"./ec2-BzWGOxUI.js";import{O as u}from"./ec2-B8rwH6Fi.js";import{t as d}from"./_id-BPFJvgT0.js";import{t as f}from"./page-heading-vksh_67w.js";import{t as p}from"./error-banner-DeOeVBKS.js";import{t as m}from"./delete-confirmation-dialog-8byauM7I.js";import{n as h,t as g}from"./detail-row-DNBRlVeK.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=i(),{data:n}=r(l(e)),y=n.KeyPairs?.[0],b=u(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=a(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(p,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(f,{actions:(0,v.jsxs)(c,{onClick:()=>{S(!0)},size:`sm`,variant:`destructive`,children:[(0,v.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{an as a}from"./cluster-config-DNNpxkEw.js";import{t as o}from"./back-link-wsXUoJ12.js";import{t as s}from"./trash-DVab4pEz.js";import{t as c}from"./button-C9VMD5Xn.js";import{f as l}from"./ec2-BzWGOxUI.js";import{O as u}from"./ec2-BXFEIaSs.js";import{t as d}from"./_id-CihXDo2a.js";import{t as f}from"./page-heading-vksh_67w.js";import{t as p}from"./error-banner-DeOeVBKS.js";import{t as m}from"./delete-confirmation-dialog-8byauM7I.js";import{n as h,t as g}from"./detail-row-DNBRlVeK.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=i(),{data:n}=r(l(e)),y=n.KeyPairs?.[0],b=u(),[x,S]=(0,_.useState)(!1),C=async()=>{try{await b.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})}finally{S(!1)}};if(!y?.KeyPairId)return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),(0,v.jsx)(`p`,{className:`text-muted-foreground`,children:`Key pair not found.`})]});let w=a(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(p,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(f,{actions:(0,v.jsxs)(c,{onClick:()=>{S(!0)},size:`sm`,variant:`destructive`,children:[(0,v.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Key Pair Details`,title:y.KeyName??``}),(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Key Pair Information`}),(0,v.jsxs)(h.Content,{children:[(0,v.jsx)(g,{label:`Key Pair ID`,value:y.KeyPairId}),(0,v.jsx)(g,{label:`Key Name`,value:y.KeyName}),(0,v.jsx)(g,{label:`Key Type`,value:y.KeyType}),(0,v.jsx)(g,{label:`Key Fingerprint`,value:y.KeyFingerprint}),(0,v.jsx)(g,{label:`Creation Date`,value:w})]})]}),y.Tags&&y.Tags.length>0&&(0,v.jsxs)(h,{children:[(0,v.jsx)(h.Header,{children:`Tags`}),(0,v.jsx)(h.Content,{children:y.Tags.map(e=>(0,v.jsx)(g,{label:e.Key??``,value:e.Value},e.Key))})]})]}),(0,v.jsx)(m,{description:`Are you sure you want to delete the key pair "${y.KeyName}"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.`,isPending:b.isPending,onConfirm:C,onOpenChange:S,open:x,title:`Delete Key Pair`})]})}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BuyBs1hH.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CIkBAv7u.js similarity index 99% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BuyBs1hH.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CIkBAv7u.js index e73a00b10..744ee6314 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BuyBs1hH.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CIkBAv7u.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useQuery-2EKf7AyV.js";import{t as a}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as o}from"./link-BokOReHc.js";import{an as s,sn as c}from"./cluster-config-DNNpxkEw.js";import{t as l}from"./createLucideIcon-BQgzNCBR.js";import{t as u}from"./back-link-wsXUoJ12.js";import{t as d}from"./check-BO7W8OSs.js";import{c as f,i as p,n as m,s as h,t as g}from"./select-sbVkpt-r.js";import{t as _}from"./copy-CamWo-pg.js";import{t as v}from"./network-RAx0KOlf.js";import{t as y}from"./rotate-cw-FTUcK_f-.js";import{t as b}from"./trash-DVab4pEz.js";import{t as x}from"./triangle-alert-DcjzeKLg.js";import{t as S}from"./button-C9VMD5Xn.js";import{t as C}from"./input-CBUMH1Jl.js";import{n as w}from"./admin-context-CDHgX8i9.js";import{a as T,c as E,i as D,s as O}from"./ec2-BzWGOxUI.js";import{J as k,K as A,W as j,Z as M,d as N,i as P,it as F,nt as I,rt as L}from"./ec2-B8rwH6Fi.js";import{f as ee}from"./iam-3D5jlLAz.js";import{t as te}from"./_id-DJPhi_l2.js";import{t as ne}from"./page-heading-vksh_67w.js";import{o as re}from"./admin-sWEcUPHY.js";import{t as R}from"./error-banner-DeOeVBKS.js";import{s as ie,t as ae}from"./field-BKQO3cRo.js";import{t as oe}from"./textarea-CTBs9AlF.js";import{a as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me}from"./alert-dialog-Da3OTbL9.js";import{t as he}from"./delete-confirmation-dialog-8byauM7I.js";import{n as z,t as B}from"./detail-row-DNBRlVeK.js";import{t as ge}from"./state-badge-BbpKF1NE.js";import{t as V}from"./use-copy-to-clipboard-DjiD3qo6.js";import{t as _e}from"./ami-details-D-jFY8_1.js";import{t as ve}from"./gpu-instance-type-select-BhiDEfOH.js";var H={name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]};H.node;var ye=l(H),be={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};be.node;var xe=l(be),Se={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};Se.node;var Ce=l(Se),we={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};we.node;var U=l(we),W={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};W.node;var Te=l(W),G={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};G.node;var Ee=l(G),K=r(),q=t(n(),1),J=e();function De(e){let t=(0,K.c)(36),{instanceId:n,open:r,onOpenChange:i}=e,a=N(),[o,s]=(0,q.useState)(``),[c,l]=(0,q.useState)(``),[u,d]=(0,q.useState)(null),f;t[0]===i?f=t[1]:(f=function(e){e||(s(``),l(``),d(null)),i(e)},t[0]=i,t[1]=f);let p=f,m;t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==n?(m=async function(){try{let e=await a.mutateAsync({instanceId:n,name:o,description:c||void 0});d(e.ImageId??null),s(``),l(``)}catch{}},t[2]=a,t[3]=c,t[4]=o,t[5]=n,t[6]=m):m=t[6];let h=m,g=u?`Image Created`:`Create Image (AMI)`,_;t[7]===g?_=t[8]:(_=(0,J.jsx)(le,{children:g}),t[7]=g,t[8]=_);let v=u?`Image "${u}" was created successfully.`:`Create an AMI from instance "${n}".`,y;t[9]===v?y=t[10]:(y=(0,J.jsx)(se,{children:v}),t[9]=v,t[10]=y);let b;t[11]!==_||t[12]!==y?(b=(0,J.jsxs)(pe,{children:[_,y]}),t[11]=_,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==u||t[15]!==c||t[16]!==o?(x=!u&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(ae,{children:[(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,J.jsx)(C,{id:`imageName`,onChange:e=>{s(e.target.value)},placeholder:`my-image`,value:o})]}),(0,J.jsxs)(ae,{children:[(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,J.jsx)(oe,{id:`imageDescription`,onChange:e=>{l(e.target.value)},placeholder:`Optional description`,rows:2,value:c})]})]}),t[14]=u,t[15]=c,t[16]=o,t[17]=x):x=t[17];let S=u?`Close`:`Cancel`,w;t[18]===S?w=t[19]:(w=(0,J.jsx)(fe,{children:S}),t[18]=S,t[19]=w);let T;t[20]!==a||t[21]!==u||t[22]!==h||t[23]!==o?(T=!u&&(0,J.jsx)(ue,{disabled:a.isPending||!o.trim(),onClick:h,children:a.isPending?`Creating…`:`Create Image`}),t[20]=a,t[21]=u,t[22]=h,t[23]=o,t[24]=T):T=t[24];let E;t[25]!==w||t[26]!==T?(E=(0,J.jsxs)(de,{children:[w,T]}),t[25]=w,t[26]=T,t[27]=E):E=t[27];let D;t[28]!==E||t[29]!==b||t[30]!==x?(D=(0,J.jsxs)(ce,{children:[b,x,E]}),t[28]=E,t[29]=b,t[30]=x,t[31]=D):D=t[31];let O;return t[32]!==p||t[33]!==r||t[34]!==D?(O=(0,J.jsx)(me,{onOpenChange:p,open:r,children:D}),t[32]=p,t[33]=r,t[34]=D,t[35]=O):O=t[35],O}function Oe(e){let t=(0,K.c)(9),{gpus:n}=e;if(!n?.length)return null;let r=n.length===1?`GPU`:`GPUs (${n.length})`,i;t[0]===r?i=t[1]:(i=(0,J.jsx)(z.Header,{children:r}),t[0]=r,t[1]=i);let a;if(t[2]!==n){let e;t[4]===n.length?e=t[5]:(e=(e,t)=>(0,J.jsxs)(`div`,{className:`border-b last:border-b-0`,children:[n.length>1&&(0,J.jsxs)(`h3`,{className:`bg-muted/30 px-4 py-2 text-sm font-medium`,children:[`GPU `,t+1]}),(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Model`,value:e.model}),(0,J.jsx)(B,{label:`VRAM`,value:c(e.vram_mib)}),(0,J.jsx)(B,{label:`Attachment`,value:e.profile?`MIG slice`:`PCIe passthrough`}),e.profile&&(0,J.jsx)(B,{label:`Profile`,value:e.profile}),e.mdev_path&&(0,J.jsx)(B,{label:`Mdev path`,value:e.mdev_path}),e.pci_address&&(0,J.jsx)(B,{label:`PCI address`,value:e.pci_address})]})]},e.mdev_path??e.pci_address??`${e.model}-${t}`),t[4]=n.length,t[5]=e),a=n.map(e),t[2]=n,t[3]=a}else a=t[3];let o;return t[6]!==i||t[7]!==a?(o=(0,J.jsxs)(z,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=o):o=t[8],o}function ke(e){let t=(0,K.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=D(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(ee),c=P(),l=j(),[u,d]=(0,q.useState)(``),p;t[2]===a?.IamInstanceProfileAssociations?p=t[3]:(p=a?.IamInstanceProfileAssociations?.find(X),t[2]=a?.IamInstanceProfileAssociations,t[3]=p);let _=p,v;t[4]===s?.InstanceProfiles?v=t[5]:(v=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=v);let y=v,b;t[6]!==c||t[7]!==n||t[8]!==u?(b=async()=>{u&&(await c.mutateAsync({instanceId:n,instanceProfileName:u}),d(``))},t[6]=c,t[7]=n,t[8]=u,t[9]=b):b=t[9];let x=b,C;t[10]!==_||t[11]!==l||t[12]!==n?(C=async()=>{_?.AssociationId&&await l.mutateAsync({associationId:_.AssociationId,instanceId:n})},t[10]=_,t[11]=l,t[12]=n,t[13]=C):C=t[13];let w=C,T;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,J.jsx)(z.Header,{children:`IAM Role`}),t[14]=T):T=t[14];let E;t[15]===c.error?E=t[16]:(E=c.error&&(0,J.jsx)(`div`,{className:`col-span-2`,children:(0,J.jsx)(R,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=E);let O;t[17]===l.error?O=t[18]:(O=l.error&&(0,J.jsx)(`div`,{className:`col-span-2`,children:(0,J.jsx)(R,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=O);let k;t[19]!==c.isPending||t[20]!==_||t[21]!==l.isPending||t[22]!==x||t[23]!==w||t[24]!==y||t[25]!==u?(k=_?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(B,{label:`Instance Profile ARN`,value:_.IamInstanceProfile?.Arn}),(0,J.jsx)(B,{label:`State`,value:(0,J.jsx)(ge,{state:_.State})}),(0,J.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,J.jsx)(S,{disabled:l.isPending,onClick:w,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,J.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),y.length>0?(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(g,{onValueChange:e=>{d(e??``)},value:u,children:[(0,J.jsx)(h,{className:`w-full`,children:(0,J.jsx)(f,{placeholder:`Select an instance profile`})}),(0,J.jsx)(m,{children:y.map(Y)})]}),(0,J.jsx)(S,{disabled:!u||c.isPending,onClick:x,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,J.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,J.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=_,t[21]=l.isPending,t[22]=x,t[23]=w,t[24]=y,t[25]=u,t[26]=k):k=t[26];let A;return t[27]!==E||t[28]!==O||t[29]!==k?(A=(0,J.jsxs)(z,{children:[T,(0,J.jsxs)(z.Content,{children:[E,O,k]})]}),t[27]=E,t[28]=O,t[29]=k,t[30]=A):A=t[30],A}function Y(e){return(0,J.jsx)(p,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function X(e){return e.State===`associating`||e.State===`associated`}var Ae=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function je(e){let t=(0,K.c)(43),{instanceId:n,state:r}=e,i=I(),a=L(),o=M(),s=F(),[c,l]=(0,q.useState)(!1),u=Ae.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>{l(!1)}})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,J.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,J.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,J.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,J.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,J.jsx)(R,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let h;t[9]===a.error?h=t[10]:(h=a.error&&(0,J.jsx)(R,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=h);let g;t[11]===o.error?g=t[12]:(g=o.error&&(0,J.jsx)(R,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=g);let _;t[13]===s.error?_=t[14]:(_=s.error&&(0,J.jsx)(R,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=_);let v;t[15]!==n||t[16]!==i||t[17]!==r?(v=r===`stopped`&&(0,J.jsxs)(S,{disabled:i.isPending,onClick:()=>{i.mutate(n)},size:`sm`,variant:`default`,children:[(0,J.jsx)(U,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=v):v=t[18];let x;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(x=r===`running`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(S,{disabled:a.isPending,onClick:()=>{a.mutate(n)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(Ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,J.jsxs)(S,{disabled:o.isPending,onClick:()=>{o.mutate(n)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(y,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=x):x=t[23];let C;t[24]!==r||t[25]!==s.isPending?(C=(r===`stopped`||r===`running`)&&(0,J.jsxs)(S,{disabled:s.isPending,onClick:()=>{l(!0)},size:`sm`,variant:`destructive`,children:[(0,J.jsx)(b,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=C):C=t[26];let w;t[27]!==v||t[28]!==x||t[29]!==C?(w=(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[v,x,C]}),t[27]=v,t[28]=x,t[29]=C,t[30]=w):w=t[30];let T=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,E;t[31]!==f||t[32]!==c||t[33]!==T||t[34]!==s.isPending?(E=(0,J.jsx)(he,{confirmLabel:`Terminate`,description:T,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=T,t[34]=s.isPending,t[35]=E):E=t[35];let D;return t[36]!==w||t[37]!==E||t[38]!==m||t[39]!==h||t[40]!==g||t[41]!==_?(D=(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,h,g,_,w,E]}),t[36]=w,t[37]=E,t[38]=m,t[39]=h,t[40]=g,t[41]=_,t[42]=D):D=t[42],D}var Z=[[`amazonlinux`,`ec2-user`],[`almalinux`,`almalinux`],[`oracle`,`cloud-user`],[`ubuntu`,`ubuntu`],[`debian`,`debian`],[`fedora`,`fedora`],[`centos`,`cloud-user`],[`alpine`,`alpine`],[`rocky`,`rocky`],[`amzn`,`ec2-user`],[`rhel`,`cloud-user`]];function Q(e){let t=new Set(`${e?.Name??``} ${e?.Description??``}`.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)),n=Z.find(([e])=>t.has(e));return n?{user:n[1],distro:n[0]}:{user:``}}function Me(e){return e?.PublicIpAddress?{address:e.PublicIpAddress,reachability:`public`}:e?.PrivateIpAddress?{address:e.PrivateIpAddress,reachability:`private`}:{address:``,reachability:`none`}}var Ne=`path/to/key.pem`;function Pe(e){return`ssh -i ${e.keyName?`path/to/${e.keyName}.pem`:Ne} ${e.user||``}@${e.address}`}function Fe(e){let t=(0,K.c)(49),{instance:n,image:r}=e,{copied:i,copy:a}=V(),o,s,c,l,u,f;if(t[0]!==r||t[1]!==n){u=Symbol.for(`react.early_return_sentinel`);bb0:{if({address:o,reachability:c}=Me(n),{user:f,distro:s}=Q(r),c===`none`){u=null;break bb0}l=Pe({keyName:n.KeyName,user:f,address:o})}t[0]=r,t[1]=n,t[2]=o,t[3]=s,t[4]=c,t[5]=l,t[6]=u,t[7]=f}else o=t[2],s=t[3],c=t[4],l=t[5],u=t[6],f=t[7];if(u!==Symbol.for(`react.early_return_sentinel`))return u;let p=l,m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(z.Header,{children:`Connect over SSH`}),t[8]=m):m=t[8];let h;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,J.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),t[9]=h):h=t[9];let g;t[10]===p?g=t[11]:(g=(0,J.jsx)(`span`,{className:`flex-1 overflow-x-auto whitespace-nowrap text-foreground`,children:p}),t[10]=p,t[11]=g);let y;t[12]!==p||t[13]!==a?(y=()=>{a(p)},t[12]=p,t[13]=a,t[14]=y):y=t[14];let b;t[15]===i?b=t[16]:(b=i?(0,J.jsx)(d,{className:`size-3.5 text-tactical-green`}):(0,J.jsx)(_,{className:`size-3.5`}),t[15]=i,t[16]=b);let S;t[17]!==y||t[18]!==b?(S=(0,J.jsx)(`button`,{"aria-label":`Copy SSH command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:y,type:`button`,children:b}),t[17]=y,t[18]=b,t[19]=S):S=t[19];let C;t[20]!==g||t[21]!==S?(C=(0,J.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[h,g,S]}),t[20]=g,t[21]=S,t[22]=C):C=t[22];let w;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Login user`}),t[23]=w):w=t[23];let T=f||`unknown — check the AMI`,E;t[24]===T?E=t[25]:(E=(0,J.jsxs)(`div`,{children:[w,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:T})]}),t[24]=T,t[25]=E);let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Address`}),t[26]=D):D=t[26];let O;t[27]===o?O=t[28]:(O=(0,J.jsxs)(`div`,{children:[D,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:o})]}),t[27]=o,t[28]=O);let k;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Key pair`}),t[29]=k):k=t[29];let A=n.KeyName??`none assigned`,j;t[30]===A?j=t[31]:(j=(0,J.jsxs)(`div`,{children:[k,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:A})]}),t[30]=A,t[31]=j);let M;t[32]!==E||t[33]!==O||t[34]!==j?(M=(0,J.jsxs)(`dl`,{className:`grid gap-x-6 gap-y-2 text-xs sm:grid-cols-3`,children:[E,O,j]}),t[32]=E,t[33]=O,t[34]=j,t[35]=M):M=t[35];let N;t[36]!==o||t[37]!==c?(N=c===`private`&&(0,J.jsxs)($,{tone:`amber`,icon:v,children:[`This instance has no public IP address, so`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:o}),` is reachable only from inside the VPC. Run the command from another instance in the same VPC whose security group allows it, or associate an Elastic IP with this one.`]}),t[36]=o,t[37]=c,t[38]=N):N=t[38];let P;t[39]!==s||t[40]!==f?(P=f?(0,J.jsxs)($,{tone:`muted`,icon:xe,children:[(0,J.jsx)(`span`,{className:`font-mono`,children:f}),` is the default login user for `,s,` images. It comes from the AMI itself — Spinifex does not create or rename the account — so an image built with a different default will want a different name here.`]}):(0,J.jsxs)($,{tone:`amber`,icon:x,children:[`The login user could not be determined from this AMI. Every distribution ships its own default —`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`ubuntu`}),`,`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`debian`}),`,`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`cloud-user`}),` on Oracle Linux and RHEL — so check the image's documentation before connecting.`]}),t[39]=s,t[40]=f,t[41]=P):P=t[41];let F;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,J.jsx)(`em`,{children:`you`}),t[42]=F):F=t[42];let I;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,J.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Spinifex stores only the public half of a key pair, so the path above is where `,F,` saved the private key when you created it. It must be readable only by you (`,(0,J.jsx)(`span`,{className:`font-mono`,children:`chmod 600`}),`), and the instance's security group must allow TCP 22 from wherever you are connecting.`]}),t[43]=I):I=t[43];let L;return t[44]!==M||t[45]!==N||t[46]!==P||t[47]!==C?(L=(0,J.jsxs)(z,{children:[m,(0,J.jsxs)(`div`,{className:`space-y-4 p-4`,children:[C,M,N,P,I]})]}),t[44]=M,t[45]=N,t[46]=P,t[47]=C,t[48]=L):L=t[48],L}var Ie={amber:`border-tactical-amber/40 bg-tactical-amber/5 text-tactical-amber`,muted:`border-border bg-muted/40 text-muted-foreground`};function $(e){let t=(0,K.c)(8),{tone:n,icon:r,children:i}=e,a=`flex items-start gap-2 rounded-md border p-3 ${Ie[n]}`,o;t[0]===r?o=t[1]:(o=(0,J.jsx)(r,{className:`mt-0.5 size-3.5 shrink-0`}),t[0]=r,t[1]=o);let s;t[2]===i?s=t[3]:(s=(0,J.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:i}),t[2]=i,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,J.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function Le(){let e=(0,K.c)(141),{id:t}=te.useParams(),{isAdmin:n}=w(),r;e[0]===t?r=e[1]:(r=O(t),e[0]=t,e[1]=r);let{data:c}=a(r),l=c.Reservations?.[0]?.Instances?.[0],d=l?.ImageId,f;e[2]===d?f=e[3]:(f=T(d),e[2]=d,e[3]=f);let{data:p}=a(f),m=p?.Images?.[0],{data:h}=a(E),g;e[4]===n?g=e[5]:(g={...re,enabled:n,refetchInterval:5e3},e[4]=n,e[5]=g);let{data:_}=i(g),v;e[6]!==t||e[7]!==_?.vms?(v=_?.vms?.find(e=>e.instance_id===t),e[6]=t,e[7]=_?.vms,e[8]=v):v=e[8];let y=v,b=k(),x=A(),[C,D]=(0,q.useState)(!1),[j,M]=(0,q.useState)(``),[N,P]=(0,q.useState)(!1),[F,I]=(0,q.useState)(null),[L,ee]=(0,q.useState)(!1);if(!l?.InstanceId){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,J.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]}),e[9]=t):t=e[9],t}let oe;e[10]===l.LaunchTime?oe=e[11]:(oe=s(l.LaunchTime),e[10]=l.LaunchTime,e[11]=oe);let he=oe,V=l.State?.Name===`running`,H=l.State?.Name===`stopped`,be;e[12]!==t||e[13]!==b||e[14]!==j?(be=async function(){try{await b.mutateAsync({instanceId:t,instanceType:j}),D(!1),M(``)}catch{}},e[12]=t,e[13]=b,e[14]=j,e[15]=be):be=e[15];let xe=be,Se;e[16]!==x||e[17]!==t?(Se=async function(){try{let e=await x.mutateAsync(t),n=e.Output?atob(e.Output):`(no output)`;I(n),P(!0)}catch{}},e[16]=x,e[17]=t,e[18]=Se):Se=e[18];let Ce=Se,we;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,J.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),e[19]=we):we=e[19];let U;e[20]===b.error?U=e[21]:(U=b.error&&(0,J.jsx)(R,{error:b.error,msg:`Failed to modify instance`}),e[20]=b.error,e[21]=U);let W;e[22]===x.error?W=e[23]:(W=x.error&&(0,J.jsx)(R,{error:x.error,msg:`Failed to get console output`}),e[22]=x.error,e[23]=W);let G;e[24]!==x.isPending||e[25]!==Ce||e[26]!==V?(G=V&&(0,J.jsxs)(S,{disabled:x.isPending,onClick:Ce,size:`sm`,variant:`outline`,children:[(0,J.jsx)(Ee,{className:`size-4`}),x.isPending?`Fetching…`:`View Console`]}),e[24]=x.isPending,e[25]=Ce,e[26]=V,e[27]=G):G=e[27];let Y;e[28]!==V||e[29]!==H?(Y=(V||H)&&(0,J.jsxs)(S,{onClick:()=>{ee(!0)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(ye,{className:`size-4`}),`Create Image`]}),e[28]=V,e[29]=H,e[30]=Y):Y=e[30];let X;e[31]!==l.InstanceType||e[32]!==H?(X=H&&(0,J.jsxs)(S,{onClick:()=>{M(l.InstanceType??``),D(!0)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(Te,{className:`size-4`}),`Modify Instance`]}),e[31]=l.InstanceType,e[32]=H,e[33]=X):X=e[33];let Ae=l.State?.Name,Z;e[34]===Ae?Z=e[35]:(Z=(0,J.jsx)(ge,{state:Ae}),e[34]=Ae,e[35]=Z);let Q;e[36]!==G||e[37]!==Y||e[38]!==X||e[39]!==Z?(Q=(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[G,Y,X,Z]}),e[36]=G,e[37]=Y,e[38]=X,e[39]=Z,e[40]=Q):Q=e[40];let Me;e[41]!==l.InstanceId||e[42]!==Q?(Me=(0,J.jsx)(ne,{actions:Q,subtitle:`Instance Details`,title:l.InstanceId}),e[41]=l.InstanceId,e[42]=Q,e[43]=Me):Me=e[43];let Ne=l.State?.Name,Pe;e[44]!==l.InstanceId||e[45]!==Ne?(Pe=(0,J.jsx)(je,{instanceId:l.InstanceId,state:Ne}),e[44]=l.InstanceId,e[45]=Ne,e[46]=Pe):Pe=e[46];let Ie;e[47]!==m||e[48]!==l||e[49]!==V?(Ie=V&&(0,J.jsx)(Fe,{image:m,instance:l}),e[47]=m,e[48]=l,e[49]=V,e[50]=Ie):Ie=e[50];let $;e[51]!==F||e[52]!==N?($=N&&F!==null&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,J.jsx)(S,{onClick:()=>{P(!1),I(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,J.jsx)(`div`,{className:`p-4`,children:(0,J.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:F})})]}),e[51]=F,e[52]=N,e[53]=$):$=e[53];let Le;e[54]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,J.jsx)(z.Header,{children:`Instance Information`}),e[54]=Le):Le=e[54];let Be;e[55]===l.InstanceId?Be=e[56]:(Be=(0,J.jsx)(B,{label:`Instance ID`,value:l.InstanceId}),e[55]=l.InstanceId,e[56]=Be);let Ve;e[57]===l.InstanceType?Ve=e[58]:(Ve=(0,J.jsx)(B,{label:`Instance Type`,value:l.InstanceType}),e[57]=l.InstanceType,e[58]=Ve);let He=l.State?.Name,Ue;e[59]===He?Ue=e[60]:(Ue=(0,J.jsx)(B,{label:`Instance State`,value:He}),e[59]=He,e[60]=Ue);let We;e[61]===l.State?.Code?We=e[62]:(We=l.State?.Code?.toString(),e[61]=l.State?.Code,e[62]=We);let Ge;e[63]===We?Ge=e[64]:(Ge=(0,J.jsx)(B,{label:`State Code`,value:We}),e[63]=We,e[64]=Ge);let Ke;e[65]===he?Ke=e[66]:(Ke=(0,J.jsx)(B,{label:`Launch Time`,value:he}),e[65]=he,e[66]=Ke);let qe=l.Placement?.AvailabilityZone,Je;e[67]===qe?Je=e[68]:(Je=(0,J.jsx)(B,{label:`Availability Zone`,value:qe}),e[67]=qe,e[68]=Je);let Ye;e[69]===l.Placement?Ye=e[70]:(Ye=l.Placement?.GroupName?(0,J.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:l.Placement.GroupName}):void 0,e[69]=l.Placement,e[70]=Ye);let Xe;e[71]===Ye?Xe=e[72]:(Xe=(0,J.jsx)(B,{label:`Placement Group`,value:Ye}),e[71]=Ye,e[72]=Xe);let Ze;e[73]!==Be||e[74]!==Ve||e[75]!==Ue||e[76]!==Ge||e[77]!==Ke||e[78]!==Je||e[79]!==Xe?(Ze=(0,J.jsxs)(z,{children:[Le,(0,J.jsxs)(z.Content,{children:[Be,Ve,Ue,Ge,Ke,Je,Xe]})]}),e[73]=Be,e[74]=Ve,e[75]=Ue,e[76]=Ge,e[77]=Ke,e[78]=Je,e[79]=Xe,e[80]=Ze):Ze=e[80];let Qe;e[81]!==l.KeyName||e[82]!==l.PrivateDnsName||e[83]!==l.PrivateIpAddress||e[84]!==l.PublicDnsName||e[85]!==l.PublicIpAddress||e[86]!==l.SecurityGroups||e[87]!==l.SubnetId||e[88]!==l.VpcId?(Qe=(l.PrivateIpAddress||l.PublicIpAddress||l.VpcId||l.SubnetId||l.SecurityGroups&&l.SecurityGroups.length>0)&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:`Network & Security`}),(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Private IP Address`,value:l.PrivateIpAddress}),(0,J.jsx)(B,{label:`Public IP Address`,value:l.PublicIpAddress}),(0,J.jsx)(B,{label:`Private DNS`,value:l.PrivateDnsName}),(0,J.jsx)(B,{label:`Public DNS`,value:l.PublicDnsName}),(0,J.jsx)(B,{label:`VPC ID`,value:l.VpcId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.VpcId},to:`/ec2/describe-vpcs/$id`,children:l.VpcId}):void 0}),(0,J.jsx)(B,{label:`Subnet ID`,value:l.SubnetId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.SubnetId},to:`/ec2/describe-subnets/$id`,children:l.SubnetId}):void 0}),(0,J.jsx)(B,{label:`Key Name`,value:l.KeyName}),(0,J.jsx)(B,{label:`Security Groups`,value:l.SecurityGroups?.map(ze).join(`, `)})]})]}),e[81]=l.KeyName,e[82]=l.PrivateDnsName,e[83]=l.PrivateIpAddress,e[84]=l.PublicDnsName,e[85]=l.PublicIpAddress,e[86]=l.SecurityGroups,e[87]=l.SubnetId,e[88]=l.VpcId,e[89]=Qe):Qe=e[89];let $e;e[90]===l.InstanceId?$e=e[91]:($e=(0,J.jsx)(ke,{instanceId:l.InstanceId}),e[90]=l.InstanceId,e[91]=$e);let et;e[92]!==n||e[93]!==y?.gpus?(et=n&&(0,J.jsx)(Oe,{gpus:y?.gpus}),e[92]=n,e[93]=y?.gpus,e[94]=et):et=e[94];let tt;e[95]===l.BlockDeviceMappings?tt=e[96]:(tt=l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:`Block Device Mappings`}),l.BlockDeviceMappings.map(Re)]}),e[95]=l.BlockDeviceMappings,e[96]=tt);let nt;e[97]===m?nt=e[98]:(nt=m&&(0,J.jsx)(_e,{image:m}),e[97]=m,e[98]=nt);let rt;e[99]!==Me||e[100]!==Pe||e[101]!==Ie||e[102]!==$||e[103]!==Ze||e[104]!==Qe||e[105]!==$e||e[106]!==et||e[107]!==tt||e[108]!==nt?(rt=(0,J.jsxs)(`div`,{className:`space-y-6`,children:[Me,Pe,Ie,$,Ze,Qe,$e,et,tt,nt]}),e[99]=Me,e[100]=Pe,e[101]=Ie,e[102]=$,e[103]=Ze,e[104]=Qe,e[105]=$e,e[106]=et,e[107]=tt,e[108]=nt,e[109]=rt):rt=e[109];let it;e[110]===Symbol.for(`react.memo_cache_sentinel`)?(it=e=>{e||(D(!1),M(``))},e[110]=it):it=e[110];let at;e[111]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,J.jsx)(le,{children:`Modify Instance`}),e[111]=at):at=e[111];let ot;e[112]===l.InstanceId?ot=e[113]:(ot=(0,J.jsxs)(pe,{children:[at,(0,J.jsxs)(se,{children:[`Select a new instance type for "`,l.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),e[112]=l.InstanceId,e[113]=ot);let st;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(st=(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),e[114]=st):st=e[114];let ct;e[115]===h.InstanceTypes?ct=e[116]:(ct=h.InstanceTypes??[],e[115]=h.InstanceTypes,e[116]=ct);let lt;e[117]!==j||e[118]!==ct?(lt=(0,J.jsxs)(ae,{children:[st,(0,J.jsx)(ve,{className:`w-full`,id:`instanceType`,instanceTypes:ct,onValueChange:M,value:j})]}),e[117]=j,e[118]=ct,e[119]=lt):lt=e[119];let ut;e[120]===Symbol.for(`react.memo_cache_sentinel`)?(ut=(0,J.jsx)(fe,{children:`Cancel`}),e[120]=ut):ut=e[120];let dt=b.isPending||!j||j===l.InstanceType,ft=b.isPending?`Saving…`:`Save Changes`,pt;e[121]!==xe||e[122]!==dt||e[123]!==ft?(pt=(0,J.jsxs)(de,{children:[ut,(0,J.jsx)(ue,{disabled:dt,onClick:xe,children:ft})]}),e[121]=xe,e[122]=dt,e[123]=ft,e[124]=pt):pt=e[124];let mt;e[125]!==ot||e[126]!==lt||e[127]!==pt?(mt=(0,J.jsxs)(ce,{children:[ot,lt,pt]}),e[125]=ot,e[126]=lt,e[127]=pt,e[128]=mt):mt=e[128];let ht;e[129]!==C||e[130]!==mt?(ht=(0,J.jsx)(me,{onOpenChange:it,open:C,children:mt}),e[129]=C,e[130]=mt,e[131]=ht):ht=e[131];let gt;e[132]!==l.InstanceId||e[133]!==L?(gt=(0,J.jsx)(De,{instanceId:l.InstanceId,onOpenChange:ee,open:L}),e[132]=l.InstanceId,e[133]=L,e[134]=gt):gt=e[134];let _t;return e[135]!==W||e[136]!==rt||e[137]!==ht||e[138]!==gt||e[139]!==U?(_t=(0,J.jsxs)(J.Fragment,{children:[we,U,W,rt,ht,gt]}),e[135]=W,e[136]=rt,e[137]=ht,e[138]=gt,e[139]=U,e[140]=_t):_t=e[140],_t}function Re(e){return(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Device Name`,value:e.DeviceName}),(0,J.jsx)(B,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,J.jsx)(B,{label:`Status`,value:e.Ebs?.Status}),(0,J.jsx)(B,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,J.jsx)(B,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName)}function ze(e){return e.GroupName}export{Le as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useQuery-2EKf7AyV.js";import{t as a}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as o}from"./link-BokOReHc.js";import{an as s,sn as c}from"./cluster-config-DNNpxkEw.js";import{t as l}from"./createLucideIcon-BQgzNCBR.js";import{t as u}from"./back-link-wsXUoJ12.js";import{t as d}from"./check-BO7W8OSs.js";import{c as f,i as p,n as m,s as h,t as g}from"./select-sbVkpt-r.js";import{t as _}from"./copy-CamWo-pg.js";import{t as v}from"./network-RAx0KOlf.js";import{t as y}from"./rotate-cw-FTUcK_f-.js";import{t as b}from"./trash-DVab4pEz.js";import{t as x}from"./triangle-alert-DcjzeKLg.js";import{t as S}from"./button-C9VMD5Xn.js";import{t as C}from"./input-CBUMH1Jl.js";import{n as w}from"./admin-context-CDHgX8i9.js";import{a as T,c as E,i as D,s as O}from"./ec2-BzWGOxUI.js";import{J as k,K as A,W as j,Z as M,d as N,i as P,it as F,nt as I,rt as L}from"./ec2-BXFEIaSs.js";import{f as ee}from"./iam-3D5jlLAz.js";import{t as te}from"./_id-CHbbEp3J.js";import{t as ne}from"./page-heading-vksh_67w.js";import{o as re}from"./admin-sWEcUPHY.js";import{t as R}from"./error-banner-DeOeVBKS.js";import{s as ie,t as ae}from"./field-BKQO3cRo.js";import{t as oe}from"./textarea-CTBs9AlF.js";import{a as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me}from"./alert-dialog-Da3OTbL9.js";import{t as he}from"./delete-confirmation-dialog-8byauM7I.js";import{n as z,t as B}from"./detail-row-DNBRlVeK.js";import{t as ge}from"./state-badge-BbpKF1NE.js";import{t as V}from"./use-copy-to-clipboard-DjiD3qo6.js";import{t as _e}from"./ami-details-D-jFY8_1.js";import{t as ve}from"./gpu-instance-type-select-BhiDEfOH.js";var H={name:`image-plus`,size:24,node:[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]};H.node;var ye=l(H),be={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};be.node;var xe=l(be),Se={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};Se.node;var Ce=l(Se),we={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};we.node;var U=l(we),W={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};W.node;var Te=l(W),G={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};G.node;var Ee=l(G),K=r(),q=t(n(),1),J=e();function De(e){let t=(0,K.c)(36),{instanceId:n,open:r,onOpenChange:i}=e,a=N(),[o,s]=(0,q.useState)(``),[c,l]=(0,q.useState)(``),[u,d]=(0,q.useState)(null),f;t[0]===i?f=t[1]:(f=function(e){e||(s(``),l(``),d(null)),i(e)},t[0]=i,t[1]=f);let p=f,m;t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==n?(m=async function(){try{let e=await a.mutateAsync({instanceId:n,name:o,description:c||void 0});d(e.ImageId??null),s(``),l(``)}catch{}},t[2]=a,t[3]=c,t[4]=o,t[5]=n,t[6]=m):m=t[6];let h=m,g=u?`Image Created`:`Create Image (AMI)`,_;t[7]===g?_=t[8]:(_=(0,J.jsx)(le,{children:g}),t[7]=g,t[8]=_);let v=u?`Image "${u}" was created successfully.`:`Create an AMI from instance "${n}".`,y;t[9]===v?y=t[10]:(y=(0,J.jsx)(se,{children:v}),t[9]=v,t[10]=y);let b;t[11]!==_||t[12]!==y?(b=(0,J.jsxs)(pe,{children:[_,y]}),t[11]=_,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==u||t[15]!==c||t[16]!==o?(x=!u&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(ae,{children:[(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,J.jsx)(C,{id:`imageName`,onChange:e=>{s(e.target.value)},placeholder:`my-image`,value:o})]}),(0,J.jsxs)(ae,{children:[(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,J.jsx)(oe,{id:`imageDescription`,onChange:e=>{l(e.target.value)},placeholder:`Optional description`,rows:2,value:c})]})]}),t[14]=u,t[15]=c,t[16]=o,t[17]=x):x=t[17];let S=u?`Close`:`Cancel`,w;t[18]===S?w=t[19]:(w=(0,J.jsx)(fe,{children:S}),t[18]=S,t[19]=w);let T;t[20]!==a||t[21]!==u||t[22]!==h||t[23]!==o?(T=!u&&(0,J.jsx)(ue,{disabled:a.isPending||!o.trim(),onClick:h,children:a.isPending?`Creating…`:`Create Image`}),t[20]=a,t[21]=u,t[22]=h,t[23]=o,t[24]=T):T=t[24];let E;t[25]!==w||t[26]!==T?(E=(0,J.jsxs)(de,{children:[w,T]}),t[25]=w,t[26]=T,t[27]=E):E=t[27];let D;t[28]!==E||t[29]!==b||t[30]!==x?(D=(0,J.jsxs)(ce,{children:[b,x,E]}),t[28]=E,t[29]=b,t[30]=x,t[31]=D):D=t[31];let O;return t[32]!==p||t[33]!==r||t[34]!==D?(O=(0,J.jsx)(me,{onOpenChange:p,open:r,children:D}),t[32]=p,t[33]=r,t[34]=D,t[35]=O):O=t[35],O}function Oe(e){let t=(0,K.c)(9),{gpus:n}=e;if(!n?.length)return null;let r=n.length===1?`GPU`:`GPUs (${n.length})`,i;t[0]===r?i=t[1]:(i=(0,J.jsx)(z.Header,{children:r}),t[0]=r,t[1]=i);let a;if(t[2]!==n){let e;t[4]===n.length?e=t[5]:(e=(e,t)=>(0,J.jsxs)(`div`,{className:`border-b last:border-b-0`,children:[n.length>1&&(0,J.jsxs)(`h3`,{className:`bg-muted/30 px-4 py-2 text-sm font-medium`,children:[`GPU `,t+1]}),(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Model`,value:e.model}),(0,J.jsx)(B,{label:`VRAM`,value:c(e.vram_mib)}),(0,J.jsx)(B,{label:`Attachment`,value:e.profile?`MIG slice`:`PCIe passthrough`}),e.profile&&(0,J.jsx)(B,{label:`Profile`,value:e.profile}),e.mdev_path&&(0,J.jsx)(B,{label:`Mdev path`,value:e.mdev_path}),e.pci_address&&(0,J.jsx)(B,{label:`PCI address`,value:e.pci_address})]})]},e.mdev_path??e.pci_address??`${e.model}-${t}`),t[4]=n.length,t[5]=e),a=n.map(e),t[2]=n,t[3]=a}else a=t[3];let o;return t[6]!==i||t[7]!==a?(o=(0,J.jsxs)(z,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=o):o=t[8],o}function ke(e){let t=(0,K.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=D(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(ee),c=P(),l=j(),[u,d]=(0,q.useState)(``),p;t[2]===a?.IamInstanceProfileAssociations?p=t[3]:(p=a?.IamInstanceProfileAssociations?.find(X),t[2]=a?.IamInstanceProfileAssociations,t[3]=p);let _=p,v;t[4]===s?.InstanceProfiles?v=t[5]:(v=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=v);let y=v,b;t[6]!==c||t[7]!==n||t[8]!==u?(b=async()=>{u&&(await c.mutateAsync({instanceId:n,instanceProfileName:u}),d(``))},t[6]=c,t[7]=n,t[8]=u,t[9]=b):b=t[9];let x=b,C;t[10]!==_||t[11]!==l||t[12]!==n?(C=async()=>{_?.AssociationId&&await l.mutateAsync({associationId:_.AssociationId,instanceId:n})},t[10]=_,t[11]=l,t[12]=n,t[13]=C):C=t[13];let w=C,T;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,J.jsx)(z.Header,{children:`IAM Role`}),t[14]=T):T=t[14];let E;t[15]===c.error?E=t[16]:(E=c.error&&(0,J.jsx)(`div`,{className:`col-span-2`,children:(0,J.jsx)(R,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=E);let O;t[17]===l.error?O=t[18]:(O=l.error&&(0,J.jsx)(`div`,{className:`col-span-2`,children:(0,J.jsx)(R,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=O);let k;t[19]!==c.isPending||t[20]!==_||t[21]!==l.isPending||t[22]!==x||t[23]!==w||t[24]!==y||t[25]!==u?(k=_?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(B,{label:`Instance Profile ARN`,value:_.IamInstanceProfile?.Arn}),(0,J.jsx)(B,{label:`State`,value:(0,J.jsx)(ge,{state:_.State})}),(0,J.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,J.jsx)(S,{disabled:l.isPending,onClick:w,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,J.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),y.length>0?(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(g,{onValueChange:e=>{d(e??``)},value:u,children:[(0,J.jsx)(h,{className:`w-full`,children:(0,J.jsx)(f,{placeholder:`Select an instance profile`})}),(0,J.jsx)(m,{children:y.map(Y)})]}),(0,J.jsx)(S,{disabled:!u||c.isPending,onClick:x,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,J.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,J.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=_,t[21]=l.isPending,t[22]=x,t[23]=w,t[24]=y,t[25]=u,t[26]=k):k=t[26];let A;return t[27]!==E||t[28]!==O||t[29]!==k?(A=(0,J.jsxs)(z,{children:[T,(0,J.jsxs)(z.Content,{children:[E,O,k]})]}),t[27]=E,t[28]=O,t[29]=k,t[30]=A):A=t[30],A}function Y(e){return(0,J.jsx)(p,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function X(e){return e.State===`associating`||e.State===`associated`}var Ae=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function je(e){let t=(0,K.c)(43),{instanceId:n,state:r}=e,i=I(),a=L(),o=M(),s=F(),[c,l]=(0,q.useState)(!1),u=Ae.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>{l(!1)}})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,J.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,J.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,J.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,J.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,J.jsx)(R,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let h;t[9]===a.error?h=t[10]:(h=a.error&&(0,J.jsx)(R,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=h);let g;t[11]===o.error?g=t[12]:(g=o.error&&(0,J.jsx)(R,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=g);let _;t[13]===s.error?_=t[14]:(_=s.error&&(0,J.jsx)(R,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=_);let v;t[15]!==n||t[16]!==i||t[17]!==r?(v=r===`stopped`&&(0,J.jsxs)(S,{disabled:i.isPending,onClick:()=>{i.mutate(n)},size:`sm`,variant:`default`,children:[(0,J.jsx)(U,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=v):v=t[18];let x;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(x=r===`running`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(S,{disabled:a.isPending,onClick:()=>{a.mutate(n)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(Ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,J.jsxs)(S,{disabled:o.isPending,onClick:()=>{o.mutate(n)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(y,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=x):x=t[23];let C;t[24]!==r||t[25]!==s.isPending?(C=(r===`stopped`||r===`running`)&&(0,J.jsxs)(S,{disabled:s.isPending,onClick:()=>{l(!0)},size:`sm`,variant:`destructive`,children:[(0,J.jsx)(b,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=C):C=t[26];let w;t[27]!==v||t[28]!==x||t[29]!==C?(w=(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[v,x,C]}),t[27]=v,t[28]=x,t[29]=C,t[30]=w):w=t[30];let T=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,E;t[31]!==f||t[32]!==c||t[33]!==T||t[34]!==s.isPending?(E=(0,J.jsx)(he,{confirmLabel:`Terminate`,description:T,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=T,t[34]=s.isPending,t[35]=E):E=t[35];let D;return t[36]!==w||t[37]!==E||t[38]!==m||t[39]!==h||t[40]!==g||t[41]!==_?(D=(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,h,g,_,w,E]}),t[36]=w,t[37]=E,t[38]=m,t[39]=h,t[40]=g,t[41]=_,t[42]=D):D=t[42],D}var Z=[[`amazonlinux`,`ec2-user`],[`almalinux`,`almalinux`],[`oracle`,`cloud-user`],[`ubuntu`,`ubuntu`],[`debian`,`debian`],[`fedora`,`fedora`],[`centos`,`cloud-user`],[`alpine`,`alpine`],[`rocky`,`rocky`],[`amzn`,`ec2-user`],[`rhel`,`cloud-user`]];function Q(e){let t=new Set(`${e?.Name??``} ${e?.Description??``}`.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)),n=Z.find(([e])=>t.has(e));return n?{user:n[1],distro:n[0]}:{user:``}}function Me(e){return e?.PublicIpAddress?{address:e.PublicIpAddress,reachability:`public`}:e?.PrivateIpAddress?{address:e.PrivateIpAddress,reachability:`private`}:{address:``,reachability:`none`}}var Ne=`path/to/key.pem`;function Pe(e){return`ssh -i ${e.keyName?`path/to/${e.keyName}.pem`:Ne} ${e.user||``}@${e.address}`}function Fe(e){let t=(0,K.c)(49),{instance:n,image:r}=e,{copied:i,copy:a}=V(),o,s,c,l,u,f;if(t[0]!==r||t[1]!==n){u=Symbol.for(`react.early_return_sentinel`);bb0:{if({address:o,reachability:c}=Me(n),{user:f,distro:s}=Q(r),c===`none`){u=null;break bb0}l=Pe({keyName:n.KeyName,user:f,address:o})}t[0]=r,t[1]=n,t[2]=o,t[3]=s,t[4]=c,t[5]=l,t[6]=u,t[7]=f}else o=t[2],s=t[3],c=t[4],l=t[5],u=t[6],f=t[7];if(u!==Symbol.for(`react.early_return_sentinel`))return u;let p=l,m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(z.Header,{children:`Connect over SSH`}),t[8]=m):m=t[8];let h;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,J.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),t[9]=h):h=t[9];let g;t[10]===p?g=t[11]:(g=(0,J.jsx)(`span`,{className:`flex-1 overflow-x-auto whitespace-nowrap text-foreground`,children:p}),t[10]=p,t[11]=g);let y;t[12]!==p||t[13]!==a?(y=()=>{a(p)},t[12]=p,t[13]=a,t[14]=y):y=t[14];let b;t[15]===i?b=t[16]:(b=i?(0,J.jsx)(d,{className:`size-3.5 text-tactical-green`}):(0,J.jsx)(_,{className:`size-3.5`}),t[15]=i,t[16]=b);let S;t[17]!==y||t[18]!==b?(S=(0,J.jsx)(`button`,{"aria-label":`Copy SSH command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:y,type:`button`,children:b}),t[17]=y,t[18]=b,t[19]=S):S=t[19];let C;t[20]!==g||t[21]!==S?(C=(0,J.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[h,g,S]}),t[20]=g,t[21]=S,t[22]=C):C=t[22];let w;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Login user`}),t[23]=w):w=t[23];let T=f||`unknown — check the AMI`,E;t[24]===T?E=t[25]:(E=(0,J.jsxs)(`div`,{children:[w,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:T})]}),t[24]=T,t[25]=E);let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Address`}),t[26]=D):D=t[26];let O;t[27]===o?O=t[28]:(O=(0,J.jsxs)(`div`,{children:[D,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:o})]}),t[27]=o,t[28]=O);let k;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,J.jsx)(`dt`,{className:`text-muted-foreground`,children:`Key pair`}),t[29]=k):k=t[29];let A=n.KeyName??`none assigned`,j;t[30]===A?j=t[31]:(j=(0,J.jsxs)(`div`,{children:[k,(0,J.jsx)(`dd`,{className:`font-mono text-foreground`,children:A})]}),t[30]=A,t[31]=j);let M;t[32]!==E||t[33]!==O||t[34]!==j?(M=(0,J.jsxs)(`dl`,{className:`grid gap-x-6 gap-y-2 text-xs sm:grid-cols-3`,children:[E,O,j]}),t[32]=E,t[33]=O,t[34]=j,t[35]=M):M=t[35];let N;t[36]!==o||t[37]!==c?(N=c===`private`&&(0,J.jsxs)($,{tone:`amber`,icon:v,children:[`This instance has no public IP address, so`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:o}),` is reachable only from inside the VPC. Run the command from another instance in the same VPC whose security group allows it, or associate an Elastic IP with this one.`]}),t[36]=o,t[37]=c,t[38]=N):N=t[38];let P;t[39]!==s||t[40]!==f?(P=f?(0,J.jsxs)($,{tone:`muted`,icon:xe,children:[(0,J.jsx)(`span`,{className:`font-mono`,children:f}),` is the default login user for `,s,` images. It comes from the AMI itself — Spinifex does not create or rename the account — so an image built with a different default will want a different name here.`]}):(0,J.jsxs)($,{tone:`amber`,icon:x,children:[`The login user could not be determined from this AMI. Every distribution ships its own default —`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`ubuntu`}),`,`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`debian`}),`,`,` `,(0,J.jsx)(`span`,{className:`font-mono`,children:`cloud-user`}),` on Oracle Linux and RHEL — so check the image's documentation before connecting.`]}),t[39]=s,t[40]=f,t[41]=P):P=t[41];let F;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,J.jsx)(`em`,{children:`you`}),t[42]=F):F=t[42];let I;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,J.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Spinifex stores only the public half of a key pair, so the path above is where `,F,` saved the private key when you created it. It must be readable only by you (`,(0,J.jsx)(`span`,{className:`font-mono`,children:`chmod 600`}),`), and the instance's security group must allow TCP 22 from wherever you are connecting.`]}),t[43]=I):I=t[43];let L;return t[44]!==M||t[45]!==N||t[46]!==P||t[47]!==C?(L=(0,J.jsxs)(z,{children:[m,(0,J.jsxs)(`div`,{className:`space-y-4 p-4`,children:[C,M,N,P,I]})]}),t[44]=M,t[45]=N,t[46]=P,t[47]=C,t[48]=L):L=t[48],L}var Ie={amber:`border-tactical-amber/40 bg-tactical-amber/5 text-tactical-amber`,muted:`border-border bg-muted/40 text-muted-foreground`};function $(e){let t=(0,K.c)(8),{tone:n,icon:r,children:i}=e,a=`flex items-start gap-2 rounded-md border p-3 ${Ie[n]}`,o;t[0]===r?o=t[1]:(o=(0,J.jsx)(r,{className:`mt-0.5 size-3.5 shrink-0`}),t[0]=r,t[1]=o);let s;t[2]===i?s=t[3]:(s=(0,J.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:i}),t[2]=i,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,J.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function Le(){let e=(0,K.c)(141),{id:t}=te.useParams(),{isAdmin:n}=w(),r;e[0]===t?r=e[1]:(r=O(t),e[0]=t,e[1]=r);let{data:c}=a(r),l=c.Reservations?.[0]?.Instances?.[0],d=l?.ImageId,f;e[2]===d?f=e[3]:(f=T(d),e[2]=d,e[3]=f);let{data:p}=a(f),m=p?.Images?.[0],{data:h}=a(E),g;e[4]===n?g=e[5]:(g={...re,enabled:n,refetchInterval:5e3},e[4]=n,e[5]=g);let{data:_}=i(g),v;e[6]!==t||e[7]!==_?.vms?(v=_?.vms?.find(e=>e.instance_id===t),e[6]=t,e[7]=_?.vms,e[8]=v):v=e[8];let y=v,b=k(),x=A(),[C,D]=(0,q.useState)(!1),[j,M]=(0,q.useState)(``),[N,P]=(0,q.useState)(!1),[F,I]=(0,q.useState)(null),[L,ee]=(0,q.useState)(!1);if(!l?.InstanceId){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,J.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]}),e[9]=t):t=e[9],t}let oe;e[10]===l.LaunchTime?oe=e[11]:(oe=s(l.LaunchTime),e[10]=l.LaunchTime,e[11]=oe);let he=oe,V=l.State?.Name===`running`,H=l.State?.Name===`stopped`,be;e[12]!==t||e[13]!==b||e[14]!==j?(be=async function(){try{await b.mutateAsync({instanceId:t,instanceType:j}),D(!1),M(``)}catch{}},e[12]=t,e[13]=b,e[14]=j,e[15]=be):be=e[15];let xe=be,Se;e[16]!==x||e[17]!==t?(Se=async function(){try{let e=await x.mutateAsync(t),n=e.Output?atob(e.Output):`(no output)`;I(n),P(!0)}catch{}},e[16]=x,e[17]=t,e[18]=Se):Se=e[18];let Ce=Se,we;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,J.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),e[19]=we):we=e[19];let U;e[20]===b.error?U=e[21]:(U=b.error&&(0,J.jsx)(R,{error:b.error,msg:`Failed to modify instance`}),e[20]=b.error,e[21]=U);let W;e[22]===x.error?W=e[23]:(W=x.error&&(0,J.jsx)(R,{error:x.error,msg:`Failed to get console output`}),e[22]=x.error,e[23]=W);let G;e[24]!==x.isPending||e[25]!==Ce||e[26]!==V?(G=V&&(0,J.jsxs)(S,{disabled:x.isPending,onClick:Ce,size:`sm`,variant:`outline`,children:[(0,J.jsx)(Ee,{className:`size-4`}),x.isPending?`Fetching…`:`View Console`]}),e[24]=x.isPending,e[25]=Ce,e[26]=V,e[27]=G):G=e[27];let Y;e[28]!==V||e[29]!==H?(Y=(V||H)&&(0,J.jsxs)(S,{onClick:()=>{ee(!0)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(ye,{className:`size-4`}),`Create Image`]}),e[28]=V,e[29]=H,e[30]=Y):Y=e[30];let X;e[31]!==l.InstanceType||e[32]!==H?(X=H&&(0,J.jsxs)(S,{onClick:()=>{M(l.InstanceType??``),D(!0)},size:`sm`,variant:`outline`,children:[(0,J.jsx)(Te,{className:`size-4`}),`Modify Instance`]}),e[31]=l.InstanceType,e[32]=H,e[33]=X):X=e[33];let Ae=l.State?.Name,Z;e[34]===Ae?Z=e[35]:(Z=(0,J.jsx)(ge,{state:Ae}),e[34]=Ae,e[35]=Z);let Q;e[36]!==G||e[37]!==Y||e[38]!==X||e[39]!==Z?(Q=(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[G,Y,X,Z]}),e[36]=G,e[37]=Y,e[38]=X,e[39]=Z,e[40]=Q):Q=e[40];let Me;e[41]!==l.InstanceId||e[42]!==Q?(Me=(0,J.jsx)(ne,{actions:Q,subtitle:`Instance Details`,title:l.InstanceId}),e[41]=l.InstanceId,e[42]=Q,e[43]=Me):Me=e[43];let Ne=l.State?.Name,Pe;e[44]!==l.InstanceId||e[45]!==Ne?(Pe=(0,J.jsx)(je,{instanceId:l.InstanceId,state:Ne}),e[44]=l.InstanceId,e[45]=Ne,e[46]=Pe):Pe=e[46];let Ie;e[47]!==m||e[48]!==l||e[49]!==V?(Ie=V&&(0,J.jsx)(Fe,{image:m,instance:l}),e[47]=m,e[48]=l,e[49]=V,e[50]=Ie):Ie=e[50];let $;e[51]!==F||e[52]!==N?($=N&&F!==null&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,J.jsx)(S,{onClick:()=>{P(!1),I(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,J.jsx)(`div`,{className:`p-4`,children:(0,J.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:F})})]}),e[51]=F,e[52]=N,e[53]=$):$=e[53];let Le;e[54]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,J.jsx)(z.Header,{children:`Instance Information`}),e[54]=Le):Le=e[54];let Be;e[55]===l.InstanceId?Be=e[56]:(Be=(0,J.jsx)(B,{label:`Instance ID`,value:l.InstanceId}),e[55]=l.InstanceId,e[56]=Be);let Ve;e[57]===l.InstanceType?Ve=e[58]:(Ve=(0,J.jsx)(B,{label:`Instance Type`,value:l.InstanceType}),e[57]=l.InstanceType,e[58]=Ve);let He=l.State?.Name,Ue;e[59]===He?Ue=e[60]:(Ue=(0,J.jsx)(B,{label:`Instance State`,value:He}),e[59]=He,e[60]=Ue);let We;e[61]===l.State?.Code?We=e[62]:(We=l.State?.Code?.toString(),e[61]=l.State?.Code,e[62]=We);let Ge;e[63]===We?Ge=e[64]:(Ge=(0,J.jsx)(B,{label:`State Code`,value:We}),e[63]=We,e[64]=Ge);let Ke;e[65]===he?Ke=e[66]:(Ke=(0,J.jsx)(B,{label:`Launch Time`,value:he}),e[65]=he,e[66]=Ke);let qe=l.Placement?.AvailabilityZone,Je;e[67]===qe?Je=e[68]:(Je=(0,J.jsx)(B,{label:`Availability Zone`,value:qe}),e[67]=qe,e[68]=Je);let Ye;e[69]===l.Placement?Ye=e[70]:(Ye=l.Placement?.GroupName?(0,J.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:l.Placement.GroupName}):void 0,e[69]=l.Placement,e[70]=Ye);let Xe;e[71]===Ye?Xe=e[72]:(Xe=(0,J.jsx)(B,{label:`Placement Group`,value:Ye}),e[71]=Ye,e[72]=Xe);let Ze;e[73]!==Be||e[74]!==Ve||e[75]!==Ue||e[76]!==Ge||e[77]!==Ke||e[78]!==Je||e[79]!==Xe?(Ze=(0,J.jsxs)(z,{children:[Le,(0,J.jsxs)(z.Content,{children:[Be,Ve,Ue,Ge,Ke,Je,Xe]})]}),e[73]=Be,e[74]=Ve,e[75]=Ue,e[76]=Ge,e[77]=Ke,e[78]=Je,e[79]=Xe,e[80]=Ze):Ze=e[80];let Qe;e[81]!==l.KeyName||e[82]!==l.PrivateDnsName||e[83]!==l.PrivateIpAddress||e[84]!==l.PublicDnsName||e[85]!==l.PublicIpAddress||e[86]!==l.SecurityGroups||e[87]!==l.SubnetId||e[88]!==l.VpcId?(Qe=(l.PrivateIpAddress||l.PublicIpAddress||l.VpcId||l.SubnetId||l.SecurityGroups&&l.SecurityGroups.length>0)&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:`Network & Security`}),(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Private IP Address`,value:l.PrivateIpAddress}),(0,J.jsx)(B,{label:`Public IP Address`,value:l.PublicIpAddress}),(0,J.jsx)(B,{label:`Private DNS`,value:l.PrivateDnsName}),(0,J.jsx)(B,{label:`Public DNS`,value:l.PublicDnsName}),(0,J.jsx)(B,{label:`VPC ID`,value:l.VpcId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.VpcId},to:`/ec2/describe-vpcs/$id`,children:l.VpcId}):void 0}),(0,J.jsx)(B,{label:`Subnet ID`,value:l.SubnetId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.SubnetId},to:`/ec2/describe-subnets/$id`,children:l.SubnetId}):void 0}),(0,J.jsx)(B,{label:`Key Name`,value:l.KeyName}),(0,J.jsx)(B,{label:`Security Groups`,value:l.SecurityGroups?.map(ze).join(`, `)})]})]}),e[81]=l.KeyName,e[82]=l.PrivateDnsName,e[83]=l.PrivateIpAddress,e[84]=l.PublicDnsName,e[85]=l.PublicIpAddress,e[86]=l.SecurityGroups,e[87]=l.SubnetId,e[88]=l.VpcId,e[89]=Qe):Qe=e[89];let $e;e[90]===l.InstanceId?$e=e[91]:($e=(0,J.jsx)(ke,{instanceId:l.InstanceId}),e[90]=l.InstanceId,e[91]=$e);let et;e[92]!==n||e[93]!==y?.gpus?(et=n&&(0,J.jsx)(Oe,{gpus:y?.gpus}),e[92]=n,e[93]=y?.gpus,e[94]=et):et=e[94];let tt;e[95]===l.BlockDeviceMappings?tt=e[96]:(tt=l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&(0,J.jsxs)(z,{children:[(0,J.jsx)(z.Header,{children:`Block Device Mappings`}),l.BlockDeviceMappings.map(Re)]}),e[95]=l.BlockDeviceMappings,e[96]=tt);let nt;e[97]===m?nt=e[98]:(nt=m&&(0,J.jsx)(_e,{image:m}),e[97]=m,e[98]=nt);let rt;e[99]!==Me||e[100]!==Pe||e[101]!==Ie||e[102]!==$||e[103]!==Ze||e[104]!==Qe||e[105]!==$e||e[106]!==et||e[107]!==tt||e[108]!==nt?(rt=(0,J.jsxs)(`div`,{className:`space-y-6`,children:[Me,Pe,Ie,$,Ze,Qe,$e,et,tt,nt]}),e[99]=Me,e[100]=Pe,e[101]=Ie,e[102]=$,e[103]=Ze,e[104]=Qe,e[105]=$e,e[106]=et,e[107]=tt,e[108]=nt,e[109]=rt):rt=e[109];let it;e[110]===Symbol.for(`react.memo_cache_sentinel`)?(it=e=>{e||(D(!1),M(``))},e[110]=it):it=e[110];let at;e[111]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,J.jsx)(le,{children:`Modify Instance`}),e[111]=at):at=e[111];let ot;e[112]===l.InstanceId?ot=e[113]:(ot=(0,J.jsxs)(pe,{children:[at,(0,J.jsxs)(se,{children:[`Select a new instance type for "`,l.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),e[112]=l.InstanceId,e[113]=ot);let st;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(st=(0,J.jsx)(ie,{children:(0,J.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),e[114]=st):st=e[114];let ct;e[115]===h.InstanceTypes?ct=e[116]:(ct=h.InstanceTypes??[],e[115]=h.InstanceTypes,e[116]=ct);let lt;e[117]!==j||e[118]!==ct?(lt=(0,J.jsxs)(ae,{children:[st,(0,J.jsx)(ve,{className:`w-full`,id:`instanceType`,instanceTypes:ct,onValueChange:M,value:j})]}),e[117]=j,e[118]=ct,e[119]=lt):lt=e[119];let ut;e[120]===Symbol.for(`react.memo_cache_sentinel`)?(ut=(0,J.jsx)(fe,{children:`Cancel`}),e[120]=ut):ut=e[120];let dt=b.isPending||!j||j===l.InstanceType,ft=b.isPending?`Saving…`:`Save Changes`,pt;e[121]!==xe||e[122]!==dt||e[123]!==ft?(pt=(0,J.jsxs)(de,{children:[ut,(0,J.jsx)(ue,{disabled:dt,onClick:xe,children:ft})]}),e[121]=xe,e[122]=dt,e[123]=ft,e[124]=pt):pt=e[124];let mt;e[125]!==ot||e[126]!==lt||e[127]!==pt?(mt=(0,J.jsxs)(ce,{children:[ot,lt,pt]}),e[125]=ot,e[126]=lt,e[127]=pt,e[128]=mt):mt=e[128];let ht;e[129]!==C||e[130]!==mt?(ht=(0,J.jsx)(me,{onOpenChange:it,open:C,children:mt}),e[129]=C,e[130]=mt,e[131]=ht):ht=e[131];let gt;e[132]!==l.InstanceId||e[133]!==L?(gt=(0,J.jsx)(De,{instanceId:l.InstanceId,onOpenChange:ee,open:L}),e[132]=l.InstanceId,e[133]=L,e[134]=gt):gt=e[134];let _t;return e[135]!==W||e[136]!==rt||e[137]!==ht||e[138]!==gt||e[139]!==U?(_t=(0,J.jsxs)(J.Fragment,{children:[we,U,W,rt,ht,gt]}),e[135]=W,e[136]=rt,e[137]=ht,e[138]=gt,e[139]=U,e[140]=_t):_t=e[140],_t}function Re(e){return(0,J.jsxs)(z.Content,{children:[(0,J.jsx)(B,{label:`Device Name`,value:e.DeviceName}),(0,J.jsx)(B,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,J.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,J.jsx)(B,{label:`Status`,value:e.Ebs?.Status}),(0,J.jsx)(B,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,J.jsx)(B,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName)}function ze(e){return e.GroupName}export{Le as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BioUIboR.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CK5xP23X.js similarity index 97% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BioUIboR.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CK5xP23X.js index d02b37451..9e6eaa33f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BioUIboR.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CK5xP23X.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{an as o,t as s}from"./cluster-config-DNNpxkEw.js";import{t as c}from"./back-link-wsXUoJ12.js";import{t as l}from"./copy-CamWo-pg.js";import{n as ee,t as te}from"./_id-B4aFNmnb.js";import{t as ne}from"./trash-DVab4pEz.js";import{t as u}from"./button-C9VMD5Xn.js";import{t as d}from"./input-CBUMH1Jl.js";import{T as f,b as p}from"./ec2-BzWGOxUI.js";import{I as m,Q as h,u as re}from"./ec2-B8rwH6Fi.js";import{t as g}from"./page-heading-vksh_67w.js";import{t as _}from"./error-banner-DeOeVBKS.js";import{s as v,t as y}from"./field-BKQO3cRo.js";import{t as ie}from"./textarea-CTBs9AlF.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog-Da3OTbL9.js";import{t as O}from"./delete-confirmation-dialog-8byauM7I.js";import{n as k,t as A}from"./detail-row-DNBRlVeK.js";import{t as j}from"./state-badge-BbpKF1NE.js";var M=t(n()),N=e();function P(){let{id:e}=te.useParams(),t=a(),{data:n}=r(f(e)),{data:P}=r(p),F=n.Snapshots?.[0],I=m(),L=re(),R=h(),[z,B]=(0,M.useState)(!1),[V,H]=(0,M.useState)(!1),[U,W]=(0,M.useState)(``),[G,K]=(0,M.useState)(!1),[q,J]=(0,M.useState)(``),[Y,X]=(0,M.useState)(``),[Z,Q]=(0,M.useState)(null),ae=P.Regions?.[0]?.RegionName??s(),$=F?.State===`completed`,oe=F?.State===`completed`;function se(e){e||(J(``),X(``),Q(null)),K(e)}async function ce(){try{let t=await R.mutateAsync({snapshotId:e,name:q,description:Y||void 0});Q(t.ImageId??null),J(``),X(``)}catch{}}let le=async()=>{try{await I.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},ue=async()=>{try{await L.mutateAsync({sourceSnapshotId:e,sourceRegion:ae,description:U||void 0}),H(!1),W(``)}catch{}};if(!F?.SnapshotId)return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let de=o(F.StartTime);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),I.error&&(0,N.jsx)(_,{error:I.error,msg:`Failed to delete snapshot`}),L.error&&(0,N.jsx)(_,{error:L.error,msg:`Failed to copy snapshot`}),R.error&&(0,N.jsx)(_,{error:R.error,msg:`Failed to register image`}),(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(g,{actions:(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsxs)(u,{disabled:!$,onClick:()=>{B(!0)},size:`sm`,variant:`destructive`,children:[(0,N.jsx)(ne,{className:`size-4`}),`Delete`]}),(0,N.jsxs)(u,{disabled:!$,onClick:()=>{H(!0)},size:`sm`,variant:`outline`,children:[(0,N.jsx)(l,{className:`size-4`}),`Copy Snapshot`]}),(0,N.jsxs)(u,{disabled:!oe,onClick:()=>{K(!0)},size:`sm`,variant:`outline`,children:[(0,N.jsx)(ee,{className:`size-4`}),`Register as AMI`]}),(0,N.jsx)(j,{state:F.State})]}),subtitle:`Snapshot Details`,title:F.SnapshotId}),(0,N.jsxs)(k,{children:[(0,N.jsx)(k.Header,{children:`Snapshot Information`}),(0,N.jsxs)(k.Content,{children:[(0,N.jsx)(A,{label:`Snapshot ID`,value:F.SnapshotId}),(0,N.jsx)(A,{label:`Volume ID`,value:F.VolumeId?(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:F.VolumeId},to:`/ec2/describe-volumes/$id`,children:F.VolumeId}):void 0}),(0,N.jsx)(A,{label:`Volume Size`,value:`${F.VolumeSize} GiB`}),(0,N.jsx)(A,{label:`State`,value:F.State}),(0,N.jsx)(A,{label:`Description`,value:F.Description}),(0,N.jsx)(A,{label:`Progress`,value:F.Progress}),(0,N.jsx)(A,{label:`Start Time`,value:de}),(0,N.jsx)(A,{label:`Owner ID`,value:F.OwnerId}),(0,N.jsx)(A,{label:`Encrypted`,value:F.Encrypted?`Yes`:`No`})]})]})]}),(0,N.jsx)(O,{description:`Are you sure you want to delete the snapshot "${F.SnapshotId}"? This action cannot be undone.`,isPending:I.isPending,onConfirm:le,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,N.jsx)(D,{onOpenChange:H,open:V,children:(0,N.jsxs)(x,{children:[(0,N.jsxs)(E,{children:[(0,N.jsx)(S,{children:`Copy Snapshot`}),(0,N.jsx)(b,{children:`Create a copy of this snapshot in the current region.`})]}),(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,N.jsx)(d,{id:`copyDescription`,onChange:e=>{W(e.target.value)},placeholder:`Description for the snapshot copy`,value:U})]}),(0,N.jsxs)(w,{children:[(0,N.jsx)(T,{children:`Cancel`}),(0,N.jsx)(C,{disabled:L.isPending,onClick:ue,children:L.isPending?`Copying…`:`Copy Snapshot`})]})]})}),(0,N.jsx)(D,{onOpenChange:se,open:G,children:(0,N.jsxs)(x,{children:[(0,N.jsxs)(E,{children:[(0,N.jsx)(S,{children:Z?`Image Registered`:`Register as AMI`}),(0,N.jsx)(b,{children:Z?(0,N.jsxs)(N.Fragment,{children:[`AMI`,` `,(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:Z},to:`/ec2/describe-images/$id`,children:Z}),` `,`was registered successfully.`]}):`Create an AMI from snapshot "${e}".`})]}),!Z&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`registerName`,children:`Name`})}),(0,N.jsx)(d,{id:`registerName`,onChange:e=>{J(e.target.value)},placeholder:`my-image`,value:q})]}),(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`registerDescription`,children:`Description (optional)`})}),(0,N.jsx)(ie,{id:`registerDescription`,onChange:e=>{X(e.target.value)},placeholder:`Optional description`,rows:2,value:Y})]})]}),(0,N.jsxs)(w,{children:[(0,N.jsx)(T,{children:Z?`Close`:`Cancel`}),!Z&&(0,N.jsx)(C,{disabled:R.isPending||!q.trim(),onClick:ce,children:R.isPending?`Registering…`:`Register AMI`})]})]})})]})}export{P as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{an as o,t as s}from"./cluster-config-DNNpxkEw.js";import{t as c}from"./back-link-wsXUoJ12.js";import{t as l}from"./copy-CamWo-pg.js";import{n as ee,t as te}from"./_id-Bu86Ozrp.js";import{t as ne}from"./trash-DVab4pEz.js";import{t as u}from"./button-C9VMD5Xn.js";import{t as d}from"./input-CBUMH1Jl.js";import{T as f,b as p}from"./ec2-BzWGOxUI.js";import{I as m,Q as h,u as re}from"./ec2-BXFEIaSs.js";import{t as g}from"./page-heading-vksh_67w.js";import{t as _}from"./error-banner-DeOeVBKS.js";import{s as v,t as y}from"./field-BKQO3cRo.js";import{t as ie}from"./textarea-CTBs9AlF.js";import{a as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D}from"./alert-dialog-Da3OTbL9.js";import{t as O}from"./delete-confirmation-dialog-8byauM7I.js";import{n as k,t as A}from"./detail-row-DNBRlVeK.js";import{t as j}from"./state-badge-BbpKF1NE.js";var M=t(n()),N=e();function P(){let{id:e}=te.useParams(),t=a(),{data:n}=r(f(e)),{data:P}=r(p),F=n.Snapshots?.[0],I=m(),L=re(),R=h(),[z,B]=(0,M.useState)(!1),[V,H]=(0,M.useState)(!1),[U,W]=(0,M.useState)(``),[G,K]=(0,M.useState)(!1),[q,J]=(0,M.useState)(``),[Y,X]=(0,M.useState)(``),[Z,Q]=(0,M.useState)(null),ae=P.Regions?.[0]?.RegionName??s(),$=F?.State===`completed`,oe=F?.State===`completed`;function se(e){e||(J(``),X(``),Q(null)),K(e)}async function ce(){try{let t=await R.mutateAsync({snapshotId:e,name:q,description:Y||void 0});Q(t.ImageId??null),J(``),X(``)}catch{}}let le=async()=>{try{await I.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},ue=async()=>{try{await L.mutateAsync({sourceSnapshotId:e,sourceRegion:ae,description:U||void 0}),H(!1),W(``)}catch{}};if(!F?.SnapshotId)return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let de=o(F.StartTime);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),I.error&&(0,N.jsx)(_,{error:I.error,msg:`Failed to delete snapshot`}),L.error&&(0,N.jsx)(_,{error:L.error,msg:`Failed to copy snapshot`}),R.error&&(0,N.jsx)(_,{error:R.error,msg:`Failed to register image`}),(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(g,{actions:(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsxs)(u,{disabled:!$,onClick:()=>{B(!0)},size:`sm`,variant:`destructive`,children:[(0,N.jsx)(ne,{className:`size-4`}),`Delete`]}),(0,N.jsxs)(u,{disabled:!$,onClick:()=>{H(!0)},size:`sm`,variant:`outline`,children:[(0,N.jsx)(l,{className:`size-4`}),`Copy Snapshot`]}),(0,N.jsxs)(u,{disabled:!oe,onClick:()=>{K(!0)},size:`sm`,variant:`outline`,children:[(0,N.jsx)(ee,{className:`size-4`}),`Register as AMI`]}),(0,N.jsx)(j,{state:F.State})]}),subtitle:`Snapshot Details`,title:F.SnapshotId}),(0,N.jsxs)(k,{children:[(0,N.jsx)(k.Header,{children:`Snapshot Information`}),(0,N.jsxs)(k.Content,{children:[(0,N.jsx)(A,{label:`Snapshot ID`,value:F.SnapshotId}),(0,N.jsx)(A,{label:`Volume ID`,value:F.VolumeId?(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:F.VolumeId},to:`/ec2/describe-volumes/$id`,children:F.VolumeId}):void 0}),(0,N.jsx)(A,{label:`Volume Size`,value:`${F.VolumeSize} GiB`}),(0,N.jsx)(A,{label:`State`,value:F.State}),(0,N.jsx)(A,{label:`Description`,value:F.Description}),(0,N.jsx)(A,{label:`Progress`,value:F.Progress}),(0,N.jsx)(A,{label:`Start Time`,value:de}),(0,N.jsx)(A,{label:`Owner ID`,value:F.OwnerId}),(0,N.jsx)(A,{label:`Encrypted`,value:F.Encrypted?`Yes`:`No`})]})]})]}),(0,N.jsx)(O,{description:`Are you sure you want to delete the snapshot "${F.SnapshotId}"? This action cannot be undone.`,isPending:I.isPending,onConfirm:le,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,N.jsx)(D,{onOpenChange:H,open:V,children:(0,N.jsxs)(x,{children:[(0,N.jsxs)(E,{children:[(0,N.jsx)(S,{children:`Copy Snapshot`}),(0,N.jsx)(b,{children:`Create a copy of this snapshot in the current region.`})]}),(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,N.jsx)(d,{id:`copyDescription`,onChange:e=>{W(e.target.value)},placeholder:`Description for the snapshot copy`,value:U})]}),(0,N.jsxs)(w,{children:[(0,N.jsx)(T,{children:`Cancel`}),(0,N.jsx)(C,{disabled:L.isPending,onClick:ue,children:L.isPending?`Copying…`:`Copy Snapshot`})]})]})}),(0,N.jsx)(D,{onOpenChange:se,open:G,children:(0,N.jsxs)(x,{children:[(0,N.jsxs)(E,{children:[(0,N.jsx)(S,{children:Z?`Image Registered`:`Register as AMI`}),(0,N.jsx)(b,{children:Z?(0,N.jsxs)(N.Fragment,{children:[`AMI`,` `,(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:Z},to:`/ec2/describe-images/$id`,children:Z}),` `,`was registered successfully.`]}):`Create an AMI from snapshot "${e}".`})]}),!Z&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`registerName`,children:`Name`})}),(0,N.jsx)(d,{id:`registerName`,onChange:e=>{J(e.target.value)},placeholder:`my-image`,value:q})]}),(0,N.jsxs)(y,{children:[(0,N.jsx)(v,{children:(0,N.jsx)(`label`,{htmlFor:`registerDescription`,children:`Description (optional)`})}),(0,N.jsx)(ie,{id:`registerDescription`,onChange:e=>{X(e.target.value)},placeholder:`Optional description`,rows:2,value:Y})]})]}),(0,N.jsxs)(w,{children:[(0,N.jsx)(T,{children:Z?`Close`:`Cancel`}),!Z&&(0,N.jsx)(C,{disabled:R.isPending||!q.trim(),onClick:ce,children:R.isPending?`Registering…`:`Register AMI`})]})]})})]})}export{P as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CV9F9MdY.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CV9F9MdY.js deleted file mode 100644 index 9d8adfaf6..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-CV9F9MdY.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./trash-DVab4pEz.js";import{t as m}from"./button-C9VMD5Xn.js";import{M as h,u as g}from"./ec2-BzWGOxUI.js";import{D as _,V as v,o as y}from"./ec2-B8rwH6Fi.js";import{t as b}from"./_id-sGpUX4UE.js";import{t as x}from"./page-heading-vksh_67w.js";import{t as S}from"./error-banner-DeOeVBKS.js";import{t as C}from"./delete-confirmation-dialog-8byauM7I.js";import{n as w,t as T}from"./detail-row-DNBRlVeK.js";var E=t(n()),D=e();function O(){let{id:e}=b.useParams(),t=a(),{data:n}=r(g(e)),{data:O}=r(h),k=y(),A=v(),j=_(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=o(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(S,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(x,{actions:(0,D.jsxs)(m,{disabled:H||j.isPending,onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,D.jsx)(p,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(m,{disabled:A.isPending,onClick:async()=>{await B(V.VpcId??``)},size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(f,{onValueChange:e=>{F(e??``)},value:P,children:[(0,D.jsx)(d,{className:`w-full`,children:(0,D.jsx)(c,{placeholder:`Select a VPC`})}),(0,D.jsx)(u,{children:L.map(e=>{let t=o(e.Tags);return(0,D.jsx)(l,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(m,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CVZ3C1BH.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CVZ3C1BH.js new file mode 100644 index 000000000..f02598632 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CVZ3C1BH.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{cn as a}from"./cluster-config-DNNpxkEw.js";import{t as o}from"./back-link-wsXUoJ12.js";import{c as s,i as c,n as l,s as u,t as d}from"./select-sbVkpt-r.js";import{t as f}from"./trash-DVab4pEz.js";import{t as p}from"./button-C9VMD5Xn.js";import{l as m,t as h}from"./ec2-BzWGOxUI.js";import{$ as g,U as _,r as v}from"./ec2-BXFEIaSs.js";import{t as y}from"./_id-C1szo2bQ.js";import{t as b}from"./page-heading-vksh_67w.js";import{t as x}from"./error-banner-DeOeVBKS.js";import{t as S}from"./delete-confirmation-dialog-8byauM7I.js";import{n as C,t as w}from"./detail-row-DNBRlVeK.js";var T=t(n()),E=e();function D(){let{id:e}=y.useParams(),t=i(),{data:n}=r(h(e)),{data:D}=r(m),O=v(),k=_(),A=g(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(!1),[F,I]=(0,T.useState)(``),L=n.Addresses?.[0],R=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],z=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},B=async()=>{F&&await O.mutateAsync({allocationId:e,instanceId:F})},V=async()=>{if(L?.AssociationId)try{await k.mutateAsync(L.AssociationId)}catch{}finally{P(!1)}};if(!L?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let H=!!L.AssociationId,U=a(L.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(x,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(b,{actions:(0,E.jsxs)(p,{disabled:H||A.isPending,onClick:()=>{M(!0)},size:`sm`,variant:`destructive`,children:[(0,E.jsx)(f,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:U?`${L.AllocationId} (${U})`:L.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:L.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:L.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:L.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:L.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:L.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:L.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:H?(0,E.jsx)(p,{disabled:k.isPending,onClick:()=>{P(!0)},size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(d,{onValueChange:e=>{I(e??``)},value:F,children:[(0,E.jsx)(u,{className:`w-full`,children:(0,E.jsx)(s,{placeholder:`Select an instance`})}),(0,E.jsx)(l,{children:R.map(e=>{let t=a(e.Tags);return(0,E.jsx)(c,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(p,{disabled:!F||O.isPending,onClick:B,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${L.AllocationId}" (${L.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:z,onOpenChange:M,open:j,title:`Release Elastic IP`}),(0,E.jsx)(S,{confirmLabel:`Disassociate`,description:`Disassociate "${L.PublicIp}" from "${L.InstanceId??L.AssociationId}"? The instance stops being reachable at this address.`,isPending:k.isPending,onConfirm:V,onOpenChange:P,open:N,pendingLabel:`Disassociating…`,title:`Disassociate Elastic IP`})]})}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CVxg-0fv.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CVxg-0fv.js deleted file mode 100644 index f53f68936..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-CVxg-0fv.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{cn as a}from"./cluster-config-DNNpxkEw.js";import{t as o}from"./back-link-wsXUoJ12.js";import{c as s,i as c,n as l,s as u,t as d}from"./select-sbVkpt-r.js";import{t as f}from"./trash-DVab4pEz.js";import{t as p}from"./button-C9VMD5Xn.js";import{l as m,t as h}from"./ec2-BzWGOxUI.js";import{$ as g,U as _,r as v}from"./ec2-B8rwH6Fi.js";import{t as y}from"./_id-Ck6daj1a.js";import{t as b}from"./page-heading-vksh_67w.js";import{t as x}from"./error-banner-DeOeVBKS.js";import{t as S}from"./delete-confirmation-dialog-8byauM7I.js";import{n as C,t as w}from"./detail-row-DNBRlVeK.js";var T=t(n()),E=e();function D(){let{id:e}=y.useParams(),t=i(),{data:n}=r(h(e)),{data:D}=r(m),O=v(),k=_(),A=g(),[j,M]=(0,T.useState)(!1),[N,P]=(0,T.useState)(``),F=n.Addresses?.[0],I=D.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.State?.Name===`running`||e.State?.Name===`stopped`)??[],L=async()=>{try{await A.mutateAsync(e),t({to:`/ec2/describe-addresses`})}finally{M(!1)}},R=async()=>{N&&await O.mutateAsync({allocationId:e,instanceId:N})},z=async()=>{F?.AssociationId&&await k.mutateAsync(F.AssociationId)};if(!F?.AllocationId)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`Elastic IP not found.`})]});let B=!!F.AssociationId,V=a(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(x,{error:A.error??O.error??k.error??void 0,msg:`Elastic IP action failed`}),(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsx)(b,{actions:(0,E.jsxs)(p,{disabled:B||A.isPending,onClick:()=>{M(!0)},size:`sm`,variant:`destructive`,children:[(0,E.jsx)(f,{className:`size-4`}),`Release`]}),subtitle:`Elastic IP Details`,title:V?`${F.AllocationId} (${V})`:F.AllocationId}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Elastic IP Information`}),(0,E.jsxs)(C.Content,{children:[(0,E.jsx)(w,{label:`Allocation ID`,value:F.AllocationId}),(0,E.jsx)(w,{label:`Public IP`,value:F.PublicIp}),(0,E.jsx)(w,{label:`Domain`,value:F.Domain}),(0,E.jsx)(w,{label:`Association ID`,value:F.AssociationId??`—`}),(0,E.jsx)(w,{label:`Instance ID`,value:F.InstanceId??`—`}),(0,E.jsx)(w,{label:`Private IP`,value:F.PrivateIpAddress??`—`})]})]}),(0,E.jsxs)(C,{children:[(0,E.jsx)(C.Header,{children:`Association`}),(0,E.jsx)(C.Content,{children:B?(0,E.jsx)(p,{disabled:k.isPending,onClick:z,size:`sm`,variant:`outline`,children:`Disassociate`}):(0,E.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,E.jsx)(`div`,{className:`flex-1`,children:(0,E.jsxs)(d,{onValueChange:e=>{P(e??``)},value:N,children:[(0,E.jsx)(u,{className:`w-full`,children:(0,E.jsx)(s,{placeholder:`Select an instance`})}),(0,E.jsx)(l,{children:I.map(e=>{let t=a(e.Tags);return(0,E.jsx)(c,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(p,{disabled:!N||O.isPending,onClick:R,size:`sm`,children:`Associate`})]})})]})]}),(0,E.jsx)(S,{description:`Are you sure you want to release the Elastic IP "${F.AllocationId}" (${F.PublicIp})? This action cannot be undone.`,isPending:A.isPending,onConfirm:L,onOpenChange:M,open:j,title:`Release Elastic IP`})]})}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BNPP6ioO.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-Cd-Ww3Z8.js similarity index 92% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BNPP6ioO.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-Cd-Ww3Z8.js index 18f1b5199..e4c5e5c2b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BNPP6ioO.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-Cd-Ww3Z8.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DOj2c_YP.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/plus-BodhJT2v.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{t as r}from"./createLucideIcon-BQgzNCBR.js";import{C as i}from"./ec2-BzWGOxUI.js";var a={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};a.node;var o=r(a),s=e(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...i(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DOj2c_YP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),`component`)});export{o as n,s as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-InQH-S8V.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/plus-BodhJT2v.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{t as r}from"./createLucideIcon-BQgzNCBR.js";import{C as i}from"./ec2-BzWGOxUI.js";var a={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};a.node;var o=r(a),s=e(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...i(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:t(()=>n(()=>import(`./_id-InQH-S8V.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),`component`)});export{o as n,s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-sGpUX4UE.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-ChrUHOzx.js similarity index 91% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-sGpUX4UE.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-ChrUHOzx.js index f1c428839..f1f6a6e27 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-sGpUX4UE.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-ChrUHOzx.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CV9F9MdY.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{M as r,u as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CV9F9MdY.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{a as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CzLQnO41.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{M as r,u as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CzLQnO41.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`)});export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BPFJvgT0.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CihXDo2a.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BPFJvgT0.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-CihXDo2a.js index 0788f6558..18fb11c38 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BPFJvgT0.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CihXDo2a.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BK8ACEVr.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{f as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.query({...r(t.id),staleTime:`static`}),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BK8ACEVr.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),`component`)});export{i as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-CI0L8b6B.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{f as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.query({...r(t.id),staleTime:`static`}),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-CI0L8b6B.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),`component`)});export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-ZlKy-FIQ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-Culh_OPm.js similarity index 97% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-ZlKy-FIQ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-Culh_OPm.js index dfc3c25d4..77612ea2b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-ZlKy-FIQ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-Culh_OPm.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{t as o}from"./back-link-wsXUoJ12.js";import{t as s}from"./trash-DVab4pEz.js";import{t as c}from"./button-C9VMD5Xn.js";import{l,v as u}from"./ec2-BzWGOxUI.js";import{M as d}from"./ec2-B8rwH6Fi.js";import{t as f}from"./_id-DCV_D6-q.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),{data:x}=r(l),S=d(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(m,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>{w(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{t as o}from"./back-link-wsXUoJ12.js";import{t as s}from"./trash-DVab4pEz.js";import{t as c}from"./button-C9VMD5Xn.js";import{l,v as u}from"./ec2-BzWGOxUI.js";import{M as d}from"./ec2-BXFEIaSs.js";import{t as f}from"./_id-UthkaM-l.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),{data:x}=r(l),S=d(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(m,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>{w(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CzLQnO41.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-CzLQnO41.js new file mode 100644 index 000000000..7495fa752 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-CzLQnO41.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./trash-DVab4pEz.js";import{t as m}from"./button-C9VMD5Xn.js";import{M as h,u as g}from"./ec2-BzWGOxUI.js";import{D as _,V as v,o as y}from"./ec2-BXFEIaSs.js";import{t as b}from"./_id-ChrUHOzx.js";import{t as x}from"./page-heading-vksh_67w.js";import{t as S}from"./error-banner-DeOeVBKS.js";import{t as C}from"./delete-confirmation-dialog-8byauM7I.js";import{n as w,t as T}from"./detail-row-DNBRlVeK.js";var E=t(n()),D=e();function O(){let{id:e}=b.useParams(),t=a(),{data:n}=r(g(e)),{data:O}=r(h),k=y(),A=v(),j=_(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(null),[I,L]=(0,E.useState)(``),R=n.InternetGateways?.[0],z=O.Vpcs??[],B=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},V=async()=>{I&&await k.mutateAsync({internetGatewayId:e,vpcId:I})},H=async()=>{if(P)try{await A.mutateAsync({internetGatewayId:e,vpcId:P})}catch{}finally{F(null)}};if(!R?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let U=R.Attachments?.[0],W=!!U?.VpcId,G=o(R.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(s,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(S,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(x,{actions:(0,D.jsxs)(m,{disabled:W||j.isPending,onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,D.jsx)(p,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:G?`${R.InternetGatewayId} (${G})`:R.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:R.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:R.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:U?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:W?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:U.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:U.VpcId}),(0,D.jsx)(m,{disabled:A.isPending,onClick:()=>{F(U.VpcId??``)},size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(f,{onValueChange:e=>{L(e??``)},value:I,children:[(0,D.jsx)(d,{className:`w-full`,children:(0,D.jsx)(c,{placeholder:`Select a VPC`})}),(0,D.jsx)(u,{children:z.map(e=>{let t=o(e.Tags);return(0,D.jsx)(l,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(m,{disabled:!I||k.isPending,onClick:V,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${R.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:B,onOpenChange:N,open:M,title:`Delete Internet Gateway`}),(0,D.jsx)(C,{confirmLabel:`Detach`,description:`Detach "${R.InternetGatewayId}" from "${P}"? Every subnet in the VPC that routes through it loses internet access.`,isPending:A.isPending,onConfirm:H,onOpenChange:e=>{e||F(null)},open:P!==null,pendingLabel:`Detaching…`,title:`Detach Internet Gateway`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-CTND5et4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-D5CApzw1.js similarity index 90% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-CTND5et4.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-D5CApzw1.js index 55a71e5f6..2350b0b9c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-CTND5et4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-D5CApzw1.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BuqhMNl9.js","assets/compiler-runtime-D_vZfn79.js","assets/removable-Dwr9otKB.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/circle-arrow-up-Bs5cB5tN.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/state-badge-BbpKF1NE.js","assets/system-managed-Dk7ySh_E.js","assets/ami-details-D-jFY8_1.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{a as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.query({...r(t.id),staleTime:`static`}),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BuqhMNl9.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40])),`component`)});export{i as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BptKFr_w.js","assets/compiler-runtime-D_vZfn79.js","assets/removable-Dwr9otKB.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/circle-arrow-up-Bs5cB5tN.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/state-badge-BbpKF1NE.js","assets/system-managed-Dk7ySh_E.js","assets/ami-details-D-jFY8_1.js","assets/detail-row-DNBRlVeK.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{a as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.query({...r(t.id),staleTime:`static`}),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BptKFr_w.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40])),`component`)});export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DOj2c_YP.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DOj2c_YP.js deleted file mode 100644 index ba150d1c5..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DOj2c_YP.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as a}from"./link-BokOReHc.js";import{t as ee}from"./useNavigate-CTe_-BZA.js";import{t as te}from"./back-link-wsXUoJ12.js";import{c as o,i as s,n as c,s as l,t as u}from"./select-sbVkpt-r.js";import{t as d}from"./plus-BodhJT2v.js";import{t as f}from"./trash-DVab4pEz.js";import{n as p,t as m}from"./_id-BNPP6ioO.js";import{t as h}from"./button-C9VMD5Xn.js";import{t as g}from"./input-CBUMH1Jl.js";import{C as _}from"./ec2-BzWGOxUI.js";import{F as v,c as y,et as b,l as x,tt as ne}from"./ec2-B8rwH6Fi.js";import{t as S}from"./page-heading-vksh_67w.js";import{a as re,i as ie,n as C,t as w}from"./zod-A4qtKH_p.js";import{t as ae}from"./error-banner-DeOeVBKS.js";import{r as T,s as E,t as oe}from"./field-BKQO3cRo.js";import{i as se,l as ce,n as le,o as ue,r as de,s as fe,t as pe}from"./alert-dialog-Da3OTbL9.js";import{t as D}from"./delete-confirmation-dialog-8byauM7I.js";import{n as O,t as k}from"./detail-row-DNBRlVeK.js";import{x as me}from"./ec2-CSDTsDKe.js";var he=r(),A=t(n()),j=e();function M(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function N(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function P(e){let t=(0,he.c)(87),{open:n,onOpenChange:r,direction:i,groupId:a}=e,ee=x(),te=y(),o=i===`ingress`?ee:te,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:w(me),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}},t[0]=s):s=t[0];let{control:c,handleSubmit:l,register:u,reset:d,formState:f}=ie(s),{errors:p}=f,m;t[1]===c?m=t[2]:(m={control:c,name:`ipProtocol`},t[1]=c,t[2]=m);let h=re(m),_=h===`-1`||h===`icmp`,v;t[3]!==a||t[4]!==o||t[5]!==r||t[6]!==_||t[7]!==d?(v=async e=>{let t={groupId:a,ipProtocol:e.ipProtocol,fromPort:_?-1:e.fromPort,toPort:_?-1:e.toPort,cidrIp:e.cidrIp};await o.mutateAsync(t),d(),r(!1)},t[3]=a,t[4]=o,t[5]=r,t[6]=_,t[7]=d,t[8]=v):v=t[8];let b=v,ne=i===`ingress`?`Inbound`:`Outbound`,S;t[9]===ne?S=t[10]:(S=(0,j.jsx)(fe,{children:(0,j.jsxs)(ce,{children:[`Add `,ne,` Rule`]})}),t[9]=ne,t[10]=S);let D;t[11]===o.error?D=t[12]:(D=o.error&&(0,j.jsx)(ae,{error:o.error,msg:`Failed to add rule`}),t[11]=o.error,t[12]=D);let O;t[13]!==l||t[14]!==b?(O=l(b),t[13]=l,t[14]=b,t[15]=O):O=t[15];let k;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),t[16]=k):k=t[16];let A;t[17]===c?A=t[18]:(A=(0,j.jsx)(C,{control:c,name:`ipProtocol`,render:ge}),t[17]=c,t[18]=A);let M;t[19]===p.ipProtocol?M=t[20]:(M=(0,j.jsx)(T,{errors:[p.ipProtocol]}),t[19]=p.ipProtocol,t[20]=M);let N;t[21]!==A||t[22]!==M?(N=(0,j.jsxs)(oe,{children:[k,A,M]}),t[21]=A,t[22]=M,t[23]=N):N=t[23];let P;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),t[24]=P):P=t[24];let _e=!!p.fromPort,F;t[25]===u?F=t[26]:(F=u(`fromPort`,{valueAsNumber:!0}),t[25]=u,t[26]=F);let I;t[27]!==_||t[28]!==_e||t[29]!==F?(I=(0,j.jsx)(g,{"aria-invalid":_e,disabled:_,id:`fromPort`,type:`number`,...F}),t[27]=_,t[28]=_e,t[29]=F,t[30]=I):I=t[30];let L;t[31]===p.fromPort?L=t[32]:(L=(0,j.jsx)(T,{errors:[p.fromPort]}),t[31]=p.fromPort,t[32]=L);let R;t[33]!==I||t[34]!==L?(R=(0,j.jsxs)(oe,{children:[P,I,L]}),t[33]=I,t[34]=L,t[35]=R):R=t[35];let ve;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),t[36]=ve):ve=t[36];let ye=!!p.toPort,z;t[37]===u?z=t[38]:(z=u(`toPort`,{valueAsNumber:!0}),t[37]=u,t[38]=z);let B;t[39]!==_||t[40]!==ye||t[41]!==z?(B=(0,j.jsx)(g,{"aria-invalid":ye,disabled:_,id:`toPort`,type:`number`,...z}),t[39]=_,t[40]=ye,t[41]=z,t[42]=B):B=t[42];let V;t[43]===p.toPort?V=t[44]:(V=(0,j.jsx)(T,{errors:[p.toPort]}),t[43]=p.toPort,t[44]=V);let H;t[45]!==B||t[46]!==V?(H=(0,j.jsxs)(oe,{children:[ve,B,V]}),t[45]=B,t[46]=V,t[47]=H):H=t[47];let U;t[48]!==R||t[49]!==H?(U=(0,j.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[R,H]}),t[48]=R,t[49]=H,t[50]=U):U=t[50];let be=i===`ingress`?`Source`:`Destination`,W;t[51]===be?W=t[52]:(W=(0,j.jsx)(E,{children:(0,j.jsxs)(`label`,{htmlFor:`cidrIp`,children:[be,` CIDR`]})}),t[51]=be,t[52]=W);let xe=!!p.cidrIp,G;t[53]===u?G=t[54]:(G=u(`cidrIp`),t[53]=u,t[54]=G);let K;t[55]!==xe||t[56]!==G?(K=(0,j.jsx)(g,{"aria-invalid":xe,id:`cidrIp`,placeholder:`0.0.0.0/0`,...G}),t[55]=xe,t[56]=G,t[57]=K):K=t[57];let q;t[58]===p.cidrIp?q=t[59]:(q=(0,j.jsx)(T,{errors:[p.cidrIp]}),t[58]=p.cidrIp,t[59]=q);let J;t[60]!==W||t[61]!==K||t[62]!==q?(J=(0,j.jsxs)(oe,{children:[W,K,q]}),t[60]=W,t[61]=K,t[62]=q,t[63]=J):J=t[63];let Y;t[64]!==N||t[65]!==U||t[66]!==J||t[67]!==O?(Y=(0,j.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:O,children:[N,U,J]}),t[64]=N,t[65]=U,t[66]=J,t[67]=O,t[68]=Y):Y=t[68];let X;t[69]!==o||t[70]!==d?(X=(0,j.jsx)(de,{onClick:()=>{d(),o.reset()},children:`Cancel`}),t[69]=o,t[70]=d,t[71]=X):X=t[71];let Se=o.isPending?`Adding…`:`Add Rule`,Z;t[72]!==o.isPending||t[73]!==Se?(Z=(0,j.jsx)(le,{disabled:o.isPending,form:`add-rule-form`,type:`submit`,children:Se}),t[72]=o.isPending,t[73]=Se,t[74]=Z):Z=t[74];let Q;t[75]!==X||t[76]!==Z?(Q=(0,j.jsxs)(ue,{children:[X,Z]}),t[75]=X,t[76]=Z,t[77]=Q):Q=t[77];let $;t[78]!==Y||t[79]!==Q||t[80]!==S||t[81]!==D?($=(0,j.jsxs)(se,{children:[S,D,Y,Q]}),t[78]=Y,t[79]=Q,t[80]=S,t[81]=D,t[82]=$):$=t[82];let Ce;return t[83]!==r||t[84]!==n||t[85]!==$?(Ce=(0,j.jsx)(pe,{onOpenChange:r,open:n,children:$}),t[83]=r,t[84]=n,t[85]=$,t[86]=Ce):Ce=t[86],Ce}function ge(e){let{field:t}=e;return(0,j.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,j.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,j.jsx)(o,{})}),(0,j.jsxs)(c,{children:[(0,j.jsx)(s,{value:`tcp`,children:`TCP`}),(0,j.jsx)(s,{value:`udp`,children:`UDP`}),(0,j.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,j.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}function _e(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function F(e){let t=(0,he.c)(42),{rule:n,source:r,groupId:i,direction:a}=e,ee=ne(),te=b(),o=a===`ingress`?ee:te,s;t[0]!==i||t[1]!==o||t[2]!==n.FromPort||t[3]!==n.IpProtocol||t[4]!==n.ToPort||t[5]!==r.kind||t[6]!==r.value?(s=async()=>{try{await o.mutateAsync({groupId:i,ipProtocol:n.IpProtocol??`-1`,fromPort:n.FromPort??-1,toPort:n.ToPort??-1,...r.kind===`group`?{sourceGroupId:r.value}:{cidrIp:r.value}})}catch{}},t[0]=i,t[1]=o,t[2]=n.FromPort,t[3]=n.IpProtocol,t[4]=n.ToPort,t[5]=r.kind,t[6]=r.value,t[7]=s):s=t[7];let c=s,l=r.kind===`group`&&r.value===i?`${r.value} (this security group)`:r.value,u;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),t[8]=u):u=t[8];let d;t[9]===n.IpProtocol?d=t[10]:(d=M(n.IpProtocol),t[9]=n.IpProtocol,t[10]=d);let f;t[11]===d?f=t[12]:(f=(0,j.jsxs)(`div`,{children:[u,d]}),t[11]=d,t[12]=f);let m;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),t[13]=m):m=t[13];let g;t[14]!==n.FromPort||t[15]!==n.IpProtocol||t[16]!==n.ToPort?(g=N(n.FromPort,n.ToPort,n.IpProtocol),t[14]=n.FromPort,t[15]=n.IpProtocol,t[16]=n.ToPort,t[17]=g):g=t[17];let _;t[18]===g?_=t[19]:(_=(0,j.jsxs)(`div`,{children:[m,g]}),t[18]=g,t[19]=_);let v=a===`ingress`?`Source`:`Destination`,y;t[20]===v?y=t[21]:(y=(0,j.jsxs)(`span`,{className:`text-muted-foreground`,children:[v,`:`,` `]}),t[20]=v,t[21]=y);let x;t[22]!==l||t[23]!==y?(x=(0,j.jsxs)(`div`,{children:[y,l]}),t[22]=l,t[23]=y,t[24]=x):x=t[24];let S;t[25]!==x||t[26]!==f||t[27]!==_?(S=(0,j.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[f,_,x]}),t[25]=x,t[26]=f,t[27]=_,t[28]=S):S=t[28];let re,ie;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,j.jsx)(p,{className:`size-3`}),ie=(0,j.jsx)(`span`,{className:`sr-only`,children:`Remove rule`}),t[29]=re,t[30]=ie):(re=t[29],ie=t[30]);let C;t[31]!==c||t[32]!==o.isPending?(C=(0,j.jsxs)(h,{disabled:o.isPending,onClick:c,size:`icon-xs`,variant:`ghost`,children:[re,ie]}),t[31]=c,t[32]=o.isPending,t[33]=C):C=t[33];let w;t[34]!==S||t[35]!==C?(w=(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[S,C]}),t[34]=S,t[35]=C,t[36]=w):w=t[36];let T;t[37]===o.error?T=t[38]:(T=o.error&&(0,j.jsx)(`div`,{className:`px-4 pb-2`,children:(0,j.jsx)(ae,{error:o.error,msg:`Failed to remove rule`})}),t[37]=o.error,t[38]=T);let E;return t[39]!==w||t[40]!==T?(E=(0,j.jsxs)(`div`,{className:`space-y-0`,children:[w,T]}),t[39]=w,t[40]=T,t[41]=E):E=t[41],E}function I(){let{id:e}=m.useParams(),t=ee(),{data:n}=i(_(e)),r=n.SecurityGroups?.[0],o=v(),[s,c]=(0,A.useState)(!1),[l,u]=(0,A.useState)(!1),[p,g]=(0,A.useState)(!1),y=async()=>{try{await o.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{c(!1)}};if(!r?.GroupId)return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(te,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,j.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let b=r.IpPermissions??[],x=r.IpPermissionsEgress??[];return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(te,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),o.error&&(0,j.jsx)(ae,{error:o.error,msg:`Failed to delete security group`}),(0,j.jsxs)(`div`,{className:`space-y-6`,children:[(0,j.jsx)(S,{actions:(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,j.jsxs)(h,{onClick:()=>{c(!0)},size:`sm`,variant:`destructive`,children:[(0,j.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:r.GroupName?`${r.GroupId} (${r.GroupName})`:r.GroupId}),(0,j.jsxs)(O,{children:[(0,j.jsx)(O.Header,{children:`Security Group Information`}),(0,j.jsxs)(O.Content,{children:[(0,j.jsx)(k,{label:`Group ID`,value:r.GroupId}),(0,j.jsx)(k,{label:`Group Name`,value:r.GroupName}),(0,j.jsx)(k,{label:`Description`,value:r.Description}),(0,j.jsx)(k,{label:`VPC ID`,value:r.VpcId?(0,j.jsx)(a,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):`—`}),(0,j.jsx)(k,{label:`Owner ID`,value:r.OwnerId})]})]}),(0,j.jsxs)(O,{children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,j.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,b.length,`)`]}),(0,j.jsxs)(h,{onClick:()=>{u(!0)},size:`sm`,variant:`outline`,children:[(0,j.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),b.length>0?(0,j.jsx)(`div`,{children:b.flatMap(e=>_e(e).map(t=>(0,j.jsx)(F,{direction:`ingress`,groupId:r.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,j.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,j.jsxs)(O,{children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,j.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,x.length,`)`]}),(0,j.jsxs)(h,{onClick:()=>{g(!0)},size:`sm`,variant:`outline`,children:[(0,j.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),x.length>0?(0,j.jsx)(`div`,{children:x.flatMap(e=>_e(e).map(t=>(0,j.jsx)(F,{direction:`egress`,groupId:r.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,j.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,j.jsx)(D,{description:`Are you sure you want to delete the security group "${r.GroupId}"? This action cannot be undone.`,isPending:o.isPending,onConfirm:y,onOpenChange:c,open:s,title:`Delete Security Group`}),(0,j.jsx)(P,{direction:`ingress`,groupId:r.GroupId,onOpenChange:u,open:l}),(0,j.jsx)(P,{direction:`egress`,groupId:r.GroupId,onOpenChange:g,open:p})]})}export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DaazrII8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DaazrII8.js deleted file mode 100644 index 7d3a03f91..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DaazrII8.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./trash-DVab4pEz.js";import{t as m}from"./button-C9VMD5Xn.js";import{t as h}from"./input-CBUMH1Jl.js";import{O as ee,_ as te,d as ne,x as re}from"./ec2-BzWGOxUI.js";import{G as ie,N as ae,P as oe,a as g,y as _}from"./ec2-B8rwH6Fi.js";import{t as v}from"./_id-Cf3gSkxZ.js";import{t as y}from"./page-heading-vksh_67w.js";import{t as b}from"./badge-BtRPNxFL.js";import{a as x,i as S,n as C,t as w}from"./zod-A4qtKH_p.js";import{t as T}from"./error-banner-DeOeVBKS.js";import{r as E,s as D,t as O}from"./field-BKQO3cRo.js";import{t as se}from"./delete-confirmation-dialog-8byauM7I.js";import{n as k,t as A}from"./detail-row-DNBRlVeK.js";import{d as ce,r as j}from"./ec2-CSDTsDKe.js";var M=t(n()),N=e();function P(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function F(){let{id:e}=v.useParams(),t=a(),{data:n}=r(re(e)),{data:F}=r(ne),{data:I}=r(te),{data:L}=r(ee),R=oe(),z=_(),B=ae(),V=g(),H=ie(),[U,W]=(0,M.useState)(!1),G=n.RouteTables?.[0],K=S({resolver:w(ce),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),le=x({control:K.control,name:`targetType`}),q=S({resolver:w(j),defaultValues:{subnetId:``}});if(!G?.RouteTableId)return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let J=G.RouteTableId,Y=o(G.Tags),X=G.Associations?.some(e=>e.Main)??!1,Z=G.Routes??[],Q=(G.Associations??[]).filter(e=>e.SubnetId),$=(F.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===G.VpcId)),ue=(I.NatGateways??[]).filter(e=>e.VpcId===G.VpcId&&e.State===`available`),de=new Set(Q.map(e=>e.SubnetId)),fe=(L.Subnets??[]).filter(e=>e.VpcId===G.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await R.mutateAsync(J),t({to:`/ec2/describe-route-tables`})}finally{W(!1)}},me=async e=>{await z.mutateAsync({routeTableId:J,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),K.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await V.mutateAsync({routeTableId:J,subnetId:e.subnetId}),q.reset({subnetId:``})};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),R.error&&(0,N.jsx)(T,{error:R.error,msg:`Failed to delete Route Table`}),(0,N.jsxs)(`div`,{className:`space-y-6`,children:[(0,N.jsx)(y,{actions:(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsxs)(m,{disabled:X||R.isPending,onClick:()=>{W(!0)},size:`sm`,variant:`destructive`,children:[(0,N.jsx)(p,{className:`size-4`}),`Delete`]}),X&&(0,N.jsx)(b,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:Y?`${G.RouteTableId} (${Y})`:G.RouteTableId}),(0,N.jsxs)(k,{children:[(0,N.jsx)(k.Header,{children:`Route Table Information`}),(0,N.jsxs)(k.Content,{children:[(0,N.jsx)(A,{label:`Route Table ID`,value:G.RouteTableId}),(0,N.jsx)(A,{label:`Main`,value:X?`Yes`:`No`}),(0,N.jsx)(A,{label:`VPC ID`,value:G.VpcId?(0,N.jsx)(i,{className:`text-primary hover:underline`,params:{id:G.VpcId},to:`/ec2/describe-vpcs/$id`,children:G.VpcId}):`—`}),(0,N.jsx)(A,{label:`Owner ID`,value:G.OwnerId??`—`})]})]}),(0,N.jsxs)(k,{children:[(0,N.jsx)(k.Header,{children:`Routes`}),(0,N.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,N.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,N.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,N.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,N.jsxs)(`tr`,{children:[(0,N.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,N.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,N.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,N.jsx)(`th`,{className:`p-2`,children:(0,N.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,N.jsx)(`tbody`,{children:Z.length>0?Z.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,N.jsxs)(`tr`,{className:`border-t`,children:[(0,N.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,N.jsx)(`td`,{className:`p-2 font-mono`,children:P(e)}),(0,N.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,N.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,N.jsx)(m,{disabled:B.isPending,onClick:async()=>await B.mutateAsync({routeTableId:J,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,N.jsx)(p,{className:`size-4`})})})]},t)}):(0,N.jsx)(`tr`,{children:(0,N.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(z.error??B.error)&&(0,N.jsx)(T,{error:z.error??B.error??void 0,msg:`Failed to update route`}),(0,N.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:K.handleSubmit(me),children:[(0,N.jsxs)(O,{children:[(0,N.jsx)(D,{children:(0,N.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,N.jsx)(h,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...K.register(`destinationCidrBlock`)}),(0,N.jsx)(E,{errors:[K.formState.errors.destinationCidrBlock]})]}),(0,N.jsxs)(O,{children:[(0,N.jsx)(D,{children:(0,N.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,N.jsx)(C,{control:K.control,name:`targetType`,render:({field:e})=>(0,N.jsxs)(f,{onValueChange:t=>{e.onChange(t),K.setValue(`targetId`,``)},value:e.value,children:[(0,N.jsx)(d,{className:`w-full`,id:`targetType`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[(0,N.jsx)(l,{value:`igw`,children:`Internet Gateway`}),(0,N.jsx)(l,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,N.jsxs)(O,{children:[(0,N.jsx)(D,{children:(0,N.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,N.jsx)(C,{control:K.control,name:`targetId`,render:({field:e})=>(0,N.jsxs)(f,{onValueChange:t=>{e.onChange(t)},value:e.value??``,children:[(0,N.jsx)(d,{"aria-invalid":!!K.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,N.jsx)(c,{placeholder:`Select target`})}),(0,N.jsx)(u,{children:le===`igw`?$.map(e=>(0,N.jsx)(l,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,N.jsx)(l,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,N.jsx)(E,{errors:[K.formState.errors.targetId]})]}),(0,N.jsx)(m,{disabled:z.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,N.jsxs)(k,{children:[(0,N.jsx)(k.Header,{children:`Subnet Associations`}),(0,N.jsxs)(`div`,{className:`space-y-4 p-4`,children:[Q.length>0?(0,N.jsx)(`ul`,{className:`space-y-2`,children:Q.map(e=>{let t=e.RouteTableAssociationId;return(0,N.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,N.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,N.jsx)(m,{disabled:!t||H.isPending,onClick:async()=>{t&&await H.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,N.jsx)(p,{className:`size-4`})})]},t)})}):(0,N.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(V.error??H.error)&&(0,N.jsx)(T,{error:V.error??H.error??void 0,msg:`Failed to update association`}),(0,N.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:q.handleSubmit(he),children:[(0,N.jsxs)(O,{children:[(0,N.jsx)(D,{children:(0,N.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,N.jsx)(C,{control:q.control,name:`subnetId`,render:({field:e})=>(0,N.jsxs)(f,{onValueChange:t=>{e.onChange(t)},value:e.value??``,children:[(0,N.jsx)(d,{"aria-invalid":!!q.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,N.jsx)(c,{placeholder:`Select a subnet`})}),(0,N.jsx)(u,{children:fe.map(e=>{let t=o(e.Tags);return(0,N.jsx)(l,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,N.jsx)(E,{errors:[q.formState.errors.subnetId]})]}),(0,N.jsx)(m,{disabled:V.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,N.jsx)(se,{description:`Are you sure you want to delete the Route Table "${G.RouteTableId}"? This action cannot be undone.`,isPending:R.isPending,onConfirm:pe,onOpenChange:W,open:U,title:`Delete Route Table`})]})}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BZ9hs4ty.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DdYQRnmS.js similarity index 95% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BZ9hs4ty.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-DdYQRnmS.js index a0ecb0236..c996da713 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BZ9hs4ty.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-DdYQRnmS.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{O as u,j as d}from"./ec2-BzWGOxUI.js";import{z as f}from"./ec2-B8rwH6Fi.js";import{t as p}from"./_id-ChH83MQ3.js";import{t as m}from"./page-heading-vksh_67w.js";import{t as h}from"./error-banner-DeOeVBKS.js";import{t as g}from"./delete-confirmation-dialog-8byauM7I.js";import{n as _,t as v}from"./detail-row-DNBRlVeK.js";import{t as y}from"./state-badge-BbpKF1NE.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=a(),{data:n}=r(d(e)),{data:S}=r(u),C=n.Vpcs?.[0],w=f(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(h,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(m,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(l,{onClick:()=>{E(!0)},size:`sm`,variant:`destructive`,children:[(0,x.jsx)(c,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{O as u,j as d}from"./ec2-BzWGOxUI.js";import{z as f}from"./ec2-BXFEIaSs.js";import{t as p}from"./_id-Dl1qhQTl.js";import{t as m}from"./page-heading-vksh_67w.js";import{t as h}from"./error-banner-DeOeVBKS.js";import{t as g}from"./delete-confirmation-dialog-8byauM7I.js";import{n as _,t as v}from"./detail-row-DNBRlVeK.js";import{t as y}from"./state-badge-BbpKF1NE.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=a(),{data:n}=r(d(e)),{data:S}=r(u),C=n.Vpcs?.[0],w=f(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=o(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(h,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(m,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(l,{onClick:()=>{E(!0)},size:`sm`,variant:`destructive`,children:[(0,x.jsx)(c,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-BE0619AY.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DesZsQPD.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-BE0619AY.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-DesZsQPD.js index 3eb3b762e..1577cf190 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-BE0619AY.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-DesZsQPD.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{an as o,cn as s}from"./cluster-config-DNNpxkEw.js";import{t as c}from"./createLucideIcon-BQgzNCBR.js";import{t as l}from"./back-link-wsXUoJ12.js";import{t as ee}from"./camera-bmANKZ8M.js";import{c as u,i as d,n as f,s as p,t as m}from"./select-sbVkpt-r.js";import{t as h}from"./trash-DVab4pEz.js";import{n as g,t as _}from"./button-C9VMD5Xn.js";import{t as v}from"./input-CBUMH1Jl.js";import{k as y,l as te}from"./ec2-BzWGOxUI.js";import{H as ne,R as re,s as b}from"./ec2-B8rwH6Fi.js";import{t as ie}from"./_id-DRav28tS.js";import{t as x}from"./page-heading-vksh_67w.js";import{t as S}from"./error-banner-DeOeVBKS.js";import{s as C,t as w}from"./field-BKQO3cRo.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog-Da3OTbL9.js";import{t as ae}from"./delete-confirmation-dialog-8byauM7I.js";import{n as N,t as P}from"./detail-row-DNBRlVeK.js";import{t as F}from"./state-badge-BbpKF1NE.js";var I={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};I.node;var L=c(I),R={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};R.node;var z=c(R),B=t(n()),V=e();function H(){let{id:e}=ie.useParams(),t=a(),{data:n}=r(y(e)),{data:c}=r(te),I=n.Volumes?.[0],R=re(),H=b(),U=ne(),[W,G]=(0,B.useState)(null),[K,q]=(0,B.useState)(``),[J,Y]=(0,B.useState)(``),[X,Z]=(0,B.useState)(!1),oe=c.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=I?.State===`available`&&(!I.Attachments||I.Attachments.length===0),$=()=>{G(null)};return I?.VolumeId?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),R.error&&(0,V.jsx)(S,{error:R.error,msg:`Failed to delete volume`}),H.error&&(0,V.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,V.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,V.jsxs)(`div`,{className:`space-y-6`,children:[(0,V.jsx)(x,{actions:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(_,{disabled:!Q,onClick:()=>{G(`delete`)},size:`sm`,variant:`destructive`,children:[(0,V.jsx)(h,{className:`size-4`}),`Delete`]}),Q?(0,V.jsx)(i,{className:g({variant:`outline`}),params:{id:I.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,V.jsx)(_,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,V.jsxs)(_,{onClick:()=>{G(`attach`)},size:`sm`,variant:`outline`,children:[(0,V.jsx)(z,{className:`size-4`}),`Attach`]}):null,I.Attachments&&I.Attachments.length>0?(0,V.jsxs)(_,{onClick:()=>{G(`detach`)},size:`sm`,variant:`outline`,children:[(0,V.jsx)(L,{className:`size-4`}),`Detach`]}):null,(0,V.jsxs)(i,{className:g({variant:`outline`,size:`sm`}),search:{volumeId:I.VolumeId},to:`/ec2/create-snapshot`,children:[(0,V.jsx)(ee,{className:`size-4`}),`Create Snapshot`]}),(0,V.jsx)(F,{state:I.State})]}),subtitle:`Volume Details`,title:I.VolumeId}),(0,V.jsxs)(N,{children:[(0,V.jsx)(N.Header,{children:`Volume Information`}),(0,V.jsxs)(N.Content,{children:[(0,V.jsx)(P,{label:`Volume ID`,value:I.VolumeId}),(0,V.jsx)(P,{label:`Size`,value:`${I.Size} GiB`}),(0,V.jsx)(P,{label:`Volume Type`,value:I.VolumeType}),(0,V.jsx)(P,{label:`State`,value:I.State}),(0,V.jsx)(P,{label:`Availability Zone`,value:I.AvailabilityZone}),(0,V.jsx)(P,{label:`Create Time`,value:o(I.CreateTime)}),(0,V.jsx)(P,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`}),(0,V.jsx)(P,{label:`KMS Key ID`,value:I.KmsKeyId})]})]}),I.Attachments&&I.Attachments.length>0&&(0,V.jsxs)(N,{children:[(0,V.jsx)(N.Header,{children:`Attachments`}),I.Attachments.map(e=>(0,V.jsxs)(N.Content,{children:[(0,V.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,V.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,V.jsx)(P,{label:`Device`,value:e.Device}),(0,V.jsx)(P,{label:`Status`,value:e.State}),(0,V.jsx)(P,{label:`Attach Time`,value:o(e.AttachTime)}),(0,V.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,V.jsx)(ae,{description:`Are you sure you want to delete the volume "${I.VolumeId}"? This action cannot be undone.`,isPending:R.isPending,onConfirm:async()=>{try{await R.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,V.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,V.jsxs)(E,{children:[(0,V.jsxs)(j,{children:[(0,V.jsx)(D,{children:`Attach Volume`}),(0,V.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,V.jsxs)(w,{children:[(0,V.jsx)(C,{children:(0,V.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,V.jsxs)(m,{onValueChange:e=>{q(e??``)},value:K,children:[(0,V.jsx)(p,{className:`w-full`,id:`attachInstance`,children:(0,V.jsx)(u,{placeholder:`Select an instance`})}),(0,V.jsx)(f,{children:oe.map(e=>{let t=s(e.Tags);return(0,V.jsxs)(d,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,V.jsxs)(w,{children:[(0,V.jsx)(C,{children:(0,V.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,V.jsx)(v,{id:`attachDevice`,onChange:e=>{Y(e.target.value)},placeholder:`/dev/sdf`,value:J})]}),(0,V.jsxs)(k,{children:[(0,V.jsx)(A,{children:`Cancel`}),(0,V.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,V.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,V.jsxs)(E,{children:[(0,V.jsxs)(j,{children:[(0,V.jsx)(D,{children:`Detach Volume`}),(0,V.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,I.VolumeId,`" from instance "`,I.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,V.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>{Z(e.target.checked)},type:`checkbox`}),`Force detach`]}),(0,V.jsxs)(k,{children:[(0,V.jsx)(A,{children:`Cancel`}),(0,V.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=I?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{H as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{an as o,cn as s}from"./cluster-config-DNNpxkEw.js";import{t as c}from"./createLucideIcon-BQgzNCBR.js";import{t as l}from"./back-link-wsXUoJ12.js";import{t as ee}from"./camera-bmANKZ8M.js";import{c as u,i as d,n as f,s as p,t as m}from"./select-sbVkpt-r.js";import{t as h}from"./trash-DVab4pEz.js";import{n as g,t as _}from"./button-C9VMD5Xn.js";import{t as v}from"./input-CBUMH1Jl.js";import{k as y,l as te}from"./ec2-BzWGOxUI.js";import{H as ne,R as re,s as b}from"./ec2-BXFEIaSs.js";import{t as ie}from"./_id-O0zfpNfp.js";import{t as x}from"./page-heading-vksh_67w.js";import{t as S}from"./error-banner-DeOeVBKS.js";import{s as C,t as w}from"./field-BKQO3cRo.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog-Da3OTbL9.js";import{t as ae}from"./delete-confirmation-dialog-8byauM7I.js";import{n as N,t as P}from"./detail-row-DNBRlVeK.js";import{t as F}from"./state-badge-BbpKF1NE.js";var I={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};I.node;var L=c(I),R={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};R.node;var z=c(R),B=t(n()),V=e();function H(){let{id:e}=ie.useParams(),t=a(),{data:n}=r(y(e)),{data:c}=r(te),I=n.Volumes?.[0],R=re(),H=b(),U=ne(),[W,G]=(0,B.useState)(null),[K,q]=(0,B.useState)(``),[J,Y]=(0,B.useState)(``),[X,Z]=(0,B.useState)(!1),oe=c.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=I?.State===`available`&&(!I.Attachments||I.Attachments.length===0),$=()=>{G(null)};return I?.VolumeId?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),R.error&&(0,V.jsx)(S,{error:R.error,msg:`Failed to delete volume`}),H.error&&(0,V.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,V.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,V.jsxs)(`div`,{className:`space-y-6`,children:[(0,V.jsx)(x,{actions:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(_,{disabled:!Q,onClick:()=>{G(`delete`)},size:`sm`,variant:`destructive`,children:[(0,V.jsx)(h,{className:`size-4`}),`Delete`]}),Q?(0,V.jsx)(i,{className:g({variant:`outline`}),params:{id:I.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,V.jsx)(_,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,V.jsxs)(_,{onClick:()=>{G(`attach`)},size:`sm`,variant:`outline`,children:[(0,V.jsx)(z,{className:`size-4`}),`Attach`]}):null,I.Attachments&&I.Attachments.length>0?(0,V.jsxs)(_,{onClick:()=>{G(`detach`)},size:`sm`,variant:`outline`,children:[(0,V.jsx)(L,{className:`size-4`}),`Detach`]}):null,(0,V.jsxs)(i,{className:g({variant:`outline`,size:`sm`}),search:{volumeId:I.VolumeId},to:`/ec2/create-snapshot`,children:[(0,V.jsx)(ee,{className:`size-4`}),`Create Snapshot`]}),(0,V.jsx)(F,{state:I.State})]}),subtitle:`Volume Details`,title:I.VolumeId}),(0,V.jsxs)(N,{children:[(0,V.jsx)(N.Header,{children:`Volume Information`}),(0,V.jsxs)(N.Content,{children:[(0,V.jsx)(P,{label:`Volume ID`,value:I.VolumeId}),(0,V.jsx)(P,{label:`Size`,value:`${I.Size} GiB`}),(0,V.jsx)(P,{label:`Volume Type`,value:I.VolumeType}),(0,V.jsx)(P,{label:`State`,value:I.State}),(0,V.jsx)(P,{label:`Availability Zone`,value:I.AvailabilityZone}),(0,V.jsx)(P,{label:`Create Time`,value:o(I.CreateTime)}),(0,V.jsx)(P,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`}),(0,V.jsx)(P,{label:`KMS Key ID`,value:I.KmsKeyId})]})]}),I.Attachments&&I.Attachments.length>0&&(0,V.jsxs)(N,{children:[(0,V.jsx)(N.Header,{children:`Attachments`}),I.Attachments.map(e=>(0,V.jsxs)(N.Content,{children:[(0,V.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,V.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,V.jsx)(P,{label:`Device`,value:e.Device}),(0,V.jsx)(P,{label:`Status`,value:e.State}),(0,V.jsx)(P,{label:`Attach Time`,value:o(e.AttachTime)}),(0,V.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,V.jsx)(ae,{description:`Are you sure you want to delete the volume "${I.VolumeId}"? This action cannot be undone.`,isPending:R.isPending,onConfirm:async()=>{try{await R.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,V.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,V.jsxs)(E,{children:[(0,V.jsxs)(j,{children:[(0,V.jsx)(D,{children:`Attach Volume`}),(0,V.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,V.jsxs)(w,{children:[(0,V.jsx)(C,{children:(0,V.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,V.jsxs)(m,{onValueChange:e=>{q(e??``)},value:K,children:[(0,V.jsx)(p,{className:`w-full`,id:`attachInstance`,children:(0,V.jsx)(u,{placeholder:`Select an instance`})}),(0,V.jsx)(f,{children:oe.map(e=>{let t=s(e.Tags);return(0,V.jsxs)(d,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,V.jsxs)(w,{children:[(0,V.jsx)(C,{children:(0,V.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,V.jsx)(v,{id:`attachDevice`,onChange:e=>{Y(e.target.value)},placeholder:`/dev/sdf`,value:J})]}),(0,V.jsxs)(k,{children:[(0,V.jsx)(A,{children:`Cancel`}),(0,V.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,V.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,V.jsxs)(E,{children:[(0,V.jsxs)(j,{children:[(0,V.jsx)(D,{children:`Detach Volume`}),(0,V.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,I.VolumeId,`" from instance "`,I.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,V.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>{Z(e.target.checked)},type:`checkbox`}),`Force detach`]}),(0,V.jsxs)(k,{children:[(0,V.jsx)(A,{children:`Cancel`}),(0,V.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=I?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(l,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-D8zrT_uR.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DflRwii5.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-D8zrT_uR.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-DflRwii5.js index 1325ad3cb..196de3ed8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-D8zrT_uR.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-DflRwii5.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-xGPlB2BQ.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{g as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:t(()=>n(()=>import(`./_id-xGPlB2BQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-C7DPQ7rV.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{g as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:t(()=>n(()=>import(`./_id-C7DPQ7rV.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-ChH83MQ3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-Dl1qhQTl.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-ChH83MQ3.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-Dl1qhQTl.js index bd6ee3b5a..30d3f0a7c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-ChH83MQ3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-Dl1qhQTl.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BZ9hs4ty.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,j as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BZ9hs4ty.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{a as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DdYQRnmS.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,j as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DdYQRnmS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DoiZQ8Gx.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DoiZQ8Gx.js deleted file mode 100644 index 01ff4c2e9..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DoiZQ8Gx.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{an as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./createLucideIcon-BQgzNCBR.js";import{t as c}from"./back-link-wsXUoJ12.js";import{c as l,i as u,n as d,s as f,t as p}from"./select-sbVkpt-r.js";import{t as m}from"./trash-DVab4pEz.js";import{t as h}from"./button-C9VMD5Xn.js";import{t as g}from"./input-CBUMH1Jl.js";import{h as _,m as v}from"./ec2-BzWGOxUI.js";import{A as y,Y as b,g as ee,k as x}from"./ec2-B8rwH6Fi.js";import{t as te}from"./_id-CPocyLi-.js";import{t as ne}from"./page-heading-vksh_67w.js";import{t as S}from"./badge-BtRPNxFL.js";import{i as C,t as w}from"./zod-A4qtKH_p.js";import{t as T}from"./error-banner-DeOeVBKS.js";import{s as E,t as D}from"./field-BKQO3cRo.js";import{t as re}from"./delete-confirmation-dialog-8byauM7I.js";import{n as O,t as k}from"./detail-row-DNBRlVeK.js";import{c as A}from"./ec2-CSDTsDKe.js";import{t as j}from"./launch-template-data-fields-KubGXzaR.js";var M={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};M.node;var N=s(M),P={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};P.node;var F=s(P),I=t(n()),L=e();function R(e){if(!e)return``;try{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;et.LaunchTemplateId===e),G=(s.LaunchTemplateVersions??[]).toSorted((e,t)=>(t.VersionNumber??0)-(e.VersionNumber??0)),{control:K,handleSubmit:q,register:J,getValues:Y,reset:X,formState:{errors:ie,isSubmitting:Z}}=C({resolver:w(A),defaultValues:{versionDescription:``,...B}});if(!W?.LaunchTemplateId)return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(c,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`Launch template not found.`})]});let Q=W.DefaultVersionNumber,ae=e=>{if(e===`none`){X({...Y(),sourceVersion:void 0,...B});return}let t=G.find(t=>String(t.VersionNumber)===e);X({...Y(),sourceVersion:e,...z(t?.LaunchTemplateData)})},oe=async t=>{await M.mutateAsync({launchTemplateId:e,defaultVersion:String(t)})},se=async t=>{await P.mutateAsync({launchTemplateId:e,versions:[String(t)]})},ce=async()=>{try{await R.mutateAsync(e),t({to:`/ec2/describe-launch-templates`})}finally{U(!1)}},le=async t=>{await V.mutateAsync({...t,launchTemplateId:e}),X({versionDescription:``,sourceVersion:void 0,...B})},$=M.error??P.error;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(c,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),R.error&&(0,L.jsx)(T,{error:R.error,msg:`Failed to delete launch template`}),(0,L.jsxs)(`div`,{className:`space-y-6`,children:[(0,L.jsx)(ne,{actions:(0,L.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,L.jsxs)(h,{disabled:R.isPending,onClick:()=>{U(!0)},size:`sm`,variant:`destructive`,children:[(0,L.jsx)(m,{className:`size-4`}),`Delete`]}),(0,L.jsxs)(S,{variant:`secondary`,children:[`default v`,Q]})]}),subtitle:`Launch Template Details`,title:W.LaunchTemplateName??W.LaunchTemplateId}),(0,L.jsxs)(O,{children:[(0,L.jsx)(O.Header,{children:`Launch Template Information`}),(0,L.jsxs)(O.Content,{children:[(0,L.jsx)(k,{label:`Launch Template ID`,value:W.LaunchTemplateId}),(0,L.jsx)(k,{label:`Name`,value:W.LaunchTemplateName}),(0,L.jsx)(k,{label:`Default Version`,value:String(W.DefaultVersionNumber)}),(0,L.jsx)(k,{label:`Latest Version`,value:String(W.LatestVersionNumber)}),(0,L.jsx)(k,{label:`Created`,value:o(W.CreateTime)})]})]}),(0,L.jsxs)(O,{children:[(0,L.jsx)(O.Header,{children:`Versions`}),(0,L.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$&&(0,L.jsx)(T,{error:$,msg:`Failed to update version`}),(0,L.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,L.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,L.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,L.jsxs)(`tr`,{children:[(0,L.jsx)(`th`,{className:`p-2 font-medium`,children:`Version`}),(0,L.jsx)(`th`,{className:`p-2 font-medium`,children:`Description`}),(0,L.jsx)(`th`,{className:`p-2 font-medium`,children:`Default`}),(0,L.jsx)(`th`,{className:`p-2 font-medium`,children:`Created`}),(0,L.jsx)(`th`,{className:`p-2`,children:(0,L.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,L.jsx)(`tbody`,{children:G.map(t=>{let n=t.VersionNumber,r=n===Q;return(0,L.jsxs)(`tr`,{className:`border-t`,children:[(0,L.jsx)(`td`,{className:`p-2 font-mono`,children:n}),(0,L.jsx)(`td`,{className:`p-2`,children:t.VersionDescription??`—`}),(0,L.jsx)(`td`,{className:`p-2`,children:r?(0,L.jsx)(S,{variant:`secondary`,children:`Default`}):`—`}),(0,L.jsx)(`td`,{className:`p-2`,children:o(t.CreateTime)}),(0,L.jsx)(`td`,{className:`p-2`,children:(0,L.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[(0,L.jsx)(i,{search:{launchTemplateId:e,launchTemplateVersion:String(n)},to:`/ec2/run-instances`,children:(0,L.jsxs)(h,{size:`sm`,variant:`ghost`,children:[(0,L.jsx)(N,{className:`size-4`}),`Launch`]})}),!r&&n!==void 0&&(0,L.jsxs)(h,{disabled:M.isPending,onClick:async()=>{await oe(n)},size:`sm`,variant:`ghost`,children:[(0,L.jsx)(F,{className:`size-4`}),`Set default`]}),(0,L.jsx)(h,{disabled:r||P.isPending||n===void 0,onClick:async()=>{n!==void 0&&await se(n)},size:`sm`,variant:`ghost`,children:(0,L.jsx)(m,{className:`size-4`})})]})})]},n)})})]})})]})]}),(0,L.jsxs)(O,{children:[(0,L.jsx)(O.Header,{children:`Create Version`}),(0,L.jsxs)(`div`,{className:`p-4`,children:[V.error&&(0,L.jsx)(T,{error:V.error,msg:`Failed to create version`}),(0,L.jsxs)(`form`,{className:`space-y-6`,onSubmit:q(le),children:[(0,L.jsxs)(D,{children:[(0,L.jsx)(E,{children:(0,L.jsx)(`label`,{htmlFor:`sourceVersion`,children:`Clone from version`})}),(0,L.jsxs)(p,{onValueChange:e=>{ae(e??`none`)},value:Y(`sourceVersion`)??`none`,children:[(0,L.jsx)(f,{className:`w-full`,id:`sourceVersion`,children:(0,L.jsx)(l,{})}),(0,L.jsxs)(d,{children:[(0,L.jsx)(u,{value:`none`,children:`none (start blank)`}),G.map(e=>(0,L.jsxs)(u,{value:String(e.VersionNumber),children:[`v`,e.VersionNumber,e.VersionDescription?` — ${e.VersionDescription}`:``]},e.VersionNumber))]})]})]}),(0,L.jsxs)(D,{children:[(0,L.jsx)(E,{children:(0,L.jsx)(`label`,{htmlFor:`versionDescription`,children:`Version Description`})}),(0,L.jsx)(g,{id:`versionDescription`,placeholder:`What changed in this version`,...J(`versionDescription`)})]}),(0,L.jsx)(j,{control:K,errors:ie,register:J}),(0,L.jsx)(h,{disabled:Z||V.isPending,type:`submit`,children:Z||V.isPending?`Creating…`:`Create Version`})]})]})]})]}),(0,L.jsx)(re,{description:`Are you sure you want to delete the launch template "${W.LaunchTemplateName??W.LaunchTemplateId}"? All versions will be deleted. This action cannot be undone.`,isPending:R.isPending,onConfirm:ce,onOpenChange:U,open:H,title:`Delete Launch Template`})]})}export{V as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-COdll1OG.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DrtEnCId.js similarity index 95% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-COdll1OG.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-DrtEnCId.js index 0c71514f9..bc5535c31 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-COdll1OG.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-DrtEnCId.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{D as u}from"./ec2-BzWGOxUI.js";import{L as d}from"./ec2-B8rwH6Fi.js";import{t as f}from"./_id-D52K_DBJ.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),x=n.Subnets?.[0],S=d(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(m,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{onClick:()=>{w(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime-D_vZfn79.js";import{t as r}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as i}from"./link-BokOReHc.js";import{t as a}from"./useNavigate-CTe_-BZA.js";import{cn as o}from"./cluster-config-DNNpxkEw.js";import{t as s}from"./back-link-wsXUoJ12.js";import{t as c}from"./trash-DVab4pEz.js";import{t as l}from"./button-C9VMD5Xn.js";import{D as u}from"./ec2-BzWGOxUI.js";import{L as d}from"./ec2-BXFEIaSs.js";import{t as f}from"./_id-DzUrXYNb.js";import{t as p}from"./page-heading-vksh_67w.js";import{t as m}from"./error-banner-DeOeVBKS.js";import{t as h}from"./delete-confirmation-dialog-8byauM7I.js";import{n as g,t as _}from"./detail-row-DNBRlVeK.js";import{t as v}from"./state-badge-BbpKF1NE.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=a(),{data:n}=r(u(e)),x=n.Subnets?.[0],S=d(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=o(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(m,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(p,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(l,{onClick:()=>{w(!0)},size:`sm`,variant:`destructive`,children:[(0,b.jsx)(c,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-D52K_DBJ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-DzUrXYNb.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-D52K_DBJ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-DzUrXYNb.js index e846eac99..1ac98be6a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-D52K_DBJ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-DzUrXYNb.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-COdll1OG.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{D as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:t(()=>n(()=>import(`./_id-COdll1OG.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DrtEnCId.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{D as r}from"./ec2-BzWGOxUI.js";var i=e(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.query({...r(t.id),staleTime:`static`})},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DrtEnCId.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-InQH-S8V.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-InQH-S8V.js new file mode 100644 index 000000000..94eac3657 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-InQH-S8V.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as a}from"./link-BokOReHc.js";import{t as o}from"./useNavigate-CTe_-BZA.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as s,i as c,n as l,s as u,t as d}from"./select-sbVkpt-r.js";import{t as f}from"./plus-BodhJT2v.js";import{t as te}from"./trash-DVab4pEz.js";import{n as p,t as m}from"./_id-Cd-Ww3Z8.js";import{t as h}from"./button-C9VMD5Xn.js";import{t as g}from"./input-CBUMH1Jl.js";import{C as _}from"./ec2-BzWGOxUI.js";import{F as v,c as ne,et as y,l as b,tt as x}from"./ec2-BXFEIaSs.js";import{t as S}from"./page-heading-vksh_67w.js";import{a as re,i as ie,n as ae,t as oe}from"./zod-A4qtKH_p.js";import{t as se}from"./error-banner-DeOeVBKS.js";import{r as C,s as ce,t as le}from"./field-BKQO3cRo.js";import{i as ue,l as de,n as fe,o as pe,r as me,s as he,t as ge}from"./alert-dialog-Da3OTbL9.js";import{t as w}from"./delete-confirmation-dialog-8byauM7I.js";import{n as T,t as E}from"./detail-row-DNBRlVeK.js";import{x as _e}from"./ec2-CSDTsDKe.js";var ve=r(),D=t(n()),O=e();function k(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function A(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function j(e){let t=(0,ve.c)(87),{open:n,onOpenChange:r,direction:i,groupId:a}=e,o=b(),ee=ne(),s=i===`ingress`?o:ee,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:oe(_e),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}},t[0]=c):c=t[0];let{control:l,handleSubmit:u,register:d,reset:f,formState:te}=ie(c),{errors:p}=te,m;t[1]===l?m=t[2]:(m={control:l,name:`ipProtocol`},t[1]=l,t[2]=m);let h=re(m),_=h===`-1`||h===`icmp`,v;t[3]!==a||t[4]!==s||t[5]!==r||t[6]!==_||t[7]!==f?(v=async e=>{let t={groupId:a,ipProtocol:e.ipProtocol,fromPort:_?-1:e.fromPort,toPort:_?-1:e.toPort,cidrIp:e.cidrIp};await s.mutateAsync(t),f(),r(!1)},t[3]=a,t[4]=s,t[5]=r,t[6]=_,t[7]=f,t[8]=v):v=t[8];let y=v,x=i===`ingress`?`Inbound`:`Outbound`,S;t[9]===x?S=t[10]:(S=(0,O.jsx)(he,{children:(0,O.jsxs)(de,{children:[`Add `,x,` Rule`]})}),t[9]=x,t[10]=S);let w;t[11]===s.error?w=t[12]:(w=s.error&&(0,O.jsx)(se,{error:s.error,msg:`Failed to add rule`}),t[11]=s.error,t[12]=w);let T;t[13]!==u||t[14]!==y?(T=u(y),t[13]=u,t[14]=y,t[15]=T):T=t[15];let E;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,O.jsx)(ce,{children:(0,O.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),t[16]=E):E=t[16];let D;t[17]===l?D=t[18]:(D=(0,O.jsx)(ae,{control:l,name:`ipProtocol`,render:ye}),t[17]=l,t[18]=D);let k;t[19]===p.ipProtocol?k=t[20]:(k=(0,O.jsx)(C,{errors:[p.ipProtocol]}),t[19]=p.ipProtocol,t[20]=k);let A;t[21]!==D||t[22]!==k?(A=(0,O.jsxs)(le,{children:[E,D,k]}),t[21]=D,t[22]=k,t[23]=A):A=t[23];let j;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,O.jsx)(ce,{children:(0,O.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),t[24]=j):j=t[24];let M=!!p.fromPort,N;t[25]===d?N=t[26]:(N=d(`fromPort`,{valueAsNumber:!0}),t[25]=d,t[26]=N);let P;t[27]!==_||t[28]!==M||t[29]!==N?(P=(0,O.jsx)(g,{"aria-invalid":M,disabled:_,id:`fromPort`,type:`number`,...N}),t[27]=_,t[28]=M,t[29]=N,t[30]=P):P=t[30];let F;t[31]===p.fromPort?F=t[32]:(F=(0,O.jsx)(C,{errors:[p.fromPort]}),t[31]=p.fromPort,t[32]=F);let I;t[33]!==P||t[34]!==F?(I=(0,O.jsxs)(le,{children:[j,P,F]}),t[33]=P,t[34]=F,t[35]=I):I=t[35];let L;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,O.jsx)(ce,{children:(0,O.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),t[36]=L):L=t[36];let be=!!p.toPort,R;t[37]===d?R=t[38]:(R=d(`toPort`,{valueAsNumber:!0}),t[37]=d,t[38]=R);let z;t[39]!==_||t[40]!==be||t[41]!==R?(z=(0,O.jsx)(g,{"aria-invalid":be,disabled:_,id:`toPort`,type:`number`,...R}),t[39]=_,t[40]=be,t[41]=R,t[42]=z):z=t[42];let B;t[43]===p.toPort?B=t[44]:(B=(0,O.jsx)(C,{errors:[p.toPort]}),t[43]=p.toPort,t[44]=B);let V;t[45]!==z||t[46]!==B?(V=(0,O.jsxs)(le,{children:[L,z,B]}),t[45]=z,t[46]=B,t[47]=V):V=t[47];let H;t[48]!==I||t[49]!==V?(H=(0,O.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[I,V]}),t[48]=I,t[49]=V,t[50]=H):H=t[50];let xe=i===`ingress`?`Source`:`Destination`,U;t[51]===xe?U=t[52]:(U=(0,O.jsx)(ce,{children:(0,O.jsxs)(`label`,{htmlFor:`cidrIp`,children:[xe,` CIDR`]})}),t[51]=xe,t[52]=U);let Se=!!p.cidrIp,W;t[53]===d?W=t[54]:(W=d(`cidrIp`),t[53]=d,t[54]=W);let G;t[55]!==Se||t[56]!==W?(G=(0,O.jsx)(g,{"aria-invalid":Se,id:`cidrIp`,placeholder:`0.0.0.0/0`,...W}),t[55]=Se,t[56]=W,t[57]=G):G=t[57];let K;t[58]===p.cidrIp?K=t[59]:(K=(0,O.jsx)(C,{errors:[p.cidrIp]}),t[58]=p.cidrIp,t[59]=K);let q;t[60]!==U||t[61]!==G||t[62]!==K?(q=(0,O.jsxs)(le,{children:[U,G,K]}),t[60]=U,t[61]=G,t[62]=K,t[63]=q):q=t[63];let J;t[64]!==A||t[65]!==H||t[66]!==q||t[67]!==T?(J=(0,O.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:T,children:[A,H,q]}),t[64]=A,t[65]=H,t[66]=q,t[67]=T,t[68]=J):J=t[68];let Y;t[69]!==s||t[70]!==f?(Y=(0,O.jsx)(me,{onClick:()=>{f(),s.reset()},children:`Cancel`}),t[69]=s,t[70]=f,t[71]=Y):Y=t[71];let Ce=s.isPending?`Adding…`:`Add Rule`,X;t[72]!==s.isPending||t[73]!==Ce?(X=(0,O.jsx)(fe,{disabled:s.isPending,form:`add-rule-form`,type:`submit`,children:Ce}),t[72]=s.isPending,t[73]=Ce,t[74]=X):X=t[74];let Z;t[75]!==Y||t[76]!==X?(Z=(0,O.jsxs)(pe,{children:[Y,X]}),t[75]=Y,t[76]=X,t[77]=Z):Z=t[77];let Q;t[78]!==J||t[79]!==Z||t[80]!==S||t[81]!==w?(Q=(0,O.jsxs)(ue,{children:[S,w,J,Z]}),t[78]=J,t[79]=Z,t[80]=S,t[81]=w,t[82]=Q):Q=t[82];let $;return t[83]!==r||t[84]!==n||t[85]!==Q?($=(0,O.jsx)(ge,{onOpenChange:r,open:n,children:Q}),t[83]=r,t[84]=n,t[85]=Q,t[86]=$):$=t[86],$}function ye(e){let{field:t}=e;return(0,O.jsxs)(d,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,O.jsx)(u,{className:`w-full`,id:`ipProtocol`,children:(0,O.jsx)(s,{})}),(0,O.jsxs)(l,{children:[(0,O.jsx)(c,{value:`tcp`,children:`TCP`}),(0,O.jsx)(c,{value:`udp`,children:`UDP`}),(0,O.jsx)(c,{value:`icmp`,children:`ICMP`}),(0,O.jsx)(c,{value:`-1`,children:`All traffic (-1)`})]})]})}function M(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function N({rule:e,source:t,groupId:n,direction:r}){let i=x(),a=y(),o=r===`ingress`?i:a,[ee,s]=(0,D.useState)(!1),c=async()=>{try{await o.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,...t.kind===`group`?{sourceGroupId:t.value}:{cidrIp:t.value}})}catch{}finally{s(!1)}},l=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,O.jsxs)(`div`,{className:`space-y-0`,children:[(0,O.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,O.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),k(e.IpProtocol)]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),A(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,O.jsxs)(`div`,{children:[(0,O.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),l]})]}),(0,O.jsxs)(h,{disabled:o.isPending,onClick:()=>{s(!0)},size:`icon-xs`,variant:`ghost`,children:[(0,O.jsx)(p,{className:`size-3`}),(0,O.jsx)(`span`,{className:`sr-only`,children:`Remove rule`})]})]}),o.error&&(0,O.jsx)(`div`,{className:`px-4 pb-2`,children:(0,O.jsx)(se,{error:o.error,msg:`Failed to remove rule`})}),(0,O.jsx)(w,{confirmLabel:`Remove`,description:`Remove the ${r===`ingress`?`inbound`:`outbound`} rule (protocol ${k(e.IpProtocol)}, port range ${A(e.FromPort,e.ToPort,e.IpProtocol)}, ${r===`ingress`?`source`:`destination`} ${l}) from "${n}"?`,isPending:o.isPending,onConfirm:c,onOpenChange:s,open:ee,pendingLabel:`Removing…`,title:`Remove Rule`})]})}function P(){let{id:e}=m.useParams(),t=o(),{data:n}=i(_(e)),r=n.SecurityGroups?.[0],s=v(),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)(!1),[p,g]=(0,D.useState)(!1),ne=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!r?.GroupId)return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let y=r.IpPermissions??[],b=r.IpPermissionsEgress??[];return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,O.jsx)(se,{error:s.error,msg:`Failed to delete security group`}),(0,O.jsxs)(`div`,{className:`space-y-6`,children:[(0,O.jsx)(S,{actions:(0,O.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,O.jsxs)(h,{onClick:()=>{l(!0)},size:`sm`,variant:`destructive`,children:[(0,O.jsx)(te,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:r.GroupName?`${r.GroupId} (${r.GroupName})`:r.GroupId}),(0,O.jsxs)(T,{children:[(0,O.jsx)(T.Header,{children:`Security Group Information`}),(0,O.jsxs)(T.Content,{children:[(0,O.jsx)(E,{label:`Group ID`,value:r.GroupId}),(0,O.jsx)(E,{label:`Group Name`,value:r.GroupName}),(0,O.jsx)(E,{label:`Description`,value:r.Description}),(0,O.jsx)(E,{label:`VPC ID`,value:r.VpcId?(0,O.jsx)(a,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):`—`}),(0,O.jsx)(E,{label:`Owner ID`,value:r.OwnerId})]})]}),(0,O.jsxs)(T,{children:[(0,O.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,O.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,y.length,`)`]}),(0,O.jsxs)(h,{onClick:()=>{d(!0)},size:`sm`,variant:`outline`,children:[(0,O.jsx)(f,{className:`size-4`}),`Add Rule`]})]}),y.length>0?(0,O.jsx)(`div`,{children:y.flatMap(e=>M(e).map(t=>(0,O.jsx)(N,{direction:`ingress`,groupId:r.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,O.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,O.jsxs)(T,{children:[(0,O.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,O.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,b.length,`)`]}),(0,O.jsxs)(h,{onClick:()=>{g(!0)},size:`sm`,variant:`outline`,children:[(0,O.jsx)(f,{className:`size-4`}),`Add Rule`]})]}),b.length>0?(0,O.jsx)(`div`,{children:b.flatMap(e=>M(e).map(t=>(0,O.jsx)(N,{direction:`egress`,groupId:r.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,O.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,O.jsx)(w,{description:`Are you sure you want to delete the security group "${r.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:ne,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,O.jsx)(j,{direction:`ingress`,groupId:r.GroupId,onOpenChange:d,open:u}),(0,O.jsx)(j,{direction:`egress`,groupId:r.GroupId,onOpenChange:g,open:p})]})}export{P as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DRav28tS.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-O0zfpNfp.js similarity index 91% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-DRav28tS.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-O0zfpNfp.js index 9c72d8bbf..2b7feaf98 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DRav28tS.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-O0zfpNfp.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BE0619AY.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/camera-bmANKZ8M.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{k as r,l as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...r(t.id),staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BE0619AY.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])),`component`)});export{a as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DesZsQPD.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/back-link-wsXUoJ12.js","assets/camera-bmANKZ8M.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{k as r,l as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...r(t.id),staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DesZsQPD.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])),`component`)});export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-DCV_D6-q.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-UthkaM-l.js similarity index 89% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-DCV_D6-q.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-UthkaM-l.js index f34399e13..3dcf9888f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-DCV_D6-q.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-UthkaM-l.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-ZlKy-FIQ.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{l as r,v as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-ZlKy-FIQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{a as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-Culh_OPm.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/trash-DVab4pEz.js","assets/button-C9VMD5Xn.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/error-banner-DeOeVBKS.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/detail-row-DNBRlVeK.js","assets/state-badge-BbpKF1NE.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{l as r,v as i}from"./ec2-BzWGOxUI.js";var a=e(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...i(t.id),staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:t(()=>n(()=>import(`./_id-Culh_OPm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`)});export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id-Cf3gSkxZ.js b/spinifex/services/spinifexui/frontend/dist/assets/_id-Xfn6G0NO.js similarity index 92% rename from spinifex/services/spinifexui/frontend/dist/assets/_id-Cf3gSkxZ.js rename to spinifex/services/spinifexui/frontend/dist/assets/_id-Xfn6G0NO.js index 93419db90..03a337060 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id-Cf3gSkxZ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id-Xfn6G0NO.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-DaazrII8.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/useRender-D_r-BeIy.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,_ as i,d as a,x as o}from"./ec2-BzWGOxUI.js";var s=e(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...o(t.id),staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:t(()=>n(()=>import(`./_id-DaazrII8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])),`component`)});export{s as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_id-BFSvpe_J.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/useNavigate-CTe_-BZA.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/trash-DVab4pEz.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/useRender-D_r-BeIy.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/alert-dialog-Da3OTbL9.js","assets/DialogTitle-BIRU7hlM.js","assets/detail-row-DNBRlVeK.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{ut as n}from"./cluster-config-DNNpxkEw.js";import{O as r,_ as i,d as a,x as o}from"./ec2-BzWGOxUI.js";var s=e(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.query({...o(t.id),staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...i,staleTime:`static`}),e.queryClient.query({...r,staleTime:`static`})])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:t(()=>n(()=>import(`./_id-BFSvpe_J.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])),`component`)});export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address-bOPcFdXH.js b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address-Cj5JFsW1.js similarity index 97% rename from spinifex/services/spinifexui/frontend/dist/assets/allocate-address-bOPcFdXH.js rename to spinifex/services/spinifexui/frontend/dist/assets/allocate-address-Cj5JFsW1.js index 7aab75efa..5a0d331ed 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address-bOPcFdXH.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address-Cj5JFsW1.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{n as o}from"./ec2-B8rwH6Fi.js";import{t as s}from"./page-heading-vksh_67w.js";import{a as c,i as l,t as u}from"./zod-A4qtKH_p.js";import{t as d}from"./error-banner-DeOeVBKS.js";import{t as f}from"./form-actions-ECg9_Gdo.js";import{s as p,t as m}from"./field-BKQO3cRo.js";import{n as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=o(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=c(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;t(n?{to:`/ec2/describe-addresses/$id`,params:{id:n}}:{to:`/ec2/describe-addresses`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(r,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(s,{title:`Allocate Elastic IP`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(d,{error:v.error,msg:`Failed to allocate Elastic IP`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(i,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>{await t({to:`/ec2/describe-addresses`})},e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(f,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{n as o}from"./ec2-BXFEIaSs.js";import{t as s}from"./page-heading-vksh_67w.js";import{a as c,i as l,t as u}from"./zod-A4qtKH_p.js";import{t as d}from"./error-banner-DeOeVBKS.js";import{t as f}from"./form-actions-ECg9_Gdo.js";import{s as p,t as m}from"./field-BKQO3cRo.js";import{n as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=o(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=c(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).AllocationId;t(n?{to:`/ec2/describe-addresses/$id`,params:{id:n}}:{to:`/ec2/describe-addresses`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(r,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(s,{title:`Allocate Elastic IP`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(d,{error:v.error,msg:`Failed to allocate Elastic IP`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-elastic-ip`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(i,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>{await t({to:`/ec2/describe-addresses`})},e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(f,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Allocating…`,submitLabel:`Allocate`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 allocate-address`},{type:`flag`,value:` \\ --domain`},{type:`value`,value:` vpc`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=elastic-ip,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Allocate Elastic IP`,parts:t}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-DXtpKz1N.js b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-Cpxiz-Mj.js similarity index 97% rename from spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-DXtpKz1N.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-Cpxiz-Mj.js index 229d8bf20..e723b6f4d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-DXtpKz1N.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway-Cpxiz-Mj.js @@ -1,2 +1,2 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{p as o}from"./ec2-B8rwH6Fi.js";import{t as s}from"./page-heading-vksh_67w.js";import{a as c,i as l,t as u}from"./zod-A4qtKH_p.js";import{t as d}from"./error-banner-DeOeVBKS.js";import{t as f}from"./form-actions-ECg9_Gdo.js";import{s as p,t as m}from"./field-BKQO3cRo.js";import{a as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=o(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=c(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;t(n?{to:`/ec2/describe-internet-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-internet-gateways`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(r,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(s,{title:`Create Internet Gateway`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(d,{error:v.error,msg:`Failed to create Internet Gateway`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(i,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>{await t({to:`/ec2/describe-internet-gateways`})},e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(f,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{p as o}from"./ec2-BXFEIaSs.js";import{t as s}from"./page-heading-vksh_67w.js";import{a as c,i as l,t as u}from"./zod-A4qtKH_p.js";import{t as d}from"./error-banner-DeOeVBKS.js";import{t as f}from"./form-actions-ECg9_Gdo.js";import{s as p,t as m}from"./field-BKQO3cRo.js";import{a as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=o(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:u(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=l(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=c(E),O;e[3]!==v||e[4]!==t?(O=async e=>{let n=(await v.mutateAsync({name:e.name?.trim()??void 0})).InternetGateway?.InternetGatewayId;t(n?{to:`/ec2/describe-internet-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-internet-gateways`})},e[3]=v,e[4]=t,e[5]=O):O=e[5];let k=O,A,j;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,_.jsx)(r,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(s,{title:`Create Internet Gateway`}),e[6]=A,e[7]=j):(A=e[6],j=e[7]);let M;e[8]===v.error?M=e[9]:(M=v.error&&(0,_.jsx)(d,{error:v.error,msg:`Failed to create Internet Gateway`}),e[8]=v.error,e[9]=M);let N;e[10]!==S||e[11]!==k?(N=S(k),e[10]=S,e[11]=k,e[12]=N):N=e[12];let P;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(p,{children:(0,_.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=P):P=e[13];let F;e[14]===C?F=e[15]:(F=C(`name`),e[14]=C,e[15]=F);let I;e[16]===F?I=e[17]:(I=(0,_.jsxs)(m,{children:[P,(0,_.jsx)(a,{id:`name`,placeholder:`my-internet-gateway`,...F})]}),e[16]=F,e[17]=I);let L=D.name??``,R;e[18]===L?R=e[19]:(R=y(L),e[18]=L,e[19]=R);let z;e[20]===R?z=e[21]:(z=(0,_.jsx)(i,{commands:R}),e[20]=R,e[21]=z);let B;e[22]===t?B=e[23]:(B=async()=>{await t({to:`/ec2/describe-internet-gateways`})},e[22]=t,e[23]=B);let V;e[24]!==v.isPending||e[25]!==T||e[26]!==B?(V=(0,_.jsx)(f,{isPending:v.isPending,isSubmitting:T,onCancel:B,pendingLabel:`Creating…`,submitLabel:`Create`}),e[24]=v.isPending,e[25]=T,e[26]=B,e[27]=V):V=e[27];let H;e[28]!==I||e[29]!==z||e[30]!==V||e[31]!==N?(H=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:N,children:[I,z,V]}),e[28]=I,e[29]=z,e[30]=V,e[31]=N,e[32]=H):H=e[32];let U;return e[33]!==H||e[34]!==M?(U=(0,_.jsxs)(_.Fragment,{children:[A,j,M,H]}),e[33]=H,e[34]=M,e[35]=U):U=e[35],U}function y(e){let t=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-internet-gateway`}];return e.trim()&&t.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=internet-gateway,Tags=[{Key=Name,Value=${e.trim()}}]'`}),[{label:`Create Internet Gateway`,parts:t}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-C4fE7ZNR.js b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-CAViKLoj.js similarity index 99% rename from spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-C4fE7ZNR.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-CAViKLoj.js index 2650f5a7d..4f78cf715 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-C4fE7ZNR.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair-CAViKLoj.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as ee}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{t as te}from"./check-BO7W8OSs.js";import{c as a,i as o,n as s,s as c,t as ne}from"./select-sbVkpt-r.js";import{t as l}from"./download-B-6MA128.js";import{t as u}from"./cli-command-panel-4C78XA6W.js";import{t as d}from"./triangle-alert-DcjzeKLg.js";import{t as f}from"./button-C9VMD5Xn.js";import{t as p}from"./input-CBUMH1Jl.js";import{m}from"./ec2-B8rwH6Fi.js";import{t as h}from"./page-heading-vksh_67w.js";import{a as g,i as _,n as v,t as y}from"./zod-A4qtKH_p.js";import{t as b}from"./error-banner-DeOeVBKS.js";import{t as x}from"./form-actions-ECg9_Gdo.js";import{n as S,r as C,s as w,t as T}from"./field-BKQO3cRo.js";import{a as re,c as E,i as ie,l as D,o as ae,r as O,s as oe,t as k}from"./alert-dialog-Da3OTbL9.js";import{t as A}from"./use-copy-to-clipboard-DjiD3qo6.js";import{o as j}from"./ec2-CSDTsDKe.js";var M=t(n(),1),se=r(),N=e();function P(e){let t=(0,se.c)(38),{open:n,keyName:r,keyMaterial:i}=e,a=ee(),{copied:o,copy:s}=A(),c;t[0]!==i||t[1]!==r?(c=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=c):c=t[2];let ne=c,u;t[3]===a?u=t[4]:(u=()=>{a({to:`/ec2/describe-key-pairs`})},t[3]=a,t[4]=u);let p=u,m,h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(E,{children:(0,N.jsx)(d,{className:`text-destructive`})}),h=(0,N.jsx)(D,{children:`Save Your Private Key`}),t[5]=m,t[6]=h):(m=t[5],h=t[6]);let g;t[7]===r?g=t[8]:(g=(0,N.jsxs)(oe,{children:[m,h,(0,N.jsxs)(re,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=g);let _=`Private key material for ${r}`,v;t[9]!==i||t[10]!==_?(v=(0,N.jsx)(`textarea`,{"aria-label":_,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:i}),t[9]=i,t[10]=_,t[11]=v):v=t[11];let y;t[12]!==s||t[13]!==i?(y=async()=>{await s(i)},t[12]=s,t[13]=i,t[14]=y):y=t[14];let b;t[15]===o?b=t[16]:(b=o?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=o,t[16]=b);let x;t[17]!==y||t[18]!==b?(x=(0,N.jsx)(f,{className:`flex-1`,onClick:y,type:`button`,variant:`outline`,children:b}),t[17]=y,t[18]=b,t[19]=x):x=t[19];let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[20]=S):S=t[20];let C;t[21]===ne?C=t[22]:(C=(0,N.jsxs)(f,{className:`flex-1`,onClick:ne,type:`button`,variant:`outline`,children:[S,`Download .pem File`]}),t[21]=ne,t[22]=C);let w;t[23]!==x||t[24]!==C?(w=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[x,C]}),t[23]=x,t[24]=C,t[25]=w):w=t[25];let T;t[26]!==w||t[27]!==v?(T=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[v,w]}),t[26]=w,t[27]=v,t[28]=T):T=t[28];let j;t[29]===p?j=t[30]:(j=(0,N.jsx)(ae,{children:(0,N.jsx)(O,{onClick:p,children:`Close and Continue`})}),t[29]=p,t[30]=j);let M;t[31]!==T||t[32]!==j||t[33]!==g?(M=(0,N.jsxs)(ie,{className:`max-w-2xl`,children:[g,T,j]}),t[31]=T,t[32]=j,t[33]=g,t[34]=M):M=t[34];let P;return t[35]!==n||t[36]!==M?(P=(0,N.jsx)(k,{open:n,children:M}),t[35]=n,t[36]=M,t[37]=P):P=t[37],P}function F(){let e=(0,se.c)(58),t=ee(),n=m(),[r,te]=(0,M.useState)(null),l;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=y(j),e[0]=l):l=e[0];let d;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:l,defaultValues:{keyType:`rsa`}},e[1]=d):d=e[1];let{handleSubmit:f,register:re,control:E,formState:ie}=_(d),{errors:D,isSubmitting:ae}=ie,O;e[2]===E?O=e[3]:(O={control:E},e[2]=E,e[3]=O);let oe=g(O),k;e[4]===n?k=e[5]:(k=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&te({keyName:e.keyName,material:t.KeyMaterial})},e[4]=n,e[5]=k);let A=k,F,I;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),I=(0,N.jsx)(h,{title:`Create Key Pair`}),e[6]=F,e[7]=I):(F=e[6],I=e[7]);let L;e[8]===n.error?L=e[9]:(L=n.error&&(0,N.jsx)(b,{error:n.error,msg:`Failed to create key pair`}),e[8]=n.error,e[9]=L);let R;e[10]!==f||e[11]!==A?(R=f(A),e[10]=f,e[11]=A,e[12]=R):R=e[12];let z;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,N.jsx)(w,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=z):z=e[13];let le=!!D.keyName,B;e[14]===re?B=e[15]:(B=re(`keyName`),e[14]=re,e[15]=B);let V;e[16]!==le||e[17]!==B?(V=(0,N.jsx)(p,{"aria-invalid":le,id:`keyName`,placeholder:`my-key-pair…`,...B}),e[16]=le,e[17]=B,e[18]=V):V=e[18];let H;e[19]===D.keyName?H=e[20]:(H=(0,N.jsx)(C,{errors:[D.keyName]}),e[19]=D.keyName,e[20]=H);let U;e[21]!==V||e[22]!==H?(U=(0,N.jsxs)(T,{children:[z,V,H]}),e[21]=V,e[22]=H,e[23]=U):U=e[23];let ue;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,N.jsx)(w,{children:(0,N.jsx)(`label`,{htmlFor:`keyType`,children:`Key Type`})}),e[24]=ue):ue=e[24];let W;e[25]===D.keyType?W=e[26]:(W=e=>{let{field:t}=e;return(0,N.jsxs)(ne,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,N.jsx)(c,{"aria-invalid":!!D.keyType,className:`w-full`,id:`keyType`,children:(0,N.jsx)(a,{placeholder:`Select a key type`})}),(0,N.jsxs)(s,{children:[(0,N.jsx)(o,{value:`rsa`,children:`RSA (2048-bit)`}),(0,N.jsx)(o,{value:`ed25519`,children:`ED25519`})]})]})},e[25]=D.keyType,e[26]=W);let G;e[27]!==E||e[28]!==W?(G=(0,N.jsx)(v,{control:E,name:`keyType`,render:W}),e[27]=E,e[28]=W,e[29]=G):G=e[29];let de;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,N.jsx)(S,{children:`RSA is required to retrieve a Windows administrator password. ED25519 works for SSH only.`}),e[30]=de):de=e[30];let K;e[31]===D.keyType?K=e[32]:(K=(0,N.jsx)(C,{errors:[D.keyType]}),e[31]=D.keyType,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,N.jsxs)(T,{children:[ue,G,de,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===oe?J=e[37]:(J=ce(oe),e[36]=oe,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,N.jsx)(u,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==n.isPending||e[43]!==ae||e[44]!==X?(Z=(0,N.jsx)(x,{isPending:n.isPending,isSubmitting:ae,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[42]=n.isPending,e[43]=ae,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==U||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==R?(Q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[U,q,Y,Z]}),e[46]=U,e[47]=q,e[48]=Y,e[49]=Z,e[50]=R,e[51]=Q):Q=e[51];let $;e[52]===r?$=e[53]:($=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[52]=r,e[53]=$);let fe;return e[54]!==Q||e[55]!==$||e[56]!==L?(fe=(0,N.jsxs)(N.Fragment,{children:[F,I,L,Q,$]}),e[54]=Q,e[55]=$,e[56]=L,e[57]=fe):fe=e[57],fe}function ce(e){let t=e.keyName??``,n=e.keyType??`rsa`;return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` --key-type`},{type:`value`,value:` ${n}`}]}]}var I=F;export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as ee}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{t as te}from"./check-BO7W8OSs.js";import{c as a,i as o,n as s,s as c,t as ne}from"./select-sbVkpt-r.js";import{t as l}from"./download-B-6MA128.js";import{t as u}from"./cli-command-panel-4C78XA6W.js";import{t as d}from"./triangle-alert-DcjzeKLg.js";import{t as f}from"./button-C9VMD5Xn.js";import{t as p}from"./input-CBUMH1Jl.js";import{m}from"./ec2-BXFEIaSs.js";import{t as h}from"./page-heading-vksh_67w.js";import{a as g,i as _,n as v,t as y}from"./zod-A4qtKH_p.js";import{t as b}from"./error-banner-DeOeVBKS.js";import{t as x}from"./form-actions-ECg9_Gdo.js";import{n as S,r as C,s as w,t as T}from"./field-BKQO3cRo.js";import{a as re,c as E,i as ie,l as D,o as ae,r as O,s as oe,t as k}from"./alert-dialog-Da3OTbL9.js";import{t as A}from"./use-copy-to-clipboard-DjiD3qo6.js";import{o as j}from"./ec2-CSDTsDKe.js";var M=t(n(),1),se=r(),N=e();function P(e){let t=(0,se.c)(38),{open:n,keyName:r,keyMaterial:i}=e,a=ee(),{copied:o,copy:s}=A(),c;t[0]!==i||t[1]!==r?(c=()=>{let e=new Blob([i],{type:`text/plain`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${r}.pem`,n.click(),URL.revokeObjectURL(t)},t[0]=i,t[1]=r,t[2]=c):c=t[2];let ne=c,u;t[3]===a?u=t[4]:(u=()=>{a({to:`/ec2/describe-key-pairs`})},t[3]=a,t[4]=u);let p=u,m,h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(E,{children:(0,N.jsx)(d,{className:`text-destructive`})}),h=(0,N.jsx)(D,{children:`Save Your Private Key`}),t[5]=m,t[6]=h):(m=t[5],h=t[6]);let g;t[7]===r?g=t[8]:(g=(0,N.jsxs)(oe,{children:[m,h,(0,N.jsxs)(re,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=g);let _=`Private key material for ${r}`,v;t[9]!==i||t[10]!==_?(v=(0,N.jsx)(`textarea`,{"aria-label":_,className:`w-full resize-none overflow-y-auto rounded-md border border-input bg-input/20 px-2 py-2 font-mono text-xs`,readOnly:!0,rows:4,value:i}),t[9]=i,t[10]=_,t[11]=v):v=t[11];let y;t[12]!==s||t[13]!==i?(y=async()=>{await s(i)},t[12]=s,t[13]=i,t[14]=y):y=t[14];let b;t[15]===o?b=t[16]:(b=o?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=o,t[16]=b);let x;t[17]!==y||t[18]!==b?(x=(0,N.jsx)(f,{className:`flex-1`,onClick:y,type:`button`,variant:`outline`,children:b}),t[17]=y,t[18]=b,t[19]=x):x=t[19];let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[20]=S):S=t[20];let C;t[21]===ne?C=t[22]:(C=(0,N.jsxs)(f,{className:`flex-1`,onClick:ne,type:`button`,variant:`outline`,children:[S,`Download .pem File`]}),t[21]=ne,t[22]=C);let w;t[23]!==x||t[24]!==C?(w=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[x,C]}),t[23]=x,t[24]=C,t[25]=w):w=t[25];let T;t[26]!==w||t[27]!==v?(T=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[v,w]}),t[26]=w,t[27]=v,t[28]=T):T=t[28];let j;t[29]===p?j=t[30]:(j=(0,N.jsx)(ae,{children:(0,N.jsx)(O,{onClick:p,children:`Close and Continue`})}),t[29]=p,t[30]=j);let M;t[31]!==T||t[32]!==j||t[33]!==g?(M=(0,N.jsxs)(ie,{className:`max-w-2xl`,children:[g,T,j]}),t[31]=T,t[32]=j,t[33]=g,t[34]=M):M=t[34];let P;return t[35]!==n||t[36]!==M?(P=(0,N.jsx)(k,{open:n,children:M}),t[35]=n,t[36]=M,t[37]=P):P=t[37],P}function F(){let e=(0,se.c)(58),t=ee(),n=m(),[r,te]=(0,M.useState)(null),l;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=y(j),e[0]=l):l=e[0];let d;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:l,defaultValues:{keyType:`rsa`}},e[1]=d):d=e[1];let{handleSubmit:f,register:re,control:E,formState:ie}=_(d),{errors:D,isSubmitting:ae}=ie,O;e[2]===E?O=e[3]:(O={control:E},e[2]=E,e[3]=O);let oe=g(O),k;e[4]===n?k=e[5]:(k=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&te({keyName:e.keyName,material:t.KeyMaterial})},e[4]=n,e[5]=k);let A=k,F,I;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),I=(0,N.jsx)(h,{title:`Create Key Pair`}),e[6]=F,e[7]=I):(F=e[6],I=e[7]);let L;e[8]===n.error?L=e[9]:(L=n.error&&(0,N.jsx)(b,{error:n.error,msg:`Failed to create key pair`}),e[8]=n.error,e[9]=L);let R;e[10]!==f||e[11]!==A?(R=f(A),e[10]=f,e[11]=A,e[12]=R):R=e[12];let z;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,N.jsx)(w,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=z):z=e[13];let le=!!D.keyName,B;e[14]===re?B=e[15]:(B=re(`keyName`),e[14]=re,e[15]=B);let V;e[16]!==le||e[17]!==B?(V=(0,N.jsx)(p,{"aria-invalid":le,id:`keyName`,placeholder:`my-key-pair…`,...B}),e[16]=le,e[17]=B,e[18]=V):V=e[18];let H;e[19]===D.keyName?H=e[20]:(H=(0,N.jsx)(C,{errors:[D.keyName]}),e[19]=D.keyName,e[20]=H);let U;e[21]!==V||e[22]!==H?(U=(0,N.jsxs)(T,{children:[z,V,H]}),e[21]=V,e[22]=H,e[23]=U):U=e[23];let ue;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,N.jsx)(w,{children:(0,N.jsx)(`label`,{htmlFor:`keyType`,children:`Key Type`})}),e[24]=ue):ue=e[24];let W;e[25]===D.keyType?W=e[26]:(W=e=>{let{field:t}=e;return(0,N.jsxs)(ne,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,N.jsx)(c,{"aria-invalid":!!D.keyType,className:`w-full`,id:`keyType`,children:(0,N.jsx)(a,{placeholder:`Select a key type`})}),(0,N.jsxs)(s,{children:[(0,N.jsx)(o,{value:`rsa`,children:`RSA (2048-bit)`}),(0,N.jsx)(o,{value:`ed25519`,children:`ED25519`})]})]})},e[25]=D.keyType,e[26]=W);let G;e[27]!==E||e[28]!==W?(G=(0,N.jsx)(v,{control:E,name:`keyType`,render:W}),e[27]=E,e[28]=W,e[29]=G):G=e[29];let de;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,N.jsx)(S,{children:`RSA is required to retrieve a Windows administrator password. ED25519 works for SSH only.`}),e[30]=de):de=e[30];let K;e[31]===D.keyType?K=e[32]:(K=(0,N.jsx)(C,{errors:[D.keyType]}),e[31]=D.keyType,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,N.jsxs)(T,{children:[ue,G,de,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===oe?J=e[37]:(J=ce(oe),e[36]=oe,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,N.jsx)(u,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==n.isPending||e[43]!==ae||e[44]!==X?(Z=(0,N.jsx)(x,{isPending:n.isPending,isSubmitting:ae,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[42]=n.isPending,e[43]=ae,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==U||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==R?(Q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[U,q,Y,Z]}),e[46]=U,e[47]=q,e[48]=Y,e[49]=Z,e[50]=R,e[51]=Q):Q=e[51];let $;e[52]===r?$=e[53]:($=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[52]=r,e[53]=$);let fe;return e[54]!==Q||e[55]!==$||e[56]!==L?(fe=(0,N.jsxs)(N.Fragment,{children:[F,I,L,Q,$]}),e[54]=Q,e[55]=$,e[56]=L,e[57]=fe):fe=e[57],fe}function ce(e){let t=e.keyName??``,n=e.keyType??`rsa`;return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` --key-type`},{type:`value`,value:` ${n}`}]}]}var I=F;export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-eS85bS-q.js b/spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-CZvRqBCG.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-eS85bS-q.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-CZvRqBCG.js index 66aa769b6..ae79ebecb 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-eS85bS-q.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-launch-template-CZvRqBCG.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{h as o,t as s}from"./ec2-B8rwH6Fi.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as l,i as u,t as ee}from"./zod-A4qtKH_p.js";import{t as te}from"./error-banner-DeOeVBKS.js";import{t as ne}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{s as m}from"./ec2-CSDTsDKe.js";import{t as h}from"./launch-template-data-fields-KubGXzaR.js";var g=t(),_=e();function v(){let e=(0,g.c)(56),t=n(),v=o(),y;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(y=ee(m),e[0]=y):y=e[0];let x;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:y,defaultValues:{launchTemplateName:``,versionDescription:``,imageId:``,instanceType:``,securityGroupIds:[],userData:``}},e[1]=x):x=e[1];let{control:S,handleSubmit:C,register:w,formState:T}=u(x),{errors:E,isSubmitting:D}=T,O;e[2]===S?O=e[3]:(O={control:S},e[2]=S,e[3]=O);let k=l(O),A;e[4]!==v||e[5]!==t?(A=async e=>{let n=(await v.mutateAsync(e)).LaunchTemplate?.LaunchTemplateId;if(!n){t({to:`/ec2/describe-launch-templates`});return}t({to:`/ec2/describe-launch-templates/$id`,params:{id:n}})},e[4]=v,e[5]=t,e[6]=A):A=e[6];let j=A,M,N;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,_.jsx)(r,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),N=(0,_.jsx)(c,{title:`Create Launch Template`}),e[7]=M,e[8]=N):(M=e[7],N=e[8]);let P;e[9]===v.error?P=e[10]:(P=v.error&&(0,_.jsx)(te,{error:v.error,msg:`Failed to create launch template`}),e[9]=v.error,e[10]=P);let F;e[11]!==C||e[12]!==j?(F=C(j),e[11]=C,e[12]=j,e[13]=F):F=e[13];let I;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateName`,children:`Name`})}),e[14]=I):I=e[14];let L=!!E.launchTemplateName,R;e[15]===w?R=e[16]:(R=w(`launchTemplateName`),e[15]=w,e[16]=R);let z;e[17]!==L||e[18]!==R?(z=(0,_.jsx)(a,{"aria-invalid":L,id:`launchTemplateName`,placeholder:`my-launch-template`,...R}),e[17]=L,e[18]=R,e[19]=z):z=e[19];let B;e[20]===E.launchTemplateName?B=e[21]:(B=(0,_.jsx)(d,{errors:[E.launchTemplateName]}),e[20]=E.launchTemplateName,e[21]=B);let V;e[22]!==z||e[23]!==B?(V=(0,_.jsxs)(p,{children:[I,z,B]}),e[22]=z,e[23]=B,e[24]=V):V=e[24];let H;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`versionDescription`,children:`Version Description`})}),e[25]=H):H=e[25];let U;e[26]===w?U=e[27]:(U=w(`versionDescription`),e[26]=w,e[27]=U);let W;e[28]===U?W=e[29]:(W=(0,_.jsxs)(p,{children:[H,(0,_.jsx)(a,{id:`versionDescription`,placeholder:`Initial version`,...U})]}),e[28]=U,e[29]=W);let G;e[30]!==S||e[31]!==E||e[32]!==w?(G=(0,_.jsx)(h,{control:S,errors:E,register:w}),e[30]=S,e[31]=E,e[32]=w,e[33]=G):G=e[33];let K=k.launchTemplateName??``,q=k.versionDescription??``,J;e[34]!==K||e[35]!==q||e[36]!==k?(J=b(K,q,s(k)),e[34]=K,e[35]=q,e[36]=k,e[37]=J):J=e[37];let Y;e[38]===J?Y=e[39]:(Y=(0,_.jsx)(i,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-launch-templates`})},e[40]=t,e[41]=X);let Z;e[42]!==v.isPending||e[43]!==D||e[44]!==X?(Z=(0,_.jsx)(ne,{isPending:v.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Launch Template`}),e[42]=v.isPending,e[43]=D,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==V||e[47]!==W||e[48]!==G||e[49]!==Y||e[50]!==Z||e[51]!==F?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[V,W,G,Y,Z]}),e[46]=V,e[47]=W,e[48]=G,e[49]=Y,e[50]=Z,e[51]=F,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==P?($=(0,_.jsxs)(_.Fragment,{children:[M,N,P,Q]}),e[53]=Q,e[54]=P,e[55]=$):$=e[55],$}function y(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function b(e,t,n){let r=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-launch-template`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{h as o,t as s}from"./ec2-BXFEIaSs.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as l,i as u,t as ee}from"./zod-A4qtKH_p.js";import{t as te}from"./error-banner-DeOeVBKS.js";import{t as ne}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{s as m}from"./ec2-CSDTsDKe.js";import{t as h}from"./launch-template-data-fields-KubGXzaR.js";var g=t(),_=e();function v(){let e=(0,g.c)(56),t=n(),v=o(),y;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(y=ee(m),e[0]=y):y=e[0];let x;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:y,defaultValues:{launchTemplateName:``,versionDescription:``,imageId:``,instanceType:``,securityGroupIds:[],userData:``}},e[1]=x):x=e[1];let{control:S,handleSubmit:C,register:w,formState:T}=u(x),{errors:E,isSubmitting:D}=T,O;e[2]===S?O=e[3]:(O={control:S},e[2]=S,e[3]=O);let k=l(O),A;e[4]!==v||e[5]!==t?(A=async e=>{let n=(await v.mutateAsync(e)).LaunchTemplate?.LaunchTemplateId;if(!n){t({to:`/ec2/describe-launch-templates`});return}t({to:`/ec2/describe-launch-templates/$id`,params:{id:n}})},e[4]=v,e[5]=t,e[6]=A):A=e[6];let j=A,M,N;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,_.jsx)(r,{to:`/ec2/describe-launch-templates`,children:`Back to launch templates`}),N=(0,_.jsx)(c,{title:`Create Launch Template`}),e[7]=M,e[8]=N):(M=e[7],N=e[8]);let P;e[9]===v.error?P=e[10]:(P=v.error&&(0,_.jsx)(te,{error:v.error,msg:`Failed to create launch template`}),e[9]=v.error,e[10]=P);let F;e[11]!==C||e[12]!==j?(F=C(j),e[11]=C,e[12]=j,e[13]=F):F=e[13];let I;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateName`,children:`Name`})}),e[14]=I):I=e[14];let L=!!E.launchTemplateName,R;e[15]===w?R=e[16]:(R=w(`launchTemplateName`),e[15]=w,e[16]=R);let z;e[17]!==L||e[18]!==R?(z=(0,_.jsx)(a,{"aria-invalid":L,id:`launchTemplateName`,placeholder:`my-launch-template`,...R}),e[17]=L,e[18]=R,e[19]=z):z=e[19];let B;e[20]===E.launchTemplateName?B=e[21]:(B=(0,_.jsx)(d,{errors:[E.launchTemplateName]}),e[20]=E.launchTemplateName,e[21]=B);let V;e[22]!==z||e[23]!==B?(V=(0,_.jsxs)(p,{children:[I,z,B]}),e[22]=z,e[23]=B,e[24]=V):V=e[24];let H;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`versionDescription`,children:`Version Description`})}),e[25]=H):H=e[25];let U;e[26]===w?U=e[27]:(U=w(`versionDescription`),e[26]=w,e[27]=U);let W;e[28]===U?W=e[29]:(W=(0,_.jsxs)(p,{children:[H,(0,_.jsx)(a,{id:`versionDescription`,placeholder:`Initial version`,...U})]}),e[28]=U,e[29]=W);let G;e[30]!==S||e[31]!==E||e[32]!==w?(G=(0,_.jsx)(h,{control:S,errors:E,register:w}),e[30]=S,e[31]=E,e[32]=w,e[33]=G):G=e[33];let K=k.launchTemplateName??``,q=k.versionDescription??``,J;e[34]!==K||e[35]!==q||e[36]!==k?(J=b(K,q,s(k)),e[34]=K,e[35]=q,e[36]=k,e[37]=J):J=e[37];let Y;e[38]===J?Y=e[39]:(Y=(0,_.jsx)(i,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-launch-templates`})},e[40]=t,e[41]=X);let Z;e[42]!==v.isPending||e[43]!==D||e[44]!==X?(Z=(0,_.jsx)(ne,{isPending:v.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Launch Template`}),e[42]=v.isPending,e[43]=D,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==V||e[47]!==W||e[48]!==G||e[49]!==Y||e[50]!==Z||e[51]!==F?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[V,W,G,Y,Z]}),e[46]=V,e[47]=W,e[48]=G,e[49]=Y,e[50]=Z,e[51]=F,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==P?($=(0,_.jsxs)(_.Fragment,{children:[M,N,P,Q]}),e[53]=Q,e[54]=P,e[55]=$):$=e[55],$}function y(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function b(e,t,n){let r=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-launch-template`},{type:`flag`,value:` \\ --launch-template-name`},{type:`value`,value:` ${e?y(e):``}`}];return t&&r.push({type:`flag`,value:` \\ --version-description`},{type:`value`,value:` ${y(t)}`}),r.push({type:`flag`,value:` \\ --launch-template-data`},{type:`value`,value:` ${y(JSON.stringify(n))}`}),[{label:`Create Launch Template`,parts:r}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-CSx3nd5L.js b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-z5NzuiEa.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-CSx3nd5L.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-z5NzuiEa.js index 3b627d65d..78d0e2273 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-CSx3nd5L.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway-z5NzuiEa.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./link-BokOReHc.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{cn as a}from"./cluster-config-DNNpxkEw.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as o,i as s,n as c,s as l,t as u}from"./select-sbVkpt-r.js";import{t as te}from"./cli-command-panel-4C78XA6W.js";import{t as ne}from"./input-CBUMH1Jl.js";import{O as re,n as ie}from"./ec2-BzWGOxUI.js";import{_ as ae}from"./ec2-B8rwH6Fi.js";import{t as oe}from"./page-heading-vksh_67w.js";import{a as se,i as ce,n as le,t as ue}from"./zod-A4qtKH_p.js";import{t as de}from"./error-banner-DeOeVBKS.js";import{t as fe}from"./form-actions-ECg9_Gdo.js";import{r as pe,s as d,t as f}from"./field-BKQO3cRo.js";import{l as me}from"./ec2-CSDTsDKe.js";var he=t(),p=e();function m(){let e=(0,he.c)(68),t=i(),{data:a}=n(re),{data:s}=n(ie),m=ae(),h;e[0]===a.Subnets?h=e[1]:(h=a.Subnets??[],e[0]=a.Subnets,e[1]=h);let g=h,_;e[2]===g?_=e[3]:(_=g.filter(ye),e[2]=g,e[3]=_);let xe=_,v=xe.length>0?xe:g,y;e[4]===s.Addresses?y=e[5]:(y=s.Addresses??[],e[4]=s.Addresses,e[5]=y);let b;e[6]===y?b=e[7]:(b=y.filter(ve),e[6]=y,e[7]=b);let x=b,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(S={resolver:ue(me),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=S):S=e[8];let{control:C,handleSubmit:w,register:T,formState:Se}=ce(S),{errors:E,isSubmitting:D}=Se,O;e[9]===C?O=e[10]:(O={control:C},e[9]=C,e[10]=O);let k=se(O),A;e[11]!==m||e[12]!==t?(A=async e=>{let n=(await m.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[11]=m,e[12]=t,e[13]=A):A=e[13];let j=A,M,N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(ee,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),N=(0,p.jsx)(oe,{title:`Create NAT Gateway`}),e[14]=M,e[15]=N):(M=e[14],N=e[15]);let P;e[16]===m.error?P=e[17]:(P=m.error&&(0,p.jsx)(de,{error:m.error,msg:`Failed to create NAT Gateway`}),e[16]=m.error,e[17]=P);let F;e[18]!==w||e[19]!==j?(F=w(j),e[18]=w,e[19]=j,e[20]=F):F=e[20];let I;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[21]=I):I=e[21];let L;e[22]===T?L=e[23]:(L=T(`name`),e[22]=T,e[23]=L);let R;e[24]===L?R=e[25]:(R=(0,p.jsxs)(f,{children:[I,(0,p.jsx)(ne,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[24]=L,e[25]=R);let z;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[26]=z):z=e[26];let B;e[27]!==E.subnetId||e[28]!==v?(B=e=>{let{field:t}=e;return(0,p.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,p.jsx)(l,{"aria-invalid":!!E.subnetId,className:`w-full`,id:`subnetId`,children:(0,p.jsx)(o,{placeholder:`Select a public subnet`})}),(0,p.jsx)(c,{children:v.map(_e)})]})},e[27]=E.subnetId,e[28]=v,e[29]=B):B=e[29];let V;e[30]!==C||e[31]!==B?(V=(0,p.jsx)(le,{control:C,name:`subnetId`,render:B}),e[30]=C,e[31]=B,e[32]=V):V=e[32];let H;e[33]===E.subnetId?H=e[34]:(H=(0,p.jsx)(pe,{errors:[E.subnetId]}),e[33]=E.subnetId,e[34]=H);let U;e[35]!==V||e[36]!==H?(U=(0,p.jsxs)(f,{children:[z,V,H]}),e[35]=V,e[36]=H,e[37]=U):U=e[37];let W;e[38]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[38]=W):W=e[38];let G;e[39]!==x||e[40]!==C||e[41]!==E.allocationId?(G=x.length>0?(0,p.jsx)(le,{control:C,name:`allocationId`,render:e=>{let{field:t}=e;return(0,p.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,p.jsx)(l,{"aria-invalid":!!E.allocationId,className:`w-full`,id:`allocationId`,children:(0,p.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,p.jsx)(c,{children:x.map(ge)})]})}}):(0,p.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,p.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[39]=x,e[40]=C,e[41]=E.allocationId,e[42]=G):G=e[42];let K;e[43]===E.allocationId?K=e[44]:(K=(0,p.jsx)(pe,{errors:[E.allocationId]}),e[43]=E.allocationId,e[44]=K);let q;e[45]!==G||e[46]!==K?(q=(0,p.jsxs)(f,{children:[W,G,K]}),e[45]=G,e[46]=K,e[47]=q):q=e[47];let J;e[48]===k?J=e[49]:(J=be(k),e[48]=k,e[49]=J);let Y;e[50]===J?Y=e[51]:(Y=(0,p.jsx)(te,{commands:J}),e[50]=J,e[51]=Y);let X;e[52]===t?X=e[53]:(X=async()=>{await t({to:`/ec2/describe-nat-gateways`})},e[52]=t,e[53]=X);let Z;e[54]!==m.isPending||e[55]!==D||e[56]!==X?(Z=(0,p.jsx)(fe,{isPending:m.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[54]=m.isPending,e[55]=D,e[56]=X,e[57]=Z):Z=e[57];let Q;e[58]!==F||e[59]!==R||e[60]!==U||e[61]!==q||e[62]!==Y||e[63]!==Z?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[58]=F,e[59]=R,e[60]=U,e[61]=q,e[62]=Y,e[63]=Z,e[64]=Q):Q=e[64];let $;return e[65]!==P||e[66]!==Q?($=(0,p.jsxs)(p.Fragment,{children:[M,N,P,Q]}),e[65]=P,e[66]=Q,e[67]=$):$=e[67],$}function ge(e){return(0,p.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function _e(e){let t=a(e.Tags);return(0,p.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function ve(e){return!e.AssociationId}function ye(e){return e.MapPublicIpOnLaunch}function be(e){let t=e.subnetId??``,n=e.allocationId??``,r=e.name??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./link-BokOReHc.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{cn as a}from"./cluster-config-DNNpxkEw.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as o,i as s,n as c,s as l,t as u}from"./select-sbVkpt-r.js";import{t as te}from"./cli-command-panel-4C78XA6W.js";import{t as ne}from"./input-CBUMH1Jl.js";import{O as re,n as ie}from"./ec2-BzWGOxUI.js";import{_ as ae}from"./ec2-BXFEIaSs.js";import{t as oe}from"./page-heading-vksh_67w.js";import{a as se,i as ce,n as le,t as ue}from"./zod-A4qtKH_p.js";import{t as de}from"./error-banner-DeOeVBKS.js";import{t as fe}from"./form-actions-ECg9_Gdo.js";import{r as pe,s as d,t as f}from"./field-BKQO3cRo.js";import{l as me}from"./ec2-CSDTsDKe.js";var he=t(),p=e();function m(){let e=(0,he.c)(68),t=i(),{data:a}=n(re),{data:s}=n(ie),m=ae(),h;e[0]===a.Subnets?h=e[1]:(h=a.Subnets??[],e[0]=a.Subnets,e[1]=h);let g=h,_;e[2]===g?_=e[3]:(_=g.filter(ye),e[2]=g,e[3]=_);let xe=_,v=xe.length>0?xe:g,y;e[4]===s.Addresses?y=e[5]:(y=s.Addresses??[],e[4]=s.Addresses,e[5]=y);let b;e[6]===y?b=e[7]:(b=y.filter(ve),e[6]=y,e[7]=b);let x=b,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(S={resolver:ue(me),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=S):S=e[8];let{control:C,handleSubmit:w,register:T,formState:Se}=ce(S),{errors:E,isSubmitting:D}=Se,O;e[9]===C?O=e[10]:(O={control:C},e[9]=C,e[10]=O);let k=se(O),A;e[11]!==m||e[12]!==t?(A=async e=>{let n=(await m.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[11]=m,e[12]=t,e[13]=A):A=e[13];let j=A,M,N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(ee,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),N=(0,p.jsx)(oe,{title:`Create NAT Gateway`}),e[14]=M,e[15]=N):(M=e[14],N=e[15]);let P;e[16]===m.error?P=e[17]:(P=m.error&&(0,p.jsx)(de,{error:m.error,msg:`Failed to create NAT Gateway`}),e[16]=m.error,e[17]=P);let F;e[18]!==w||e[19]!==j?(F=w(j),e[18]=w,e[19]=j,e[20]=F):F=e[20];let I;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[21]=I):I=e[21];let L;e[22]===T?L=e[23]:(L=T(`name`),e[22]=T,e[23]=L);let R;e[24]===L?R=e[25]:(R=(0,p.jsxs)(f,{children:[I,(0,p.jsx)(ne,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[24]=L,e[25]=R);let z;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[26]=z):z=e[26];let B;e[27]!==E.subnetId||e[28]!==v?(B=e=>{let{field:t}=e;return(0,p.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,p.jsx)(l,{"aria-invalid":!!E.subnetId,className:`w-full`,id:`subnetId`,children:(0,p.jsx)(o,{placeholder:`Select a public subnet`})}),(0,p.jsx)(c,{children:v.map(_e)})]})},e[27]=E.subnetId,e[28]=v,e[29]=B):B=e[29];let V;e[30]!==C||e[31]!==B?(V=(0,p.jsx)(le,{control:C,name:`subnetId`,render:B}),e[30]=C,e[31]=B,e[32]=V):V=e[32];let H;e[33]===E.subnetId?H=e[34]:(H=(0,p.jsx)(pe,{errors:[E.subnetId]}),e[33]=E.subnetId,e[34]=H);let U;e[35]!==V||e[36]!==H?(U=(0,p.jsxs)(f,{children:[z,V,H]}),e[35]=V,e[36]=H,e[37]=U):U=e[37];let W;e[38]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,p.jsx)(d,{children:(0,p.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[38]=W):W=e[38];let G;e[39]!==x||e[40]!==C||e[41]!==E.allocationId?(G=x.length>0?(0,p.jsx)(le,{control:C,name:`allocationId`,render:e=>{let{field:t}=e;return(0,p.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,p.jsx)(l,{"aria-invalid":!!E.allocationId,className:`w-full`,id:`allocationId`,children:(0,p.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,p.jsx)(c,{children:x.map(ge)})]})}}):(0,p.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,p.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[39]=x,e[40]=C,e[41]=E.allocationId,e[42]=G):G=e[42];let K;e[43]===E.allocationId?K=e[44]:(K=(0,p.jsx)(pe,{errors:[E.allocationId]}),e[43]=E.allocationId,e[44]=K);let q;e[45]!==G||e[46]!==K?(q=(0,p.jsxs)(f,{children:[W,G,K]}),e[45]=G,e[46]=K,e[47]=q):q=e[47];let J;e[48]===k?J=e[49]:(J=be(k),e[48]=k,e[49]=J);let Y;e[50]===J?Y=e[51]:(Y=(0,p.jsx)(te,{commands:J}),e[50]=J,e[51]=Y);let X;e[52]===t?X=e[53]:(X=async()=>{await t({to:`/ec2/describe-nat-gateways`})},e[52]=t,e[53]=X);let Z;e[54]!==m.isPending||e[55]!==D||e[56]!==X?(Z=(0,p.jsx)(fe,{isPending:m.isPending,isSubmitting:D,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[54]=m.isPending,e[55]=D,e[56]=X,e[57]=Z):Z=e[57];let Q;e[58]!==F||e[59]!==R||e[60]!==U||e[61]!==q||e[62]!==Y||e[63]!==Z?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[58]=F,e[59]=R,e[60]=U,e[61]=q,e[62]=Y,e[63]=Z,e[64]=Q):Q=e[64];let $;return e[65]!==P||e[66]!==Q?($=(0,p.jsxs)(p.Fragment,{children:[M,N,P,Q]}),e[65]=P,e[66]=Q,e[67]=$):$=e[67],$}function ge(e){return(0,p.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function _e(e){let t=a(e.Tags);return(0,p.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function ve(e){return!e.AssociationId}function ye(e){return e.MapPublicIpOnLaunch}function be(e){let t=e.subnetId??``,n=e.allocationId??``,r=e.name??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` \\ --allocation-id`},{type:`value`,value:` ${n||``}`}];return r.trim()&&i.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${r.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:i}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-Cei835Yj.js b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-D_o6h2Gq.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-Cei835Yj.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-D_o6h2Gq.js index 209017b07..5bb63845c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-Cei835Yj.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group-D_o6h2Gq.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as r,i,n as te,s as a,t as ne}from"./select-sbVkpt-r.js";import{t as re}from"./cli-command-panel-4C78XA6W.js";import{t as o}from"./input-CBUMH1Jl.js";import{v as s}from"./ec2-B8rwH6Fi.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as l,i as u,n as d,t as f}from"./zod-A4qtKH_p.js";import{t as p}from"./error-banner-DeOeVBKS.js";import{t as m}from"./form-actions-ECg9_Gdo.js";import{r as h,s as g,t as _}from"./field-BKQO3cRo.js";import{u as v}from"./ec2-CSDTsDKe.js";var y=t(),b=e();function x(){let e=(0,y.c)(54),t=n(),x=s(),S;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(S={resolver:f(v),defaultValues:{groupName:``,strategy:`spread`}},e[0]=S):S=e[0];let{control:C,handleSubmit:w,register:T,formState:E}=u(S),{errors:D,isSubmitting:O}=E,k;e[1]===C?k=e[2]:(k={control:C},e[1]=C,e[2]=k);let A=l(k),j;e[3]!==x||e[4]!==t?(j=async e=>{let n=await x.mutateAsync(e);t({to:`/ec2/describe-placement-groups/$id`,params:{id:n.PlacementGroup?.GroupId??``}})},e[3]=x,e[4]=t,e[5]=j):j=e[5];let M=j,N,P;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,b.jsx)(ee,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,b.jsx)(c,{title:`Create Placement Group`}),e[6]=N,e[7]=P):(N=e[6],P=e[7]);let F;e[8]===x.error?F=e[9]:(F=x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to create placement group`}),e[8]=x.error,e[9]=F);let I;e[10]!==w||e[11]!==M?(I=w(M),e[10]=w,e[11]=M,e[12]=I):I=e[12];let L;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[13]=L):L=e[13];let R=!!D.groupName,z;e[14]===T?z=e[15]:(z=T(`groupName`),e[14]=T,e[15]=z);let B;e[16]!==z||e[17]!==R?(B=(0,b.jsx)(o,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[16]=z,e[17]=R,e[18]=B):B=e[18];let V;e[19]===D.groupName?V=e[20]:(V=(0,b.jsx)(h,{errors:[D.groupName]}),e[19]=D.groupName,e[20]=V);let H;e[21]!==B||e[22]!==V?(H=(0,b.jsxs)(_,{children:[L,B,V]}),e[21]=B,e[22]=V,e[23]=H):H=e[23];let U;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[24]=U):U=e[24];let W;e[25]===D.strategy?W=e[26]:(W=e=>{let{field:t}=e;return(0,b.jsxs)(ne,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,b.jsx)(a,{"aria-invalid":!!D.strategy,className:`w-full`,id:`strategy`,children:(0,b.jsx)(r,{})}),(0,b.jsxs)(te,{children:[(0,b.jsx)(i,{value:`spread`,children:`spread`}),(0,b.jsx)(i,{value:`cluster`,children:`cluster`})]})]})},e[25]=D.strategy,e[26]=W);let G;e[27]!==C||e[28]!==W?(G=(0,b.jsx)(d,{control:C,name:`strategy`,render:W}),e[27]=C,e[28]=W,e[29]=G):G=e[29];let K;e[30]===D.strategy?K=e[31]:(K=(0,b.jsx)(h,{errors:[D.strategy]}),e[30]=D.strategy,e[31]=K);let q;e[32]!==G||e[33]!==K?(q=(0,b.jsxs)(_,{children:[U,G,K]}),e[32]=G,e[33]=K,e[34]=q):q=e[34];let J;e[35]===A?J=e[36]:(J=ie(A),e[35]=A,e[36]=J);let Y;e[37]===J?Y=e[38]:(Y=(0,b.jsx)(re,{commands:J}),e[37]=J,e[38]=Y);let X;e[39]===t?X=e[40]:(X=async()=>{await t({to:`/ec2/describe-placement-groups`})},e[39]=t,e[40]=X);let Z;e[41]!==x.isPending||e[42]!==O||e[43]!==X?(Z=(0,b.jsx)(m,{isPending:x.isPending,isSubmitting:O,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[41]=x.isPending,e[42]=O,e[43]=X,e[44]=Z):Z=e[44];let Q;e[45]!==H||e[46]!==q||e[47]!==Y||e[48]!==Z||e[49]!==I?(Q=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[45]=H,e[46]=q,e[47]=Y,e[48]=Z,e[49]=I,e[50]=Q):Q=e[50];let $;return e[51]!==Q||e[52]!==F?($=(0,b.jsxs)(b.Fragment,{children:[N,P,F,Q]}),e[51]=Q,e[52]=F,e[53]=$):$=e[53],$}function S(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ie(e){let t=e.groupName??``,n=e.strategy??``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as r,i,n as te,s as a,t as ne}from"./select-sbVkpt-r.js";import{t as re}from"./cli-command-panel-4C78XA6W.js";import{t as o}from"./input-CBUMH1Jl.js";import{v as s}from"./ec2-BXFEIaSs.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as l,i as u,n as d,t as f}from"./zod-A4qtKH_p.js";import{t as p}from"./error-banner-DeOeVBKS.js";import{t as m}from"./form-actions-ECg9_Gdo.js";import{r as h,s as g,t as _}from"./field-BKQO3cRo.js";import{u as v}from"./ec2-CSDTsDKe.js";var y=t(),b=e();function x(){let e=(0,y.c)(54),t=n(),x=s(),S;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(S={resolver:f(v),defaultValues:{groupName:``,strategy:`spread`}},e[0]=S):S=e[0];let{control:C,handleSubmit:w,register:T,formState:E}=u(S),{errors:D,isSubmitting:O}=E,k;e[1]===C?k=e[2]:(k={control:C},e[1]=C,e[2]=k);let A=l(k),j;e[3]!==x||e[4]!==t?(j=async e=>{let n=await x.mutateAsync(e);t({to:`/ec2/describe-placement-groups/$id`,params:{id:n.PlacementGroup?.GroupId??``}})},e[3]=x,e[4]=t,e[5]=j):j=e[5];let M=j,N,P;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,b.jsx)(ee,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,b.jsx)(c,{title:`Create Placement Group`}),e[6]=N,e[7]=P):(N=e[6],P=e[7]);let F;e[8]===x.error?F=e[9]:(F=x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to create placement group`}),e[8]=x.error,e[9]=F);let I;e[10]!==w||e[11]!==M?(I=w(M),e[10]=w,e[11]=M,e[12]=I):I=e[12];let L;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[13]=L):L=e[13];let R=!!D.groupName,z;e[14]===T?z=e[15]:(z=T(`groupName`),e[14]=T,e[15]=z);let B;e[16]!==z||e[17]!==R?(B=(0,b.jsx)(o,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[16]=z,e[17]=R,e[18]=B):B=e[18];let V;e[19]===D.groupName?V=e[20]:(V=(0,b.jsx)(h,{errors:[D.groupName]}),e[19]=D.groupName,e[20]=V);let H;e[21]!==B||e[22]!==V?(H=(0,b.jsxs)(_,{children:[L,B,V]}),e[21]=B,e[22]=V,e[23]=H):H=e[23];let U;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,b.jsx)(g,{children:(0,b.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[24]=U):U=e[24];let W;e[25]===D.strategy?W=e[26]:(W=e=>{let{field:t}=e;return(0,b.jsxs)(ne,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,b.jsx)(a,{"aria-invalid":!!D.strategy,className:`w-full`,id:`strategy`,children:(0,b.jsx)(r,{})}),(0,b.jsxs)(te,{children:[(0,b.jsx)(i,{value:`spread`,children:`spread`}),(0,b.jsx)(i,{value:`cluster`,children:`cluster`})]})]})},e[25]=D.strategy,e[26]=W);let G;e[27]!==C||e[28]!==W?(G=(0,b.jsx)(d,{control:C,name:`strategy`,render:W}),e[27]=C,e[28]=W,e[29]=G):G=e[29];let K;e[30]===D.strategy?K=e[31]:(K=(0,b.jsx)(h,{errors:[D.strategy]}),e[30]=D.strategy,e[31]=K);let q;e[32]!==G||e[33]!==K?(q=(0,b.jsxs)(_,{children:[U,G,K]}),e[32]=G,e[33]=K,e[34]=q):q=e[34];let J;e[35]===A?J=e[36]:(J=ie(A),e[35]=A,e[36]=J);let Y;e[37]===J?Y=e[38]:(Y=(0,b.jsx)(re,{commands:J}),e[37]=J,e[38]=Y);let X;e[39]===t?X=e[40]:(X=async()=>{await t({to:`/ec2/describe-placement-groups`})},e[39]=t,e[40]=X);let Z;e[41]!==x.isPending||e[42]!==O||e[43]!==X?(Z=(0,b.jsx)(m,{isPending:x.isPending,isSubmitting:O,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[41]=x.isPending,e[42]=O,e[43]=X,e[44]=Z):Z=e[44];let Q;e[45]!==H||e[46]!==q||e[47]!==Y||e[48]!==Z||e[49]!==I?(Q=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[45]=H,e[46]=q,e[47]=Y,e[48]=Z,e[49]=I,e[50]=Q):Q=e[50];let $;return e[51]!==Q||e[52]!==F?($=(0,b.jsxs)(b.Fragment,{children:[N,P,F,Q]}),e[51]=Q,e[52]=F,e[53]=$):$=e[53],$}function S(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ie(e){let t=e.groupName??``,n=e.strategy??``;return[{label:`Create Placement Group`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-placement-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${t?S(t):``}`},{type:`flag`,value:` \\ --strategy`},{type:`value`,value:` ${n||`spread`}`}]}]}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table-DUgY7kGf.js b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table-0q7LO8Yz.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-route-table-DUgY7kGf.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-route-table-0q7LO8Yz.js index 875ee37a1..b6b3a13b5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table-DUgY7kGf.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table-0q7LO8Yz.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as a}from"./back-link-wsXUoJ12.js";import{c as o,i as s,n as c,s as l,t as u}from"./select-sbVkpt-r.js";import{t as d}from"./input-CBUMH1Jl.js";import{M as f}from"./ec2-BzWGOxUI.js";import{b as p}from"./ec2-B8rwH6Fi.js";import{t as m}from"./page-heading-vksh_67w.js";import{i as h,n as g,t as _}from"./zod-A4qtKH_p.js";import{t as v}from"./error-banner-DeOeVBKS.js";import{t as y}from"./form-actions-ECg9_Gdo.js";import{r as b,s as x,t as S}from"./field-BKQO3cRo.js";import{f as C}from"./ec2-CSDTsDKe.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=r(),{data:i}=n(f),s=p(),E;e[0]===i.Vpcs?E=e[1]:(E=i.Vpcs??[],e[0]=i.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;e[3]!==s||e[4]!==t?(I=async e=>{let n=(await s.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=s,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(a,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(m,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===s.error?B=e[9]:(B=s.error&&(0,T.jsx)(v,{error:s.error,msg:`Failed to create Route Table`}),e[8]=s.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(x,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(d,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(x,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,T.jsx)(l,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(o,{placeholder:`Select a VPC`})}),(0,T.jsx)(c,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(b,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>{await t({to:`/ec2/describe-route-tables`})},e[30]=t,e[31]=X);let Z;e[32]!==s.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(y,{isPending:s.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=s.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=i(e.Tags);return(0,T.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as a}from"./back-link-wsXUoJ12.js";import{c as o,i as s,n as c,s as l,t as u}from"./select-sbVkpt-r.js";import{t as d}from"./input-CBUMH1Jl.js";import{M as f}from"./ec2-BzWGOxUI.js";import{b as p}from"./ec2-BXFEIaSs.js";import{t as m}from"./page-heading-vksh_67w.js";import{i as h,n as g,t as _}from"./zod-A4qtKH_p.js";import{t as v}from"./error-banner-DeOeVBKS.js";import{t as y}from"./form-actions-ECg9_Gdo.js";import{r as b,s as x,t as S}from"./field-BKQO3cRo.js";import{f as C}from"./ec2-CSDTsDKe.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=r(),{data:i}=n(f),s=p(),E;e[0]===i.Vpcs?E=e[1]:(E=i.Vpcs??[],e[0]=i.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:_(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=h(k),{errors:P,isSubmitting:F}=N,I;e[3]!==s||e[4]!==t?(I=async e=>{let n=(await s.mutateAsync({vpcId:e.vpcId,name:e.name?.trim()?e.name.trim():void 0})).RouteTable?.RouteTableId;t(n?{to:`/ec2/describe-route-tables/$id`,params:{id:n}}:{to:`/ec2/describe-route-tables`})},e[3]=s,e[4]=t,e[5]=I):I=e[5];let L=I,R,z;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,T.jsx)(a,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(m,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===s.error?B=e[9]:(B=s.error&&(0,T.jsx)(v,{error:s.error,msg:`Failed to create Route Table`}),e[8]=s.error,e[9]=B);let V;e[10]!==j||e[11]!==L?(V=j(L),e[10]=j,e[11]=L,e[12]=V):V=e[12];let H;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsx)(x,{children:(0,T.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[13]=H):H=e[13];let U;e[14]===M?U=e[15]:(U=M(`name`),e[14]=M,e[15]=U);let W;e[16]===U?W=e[17]:(W=(0,T.jsxs)(S,{children:[H,(0,T.jsx)(d,{id:`name`,placeholder:`my-route-table`,...U})]}),e[16]=U,e[17]=W);let G;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,T.jsx)(x,{children:(0,T.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[18]=G):G=e[18];let K;e[19]!==P.vpcId||e[20]!==O?(K=e=>{let{field:t}=e;return(0,T.jsxs)(u,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,T.jsx)(l,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(o,{placeholder:`Select a VPC`})}),(0,T.jsx)(c,{children:O.map(D)})]})},e[19]=P.vpcId,e[20]=O,e[21]=K):K=e[21];let q;e[22]!==A||e[23]!==K?(q=(0,T.jsx)(g,{control:A,name:`vpcId`,render:K}),e[22]=A,e[23]=K,e[24]=q):q=e[24];let J;e[25]===P.vpcId?J=e[26]:(J=(0,T.jsx)(b,{errors:[P.vpcId]}),e[25]=P.vpcId,e[26]=J);let Y;e[27]!==q||e[28]!==J?(Y=(0,T.jsxs)(S,{children:[G,q,J]}),e[27]=q,e[28]=J,e[29]=Y):Y=e[29];let X;e[30]===t?X=e[31]:(X=async()=>{await t({to:`/ec2/describe-route-tables`})},e[30]=t,e[31]=X);let Z;e[32]!==s.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(y,{isPending:s.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=s.isPending,e[33]=F,e[34]=X,e[35]=Z):Z=e[35];let Q;e[36]!==W||e[37]!==Y||e[38]!==Z||e[39]!==V?(Q=(0,T.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:V,children:[W,Y,Z]}),e[36]=W,e[37]=Y,e[38]=Z,e[39]=V,e[40]=Q):Q=e[40];let $;return e[41]!==Q||e[42]!==B?($=(0,T.jsxs)(T.Fragment,{children:[R,z,B,Q]}),e[41]=Q,e[42]=B,e[43]=$):$=e[43],$}function D(e){let t=i(e.Tags);return(0,T.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group-6b38uylz.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group-BVBSieXt.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-security-group-6b38uylz.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-security-group-BVBSieXt.js index e1de2680a..e14abf276 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group-6b38uylz.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group-BVBSieXt.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as a,i as o,n as te,s as ne,t as re}from"./select-sbVkpt-r.js";import{t as ie}from"./cli-command-panel-4C78XA6W.js";import{t as s}from"./input-CBUMH1Jl.js";import{M as ae}from"./ec2-BzWGOxUI.js";import{x as oe}from"./ec2-B8rwH6Fi.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as se,i as ce,n as le,t as ue}from"./zod-A4qtKH_p.js";import{t as de}from"./error-banner-DeOeVBKS.js";import{t as fe}from"./form-actions-ECg9_Gdo.js";import{r as l,s as u,t as d}from"./field-BKQO3cRo.js";import{p as pe}from"./ec2-CSDTsDKe.js";var me=t(),f=e();function p(){let e=(0,me.c)(71),t=r(),{data:i}=n(ae),o=oe(),p;e[0]===i.Vpcs?p=e[1]:(p=i.Vpcs??[],e[0]=i.Vpcs,e[1]=p);let m=p,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ue(pe),e[2]=h):h=e[2];let g=m[0]?.VpcId??``,_;e[3]===g?_=e[4]:(_={resolver:h,defaultValues:{groupName:``,description:``,vpcId:g}},e[3]=g,e[4]=_);let{control:v,handleSubmit:y,register:b,formState:_e}=ce(_),{errors:x,isSubmitting:S}=_e,C;e[5]===v?C=e[6]:(C={control:v},e[5]=v,e[6]=C);let w=se(C),T;e[7]!==o||e[8]!==t?(T=async e=>{let n=(await o.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[7]=o,e[8]=t,e[9]=T):T=e[9];let E=T,D,O;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,f.jsx)(c,{title:`Create Security Group`}),e[10]=D,e[11]=O):(D=e[10],O=e[11]);let k;e[12]===o.error?k=e[13]:(k=o.error&&(0,f.jsx)(de,{error:o.error,msg:`Failed to create security group`}),e[12]=o.error,e[13]=k);let A;e[14]!==y||e[15]!==E?(A=y(E),e[14]=y,e[15]=E,e[16]=A):A=e[16];let j;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[17]=j):j=e[17];let M=!!x.groupName,N;e[18]===b?N=e[19]:(N=b(`groupName`),e[18]=b,e[19]=N);let P;e[20]!==M||e[21]!==N?(P=(0,f.jsx)(s,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[20]=M,e[21]=N,e[22]=P):P=e[22];let F;e[23]===x.groupName?F=e[24]:(F=(0,f.jsx)(l,{errors:[x.groupName]}),e[23]=x.groupName,e[24]=F);let I;e[25]!==P||e[26]!==F?(I=(0,f.jsxs)(d,{children:[j,P,F]}),e[25]=P,e[26]=F,e[27]=I):I=e[27];let L;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[28]=L):L=e[28];let R=!!x.description,z;e[29]===b?z=e[30]:(z=b(`description`),e[29]=b,e[30]=z);let B;e[31]!==R||e[32]!==z?(B=(0,f.jsx)(s,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[31]=R,e[32]=z,e[33]=B):B=e[33];let V;e[34]===x.description?V=e[35]:(V=(0,f.jsx)(l,{errors:[x.description]}),e[34]=x.description,e[35]=V);let H;e[36]!==B||e[37]!==V?(H=(0,f.jsxs)(d,{children:[L,B,V]}),e[36]=B,e[37]=V,e[38]=H):H=e[38];let U;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[39]=U):U=e[39];let W;e[40]!==x.vpcId||e[41]!==m?(W=e=>{let{field:t}=e;return(0,f.jsxs)(re,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,f.jsx)(ne,{"aria-invalid":!!x.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(a,{})}),(0,f.jsx)(te,{children:m.map(he)})]})},e[40]=x.vpcId,e[41]=m,e[42]=W):W=e[42];let G;e[43]!==v||e[44]!==W?(G=(0,f.jsx)(le,{control:v,name:`vpcId`,render:W}),e[43]=v,e[44]=W,e[45]=G):G=e[45];let K;e[46]===x.vpcId?K=e[47]:(K=(0,f.jsx)(l,{errors:[x.vpcId]}),e[46]=x.vpcId,e[47]=K);let q;e[48]!==G||e[49]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[48]=G,e[49]=K,e[50]=q):q=e[50];let J;e[51]===w?J=e[52]:(J=ge(w),e[51]=w,e[52]=J);let Y;e[53]===J?Y=e[54]:(Y=(0,f.jsx)(ie,{commands:J}),e[53]=J,e[54]=Y);let X;e[55]===t?X=e[56]:(X=async()=>{await t({to:`/ec2/describe-security-groups`})},e[55]=t,e[56]=X);let Z;e[57]!==o.isPending||e[58]!==S||e[59]!==X?(Z=(0,f.jsx)(fe,{isPending:o.isPending,isSubmitting:S,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[57]=o.isPending,e[58]=S,e[59]=X,e[60]=Z):Z=e[60];let Q;e[61]!==A||e[62]!==I||e[63]!==H||e[64]!==q||e[65]!==Y||e[66]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[61]=A,e[62]=I,e[63]=H,e[64]=q,e[65]=Y,e[66]=Z,e[67]=Q):Q=e[67];let $;return e[68]!==Q||e[69]!==k?($=(0,f.jsxs)(f.Fragment,{children:[D,O,k,Q]}),e[68]=Q,e[69]=k,e[70]=$):$=e[70],$}function he(e){let t=i(e.Tags);return(0,f.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){let t=e.groupName??``,n=e.description??``,r=e.vpcId??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as a,i as o,n as te,s as ne,t as re}from"./select-sbVkpt-r.js";import{t as ie}from"./cli-command-panel-4C78XA6W.js";import{t as s}from"./input-CBUMH1Jl.js";import{M as ae}from"./ec2-BzWGOxUI.js";import{x as oe}from"./ec2-BXFEIaSs.js";import{t as c}from"./page-heading-vksh_67w.js";import{a as se,i as ce,n as le,t as ue}from"./zod-A4qtKH_p.js";import{t as de}from"./error-banner-DeOeVBKS.js";import{t as fe}from"./form-actions-ECg9_Gdo.js";import{r as l,s as u,t as d}from"./field-BKQO3cRo.js";import{p as pe}from"./ec2-CSDTsDKe.js";var me=t(),f=e();function p(){let e=(0,me.c)(71),t=r(),{data:i}=n(ae),o=oe(),p;e[0]===i.Vpcs?p=e[1]:(p=i.Vpcs??[],e[0]=i.Vpcs,e[1]=p);let m=p,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=ue(pe),e[2]=h):h=e[2];let g=m[0]?.VpcId??``,_;e[3]===g?_=e[4]:(_={resolver:h,defaultValues:{groupName:``,description:``,vpcId:g}},e[3]=g,e[4]=_);let{control:v,handleSubmit:y,register:b,formState:_e}=ce(_),{errors:x,isSubmitting:S}=_e,C;e[5]===v?C=e[6]:(C={control:v},e[5]=v,e[6]=C);let w=se(C),T;e[7]!==o||e[8]!==t?(T=async e=>{let n=(await o.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[7]=o,e[8]=t,e[9]=T):T=e[9];let E=T,D,O;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,f.jsx)(c,{title:`Create Security Group`}),e[10]=D,e[11]=O):(D=e[10],O=e[11]);let k;e[12]===o.error?k=e[13]:(k=o.error&&(0,f.jsx)(de,{error:o.error,msg:`Failed to create security group`}),e[12]=o.error,e[13]=k);let A;e[14]!==y||e[15]!==E?(A=y(E),e[14]=y,e[15]=E,e[16]=A):A=e[16];let j;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[17]=j):j=e[17];let M=!!x.groupName,N;e[18]===b?N=e[19]:(N=b(`groupName`),e[18]=b,e[19]=N);let P;e[20]!==M||e[21]!==N?(P=(0,f.jsx)(s,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[20]=M,e[21]=N,e[22]=P):P=e[22];let F;e[23]===x.groupName?F=e[24]:(F=(0,f.jsx)(l,{errors:[x.groupName]}),e[23]=x.groupName,e[24]=F);let I;e[25]!==P||e[26]!==F?(I=(0,f.jsxs)(d,{children:[j,P,F]}),e[25]=P,e[26]=F,e[27]=I):I=e[27];let L;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[28]=L):L=e[28];let R=!!x.description,z;e[29]===b?z=e[30]:(z=b(`description`),e[29]=b,e[30]=z);let B;e[31]!==R||e[32]!==z?(B=(0,f.jsx)(s,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[31]=R,e[32]=z,e[33]=B):B=e[33];let V;e[34]===x.description?V=e[35]:(V=(0,f.jsx)(l,{errors:[x.description]}),e[34]=x.description,e[35]=V);let H;e[36]!==B||e[37]!==V?(H=(0,f.jsxs)(d,{children:[L,B,V]}),e[36]=B,e[37]=V,e[38]=H):H=e[38];let U;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[39]=U):U=e[39];let W;e[40]!==x.vpcId||e[41]!==m?(W=e=>{let{field:t}=e;return(0,f.jsxs)(re,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,f.jsx)(ne,{"aria-invalid":!!x.vpcId,className:`w-full`,id:`vpcId`,children:(0,f.jsx)(a,{})}),(0,f.jsx)(te,{children:m.map(he)})]})},e[40]=x.vpcId,e[41]=m,e[42]=W):W=e[42];let G;e[43]!==v||e[44]!==W?(G=(0,f.jsx)(le,{control:v,name:`vpcId`,render:W}),e[43]=v,e[44]=W,e[45]=G):G=e[45];let K;e[46]===x.vpcId?K=e[47]:(K=(0,f.jsx)(l,{errors:[x.vpcId]}),e[46]=x.vpcId,e[47]=K);let q;e[48]!==G||e[49]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[48]=G,e[49]=K,e[50]=q):q=e[50];let J;e[51]===w?J=e[52]:(J=ge(w),e[51]=w,e[52]=J);let Y;e[53]===J?Y=e[54]:(Y=(0,f.jsx)(ie,{commands:J}),e[53]=J,e[54]=Y);let X;e[55]===t?X=e[56]:(X=async()=>{await t({to:`/ec2/describe-security-groups`})},e[55]=t,e[56]=X);let Z;e[57]!==o.isPending||e[58]!==S||e[59]!==X?(Z=(0,f.jsx)(fe,{isPending:o.isPending,isSubmitting:S,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[57]=o.isPending,e[58]=S,e[59]=X,e[60]=Z):Z=e[60];let Q;e[61]!==A||e[62]!==I||e[63]!==H||e[64]!==q||e[65]!==Y||e[66]!==Z?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[61]=A,e[62]=I,e[63]=H,e[64]=q,e[65]=Y,e[66]=Z,e[67]=Q):Q=e[67];let $;return e[68]!==Q||e[69]!==k?($=(0,f.jsxs)(f.Fragment,{children:[D,O,k,Q]}),e[68]=Q,e[69]=k,e[70]=$):$=e[70],$}function he(e){let t=i(e.Tags);return(0,f.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ge(e){let t=e.groupName??``,n=e.description??``,r=e.vpcId??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` \\ --description`},{type:`value`,value:` "${n||``}"`}];return r&&i.push({type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${r}`}),[{label:`Create Security Group`,parts:i}]}export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-jyPysm1M.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CcXkvbR6.js similarity index 91% rename from spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-jyPysm1M.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CcXkvbR6.js index 60b89ab5d..29c41cc08 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-jyPysm1M.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CcXkvbR6.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/create-snapshot-CGFwX1Vu.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/cli-command-panel-4C78XA6W.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{_ as n,h as r,ut as i}from"./cluster-config-DNNpxkEw.js";import{A as a}from"./ec2-BzWGOxUI.js";var o=()=>i(()=>import(`./create-snapshot-CGFwX1Vu.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])),s=r({volumeId:n().optional().catch(void 0)}),c=e(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:s,loader:async({context:e})=>{await e.queryClient.query({...a,staleTime:`static`})},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:t(o,`component`)});export{c as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/create-snapshot-cahtvLdo.js","assets/compiler-runtime-D_vZfn79.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/chevron-down-Dt4q6d24.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/cli-command-panel-4C78XA6W.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/textarea-CTBs9AlF.js","assets/ec2-CSDTsDKe.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{_ as n,h as r,ut as i}from"./cluster-config-DNNpxkEw.js";import{A as a}from"./ec2-BzWGOxUI.js";var o=()=>i(()=>import(`./create-snapshot-cahtvLdo.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])),s=r({volumeId:n().optional().catch(void 0)}),c=e(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:s,loader:async({context:e})=>{await e.queryClient.query({...a,staleTime:`static`})},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:t(o,`component`)});export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CGFwX1Vu.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-cahtvLdo.js similarity index 96% rename from spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CGFwX1Vu.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-cahtvLdo.js index 7d6543595..53b68df61 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-CGFwX1Vu.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot-cahtvLdo.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as i,i as a,n as o,s,t as c}from"./select-sbVkpt-r.js";import{t as l}from"./cli-command-panel-4C78XA6W.js";import{A as te}from"./ec2-BzWGOxUI.js";import{S as ne}from"./ec2-B8rwH6Fi.js";import{t as re}from"./create-snapshot-jyPysm1M.js";import{t as ie}from"./page-heading-vksh_67w.js";import{a as ae,i as oe,n as se,t as ce}from"./zod-A4qtKH_p.js";import{t as le}from"./error-banner-DeOeVBKS.js";import{t as u}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{t as m}from"./textarea-CTBs9AlF.js";import{m as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(53),t=r(),{data:a}=n(te),v=ne(),x;e[0]===a.Volumes?x=e[1]:(x=a.Volumes??[],e[0]=a.Volumes,e[1]=x);let S=x,{volumeId:ue}=re.useSearch(),C=ue??S[0]?.VolumeId??``,w;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(w=ce(h),e[2]=w):w=e[2];let T;e[3]===C?T=e[4]:(T={resolver:w,defaultValues:{volumeId:C,description:``}},e[3]=C,e[4]=T);let{control:E,handleSubmit:D,register:O,formState:k}=oe(T),{errors:A,isSubmitting:j}=k,M;e[5]===E?M=e[6]:(M={control:E},e[5]=E,e[6]=M);let N=ae(M),P;e[7]!==v||e[8]!==t?(P=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[7]=v,e[8]=t,e[9]=P):P=e[9];let F=P,I,L;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,_.jsx)(ee,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,_.jsx)(ie,{title:`Create Snapshot`}),e[10]=I,e[11]=L):(I=e[10],L=e[11]);let R;e[12]===v.error?R=e[13]:(R=v.error&&(0,_.jsx)(le,{error:v.error,msg:`Failed to create snapshot`}),e[12]=v.error,e[13]=R);let z;e[14]!==D||e[15]!==F?(z=D(F),e[14]=D,e[15]=F,e[16]=z):z=e[16];let B;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[17]=B):B=e[17];let V;e[18]!==A.volumeId||e[19]!==S?(V=e=>{let{field:t}=e;return(0,_.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(s,{"aria-invalid":!!A.volumeId,className:`w-full`,id:`volumeId`,children:(0,_.jsx)(i,{})}),(0,_.jsx)(o,{children:S.map(y)})]})},e[18]=A.volumeId,e[19]=S,e[20]=V):V=e[20];let H;e[21]!==E||e[22]!==V?(H=(0,_.jsx)(se,{control:E,name:`volumeId`,render:V}),e[21]=E,e[22]=V,e[23]=H):H=e[23];let U;e[24]===A.volumeId?U=e[25]:(U=(0,_.jsx)(d,{errors:[A.volumeId]}),e[24]=A.volumeId,e[25]=U);let W;e[26]!==H||e[27]!==U?(W=(0,_.jsxs)(p,{children:[B,H,U]}),e[26]=H,e[27]=U,e[28]=W):W=e[28];let G;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[29]=G):G=e[29];let K;e[30]===O?K=e[31]:(K=O(`description`),e[30]=O,e[31]=K);let q;e[32]===K?q=e[33]:(q=(0,_.jsxs)(p,{children:[G,(0,_.jsx)(m,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[32]=K,e[33]=q);let J;e[34]===N?J=e[35]:(J=b(N),e[34]=N,e[35]=J);let Y;e[36]===J?Y=e[37]:(Y=(0,_.jsx)(l,{commands:J}),e[36]=J,e[37]=Y);let X;e[38]===t?X=e[39]:(X=async()=>{await t({to:`/ec2/describe-snapshots`})},e[38]=t,e[39]=X);let Z;e[40]!==v.isPending||e[41]!==j||e[42]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:j,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[40]=v.isPending,e[41]=j,e[42]=X,e[43]=Z):Z=e[43];let Q;e[44]!==W||e[45]!==q||e[46]!==Y||e[47]!==Z||e[48]!==z?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[44]=W,e[45]=q,e[46]=Y,e[47]=Z,e[48]=z,e[49]=Q):Q=e[49];let $;return e[50]!==Q||e[51]!==R?($=(0,_.jsxs)(_.Fragment,{children:[I,L,R,Q]}),e[50]=Q,e[51]=R,e[52]=$):$=e[52],$}function y(e){return(0,_.jsxs)(a,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function b(e){let t=e.volumeId??``,n=e.description??``,r=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as ee}from"./back-link-wsXUoJ12.js";import{c as i,i as a,n as o,s,t as c}from"./select-sbVkpt-r.js";import{t as l}from"./cli-command-panel-4C78XA6W.js";import{A as te}from"./ec2-BzWGOxUI.js";import{S as ne}from"./ec2-BXFEIaSs.js";import{t as re}from"./create-snapshot-CcXkvbR6.js";import{t as ie}from"./page-heading-vksh_67w.js";import{a as ae,i as oe,n as se,t as ce}from"./zod-A4qtKH_p.js";import{t as le}from"./error-banner-DeOeVBKS.js";import{t as u}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{t as m}from"./textarea-CTBs9AlF.js";import{m as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(53),t=r(),{data:a}=n(te),v=ne(),x;e[0]===a.Volumes?x=e[1]:(x=a.Volumes??[],e[0]=a.Volumes,e[1]=x);let S=x,{volumeId:ue}=re.useSearch(),C=ue??S[0]?.VolumeId??``,w;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(w=ce(h),e[2]=w):w=e[2];let T;e[3]===C?T=e[4]:(T={resolver:w,defaultValues:{volumeId:C,description:``}},e[3]=C,e[4]=T);let{control:E,handleSubmit:D,register:O,formState:k}=oe(T),{errors:A,isSubmitting:j}=k,M;e[5]===E?M=e[6]:(M={control:E},e[5]=E,e[6]=M);let N=ae(M),P;e[7]!==v||e[8]!==t?(P=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[7]=v,e[8]=t,e[9]=P):P=e[9];let F=P,I,L;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,_.jsx)(ee,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,_.jsx)(ie,{title:`Create Snapshot`}),e[10]=I,e[11]=L):(I=e[10],L=e[11]);let R;e[12]===v.error?R=e[13]:(R=v.error&&(0,_.jsx)(le,{error:v.error,msg:`Failed to create snapshot`}),e[12]=v.error,e[13]=R);let z;e[14]!==D||e[15]!==F?(z=D(F),e[14]=D,e[15]=F,e[16]=z):z=e[16];let B;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[17]=B):B=e[17];let V;e[18]!==A.volumeId||e[19]!==S?(V=e=>{let{field:t}=e;return(0,_.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(s,{"aria-invalid":!!A.volumeId,className:`w-full`,id:`volumeId`,children:(0,_.jsx)(i,{})}),(0,_.jsx)(o,{children:S.map(y)})]})},e[18]=A.volumeId,e[19]=S,e[20]=V):V=e[20];let H;e[21]!==E||e[22]!==V?(H=(0,_.jsx)(se,{control:E,name:`volumeId`,render:V}),e[21]=E,e[22]=V,e[23]=H):H=e[23];let U;e[24]===A.volumeId?U=e[25]:(U=(0,_.jsx)(d,{errors:[A.volumeId]}),e[24]=A.volumeId,e[25]=U);let W;e[26]!==H||e[27]!==U?(W=(0,_.jsxs)(p,{children:[B,H,U]}),e[26]=H,e[27]=U,e[28]=W):W=e[28];let G;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[29]=G):G=e[29];let K;e[30]===O?K=e[31]:(K=O(`description`),e[30]=O,e[31]=K);let q;e[32]===K?q=e[33]:(q=(0,_.jsxs)(p,{children:[G,(0,_.jsx)(m,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[32]=K,e[33]=q);let J;e[34]===N?J=e[35]:(J=b(N),e[34]=N,e[35]=J);let Y;e[36]===J?Y=e[37]:(Y=(0,_.jsx)(l,{commands:J}),e[36]=J,e[37]=Y);let X;e[38]===t?X=e[39]:(X=async()=>{await t({to:`/ec2/describe-snapshots`})},e[38]=t,e[39]=X);let Z;e[40]!==v.isPending||e[41]!==j||e[42]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:j,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[40]=v.isPending,e[41]=j,e[42]=X,e[43]=Z):Z=e[43];let Q;e[44]!==W||e[45]!==q||e[46]!==Y||e[47]!==Z||e[48]!==z?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[44]=W,e[45]=q,e[46]=Y,e[47]=Z,e[48]=z,e[49]=Q):Q=e[49];let $;return e[50]!==Q||e[51]!==R?($=(0,_.jsxs)(_.Fragment,{children:[I,L,R,Q]}),e[50]=Q,e[51]=R,e[52]=$):$=e[52],$}function y(e){return(0,_.jsxs)(a,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function b(e){let t=e.volumeId??``,n=e.description??``,r=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ --volume-id`},{type:`value`,value:` ${t||``}`}];return n&&r.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${n}"`}),[{label:`Create Snapshot`,parts:r}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D7wVMuBW.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D6P8yW2z.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D7wVMuBW.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D6P8yW2z.js index 76b84260e..81a8044e5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D7wVMuBW.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet-D6P8yW2z.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as a}from"./back-link-wsXUoJ12.js";import{c as ee,i as o,n as te,s as ne,t as re}from"./select-sbVkpt-r.js";import{t as ie}from"./cli-command-panel-4C78XA6W.js";import{t as ae}from"./input-CBUMH1Jl.js";import{M as oe,r as se}from"./ec2-BzWGOxUI.js";import{C as ce}from"./ec2-B8rwH6Fi.js";import{t as le}from"./page-heading-vksh_67w.js";import{a as ue,i as de,n as s,t as fe}from"./zod-A4qtKH_p.js";import{t as pe}from"./error-banner-DeOeVBKS.js";import{t as me}from"./form-actions-ECg9_Gdo.js";import{r as he,s as c,t as l}from"./field-BKQO3cRo.js";import{h as ge}from"./ec2-CSDTsDKe.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(72),t=r(),{data:i}=n(oe),{data:d}=n(se),f=ce(),p;e[0]===i.Vpcs?p=e[1]:(p=i.Vpcs??[],e[0]=i.Vpcs,e[1]=p);let m=p,h;e[2]===d.AvailabilityZones?h=e[3]:(h=d.AvailabilityZones??[],e[2]=d.AvailabilityZones,e[3]=h);let g=h,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=fe(ge),e[4]=_):_=e[4];let v=m[0]?.VpcId??``,y;e[5]===v?y=e[6]:(y={resolver:_,defaultValues:{vpcId:v,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=v,e[6]=y);let{control:b,handleSubmit:Se,register:x,formState:Ce}=de(y),{errors:S,isSubmitting:C}=Ce,w;e[7]===b?w=e[8]:(w={control:b},e[7]=b,e[8]=w);let T=ue(w),E;e[9]!==f||e[10]!==t?(E=async e=>{let n=(await f.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[9]=f,e[10]=t,e[11]=E):E=e[11];let D=E,O,k;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,u.jsx)(a,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(le,{title:`Create Subnet`}),e[12]=O,e[13]=k):(O=e[12],k=e[13]);let A;e[14]===f.error?A=e[15]:(A=f.error&&(0,u.jsx)(pe,{error:f.error,msg:`Failed to create subnet`}),e[14]=f.error,e[15]=A);let j;e[16]!==Se||e[17]!==D?(j=Se(D),e[16]=Se,e[17]=D,e[18]=j):j=e[18];let M;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[19]=M):M=e[19];let N;e[20]!==S.vpcId||e[21]!==m?(N=e=>{let{field:t}=e;return(0,u.jsxs)(re,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,u.jsx)(ne,{"aria-invalid":!!S.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(ee,{})}),(0,u.jsx)(te,{children:m.map(be)})]})},e[20]=S.vpcId,e[21]=m,e[22]=N):N=e[22];let P;e[23]!==b||e[24]!==N?(P=(0,u.jsx)(s,{control:b,name:`vpcId`,render:N}),e[23]=b,e[24]=N,e[25]=P):P=e[25];let F;e[26]===S.vpcId?F=e[27]:(F=(0,u.jsx)(he,{errors:[S.vpcId]}),e[26]=S.vpcId,e[27]=F);let I;e[28]!==P||e[29]!==F?(I=(0,u.jsxs)(l,{children:[M,P,F]}),e[28]=P,e[29]=F,e[30]=I):I=e[30];let L;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[31]=L):L=e[31];let R=!!S.cidrBlock,z;e[32]===x?z=e[33]:(z=x(`cidrBlock`),e[32]=x,e[33]=z);let B;e[34]!==R||e[35]!==z?(B=(0,u.jsx)(ae,{"aria-invalid":R,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[34]=R,e[35]=z,e[36]=B):B=e[36];let V;e[37]===S.cidrBlock?V=e[38]:(V=(0,u.jsx)(he,{errors:[S.cidrBlock]}),e[37]=S.cidrBlock,e[38]=V);let H;e[39]!==B||e[40]!==V?(H=(0,u.jsxs)(l,{children:[L,B,V]}),e[39]=B,e[40]=V,e[41]=H):H=e[41];let U;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[42]=U):U=e[42];let W;e[43]===g?W=e[44]:(W=e=>{let{field:t}=e;return(0,u.jsxs)(re,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,u.jsx)(ne,{className:`w-full`,id:`availabilityZone`,children:(0,u.jsx)(ee,{})}),(0,u.jsxs)(te,{children:[(0,u.jsx)(o,{value:`none`,children:`none`}),g.map(ye)]})]})},e[43]=g,e[44]=W);let G;e[45]!==b||e[46]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(s,{control:b,name:`availabilityZone`,render:W})]}),e[45]=b,e[46]=W,e[47]=G):G=e[47];let K;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[48]=K):K=e[48];let q;e[49]===b?q=e[50]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(s,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[49]=b,e[50]=q);let J;e[51]===T?J=e[52]:(J=xe(T),e[51]=T,e[52]=J);let Y;e[53]===J?Y=e[54]:(Y=(0,u.jsx)(ie,{commands:J}),e[53]=J,e[54]=Y);let X;e[55]===t?X=e[56]:(X=async()=>{await t({to:`/ec2/describe-subnets`})},e[55]=t,e[56]=X);let Z;e[57]!==f.isPending||e[58]!==C||e[59]!==X?(Z=(0,u.jsx)(me,{isPending:f.isPending,isSubmitting:C,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[57]=f.isPending,e[58]=C,e[59]=X,e[60]=Z):Z=e[60];let Q;e[61]!==j||e[62]!==I||e[63]!==H||e[64]!==G||e[65]!==q||e[66]!==Y||e[67]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[I,H,G,q,Y,Z]}),e[61]=j,e[62]=I,e[63]=H,e[64]=G,e[65]=q,e[66]=Y,e[67]=Z,e[68]=Q):Q=e[68];let $;return e[69]!==A||e[70]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[O,k,A,Q]}),e[69]=A,e[70]=Q,e[71]=$):$=e[71],$}function ve(e){let{field:t}=e;return(0,u.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,u.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ye(e){return(0,u.jsx)(o,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=i(e.Tags);return(0,u.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e.vpcId??``,n=e.cidrBlock??``,r=e.availabilityZone??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{cn as i}from"./cluster-config-DNNpxkEw.js";import{t as a}from"./back-link-wsXUoJ12.js";import{c as ee,i as o,n as te,s as ne,t as re}from"./select-sbVkpt-r.js";import{t as ie}from"./cli-command-panel-4C78XA6W.js";import{t as ae}from"./input-CBUMH1Jl.js";import{M as oe,r as se}from"./ec2-BzWGOxUI.js";import{C as ce}from"./ec2-BXFEIaSs.js";import{t as le}from"./page-heading-vksh_67w.js";import{a as ue,i as de,n as s,t as fe}from"./zod-A4qtKH_p.js";import{t as pe}from"./error-banner-DeOeVBKS.js";import{t as me}from"./form-actions-ECg9_Gdo.js";import{r as he,s as c,t as l}from"./field-BKQO3cRo.js";import{h as ge}from"./ec2-CSDTsDKe.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(72),t=r(),{data:i}=n(oe),{data:d}=n(se),f=ce(),p;e[0]===i.Vpcs?p=e[1]:(p=i.Vpcs??[],e[0]=i.Vpcs,e[1]=p);let m=p,h;e[2]===d.AvailabilityZones?h=e[3]:(h=d.AvailabilityZones??[],e[2]=d.AvailabilityZones,e[3]=h);let g=h,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=fe(ge),e[4]=_):_=e[4];let v=m[0]?.VpcId??``,y;e[5]===v?y=e[6]:(y={resolver:_,defaultValues:{vpcId:v,cidrBlock:`10.0.1.0/24`,availabilityZone:void 0,mapPublicIpOnLaunch:!1}},e[5]=v,e[6]=y);let{control:b,handleSubmit:Se,register:x,formState:Ce}=de(y),{errors:S,isSubmitting:C}=Ce,w;e[7]===b?w=e[8]:(w={control:b},e[7]=b,e[8]=w);let T=ue(w),E;e[9]!==f||e[10]!==t?(E=async e=>{let n=(await f.mutateAsync(e)).Subnet?.SubnetId;t(n?{to:`/ec2/describe-subnets/$id`,params:{id:n}}:{to:`/ec2/describe-subnets`})},e[9]=f,e[10]=t,e[11]=E):E=e[11];let D=E,O,k;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,u.jsx)(a,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(le,{title:`Create Subnet`}),e[12]=O,e[13]=k):(O=e[12],k=e[13]);let A;e[14]===f.error?A=e[15]:(A=f.error&&(0,u.jsx)(pe,{error:f.error,msg:`Failed to create subnet`}),e[14]=f.error,e[15]=A);let j;e[16]!==Se||e[17]!==D?(j=Se(D),e[16]=Se,e[17]=D,e[18]=j):j=e[18];let M;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[19]=M):M=e[19];let N;e[20]!==S.vpcId||e[21]!==m?(N=e=>{let{field:t}=e;return(0,u.jsxs)(re,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,u.jsx)(ne,{"aria-invalid":!!S.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(ee,{})}),(0,u.jsx)(te,{children:m.map(be)})]})},e[20]=S.vpcId,e[21]=m,e[22]=N):N=e[22];let P;e[23]!==b||e[24]!==N?(P=(0,u.jsx)(s,{control:b,name:`vpcId`,render:N}),e[23]=b,e[24]=N,e[25]=P):P=e[25];let F;e[26]===S.vpcId?F=e[27]:(F=(0,u.jsx)(he,{errors:[S.vpcId]}),e[26]=S.vpcId,e[27]=F);let I;e[28]!==P||e[29]!==F?(I=(0,u.jsxs)(l,{children:[M,P,F]}),e[28]=P,e[29]=F,e[30]=I):I=e[30];let L;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[31]=L):L=e[31];let R=!!S.cidrBlock,z;e[32]===x?z=e[33]:(z=x(`cidrBlock`),e[32]=x,e[33]=z);let B;e[34]!==R||e[35]!==z?(B=(0,u.jsx)(ae,{"aria-invalid":R,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[34]=R,e[35]=z,e[36]=B):B=e[36];let V;e[37]===S.cidrBlock?V=e[38]:(V=(0,u.jsx)(he,{errors:[S.cidrBlock]}),e[37]=S.cidrBlock,e[38]=V);let H;e[39]!==B||e[40]!==V?(H=(0,u.jsxs)(l,{children:[L,B,V]}),e[39]=B,e[40]=V,e[41]=H):H=e[41];let U;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[42]=U):U=e[42];let W;e[43]===g?W=e[44]:(W=e=>{let{field:t}=e;return(0,u.jsxs)(re,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,u.jsx)(ne,{className:`w-full`,id:`availabilityZone`,children:(0,u.jsx)(ee,{})}),(0,u.jsxs)(te,{children:[(0,u.jsx)(o,{value:`none`,children:`none`}),g.map(ye)]})]})},e[43]=g,e[44]=W);let G;e[45]!==b||e[46]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(s,{control:b,name:`availabilityZone`,render:W})]}),e[45]=b,e[46]=W,e[47]=G):G=e[47];let K;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[48]=K):K=e[48];let q;e[49]===b?q=e[50]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(s,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[49]=b,e[50]=q);let J;e[51]===T?J=e[52]:(J=xe(T),e[51]=T,e[52]=J);let Y;e[53]===J?Y=e[54]:(Y=(0,u.jsx)(ie,{commands:J}),e[53]=J,e[54]=Y);let X;e[55]===t?X=e[56]:(X=async()=>{await t({to:`/ec2/describe-subnets`})},e[55]=t,e[56]=X);let Z;e[57]!==f.isPending||e[58]!==C||e[59]!==X?(Z=(0,u.jsx)(me,{isPending:f.isPending,isSubmitting:C,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[57]=f.isPending,e[58]=C,e[59]=X,e[60]=Z):Z=e[60];let Q;e[61]!==j||e[62]!==I||e[63]!==H||e[64]!==G||e[65]!==q||e[66]!==Y||e[67]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[I,H,G,q,Y,Z]}),e[61]=j,e[62]=I,e[63]=H,e[64]=G,e[65]=q,e[66]=Y,e[67]=Z,e[68]=Q):Q=e[68];let $;return e[69]!==A||e[70]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[O,k,A,Q]}),e[69]=A,e[70]=Q,e[71]=$):$=e[71],$}function ve(e){let{field:t}=e;return(0,u.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,u.jsx)(`input`,{"aria-label":`Enable auto-assign public IPv4 address`,checked:t.value??!1,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Enable auto-assign public IPv4 address`]})}function ye(e){return(0,u.jsx)(o,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=i(e.Tags);return(0,u.jsx)(o,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e.vpcId??``,n=e.cidrBlock??``,r=e.availabilityZone??``,i=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${n||``}`}];r&&i.push({type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${r}`});let a=[{label:`Create Subnet`,parts:i}];return e.mapPublicIpOnLaunch===!0&&a.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume-BoOOKqZV.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume-BjkVTXNd.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/create-volume-BoOOKqZV.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-volume-BjkVTXNd.js index 106c1c112..86d90c6e0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-volume-BoOOKqZV.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-volume-BjkVTXNd.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{c as ee,i as a,n as o,s,t as c}from"./select-sbVkpt-r.js";import{t as l}from"./cli-command-panel-4C78XA6W.js";import{t as te}from"./input-CBUMH1Jl.js";import{r as ne}from"./ec2-BzWGOxUI.js";import{w as re}from"./ec2-B8rwH6Fi.js";import{t as ie}from"./page-heading-vksh_67w.js";import{i as ae,n as oe,t as se}from"./zod-A4qtKH_p.js";import{t as ce}from"./error-banner-DeOeVBKS.js";import{t as le}from"./form-actions-ECg9_Gdo.js";import{r as u,s as d,t as f}from"./field-BKQO3cRo.js";import{g as p}from"./ec2-CSDTsDKe.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=r(),{data:a}=n(ne),g=re(),y;e[0]===a.AvailabilityZones?y=e[1]:(y=a.AvailabilityZones??[],e[0]=a.AvailabilityZones,e[1]=y);let b=y,x=b[0]?.ZoneName??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=se(p),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=ae(C),{errors:k,isSubmitting:A}=O,j;e[5]!==g||e[6]!==t?(j=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=g,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(i,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,h.jsx)(ie,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===g.error?F=e[11]:(F=g.error&&(0,h.jsx)(ce,{error:g.error,msg:`Failed to create volume`}),e[10]=g.error,e[11]=F);let I;e[12]!==T||e[13]!==M?(I=T(M),e[12]=T,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,h.jsx)(d,{children:(0,h.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=L):L=e[15];let R=!!k.size,z;e[16]===E?z=e[17]:(z=E(`size`,{valueAsNumber:!0}),e[16]=E,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,h.jsx)(te,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===k.size?V=e[22]:(V=(0,h.jsx)(u,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,h.jsxs)(f,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,h.jsx)(d,{children:(0,h.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=U):U=e[26];let W;e[27]!==b||e[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,h.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,h.jsx)(s,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,h.jsx)(ee,{})}),(0,h.jsx)(o,{children:b.map(_)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,h.jsx)(oe,{control:w,name:`availabilityZone`,render:W}),e[30]=w,e[31]=W,e[32]=G):G=e[32];let K;e[33]===k.availabilityZone?K=e[34]:(K=(0,h.jsx)(u,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(f,{children:[U,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===D?J=e[39]:(J=v(D),e[38]=D,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(l,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>{await t({to:`/ec2/describe-volumes`})},e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==A||e[46]!==X?(Z=(0,h.jsx)(le,{isPending:g.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=g.isPending,e[45]=A,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==H||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==I?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[48]=H,e[49]=q,e[50]=Y,e[51]=Z,e[52]=I,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==F?($=(0,h.jsxs)(h.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function _(e){return(0,h.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function v(e){let t=e(`size`),n=e(`availabilityZone`);return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as r}from"./useNavigate-CTe_-BZA.js";import{t as i}from"./back-link-wsXUoJ12.js";import{c as ee,i as a,n as o,s,t as c}from"./select-sbVkpt-r.js";import{t as l}from"./cli-command-panel-4C78XA6W.js";import{t as te}from"./input-CBUMH1Jl.js";import{r as ne}from"./ec2-BzWGOxUI.js";import{w as re}from"./ec2-BXFEIaSs.js";import{t as ie}from"./page-heading-vksh_67w.js";import{i as ae,n as oe,t as se}from"./zod-A4qtKH_p.js";import{t as ce}from"./error-banner-DeOeVBKS.js";import{t as le}from"./form-actions-ECg9_Gdo.js";import{r as u,s as d,t as f}from"./field-BKQO3cRo.js";import{g as p}from"./ec2-CSDTsDKe.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=r(),{data:a}=n(ne),g=re(),y;e[0]===a.AvailabilityZones?y=e[1]:(y=a.AvailabilityZones??[],e[0]=a.AvailabilityZones,e[1]=y);let b=y,x=b[0]?.ZoneName??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=se(p),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{size:1,availabilityZone:x}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,watch:D,formState:O}=ae(C),{errors:k,isSubmitting:A}=O,j;e[5]!==g||e[6]!==t?(j=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=g,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,h.jsx)(i,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,h.jsx)(ie,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===g.error?F=e[11]:(F=g.error&&(0,h.jsx)(ce,{error:g.error,msg:`Failed to create volume`}),e[10]=g.error,e[11]=F);let I;e[12]!==T||e[13]!==M?(I=T(M),e[12]=T,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,h.jsx)(d,{children:(0,h.jsx)(`label`,{htmlFor:`size`,children:`Size (GiB)`})}),e[15]=L):L=e[15];let R=!!k.size,z;e[16]===E?z=e[17]:(z=E(`size`,{valueAsNumber:!0}),e[16]=E,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,h.jsx)(te,{"aria-invalid":R,id:`size`,max:16384,min:1,type:`number`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===k.size?V=e[22]:(V=(0,h.jsx)(u,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,h.jsxs)(f,{children:[L,B,V]}),e[23]=B,e[24]=V,e[25]=H):H=e[25];let U;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,h.jsx)(d,{children:(0,h.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone`})}),e[26]=U):U=e[26];let W;e[27]!==b||e[28]!==k.availabilityZone?(W=e=>{let{field:t}=e;return(0,h.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,h.jsx)(s,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,h.jsx)(ee,{})}),(0,h.jsx)(o,{children:b.map(_)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,h.jsx)(oe,{control:w,name:`availabilityZone`,render:W}),e[30]=w,e[31]=W,e[32]=G):G=e[32];let K;e[33]===k.availabilityZone?K=e[34]:(K=(0,h.jsx)(u,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(f,{children:[U,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===D?J=e[39]:(J=v(D),e[38]=D,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(l,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>{await t({to:`/ec2/describe-volumes`})},e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==A||e[46]!==X?(Z=(0,h.jsx)(le,{isPending:g.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=g.isPending,e[45]=A,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==H||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==I?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[48]=H,e[49]=q,e[50]=Y,e[51]=Z,e[52]=I,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==F?($=(0,h.jsxs)(h.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function _(e){return(0,h.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function v(e){let t=e(`size`),n=e(`availabilityZone`);return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ --size`},{type:`value`,value:` ${t||1}`},{type:`flag`,value:` \\ --availability-zone`},{type:`value`,value:` ${n||``}`}]}]}export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc-M1EQVlaB.js b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc-HC_JSJiq.js similarity index 99% rename from spinifex/services/spinifexui/frontend/dist/assets/create-vpc-M1EQVlaB.js rename to spinifex/services/spinifexui/frontend/dist/assets/create-vpc-HC_JSJiq.js index 8cf5eecf3..a730d14ca 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc-M1EQVlaB.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc-HC_JSJiq.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{t as a}from"./back-link-wsXUoJ12.js";import{t as o}from"./chevron-down-Dt4q6d24.js";import{t as s}from"./chevron-right-c57whaks.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./cli-command-panel-4C78XA6W.js";import{t as ee}from"./button-C9VMD5Xn.js";import{t as te}from"./input-CBUMH1Jl.js";import{E as m,T as h}from"./ec2-B8rwH6Fi.js";import{t as g}from"./page-heading-vksh_67w.js";import{a as _,i as ne,n as v,t as re}from"./zod-A4qtKH_p.js";import{t as ie}from"./error-banner-DeOeVBKS.js";import{t as ae}from"./form-actions-ECg9_Gdo.js";import{r as oe,s as y,t as b}from"./field-BKQO3cRo.js";import{a as se,t as ce}from"./subnet-calculator-DDrAb5xp.js";import{_ as le}from"./ec2-CSDTsDKe.js";var x=r(),ue=t(n(),1),S=e();function de(e){let t=(0,x.c)(19),{form:n,type:r,count:i,defaults:a}=e,[c,l]=(0,ue.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`,d=n.formState.errors[u],f=c||d!==void 0;if(i===0)return null;let p;t[0]===c?p=t[1]:(p=()=>{l(!c)},t[0]=c,t[1]=p);let m;t[2]===f?m=t[3]:(m=f?(0,S.jsx)(o,{className:`size-3`}):(0,S.jsx)(s,{className:`size-3`}),t[2]=f,t[3]=m);let h;t[4]!==p||t[5]!==m||t[6]!==r?(h=(0,S.jsxs)(ee,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:p,type:`button`,variant:`link`,children:[m,`Customize `,r,` subnet CIDR blocks`]}),t[4]=p,t[5]=m,t[6]=r,t[7]=h):h=t[7];let g;t[8]!==i||t[9]!==a||t[10]!==d||t[11]!==u||t[12]!==n||t[13]!==f||t[14]!==r?(g=f&&(0,S.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsxs)(`span`,{className:`w-32 shrink-0 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,S.jsx)(te,{"aria-invalid":d?.[t]!==void 0,"aria-label":`${r===`public`?`Public`:`Private`} subnet ${t+1} CIDR`,placeholder:a[t],...n.register(`${u}.${t}`)})]}),(0,S.jsx)(oe,{className:`ml-34`,errors:[d?.[t]]})]},t))}),t[8]=i,t[9]=a,t[10]=d,t[11]=u,t[12]=n,t[13]=f,t[14]=r,t[15]=g):g=t[15];let _;return t[16]!==h||t[17]!==g?(_=(0,S.jsxs)(`div`,{className:`mt-2`,children:[h,g]}),t[16]=h,t[17]=g,t[18]=_):_=t[18],_}function C(e){let t=(0,x.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,S.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,S.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function fe(e){let t=(0,x.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,S.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,S.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,S.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,S.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(w),a.map(pe),i.length===0&&a.length===0&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,S.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,S.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,S.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,S.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,S.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,S.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,S.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function pe(e){return(0,S.jsx)(C,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function w(e){return(0,S.jsx)(C,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var me=[0,1],T=[0,1,2];function E(){let e=(0,x.c)(90),t=i(),n=h(),r=m(),[o,s]=(0,ue.useState)(null),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=re(le),e[0]=c):c=e[0];let l;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(l={resolver:c,defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}},e[1]=l):l=e[1];let u=ne(l),{handleSubmit:d,register:f,watch:ee,control:C,formState:pe}=u,{errors:w,isSubmitting:me}=pe,T;e[2]===C?T=e[3]:(T={control:C,name:`mode`},e[2]=C,e[3]=T);let E=_(T),Te;e[4]===C?Te=e[5]:(Te={control:C,name:`cidrBlock`},e[4]=C,e[5]=Te);let Ee=_(Te),De;e[6]===C?De=e[7]:(De={control:C,name:`publicSubnetCount`},e[6]=C,e[7]=De);let D=_(De),O;e[8]===C?O=e[9]:(O={control:C,name:`privateSubnetCount`},e[8]=C,e[9]=O);let Oe=_(O),ke;e[10]===C?ke=e[11]:(ke={control:C,name:`publicSubnetCidrs`},e[10]=C,e[11]=ke);let Ae=_(ke),je;e[12]===C?je=e[13]:(je={control:C,name:`privateSubnetCidrs`},e[12]=C,e[13]=je);let Me=_(je),k=Ee||`10.0.0.0/16`,Ne=E===`vpc-and-more`?D:0,Pe=E===`vpc-and-more`?Oe:0,Fe=ce(k,Ne,Pe),A=se(k,Ne,Pe,{publicCidrs:Ae,privateCidrs:Me}),[Ie,Le]=(0,ue.useState)(``),Re;e[14]!==n||e[15]!==t||e[16]!==r?(Re=async e=>{if(s(null),e.mode===`vpc-only`){let r=e.autoGenerateNames&&e.namePrefix?`${e.namePrefix}-vpc`:e.namePrefix,i=(await n.mutateAsync({cidrBlock:e.cidrBlock,name:r||void 0})).Vpc?.VpcId;t(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}Le(`Creating VPC and resources...`);let i=await r.mutateAsync(e);s(i),!i.error&&i.vpcId&&t({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),Le(``)},e[14]=n,e[15]=t,e[16]=r,e[17]=Re):Re=e[17];let ze=Re,Be=n.error??r.error,Ve=n.isPending||r.isPending,j,M;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(a,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),M=(0,S.jsx)(g,{title:`Create VPC`}),e[18]=j,e[19]=M):(j=e[18],M=e[19]);let N;e[20]===Be?N=e[21]:(N=Be&&(0,S.jsx)(ie,{error:Be,msg:`Failed to create VPC`}),e[20]=Be,e[21]=N);let P;e[22]===o?P=e[23]:(P=o?.error&&(0,S.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,S.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,o.failedStep]}),(0,S.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:o.error.message}),o.created.length>0&&(0,S.jsxs)(`div`,{className:`mt-3`,children:[(0,S.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,S.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:o.created.map(Ce)})]})]}),e[22]=o,e[23]=P);let F;e[24]===Ie?F=e[25]:(F=Ie&&(0,S.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:Ie}),e[24]=Ie,e[25]=F);let I;e[26]!==d||e[27]!==ze?(I=d(ze),e[26]=d,e[27]=ze,e[28]=I):I=e[28];let He;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,S.jsx)(y,{children:`Resources to create`}),e[29]=He):He=e[29];let L;e[30]===C?L=e[31]:(L=(0,S.jsxs)(b,{children:[He,(0,S.jsx)(v,{control:C,name:`mode`,render:Se})]}),e[30]=C,e[31]=L);let R;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,S.jsx)(y,{children:(0,S.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),e[32]=R):R=e[32];let z;e[33]===f?z=e[34]:(z=f(`namePrefix`),e[33]=f,e[34]=z);let B;e[35]===z?B=e[36]:(B=(0,S.jsx)(te,{id:`namePrefix`,placeholder:`project`,...z}),e[35]=z,e[36]=B);let V;e[37]===C?V=e[38]:(V=(0,S.jsx)(v,{control:C,name:`autoGenerateNames`,render:xe}),e[37]=C,e[38]=V);let H;e[39]!==B||e[40]!==V?(H=(0,S.jsxs)(b,{children:[R,(0,S.jsxs)(`div`,{className:`flex items-center gap-3`,children:[B,V]})]}),e[39]=B,e[40]=V,e[41]=H):H=e[41];let Ue;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,S.jsx)(y,{children:(0,S.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),e[42]=Ue):Ue=e[42];let We=!!w.cidrBlock,U;e[43]===f?U=e[44]:(U=f(`cidrBlock`),e[43]=f,e[44]=U);let W;e[45]!==We||e[46]!==U?(W=(0,S.jsx)(te,{"aria-invalid":We,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...U}),e[45]=We,e[46]=U,e[47]=W):W=e[47];let G;e[48]===w.cidrBlock?G=e[49]:(G=(0,S.jsx)(oe,{errors:[w.cidrBlock]}),e[48]=w.cidrBlock,e[49]=G);let K;e[50]!==W||e[51]!==G?(K=(0,S.jsxs)(b,{children:[Ue,W,G]}),e[50]=W,e[51]=G,e[52]=K):K=e[52];let Ge;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,S.jsx)(y,{children:`Tenancy`}),e[53]=Ge):Ge=e[53];let q;e[54]===C?q=e[55]:(q=(0,S.jsxs)(b,{children:[Ge,(0,S.jsx)(v,{control:C,name:`tenancy`,render:be})]}),e[54]=C,e[55]=q);let Ke=E===`vpc-and-more`&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`Number of public subnets`}),(0,S.jsx)(v,{control:C,name:`publicSubnetCount`,render:ye}),(0,S.jsx)(de,{count:D,defaults:Fe.publicSubnets.map(ve),form:u,type:`public`})]}),(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`Number of private subnets`}),(0,S.jsx)(v,{control:C,name:`privateSubnetCount`,render:_e}),(0,S.jsx)(de,{count:Oe,defaults:Fe.privateSubnets.map(ge),form:u,type:`private`})]}),D>0&&Oe>0&&(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`NAT gateways`}),(0,S.jsx)(v,{control:C,name:`natGateway`,render:he}),(0,S.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),qe=p,Je=we(ee,A),J;e[56]!==qe||e[57]!==Je?(J=(0,S.jsx)(qe,{commands:Je}),e[56]=qe,e[57]=Je,e[58]=J):J=e[58];let Y;e[59]===t?Y=e[60]:(Y=async()=>{await t({to:`/ec2/describe-vpcs`})},e[59]=t,e[60]=Y);let X;e[61]!==Ve||e[62]!==me||e[63]!==Y?(X=(0,S.jsx)(ae,{isPending:Ve,isSubmitting:me,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create VPC`}),e[61]=Ve,e[62]=me,e[63]=Y,e[64]=X):X=e[64];let Z;e[65]!==I||e[66]!==L||e[67]!==H||e[68]!==K||e[69]!==q||e[70]!==Ke||e[71]!==J||e[72]!==X?(Z=(0,S.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:I,children:[L,H,K,q,Ke,J,X]}),e[65]=I,e[66]=L,e[67]=H,e[68]=K,e[69]=q,e[70]=Ke,e[71]=J,e[72]=X,e[73]=Z):Z=e[73];let Ye=E===`vpc-and-more`&&D>0,Q;e[74]!==E||e[75]!==A.privateSubnets||e[76]!==A.publicSubnets||e[77]!==Ye||e[78]!==k?(Q=(0,S.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,S.jsx)(fe,{hasIgw:Ye,mode:E,privateSubnets:A.privateSubnets,publicSubnets:A.publicSubnets,vpcCidr:k})}),e[74]=E,e[75]=A.privateSubnets,e[76]=A.publicSubnets,e[77]=Ye,e[78]=k,e[79]=Q):Q=e[79];let $;e[80]!==Z||e[81]!==Q?($=(0,S.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[Z,Q]}),e[80]=Z,e[81]=Q,e[82]=$):$=e[82];let Xe;return e[83]!==j||e[84]!==M||e[85]!==N||e[86]!==P||e[87]!==F||e[88]!==$?(Xe=(0,S.jsxs)(S.Fragment,{children:[j,M,N,P,F,$]}),e[83]=j,e[84]=M,e[85]=N,e[86]=P,e[87]=F,e[88]=$,e[89]=Xe):Xe=e[89],Xe}function he(e){let{field:t}=e;return(0,S.jsxs)(f,{onValueChange:t.onChange,value:t.value??`none`,children:[(0,S.jsx)(d,{id:`natGateway`,children:(0,S.jsx)(c,{})}),(0,S.jsxs)(u,{children:[(0,S.jsx)(l,{value:`none`,children:`None`}),(0,S.jsx)(l,{value:`single`,children:`In 1 AZ`})]})]})}function ge(e){return e.cidr}function _e(e){let{field:t}=e;return(0,S.jsx)(`div`,{className:`flex gap-1`,children:T.map(e=>(0,S.jsx)(ee,{onClick:()=>{t.onChange(e)},size:`sm`,type:`button`,variant:t.value===e?`default`:`outline`,children:e},e))})}function ve(e){return e.cidr}function ye(e){let{field:t}=e;return(0,S.jsx)(`div`,{className:`flex gap-1`,children:me.map(e=>(0,S.jsx)(ee,{onClick:()=>{t.onChange(e)},size:`sm`,type:`button`,variant:t.value===e?`default`:`outline`,children:e},e))})}function be(e){let{field:t}=e;return(0,S.jsxs)(f,{onValueChange:t.onChange,value:t.value,children:[(0,S.jsx)(d,{id:`tenancy`,children:(0,S.jsx)(c,{})}),(0,S.jsxs)(u,{children:[(0,S.jsx)(l,{value:`default`,children:`default`}),(0,S.jsx)(l,{value:`dedicated`,children:`dedicated`})]})]})}function xe(e){let{field:t}=e;return(0,S.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Auto-generate`]})}function Se(e){let{field:t}=e;return(0,S.jsxs)(`div`,{className:`flex gap-4`,children:[(0,S.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`VPC only`,checked:t.value===`vpc-only`,name:`mode`,onChange:()=>{t.onChange(`vpc-only`)},type:`radio`}),`VPC only`]}),(0,S.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`VPC and more`,checked:t.value===`vpc-and-more`,name:`mode`,onChange:()=>{t.onChange(`vpc-and-more`)},type:`radio`}),`VPC and more`]})]})}function Ce(e,t){return(0,S.jsxs)(`li`,{children:[e.type,`: `,e.id]},t)}function we(e,t){let n=e(`mode`),r=e(`cidrBlock`),i=e(`tenancy`),a=e(`natGateway`);if(n===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as i}from"./useNavigate-CTe_-BZA.js";import{t as a}from"./back-link-wsXUoJ12.js";import{t as o}from"./chevron-down-Dt4q6d24.js";import{t as s}from"./chevron-right-c57whaks.js";import{c,i as l,n as u,s as d,t as f}from"./select-sbVkpt-r.js";import{t as p}from"./cli-command-panel-4C78XA6W.js";import{t as ee}from"./button-C9VMD5Xn.js";import{t as te}from"./input-CBUMH1Jl.js";import{E as m,T as h}from"./ec2-BXFEIaSs.js";import{t as g}from"./page-heading-vksh_67w.js";import{a as _,i as ne,n as v,t as re}from"./zod-A4qtKH_p.js";import{t as ie}from"./error-banner-DeOeVBKS.js";import{t as ae}from"./form-actions-ECg9_Gdo.js";import{r as oe,s as y,t as b}from"./field-BKQO3cRo.js";import{a as se,t as ce}from"./subnet-calculator-DDrAb5xp.js";import{_ as le}from"./ec2-CSDTsDKe.js";var x=r(),ue=t(n(),1),S=e();function de(e){let t=(0,x.c)(19),{form:n,type:r,count:i,defaults:a}=e,[c,l]=(0,ue.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`,d=n.formState.errors[u],f=c||d!==void 0;if(i===0)return null;let p;t[0]===c?p=t[1]:(p=()=>{l(!c)},t[0]=c,t[1]=p);let m;t[2]===f?m=t[3]:(m=f?(0,S.jsx)(o,{className:`size-3`}):(0,S.jsx)(s,{className:`size-3`}),t[2]=f,t[3]=m);let h;t[4]!==p||t[5]!==m||t[6]!==r?(h=(0,S.jsxs)(ee,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:p,type:`button`,variant:`link`,children:[m,`Customize `,r,` subnet CIDR blocks`]}),t[4]=p,t[5]=m,t[6]=r,t[7]=h):h=t[7];let g;t[8]!==i||t[9]!==a||t[10]!==d||t[11]!==u||t[12]!==n||t[13]!==f||t[14]!==r?(g=f&&(0,S.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsxs)(`span`,{className:`w-32 shrink-0 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,S.jsx)(te,{"aria-invalid":d?.[t]!==void 0,"aria-label":`${r===`public`?`Public`:`Private`} subnet ${t+1} CIDR`,placeholder:a[t],...n.register(`${u}.${t}`)})]}),(0,S.jsx)(oe,{className:`ml-34`,errors:[d?.[t]]})]},t))}),t[8]=i,t[9]=a,t[10]=d,t[11]=u,t[12]=n,t[13]=f,t[14]=r,t[15]=g):g=t[15];let _;return t[16]!==h||t[17]!==g?(_=(0,S.jsxs)(`div`,{className:`mt-2`,children:[h,g]}),t[16]=h,t[17]=g,t[18]=_):_=t[18],_}function C(e){let t=(0,x.c)(8),{label:n,cidr:r,variant:i}=e,a=`rounded-md border px-3 py-2 text-xs ${i===`public`?`border-emerald-500/30 bg-emerald-500/10`:`border-blue-500/30 bg-blue-500/10`}`,o;t[0]===n?o=t[1]:(o=(0,S.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,S.jsxs)(`div`,{className:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function fe(e){let t=(0,x.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,S.jsx)(`h3`,{className:`mb-3 text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:`Preview`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,S.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,S.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,r,`)`]})]}),t[1]=r,t[2]=c);let l;t[3]!==o||t[4]!==n||t[5]!==a||t[6]!==i?(l=n===`vpc-and-more`&&(0,S.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(w),a.map(pe),i.length===0&&a.length===0&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,S.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,S.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,S.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,S.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,S.jsxs)(`div`,{className:`space-y-2`,children:[(0,S.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,S.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,S.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,S.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No internet gateway`})]})]}),t[3]=o,t[4]=n,t[5]=a,t[6]=i,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=n===`vpc-only`&&(0,S.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`VPC only — no additional resources will be created.`}),t[8]=n,t[9]=u);let d;return t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,S.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,S.jsxs)(`div`,{className:`rounded-lg border-2 border-dashed border-foreground/20 p-4`,children:[c,l,u]})]}),t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function pe(e){return(0,S.jsx)(C,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function w(e){return(0,S.jsx)(C,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var me=[0,1],T=[0,1,2];function E(){let e=(0,x.c)(90),t=i(),n=h(),r=m(),[o,s]=(0,ue.useState)(null),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=re(le),e[0]=c):c=e[0];let l;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(l={resolver:c,defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}},e[1]=l):l=e[1];let u=ne(l),{handleSubmit:d,register:f,watch:ee,control:C,formState:pe}=u,{errors:w,isSubmitting:me}=pe,T;e[2]===C?T=e[3]:(T={control:C,name:`mode`},e[2]=C,e[3]=T);let E=_(T),Te;e[4]===C?Te=e[5]:(Te={control:C,name:`cidrBlock`},e[4]=C,e[5]=Te);let Ee=_(Te),De;e[6]===C?De=e[7]:(De={control:C,name:`publicSubnetCount`},e[6]=C,e[7]=De);let D=_(De),O;e[8]===C?O=e[9]:(O={control:C,name:`privateSubnetCount`},e[8]=C,e[9]=O);let Oe=_(O),ke;e[10]===C?ke=e[11]:(ke={control:C,name:`publicSubnetCidrs`},e[10]=C,e[11]=ke);let Ae=_(ke),je;e[12]===C?je=e[13]:(je={control:C,name:`privateSubnetCidrs`},e[12]=C,e[13]=je);let Me=_(je),k=Ee||`10.0.0.0/16`,Ne=E===`vpc-and-more`?D:0,Pe=E===`vpc-and-more`?Oe:0,Fe=ce(k,Ne,Pe),A=se(k,Ne,Pe,{publicCidrs:Ae,privateCidrs:Me}),[Ie,Le]=(0,ue.useState)(``),Re;e[14]!==n||e[15]!==t||e[16]!==r?(Re=async e=>{if(s(null),e.mode===`vpc-only`){let r=e.autoGenerateNames&&e.namePrefix?`${e.namePrefix}-vpc`:e.namePrefix,i=(await n.mutateAsync({cidrBlock:e.cidrBlock,name:r||void 0})).Vpc?.VpcId;t(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}Le(`Creating VPC and resources...`);let i=await r.mutateAsync(e);s(i),!i.error&&i.vpcId&&t({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),Le(``)},e[14]=n,e[15]=t,e[16]=r,e[17]=Re):Re=e[17];let ze=Re,Be=n.error??r.error,Ve=n.isPending||r.isPending,j,M;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(a,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),M=(0,S.jsx)(g,{title:`Create VPC`}),e[18]=j,e[19]=M):(j=e[18],M=e[19]);let N;e[20]===Be?N=e[21]:(N=Be&&(0,S.jsx)(ie,{error:Be,msg:`Failed to create VPC`}),e[20]=Be,e[21]=N);let P;e[22]===o?P=e[23]:(P=o?.error&&(0,S.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,S.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,o.failedStep]}),(0,S.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:o.error.message}),o.created.length>0&&(0,S.jsxs)(`div`,{className:`mt-3`,children:[(0,S.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,S.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:o.created.map(Ce)})]})]}),e[22]=o,e[23]=P);let F;e[24]===Ie?F=e[25]:(F=Ie&&(0,S.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:Ie}),e[24]=Ie,e[25]=F);let I;e[26]!==d||e[27]!==ze?(I=d(ze),e[26]=d,e[27]=ze,e[28]=I):I=e[28];let He;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,S.jsx)(y,{children:`Resources to create`}),e[29]=He):He=e[29];let L;e[30]===C?L=e[31]:(L=(0,S.jsxs)(b,{children:[He,(0,S.jsx)(v,{control:C,name:`mode`,render:Se})]}),e[30]=C,e[31]=L);let R;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,S.jsx)(y,{children:(0,S.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),e[32]=R):R=e[32];let z;e[33]===f?z=e[34]:(z=f(`namePrefix`),e[33]=f,e[34]=z);let B;e[35]===z?B=e[36]:(B=(0,S.jsx)(te,{id:`namePrefix`,placeholder:`project`,...z}),e[35]=z,e[36]=B);let V;e[37]===C?V=e[38]:(V=(0,S.jsx)(v,{control:C,name:`autoGenerateNames`,render:xe}),e[37]=C,e[38]=V);let H;e[39]!==B||e[40]!==V?(H=(0,S.jsxs)(b,{children:[R,(0,S.jsxs)(`div`,{className:`flex items-center gap-3`,children:[B,V]})]}),e[39]=B,e[40]=V,e[41]=H):H=e[41];let Ue;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,S.jsx)(y,{children:(0,S.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),e[42]=Ue):Ue=e[42];let We=!!w.cidrBlock,U;e[43]===f?U=e[44]:(U=f(`cidrBlock`),e[43]=f,e[44]=U);let W;e[45]!==We||e[46]!==U?(W=(0,S.jsx)(te,{"aria-invalid":We,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...U}),e[45]=We,e[46]=U,e[47]=W):W=e[47];let G;e[48]===w.cidrBlock?G=e[49]:(G=(0,S.jsx)(oe,{errors:[w.cidrBlock]}),e[48]=w.cidrBlock,e[49]=G);let K;e[50]!==W||e[51]!==G?(K=(0,S.jsxs)(b,{children:[Ue,W,G]}),e[50]=W,e[51]=G,e[52]=K):K=e[52];let Ge;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,S.jsx)(y,{children:`Tenancy`}),e[53]=Ge):Ge=e[53];let q;e[54]===C?q=e[55]:(q=(0,S.jsxs)(b,{children:[Ge,(0,S.jsx)(v,{control:C,name:`tenancy`,render:be})]}),e[54]=C,e[55]=q);let Ke=E===`vpc-and-more`&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`Number of public subnets`}),(0,S.jsx)(v,{control:C,name:`publicSubnetCount`,render:ye}),(0,S.jsx)(de,{count:D,defaults:Fe.publicSubnets.map(ve),form:u,type:`public`})]}),(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`Number of private subnets`}),(0,S.jsx)(v,{control:C,name:`privateSubnetCount`,render:_e}),(0,S.jsx)(de,{count:Oe,defaults:Fe.privateSubnets.map(ge),form:u,type:`private`})]}),D>0&&Oe>0&&(0,S.jsxs)(b,{children:[(0,S.jsx)(y,{children:`NAT gateways`}),(0,S.jsx)(v,{control:C,name:`natGateway`,render:he}),(0,S.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Creates an Elastic IP + NAT gateway in the public subnet and routes private subnet egress (0.0.0.0/0) through it.`})]})]}),qe=p,Je=we(ee,A),J;e[56]!==qe||e[57]!==Je?(J=(0,S.jsx)(qe,{commands:Je}),e[56]=qe,e[57]=Je,e[58]=J):J=e[58];let Y;e[59]===t?Y=e[60]:(Y=async()=>{await t({to:`/ec2/describe-vpcs`})},e[59]=t,e[60]=Y);let X;e[61]!==Ve||e[62]!==me||e[63]!==Y?(X=(0,S.jsx)(ae,{isPending:Ve,isSubmitting:me,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create VPC`}),e[61]=Ve,e[62]=me,e[63]=Y,e[64]=X):X=e[64];let Z;e[65]!==I||e[66]!==L||e[67]!==H||e[68]!==K||e[69]!==q||e[70]!==Ke||e[71]!==J||e[72]!==X?(Z=(0,S.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:I,children:[L,H,K,q,Ke,J,X]}),e[65]=I,e[66]=L,e[67]=H,e[68]=K,e[69]=q,e[70]=Ke,e[71]=J,e[72]=X,e[73]=Z):Z=e[73];let Ye=E===`vpc-and-more`&&D>0,Q;e[74]!==E||e[75]!==A.privateSubnets||e[76]!==A.publicSubnets||e[77]!==Ye||e[78]!==k?(Q=(0,S.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,S.jsx)(fe,{hasIgw:Ye,mode:E,privateSubnets:A.privateSubnets,publicSubnets:A.publicSubnets,vpcCidr:k})}),e[74]=E,e[75]=A.privateSubnets,e[76]=A.publicSubnets,e[77]=Ye,e[78]=k,e[79]=Q):Q=e[79];let $;e[80]!==Z||e[81]!==Q?($=(0,S.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[Z,Q]}),e[80]=Z,e[81]=Q,e[82]=$):$=e[82];let Xe;return e[83]!==j||e[84]!==M||e[85]!==N||e[86]!==P||e[87]!==F||e[88]!==$?(Xe=(0,S.jsxs)(S.Fragment,{children:[j,M,N,P,F,$]}),e[83]=j,e[84]=M,e[85]=N,e[86]=P,e[87]=F,e[88]=$,e[89]=Xe):Xe=e[89],Xe}function he(e){let{field:t}=e;return(0,S.jsxs)(f,{onValueChange:t.onChange,value:t.value??`none`,children:[(0,S.jsx)(d,{id:`natGateway`,children:(0,S.jsx)(c,{})}),(0,S.jsxs)(u,{children:[(0,S.jsx)(l,{value:`none`,children:`None`}),(0,S.jsx)(l,{value:`single`,children:`In 1 AZ`})]})]})}function ge(e){return e.cidr}function _e(e){let{field:t}=e;return(0,S.jsx)(`div`,{className:`flex gap-1`,children:T.map(e=>(0,S.jsx)(ee,{onClick:()=>{t.onChange(e)},size:`sm`,type:`button`,variant:t.value===e?`default`:`outline`,children:e},e))})}function ve(e){return e.cidr}function ye(e){let{field:t}=e;return(0,S.jsx)(`div`,{className:`flex gap-1`,children:me.map(e=>(0,S.jsx)(ee,{onClick:()=>{t.onChange(e)},size:`sm`,type:`button`,variant:t.value===e?`default`:`outline`,children:e},e))})}function be(e){let{field:t}=e;return(0,S.jsxs)(f,{onValueChange:t.onChange,value:t.value,children:[(0,S.jsx)(d,{id:`tenancy`,children:(0,S.jsx)(c,{})}),(0,S.jsxs)(u,{children:[(0,S.jsx)(l,{value:`default`,children:`default`}),(0,S.jsx)(l,{value:`dedicated`,children:`dedicated`})]})]})}function xe(e){let{field:t}=e;return(0,S.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Auto-generate`]})}function Se(e){let{field:t}=e;return(0,S.jsxs)(`div`,{className:`flex gap-4`,children:[(0,S.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`VPC only`,checked:t.value===`vpc-only`,name:`mode`,onChange:()=>{t.onChange(`vpc-only`)},type:`radio`}),`VPC only`]}),(0,S.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,S.jsx)(`input`,{"aria-label":`VPC and more`,checked:t.value===`vpc-and-more`,name:`mode`,onChange:()=>{t.onChange(`vpc-and-more`)},type:`radio`}),`VPC and more`]})]})}function Ce(e,t){return(0,S.jsxs)(`li`,{children:[e.type,`: `,e.id]},t)}function we(e,t){let n=e(`mode`),r=e(`cidrBlock`),i=e(`tenancy`),a=e(`natGateway`);if(n===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${r||`10.0.0.0/16`}`}];return i&&i!=="default"&&e.push({type:`flag`,value:` \\ --instance-tenancy`},{type:`value`,value:` ${i}`}),[{label:`Create VPC`,parts:e}]}let o=[],s=[...t.publicSubnets.map((e,t)=>({...e,name:`PUBLIC_SUBNET_${t+1}`})),...t.privateSubnets.map((e,t)=>({...e,name:`PRIVATE_SUBNET_${t+1}`}))];o.push({label:`Create VPC`,parts:[{type:`comment`,value:`# Create VPC with subnets, internet gateway, and routing diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2-B8rwH6Fi.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2-B8rwH6Fi.js deleted file mode 100644 index 4d65495b9..000000000 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2-B8rwH6Fi.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./compiler-runtime-D_vZfn79.js";import{A as t}from"./removable-Dwr9otKB.js";import{t as n}from"./useMutation-6rdxVQpi.js";import{$i as r,$r as i,Ci as a,Di as o,Ei as s,Gr as c,Ji as l,Jr as u,Kr as d,Qi as ee,Qr as te,Si as ne,Ti as re,Xi as ie,Xr as ae,Yi as oe,Yr as se,Zi as ce,Zr as le,_i as ue,aa as de,ai as fe,bi as pe,ca as me,ci as he,da as ge,di as _e,ea as ve,ei as ye,fa as be,fi as xe,gi as Se,hi as Ce,ia as we,ii as Te,la as f,li as p,mi as m,na as h,ni as g,oa as _,oi as v,pi as y,qi as b,qr as x,ra as S,ri as C,s as w,sa as T,si as E,ta as D,ti as O,ua as Ee,ui as De,vi as Oe,wi as ke,xi as Ae,yi as je}from"./awsClient-Bm9ksq2r.js";import{F as Me,I as k,N as A,P as j,p as M}from"./ec2-BzWGOxUI.js";import{a as Ne}from"./subnet-calculator-DDrAb5xp.js";var N=class extends k(A,j,`AllocateAddress`,c){},Pe=class extends k(A,j,`AssociateAddress`,d){},Fe=class extends k(A,j,`AssociateIamInstanceProfile`,x){},P=class extends k(A,j,`AssociateRouteTable`,u){},F=class extends k(A,j,`AttachInternetGateway`,se){},Ie=class extends k(A,j,`AttachVolume`,ae){},Le=class extends k(A,j,`AuthorizeSecurityGroupEgress`,le){},I=class extends k(A,j,`AuthorizeSecurityGroupIngress`,te){},Re=class extends k(A,Me,`CopySnapshot`,i){},ze=class extends k(A,j,`CreateImage`,ye){},L=class extends k(A,j,`CreateInternetGateway`,O){},Be=class extends k(A,j,`CreateKeyPair`,g){},Ve=class extends k(A,j,`CreateLaunchTemplate`,C){},He=class extends k(A,j,`CreateLaunchTemplateVersion`,Te){},R=class extends k(A,j,`CreateNatGateway`,fe){},Ue=class extends k(A,j,`CreatePlacementGroup`,v){},z=class extends k(A,j,`CreateRoute`,E){},B=class extends k(A,j,`CreateRouteTable`,he){},V=class extends k(A,j,`CreateSecurityGroup`,p){},We=class extends k(A,j,`CreateSnapshot`,De){},H=class extends k(A,j,`CreateSubnet`,_e){},Ge=class extends k(A,j,`CreateVolume`,xe){},U=class extends k(A,j,`CreateVpc`,y){},Ke=class extends k(A,j,`DeleteInternetGateway`,m){},qe=class extends k(A,j,`DeleteKeyPair`,Ce){},Je=class extends k(A,j,`DeleteLaunchTemplate`,Se){},Ye=class extends k(A,j,`DeleteLaunchTemplateVersions`,ue){},Xe=class extends k(A,j,`DeleteNatGateway`,Oe){},Ze=class extends k(A,j,`DeletePlacementGroup`,je){},Qe=class extends k(A,j,`DeleteRoute`,pe){},$e=class extends k(A,j,`DeleteRouteTable`,Ae){},W=class extends k(A,j,`DeleteSecurityGroup`,ne){},et=class extends k(A,j,`DeleteSnapshot`,a){},tt=class extends k(A,j,`DeleteSubnet`,ke){},nt=class extends k(A,j,`DeleteVolume`,re){},rt=class extends k(A,j,`DeleteVpc`,s){},it=class extends k(A,j,`DeregisterImage`,o){},at=class extends k(A,j,`DetachInternetGateway`,b){},ot=class extends k(A,j,`DetachVolume`,l){},st=class extends k(A,j,`DisassociateAddress`,oe){},ct=class extends k(A,j,`DisassociateIamInstanceProfile`,ie){},lt=class extends k(A,j,`DisassociateRouteTable`,ce){},ut=class extends k(A,j,`GetConsoleOutput`,ee){},dt=class extends k(A,j,`ImportKeyPair`,r){},ft=class extends k(A,j,`ModifyInstanceAttribute`,ve){},pt=class extends k(A,j,`ModifyLaunchTemplate`,D){},G=class extends k(A,j,`ModifySubnetAttribute`,h){},mt=class extends k(A,j,`ModifyVolume`,S){},ht=class extends k(A,j,`RebootInstances`,we){},gt=class extends k(A,j,`RegisterImage`,de){},_t=class extends k(A,j,`ReleaseAddress`,_){},vt=class extends k(A,j,`RevokeSecurityGroupEgress`,T){},yt=class extends k(A,j,`RevokeSecurityGroupIngress`,me){},bt=class extends k(A,j,`RunInstances`,f){},xt=class extends k(A,j,`StartInstances`,Ee){},St=class extends k(A,j,`StopInstances`,ge){},Ct=class extends k(A,j,`TerminateInstances`,be){},K={application_status_check:`application-status-check`,capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,capacity_reservation_modification_quote:`capacity-reservation-modification-quote`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_internet_registry_association:`ipam-internet-registry-association`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},q=e(),wt=/\s+/;function Tt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Et,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Et(e){let t=new xt({InstanceIds:[e]});return await w().send(t)}function Dt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ot,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Ot(e){let t=new St({InstanceIds:[e]});return await w().send(t)}function kt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:At,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function At(e){let t=new Ct({InstanceIds:[e]});return await w().send(t)}function jt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Mt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Mt(e){let t=new ht({InstanceIds:[e]});return await w().send(t)}function Nt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Pt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})},onSettled:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Pt(e){let t=w();if(e.securityGroupMode!==`create`)return await J(t,e,e.securityGroupIds??[]);let n=await Ft(t,e);try{return await It(t,n,e),await J(t,e,[n])}catch(e){let r=e;try{await t.send(new W({GroupId:n}))}catch{}throw r}}async function J(e,t,n){let r=new bt({ImageId:t.imageId||void 0,InstanceType:t.instanceType?t.instanceType:void 0,KeyName:t.keyName||void 0,MinCount:t.count,MaxCount:t.count,SubnetId:t.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:t.placementGroupName?{GroupName:t.placementGroupName}:void 0,BlockDeviceMappings:Lt(t),LaunchTemplate:t.launchTemplateId?{LaunchTemplateId:t.launchTemplateId,Version:t.launchTemplateVersion||`$Default`}:void 0});return await e.send(r)}async function Ft(e,t){let n=await e.send(new V({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}));if(!n.GroupId)throw Error(`Security group was created but no ID was returned`);return n.GroupId}async function It(e,t,n){let r=[...n.allowSsh?[22]:[],...n.allowHttp?[80]:[],...n.allowHttps?[443]:[]];if(r.length===0)return;let i=n.ruleSource===`custom`&&n.customCidr?n.customCidr:`0.0.0.0/0`;await e.send(new I({GroupId:t,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}function Lt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}var Rt=`/dev/sda1`;function zt(e){let t=new TextEncoder().encode(e),n=``;for(let e of t)n+=String.fromCodePoint(e);return btoa(n)}function Y(e){let t={};e.imageId&&(t.ImageId=e.imageId),e.instanceType&&(t.InstanceType=e.instanceType),e.keyName&&(t.KeyName=e.keyName);let n=e.securityGroupIds??[];return e.subnetId?t.NetworkInterfaces=[{DeviceIndex:0,SubnetId:e.subnetId,Groups:n.length>0?n:void 0}]:n.length>0&&(t.SecurityGroupIds=n),(e.rootVolumeSize!==void 0||e.rootVolumeType!==void 0)&&(t.BlockDeviceMappings=[{DeviceName:Rt,Ebs:{...e.rootVolumeSize!==void 0&&{VolumeSize:e.rootVolumeSize},...e.rootVolumeType!==void 0&&{VolumeType:e.rootVolumeType}}}]),e.userData&&(t.UserData=zt(e.userData)),t}function Bt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:X,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]})}},e[0]=r,e[1]=i),n(i)}async function X(e){let t=new Ve({LaunchTemplateName:e.launchTemplateName,VersionDescription:e.versionDescription||void 0,LaunchTemplateData:Y(e)});return await w().send(t)}function Vt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ht,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Ht(e){let t=new He({LaunchTemplateId:e.launchTemplateId,SourceVersion:e.sourceVersion||void 0,VersionDescription:e.versionDescription||void 0,LaunchTemplateData:Y(e)});return await w().send(t)}function Ut(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Wt,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Wt(e){let t=new pt({LaunchTemplateId:e.launchTemplateId,DefaultVersion:e.defaultVersion});return await w().send(t)}function Gt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Kt,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Kt(e){let t=new Ye({LaunchTemplateId:e.launchTemplateId,Versions:e.versions});return await w().send(t)}function qt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Jt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]})}},e[0]=r,e[1]=i),n(i)}async function Jt(e){let t=new Je({LaunchTemplateId:e});return await w().send(t)}function Yt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Xt,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function Xt(e){let t=new Be({KeyName:e.keyName,KeyType:e.keyType}),n=await w().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Zt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Qt,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function Qt(e){let t=e.publicKeyMaterial.trim().split(wt).slice(0,2).join(` `),n=new dt({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await w().send(n)}function $t(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:en,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function en(e){let t=new qe({KeyPairId:e});return await w().send(t)}function tn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:nn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function nn(e){let t=new Ge({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await w().send(t)}function rn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:an,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function an(e){let t=new mt({VolumeId:e.volumeId,Size:e.size});return await w().send(t)}function on(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:sn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function sn(e){let t=new nt({VolumeId:e});return await w().send(t)}function cn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ln,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function ln(e){let t=new We({VolumeId:e.volumeId,Description:e.description||void 0});return await w().send(t)}function un(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:dn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function dn(e){let t=new et({SnapshotId:e});return await w().send(t)}function fn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:pn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function pn(e){let t=new Re({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await w().send(t)}function mn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:hn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function hn(e){let t=new Ie({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await w().send(t)}function gn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:_n,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function _n(e){let t=new ot({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await w().send(t)}function vn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:yn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function yn(e){let{instanceId:t,...n}=e,r=new ft({InstanceId:t,InstanceType:{Value:n.instanceType}});return await w().send(r)}function bn(){let e=(0,q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={mutationFn:xn},e[0]=t):t=e[0],n(t)}async function xn(e){let t=new ut({InstanceId:e});return await w().send(t)}function Sn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Cn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Cn(e){let t=new ze({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await w().send(t)}function wn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Tn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Tn(e){let t=new gt({Name:e.name,Description:e.description||void 0,BlockDeviceMappings:[{DeviceName:`/dev/sda1`,Ebs:{SnapshotId:e.snapshotId}}]});return await w().send(t)}function En(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Dn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Dn(e){let t=new it({ImageId:e});return await w().send(t)}function On(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:kn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function kn(e){let t=new U({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await w().send(t)}function An(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:jn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function jn(e){let t=new rt({VpcId:e});return await w().send(t)}function Mn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Nn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Nn(e){let t=w(),n=await t.send(new H({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new G({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function Pn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Fn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Fn(e){let t=new tt({SubnetId:e});return await w().send(t)}function In(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ln,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Ln(e){let t=new Ue({GroupName:e.groupName,Strategy:e.strategy});return await w().send(t)}function Rn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:zn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function zn(e){let t=new Ze({GroupName:e});return await w().send(t)}function Bn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Vn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Vn(e){let t=new V({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await w().send(t)}function Hn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Un,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Un(e){let t=new W({GroupId:e});return await w().send(t)}function Wn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Gn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Gn(e){let t=new I({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Kn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:qn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function qn(e){let t=new Le({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Jn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Yn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Yn(e){let t=new yt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Xn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Zn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Zn(e){let t=new vt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Qn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:$n,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function $n(e){let t=new L({TagSpecifications:Q(K.internet_gateway,e?.name,[])});return await w().send(t)}function er(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:tr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function tr(e){let t=new Ke({InternetGatewayId:e});return await w().send(t)}function nr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:rr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function rr(e){let t=new F({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function ir(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ar,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function ar(e){let t=new at({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function or(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:sr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function sr(e){let t=new N({Domain:`vpc`,TagSpecifications:Q(K.elastic_ip,e?.name,[])});return await w().send(t)}function cr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:lr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function lr(e){let t=new _t({AllocationId:e});return await w().send(t)}function ur(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:dr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function dr(e){let t=new Pe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await w().send(t)}function fr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:pr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function pr(e){let t=new st({AssociationId:e});return await w().send(t)}function mr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:hr,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function hr(e){let t=new Fe({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await w().send(t)}function gr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:_r,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function _r(e){let t=new ct({AssociationId:e.associationId});return await w().send(t)}function vr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:yr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function yr(e){let t=new R({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:Q(K.natgateway,e.name,[])});return await w().send(t)}function br(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:xr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=r,e[1]=i),n(i)}async function xr(e){let t=new Xe({NatGatewayId:e});return await w().send(t)}function Sr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Cr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Cr(e){let t=new B({VpcId:e.vpcId,TagSpecifications:Q(K.route_table,e.name,[])});return await w().send(t)}function wr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Tr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Tr(e){let t=new $e({RouteTableId:e});return await w().send(t)}function Er(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Dr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Dr(e){let t=new z({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await w().send(t)}function Or(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:kr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function kr(e){let t=new Qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await w().send(t)}function Ar(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:jr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function jr(e){let t=new P({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await w().send(t)}function Mr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Nr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Nr(e){let t=new lt({AssociationId:e});return await w().send(t)}function Pr(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function Q(e,t,n){let r=Pr(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}async function $(e){let t=await Promise.allSettled(e),n=[];for(let e of t){if(e.status===`rejected`)throw e.reason;n.push(e.value)}return n}function Fr(){let e=t();return n({mutationFn:async e=>{let t=w(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=(await t.send(new U({CidrBlock:e.cidrBlock,InstanceTenancy:e.tenancy,TagSpecifications:Q(K.vpc,o,i)}))).Vpc?.VpcId;if(!s)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:s}),e.mode===`vpc-only`)return{vpcId:s,created:n};let c=Ne(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount,{publicCidrs:e.publicSubnetCidrs,privateCidrs:e.privateSubnetCidrs});a=`creating public subnets`;let l=await $(c.publicSubnets.map(async({cidr:e},a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,c=(await t.send(new H({VpcId:s,CidrBlock:e,TagSpecifications:Q(K.subnet,o,i)}))).Subnet?.SubnetId;if(!c)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:c}),await t.send(new G({SubnetId:c,MapPublicIpOnLaunch:{Value:!0}})),c}));a=`creating private subnets`;let u=await $(c.privateSubnets.map(async({cidr:e},a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,c=(await t.send(new H({VpcId:s,CidrBlock:e,TagSpecifications:Q(K.subnet,o,i)}))).Subnet?.SubnetId;if(!c)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:c}),c}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new L({TagSpecifications:Q(K.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new F({InternetGatewayId:o,VpcId:s})),a=`creating public route table`;let c=r?`${r}-rtb-public`:void 0,u=(await t.send(new B({VpcId:s,TagSpecifications:Q(K.route_table,c,i)}))).RouteTable?.RouteTableId;if(!u)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:u}),a=`creating default route to internet gateway`,await t.send(new z({RouteTableId:u,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(l.map(async e=>await t.send(new P({RouteTableId:u,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,c=(await t.send(new B({VpcId:s,TagSpecifications:Q(K.route_table,o,i)}))).RouteTable?.RouteTableId;if(!c)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:c}),a=`associating private subnets with route table`,await Promise.all(u.map(async e=>await t.send(new P({RouteTableId:c,SubnetId:e})))),e.natGateway===`single`&&l[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new N({Domain:`vpc`,TagSpecifications:Q(K.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new R({SubnetId:l[0],AllocationId:e,TagSpecifications:Q(K.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new z({RouteTableId:c,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:s,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{cr as $,Gt as A,En as B,Mn as C,er as D,Fr as E,Hn as F,Mr as G,gn as H,un as I,vn as J,bn as K,Pn as L,Rn as M,Or as N,$t as O,wr as P,wn as Q,on as R,cn as S,On as T,fr as U,ir as V,gr as W,rn as X,Ut as Y,jt as Z,vr as _,Ar as a,Sr as b,Kn as c,Sn as d,Xn as et,Nt as f,Vt as g,Bt as h,mr as i,kt as it,br as j,qt as k,Wn as l,Yt as m,or as n,Tt as nt,nr as o,Qn as p,Zt as q,ur as r,Dt as rt,mn as s,Y as t,Jn as tt,fn as u,In as v,tn as w,Bn as x,Er as y,An as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2-BXFEIaSs.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2-BXFEIaSs.js new file mode 100644 index 000000000..1fdbdf637 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2-BXFEIaSs.js @@ -0,0 +1 @@ +import{t as e}from"./compiler-runtime-D_vZfn79.js";import{A as t}from"./removable-Dwr9otKB.js";import{t as n}from"./useMutation-6rdxVQpi.js";import{$i as r,$r as i,Ci as a,Di as o,Ei as s,Gr as c,Ji as l,Jr as u,Kr as d,Qi as ee,Qr as te,Si as ne,Ti as re,Xi as ie,Xr as ae,Yi as oe,Yr as se,Zi as ce,Zr as le,_i as ue,aa as de,ai as fe,bi as pe,ca as me,ci as he,da as ge,di as _e,ea as ve,ei as ye,fa as be,fi as xe,gi as Se,hi as Ce,ia as we,ii as Te,la as f,li as p,mi as m,na as h,ni as g,oa as _,oi as v,pi as y,qi as b,qr as x,ra as S,ri as C,s as w,sa as T,si as E,ta as D,ti as O,ua as Ee,ui as De,vi as Oe,wi as ke,xi as Ae,yi as je}from"./awsClient-Bm9ksq2r.js";import{F as Me,I as k,N as A,P as j,p as M}from"./ec2-BzWGOxUI.js";import{a as Ne}from"./subnet-calculator-DDrAb5xp.js";var N=class extends k(A,j,`AllocateAddress`,c){},Pe=class extends k(A,j,`AssociateAddress`,d){},Fe=class extends k(A,j,`AssociateIamInstanceProfile`,x){},P=class extends k(A,j,`AssociateRouteTable`,u){},F=class extends k(A,j,`AttachInternetGateway`,se){},Ie=class extends k(A,j,`AttachVolume`,ae){},Le=class extends k(A,j,`AuthorizeSecurityGroupEgress`,le){},I=class extends k(A,j,`AuthorizeSecurityGroupIngress`,te){},Re=class extends k(A,Me,`CopySnapshot`,i){},ze=class extends k(A,j,`CreateImage`,ye){},L=class extends k(A,j,`CreateInternetGateway`,O){},Be=class extends k(A,j,`CreateKeyPair`,g){},Ve=class extends k(A,j,`CreateLaunchTemplate`,C){},He=class extends k(A,j,`CreateLaunchTemplateVersion`,Te){},R=class extends k(A,j,`CreateNatGateway`,fe){},Ue=class extends k(A,j,`CreatePlacementGroup`,v){},z=class extends k(A,j,`CreateRoute`,E){},B=class extends k(A,j,`CreateRouteTable`,he){},V=class extends k(A,j,`CreateSecurityGroup`,p){},We=class extends k(A,j,`CreateSnapshot`,De){},H=class extends k(A,j,`CreateSubnet`,_e){},Ge=class extends k(A,j,`CreateVolume`,xe){},U=class extends k(A,j,`CreateVpc`,y){},Ke=class extends k(A,j,`DeleteInternetGateway`,m){},qe=class extends k(A,j,`DeleteKeyPair`,Ce){},Je=class extends k(A,j,`DeleteLaunchTemplate`,Se){},Ye=class extends k(A,j,`DeleteLaunchTemplateVersions`,ue){},Xe=class extends k(A,j,`DeleteNatGateway`,Oe){},Ze=class extends k(A,j,`DeletePlacementGroup`,je){},Qe=class extends k(A,j,`DeleteRoute`,pe){},$e=class extends k(A,j,`DeleteRouteTable`,Ae){},W=class extends k(A,j,`DeleteSecurityGroup`,ne){},et=class extends k(A,j,`DeleteSnapshot`,a){},tt=class extends k(A,j,`DeleteSubnet`,ke){},nt=class extends k(A,j,`DeleteVolume`,re){},rt=class extends k(A,j,`DeleteVpc`,s){},it=class extends k(A,j,`DeregisterImage`,o){},at=class extends k(A,j,`DetachInternetGateway`,b){},ot=class extends k(A,j,`DetachVolume`,l){},st=class extends k(A,j,`DisassociateAddress`,oe){},ct=class extends k(A,j,`DisassociateIamInstanceProfile`,ie){},lt=class extends k(A,j,`DisassociateRouteTable`,ce){},ut=class extends k(A,j,`GetConsoleOutput`,ee){},dt=class extends k(A,j,`ImportKeyPair`,r){},ft=class extends k(A,j,`ModifyInstanceAttribute`,ve){},pt=class extends k(A,j,`ModifyLaunchTemplate`,D){},G=class extends k(A,j,`ModifySubnetAttribute`,h){},mt=class extends k(A,j,`ModifyVolume`,S){},ht=class extends k(A,j,`RebootInstances`,we){},gt=class extends k(A,j,`RegisterImage`,de){},_t=class extends k(A,j,`ReleaseAddress`,_){},vt=class extends k(A,j,`RevokeSecurityGroupEgress`,T){},yt=class extends k(A,j,`RevokeSecurityGroupIngress`,me){},bt=class extends k(A,j,`RunInstances`,f){},xt=class extends k(A,j,`StartInstances`,Ee){},St=class extends k(A,j,`StopInstances`,ge){},Ct=class extends k(A,j,`TerminateInstances`,be){},K={application_status_check:`application-status-check`,capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,capacity_reservation_modification_quote:`capacity-reservation-modification-quote`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_internet_registry_association:`ipam-internet-registry-association`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},q=e(),wt=/\s+/;function Tt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Et,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Et(e){let t=new xt({InstanceIds:[e]});return await w().send(t)}function Dt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ot,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Ot(e){let t=new St({InstanceIds:[e]});return await w().send(t)}function kt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:At,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function At(e){let t=new Ct({InstanceIds:[e]});return await w().send(t)}function jt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Mt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function Mt(e){let t=new ht({InstanceIds:[e]});return await w().send(t)}function Nt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Pt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})},onSettled:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Pt(e){let t=w();if(e.securityGroupMode!==`create`)return await J(t,e,e.securityGroupIds??[]);let n=await Ft(t,e);try{return await It(t,n,e),await J(t,e,[n])}catch(e){let r=e;try{await t.send(new W({GroupId:n}))}catch{}throw r}}async function J(e,t,n){let r=new bt({ImageId:t.imageId||void 0,InstanceType:t.instanceType?t.instanceType:void 0,KeyName:t.keyName||void 0,MinCount:t.count,MaxCount:t.count,SubnetId:t.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:t.placementGroupName?{GroupName:t.placementGroupName}:void 0,BlockDeviceMappings:Lt(t),LaunchTemplate:t.launchTemplateId?{LaunchTemplateId:t.launchTemplateId,Version:t.launchTemplateVersion||`$Default`}:void 0});return await e.send(r)}async function Ft(e,t){let n=await e.send(new V({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}));if(!n.GroupId)throw Error(`Security group was created but no ID was returned`);return n.GroupId}async function It(e,t,n){let r=[...n.allowSsh?[22]:[],...n.allowHttp?[80]:[],...n.allowHttps?[443]:[]];if(r.length===0)return;let i=n.ruleSource===`custom`&&n.customCidr?n.customCidr:`0.0.0.0/0`;await e.send(new I({GroupId:t,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}function Lt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}var Rt=`/dev/sda1`;function zt(e){let t=new TextEncoder().encode(e),n=``;for(let e of t)n+=String.fromCodePoint(e);return btoa(n)}function Y(e){let t={};e.imageId&&(t.ImageId=e.imageId),e.instanceType&&(t.InstanceType=e.instanceType),e.keyName&&(t.KeyName=e.keyName);let n=e.securityGroupIds??[];return e.subnetId?t.NetworkInterfaces=[{DeviceIndex:0,SubnetId:e.subnetId,Groups:n.length>0?n:void 0}]:n.length>0&&(t.SecurityGroupIds=n),(e.rootVolumeSize!==void 0||e.rootVolumeType!==void 0)&&(t.BlockDeviceMappings=[{DeviceName:Rt,Ebs:{...e.rootVolumeSize!==void 0&&{VolumeSize:e.rootVolumeSize},...e.rootVolumeType!==void 0&&{VolumeType:e.rootVolumeType}}}]),e.userData&&(t.UserData=zt(e.userData)),t}function Bt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:X,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]})}},e[0]=r,e[1]=i),n(i)}async function X(e){let t=new Ve({LaunchTemplateName:e.launchTemplateName,VersionDescription:e.versionDescription||void 0,LaunchTemplateData:Y(e)});return await w().send(t)}function Vt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ht,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Ht(e){let t=new He({LaunchTemplateId:e.launchTemplateId,SourceVersion:e.sourceVersion||void 0,VersionDescription:e.versionDescription||void 0,LaunchTemplateData:Y(e)});return await w().send(t)}function Ut(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Wt,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Wt(e){let t=new pt({LaunchTemplateId:e.launchTemplateId,DefaultVersion:e.defaultVersion});return await w().send(t)}function Gt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Kt,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]}),r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`,t.launchTemplateId,`versions`]})}},e[0]=r,e[1]=i),n(i)}async function Kt(e){let t=new Ye({LaunchTemplateId:e.launchTemplateId,Versions:e.versions}),n=await w().send(t),r=n.UnsuccessfullyDeletedLaunchTemplateVersions?.[0];if(r)throw Error(`Version ${r.VersionNumber} was not deleted: ${r.ResponseError?.Message??r.ResponseError?.Code??`unknown error`}`);return n}function qt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Jt,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`launchTemplates`]})}},e[0]=r,e[1]=i),n(i)}async function Jt(e){let t=new Je({LaunchTemplateId:e});return await w().send(t)}function Yt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Xt,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function Xt(e){let t=new Be({KeyName:e.keyName,KeyType:e.keyType}),n=await w().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Zt(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Qt,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function Qt(e){let t=e.publicKeyMaterial.trim().split(wt).slice(0,2).join(` `),n=new dt({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await w().send(n)}function $t(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:en,onSuccess:()=>{r.invalidateQueries(M)}},e[0]=r,e[1]=i),n(i)}async function en(e){let t=new qe({KeyPairId:e});return await w().send(t)}function tn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:nn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function nn(e){let t=new Ge({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await w().send(t)}function rn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:an,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function an(e){let t=new mt({VolumeId:e.volumeId,Size:e.size});return await w().send(t)}function on(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:sn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=r,e[1]=i),n(i)}async function sn(e){let t=new nt({VolumeId:e});return await w().send(t)}function cn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ln,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function ln(e){let t=new We({VolumeId:e.volumeId,Description:e.description||void 0});return await w().send(t)}function un(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:dn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function dn(e){let t=new et({SnapshotId:e});return await w().send(t)}function fn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:pn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=r,e[1]=i),n(i)}async function pn(e){let t=new Re({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await w().send(t)}function mn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:hn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function hn(e){let t=new Ie({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await w().send(t)}function gn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:_n,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`volumes`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function _n(e){let t=new ot({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await w().send(t)}function vn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:yn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function yn(e){let{instanceId:t,...n}=e,r=new ft({InstanceId:t,InstanceType:{Value:n.instanceType}});return await w().send(r)}function bn(){let e=(0,q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={mutationFn:xn},e[0]=t):t=e[0],n(t)}async function xn(e){let t=new ut({InstanceId:e});return await w().send(t)}function Sn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Cn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Cn(e){let t=new ze({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await w().send(t)}function wn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Tn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Tn(e){let t=new gt({Name:e.name,Description:e.description||void 0,BlockDeviceMappings:[{DeviceName:`/dev/sda1`,Ebs:{SnapshotId:e.snapshotId}}]});return await w().send(t)}function En(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Dn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=r,e[1]=i),n(i)}async function Dn(e){let t=new it({ImageId:e});return await w().send(t)}function On(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:kn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function kn(e){let t=new U({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await w().send(t)}function An(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:jn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=r,e[1]=i),n(i)}async function jn(e){let t=new rt({VpcId:e});return await w().send(t)}function Mn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Nn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Nn(e){let t=w(),n=await t.send(new H({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new G({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function Pn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Fn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=r,e[1]=i),n(i)}async function Fn(e){let t=new tt({SubnetId:e});return await w().send(t)}function In(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Ln,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Ln(e){let t=new Ue({GroupName:e.groupName,Strategy:e.strategy});return await w().send(t)}function Rn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:zn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=r,e[1]=i),n(i)}async function zn(e){let t=new Ze({GroupName:e});return await w().send(t)}function Bn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Vn,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Vn(e){let t=new V({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await w().send(t)}function Hn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Un,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=r,e[1]=i),n(i)}async function Un(e){let t=new W({GroupId:e});return await w().send(t)}function Wn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Gn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Gn(e){let t=new I({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Kn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:qn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function qn(e){let t=new Le({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Jn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Yn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Yn(e){let t=new yt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Xn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Zn,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),r.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=r,e[1]=i),n(i)}async function Zn(e){let t=new vt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Qn(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:$n,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function $n(e){let t=new L({TagSpecifications:Q(K.internet_gateway,e?.name,[])});return await w().send(t)}function er(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:tr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function tr(e){let t=new Ke({InternetGatewayId:e});return await w().send(t)}function nr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:rr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function rr(e){let t=new F({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function ir(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:ar,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=r,e[1]=i),n(i)}async function ar(e){let t=new at({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function or(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:sr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function sr(e){let t=new N({Domain:`vpc`,TagSpecifications:Q(K.elastic_ip,e?.name,[])});return await w().send(t)}function cr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:lr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function lr(e){let t=new _t({AllocationId:e});return await w().send(t)}function ur(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:dr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function dr(e){let t=new Pe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await w().send(t)}function fr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:pr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`addresses`]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function pr(e){let t=new st({AssociationId:e});return await w().send(t)}function mr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:hr,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function hr(e){let t=new Fe({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await w().send(t)}function gr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:_r,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),r.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=r,e[1]=i),n(i)}async function _r(e){let t=new ct({AssociationId:e.associationId});return await w().send(t)}function vr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:yr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),r.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=r,e[1]=i),n(i)}async function yr(e){let t=new R({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:Q(K.natgateway,e.name,[])});return await w().send(t)}function br(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:xr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=r,e[1]=i),n(i)}async function xr(e){let t=new Xe({NatGatewayId:e});return await w().send(t)}function Sr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Cr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Cr(e){let t=new B({VpcId:e.vpcId,TagSpecifications:Q(K.route_table,e.name,[])});return await w().send(t)}function wr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Tr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Tr(e){let t=new $e({RouteTableId:e});return await w().send(t)}function Er(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Dr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Dr(e){let t=new z({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await w().send(t)}function Or(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:kr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function kr(e){let t=new Qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await w().send(t)}function Ar(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:jr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function jr(e){let t=new P({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await w().send(t)}function Mr(){let e=(0,q.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Nr,onSuccess:()=>{r.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=r,e[1]=i),n(i)}async function Nr(e){let t=new lt({AssociationId:e});return await w().send(t)}function Pr(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function Q(e,t,n){let r=Pr(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}async function $(e){let t=await Promise.allSettled(e),n=[];for(let e of t){if(e.status===`rejected`)throw e.reason;n.push(e.value)}return n}function Fr(){let e=t();return n({mutationFn:async e=>{let t=w(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=(await t.send(new U({CidrBlock:e.cidrBlock,InstanceTenancy:e.tenancy,TagSpecifications:Q(K.vpc,o,i)}))).Vpc?.VpcId;if(!s)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:s}),e.mode===`vpc-only`)return{vpcId:s,created:n};let c=Ne(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount,{publicCidrs:e.publicSubnetCidrs,privateCidrs:e.privateSubnetCidrs});a=`creating public subnets`;let l=await $(c.publicSubnets.map(async({cidr:e},a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,c=(await t.send(new H({VpcId:s,CidrBlock:e,TagSpecifications:Q(K.subnet,o,i)}))).Subnet?.SubnetId;if(!c)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:c}),await t.send(new G({SubnetId:c,MapPublicIpOnLaunch:{Value:!0}})),c}));a=`creating private subnets`;let u=await $(c.privateSubnets.map(async({cidr:e},a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,c=(await t.send(new H({VpcId:s,CidrBlock:e,TagSpecifications:Q(K.subnet,o,i)}))).Subnet?.SubnetId;if(!c)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:c}),c}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new L({TagSpecifications:Q(K.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new F({InternetGatewayId:o,VpcId:s})),a=`creating public route table`;let c=r?`${r}-rtb-public`:void 0,u=(await t.send(new B({VpcId:s,TagSpecifications:Q(K.route_table,c,i)}))).RouteTable?.RouteTableId;if(!u)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:u}),a=`creating default route to internet gateway`,await t.send(new z({RouteTableId:u,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(l.map(async e=>await t.send(new P({RouteTableId:u,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,c=(await t.send(new B({VpcId:s,TagSpecifications:Q(K.route_table,o,i)}))).RouteTable?.RouteTableId;if(!c)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:c}),a=`associating private subnets with route table`,await Promise.all(u.map(async e=>await t.send(new P({RouteTableId:c,SubnetId:e})))),e.natGateway===`single`&&l[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new N({Domain:`vpc`,TagSpecifications:Q(K.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new R({SubnetId:l[0],AllocationId:e,TagSpecifications:Q(K.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new z({RouteTableId:c,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:s,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{cr as $,Gt as A,En as B,Mn as C,er as D,Fr as E,Hn as F,Mr as G,gn as H,un as I,vn as J,bn as K,Pn as L,Rn as M,Or as N,$t as O,wr as P,wn as Q,on as R,cn as S,On as T,fr as U,ir as V,gr as W,rn as X,Ut as Y,jt as Z,vr as _,Ar as a,Sr as b,Kn as c,Sn as d,Xn as et,Nt as f,Vt as g,Bt as h,mr as i,kt as it,br as j,qt as k,Wn as l,Yt as m,or as n,Tt as nt,nr as o,Qn as p,Zt as q,ur as r,Dt as rt,mn as s,Y as t,Jn as tt,fn as u,In as v,tn as w,Bn as x,Er as y,An as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-1pwcgf7b.js b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-BivCaRzr.js similarity index 98% rename from spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-1pwcgf7b.js rename to spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-BivCaRzr.js index 526f76c34..03b08a2de 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-1pwcgf7b.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair-BivCaRzr.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{q as ee}from"./ec2-B8rwH6Fi.js";import{t as o}from"./page-heading-vksh_67w.js";import{a as s,i as c,t as l}from"./zod-A4qtKH_p.js";import{t as te}from"./error-banner-DeOeVBKS.js";import{t as u}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{t as m}from"./textarea-CTBs9AlF.js";import{v as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(55),t=n(),v=ee(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]!==v||e[4]!==t?(k=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[3]=v,e[4]=t,e[5]=k):k=e[5];let A=k,j,M;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(r,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,_.jsx)(o,{title:`Import Key Pair`}),e[6]=j,e[7]=M):(j=e[6],M=e[7]);let N;e[8]===v.error?N=e[9]:(N=v.error&&(0,_.jsx)(te,{error:v.error,msg:`Failed to import key pair`}),e[8]=v.error,e[9]=N);let P;e[10]!==x||e[11]!==A?(P=x(A),e[10]=x,e[11]=A,e[12]=P):P=e[12];let F;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=F):F=e[13];let I=!!T.keyName,L;e[14]===S?L=e[15]:(L=S(`keyName`),e[14]=S,e[15]=L);let R;e[16]!==L||e[17]!==I?(R=(0,_.jsx)(a,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[16]=L,e[17]=I,e[18]=R):R=e[18];let z;e[19]===T.keyName?z=e[20]:(z=(0,_.jsx)(d,{errors:[T.keyName]}),e[19]=T.keyName,e[20]=z);let B;e[21]!==R||e[22]!==z?(B=(0,_.jsxs)(p,{children:[F,R,z]}),e[21]=R,e[22]=z,e[23]=B):B=e[23];let V,H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[24]=V,e[25]=H):(V=e[24],H=e[25]);let U=!!T.publicKeyMaterial,W;e[26]===S?W=e[27]:(W=S(`publicKeyMaterial`),e[26]=S,e[27]=W);let G;e[28]!==U||e[29]!==W?(G=(0,_.jsx)(m,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[28]=U,e[29]=W,e[30]=G):G=e[30];let K;e[31]===T.publicKeyMaterial?K=e[32]:(K=(0,_.jsx)(d,{errors:[T.publicKeyMaterial]}),e[31]=T.publicKeyMaterial,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,_.jsxs)(p,{children:[V,H,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===O?J=e[37]:(J=y(O),e[36]=O,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,_.jsx)(i,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==v.isPending||e[43]!==E||e[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[42]=v.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==B||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==P?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[46]=B,e[47]=q,e[48]=Y,e[49]=Z,e[50]=P,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==N?($=(0,_.jsxs)(_.Fragment,{children:[j,M,N,Q]}),e[52]=Q,e[53]=N,e[54]=$):$=e[54],$}function y(e){return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime-D_vZfn79.js";import{t as n}from"./useNavigate-CTe_-BZA.js";import{t as r}from"./back-link-wsXUoJ12.js";import{t as i}from"./cli-command-panel-4C78XA6W.js";import{t as a}from"./input-CBUMH1Jl.js";import{q as ee}from"./ec2-BXFEIaSs.js";import{t as o}from"./page-heading-vksh_67w.js";import{a as s,i as c,t as l}from"./zod-A4qtKH_p.js";import{t as te}from"./error-banner-DeOeVBKS.js";import{t as u}from"./form-actions-ECg9_Gdo.js";import{r as d,s as f,t as p}from"./field-BKQO3cRo.js";import{t as m}from"./textarea-CTBs9AlF.js";import{v as h}from"./ec2-CSDTsDKe.js";var g=t(),_=e();function v(){let e=(0,g.c)(55),t=n(),v=ee(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h)},e[0]=b):b=e[0];let{handleSubmit:x,register:S,control:C,formState:w}=c(b),{errors:T,isSubmitting:E}=w,D;e[1]===C?D=e[2]:(D={control:C},e[1]=C,e[2]=D);let O=s(D),k;e[3]!==v||e[4]!==t?(k=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[3]=v,e[4]=t,e[5]=k):k=e[5];let A=k,j,M;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(r,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,_.jsx)(o,{title:`Import Key Pair`}),e[6]=j,e[7]=M):(j=e[6],M=e[7]);let N;e[8]===v.error?N=e[9]:(N=v.error&&(0,_.jsx)(te,{error:v.error,msg:`Failed to import key pair`}),e[8]=v.error,e[9]=N);let P;e[10]!==x||e[11]!==A?(P=x(A),e[10]=x,e[11]=A,e[12]=P):P=e[12];let F;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=F):F=e[13];let I=!!T.keyName,L;e[14]===S?L=e[15]:(L=S(`keyName`),e[14]=S,e[15]=L);let R;e[16]!==L||e[17]!==I?(R=(0,_.jsx)(a,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[16]=L,e[17]=I,e[18]=R):R=e[18];let z;e[19]===T.keyName?z=e[20]:(z=(0,_.jsx)(d,{errors:[T.keyName]}),e[19]=T.keyName,e[20]=z);let B;e[21]!==R||e[22]!==z?(B=(0,_.jsxs)(p,{children:[F,R,z]}),e[21]=R,e[22]=z,e[23]=B):B=e[23];let V,H;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,_.jsx)(f,{children:(0,_.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`publicKey-description`,children:`Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)`}),e[24]=V,e[25]=H):(V=e[24],H=e[25]);let U=!!T.publicKeyMaterial,W;e[26]===S?W=e[27]:(W=S(`publicKeyMaterial`),e[26]=S,e[27]=W);let G;e[28]!==U||e[29]!==W?(G=(0,_.jsx)(m,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[28]=U,e[29]=W,e[30]=G):G=e[30];let K;e[31]===T.publicKeyMaterial?K=e[32]:(K=(0,_.jsx)(d,{errors:[T.publicKeyMaterial]}),e[31]=T.publicKeyMaterial,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,_.jsxs)(p,{children:[V,H,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===O?J=e[37]:(J=y(O),e[36]=O,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,_.jsx)(i,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==v.isPending||e[43]!==E||e[44]!==X?(Z=(0,_.jsx)(u,{isPending:v.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[42]=v.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==B||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==P?(Q=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[46]=B,e[47]=q,e[48]=Y,e[49]=Z,e[50]=P,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==N?($=(0,_.jsxs)(_.Fragment,{children:[j,M,N,Q]}),e[52]=Q,e[53]=N,e[54]=$):$=e[54],$}function y(e){return[{label:`Import Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 import-key-pair`},{type:`flag`,value:` \\ --key-name`},{type:`value`,value:` ${(e.keyName??``)||``}`},{type:`flag`,value:` \\ --public-key-material`},{type:`value`,value:` fileb://path/to/key.pub`}]}]}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index-D9vpt7K9.js b/spinifex/services/spinifexui/frontend/dist/assets/index-D7KGTIfZ.js similarity index 99% rename from spinifex/services/spinifexui/frontend/dist/assets/index-D9vpt7K9.js rename to spinifex/services/spinifexui/frontend/dist/assets/index-D7KGTIfZ.js index 3a26e4742..a3c2ff24c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index-D9vpt7K9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index-D7KGTIfZ.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-ri79I-mW.js","assets/compiler-runtime-D_vZfn79.js","assets/Match-D6VSR81X.js","assets/matchContext-DjfNTEDZ.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/_auth-CQN6uKek.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/chevron-down-Dt4q6d24.js","assets/chevron-right-c57whaks.js","assets/waypoints-DE7eIn9V.js","assets/network-RAx0KOlf.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/s3-DhhvwV7v.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/dist-DEhWxN7p.js","assets/useRender-D_r-BeIy.js","assets/card-C9nlSBvn.js","assets/admin-sWEcUPHY.js","assets/alert-dialog-Da3OTbL9.js","assets/button-C9VMD5Xn.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/state-badge-BbpKF1NE.js","assets/route-CAwLPdN1.js","assets/nodes-DuOlBrgk.js","assets/redirect-B4OxYbs2.js","assets/service-metrics-BVlT0eqC.js","assets/allocate-address-bOPcFdXH.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/cli-command-panel-4C78XA6W.js","assets/check-BO7W8OSs.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/input-CBUMH1Jl.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js","assets/create-internet-gateway-DXtpKz1N.js","assets/create-key-pair-C4fE7ZNR.js","assets/select-sbVkpt-r.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useCompositeListItem-j3SLKnjj.js","assets/download-B-6MA128.js","assets/triangle-alert-DcjzeKLg.js","assets/import-key-pair-1pwcgf7b.js","assets/textarea-CTBs9AlF.js","assets/create-launch-template-eS85bS-q.js","assets/launch-template-data-fields-KubGXzaR.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/collapsible-C1lL0Zbp.js","assets/create-load-balancer--N6lPrkX.js","assets/acm-Bq1Zikkw.js","assets/certificate-import-dialog-_-hne95o.js","assets/elbv2-ONj45CAs.js","assets/commandBuilder-Bhaug6xi.js","assets/elbv2-DiAEDg-6.js","assets/tags-field-array-JxF8jxRw.js","assets/plus-BodhJT2v.js","assets/trash-DVab4pEz.js","assets/target-group-form-BEZOHxnM.js","assets/elbv2-BbL0yKcd.js","assets/create-nat-gateway-CSx3nd5L.js","assets/create-placement-group-Cei835Yj.js","assets/create-route-table-DUgY7kGf.js","assets/create-security-group-6b38uylz.js","assets/create-subnet-D7wVMuBW.js","assets/create-target-group-D5bQ4Fa3.js","assets/create-volume-BoOOKqZV.js","assets/create-vpc-M1EQVlaB.js","assets/task-definitions-CSGupk2f.js","assets/ecs-CXQ6NRIM.js","assets/ecs-MIRMclL6.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/ecs-section-nav-CSH8MVoU.js","assets/create-cluster-CGyNwlKq.js","assets/eks-u2D4kfib.js","assets/commandBuilder-BtsaezuD.js","assets/json-CeLiNx_J.js","assets/iam-BhvTeEfR.js","assets/commandBuilder-D4HJ1FUj.js","assets/iam-3D5jlLAz.js","assets/system-managed-Dk7ySh_E.js","assets/system-image-required-CQ5Fv5O6.js","assets/rotate-cw-FTUcK_f-.js","assets/policy-document-viewer-DAhLJAGU.js","assets/create-group-B3B-V6J_.js","assets/iam-CADYUEJg.js","assets/create-instance-profile-Do0eBh4w.js","assets/create-policy-CL2P-ufC.js","assets/json-editor-C0uKwIA1.js","assets/create-role-CAJVw8Kr.js","assets/create-user-BE9h67_n.js","assets/create-db-instance-CFzM44Sn.js","assets/rds-DAdlCPnc.js","assets/rds-BZ7PQo73.js","assets/rds-BqttqI3-.js","assets/picker-notice-tK9XfUSR.js","assets/security-group-checkboxes-CQUrWfTk.js","assets/create-db-parameter-group-CUcSdIga.js","assets/create-db-subnet-group-CuUW4IsJ.js","assets/create-bucket-eeiuIrsW.js","assets/s3-B_NubPB2.js","assets/ls-CWzC4f47.js","assets/list-card-PsHyk9Gp.js","assets/route-MJhrpG5n.js","assets/list-model-catalog-CeG1beQW.js","assets/list-guardrails-Cq4kt2fN.js","assets/bedrock-C1QgpHT0.js","assets/commandBuilder-CoEgFfhA.js","assets/create-DTpWMMJH.js","assets/bedrock-DVvgyVOV.js","assets/guardrail-form-page-CDvF9We8.js","assets/list-knowledge-bases-BJaqqlKH.js","assets/bedrockAgent-CGGLePgZ.js","assets/commandBuilder-BIFyM5s9.js","assets/create-BO1fFlSv.js","assets/bedrockAgent-A0KwD-f8.js","assets/list-model-access-_5zWqGCi.js","assets/playground-Cush5Er_.js","assets/commandBuilder-COpzvCP1.js","assets/describe-addresses-CX48-jv1.js","assets/describe-images-DU3F5FiN.js","assets/describe-instances-2mfa0kO7.js","assets/describe-internet-gateways-BCKNPwC9.js","assets/describe-key-pairs-BFrqVQj0.js","assets/describe-launch-templates-CacWu1yX.js","assets/describe-load-balancers-DAKWE795.js","assets/describe-nat-gateways-DGO7NhS6.js","assets/describe-placement-groups-Cn4M8Qw5.js","assets/describe-route-tables-B85w9Xcr.js","assets/describe-security-groups-CorF76Fg.js","assets/describe-snapshots-C4LyUqXx.js","assets/describe-subnets-DgMQfiqj.js","assets/describe-target-groups-BmI4rGfj.js","assets/describe-volumes-COLmjwXx.js","assets/describe-vpcs-BnIpgEwn.js","assets/list-repositories-CFHE_leH.js","assets/ecr-CPyxVUeb.js","assets/ecr-B0fWSgjS.js","assets/list-clusters-CYIpXZk9.js","assets/list-clusters-Blcu3VSI.js","assets/eks-b7zY4GyW.js","assets/list-groups-D6hjD6YQ.js","assets/list-instance-profiles-INcvr5n3.js","assets/list-policies-DPQJyoNC.js","assets/list-roles-D20fg59j.js","assets/list-users-DRJSk6hA.js","assets/describe-db-instances-CLwlt50q.js","assets/delete-db-instance-dialog-p8ulz5Lm.js","assets/describe-db-parameter-groups-Xj7h_agu.js","assets/delete-db-parameter-group-dialog-afL4KYPO.js","assets/rds-delete-dialog-BGfKxzDX.js","assets/describe-db-snapshots-ByVAmk9k.js","assets/create-db-snapshot-dialog-De2OjDH8.js","assets/delete-db-snapshot-dialog-hCpZTnCW.js","assets/describe-db-subnet-groups-B0xn02S1.js","assets/delete-db-subnet-group-dialog-BohXm6zU.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime-D_vZfn79.js";import{A as a,C as o,E as s,a as c,b as l,c as u,g as d,h as f,k as p,m,o as h,s as g,v as _,x as v,y}from"./removable-Dwr9otKB.js";import{t as b}from"./query-BPr_oSEg.js";import{t as x}from"./mutation-BziiWz5u.js";import{a as S,i as C,n as w,o as T,r as E,t as D}from"./lazyRouteComponent-D0nAq0Je.js";import{C as O,S as k,T as ee,_ as te,a as ne,b as re,c as ie,d as ae,f as oe,g as se,h as ce,i as le,l as ue,m as de,n as fe,o as pe,p as me,r as he,t as A,u as ge,v as _e,w as j,y as M}from"./link-BokOReHc.js";import{a as ve,i as ye,n as be,o as xe,r as Se,t as N}from"./Match-D6VSR81X.js";import{r as Ce}from"./matchContext-DjfNTEDZ.js";import{n as we,t as Te}from"./redirect-B4OxYbs2.js";import{a as Ee,n as De,r as Oe,t as ke}from"./useSelector-C6_B_5v6.js";import{n as Ae}from"./with-selector-DrM041uv.js";import{t as je}from"./useNavigate-CTe_-BZA.js";import{f as Me,i as Ne,n as Pe,t as Fe}from"./useValueAsRef-BRYYjd2W.js";import{a as Ie,f as Le,l as Re,n as ze,o as Be,t as Ve,u as He}from"./dist-DEhWxN7p.js";import{t as Ue}from"./useRender-D_r-BeIy.js";import{n as We,nn as P,o as Ge,r as Ke,s as qe,ut as F}from"./cluster-config-DNNpxkEw.js";import{t as I}from"./createLucideIcon-BQgzNCBR.js";import{t as Je}from"./camera-bmANKZ8M.js";import{a as Ye,i as Xe,n as Ze,o as Qe,r as $e,s as et,t as tt}from"./waypoints-DE7eIn9V.js";import{n as nt,t as rt}from"./_id-B4aFNmnb.js";import{t as it}from"./network-RAx0KOlf.js";import{n as at,t as ot}from"./_clusterName-ujtlowL_.js";import{n as st,t as ct}from"./_id-BNPP6ioO.js";import{_ as lt,b as ut,n as dt,o as ft,s as pt,t as mt,y as ht}from"./button-C9VMD5Xn.js";import{C as gt,E as _t,S as vt,b as yt,f as bt,g as xt,h as St,i as Ct,m as wt,s as Tt,t as Et,v as Dt,w as Ot,x as kt,y as At}from"./createBaseUIEventDetails-sqRELvD6.js";import{$ as jt,D as Mt,E as Nt,H as Pt,L as Ft,M as It,O as Lt,P as Rt,S as zt,St as Bt,Y as Vt,at as Ht,b as Ut,ct as Wt,g as Gt,h as Kt,it as L,j as qt,k as Jt,m as Yt,nt as Xt,ot as Zt,p as Qt,st as $t,tt as en,ut as tn,w as nn,wt as rn,x as an,y as on,z as sn}from"./useScrollLock-aaqhvzFs.js";import{n as cn,r as ln,t as un}from"./usePositioner-xrDm0DAw.js";import"./input-CBUMH1Jl.js";import{t as dn}from"./separator-BFSV8f2Y.js";import{a as fn,c as pn,i as mn,l as hn,n as gn,o as _n,r as vn,s as yn,t as bn}from"./DialogTitle-BIRU7hlM.js";import{t as xn}from"./awsClient-Bm9ksq2r.js";import{n as Sn,t as Cn}from"./admin-context-CDHgX8i9.js";import{t as wn}from"./acm-Bq1Zikkw.js";import{i as Tn,t as En}from"./bedrock-C1QgpHT0.js";import{i as Dn}from"./bedrockAgent-CGGLePgZ.js";import{A as On,E as kn,M as An,O as jn,S as Mn,_ as Nn,c as Pn,d as Fn,h as In,l as Ln,n as Rn,o as zn,p as Bn,r as Vn,w as Hn,y as Un}from"./ec2-BzWGOxUI.js";import{n as Wn}from"./ecr-CPyxVUeb.js";import{n as Gn,o as Kn}from"./ecs-CXQ6NRIM.js";import{c as qn}from"./eks-b7zY4GyW.js";import{a as Jn,o as Yn,u as Xn}from"./elbv2-DiAEDg-6.js";import{C as Zn,f as Qn,l as $n,p as er,y as tr}from"./iam-3D5jlLAz.js";import{a as nr,d as rr,h as ir,o as ar,r as or}from"./rds-BqttqI3-.js";import{n as sr}from"./s3-DhhvwV7v.js";import{t as cr}from"./login-DiEye2GK.js";import{t as lr}from"./run-instances-DAHwEmVQ.js";import{t as ur}from"./create-snapshot-jyPysm1M.js";import{t as dr}from"./create-service-DF-sOwj3.js";import{t as fr}from"./register-task-definition-C2QT22pa.js";import{t as pr}from"./run-task-Cx5ZSMtQ.js";import{t as mr}from"./_knowledgeBaseId-DQawITtr.js";import{t as hr}from"./_id-Ck6daj1a.js";import{t as gr}from"./_id-CTND5et4.js";import{t as _r}from"./_id-DJPhi_l2.js";import{t as vr}from"./_id-sGpUX4UE.js";import{t as yr}from"./_id-BPFJvgT0.js";import{t as br}from"./_id-CPocyLi-.js";import{t as xr}from"./_id-ByxwpX75.js";import{t as Sr}from"./_id-D8zrT_uR.js";import{t as Cr}from"./_id-DCV_D6-q.js";import{t as wr}from"./_id-Cf3gSkxZ.js";import{t as Tr}from"./_id-D52K_DBJ.js";import{t as Er}from"./_id-nDT4SPkw.js";import{t as Dr}from"./_id-DRav28tS.js";import{t as Or}from"./_id-CFTKSqKZ.js";import{t as kr}from"./_id-ChH83MQ3.js";import{t as Ar}from"./_id-DJwwmBFl.js";import{t as jr}from"./_clusterName-Dz3sFLA3.js";import{t as Mr}from"./_groupName-BKOaZUJa.js";import{t as Nr}from"./_instanceProfileName-FXtPzTwZ.js";import{t as Pr}from"./_policyArn-1xb5b-UV.js";import{t as Fr}from"./_roleName-CwOZwaUn.js";import{t as Ir}from"./_userName-Dba8kyLA.js";import{t as Lr}from"./_id-CvQ6rk4b.js";import{t as Rr}from"./_name-S9yeYUIm.js";import{t as zr}from"./_id-bPyVIHrg.js";import{t as Br}from"./_id-C9TqKt_R.js";import{t as Vr}from"./_name-BE-qhbhl.js";import{t as Hr}from"./_bucket-DXpP7x_7.js";import{t as Ur}from"./_-C4MbGc9c.js";import{t as Wr}from"./_guardrailId.index-DCCvASgI.js";import{t as Gr}from"./_guardrailId.edit-eJIkfqKy.js";import{t as Kr}from"./_serviceName-DUn18F2R.js";import{t as qr}from"./_taskId-CjE6gFp4.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Jr=class extends u{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Yr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){h.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.batch(()=>Promise.all(e.map(e=>e.continue().catch(l))))}};function Yr(e){return e.options.scope?.id}var Xr=class extends u{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??d(r,t),a=this.get(i);return a||(a=new b({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){h.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>y(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>y(e,t)):t}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Zr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xr,this.#t=e.mutationCache||new Jr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=c.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(o(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=m(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return h.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;h.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return h.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=h.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(l).catch(l)}invalidateQueries(e,t={}){return h.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=h.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(l)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(l)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(o(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(o(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l).catch(l)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l).catch(l)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return c.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(f(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{v(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(f(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{v(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=d(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===s&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Qr(){try{return sessionStorage}catch{return}}var $r=`tsr-scroll-restoration-v1_3`,ei=Qr();function ti(){try{return JSON.parse(ei?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var ni=ti(),ri=`data-scroll-restoration-id`,ii=e=>e.state.__TSR_key||e.href;function ai(e){let t=e.getAttribute(ri);if(t)return`[${ri}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var oi=!1,si=`window`;function ci(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function li(e){let t=new Set;for(let n of e){if(n===si)continue;let e=ci(n);e&&t.add(e)}return t}function ui(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||ii,a=new Set,o=e=>{let t=ni[e]||={};for(let e of a)e===document?t[si]={scrollX,scrollY}:e.isConnected&&(t[ai(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,oi=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{oi||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ei?.setItem($r,JSON.stringify(ni))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=ni[d];if(e){let t=ni[u];for(let n in e){if(n===si){if(s)continue}else{let e=ci(n);if(!e||s&&o&&(l??=li(o),l.has(e)))continue}t||=ni[u]={},t[n]??=e[n]}}}oi=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=li(o));let t=e&&i&&c,s=r.e?ni[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===si){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=ci(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{oi=!1}}))}function di(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function fi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function pi(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=fi(r):Array.isArray(t)?t.push(fi(r)):n[e]=[t,fi(r)]}return n}var mi=/^(?:\s|["[{\d-]|fa|nu|tr)/,hi=_i(JSON.parse),gi=vi(JSON.stringify,JSON.parse);function _i(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=pi(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!mi.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function vi(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!mi.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=di(e,r);return t?`?${t}`:``}}function yi(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var bi=4,xi=5;function Si(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Ci(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=Ei(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===bi)>(e.node.kind===bi)||t.node.kind===bi==(e.node.kind===bi)&&t.node.depth>e.node.depth)))}function Vi(e,t,n){let r=pe(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=fe(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Hi(n,s.input({url:e})),output:({url:e})=>s.output({url:Ui(n,e)})}:s}function Hi(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ui(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Wi(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{ge(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Gi=`__TSR_index`,Ki=`popstate`,qi=`beforeunload`,Ji=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Yi(e){let t=Ji.exec(e);return t?`/`+e.slice(t[0].length):e}function Xi(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-ri79I-mW.js","assets/compiler-runtime-D_vZfn79.js","assets/Match-D6VSR81X.js","assets/matchContext-DjfNTEDZ.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/_auth-CQN6uKek.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/link-BokOReHc.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/createLucideIcon-BQgzNCBR.js","assets/chevron-down-Dt4q6d24.js","assets/chevron-right-c57whaks.js","assets/waypoints-DE7eIn9V.js","assets/network-RAx0KOlf.js","assets/admin-context-CDHgX8i9.js","assets/sts-Dl5VQGi9.js","assets/signed-fetch-BbgZm19g.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/s3-DhhvwV7v.js","assets/page-heading-vksh_67w.js","assets/badge-BtRPNxFL.js","assets/dist-DEhWxN7p.js","assets/useRender-D_r-BeIy.js","assets/card-C9nlSBvn.js","assets/admin-sWEcUPHY.js","assets/alert-dialog-Da3OTbL9.js","assets/button-C9VMD5Xn.js","assets/DialogTitle-BIRU7hlM.js","assets/useValueAsRef-BRYYjd2W.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/useScrollLock-aaqhvzFs.js","assets/state-badge-BbpKF1NE.js","assets/route-CAwLPdN1.js","assets/nodes-DuOlBrgk.js","assets/redirect-B4OxYbs2.js","assets/service-metrics-BVlT0eqC.js","assets/allocate-address-Cj5JFsW1.js","assets/useNavigate-CTe_-BZA.js","assets/back-link-wsXUoJ12.js","assets/cli-command-panel-4C78XA6W.js","assets/check-BO7W8OSs.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/input-CBUMH1Jl.js","assets/useValueChanged-3krk2xbP.js","assets/useControlled-DwxdYHYK.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/form-actions-ECg9_Gdo.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js","assets/create-internet-gateway-Cpxiz-Mj.js","assets/create-key-pair-CAViKLoj.js","assets/select-sbVkpt-r.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useCompositeListItem-j3SLKnjj.js","assets/download-B-6MA128.js","assets/triangle-alert-DcjzeKLg.js","assets/import-key-pair-BivCaRzr.js","assets/textarea-CTBs9AlF.js","assets/create-launch-template-CZvRqBCG.js","assets/launch-template-data-fields-KubGXzaR.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/collapsible-C1lL0Zbp.js","assets/create-load-balancer--N6lPrkX.js","assets/acm-Bq1Zikkw.js","assets/certificate-import-dialog-_-hne95o.js","assets/elbv2-ONj45CAs.js","assets/commandBuilder-Bhaug6xi.js","assets/elbv2-DiAEDg-6.js","assets/tags-field-array-JxF8jxRw.js","assets/plus-BodhJT2v.js","assets/trash-DVab4pEz.js","assets/target-group-form-BEZOHxnM.js","assets/elbv2-BbL0yKcd.js","assets/create-nat-gateway-z5NzuiEa.js","assets/create-placement-group-D_o6h2Gq.js","assets/create-route-table-0q7LO8Yz.js","assets/create-security-group-BVBSieXt.js","assets/create-subnet-D6P8yW2z.js","assets/create-target-group-D5bQ4Fa3.js","assets/create-volume-BjkVTXNd.js","assets/create-vpc-HC_JSJiq.js","assets/task-definitions-CSGupk2f.js","assets/ecs-CXQ6NRIM.js","assets/ecs-MIRMclL6.js","assets/delete-confirmation-dialog-8byauM7I.js","assets/ecs-section-nav-CSH8MVoU.js","assets/create-cluster-CGyNwlKq.js","assets/eks-u2D4kfib.js","assets/commandBuilder-BtsaezuD.js","assets/json-CeLiNx_J.js","assets/iam-BhvTeEfR.js","assets/commandBuilder-D4HJ1FUj.js","assets/iam-3D5jlLAz.js","assets/system-managed-Dk7ySh_E.js","assets/system-image-required-CQ5Fv5O6.js","assets/rotate-cw-FTUcK_f-.js","assets/policy-document-viewer-DAhLJAGU.js","assets/create-group-B3B-V6J_.js","assets/iam-CADYUEJg.js","assets/create-instance-profile-Do0eBh4w.js","assets/create-policy-CL2P-ufC.js","assets/json-editor-C0uKwIA1.js","assets/create-role-CAJVw8Kr.js","assets/create-user-BE9h67_n.js","assets/create-db-instance-CFzM44Sn.js","assets/rds-DAdlCPnc.js","assets/rds-BZ7PQo73.js","assets/rds-BqttqI3-.js","assets/picker-notice-tK9XfUSR.js","assets/security-group-checkboxes-CQUrWfTk.js","assets/create-db-parameter-group-CUcSdIga.js","assets/create-db-subnet-group-CuUW4IsJ.js","assets/create-bucket-eeiuIrsW.js","assets/s3-B_NubPB2.js","assets/ls-CWzC4f47.js","assets/list-card-PsHyk9Gp.js","assets/route-MJhrpG5n.js","assets/list-model-catalog-CeG1beQW.js","assets/list-guardrails-Cq4kt2fN.js","assets/bedrock-C1QgpHT0.js","assets/commandBuilder-CoEgFfhA.js","assets/create-DTpWMMJH.js","assets/bedrock-DVvgyVOV.js","assets/guardrail-form-page-CDvF9We8.js","assets/list-knowledge-bases-BJaqqlKH.js","assets/bedrockAgent-CGGLePgZ.js","assets/commandBuilder-BIFyM5s9.js","assets/create-BO1fFlSv.js","assets/bedrockAgent-A0KwD-f8.js","assets/list-model-access-_5zWqGCi.js","assets/playground-Cush5Er_.js","assets/commandBuilder-COpzvCP1.js","assets/describe-addresses-CX48-jv1.js","assets/describe-images-DU3F5FiN.js","assets/describe-instances-2mfa0kO7.js","assets/describe-internet-gateways-BCKNPwC9.js","assets/describe-key-pairs-BFrqVQj0.js","assets/describe-launch-templates-CacWu1yX.js","assets/describe-load-balancers-DAKWE795.js","assets/describe-nat-gateways-DGO7NhS6.js","assets/describe-placement-groups-Cn4M8Qw5.js","assets/describe-route-tables-B85w9Xcr.js","assets/describe-security-groups-CorF76Fg.js","assets/describe-snapshots-C4LyUqXx.js","assets/describe-subnets-DgMQfiqj.js","assets/describe-target-groups-BmI4rGfj.js","assets/describe-volumes-COLmjwXx.js","assets/describe-vpcs-BnIpgEwn.js","assets/list-repositories-CFHE_leH.js","assets/ecr-CPyxVUeb.js","assets/ecr-B0fWSgjS.js","assets/list-clusters-CYIpXZk9.js","assets/list-clusters-Blcu3VSI.js","assets/eks-b7zY4GyW.js","assets/list-groups-D6hjD6YQ.js","assets/list-instance-profiles-INcvr5n3.js","assets/list-policies-DPQJyoNC.js","assets/list-roles-D20fg59j.js","assets/list-users-DRJSk6hA.js","assets/describe-db-instances-CLwlt50q.js","assets/delete-db-instance-dialog-p8ulz5Lm.js","assets/describe-db-parameter-groups-Xj7h_agu.js","assets/delete-db-parameter-group-dialog-afL4KYPO.js","assets/rds-delete-dialog-BGfKxzDX.js","assets/describe-db-snapshots-ByVAmk9k.js","assets/create-db-snapshot-dialog-De2OjDH8.js","assets/delete-db-snapshot-dialog-hCpZTnCW.js","assets/describe-db-subnet-groups-B0xn02S1.js","assets/delete-db-subnet-group-dialog-BohXm6zU.js"])))=>i.map(i=>d[i]); +import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime-D_vZfn79.js";import{A as a,C as o,E as s,a as c,b as l,c as u,g as d,h as f,k as p,m,o as h,s as g,v as _,x as v,y}from"./removable-Dwr9otKB.js";import{t as b}from"./query-BPr_oSEg.js";import{t as x}from"./mutation-BziiWz5u.js";import{a as S,i as C,n as w,o as T,r as E,t as D}from"./lazyRouteComponent-D0nAq0Je.js";import{C as O,S as k,T as ee,_ as te,a as ne,b as re,c as ie,d as ae,f as oe,g as se,h as ce,i as le,l as ue,m as de,n as fe,o as pe,p as me,r as he,t as A,u as ge,v as _e,w as j,y as M}from"./link-BokOReHc.js";import{a as ve,i as ye,n as be,o as xe,r as Se,t as N}from"./Match-D6VSR81X.js";import{r as Ce}from"./matchContext-DjfNTEDZ.js";import{n as we,t as Te}from"./redirect-B4OxYbs2.js";import{a as Ee,n as De,r as Oe,t as ke}from"./useSelector-C6_B_5v6.js";import{n as Ae}from"./with-selector-DrM041uv.js";import{t as je}from"./useNavigate-CTe_-BZA.js";import{f as Me,i as Ne,n as Pe,t as Fe}from"./useValueAsRef-BRYYjd2W.js";import{a as Ie,f as Le,l as Re,n as ze,o as Be,t as Ve,u as He}from"./dist-DEhWxN7p.js";import{t as Ue}from"./useRender-D_r-BeIy.js";import{n as We,nn as P,o as Ge,r as Ke,s as qe,ut as F}from"./cluster-config-DNNpxkEw.js";import{t as I}from"./createLucideIcon-BQgzNCBR.js";import{t as Je}from"./camera-bmANKZ8M.js";import{a as Ye,i as Xe,n as Ze,o as Qe,r as $e,s as et,t as tt}from"./waypoints-DE7eIn9V.js";import{n as nt,t as rt}from"./_id-Bu86Ozrp.js";import{t as it}from"./network-RAx0KOlf.js";import{n as at,t as ot}from"./_clusterName-ujtlowL_.js";import{n as st,t as ct}from"./_id-Cd-Ww3Z8.js";import{_ as lt,b as ut,n as dt,o as ft,s as pt,t as mt,y as ht}from"./button-C9VMD5Xn.js";import{C as gt,E as _t,S as vt,b as yt,f as bt,g as xt,h as St,i as Ct,m as wt,s as Tt,t as Et,v as Dt,w as Ot,x as kt,y as At}from"./createBaseUIEventDetails-sqRELvD6.js";import{$ as jt,D as Mt,E as Nt,H as Pt,L as Ft,M as It,O as Lt,P as Rt,S as zt,St as Bt,Y as Vt,at as Ht,b as Ut,ct as Wt,g as Gt,h as Kt,it as L,j as qt,k as Jt,m as Yt,nt as Xt,ot as Zt,p as Qt,st as $t,tt as en,ut as tn,w as nn,wt as rn,x as an,y as on,z as sn}from"./useScrollLock-aaqhvzFs.js";import{n as cn,r as ln,t as un}from"./usePositioner-xrDm0DAw.js";import"./input-CBUMH1Jl.js";import{t as dn}from"./separator-BFSV8f2Y.js";import{a as fn,c as pn,i as mn,l as hn,n as gn,o as _n,r as vn,s as yn,t as bn}from"./DialogTitle-BIRU7hlM.js";import{t as xn}from"./awsClient-Bm9ksq2r.js";import{n as Sn,t as Cn}from"./admin-context-CDHgX8i9.js";import{t as wn}from"./acm-Bq1Zikkw.js";import{i as Tn,t as En}from"./bedrock-C1QgpHT0.js";import{i as Dn}from"./bedrockAgent-CGGLePgZ.js";import{A as On,E as kn,M as An,O as jn,S as Mn,_ as Nn,c as Pn,d as Fn,h as In,l as Ln,n as Rn,o as zn,p as Bn,r as Vn,w as Hn,y as Un}from"./ec2-BzWGOxUI.js";import{n as Wn}from"./ecr-CPyxVUeb.js";import{n as Gn,o as Kn}from"./ecs-CXQ6NRIM.js";import{c as qn}from"./eks-b7zY4GyW.js";import{a as Jn,o as Yn,u as Xn}from"./elbv2-DiAEDg-6.js";import{C as Zn,f as Qn,l as $n,p as er,y as tr}from"./iam-3D5jlLAz.js";import{a as nr,d as rr,h as ir,o as ar,r as or}from"./rds-BqttqI3-.js";import{n as sr}from"./s3-DhhvwV7v.js";import{t as cr}from"./login-DiEye2GK.js";import{t as lr}from"./run-instances-IlcZaw6e.js";import{t as ur}from"./create-snapshot-CcXkvbR6.js";import{t as dr}from"./create-service-DF-sOwj3.js";import{t as fr}from"./register-task-definition-C2QT22pa.js";import{t as pr}from"./run-task-Cx5ZSMtQ.js";import{t as mr}from"./_knowledgeBaseId-DQawITtr.js";import{t as hr}from"./_id-C1szo2bQ.js";import{t as gr}from"./_id-D5CApzw1.js";import{t as _r}from"./_id-CHbbEp3J.js";import{t as vr}from"./_id-ChrUHOzx.js";import{t as yr}from"./_id-CihXDo2a.js";import{t as br}from"./_id-BKrvyNGK.js";import{t as xr}from"./_id-ByxwpX75.js";import{t as Sr}from"./_id-DflRwii5.js";import{t as Cr}from"./_id-UthkaM-l.js";import{t as wr}from"./_id-Xfn6G0NO.js";import{t as Tr}from"./_id-DzUrXYNb.js";import{t as Er}from"./_id-nDT4SPkw.js";import{t as Dr}from"./_id-O0zfpNfp.js";import{t as Or}from"./_id-BzKiV85u.js";import{t as kr}from"./_id-Dl1qhQTl.js";import{t as Ar}from"./_id-DJwwmBFl.js";import{t as jr}from"./_clusterName-Dz3sFLA3.js";import{t as Mr}from"./_groupName-BKOaZUJa.js";import{t as Nr}from"./_instanceProfileName-FXtPzTwZ.js";import{t as Pr}from"./_policyArn-1xb5b-UV.js";import{t as Fr}from"./_roleName-CwOZwaUn.js";import{t as Ir}from"./_userName-Dba8kyLA.js";import{t as Lr}from"./_id-CvQ6rk4b.js";import{t as Rr}from"./_name-S9yeYUIm.js";import{t as zr}from"./_id-bPyVIHrg.js";import{t as Br}from"./_id-C9TqKt_R.js";import{t as Vr}from"./_name-BE-qhbhl.js";import{t as Hr}from"./_bucket-DXpP7x_7.js";import{t as Ur}from"./_-C4MbGc9c.js";import{t as Wr}from"./_guardrailId.index-DCCvASgI.js";import{t as Gr}from"./_guardrailId.edit-eJIkfqKy.js";import{t as Kr}from"./_serviceName-DUn18F2R.js";import{t as qr}from"./_taskId-CjE6gFp4.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Jr=class extends u{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Yr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){h.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.batch(()=>Promise.all(e.map(e=>e.continue().catch(l))))}};function Yr(e){return e.options.scope?.id}var Xr=class extends u{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??d(r,t),a=this.get(i);return a||(a=new b({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){h.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>y(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>y(e,t)):t}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Zr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xr,this.#t=e.mutationCache||new Jr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=c.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(o(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=m(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return h.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;h.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return h.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=h.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(l).catch(l)}invalidateQueries(e,t={}){return h.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=h.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(l)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(l)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(o(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(o(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l).catch(l)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l).catch(l)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return c.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(f(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{v(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(f(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{v(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=d(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===s&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Qr(){try{return sessionStorage}catch{return}}var $r=`tsr-scroll-restoration-v1_3`,ei=Qr();function ti(){try{return JSON.parse(ei?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var ni=ti(),ri=`data-scroll-restoration-id`,ii=e=>e.state.__TSR_key||e.href;function ai(e){let t=e.getAttribute(ri);if(t)return`[${ri}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var oi=!1,si=`window`;function ci(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function li(e){let t=new Set;for(let n of e){if(n===si)continue;let e=ci(n);e&&t.add(e)}return t}function ui(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||ii,a=new Set,o=e=>{let t=ni[e]||={};for(let e of a)e===document?t[si]={scrollX,scrollY}:e.isConnected&&(t[ai(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,oi=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{oi||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ei?.setItem($r,JSON.stringify(ni))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=ni[d];if(e){let t=ni[u];for(let n in e){if(n===si){if(s)continue}else{let e=ci(n);if(!e||s&&o&&(l??=li(o),l.has(e)))continue}t||=ni[u]={},t[n]??=e[n]}}}oi=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=li(o));let t=e&&i&&c,s=r.e?ni[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===si){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=ci(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{oi=!1}}))}function di(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function fi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function pi(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=fi(r):Array.isArray(t)?t.push(fi(r)):n[e]=[t,fi(r)]}return n}var mi=/^(?:\s|["[{\d-]|fa|nu|tr)/,hi=_i(JSON.parse),gi=vi(JSON.stringify,JSON.parse);function _i(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=pi(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!mi.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function vi(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!mi.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=di(e,r);return t?`?${t}`:``}}function yi(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var bi=4,xi=5;function Si(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Ci(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=Ei(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===bi)>(e.node.kind===bi)||t.node.kind===bi==(e.node.kind===bi)&&t.node.depth>e.node.depth)))}function Vi(e,t,n){let r=pe(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=fe(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Hi(n,s.input({url:e})),output:({url:e})=>s.output({url:Ui(n,e)})}:s}function Hi(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ui(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Wi(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{ge(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Gi=`__TSR_index`,Ki=`popstate`,qi=`beforeunload`,Ji=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Yi(e){let t=Ji.exec(e);return t?`/`+e.slice(t[0].length):e}function Xi(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>` \r`.includes(e)?``:encodeURIComponent(e))),Yi(e)}function Zi(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ea(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Gi];i=Qi(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Gi];i=Qi(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Gi]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Qi(e,t){let n=ta();return{...t,key:n,__TSR_key:n,[Gi]:e}}function $i(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>Xi(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>ea(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ta();t.history.replaceState({[Gi]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=ea(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Gi]-l.state[Gi],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Zi({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(qi,x,{capture:!0}),t.removeEventListener(Ki,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(qi,x,{capture:!0}),t.addEventListener(Ki,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function ea(e,t){let n=Xi(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=ta();t={[Gi]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function ta(){return(Math.random()+1).toString(36).substring(7)}function na(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function ra(e){return e.pathname+e.search+e.hash}function ia(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function R(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function z({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function aa(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function oa(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var sa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:$i()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&pe(n)?Vi(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Wi(this.latestLocation,e),ui(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ji(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Di(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:yi(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:oe(e),external:!1,searchStr:o,search:O(t?.search,i),hash:oe(r.slice(1)),state:ee(t?.state,a)}}let o=Hi(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:oe(Yi(o.pathname)),external:!!this.rewrite&&na(o,this.origin),searchStr:c,search:O(t?.search,s),hash:oe(o.hash.slice(1)),state:ee(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ai(ie(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=ea(n.href,{});n={...n,to:Hi(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r)),s=n.to?`${n.to}`:`.`,c=ne(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[ie(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Pi(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??wi(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=fa(n.params,e),!_e(p))break;p===e&&(p=Object.assign(ae(),p));try{Object.assign(p,t(p))}catch{}}}p??=fa(n.params,pa(n.params,f)?o()[3]:ma);let m=e.leaveParams?c:Yi(oe(f?le(c,f,p,this.pathParamsDecoder):c)),h=ha(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,da(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?ga(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||ma,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:ma,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Ui(this.rewrite,e);C=ra(e),na(n,t)?(w=n.href,T=!0):w=Yi(ra(n))}else C=de(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Oi(r.pathname,this.processedTree);if(t){let i=Object.assign(ae(),t.rawParams),{from:a,params:o,...s}=t.route,c=fa(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return ca(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=ie(this.latestLocation.href)===ie(n.href)&&me(z(n.state),z(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?te(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return ca(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await lo(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(R(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&ia(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(j.test(n)||(r=te(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:na(e,this.origin)||(n=ra(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=xa,this.preloadRoute=e=>uo(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?ne(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=ki(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!me(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?me(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=he(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??gi,parseSearch:e.parseSearch??hi,protocolAllowlist:e.protocolAllowlist??ue}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=wi(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:ie(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?_a(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;ntypeof t!=`string`&&!M.call(e,t[1]))}var ma=Object.freeze({});function ha(e,t){let n=[];for(let r=0;r{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=da(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function ga(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=se(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function _a(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Ce}function va(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function ya(e,t){return e.options[t]?.preload?.()}function ba(e,t){let n=ya(e,`component`),r=ya(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function xa(e,t,n){let r=()=>t===!1?void 0:t?ya(e,t):ba(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Sa(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function ja(e,t){return e.routesById[t.routeId]}function Ma(e,t,n){return Te(e)?[Da,e]:ve(e)?(e.routeId||=n,[Ea,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Ta,e]):[wa,e]}function Na(e,t){let n=Ma(t,!0,e.id);if(n[0]!==Ta)return n;try{e.options.onError?.(n[1])}catch(t){n=Ma(t,!0,e.id)}return n}function Pa(e,t,n,r,i){return i[0].signal.aborted?Oa:Xa(e,t,n,Na(n,r),i)}async function Fa(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;ie.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return La(e,r),[i,Pa(e,t,u,a,n)]}if(c.aborted)return[i,Oa];let p=r.paramsError??r.searchError;if(p!==void 0)return La(e,r),[i,Pa(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Ba(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Aa(a,c):a);if(c.aborted)return[i,Oa];let s=Xa(e,t,u,Ma(o,!1,u.id),n);if(s[0]!==wa)return La(e,r),[i,s];r.context={...r.context,...o}}catch(a){return La(e,r),[i,Pa(e,t,u,a,n)]}finally{r.status=h,Ba(e,r,!1,n[0])}}i()}function Ia(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function La(e,t){let n=t._flight;t._flight=void 0,Ia(e,t,n)?.abort()}function Ra(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Ia(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function za(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Ba(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Va(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Ha(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Oa;if(!i)return[wa,void 0];let l=n._flight;Ba(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Va(e,t,n,r,s,a,!!o[3]))).then(e=>Ma(e,!1,r.id),e=>Ma(e,!0,r.id)).then(t=>(t[0]!==wa&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Ta&&l[2]?Na(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Xa(e,t,r,await Aa(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return La(e,n),Oa}finally{Ba(e,n,!1,s)}}function Ua(e,t,n){t[0]!==Da&&(e.status=`success`,e.error=void 0,t[0]===wa?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Wa(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&La(e,r)}function Ga(e,t){return t[0]===Ta||t[0]===Ea?{...e,status:t[0]===Ta?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Ka(e,t,n,r,i,a,o){let s=t[1][n],c=ja(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Va(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Oa)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,La(e,s),p=Pa(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Ia(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ha(e,t,s,c,g,i,a).then(t=>(Ua(s,t,l),t[0]===wa&&(m&&!a[0].signal.aborted&&Wa(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[wa,s.loaderData]),T=(async()=>{try{let e=xa(c,void 0,C);e&&await Aa(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Pa(e,t,c,r,a)]}let r=await w;x&&r[0]===wa&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Ga(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Ha(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ua(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Ga(E,e))}async function qa(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=ja(e,t[n]);try{let e=xa(i,!1);e&&await Aa(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Ja(e,t){t[2]&&=(Ra(e,t[2].map(e=>e[3])),void 0)}async function Ya(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=Da)throw[a,t];!i&&t[0]!==wa&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===Da)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Xa(e,t,n,r,i,a){for(;r[0]===Da;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[Da,t]:[Da,t,a]}return[Da,o,n]}catch(e){r=a?[Ta,e]:Na(n,e),a=!0}}return r}async function Za(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Ea?qa(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=Da)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==wa&&t[0]=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=Da){let n=s[1];if(n[0]!==Da||n[1].options.reloadDocument||n[2])return Ja(e,t),n;c=!0,s=[0,[Ta,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Ta?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=ja(e,u);try{await Aa(i?Promise.resolve().then(()=>xa(m,l===Ta?`errorComponent`:`notFoundComponent`)):Promise.all([xa(m),xa(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Ja(e,t),Oa}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Ja(e,t),Ra(e,o),p()):u.status=`success`}return t}async function Qa(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;te._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await qa(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l{for(let t=d;t=Da&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Za(e,i,u,r[0],Ya(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Ya(i[2],void 0,void 0,h.then(e=>ka(e)?0:Sa(n).length,()=>0))),o=await h}catch(t){if(Ja(e,i),t===a&&a.aborted)return Oa;throw t}return ka(o)?o:Qa(e,o,a,r[6]===n.length?r[6]:0)}function eo(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a0){i[3]=setTimeout(()=>eo(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function to(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function no(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Sa(t[3]).some(e=>e.id===n[1]))return;let i;try{await Aa(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function ro(e,t){e._committed=t,e.stores.setMatches(t)}function io(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Sa(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=aa(n);ro(e,n),Ra(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),oa(e,i,n,a,l,t)}async function ao(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function oo(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function so(e,t,n,r,i){let a=n.map(e=>({...e}));za(a);for(let t of r)La(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Za(e,o,r,t[0],i)}catch(t){throw Ra(e,a),t}if(ka(s)){Ra(e,a),s[0]===Da&&e._tx===t&&e._committed===n&&await oo(e,t,s);return}if(await Qa(e,s,t[0].signal),e._tx!==t||e._committed!==n){Ra(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),La(e,n))}ro(e,a),Ra(e,n,a)}async function co(e,t,n,r,i,a){let o=await $a(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(ka(o)){let n=o[0]===Da&&e._tx===t;if((!n||o[1].options.reloadDocument)&&to(e,t),Ra(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){to(e,t);return}await oo(e,t,o);return}let s=o[1];if(e._tx===t&&await no(e,t),e._tx!==t){to(e,t),Ra(e,s),Ja(e,o);return}let c=t[2],l=R(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await no(e,t),e._tx!==t){to(e,t),Ra(e,s),Ja(e,o);return}let n=await e.startTransition(()=>{to(e,t),io(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){Ja(e,o);return}u?.length&&so(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function lo(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=R(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await ao(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});za(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){Ra(e,m),await ao(e,n);return}e._preflight=void 0;let g,_=()=>co(e,y,f,()=>eo(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>ao(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Ba(e,t,!1)}n[0].abort(),Ra(e,n[3],y[3],!0)}if(e._tx!==y){Ra(e,y[3]),y[3]=[],g?.(),await ao(e,y);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&eo(e,y),g?.(_()),await y[5]}async function uo(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),za(a),o=(e._preloads??=new Map).set(i,a),s=await $a(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),Ra(e,a)),i.abort()}if(!ka(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){ve(e)||console.error(e);return}}}function fo(e,t){if(e)return typeof e==`string`?e:e[t]}function po(e){return e?.scriptFormat??`module`}function mo(e,t,n){let r=ho(t),i=fo(n,`script`)??r.crossOrigin;return{...po(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function ho(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function go(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function _o(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function vo({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function yo(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var bo=[],xo=0,{link:So,unlink:Co,propagate:wo,checkDirty:To,shallowPropagate:Eo}=vo({update(e){return e._update()},notify(e){bo[Oo++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Mo(e))}}),Do=0,Oo=0,ko,Ao=0;function jo(e){try{++Ao,e()}finally{--Ao||No()}}function Mo(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Co(n,e)}function No(){if(!(Ao>0)){for(;Do{i.get(),n.current?(ko=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ko,o=t?.compare??Object.is;if(n)ko=i,++xo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ko=a,n&&(i.flags&=-5),Mo(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&To(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Eo(e)}}else e&32&&(i.flags=e&-33);return ko!==void 0&&So(i,ko,xo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(wo(e),Eo(e),No())}},i}function Fo(e){let t=()=>{let t=ko;ko=n,++xo,n.depsTail=void 0,n.flags=6;try{return e()}finally{ko=t,n.flags&=-5,Mo(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&To(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Mo(this)}};return t(),n}var B=n(r(),1);function Io(e,t){let n=e[1];e.length=0,n?.(t)}function Lo({t:e}){let t=De(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Io(n,!1),n.push(i,a),e(t),B.startTransition(r)}),T(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ie(r.publicHref)!==ie(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...R(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var V=t();function Ro(){let e=De(),t=e.routesById[Ce],n=Se(e,t),r=(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Lo,{t:B.useState()[1]}),e.ssr?(0,V.jsx)(zo,{}):(0,V.jsx)(B.Suspense,{fallback:n,children:(0,V.jsx)(zo,{})})]});return e.options.InnerWrap?(0,V.jsx)(e.options.InnerWrap,{children:r}):r}function zo(){let e=De(),t=e._rendered,n=ke(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;T(()=>{t[0]===n&&Io(t,!0)},[t,n]);let a=i?(0,V.jsx)(N,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,V.jsx)(ye,{getResetKey:()=>r,onCatch:void 0,children:a})}var Bo=e=>({createMutableStore:Po,createReadonlyStore:Po,batch:jo}),H=e=>new Vo(e),Vo=class extends sa{constructor(e){super(e,Bo)}};function Ho({router:e,children:t,...n}){_e(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,V.jsx)(Oe.Provider,{value:e,children:t});return e.options.Wrap?(0,V.jsx)(e.options.Wrap,{children:r}):r}function Uo({router:e,...t}){return(0,V.jsx)(Ho,{router:e,...t,children:(0,V.jsx)(Ro,{})})}function Wo(e){let t=De();return ke(t.stores.location,C(e,t))}function Go(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ko(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=B.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,V.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,V.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,V.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,V.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,V.jsx)(qo,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function qo({attrs:e,children:t,preventScriptHoist:n}){De();let r=Ee(),i=B.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(B.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Go(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Go(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,V.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Jo(e,t,n,r){n=Ca(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:ce(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=_o(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:fo(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...mo(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return go(m,a),m.push(...d),go(m,c),m.push(...u),go(m,f),go(m,p),m}var Yo=e=>{let t=De(),n=t.options.ssr?.nonce,r=B.useCallback(r=>Jo(t,n,r,e),[e,n,t]);return ke(t.stores.matches,r,{compare:me})};function Xo(e){let t=Yo(e.assetCrossOrigin),n=De().options.ssr?.nonce;return(0,V.jsx)(V.Fragment,{children:t.map(e=>(0,B.createElement)(Ko,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Zo=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Qo=e(((e,t)=>{t.exports=Zo()})),$o=e((e=>{var t=Qo(),n=r(),i=Me();function a(e){var t=`https://react.dev/errors/`+e;if(1be||(e.current=ye[be],ye[be]=null,be--)}function N(e,t){be++,ye[be]=e.current,e.current=t}var Ce=xe(null),we=xe(null),Te=xe(null),Ee=xe(null);function De(e,t){switch(N(Te,t),N(we,e),N(Ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Se(Ce),N(Ce,e)}function Oe(){Se(Ce),Se(we),Se(Te)}function ke(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,N(Ee,e)),t=Ce.current;var n=dp(t,e.type);t!==n&&(N(we,e),N(Ce,n))}function Ae(e){we.current===e&&(Se(Ce),Se(we)),Ee.current===e&&(Se(Ee),sh._currentValue=ve)}var je,Ne;function Pe(e){if(je===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||``,Ne=-1)`:-1`)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Pe(n):``}function Le(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe(`Lazy`);case 13:return e.child!==t&&t!==null?Pe(`Suspense Fallback`):Pe(`Suspense`);case 19:return Pe(`SuspenseList`);case 0:case 15:return Ie(e.type,!1);case 11:return Ie(e.type.render,!1);case 1:return Ie(e.type,!0);case 31:return Pe(`Activity`);case 30:return Pe(`ViewTransition`);default:return``}}function Re(e){try{var t=``,n=null;do t+=Le(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var ze=Object.prototype.hasOwnProperty,Be=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,He=t.unstable_shouldYield,Ue=t.unstable_requestPaint,We=t.unstable_now,P=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Ke=t.unstable_UserBlockingPriority,qe=t.unstable_NormalPriority,F=t.unstable_LowPriority,I=t.unstable_IdlePriority,Je=t.log,Ye=t.unstable_setDisableYieldValue,Xe=null,Ze=null;function Qe(e){if(typeof Je==`function`&&Ye(e),Ze&&typeof Ze.setStrictMode==`function`)try{Ze.setStrictMode(Xe,e)}catch{}}var $e=Math.clz32?Math.clz32:nt,et=Math.log,tt=Math.LN2;function nt(e){return e>>>=0,e===0?32:31-(et(e)/tt|0)|0}var rt=256,it=262144,at=4194304;function ot(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function st(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ot(n))):i=ot(o):i=ot(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ot(n))):i=ot(o)):i=ot(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function pt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=pr),gr=` `,_r=!1;function vr(e,t){switch(e){case`keyup`:return dr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var br=!1;function xr(e,t){switch(e){case`compositionend`:return yr(t);case`keypress`:return t.which===32?(_r=!0,gr):null;case`textInput`:return e=t.data,e===gr&&_r?null:e;default:return null}}function Sr(e,t){if(br)return e===`compositionend`||!fr&&vr(e,t)?(e=Pn(),Nn=Mn=jn=null,br=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Gr(n)}}function qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wr(e.document)}return t}function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Xr=On&&`documentMode`in document&&11>=document.documentMode,Zr=null,Qr=null,$r=null,ei=!1;function ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Zr==null||Zr!==Wr(r)||(r=Zr,`selectionStart`in r&&Yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$r&&Ur($r,r)||($r=r,r=qf(Qr,`onSelect`),0>=o,i-=o,Zi=1<<32-$e(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&$i(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),z&&$i(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&$i(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),z&&$i(i,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ce&&to(l)===r.type){n(e,r.sibling),c=i(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=Ri(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Li(o.type,o.key,o.props,null,e.mode,c),co(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Vi(o,e.mode,c),c.return=e,e=c}return s(e);case ce:return o=to(o),_(e,r,o,c)}if(_e(o))return h(e,r,o,c);if(he(o)){if(l=he(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,so(o),c);if(o.$$typeof===re)return _(e,r,Ea(e,o),c);lo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=zi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ai(e),ki(e,null,n),t}return Ei(e,r,t,n),Ai(e)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gt(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===za&&(xo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:mo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function wo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=j.T,s={};s.types=o===null?null:o.types,j.T=s,uc(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Ua(c,r),Ad(e)):lc(e,t,r,Ad(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=tc(e).queue;Qs(e,i,t,ve,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Ad())}function rc(){return Ta(sh)}function ic(){return os().memoizedState}function ac(){return os().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=_o(n);var r=vo(t,e,n);r!==null&&(Nd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=Di(e,t,n,r),n!==null&&(Nd(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Ad())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Hr(s,o))return Ei(e,t,i,0),$u===null&&Ti(),!1}catch{}if(n=Di(e,t,i,r),n!==null)return Nd(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(a(479))}else t=Di(e,n,r,2),t!==null&&Nd(t,e,2)}function dc(e){var t=e.alternate;return e===H||t!==null&&t===H}function fc(e,t){Wo=Uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gt(e,n)}}var mc={readContext:Ta,use:ls,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo,useEffectEvent:Xo},hc={readContext:Ta,use:ls,useCallback:function(e,t){return as().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=as();t=t===void 0?null:t;var r=e();if(Go){Qe(!0);try{e()}finally{Qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(n!==void 0){var i=n(t);if(Go){Qe(!0);try{n(t)}finally{Qe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=sc.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=as();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,H,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,i=as();if(z){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),$u===null)throw Error(a(349));Y&127||gs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=as(),t=$u.identifierPrefix;if(z){var n=Qi,r=Zi;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ko++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[Ct]=t,o[wt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&pl(t)}}return vl(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=Te.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ia,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||ca(t,!0)}else e=lp(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[Ct]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Io(t),t):(Io(t),null);if(t.flags&128)throw Error(a(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=da(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[Ct]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),i=!1}else i=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Io(t),t):(Io(t),null)}return Io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gl(t,t.updateQueue),vl(t),null);case 4:return Oe(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return ya(t.type),vl(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return vl(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)_l(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ii(n,e),n=n.sibling;return V(t,Lo.current&1|2),z&&$i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&We()>hd&&(t.flags|=128,i=!0,_l(r,!1),t.lanes=4194304)}}else{if(!i){if(e=zo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!z)return vl(t),null}else 2*We()-r.renderingStartTime>hd&&n!==536870912&&(t.flags|=128,i=!0,_l(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=We(),e.sibling=null,o=Lo.current,o=i?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||z?V(t,o):(n=o,N(jo,t),N(Lo,n),Mo===null&&(Mo=t)),z&&$i(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return Io(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Se(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(a(156,t.tag))}function bl(e,t){switch(na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Oe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error(a(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Oe(),null;case 10:return ya(t.type),null;case 22:case 23:return Io(t),Ao(),e!==null&&Se(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function xl(e,t){switch(na(t),t.tag){case 3:ya(ja),Oe();break;case 26:case 27:case 5:Ae(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:Ro(t);break;case 10:ya(t.type);break;case 22:case 23:Io(t),Ao(),e!==null&&Se(Ga);break;case 24:ya(ja)}}function Sl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Q(t,t.return,e)}}function Cl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){Q(e,e.return,t)}}}function Tl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function El(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=vi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);p(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Q(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Q(e,t,n)}else n.current=null}}function Ol(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[Ct]=e,Lt(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,i).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Kr(s,h),v=Kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,j.T=null,n=Cd,Cd=null;var o=yd,s=xd;if(vd=0,bd=yd=null,xd=0,q&6)throw Error(a(331));var c=q;if(q|=4,Ju(o.current),Bu(o,o.current,s,n),q=c,Ef(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot==`function`)try{Ze.onPostCommitFiberRoot(Xe,o)}catch{}return!0}finally{M.p=i,j.T=r,lf(e,t)}}function ff(e,t,n){t=Ui(n,t),t=Oc(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(pt(e,2),Tf(e))}function Q(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_d===null||!_d.has(r))){e=Ui(n,e),n=kc(2),r=vo(t,n,2),r!==null&&(Ac(n,r,t,e),pt(r,2),Tf(r));break}}t=t.return}}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$u===e&&(Y&n)===n&&(ad===4||ad===3&&(Y&62914560)===Y&&300>We()-pd?q&2?cd|=n:Bd(e,0):cd|=n,ud===Y&&(ud=0)),Tf(e)}function hf(e,t){t===0&&(t=dt()),e=Oi(e,t),e!==null&&(pt(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),hf(e,n)}function vf(e,t){return Be(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-$e(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=Y,a=st(r,r===$u?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ct(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&hp()&&(e=wf);for(var t=We(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}vd!==0&&vd!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Lt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[jt]=!0,o.onload=o.onerror=function(){Rt(o)}),Lt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Lt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=It(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Lt(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Te.current)?bm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=It(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=It(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=It(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Pm(e){return`href="`+rn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[jt]){r.loading=1;return}}else t=e.createElement(`link`),t[jt]=!0,t.onload=t.onerror=Rt.bind(null,t),np(t,`link`,n),Lt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+rn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,Lt(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Lt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var o=e.querySelector(Fm(i));if(o)return t.state.loading|=4,t.instance=o,Lt(o),o;r=Im(n),(i=vm.get(i))&&Hm(r,i),o=(e.ownerDocument||e).createElement(`link`),Lt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(i=e.querySelector(zm(o)))?(t.instance=i,Lt(i),i):(r=n,(i=vm.get(o))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Lt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Lt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=$o()}))(),1),U=i(),ts=(0,B.createContext)(void 0);function ns(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function rs(e){let t=(0,U.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>ns(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,B.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,B.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,V.jsx)(ts.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function is(){let e=(0,B.useContext)(ts);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}var as={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};as.node;var os=I(as),ss={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};ss.node;var cs=I(ss),ls={name:`boxes`,size:24,node:[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]};ls.node;var us=I(ls),ds={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]};ds.node;var fs=I(ds),ps={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};ps.node;var ms=I(ps),hs={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};hs.node;var gs=I(hs),_s={name:`crosshair`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]};_s.node;var vs=I(_s),ys={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};ys.node;var bs=I(ys),xs={name:`file-stack`,size:24,node:[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]};xs.node;var Ss=I(xs),Cs={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Cs.node;var ws=I(Cs),Ts={name:`id-card`,size:24,node:[[`path`,{d:`M13 19a4 4 0 00-8 0`,key:`cugzd5`}],[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]};Ts.node;var Es=I(Ts),Ds={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Ds.node;var Os=I(Ds),ks={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};ks.node;var As=I(ks),js={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};js.node;var Ms=I(js),Ns={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};Ns.node;var Ps=I(Ns),Fs={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Fs.node;var Is=I(Fs),Ls={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};Ls.node;var Rs=I(Ls),zs={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};zs.node;var Bs=I(zs),Vs={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Vs.node;var Hs=I(Vs),Us={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Us.node;var Ws=I(Us),Gs={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};Gs.node;var Ks=I(Gs),qs={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};qs.node;var Js=I(qs),Ys={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Ys.node;var Xs=I(Ys),Zs={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Zs.node;var Qs=I(Zs),$s={name:`user-cog`,size:24,node:[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};$s.node;var ec=I($s),tc={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};tc.node;var nc=I(tc),rc={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};rc.node;var ic=I(rc);function ac(e,t){return t!=null&&!Vt(t)?0:typeof e==`function`?e():e}function oc(e,t,n){let r=ac(e,n);return typeof r==`number`?r:r?.[t]}function sc(e){return typeof e==`function`?e():e}function cc(e,t){return t||e===`click`||e===`mousedown`}function lc(e){return e?.includes(`mouse`)&&e!==`mousedown`}var uc=B.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Dt,currentIdRef:{current:null},currentContextRef:{current:null}});function dc(e,t){e.current=t.current}function fc(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=B.useRef(n),a=B.useRef(n),o=B.useRef(null),s=B.useRef(null),c=At();return ft(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:oc(i.current,`open`),close:oc(n,`close`)}},[n,o,i,a]),(0,V.jsx)(uc.Provider,{value:B.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function pc(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=B.useContext(uc),[f,p]=B.useState(!1),m=B.useRef(n);return ft(()=>{m.current=n},[n]),ft(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),ft(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:oc(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Et(bt))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),ft(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,dc(o,c),d.clear()}},[l,a,o,i,c,d]),B.useMemo(()=>({activeIdRef:a,hasProvider:u,delayRef:o,isInstantPhase:f}),[a,u,o,f])}function mc(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function hc(e){return e!=null&&e.clientX!=null}function gc(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=B.useRef(!1),u=B.useRef(null),[d,f]=B.useState(),[p,m]=B.useState([]),h=pt(e=>{i.set(`positionReference`,e)}),g=pt((e,t,n)=>{l.current||(!c.current.openEvent||hc(c.current.openEvent))&&i.set(`positionReference`,mc(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=pt(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Vt(d)?o:a;B.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=lt(o);function r(t){let n=gt(t);vt(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||hc(c.current.openEvent)?u.current=Pe(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),B.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),B.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),B.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=B.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return B.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var _c=Ae();function vc(e){let t=B.useCallback(t=>e===void 0?Be:e.subscribeStore(t),[e]),n=B.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,_c.useSyncExternalStore)(t,n,()=>e?.serverStore)}var yc=rn&&Bt;function bc(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=B.useRef(!1),c=B.useRef(null),l=B.useRef(!0),u=At();B.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=lt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ut(e)&&e===kt(_t(e))&&(s.current=!0,c.current=e)}function a(){l.current=!0}function o(){l.current=!1}return Pt(Pe(t,`blur`,r),yc&&Pe(t,`keydown`,a,!0),yc&&Pe(t,`pointerdown`,o,!0))},[i,n]),B.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);ht(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=B.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=gt(t.nativeEvent);if(ht(a)){if(yc&&!t.relatedTarget){if(!l.current&&!L(a))return}else if(!Ht(a))return}let o=Xt(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Et(wt,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Et(wt,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=ht(n)&&n.hasAttribute(sn(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=kt(_t(e));(n||t!==e)&&(vt(o.current.floatingContext?.refs.floating.current,t)||vt(e,t)||a||Xt(n??t,i.context.triggerElements)||i.setOpen(!1,Et(wt,r)))})}}},[o,r,i,u]);return B.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var xc=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Dt,this.restTimeout=new Dt,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Sc=new WeakMap;function Cc(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Sc.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Sc.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function wc(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Sc.get(n);a&&a!==e&&Cc(a),Cc(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Sc.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Tc(e){let t=e.context.dataRef.current,n=Re(()=>t.hoverInteractionState??xc.create()).current;return t.hoverInteractionState||=n,yt(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ec(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=It(),d=qt(),f=Tc(a),p=At(),m=pt(()=>cc(l.current.openEvent?.type,f.interactedInside)),h=pt(()=>lc(l.current.openEvent?.type)),g=pt(()=>{Cc(f)});ft(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),B.useEffect(()=>g,[g]),ft(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&ht(c)&&s){let e=c,t=s,n=_t(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return wc(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),B.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&jt(u.nodesRef.current,d).length>0)}function t(e){let t=oc(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Et(St,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=gt(e);if(!en(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Xt(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&ht(o)&&jt(u.nodesRef.current,r,!1).some(e=>vt(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){u&&d&&!e()&&p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Et(St,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Pt(y&&Pe(y,`mouseenter`,c),y&&Pe(y,`mouseleave`,_),y&&Pe(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Dc=n(Me(),1),Oc={current:null};function kc(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Oc,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=It(l),y=Tc(h),b=B.useRef(!1),x=Fe(i),S=Fe(r),C=Fe(o),w=Fe(n),T=Fe(p),E=Fe(f),D=pt(()=>cc(g.current.openEvent?.type,y.interactedInside)),O=pt(()=>T.current?.()!==!1),k=pt((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!vt(e,t);if(!ht(n))return!1;let i=n;return r.hasMatchingElement(e=>vt(e,i))&&(!e||!vt(e,i))}),ee=pt(()=>{y.handler&&=(_t(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),te=pt(()=>{Cc(y)});return u&&(y.handleCloseOptions=i?.__options),B.useEffect(()=>ee,[ee]),B.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===St,ee(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,ee]),B.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=oc(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!ht(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!Vt(y.pointerType))return;let t=sc(C.current),n=oc(S.current,`open`,y.pointerType),r=gt(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(ht(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(vt(e,r)){s=e;break}}ht(i)&&ht(o)&&!h.context.triggerElements.hasElement(i)&&vt(i,o)&&(s=o);let c=s!=null&&k(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&ht(s)&&ht(o)&&vt(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){O()&&h.setOpen(!0,Et(St,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&h.setOpen(!0,Et(St,e,s))}):g&&O()&&h.setOpen(!0,Et(St,e,s)))}function i(t){if(D()){te();return}ee();let n=h.select(`domReferenceElement`),r=_t(n);y.restTimeout.clear(),y.restTimeoutPending=!1;let i=g.current.floatingContext??d?.();if(!Xt(t.relatedTarget,h.context.triggerElements)){if(x.current&&i){h.select(`open`)||y.openChangeTimeout.clear();let n=c.current;y.handler=x.current({...i,tree:v,x:t.clientX,y:t.clientY,onClose(){te(),ee(),w.current&&!D()&&n===h.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!vt(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){vt(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?Pe(t,`mouseout`,o):void 0;return s?Pt(Pe(t,`mousemove`,r,{once:!0}),Pe(t,`mouseenter`,r),Pe(t,`mouseleave`,i),l):Pt(Pe(t,`mouseenter`,r),Pe(t,`mouseleave`,i),l)},[ee,te,g,S,h,n,x,y,u,k,D,a,s,C,c,v,w,d,E,O,m]),B.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=k(r,n,e.target);if(a&&!Vt(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;wc(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=sc(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&h.setOpen(!0,Et(St,t,n))}y.pointerType===`touch`?Dc.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,h,C,O])}var Ac=.1,jc=Ac*Ac,Mc=.5;function Nc(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Pc(e,t,n,r,i,a,o,s,c,l){let u=!1;return Nc(e,t,n,r,i,a)&&(u=!u),Nc(e,t,i,a,o,s)&&(u=!u),Nc(e,t,o,s,c,l)&&(u=!u),Nc(e,t,c,l,n,r)&&(u=!u),u}function Fc(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ic(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Lc(e={}){let{blockPointerEvents:t=!1}=e,n=new Dt,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*jc;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,ee=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let te=!1;switch(c){case`top`:te=Ic(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:te=Ic(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:te=Ic(d,f,S.right-1,ee,x.left+1,k);break;case`right`:te=Ic(d,f,x.right-1,ee,S.left+1,k)}if(te)return;if(l&&!Fc(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let ne=!1;switch(c){case`top`:{let n=T?Mc/2:Mc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Mc+1,o=C||T?S.bottom-Mc:S.top,s=C?T?S.bottom-Mc:S.top:S.bottom-Mc;ne=Pc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Mc/2:Mc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Mc,o=C||T?S.top+Mc:S.bottom,s=C?T?S.top+Mc:S.bottom:S.top+Mc;ne=Pc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Mc/2:Mc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Mc+1,o=w||E?S.right-Mc:S.left,s=w?E?S.right-Mc:S.left:S.right-Mc;ne=Pc(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Mc/2:Mc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Mc,o=w||E?S.left+Mc:S.right,s=w?E?S.left+Mc:S.right:S.left+Mc;ne=Pc(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}ne?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Rc=Mt(function(e){return gn(`dialog`,e)});function zc(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Rc,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Bc(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(vn,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Vc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(hn,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hc(e){let t=(0,U.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0||o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Vc,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=P(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,V.jsxs)(pn,{"data-slot":`sheet-close`,render:(0,V.jsx)(mt,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,V.jsx)(st,{}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,V.jsxs)(Bc,{children:[l,(0,V.jsxs)(mn,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function Uc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Wc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(bn,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Gc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(yn,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Kc=B.createContext(void 0);function qc(e){let t=B.useContext(Kc);if(t===void 0&&!e)throw Error(He(72));return t}var Jc={..._n,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Yc=class extends Nt{constructor(e,t,n){let r=new Qt;super(Xc(e,r,t,n),Zc(r),Jc)}setOpen=(e,t)=>{Gt(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Et(xt,e))}};function Xc(e,t,n,r=!1){return{...fn(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Zc(e){return{popupRef:B.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Qc=Mt(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=zt((e,t)=>new Yc({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),on(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Ut(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=B.useRef(null);ft(()=>{m&&t&&p.setOpen(!1,Et(Ct))},[m,t,p]),ft(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),ft(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),B.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Et(Tt))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,V.jsxs)(Kc.Provider,{value:p,children:[l&&(0,V.jsx)(Kt,{handle:l,store:p}),T&&(0,V.jsx)($c,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function $c({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Jt(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=gc(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=B.useMemo(()=>Le(a.reference,i.reference),[a.reference,i.reference]);return an(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??Ie}),null}var el=B.createContext(void 0);function tl(){return B.useContext(el)}var nl=`data-base-ui-tooltip-trigger`;function rl(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!ie.current}}),de=bc(v,{enabled:!ee}).reference,fe=e=>{let t=ie.current,n=rl(e),r=le(n),i=y.current,a=i&&n&&vt(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Et(St,e));return}if(t&&!r&&a&&!te.current&&!m.select(`open`)&&i&&Vt(oe.current)){let t=()=>{!ie.current&&!te.current&&!m.select(`open`)&&m.setOpen(!0,Et(St,e,i))},n=se();n===0?(ae.clear(),t()):ae.start(n,t)}},pe=m.useState(`triggerProps`,S);return ze(`button`,e,{state:{open:_},ref:[t,x,y],props:[ue,de,S||ne!==`none`?pe:void 0,{onMouseOver(e){fe(e.nativeEvent)},onFocus(e){ce(rl(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ie.current=!1,ae.clear(),oe.current=void 0},onPointerEnter(e){oe.current=e.pointerType},onPointerDown(e){oe.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Zt]:ee?``:void 0,[nl]:ee?void 0:``},f],stateAttributesMapping:tn})}),ol=B.createContext(void 0);function sl(){let e=B.useContext(ol);if(e===void 0)throw Error(He(70));return e}var cl=B.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Rt({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,V.jsxs)(B.Fragment,{children:[l,c&&Dc.createPortal(n,c)]})}),ll=B.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return qc().useState(`mounted`)||n?(0,V.jsx)(ol.Provider,{value:n,children:(0,V.jsx)(cl,{ref:t,...r})}):null}),ul=B.createContext(void 0);function dl(){let e=B.useContext(ul);if(e===void 0)throw Error(He(71));return e}var fl=B.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Ft,style:g,..._}=e,v=qc(),y=sl(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=v.useState(`adaptiveOrigin`),O=ln({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:D}),k=B.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,T]),ee=un(e,k,{styles:O.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,V.jsx)(ul.Provider,{value:O,children:ee})}),pl=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=qc(),{side:s,align:c}=dl(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Ne({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ec(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return ze(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Yt,f,cn(d),a],stateAttributesMapping:Wt})}),ml=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=qc(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=dl(),f={open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)};return ze(`div`,e,{state:f,ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:$t})}),hl=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=B.useMemo(()=>({open:t,close:n}),[t,n]);return(0,V.jsx)(el.Provider,{value:t,children:(0,V.jsx)(fc,{delay:i,timeoutMs:r,children:e.children})})};function gl(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,V.jsx)(hl,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function _l(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(gl,{children:(0,V.jsx)(Qc,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function vl(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(al,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function yl(e){let t=(0,U.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=P(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-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 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,V.jsx)(ml,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,V.jsxs)(pl,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,V.jsx)(ll,{children:(0,V.jsx)(fl,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var bl=window.matchMedia(`(max-width: 767px)`);function xl(e){return bl.addEventListener(`change`,e),()=>{bl.removeEventListener(`change`,e)}}function Sl(){return bl.matches}function Cl(){return(0,B.useSyncExternalStore)(xl,Sl)}var wl=`sidebar_state`,Tl=604800,El=`12rem`,Dl=`16rem`,Ol=`3rem`,kl=`b`,Al=B.createContext(null);function jl(){let e=B.useContext(Al);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ml(e){let t=(0,U.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0||c,u=Cl(),[d,f]=B.useState(!1),[p,m]=B.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${wl}=${t}; path=/; max-age=${Tl}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>{u?f(Pl):_(Nl)},t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===kl&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},x=[y],t[14]=y,t[15]=b,t[16]=x),B.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":El,"--sidebar-width-icon":Ol,...s},t[24]=s,t[25]=T);let E=T,D;t[26]===r?D=t[27]:(D=P(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[26]=r,t[27]=D);let O;t[28]!==n||t[29]!==a||t[30]!==D||t[31]!==E?(O=(0,V.jsx)(`div`,{className:D,"data-slot":`sidebar-wrapper`,style:E,...a,children:n}),t[28]=n,t[29]=a,t[30]=D,t[31]=E,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,V.jsx)(Al.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function Nl(e){return!e}function Pl(e){return!e}function Fl(e){let t=(0,U.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=jl();if(u===`none`){let e;t[7]===r?e=t[8]:(e=P(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,V.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Dl},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsxs)(Uc,{className:`sr-only`,children:[(0,V.jsx)(Wc,{children:`Sidebar`}),(0,V.jsx)(Gc,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,V.jsxs)(Hc,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,V.jsx)(zc,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=P(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,V.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=P(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,V.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,V.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,V.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function Il(e){let t=(0,U.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=jl(),o;t[4]===n?o=t[5]:(o=P(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Ks,{}),l=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,V.jsxs)(mt,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function Ll(e){let t=(0,U.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=jl(),a;t[3]===n?a=t[4]:(a=P(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,V.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,type:`button`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Rl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(dn,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto`,`group-data-[collapsible=icon]:[scrollbar-width:none] group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ul(e){let t=(0,U.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Ue,r=`div`,i=Le({className:P(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Wl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function W(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Gl=Ve(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function G(e){let t=(0,U.c)(18),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r!==void 0&&r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=jl(),m=Le({className:P(Gl({variant:u,size:d}),s)},c),h;t[0]!==n||t[1]!==o?(h=o?(0,V.jsx)(vl,{}):n,t[0]=n,t[1]=o,t[2]=h):h=t[2];let g;t[3]!==l||t[4]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[3]=l,t[4]=d,t[5]=g):g=t[5];let _;t[6]!==m||t[7]!==h||t[8]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[6]=m,t[7]=h,t[8]=g,t[9]=_):_=t[9];let v=Ue(_);if(!o)return v;let y;t[10]===o?y=t[11]:(y=typeof o==`string`?{children:o}:o,t[10]=o,t[11]=y);let b=y,x=p!==`collapsed`||f,S;t[12]!==x||t[13]!==b?(S=(0,V.jsx)(yl,{align:`center`,hidden:x,side:`right`,...b}),t[12]=x,t[13]=b,t[14]=S):S=t[14];let C;return t[15]!==v||t[16]!==S?(C=(0,V.jsxs)(_l,{children:[v,S]}),t[15]=v,t[16]=S,t[17]=C):C=t[17],C}var Kl=new Set([`InvalidClientTokenId`,`AuthFailure`,`MissingAuthenticationToken`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function ql(e){return typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`}function Jl(e){return ql(e)&&Kl.has(e.name)}var Yl=!1;function Xl(e,t){!Yl&&Jl(e)&&(Yl=!0,Ge(),xn(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Zl(){let e=new Zr({queryCache:new Xr({onError:t=>{Xl(t,e)}}),mutationCache:new Jr({onError:t=>{Xl(t,e)}}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Ql(){let e=(0,U.c)(8),{theme:t,setTheme:n}=is(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(Qs,{className:`size-[1.2rem] scale-100 rotate-0 transition-transform dark:scale-0 dark:-rotate-90`}),o=(0,V.jsx)(Hs,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-transform dark:scale-100 dark:rotate-0`}),s=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,V.jsxs)(mt,{className:`rounded-full transition-none hover:bg-transparent dark:hover:bg-transparent`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function $l(){let e=(0,U.c)(7),{isAdmin:t,license:n}=Sn(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=P(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,V.jsx)(Il,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:P(dt({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(Ql,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,V.jsxs)(`header`,{className:i,children:[a,(0,V.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function eu(){let e=(0,U.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,V.jsx)(A,{to:`/`,children:(0,V.jsx)(mt,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function tu(){let e=(0,U.c)(259),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:nu},e[0]=t):t=e[0];let n=Wo(t),r=je(),i=a(),{isAdmin:o}=Sn(),s;e[1]!==r||e[2]!==i?(s=function(){Ge(),xn(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=s):s=e[3];let c=s,l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsxs)(Rl,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,V.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,V.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=l):l=e[4];let u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(Ul,{children:`General`}),e[5]=u):u=e[5];let d=n===`/`,f,p;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsx)(ws,{className:`size-4`}),p=(0,V.jsx)(`span`,{children:`Dashboard`}),e[6]=f,e[7]=p):(f=e[6],p=e[7]);let m;e[8]===d?m=e[9]:(m=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/`,children:(0,V.jsxs)(G,{isActive:d,tooltip:`Dashboard`,children:[f,p]})})}),e[8]=d,e[9]=m);let h;e[10]!==o||e[11]!==n?(h=o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/nodes`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,V.jsx)($e,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=o,e[11]=n,e[12]=h):h=e[12];let g;e[13]!==m||e[14]!==h?(g=(0,V.jsxs)(Hl,{children:[u,(0,V.jsxs)(Wl,{children:[m,h]})]}),e[13]=m,e[14]=h,e[15]=g):g=e[15];let _;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,V.jsx)(Ul,{children:`EC2`}),e[16]=_):_=e[16];let v;e[17]===n?v=e[18]:(v=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=v);let y,b;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,V.jsx)($e,{className:`size-4`}),b=(0,V.jsx)(`span`,{children:`Instances`}),e[19]=y,e[20]=b):(y=e[19],b=e[20]);let x;e[21]===v?x=e[22]:(x=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-instances`,children:(0,V.jsxs)(G,{isActive:v,tooltip:`Instances`,children:[y,b]})})}),e[21]=v,e[22]=x);let S;e[23]===n?S=e[24]:(S=n.startsWith(`/ec2/describe-launch-templates`)||n.startsWith(`/ec2/create-launch-template`),e[23]=n,e[24]=S);let C,w;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,V.jsx)(Ss,{className:`size-4`}),w=(0,V.jsx)(`span`,{children:`Launch Templates`}),e[25]=C,e[26]=w):(C=e[25],w=e[26]);let T;e[27]===S?T=e[28]:(T=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-launch-templates`,children:(0,V.jsxs)(G,{isActive:S,tooltip:`Launch Templates`,children:[C,w]})})}),e[27]=S,e[28]=T);let E;e[29]===n?E=e[30]:(E=n.startsWith(`/ec2/describe-images`),e[29]=n,e[30]=E);let D,O;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,V.jsx)(nt,{className:`size-4`}),O=(0,V.jsx)(`span`,{children:`Images`}),e[31]=D,e[32]=O):(D=e[31],O=e[32]);let k;e[33]===E?k=e[34]:(k=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-images`,children:(0,V.jsxs)(G,{isActive:E,tooltip:`Images`,children:[D,O]})})}),e[33]=E,e[34]=k);let ee;e[35]===n?ee=e[36]:(ee=n.startsWith(`/ec2/describe-key-pairs`),e[35]=n,e[36]=ee);let te,ne;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,V.jsx)(Ye,{className:`size-4`}),ne=(0,V.jsx)(`span`,{children:`Key Pairs`}),e[37]=te,e[38]=ne):(te=e[37],ne=e[38]);let re;e[39]===ee?re=e[40]:(re=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-key-pairs`,children:(0,V.jsxs)(G,{isActive:ee,tooltip:`Key Pairs`,children:[te,ne]})})}),e[39]=ee,e[40]=re);let ie;e[41]===n?ie=e[42]:(ie=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[41]=n,e[42]=ie);let ae,oe;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,V.jsx)(Rs,{className:`size-4`}),oe=(0,V.jsx)(`span`,{children:`Elastic IPs`}),e[43]=ae,e[44]=oe):(ae=e[43],oe=e[44]);let se;e[45]===ie?se=e[46]:(se=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-addresses`,children:(0,V.jsxs)(G,{isActive:ie,tooltip:`Elastic IPs`,children:[ae,oe]})})}),e[45]=ie,e[46]=se);let ce;e[47]===n?ce=e[48]:(ce=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[47]=n,e[48]=ce);let le,ue;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,V.jsx)(Qe,{className:`size-4`}),ue=(0,V.jsx)(`span`,{children:`Volumes`}),e[49]=le,e[50]=ue):(le=e[49],ue=e[50]);let de;e[51]===ce?de=e[52]:(de=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-volumes`,children:(0,V.jsxs)(G,{isActive:ce,tooltip:`Volumes`,children:[le,ue]})})}),e[51]=ce,e[52]=de);let fe;e[53]===n?fe=e[54]:(fe=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[53]=n,e[54]=fe);let pe,me;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,V.jsx)(Je,{className:`size-4`}),me=(0,V.jsx)(`span`,{children:`Snapshots`}),e[55]=pe,e[56]=me):(pe=e[55],me=e[56]);let he;e[57]===fe?he=e[58]:(he=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-snapshots`,children:(0,V.jsxs)(G,{isActive:fe,tooltip:`Snapshots`,children:[pe,me]})})}),e[57]=fe,e[58]=he);let ge;e[59]===n?ge=e[60]:(ge=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[59]=n,e[60]=ge);let _e,j;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,V.jsx)(As,{className:`size-4`}),j=(0,V.jsx)(`span`,{children:`Placement Groups`}),e[61]=_e,e[62]=j):(_e=e[61],j=e[62]);let M;e[63]===ge?M=e[64]:(M=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-placement-groups`,children:(0,V.jsxs)(G,{isActive:ge,tooltip:`Placement Groups`,children:[_e,j]})})}),e[63]=ge,e[64]=M);let ve;e[65]===n?ve=e[66]:(ve=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[65]=n,e[66]=ve);let ye,be;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,V.jsx)(tt,{className:`size-4`}),be=(0,V.jsx)(`span`,{children:`Load Balancers`}),e[67]=ye,e[68]=be):(ye=e[67],be=e[68]);let xe;e[69]===ve?xe=e[70]:(xe=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-load-balancers`,children:(0,V.jsxs)(G,{isActive:ve,tooltip:`Load Balancers`,children:[ye,be]})})}),e[69]=ve,e[70]=xe);let Se;e[71]===n?Se=e[72]:(Se=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[71]=n,e[72]=Se);let N,Ce;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,V.jsx)(vs,{className:`size-4`}),Ce=(0,V.jsx)(`span`,{children:`Target Groups`}),e[73]=N,e[74]=Ce):(N=e[73],Ce=e[74]);let we;e[75]===Se?we=e[76]:(we=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-target-groups`,children:(0,V.jsxs)(G,{isActive:Se,tooltip:`Target Groups`,children:[N,Ce]})})}),e[75]=Se,e[76]=we);let Te;e[77]!==x||e[78]!==T||e[79]!==k||e[80]!==re||e[81]!==se||e[82]!==de||e[83]!==he||e[84]!==M||e[85]!==xe||e[86]!==we?(Te=(0,V.jsxs)(Hl,{children:[_,(0,V.jsxs)(Wl,{children:[x,T,k,re,se,de,he,M,xe,we]})]}),e[77]=x,e[78]=T,e[79]=k,e[80]=re,e[81]=se,e[82]=de,e[83]=he,e[84]=M,e[85]=xe,e[86]=we,e[87]=Te):Te=e[87];let Ee;e[88]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,V.jsx)(Ul,{children:`Networking`}),e[88]=Ee):Ee=e[88];let De;e[89]===n?De=e[90]:(De=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[89]=n,e[90]=De);let Oe,ke;e[91]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,V.jsx)(it,{className:`size-4`}),ke=(0,V.jsx)(`span`,{children:`VPCs`}),e[91]=Oe,e[92]=ke):(Oe=e[91],ke=e[92]);let Ae;e[93]===De?Ae=e[94]:(Ae=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-vpcs`,children:(0,V.jsxs)(G,{isActive:De,tooltip:`VPCs`,children:[Oe,ke]})})}),e[93]=De,e[94]=Ae);let Me;e[95]===n?Me=e[96]:(Me=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[95]=n,e[96]=Me);let Ne,Pe;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,V.jsx)(Ms,{className:`size-4`}),Pe=(0,V.jsx)(`span`,{children:`Subnets`}),e[97]=Ne,e[98]=Pe):(Ne=e[97],Pe=e[98]);let Fe;e[99]===Me?Fe=e[100]:(Fe=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-subnets`,children:(0,V.jsxs)(G,{isActive:Me,tooltip:`Subnets`,children:[Ne,Pe]})})}),e[99]=Me,e[100]=Fe);let Ie;e[101]===n?Ie=e[102]:(Ie=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[101]=n,e[102]=Ie);let Le,Re;e[103]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,V.jsx)(Xs,{className:`size-4`}),Re=(0,V.jsx)(`span`,{children:`Security Groups`}),e[103]=Le,e[104]=Re):(Le=e[103],Re=e[104]);let ze;e[105]===Ie?ze=e[106]:(ze=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-security-groups`,children:(0,V.jsxs)(G,{isActive:Ie,tooltip:`Security Groups`,children:[Le,Re]})})}),e[105]=Ie,e[106]=ze);let Be;e[107]===n?Be=e[108]:(Be=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[107]=n,e[108]=Be);let Ve,He;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,V.jsx)(Js,{className:`size-4`}),He=(0,V.jsx)(`span`,{children:`Route Tables`}),e[109]=Ve,e[110]=He):(Ve=e[109],He=e[110]);let Ue;e[111]===Be?Ue=e[112]:(Ue=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-route-tables`,children:(0,V.jsxs)(G,{isActive:Be,tooltip:`Route Tables`,children:[Ve,He]})})}),e[111]=Be,e[112]=Ue);let P;e[113]===n?P=e[114]:(P=n.startsWith(`/ec2/describe-internet-gateways`),e[113]=n,e[114]=P);let Ke,qe;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,V.jsx)(et,{className:`size-4`}),qe=(0,V.jsx)(`span`,{children:`Internet Gateways`}),e[115]=Ke,e[116]=qe):(Ke=e[115],qe=e[116]);let F;e[117]===P?F=e[118]:(F=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-internet-gateways`,children:(0,V.jsxs)(G,{isActive:P,tooltip:`Internet Gateways`,children:[Ke,qe]})})}),e[117]=P,e[118]=F);let I;e[119]===n?I=e[120]:(I=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[119]=n,e[120]=I);let rt,ot;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(rt=(0,V.jsx)(Xe,{className:`size-4`}),ot=(0,V.jsx)(`span`,{children:`NAT Gateways`}),e[121]=rt,e[122]=ot):(rt=e[121],ot=e[122]);let st;e[123]===I?st=e[124]:(st=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-nat-gateways`,children:(0,V.jsxs)(G,{isActive:I,tooltip:`NAT Gateways`,children:[rt,ot]})})}),e[123]=I,e[124]=st);let ct;e[125]!==Ae||e[126]!==Fe||e[127]!==ze||e[128]!==Ue||e[129]!==F||e[130]!==st?(ct=(0,V.jsxs)(Hl,{children:[Ee,(0,V.jsxs)(Wl,{children:[Ae,Fe,ze,Ue,F,st]})]}),e[125]=Ae,e[126]=Fe,e[127]=ze,e[128]=Ue,e[129]=F,e[130]=st,e[131]=ct):ct=e[131];let lt;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,V.jsx)(Ul,{children:`Containers`}),e[132]=lt):lt=e[132];let ut;e[133]===n?ut=e[134]:(ut=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[133]=n,e[134]=ut);let dt,ft;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,V.jsx)(us,{className:`size-4`}),ft=(0,V.jsx)(`span`,{children:`EKS`}),e[135]=dt,e[136]=ft):(dt=e[135],ft=e[136]);let pt;e[137]===ut?pt=e[138]:(pt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/eks/list-clusters`,children:(0,V.jsxs)(G,{isActive:ut,tooltip:`EKS clusters`,children:[dt,ft]})})}),e[137]=ut,e[138]=pt);let mt;e[139]===n?mt=e[140]:(mt=n.startsWith(`/ecr/list-repositories`),e[139]=n,e[140]=mt);let ht,gt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,V.jsx)(Ws,{className:`size-4`}),gt=(0,V.jsx)(`span`,{children:`ECR`}),e[141]=ht,e[142]=gt):(ht=e[141],gt=e[142]);let _t;e[143]===mt?_t=e[144]:(_t=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ecr/list-repositories`,children:(0,V.jsxs)(G,{isActive:mt,tooltip:`ECR repositories`,children:[ht,gt]})})}),e[143]=mt,e[144]=_t);let vt;e[145]===n?vt=e[146]:(vt=n.startsWith(`/ecs/`),e[145]=n,e[146]=vt);let yt,bt;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(yt=(0,V.jsx)(gs,{className:`size-4`}),bt=(0,V.jsx)(`span`,{children:`ECS`}),e[147]=yt,e[148]=bt):(yt=e[147],bt=e[148]);let xt;e[149]===vt?xt=e[150]:(xt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ecs/list-clusters`,children:(0,V.jsxs)(G,{isActive:vt,tooltip:`ECS clusters`,children:[yt,bt]})})}),e[149]=vt,e[150]=xt);let St;e[151]!==pt||e[152]!==_t||e[153]!==xt?(St=(0,V.jsxs)(Hl,{children:[lt,(0,V.jsxs)(Wl,{children:[pt,_t,xt]})]}),e[151]=pt,e[152]=_t,e[153]=xt,e[154]=St):St=e[154];let Ct;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,V.jsx)(Ul,{children:`RDS`}),e[155]=Ct):Ct=e[155];let wt;e[156]===n?wt=e[157]:(wt=n.startsWith(`/rds/describe-db-instances`)||n.startsWith(`/rds/create-db-instance`),e[156]=n,e[157]=wt);let Tt,Et;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,V.jsx)(bs,{className:`size-4`}),Et=(0,V.jsx)(`span`,{children:`Databases`}),e[158]=Tt,e[159]=Et):(Tt=e[158],Et=e[159]);let Dt;e[160]===wt?Dt=e[161]:(Dt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-instances`,children:(0,V.jsxs)(G,{isActive:wt,tooltip:`Databases`,children:[Tt,Et]})})}),e[160]=wt,e[161]=Dt);let Ot;e[162]===n?Ot=e[163]:(Ot=n.startsWith(`/rds/describe-db-snapshots`)||n.startsWith(`/rds/restore-db-instance-from-db-snapshot`),e[162]=n,e[163]=Ot);let kt,At;e[164]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,V.jsx)(Je,{className:`size-4`}),At=(0,V.jsx)(`span`,{children:`Snapshots`}),e[164]=kt,e[165]=At):(kt=e[164],At=e[165]);let jt;e[166]===Ot?jt=e[167]:(jt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-snapshots`,children:(0,V.jsxs)(G,{isActive:Ot,tooltip:`DB Snapshots`,children:[kt,At]})})}),e[166]=Ot,e[167]=jt);let Mt;e[168]===n?Mt=e[169]:(Mt=n.startsWith(`/rds/describe-db-subnet-groups`)||n.startsWith(`/rds/create-db-subnet-group`),e[168]=n,e[169]=Mt);let Nt,Pt;e[170]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,V.jsx)(Ms,{className:`size-4`}),Pt=(0,V.jsx)(`span`,{children:`Subnet Groups`}),e[170]=Nt,e[171]=Pt):(Nt=e[170],Pt=e[171]);let Ft;e[172]===Mt?Ft=e[173]:(Ft=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-subnet-groups`,children:(0,V.jsxs)(G,{isActive:Mt,tooltip:`DB Subnet Groups`,children:[Nt,Pt]})})}),e[172]=Mt,e[173]=Ft);let It;e[174]===n?It=e[175]:(It=n.startsWith(`/rds/describe-db-parameter-groups`)||n.startsWith(`/rds/create-db-parameter-group`),e[174]=n,e[175]=It);let Lt,Rt;e[176]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,V.jsx)(at,{className:`size-4`}),Rt=(0,V.jsx)(`span`,{children:`Parameter Groups`}),e[176]=Lt,e[177]=Rt):(Lt=e[176],Rt=e[177]);let zt;e[178]===It?zt=e[179]:(zt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-parameter-groups`,children:(0,V.jsxs)(G,{isActive:It,tooltip:`DB Parameter Groups`,children:[Lt,Rt]})})}),e[178]=It,e[179]=zt);let Bt;e[180]!==jt||e[181]!==Ft||e[182]!==zt||e[183]!==Dt?(Bt=(0,V.jsxs)(Hl,{children:[Ct,(0,V.jsxs)(Wl,{children:[Dt,jt,Ft,zt]})]}),e[180]=jt,e[181]=Ft,e[182]=zt,e[183]=Dt,e[184]=Bt):Bt=e[184];let Vt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=(0,V.jsx)(Ul,{children:`IAM`}),e[185]=Vt):Vt=e[185];let Ht;e[186]===n?Ht=e[187]:(Ht=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[186]=n,e[187]=Ht);let Ut,Wt;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Ut=(0,V.jsx)(ic,{className:`size-4`}),Wt=(0,V.jsx)(`span`,{children:`Users`}),e[188]=Ut,e[189]=Wt):(Ut=e[188],Wt=e[189]);let Gt;e[190]===Ht?Gt=e[191]:(Gt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-users`,children:(0,V.jsxs)(G,{isActive:Ht,tooltip:`Users`,children:[Ut,Wt]})})}),e[190]=Ht,e[191]=Gt);let Kt;e[192]===n?Kt=e[193]:(Kt=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[192]=n,e[193]=Kt);let L,qt;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,V.jsx)(nc,{className:`size-4`}),qt=(0,V.jsx)(`span`,{children:`Groups`}),e[194]=L,e[195]=qt):(L=e[194],qt=e[195]);let Jt;e[196]===Kt?Jt=e[197]:(Jt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-groups`,children:(0,V.jsxs)(G,{isActive:Kt,tooltip:`Groups`,children:[L,qt]})})}),e[196]=Kt,e[197]=Jt);let Yt;e[198]===n?Yt=e[199]:(Yt=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[198]=n,e[199]=Yt);let Xt,Zt;e[200]===Symbol.for(`react.memo_cache_sentinel`)?(Xt=(0,V.jsx)(Ze,{className:`size-4`}),Zt=(0,V.jsx)(`span`,{children:`Policies`}),e[200]=Xt,e[201]=Zt):(Xt=e[200],Zt=e[201]);let Qt;e[202]===Yt?Qt=e[203]:(Qt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-policies`,children:(0,V.jsxs)(G,{isActive:Yt,tooltip:`Policies`,children:[Xt,Zt]})})}),e[202]=Yt,e[203]=Qt);let $t;e[204]===n?$t=e[205]:($t=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[204]=n,e[205]=$t);let en,tn;e[206]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,V.jsx)(ec,{className:`size-4`}),tn=(0,V.jsx)(`span`,{children:`Roles`}),e[206]=en,e[207]=tn):(en=e[206],tn=e[207]);let nn;e[208]===$t?nn=e[209]:(nn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-roles`,children:(0,V.jsxs)(G,{isActive:$t,tooltip:`Roles`,children:[en,tn]})})}),e[208]=$t,e[209]=nn);let rn;e[210]===n?rn=e[211]:(rn=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[210]=n,e[211]=rn);let an,on;e[212]===Symbol.for(`react.memo_cache_sentinel`)?(an=(0,V.jsx)(Es,{className:`size-4`}),on=(0,V.jsx)(`span`,{children:`Instance Profiles`}),e[212]=an,e[213]=on):(an=e[212],on=e[213]);let sn;e[214]===rn?sn=e[215]:(sn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-instance-profiles`,children:(0,V.jsxs)(G,{isActive:rn,tooltip:`Instance Profiles`,children:[an,on]})})}),e[214]=rn,e[215]=sn);let cn;e[216]!==Gt||e[217]!==Jt||e[218]!==Qt||e[219]!==nn||e[220]!==sn?(cn=(0,V.jsxs)(Hl,{children:[Vt,(0,V.jsxs)(Wl,{children:[Gt,Jt,Qt,nn,sn]})]}),e[216]=Gt,e[217]=Jt,e[218]=Qt,e[219]=nn,e[220]=sn,e[221]=cn):cn=e[221];let ln;e[222]===Symbol.for(`react.memo_cache_sentinel`)?(ln=(0,V.jsx)(Ul,{children:`S3`}),e[222]=ln):ln=e[222];let un;e[223]===n?un=e[224]:(un=n.startsWith(`/s3/ls`),e[223]=n,e[224]=un);let dn,fn;e[225]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,V.jsx)($e,{className:`size-4`}),fn=(0,V.jsx)(`span`,{children:`Buckets`}),e[225]=dn,e[226]=fn):(dn=e[225],fn=e[226]);let pn;e[227]===un?pn=e[228]:(pn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/s3/ls`,children:(0,V.jsxs)(G,{isActive:un,tooltip:`Buckets`,children:[dn,fn]})})}),e[227]=un,e[228]=pn);let mn;e[229]!==o||e[230]!==n?(mn=o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/s3/service-metrics`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,V.jsx)(os,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Service Metrics`})]})})}),e[229]=o,e[230]=n,e[231]=mn):mn=e[231];let hn;e[232]!==pn||e[233]!==mn?(hn=(0,V.jsxs)(Hl,{children:[ln,(0,V.jsxs)(Wl,{children:[pn,mn]})]}),e[232]=pn,e[233]=mn,e[234]=hn):hn=e[234];let gn;e[235]!==o||e[236]!==n?(gn=We()&&(0,V.jsxs)(Hl,{children:[(0,V.jsx)(Ul,{children:`Ochre`}),(0,V.jsxs)(Wl,{children:[(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-knowledge-bases`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-knowledge-bases`),tooltip:`Knowledge Bases`,children:[(0,V.jsx)(fs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Knowledge Bases`})]})})}),(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-guardrails`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-guardrails`),tooltip:`Guardrails`,children:[(0,V.jsx)(Ze,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Guardrails`})]})})}),(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/playground`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/playground`),tooltip:`Playground`,children:[(0,V.jsx)(Bs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Playground`})]})})}),o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-model-catalog`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-model-catalog`),tooltip:`Model Catalog`,children:[(0,V.jsx)(Ps,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Catalog`})]})})}),o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-model-access`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-model-access`),tooltip:`Model Access`,children:[(0,V.jsx)(Os,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Access`})]})})})]})]}),e[235]=o,e[236]=n,e[237]=gn):gn=e[237];let _n;e[238]===o?_n=e[239]:(_n=o&&(0,V.jsxs)(Hl,{children:[(0,V.jsx)(Ul,{children:`Documentation`}),(0,V.jsx)(Wl,{children:(0,V.jsx)(W,{children:(0,V.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsxs)(G,{tooltip:`Documentation`,children:[(0,V.jsx)(cs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Docs`})]})})})})]}),e[238]=o,e[239]=_n);let vn;e[240]!==Bt||e[241]!==cn||e[242]!==hn||e[243]!==gn||e[244]!==_n||e[245]!==Te||e[246]!==ct||e[247]!==g||e[248]!==St?(vn=(0,V.jsxs)(Vl,{children:[g,Te,ct,St,Bt,cn,hn,gn,_n]}),e[240]=Bt,e[241]=cn,e[242]=hn,e[243]=gn,e[244]=_n,e[245]=Te,e[246]=ct,e[247]=g,e[248]=St,e[249]=vn):vn=e[249];let yn;e[250]===Symbol.for(`react.memo_cache_sentinel`)?(yn=(0,V.jsx)(Bl,{className:`mx-0 w-full`}),e[250]=yn):yn=e[250];let bn,Cn;e[251]===Symbol.for(`react.memo_cache_sentinel`)?(bn=(0,V.jsx)(Is,{className:`size-4`}),Cn=(0,V.jsx)(`span`,{children:`Sign out`}),e[251]=bn,e[252]=Cn):(bn=e[251],Cn=e[252]);let wn;e[253]===c?wn=e[254]:(wn=(0,V.jsxs)(zl,{children:[yn,(0,V.jsx)(Wl,{children:(0,V.jsx)(W,{children:(0,V.jsxs)(G,{onClick:c,tooltip:`Sign out`,children:[bn,Cn]})})})]}),e[253]=c,e[254]=wn);let Tn;e[255]===Symbol.for(`react.memo_cache_sentinel`)?(Tn=(0,V.jsx)(Ll,{}),e[255]=Tn):Tn=e[255];let En;return e[256]!==vn||e[257]!==wn?(En=(0,V.jsxs)(Fl,{collapsible:`icon`,children:[l,vn,wn,Tn]}),e[256]=vn,e[257]=wn,e[258]=En):En=e[258],En}function nu(e){return e.pathname}function ru(e){let t=(0,U.c)(18),{error:n,reset:r}=e,i=De(),o=a(),s;t[0]!==o||t[1]!==r||t[2]!==i?(s=function(){o.invalidateQueries(),r(),i.invalidate()},t[0]=o,t[1]=r,t[2]=i,t[3]=s):s=t[3];let c=s,l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(tu,{}),t[4]=l):l=t[4];let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)($l,{}),t[5]=u):u=t[5];let d,f;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`div`,{className:`flex justify-center`,children:(0,V.jsx)(ms,{className:`size-12 text-destructive`})}),f=(0,V.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=d,t[7]=f):(d=t[6],f=t[7]);let p=(n instanceof Error?n.message:String(n))||`An unexpected error occurred`,m;t[8]===p?m=t[9]:(m=(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:p}),t[8]=p,t[9]=m);let h;t[10]===c?h=t[11]:(h=(0,V.jsx)(mt,{onClick:c,variant:`default`,children:`Try Again`}),t[10]=c,t[11]=h);let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(A,{to:`/`,children:(0,V.jsx)(mt,{variant:`outline`,children:`Go Home`})}),t[12]=g):g=t[12];let _;t[13]===h?_=t[14]:(_=(0,V.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[h,g]}),t[13]=h,t[14]=_);let v;return t[15]!==_||t[16]!==m?(v=(0,V.jsxs)(V.Fragment,{children:[l,(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[u,(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,V.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[d,f,m,_]})})]})]}),t[15]=_,t[16]=m,t[17]=v):v=t[17],v}var K=E()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Xo,{}),(0,V.jsx)(tu,{}),(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,V.jsx)($l,{}),(0,V.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,V.jsx)(be,{})})]})]}),errorComponent:ru,notFoundComponent:eu}),iu=w(`/_auth`)({beforeLoad:()=>{if(!qe())throw we({to:`/login`})},component:D(()=>F(()=>import(`./route-ri79I-mW.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),au=w(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...Ln,staleTime:`static`}),e.queryClient.query({...On,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...Bn,staleTime:`static`}),e.queryClient.query({...sr,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...Nn,staleTime:`static`}),e.queryClient.query({...Rn,staleTime:`static`}),e.queryClient.query({...Fn,staleTime:`static`})])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:D(()=>F(()=>import(`./_auth-CQN6uKek.js`),__vite__mapDeps([6,1,7,8,9,10,11,4,5,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])),`component`)}),ou=w(`/_auth/bedrock`)({beforeLoad:()=>{We()||xe({throw:!0})},component:D(()=>F(()=>import(`./route-CAwLPdN1.js`),__vite__mapDeps([40,1,2,3,4,5])),`component`)}),su=w(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:D(()=>F(()=>import(`./nodes-DuOlBrgk.js`),__vite__mapDeps([41,1,7,8,9,10,11,4,5,42,12,13,15,14,16,19,20,21,27,28,29,30,31,32,23])),`component`)}),cu=w(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./service-metrics-BVlT0eqC.js`),__vite__mapDeps([43,1,7,8,9,10,42,19,12,13,20,21,27,28,29,30,31,32,23])),`component`)}),lu=w(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./allocate-address-bOPcFdXH.js`),__vite__mapDeps([44,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),uu=w(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-internet-gateway-DXtpKz1N.js`),__vite__mapDeps([64,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),du=w(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-key-pair-C4fE7ZNR.js`),__vite__mapDeps([65,1,45,4,5,46,11,14,48,66,36,29,12,13,34,37,15,52,38,67,68,53,69,70,47,49,50,71,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,33,35,63])),`component`)}),fu=w(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./import-key-pair-1pwcgf7b.js`),__vite__mapDeps([72,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,73,63])),`component`)}),pu=w(`/_auth/ec2/(launch-templates)/create-launch-template`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...zn,staleTime:`static`}),e.queryClient.query({...Pn,staleTime:`static`}),e.queryClient.query({...Bn,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Launch Template | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-launch-template-eS85bS-q.js`),__vite__mapDeps([74,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63,75,76,8,10,66,36,38,67,68,69,73,77])),`component`)}),mu=w(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...Xn,staleTime:`static`}),e.queryClient.query({...wn,staleTime:`static`}),e.queryClient.query({...Yn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-load-balancer--N6lPrkX.js`),__vite__mapDeps([78,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,79,23,24,25,80,55,56,59,61,62,73,33,35,22,81,82,83,27,58,60,84,85,86,87,77,88])),`component`)}),hu=w(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Rn,staleTime:`static`})])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-nat-gateway-CSx3nd5L.js`),__vite__mapDeps([89,1,76,8,9,10,11,4,5,45,12,13,46,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),gu=w(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-placement-group-Cei835Yj.js`),__vite__mapDeps([90,1,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),_u=w(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-route-table-DUgY7kGf.js`),__vite__mapDeps([91,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),vu=w(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-security-group-6b38uylz.js`),__vite__mapDeps([92,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),yu=w(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...Vn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-subnet-D7wVMuBW.js`),__vite__mapDeps([93,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),bu=w(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-target-group-D5bQ4Fa3.js`),__vite__mapDeps([94,1,76,8,9,10,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,22,23,24,25,81,55,56,82,27,58,59,60,87,66,36,37,52,38,67,68,53,69,51,61,62,84,85,86,77,88])),`component`)}),xu=w(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.query({...Vn,staleTime:`static`})},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-volume-BoOOKqZV.js`),__vite__mapDeps([95,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),Su=w(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-vpc-M1EQVlaB.js`),__vite__mapDeps([96,1,45,4,5,46,11,14,15,16,66,36,29,12,13,34,37,48,52,38,67,68,53,69,47,49,50,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),Cu=w(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.query({...Kn,staleTime:`static`})},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:D(()=>F(()=>import(`./task-definitions-CSGupk2f.js`),__vite__mapDeps([97,1,76,8,9,10,11,4,5,34,29,12,13,98,23,24,25,99,55,56,21,27,59,100,33,35,36,37,38,101])),`component`)}),wu=w(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...tr,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:D(()=>F(()=>import(`./create-cluster-CGyNwlKq.js`),__vite__mapDeps([102,1,9,76,8,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,51,22,23,24,25,103,55,56,104,105,57,106,107,108,27,58,59,60,61,62,33,35,109,110,49,111,71,50,112])),`component`)}),Tu=w(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-group-B3B-V6J_.js`),__vite__mapDeps([113,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Eu=w(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-instance-profile-Do0eBh4w.js`),__vite__mapDeps([115,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Du=w(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-policy-CL2P-ufC.js`),__vite__mapDeps([116,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,117,105,73,114])),`component`)}),Ou=w(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-role-CAJVw8Kr.js`),__vite__mapDeps([118,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,117,105,73,114])),`component`)}),ku=w(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-user-BE9h67_n.js`),__vite__mapDeps([119,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Au=w(`/_auth/rds/(db-instances)/create-db-instance`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...ar,staleTime:`static`}),e.queryClient.query({...ir,staleTime:`static`}),e.queryClient.query({...rr,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Database | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-instance-CFzM44Sn.js`),__vite__mapDeps([120,1,9,7,8,10,76,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,121,122,55,56,123,27,58,59,60,61,62,84,85,86,109,110,111,71,124,125])),`component`)}),ju=w(`/_auth/rds/(parameter-groups)/create-db-parameter-group`)({loader:async({context:e})=>{await e.queryClient.query({...ar,staleTime:`static`})},head:()=>({meta:[{title:`Create Parameter Group | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-parameter-group-CUcSdIga.js`),__vite__mapDeps([126,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,121,24,25,122,55,56,123,23,27,58,59,60,61,62,84,85,86])),`component`)}),Mu=w(`/_auth/rds/(subnet-groups)/create-db-subnet-group`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`})])},head:()=>({meta:[{title:`Create Subnet Group | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-subnet-group-CuUW4IsJ.js`),__vite__mapDeps([127,1,76,8,9,10,45,4,5,12,13,46,11,14,47,48,15,49,34,29,50,51,37,52,53,22,23,24,25,121,122,55,56,27,58,59,60,61,62,84,85,86])),`component`)}),Nu=w(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./create-bucket-eeiuIrsW.js`),__vite__mapDeps([128,1,45,4,5,12,13,46,11,14,47,48,15,49,34,29,50,51,37,52,53,129,9,55,56,24,25,27,58,59,60,61,62])),`component`)}),Pu=w(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.query({...sr,staleTime:`static`})},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./ls-CWzC4f47.js`),__vite__mapDeps([130,1,76,8,9,10,11,4,5,12,13,34,29,26,23,24,25,27,131])),`component`)}),Fu=w(`/_auth/s3/ls/$bucket`)({component:D(()=>F(()=>import(`./route-MJhrpG5n.js`),__vite__mapDeps([132,1,2,3,4,5])),`component`)}),Iu=w(`/_auth/bedrock/(catalog)/list-model-catalog/`)({head:()=>({meta:[{title:`Model Catalog | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-model-catalog-CeG1beQW.js`),__vite__mapDeps([133,1,7,8,9,10,42,12,13,19,20,21,27,28,29,30,31,32,23])),`component`)}),Lu=w(`/_auth/bedrock/(guardrails)/list-guardrails/`)({loader:async({context:e})=>{await e.queryClient.query({...Tn,staleTime:`static`})},head:()=>({meta:[{title:`Guardrails | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-guardrails-Cq4kt2fN.js`),__vite__mapDeps([134,1,76,8,9,10,11,4,5,34,29,12,13,135,23,24,25,136,27,39,131])),`component`)}),Ru=w(`/_auth/bedrock/(guardrails)/list-guardrails/create`)({head:()=>({meta:[{title:`Create Guardrail | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./create-DTpWMMJH.js`),__vite__mapDeps([137,1,138,9,55,56,12,13,24,25,136,139,45,4,5,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,85,86,51,27,58,59,60,61,62,84,73])),`component`)}),zu=w(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/`)({loader:async({context:e})=>{await e.queryClient.query({...Dn,staleTime:`static`})},head:()=>({meta:[{title:`Knowledge Bases | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-knowledge-bases-BJaqqlKH.js`),__vite__mapDeps([140,1,76,8,9,10,11,4,5,34,29,12,13,141,23,24,25,142,27,39,131])),`component`)}),Bu=w(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/create`)({loader:async({context:e})=>{await e.queryClient.query({...En,staleTime:`static`})},head:()=>({meta:[{title:`Create Knowledge Base | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./create-BO1fFlSv.js`),__vite__mapDeps([143,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,51,135,23,24,25,136,144,55,56,142,27,58,59,60,61,62,73])),`component`)}),Vu=w(`/_auth/bedrock/(model-access)/list-model-access/`)({head:()=>({meta:[{title:`Model Access | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-model-access-_5zWqGCi.js`),__vite__mapDeps([145,1,9,55,56,7,8,10,42,66,36,29,12,13,34,37,14,48,15,52,38,5,67,68,53,69,51,19,20,21,27,28,30,31,32,23,61,62])),`component`)}),Hu=w(`/_auth/bedrock/(playground)/playground/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...En,staleTime:`static`}),e.queryClient.query({...Tn,staleTime:`static`})])},head:()=>({meta:[{title:`Playground | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./playground-Cush5Er_.js`),__vite__mapDeps([146,1,55,9,56,76,8,10,12,13,15,14,66,36,29,34,37,48,52,38,5,67,68,53,69,47,49,50,51,24,25,135,23,136,147,27,28,30,61,62,73])),`component`)}),Uu=w(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.query({...Rn,staleTime:`static`})},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-addresses-CX48-jv1.js`),__vite__mapDeps([148,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,131])),`component`)}),Wu=w(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.query({...zn,staleTime:`static`})},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-images-DU3F5FiN.js`),__vite__mapDeps([149,1,76,8,9,10,22,23,12,13,24,25,27,39,131,11,4,5,109])),`component`)}),Gu=w(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.query({...Ln,staleTime:`static`})},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-instances-2mfa0kO7.js`),__vite__mapDeps([150,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),Ku=w(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.query({...Fn,staleTime:`static`})},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-internet-gateways-BCKNPwC9.js`),__vite__mapDeps([151,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,131])),`component`)}),qu=w(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.query({...Bn,staleTime:`static`})},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-key-pairs-BFrqVQj0.js`),__vite__mapDeps([152,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,131])),`component`)}),Ju=w(`/_auth/ec2/(launch-templates)/describe-launch-templates/`)({loader:async({context:e})=>{await e.queryClient.query({...In,staleTime:`static`})},head:()=>({meta:[{title:`Launch Templates | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-launch-templates-CacWu1yX.js`),__vite__mapDeps([153,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,28,30,131])),`component`)}),Yu=w(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.query({...Jn,staleTime:`static`})},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-load-balancers-DAKWE795.js`),__vite__mapDeps([154,1,76,8,9,10,11,4,5,45,12,13,34,29,83,23,24,25,82,27,39])),`component`)}),Xu=w(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.query({...Nn,staleTime:`static`})},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-nat-gateways-DGO7NhS6.js`),__vite__mapDeps([155,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),Zu=w(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Un,staleTime:`static`})},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-placement-groups-Cn4M8Qw5.js`),__vite__mapDeps([156,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),Qu=w(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.query({...Mn,staleTime:`static`})},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-route-tables-B85w9Xcr.js`),__vite__mapDeps([157,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,28,30,131])),`component`)}),q=w(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Hn,staleTime:`static`})},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-security-groups-CorF76Fg.js`),__vite__mapDeps([158,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,131])),`component`)}),$u=w(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.query({...kn,staleTime:`static`})},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-snapshots-C4LyUqXx.js`),__vite__mapDeps([159,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),J=w(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.query({...jn,staleTime:`static`})},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-subnets-DgMQfiqj.js`),__vite__mapDeps([160,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),Y=w(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Xn,staleTime:`static`})},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-target-groups-BmI4rGfj.js`),__vite__mapDeps([161,1,7,8,9,10,76,11,4,5,45,34,29,12,13,83,23,24,25,82,27])),`component`)}),X=w(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.query({...On,staleTime:`static`})},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-volumes-COLmjwXx.js`),__vite__mapDeps([162,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),ed=w(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-vpcs-BnIpgEwn.js`),__vite__mapDeps([163,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),td=w(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.query({...Wn,staleTime:`static`})},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:D(()=>F(()=>import(`./list-repositories-CFHE_leH.js`),__vite__mapDeps([164,1,76,8,9,10,11,4,5,45,12,13,34,29,51,37,52,53,165,23,24,25,166,55,56,27,61,62,33,35,36,38])),`component`)}),nd=w(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...Gn,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:D(()=>F(()=>import(`./list-clusters-CYIpXZk9.js`),__vite__mapDeps([167,1,9,76,8,10,11,4,5,45,34,29,12,13,51,37,52,53,22,23,24,25,98,99,55,56,21,27,59,61,62,33,35,36,38,100,39,109,110,48,14,49,111,71,50,101])),`component`)}),rd=w(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.query({...qn,staleTime:`static`})},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:D(()=>F(()=>import(`./list-clusters-Blcu3VSI.js`),__vite__mapDeps([168,1,76,8,9,10,11,4,5,34,29,12,13,169,23,24,25,104,27,131])),`component`)}),id=w(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...$n,staleTime:`static`})},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-groups-D6hjD6YQ.js`),__vite__mapDeps([170,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),ad=w(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.query({...Qn,staleTime:`static`})},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-instance-profiles-INcvr5n3.js`),__vite__mapDeps([171,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),od=w(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.query({...er,staleTime:`static`})},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-policies-DPQJyoNC.js`),__vite__mapDeps([172,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),sd=w(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.query({...tr,staleTime:`static`})},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-roles-D20fg59j.js`),__vite__mapDeps([173,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),cd=w(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.query({...Zn,staleTime:`static`})},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-users-DRJSk6hA.js`),__vite__mapDeps([174,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),ld=w(`/_auth/rds/(db-instances)/describe-db-instances/`)({loader:async({context:e})=>{await e.queryClient.query({...or,staleTime:`static`})},head:()=>({meta:[{title:`Databases | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-instances-CLwlt50q.js`),__vite__mapDeps([175,1,76,8,9,10,11,4,5,45,34,29,12,13,121,24,25,122,55,56,123,23,27,59,39,176,51,37,52,53,61,62,33,35,36,38])),`component`)}),ud=w(`/_auth/rds/(parameter-groups)/describe-db-parameter-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...rr,staleTime:`static`})},head:()=>({meta:[{title:`Parameter Groups | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-parameter-groups-Xj7h_agu.js`),__vite__mapDeps([177,1,76,8,9,10,11,4,5,45,34,29,12,13,121,24,25,123,23,27,178,122,55,56,179,100,33,35,36,37,38])),`component`)}),dd=w(`/_auth/rds/(snapshots)/describe-db-snapshots/`)({loader:async({context:e})=>{await e.queryClient.query({...nr,staleTime:`static`})},head:()=>({meta:[{title:`Snapshots | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-snapshots-ByVAmk9k.js`),__vite__mapDeps([180,1,76,8,9,10,11,4,5,45,12,13,34,29,121,24,25,123,23,27,39,181,7,66,36,37,14,48,15,52,38,67,68,53,69,51,122,55,56,58,61,62,84,85,86,33,35,124,182,179,100])),`component`)}),fd=w(`/_auth/rds/(subnet-groups)/describe-db-subnet-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...ir,staleTime:`static`})},head:()=>({meta:[{title:`Subnet Groups | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-subnet-groups-B0xn02S1.js`),__vite__mapDeps([183,1,76,8,9,10,11,4,5,45,34,29,12,13,123,23,24,25,121,27,39,184,122,55,56,179,100,33,35,36,37,38])),`component`)}),Z=iu.update({id:`/_auth`,getParentRoute:()=>K}),pd=cr.update({id:`/login`,path:`/login`,getParentRoute:()=>K}),md=au.update({id:`/`,path:`/`,getParentRoute:()=>Z}),hd=ou.update({id:`/bedrock`,path:`/bedrock`,getParentRoute:()=>Z}),gd=su.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>Z}),_d=cu.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>Z}),vd=lu.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>Z}),yd=lr.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>Z}),bd=uu.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>Z}),xd=du.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>Z}),Sd=fu.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>Z}),Cd=pu.update({id:`/ec2/(launch-templates)/create-launch-template`,path:`/ec2/create-launch-template`,getParentRoute:()=>Z}),wd=mu.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>Z}),Td=hu.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>Z}),Ed=gu.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>Z}),Dd=_u.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>Z}),Od=vu.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>Z}),kd=ur.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>Z}),Ad=yu.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>Z}),jd=bu.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>Z}),Md=xu.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>Z}),Nd=Su.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>Z}),Pd=dr.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>Z}),Fd=fr.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>Z}),Id=pr.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>Z}),Ld=Cu.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>Z}),Rd=wu.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>Z}),zd=Tu.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>Z}),Bd=Eu.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>Z}),Vd=Du.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>Z}),Hd=Ou.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>Z}),Ud=ku.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>Z}),Wd=Au.update({id:`/rds/(db-instances)/create-db-instance`,path:`/rds/create-db-instance`,getParentRoute:()=>Z}),Gd=ju.update({id:`/rds/(parameter-groups)/create-db-parameter-group`,path:`/rds/create-db-parameter-group`,getParentRoute:()=>Z}),Kd=Mu.update({id:`/rds/(subnet-groups)/create-db-subnet-group`,path:`/rds/create-db-subnet-group`,getParentRoute:()=>Z}),qd=Nu.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>Z}),Jd=Pu.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>Z}),Yd=Fu.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>Z}),Xd=Iu.update({id:`/(catalog)/list-model-catalog/`,path:`/list-model-catalog/`,getParentRoute:()=>hd}),Zd=Lu.update({id:`/(guardrails)/list-guardrails/`,path:`/list-guardrails/`,getParentRoute:()=>hd}),Qd=Ru.update({id:`/(guardrails)/list-guardrails/create`,path:`/list-guardrails/create`,getParentRoute:()=>hd}),$d=zu.update({id:`/(knowledge-bases)/list-knowledge-bases/`,path:`/list-knowledge-bases/`,getParentRoute:()=>hd}),ef=mr.update({id:`/(knowledge-bases)/list-knowledge-bases/$knowledgeBaseId`,path:`/list-knowledge-bases/$knowledgeBaseId`,getParentRoute:()=>hd}),tf=Bu.update({id:`/(knowledge-bases)/list-knowledge-bases/create`,path:`/list-knowledge-bases/create`,getParentRoute:()=>hd}),nf=Vu.update({id:`/(model-access)/list-model-access/`,path:`/list-model-access/`,getParentRoute:()=>hd}),rf=Hu.update({id:`/(playground)/playground/`,path:`/playground/`,getParentRoute:()=>hd}),af=Uu.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>Z}),of=hr.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>Z}),sf=Wu.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>Z}),cf=gr.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>Z}),lf=Gu.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>Z}),uf=_r.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>Z}),df=Ku.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>Z}),ff=vr.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>Z}),Q=qu.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>Z}),pf=yr.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>Z}),mf=Ju.update({id:`/ec2/(launch-templates)/describe-launch-templates/`,path:`/ec2/describe-launch-templates/`,getParentRoute:()=>Z}),hf=br.update({id:`/ec2/(launch-templates)/describe-launch-templates/$id`,path:`/ec2/describe-launch-templates/$id`,getParentRoute:()=>Z}),gf=Yu.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>Z}),_f=xr.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>Z}),vf=Xu.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>Z}),yf=Sr.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>Z}),bf=Zu.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>Z}),xf=Cr.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>Z}),Sf=Qu.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>Z}),Cf=wr.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>Z}),wf=q.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>Z}),Tf=ct.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>Z}),Ef=$u.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>Z}),Df=rt.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>Z}),Of=J.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>Z}),kf=Tr.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>Z}),Af=Y.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>Z}),jf=Er.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>Z}),Mf=X.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>Z}),Nf=Dr.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>Z}),Pf=Or.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>Z}),Ff=ed.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>Z}),If=kr.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>Z}),Lf=td.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>Z}),Rf=Ar.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>Z}),zf=nd.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>Z}),Bf=jr.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>Z}),$=rd.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>Z}),Vf=ot.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>Z}),Hf=id.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>Z}),Uf=Mr.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>Z}),Wf=ad.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>Z}),Gf=Nr.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>Z}),Kf=od.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>Z}),qf=Pr.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>Z}),Jf=sd.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>Z}),Yf=Fr.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>Z}),Xf=cd.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>Z}),Zf=Ir.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>Z}),Qf=ld.update({id:`/rds/(db-instances)/describe-db-instances/`,path:`/rds/describe-db-instances/`,getParentRoute:()=>Z}),$f=Lr.update({id:`/rds/(db-instances)/describe-db-instances/$id`,path:`/rds/describe-db-instances/$id`,getParentRoute:()=>Z}),ep=ud.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/`,path:`/rds/describe-db-parameter-groups/`,getParentRoute:()=>Z}),tp=Rr.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/$name`,path:`/rds/describe-db-parameter-groups/$name`,getParentRoute:()=>Z}),np=dd.update({id:`/rds/(snapshots)/describe-db-snapshots/`,path:`/rds/describe-db-snapshots/`,getParentRoute:()=>Z}),rp=zr.update({id:`/rds/(snapshots)/describe-db-snapshots/$id`,path:`/rds/describe-db-snapshots/$id`,getParentRoute:()=>Z}),ip=Br.update({id:`/rds/(snapshots)/restore-db-instance-from-db-snapshot/$id`,path:`/rds/restore-db-instance-from-db-snapshot/$id`,getParentRoute:()=>Z}),ap=fd.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/`,path:`/rds/describe-db-subnet-groups/`,getParentRoute:()=>Z}),op=Vr.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/$name`,path:`/rds/describe-db-subnet-groups/$name`,getParentRoute:()=>Z}),sp=Hr.update({id:`/`,path:`/`,getParentRoute:()=>Yd}),cp=Ur.update({id:`/$`,path:`/$`,getParentRoute:()=>Yd}),lp=Wr.update({id:`/(guardrails)/list-guardrails/$guardrailId/`,path:`/list-guardrails/$guardrailId/`,getParentRoute:()=>hd}),up=Gr.update({id:`/(guardrails)/list-guardrails/$guardrailId/edit`,path:`/list-guardrails/$guardrailId/edit`,getParentRoute:()=>hd}),dp=Kr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>Z}),fp=qr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>Z}),pp={AuthBedrockguardrailsListGuardrailsCreateRoute:Qd,AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRoute:ef,AuthBedrockknowledgeBasesListKnowledgeBasesCreateRoute:tf,AuthBedrockcatalogListModelCatalogIndexRoute:Xd,AuthBedrockguardrailsListGuardrailsIndexRoute:Zd,AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute:$d,AuthBedrockmodelAccessListModelAccessIndexRoute:nf,AuthBedrockplaygroundPlaygroundIndexRoute:rf,AuthBedrockguardrailsListGuardrailsGuardrailIdEditRoute:up,AuthBedrockguardrailsListGuardrailsGuardrailIdIndexRoute:lp},mp=hd._addFileChildren(pp),hp={AuthS3LsBucketSplatRoute:cp,AuthS3LsBucketIndexRoute:sp},gp={AuthBedrockRouteRoute:mp,AuthNodesRoute:gd,AuthIndexRoute:md,AuthS3ServiceMetricsRoute:_d,AuthS3LsBucketRouteRoute:Yd._addFileChildren(hp),AuthEc2elasticIpsAllocateAddressRoute:vd,AuthEc2instancesRunInstancesRoute:yd,AuthEc2internetGatewaysCreateInternetGatewayRoute:bd,AuthEc2keyCreateKeyPairRoute:xd,AuthEc2keyImportKeyPairRoute:Sd,AuthEc2launchTemplatesCreateLaunchTemplateRoute:Cd,AuthEc2loadBalancersCreateLoadBalancerRoute:wd,AuthEc2natGatewaysCreateNatGatewayRoute:Td,AuthEc2placementGroupsCreatePlacementGroupRoute:Ed,AuthEc2routeTablesCreateRouteTableRoute:Dd,AuthEc2securityGroupsCreateSecurityGroupRoute:Od,AuthEc2snapshotsCreateSnapshotRoute:kd,AuthEc2subnetCreateSubnetRoute:Ad,AuthEc2targetGroupsCreateTargetGroupRoute:jd,AuthEc2volumesCreateVolumeRoute:Md,AuthEc2vpcCreateVpcRoute:Nd,AuthEcsclustersCreateServiceRoute:Pd,AuthEcsclustersRegisterTaskDefinitionRoute:Fd,AuthEcsclustersRunTaskRoute:Id,AuthEcsclustersTaskDefinitionsRoute:Ld,AuthEksclustersCreateClusterRoute:Rd,AuthIamgroupsCreateGroupRoute:zd,AuthIaminstanceProfilesCreateInstanceProfileRoute:Bd,AuthIampoliciesCreatePolicyRoute:Vd,AuthIamrolesCreateRoleRoute:Hd,AuthIamusersCreateUserRoute:Ud,AuthRdsdbInstancesCreateDbInstanceRoute:Wd,AuthRdsparameterGroupsCreateDbParameterGroupRoute:Gd,AuthRdssubnetGroupsCreateDbSubnetGroupRoute:Kd,AuthS3bucketsCreateBucketRoute:qd,AuthS3LsIndexRoute:Jd,AuthEc2elasticIpsDescribeAddressesIdRoute:of,AuthEc2imagesDescribeImagesIdRoute:cf,AuthEc2instancesDescribeInstancesIdRoute:uf,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:ff,AuthEc2keyDescribeKeyPairsIdRoute:pf,AuthEc2launchTemplatesDescribeLaunchTemplatesIdRoute:hf,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:_f,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:yf,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:xf,AuthEc2routeTablesDescribeRouteTablesIdRoute:Cf,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:Tf,AuthEc2snapshotsDescribeSnapshotsIdRoute:Df,AuthEc2subnetDescribeSubnetsIdRoute:kf,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:jf,AuthEc2volumesDescribeVolumesIdRoute:Nf,AuthEc2volumesModifyVolumeIdRoute:Pf,AuthEc2vpcDescribeVpcsIdRoute:If,AuthEcrrepositoriesListRepositoriesIdRoute:Rf,AuthEcsclustersListClustersClusterNameRoute:Bf,AuthEksclustersListClustersClusterNameRoute:Vf,AuthIamgroupsListGroupsGroupNameRoute:Uf,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:Gf,AuthIampoliciesListPoliciesPolicyArnRoute:qf,AuthIamrolesListRolesRoleNameRoute:Yf,AuthIamusersListUsersUserNameRoute:Zf,AuthRdsdbInstancesDescribeDbInstancesIdRoute:$f,AuthRdsparameterGroupsDescribeDbParameterGroupsNameRoute:tp,AuthRdssnapshotsDescribeDbSnapshotsIdRoute:rp,AuthRdssnapshotsRestoreDbInstanceFromDbSnapshotIdRoute:ip,AuthRdssubnetGroupsDescribeDbSubnetGroupsNameRoute:op,AuthEc2elasticIpsDescribeAddressesIndexRoute:af,AuthEc2imagesDescribeImagesIndexRoute:sf,AuthEc2instancesDescribeInstancesIndexRoute:lf,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:df,AuthEc2keyDescribeKeyPairsIndexRoute:Q,AuthEc2launchTemplatesDescribeLaunchTemplatesIndexRoute:mf,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:gf,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:vf,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:bf,AuthEc2routeTablesDescribeRouteTablesIndexRoute:Sf,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:wf,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Ef,AuthEc2subnetDescribeSubnetsIndexRoute:Of,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Af,AuthEc2volumesDescribeVolumesIndexRoute:Mf,AuthEc2vpcDescribeVpcsIndexRoute:Ff,AuthEcrrepositoriesListRepositoriesIndexRoute:Lf,AuthEcsclustersListClustersIndexRoute:zf,AuthEksclustersListClustersIndexRoute:$,AuthIamgroupsListGroupsIndexRoute:Hf,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Wf,AuthIampoliciesListPoliciesIndexRoute:Kf,AuthIamrolesListRolesIndexRoute:Jf,AuthIamusersListUsersIndexRoute:Xf,AuthRdsdbInstancesDescribeDbInstancesIndexRoute:Qf,AuthRdsparameterGroupsDescribeDbParameterGroupsIndexRoute:ep,AuthRdssnapshotsDescribeDbSnapshotsIndexRoute:np,AuthRdssubnetGroupsDescribeDbSubnetGroupsIndexRoute:ap,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:dp,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:fp},_p={AuthRouteRoute:Z._addFileChildren(gp),LoginRoute:pd},vp=K._addFileChildren(_p)._addFileTypes(),yp=Zl(),bp=H({routeTree:vp,context:{queryClient:yp},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0});async function xp(e){try{await Ke()}catch(t){e.render((0,V.jsxs)(`div`,{style:{fontFamily:`sans-serif`,margin:`4rem auto`,maxWidth:`40rem`},children:[(0,V.jsx)(`h1`,{children:`Console unavailable`}),(0,V.jsx)(`p`,{children:`This cluster did not report its region, so the console cannot sign requests. Check that the serving node has a region set in its configuration.`}),(0,V.jsx)(`pre`,{children:t instanceof Error?t.message:String(t)})]}));return}e.render((0,V.jsx)(B.StrictMode,{children:(0,V.jsx)(rs,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,V.jsx)(p,{client:yp,children:(0,V.jsx)(Cn,{children:(0,V.jsx)(Ml,{children:(0,V.jsx)(Uo,{router:bp})})})})})}))}var Sp=document.querySelector(`#app`);Sp&&!Sp.innerHTML&&await xp(es.createRoot(Sp)); \ No newline at end of file +`).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,i,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&dn(e,``+r);else return;break;case`className`:Yt(e,`class`,r);break;case`tabIndex`:Yt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Yt(e,n,r);break;case`style`:mn(e,r,o);return;case`data`:if(t!==`object`){Yt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ep(e,t,`name`,i.name,i,null),ep(e,t,`formEncType`,i.formEncType,i,null),ep(e,t,`formMethod`,i.formMethod,i,null),ep(e,t,`formTarget`,i.formTarget,i,null)):(ep(e,t,`encType`,i.encType,i,null),ep(e,t,`method`,i.method,i,null),ep(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=yn);return;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=vn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),Jt(e,`popover`,r);break;case`xlinkActuate`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Jt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Lt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[jt]=!0,o.onload=o.onerror=function(){Rt(o)}),Lt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Lt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=It(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Lt(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Te.current)?bm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=It(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=It(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=It(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Pm(e){return`href="`+rn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[jt]){r.loading=1;return}}else t=e.createElement(`link`),t[jt]=!0,t.onload=t.onerror=Rt.bind(null,t),np(t,`link`,n),Lt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+rn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,Lt(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Lt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var o=e.querySelector(Fm(i));if(o)return t.state.loading|=4,t.instance=o,Lt(o),o;r=Im(n),(i=vm.get(i))&&Hm(r,i),o=(e.ownerDocument||e).createElement(`link`),Lt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(i=e.querySelector(zm(o)))?(t.instance=i,Lt(i),i):(r=n,(i=vm.get(o))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Lt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Lt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=$o()}))(),1),U=i(),ts=(0,B.createContext)(void 0);function ns(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function rs(e){let t=(0,U.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>ns(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,B.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,B.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,V.jsx)(ts.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function is(){let e=(0,B.useContext)(ts);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}var as={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};as.node;var os=I(as),ss={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};ss.node;var cs=I(ss),ls={name:`boxes`,size:24,node:[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]};ls.node;var us=I(ls),ds={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]};ds.node;var fs=I(ds),ps={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};ps.node;var ms=I(ps),hs={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};hs.node;var gs=I(hs),_s={name:`crosshair`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]};_s.node;var vs=I(_s),ys={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};ys.node;var bs=I(ys),xs={name:`file-stack`,size:24,node:[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]};xs.node;var Ss=I(xs),Cs={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Cs.node;var ws=I(Cs),Ts={name:`id-card`,size:24,node:[[`path`,{d:`M13 19a4 4 0 00-8 0`,key:`cugzd5`}],[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]};Ts.node;var Es=I(Ts),Ds={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Ds.node;var Os=I(Ds),ks={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};ks.node;var As=I(ks),js={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};js.node;var Ms=I(js),Ns={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};Ns.node;var Ps=I(Ns),Fs={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Fs.node;var Is=I(Fs),Ls={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};Ls.node;var Rs=I(Ls),zs={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};zs.node;var Bs=I(zs),Vs={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Vs.node;var Hs=I(Vs),Us={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Us.node;var Ws=I(Us),Gs={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};Gs.node;var Ks=I(Gs),qs={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};qs.node;var Js=I(qs),Ys={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Ys.node;var Xs=I(Ys),Zs={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Zs.node;var Qs=I(Zs),$s={name:`user-cog`,size:24,node:[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};$s.node;var ec=I($s),tc={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};tc.node;var nc=I(tc),rc={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};rc.node;var ic=I(rc);function ac(e,t){return t!=null&&!Vt(t)?0:typeof e==`function`?e():e}function oc(e,t,n){let r=ac(e,n);return typeof r==`number`?r:r?.[t]}function sc(e){return typeof e==`function`?e():e}function cc(e,t){return t||e===`click`||e===`mousedown`}function lc(e){return e?.includes(`mouse`)&&e!==`mousedown`}var uc=B.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Dt,currentIdRef:{current:null},currentContextRef:{current:null}});function dc(e,t){e.current=t.current}function fc(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=B.useRef(n),a=B.useRef(n),o=B.useRef(null),s=B.useRef(null),c=At();return ft(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:oc(i.current,`open`),close:oc(n,`close`)}},[n,o,i,a]),(0,V.jsx)(uc.Provider,{value:B.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function pc(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=B.useContext(uc),[f,p]=B.useState(!1),m=B.useRef(n);return ft(()=>{m.current=n},[n]),ft(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),ft(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:oc(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Et(bt))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),ft(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,dc(o,c),d.clear()}},[l,a,o,i,c,d]),B.useMemo(()=>({activeIdRef:a,hasProvider:u,delayRef:o,isInstantPhase:f}),[a,u,o,f])}function mc(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function hc(e){return e!=null&&e.clientX!=null}function gc(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=B.useRef(!1),u=B.useRef(null),[d,f]=B.useState(),[p,m]=B.useState([]),h=pt(e=>{i.set(`positionReference`,e)}),g=pt((e,t,n)=>{l.current||(!c.current.openEvent||hc(c.current.openEvent))&&i.set(`positionReference`,mc(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=pt(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Vt(d)?o:a;B.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=lt(o);function r(t){let n=gt(t);vt(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||hc(c.current.openEvent)?u.current=Pe(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),B.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),B.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),B.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=B.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return B.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var _c=Ae();function vc(e){let t=B.useCallback(t=>e===void 0?Be:e.subscribeStore(t),[e]),n=B.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,_c.useSyncExternalStore)(t,n,()=>e?.serverStore)}var yc=rn&&Bt;function bc(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=B.useRef(!1),c=B.useRef(null),l=B.useRef(!0),u=At();B.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=lt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ut(e)&&e===kt(_t(e))&&(s.current=!0,c.current=e)}function a(){l.current=!0}function o(){l.current=!1}return Pt(Pe(t,`blur`,r),yc&&Pe(t,`keydown`,a,!0),yc&&Pe(t,`pointerdown`,o,!0))},[i,n]),B.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);ht(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=B.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=gt(t.nativeEvent);if(ht(a)){if(yc&&!t.relatedTarget){if(!l.current&&!L(a))return}else if(!Ht(a))return}let o=Xt(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Et(wt,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Et(wt,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=ht(n)&&n.hasAttribute(sn(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=kt(_t(e));(n||t!==e)&&(vt(o.current.floatingContext?.refs.floating.current,t)||vt(e,t)||a||Xt(n??t,i.context.triggerElements)||i.setOpen(!1,Et(wt,r)))})}}},[o,r,i,u]);return B.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var xc=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Dt,this.restTimeout=new Dt,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Sc=new WeakMap;function Cc(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Sc.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Sc.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function wc(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Sc.get(n);a&&a!==e&&Cc(a),Cc(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Sc.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Tc(e){let t=e.context.dataRef.current,n=Re(()=>t.hoverInteractionState??xc.create()).current;return t.hoverInteractionState||=n,yt(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ec(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=It(),d=qt(),f=Tc(a),p=At(),m=pt(()=>cc(l.current.openEvent?.type,f.interactedInside)),h=pt(()=>lc(l.current.openEvent?.type)),g=pt(()=>{Cc(f)});ft(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),B.useEffect(()=>g,[g]),ft(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&ht(c)&&s){let e=c,t=s,n=_t(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return wc(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),B.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&jt(u.nodesRef.current,d).length>0)}function t(e){let t=oc(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Et(St,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=gt(e);if(!en(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Xt(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&ht(o)&&jt(u.nodesRef.current,r,!1).some(e=>vt(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){u&&d&&!e()&&p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Et(St,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Pt(y&&Pe(y,`mouseenter`,c),y&&Pe(y,`mouseleave`,_),y&&Pe(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Dc=n(Me(),1),Oc={current:null};function kc(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Oc,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=It(l),y=Tc(h),b=B.useRef(!1),x=Fe(i),S=Fe(r),C=Fe(o),w=Fe(n),T=Fe(p),E=Fe(f),D=pt(()=>cc(g.current.openEvent?.type,y.interactedInside)),O=pt(()=>T.current?.()!==!1),k=pt((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!vt(e,t);if(!ht(n))return!1;let i=n;return r.hasMatchingElement(e=>vt(e,i))&&(!e||!vt(e,i))}),ee=pt(()=>{y.handler&&=(_t(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),te=pt(()=>{Cc(y)});return u&&(y.handleCloseOptions=i?.__options),B.useEffect(()=>ee,[ee]),B.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===St,ee(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,ee]),B.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=oc(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!ht(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!Vt(y.pointerType))return;let t=sc(C.current),n=oc(S.current,`open`,y.pointerType),r=gt(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(ht(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(vt(e,r)){s=e;break}}ht(i)&&ht(o)&&!h.context.triggerElements.hasElement(i)&&vt(i,o)&&(s=o);let c=s!=null&&k(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&ht(s)&&ht(o)&&vt(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){O()&&h.setOpen(!0,Et(St,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&h.setOpen(!0,Et(St,e,s))}):g&&O()&&h.setOpen(!0,Et(St,e,s)))}function i(t){if(D()){te();return}ee();let n=h.select(`domReferenceElement`),r=_t(n);y.restTimeout.clear(),y.restTimeoutPending=!1;let i=g.current.floatingContext??d?.();if(!Xt(t.relatedTarget,h.context.triggerElements)){if(x.current&&i){h.select(`open`)||y.openChangeTimeout.clear();let n=c.current;y.handler=x.current({...i,tree:v,x:t.clientX,y:t.clientY,onClose(){te(),ee(),w.current&&!D()&&n===h.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!vt(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){vt(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?Pe(t,`mouseout`,o):void 0;return s?Pt(Pe(t,`mousemove`,r,{once:!0}),Pe(t,`mouseenter`,r),Pe(t,`mouseleave`,i),l):Pt(Pe(t,`mouseenter`,r),Pe(t,`mouseleave`,i),l)},[ee,te,g,S,h,n,x,y,u,k,D,a,s,C,c,v,w,d,E,O,m]),B.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=k(r,n,e.target);if(a&&!Vt(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;wc(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=sc(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&h.setOpen(!0,Et(St,t,n))}y.pointerType===`touch`?Dc.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,h,C,O])}var Ac=.1,jc=Ac*Ac,Mc=.5;function Nc(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Pc(e,t,n,r,i,a,o,s,c,l){let u=!1;return Nc(e,t,n,r,i,a)&&(u=!u),Nc(e,t,i,a,o,s)&&(u=!u),Nc(e,t,o,s,c,l)&&(u=!u),Nc(e,t,c,l,n,r)&&(u=!u),u}function Fc(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ic(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Lc(e={}){let{blockPointerEvents:t=!1}=e,n=new Dt,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*jc;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,ee=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let te=!1;switch(c){case`top`:te=Ic(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:te=Ic(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:te=Ic(d,f,S.right-1,ee,x.left+1,k);break;case`right`:te=Ic(d,f,x.right-1,ee,S.left+1,k)}if(te)return;if(l&&!Fc(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let ne=!1;switch(c){case`top`:{let n=T?Mc/2:Mc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Mc+1,o=C||T?S.bottom-Mc:S.top,s=C?T?S.bottom-Mc:S.top:S.bottom-Mc;ne=Pc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Mc/2:Mc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Mc,o=C||T?S.top+Mc:S.bottom,s=C?T?S.top+Mc:S.bottom:S.top+Mc;ne=Pc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Mc/2:Mc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Mc+1,o=w||E?S.right-Mc:S.left,s=w?E?S.right-Mc:S.left:S.right-Mc;ne=Pc(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Mc/2:Mc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Mc,o=w||E?S.left+Mc:S.right,s=w?E?S.left+Mc:S.right:S.left+Mc;ne=Pc(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}ne?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Rc=Mt(function(e){return gn(`dialog`,e)});function zc(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Rc,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Bc(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(vn,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Vc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(hn,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hc(e){let t=(0,U.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0||o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Vc,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=P(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,V.jsxs)(pn,{"data-slot":`sheet-close`,render:(0,V.jsx)(mt,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,V.jsx)(st,{}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,V.jsxs)(Bc,{children:[l,(0,V.jsxs)(mn,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function Uc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Wc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(bn,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Gc(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(yn,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Kc=B.createContext(void 0);function qc(e){let t=B.useContext(Kc);if(t===void 0&&!e)throw Error(He(72));return t}var Jc={..._n,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Yc=class extends Nt{constructor(e,t,n){let r=new Qt;super(Xc(e,r,t,n),Zc(r),Jc)}setOpen=(e,t)=>{Gt(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Et(xt,e))}};function Xc(e,t,n,r=!1){return{...fn(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Zc(e){return{popupRef:B.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Qc=Mt(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=zt((e,t)=>new Yc({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),on(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Ut(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=B.useRef(null);ft(()=>{m&&t&&p.setOpen(!1,Et(Ct))},[m,t,p]),ft(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),ft(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),B.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Et(Tt))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,V.jsxs)(Kc.Provider,{value:p,children:[l&&(0,V.jsx)(Kt,{handle:l,store:p}),T&&(0,V.jsx)($c,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function $c({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Jt(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=gc(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=B.useMemo(()=>Le(a.reference,i.reference),[a.reference,i.reference]);return an(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??Ie}),null}var el=B.createContext(void 0);function tl(){return B.useContext(el)}var nl=`data-base-ui-tooltip-trigger`;function rl(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!ie.current}}),de=bc(v,{enabled:!ee}).reference,fe=e=>{let t=ie.current,n=rl(e),r=le(n),i=y.current,a=i&&n&&vt(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Et(St,e));return}if(t&&!r&&a&&!te.current&&!m.select(`open`)&&i&&Vt(oe.current)){let t=()=>{!ie.current&&!te.current&&!m.select(`open`)&&m.setOpen(!0,Et(St,e,i))},n=se();n===0?(ae.clear(),t()):ae.start(n,t)}},pe=m.useState(`triggerProps`,S);return ze(`button`,e,{state:{open:_},ref:[t,x,y],props:[ue,de,S||ne!==`none`?pe:void 0,{onMouseOver(e){fe(e.nativeEvent)},onFocus(e){ce(rl(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ie.current=!1,ae.clear(),oe.current=void 0},onPointerEnter(e){oe.current=e.pointerType},onPointerDown(e){oe.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Zt]:ee?``:void 0,[nl]:ee?void 0:``},f],stateAttributesMapping:tn})}),ol=B.createContext(void 0);function sl(){let e=B.useContext(ol);if(e===void 0)throw Error(He(70));return e}var cl=B.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Rt({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,V.jsxs)(B.Fragment,{children:[l,c&&Dc.createPortal(n,c)]})}),ll=B.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return qc().useState(`mounted`)||n?(0,V.jsx)(ol.Provider,{value:n,children:(0,V.jsx)(cl,{ref:t,...r})}):null}),ul=B.createContext(void 0);function dl(){let e=B.useContext(ul);if(e===void 0)throw Error(He(71));return e}var fl=B.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Ft,style:g,..._}=e,v=qc(),y=sl(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=v.useState(`adaptiveOrigin`),O=ln({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:D}),k=B.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,T]),ee=un(e,k,{styles:O.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,V.jsx)(ul.Provider,{value:O,children:ee})}),pl=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=qc(),{side:s,align:c}=dl(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Ne({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ec(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return ze(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Yt,f,cn(d),a],stateAttributesMapping:Wt})}),ml=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=qc(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=dl(),f={open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)};return ze(`div`,e,{state:f,ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:$t})}),hl=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=B.useMemo(()=>({open:t,close:n}),[t,n]);return(0,V.jsx)(el.Provider,{value:t,children:(0,V.jsx)(fc,{delay:i,timeoutMs:r,children:e.children})})};function gl(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,V.jsx)(hl,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function _l(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(gl,{children:(0,V.jsx)(Qc,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function vl(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(al,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function yl(e){let t=(0,U.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=P(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-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 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,V.jsx)(ml,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,V.jsxs)(pl,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,V.jsx)(ll,{children:(0,V.jsx)(fl,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var bl=window.matchMedia(`(max-width: 767px)`);function xl(e){return bl.addEventListener(`change`,e),()=>{bl.removeEventListener(`change`,e)}}function Sl(){return bl.matches}function Cl(){return(0,B.useSyncExternalStore)(xl,Sl)}var wl=`sidebar_state`,Tl=604800,El=`12rem`,Dl=`16rem`,Ol=`3rem`,kl=`b`,Al=B.createContext(null);function jl(){let e=B.useContext(Al);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ml(e){let t=(0,U.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0||c,u=Cl(),[d,f]=B.useState(!1),[p,m]=B.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${wl}=${t}; path=/; max-age=${Tl}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>{u?f(Pl):_(Nl)},t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===kl&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},x=[y],t[14]=y,t[15]=b,t[16]=x),B.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":El,"--sidebar-width-icon":Ol,...s},t[24]=s,t[25]=T);let E=T,D;t[26]===r?D=t[27]:(D=P(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[26]=r,t[27]=D);let O;t[28]!==n||t[29]!==a||t[30]!==D||t[31]!==E?(O=(0,V.jsx)(`div`,{className:D,"data-slot":`sidebar-wrapper`,style:E,...a,children:n}),t[28]=n,t[29]=a,t[30]=D,t[31]=E,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,V.jsx)(Al.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function Nl(e){return!e}function Pl(e){return!e}function Fl(e){let t=(0,U.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=jl();if(u===`none`){let e;t[7]===r?e=t[8]:(e=P(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,V.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Dl},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsxs)(Uc,{className:`sr-only`,children:[(0,V.jsx)(Wc,{children:`Sidebar`}),(0,V.jsx)(Gc,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,V.jsxs)(Hc,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,V.jsx)(zc,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=P(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,V.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=P(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,V.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,V.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,V.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function Il(e){let t=(0,U.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=jl(),o;t[4]===n?o=t[5]:(o=P(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Ks,{}),l=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,V.jsxs)(mt,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function Ll(e){let t=(0,U.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=jl(),a;t[3]===n?a=t[4]:(a=P(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,V.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,type:`button`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Rl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(dn,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto`,`group-data-[collapsible=icon]:[scrollbar-width:none] group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ul(e){let t=(0,U.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Ue,r=`div`,i=Le({className:P(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Wl(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function W(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=P(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Gl=Ve(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function G(e){let t=(0,U.c)(18),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r!==void 0&&r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=jl(),m=Le({className:P(Gl({variant:u,size:d}),s)},c),h;t[0]!==n||t[1]!==o?(h=o?(0,V.jsx)(vl,{}):n,t[0]=n,t[1]=o,t[2]=h):h=t[2];let g;t[3]!==l||t[4]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[3]=l,t[4]=d,t[5]=g):g=t[5];let _;t[6]!==m||t[7]!==h||t[8]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[6]=m,t[7]=h,t[8]=g,t[9]=_):_=t[9];let v=Ue(_);if(!o)return v;let y;t[10]===o?y=t[11]:(y=typeof o==`string`?{children:o}:o,t[10]=o,t[11]=y);let b=y,x=p!==`collapsed`||f,S;t[12]!==x||t[13]!==b?(S=(0,V.jsx)(yl,{align:`center`,hidden:x,side:`right`,...b}),t[12]=x,t[13]=b,t[14]=S):S=t[14];let C;return t[15]!==v||t[16]!==S?(C=(0,V.jsxs)(_l,{children:[v,S]}),t[15]=v,t[16]=S,t[17]=C):C=t[17],C}var Kl=new Set([`InvalidClientTokenId`,`AuthFailure`,`MissingAuthenticationToken`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function ql(e){return typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`}function Jl(e){return ql(e)&&Kl.has(e.name)}var Yl=!1;function Xl(e,t){!Yl&&Jl(e)&&(Yl=!0,Ge(),xn(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Zl(){let e=new Zr({queryCache:new Xr({onError:t=>{Xl(t,e)}}),mutationCache:new Jr({onError:t=>{Xl(t,e)}}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Ql(){let e=(0,U.c)(8),{theme:t,setTheme:n}=is(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(Qs,{className:`size-[1.2rem] scale-100 rotate-0 transition-transform dark:scale-0 dark:-rotate-90`}),o=(0,V.jsx)(Hs,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-transform dark:scale-100 dark:rotate-0`}),s=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,V.jsxs)(mt,{className:`rounded-full transition-none hover:bg-transparent dark:hover:bg-transparent`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function $l(){let e=(0,U.c)(7),{isAdmin:t,license:n}=Sn(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=P(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,V.jsx)(Il,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:P(dt({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(Ql,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,V.jsxs)(`header`,{className:i,children:[a,(0,V.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function eu(){let e=(0,U.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,V.jsx)(A,{to:`/`,children:(0,V.jsx)(mt,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function tu(){let e=(0,U.c)(259),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:nu},e[0]=t):t=e[0];let n=Wo(t),r=je(),i=a(),{isAdmin:o}=Sn(),s;e[1]!==r||e[2]!==i?(s=function(){Ge(),xn(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=s):s=e[3];let c=s,l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsxs)(Rl,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,V.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,V.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=l):l=e[4];let u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(Ul,{children:`General`}),e[5]=u):u=e[5];let d=n===`/`,f,p;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsx)(ws,{className:`size-4`}),p=(0,V.jsx)(`span`,{children:`Dashboard`}),e[6]=f,e[7]=p):(f=e[6],p=e[7]);let m;e[8]===d?m=e[9]:(m=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/`,children:(0,V.jsxs)(G,{isActive:d,tooltip:`Dashboard`,children:[f,p]})})}),e[8]=d,e[9]=m);let h;e[10]!==o||e[11]!==n?(h=o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/nodes`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,V.jsx)($e,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=o,e[11]=n,e[12]=h):h=e[12];let g;e[13]!==m||e[14]!==h?(g=(0,V.jsxs)(Hl,{children:[u,(0,V.jsxs)(Wl,{children:[m,h]})]}),e[13]=m,e[14]=h,e[15]=g):g=e[15];let _;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,V.jsx)(Ul,{children:`EC2`}),e[16]=_):_=e[16];let v;e[17]===n?v=e[18]:(v=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=v);let y,b;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,V.jsx)($e,{className:`size-4`}),b=(0,V.jsx)(`span`,{children:`Instances`}),e[19]=y,e[20]=b):(y=e[19],b=e[20]);let x;e[21]===v?x=e[22]:(x=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-instances`,children:(0,V.jsxs)(G,{isActive:v,tooltip:`Instances`,children:[y,b]})})}),e[21]=v,e[22]=x);let S;e[23]===n?S=e[24]:(S=n.startsWith(`/ec2/describe-launch-templates`)||n.startsWith(`/ec2/create-launch-template`),e[23]=n,e[24]=S);let C,w;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,V.jsx)(Ss,{className:`size-4`}),w=(0,V.jsx)(`span`,{children:`Launch Templates`}),e[25]=C,e[26]=w):(C=e[25],w=e[26]);let T;e[27]===S?T=e[28]:(T=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-launch-templates`,children:(0,V.jsxs)(G,{isActive:S,tooltip:`Launch Templates`,children:[C,w]})})}),e[27]=S,e[28]=T);let E;e[29]===n?E=e[30]:(E=n.startsWith(`/ec2/describe-images`),e[29]=n,e[30]=E);let D,O;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,V.jsx)(nt,{className:`size-4`}),O=(0,V.jsx)(`span`,{children:`Images`}),e[31]=D,e[32]=O):(D=e[31],O=e[32]);let k;e[33]===E?k=e[34]:(k=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-images`,children:(0,V.jsxs)(G,{isActive:E,tooltip:`Images`,children:[D,O]})})}),e[33]=E,e[34]=k);let ee;e[35]===n?ee=e[36]:(ee=n.startsWith(`/ec2/describe-key-pairs`),e[35]=n,e[36]=ee);let te,ne;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,V.jsx)(Ye,{className:`size-4`}),ne=(0,V.jsx)(`span`,{children:`Key Pairs`}),e[37]=te,e[38]=ne):(te=e[37],ne=e[38]);let re;e[39]===ee?re=e[40]:(re=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-key-pairs`,children:(0,V.jsxs)(G,{isActive:ee,tooltip:`Key Pairs`,children:[te,ne]})})}),e[39]=ee,e[40]=re);let ie;e[41]===n?ie=e[42]:(ie=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[41]=n,e[42]=ie);let ae,oe;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,V.jsx)(Rs,{className:`size-4`}),oe=(0,V.jsx)(`span`,{children:`Elastic IPs`}),e[43]=ae,e[44]=oe):(ae=e[43],oe=e[44]);let se;e[45]===ie?se=e[46]:(se=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-addresses`,children:(0,V.jsxs)(G,{isActive:ie,tooltip:`Elastic IPs`,children:[ae,oe]})})}),e[45]=ie,e[46]=se);let ce;e[47]===n?ce=e[48]:(ce=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[47]=n,e[48]=ce);let le,ue;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,V.jsx)(Qe,{className:`size-4`}),ue=(0,V.jsx)(`span`,{children:`Volumes`}),e[49]=le,e[50]=ue):(le=e[49],ue=e[50]);let de;e[51]===ce?de=e[52]:(de=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-volumes`,children:(0,V.jsxs)(G,{isActive:ce,tooltip:`Volumes`,children:[le,ue]})})}),e[51]=ce,e[52]=de);let fe;e[53]===n?fe=e[54]:(fe=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[53]=n,e[54]=fe);let pe,me;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,V.jsx)(Je,{className:`size-4`}),me=(0,V.jsx)(`span`,{children:`Snapshots`}),e[55]=pe,e[56]=me):(pe=e[55],me=e[56]);let he;e[57]===fe?he=e[58]:(he=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-snapshots`,children:(0,V.jsxs)(G,{isActive:fe,tooltip:`Snapshots`,children:[pe,me]})})}),e[57]=fe,e[58]=he);let ge;e[59]===n?ge=e[60]:(ge=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[59]=n,e[60]=ge);let _e,j;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,V.jsx)(As,{className:`size-4`}),j=(0,V.jsx)(`span`,{children:`Placement Groups`}),e[61]=_e,e[62]=j):(_e=e[61],j=e[62]);let M;e[63]===ge?M=e[64]:(M=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-placement-groups`,children:(0,V.jsxs)(G,{isActive:ge,tooltip:`Placement Groups`,children:[_e,j]})})}),e[63]=ge,e[64]=M);let ve;e[65]===n?ve=e[66]:(ve=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[65]=n,e[66]=ve);let ye,be;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,V.jsx)(tt,{className:`size-4`}),be=(0,V.jsx)(`span`,{children:`Load Balancers`}),e[67]=ye,e[68]=be):(ye=e[67],be=e[68]);let xe;e[69]===ve?xe=e[70]:(xe=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-load-balancers`,children:(0,V.jsxs)(G,{isActive:ve,tooltip:`Load Balancers`,children:[ye,be]})})}),e[69]=ve,e[70]=xe);let Se;e[71]===n?Se=e[72]:(Se=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[71]=n,e[72]=Se);let N,Ce;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,V.jsx)(vs,{className:`size-4`}),Ce=(0,V.jsx)(`span`,{children:`Target Groups`}),e[73]=N,e[74]=Ce):(N=e[73],Ce=e[74]);let we;e[75]===Se?we=e[76]:(we=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-target-groups`,children:(0,V.jsxs)(G,{isActive:Se,tooltip:`Target Groups`,children:[N,Ce]})})}),e[75]=Se,e[76]=we);let Te;e[77]!==x||e[78]!==T||e[79]!==k||e[80]!==re||e[81]!==se||e[82]!==de||e[83]!==he||e[84]!==M||e[85]!==xe||e[86]!==we?(Te=(0,V.jsxs)(Hl,{children:[_,(0,V.jsxs)(Wl,{children:[x,T,k,re,se,de,he,M,xe,we]})]}),e[77]=x,e[78]=T,e[79]=k,e[80]=re,e[81]=se,e[82]=de,e[83]=he,e[84]=M,e[85]=xe,e[86]=we,e[87]=Te):Te=e[87];let Ee;e[88]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,V.jsx)(Ul,{children:`Networking`}),e[88]=Ee):Ee=e[88];let De;e[89]===n?De=e[90]:(De=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[89]=n,e[90]=De);let Oe,ke;e[91]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,V.jsx)(it,{className:`size-4`}),ke=(0,V.jsx)(`span`,{children:`VPCs`}),e[91]=Oe,e[92]=ke):(Oe=e[91],ke=e[92]);let Ae;e[93]===De?Ae=e[94]:(Ae=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-vpcs`,children:(0,V.jsxs)(G,{isActive:De,tooltip:`VPCs`,children:[Oe,ke]})})}),e[93]=De,e[94]=Ae);let Me;e[95]===n?Me=e[96]:(Me=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[95]=n,e[96]=Me);let Ne,Pe;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,V.jsx)(Ms,{className:`size-4`}),Pe=(0,V.jsx)(`span`,{children:`Subnets`}),e[97]=Ne,e[98]=Pe):(Ne=e[97],Pe=e[98]);let Fe;e[99]===Me?Fe=e[100]:(Fe=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-subnets`,children:(0,V.jsxs)(G,{isActive:Me,tooltip:`Subnets`,children:[Ne,Pe]})})}),e[99]=Me,e[100]=Fe);let Ie;e[101]===n?Ie=e[102]:(Ie=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[101]=n,e[102]=Ie);let Le,Re;e[103]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,V.jsx)(Xs,{className:`size-4`}),Re=(0,V.jsx)(`span`,{children:`Security Groups`}),e[103]=Le,e[104]=Re):(Le=e[103],Re=e[104]);let ze;e[105]===Ie?ze=e[106]:(ze=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-security-groups`,children:(0,V.jsxs)(G,{isActive:Ie,tooltip:`Security Groups`,children:[Le,Re]})})}),e[105]=Ie,e[106]=ze);let Be;e[107]===n?Be=e[108]:(Be=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[107]=n,e[108]=Be);let Ve,He;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,V.jsx)(Js,{className:`size-4`}),He=(0,V.jsx)(`span`,{children:`Route Tables`}),e[109]=Ve,e[110]=He):(Ve=e[109],He=e[110]);let Ue;e[111]===Be?Ue=e[112]:(Ue=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-route-tables`,children:(0,V.jsxs)(G,{isActive:Be,tooltip:`Route Tables`,children:[Ve,He]})})}),e[111]=Be,e[112]=Ue);let P;e[113]===n?P=e[114]:(P=n.startsWith(`/ec2/describe-internet-gateways`),e[113]=n,e[114]=P);let Ke,qe;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,V.jsx)(et,{className:`size-4`}),qe=(0,V.jsx)(`span`,{children:`Internet Gateways`}),e[115]=Ke,e[116]=qe):(Ke=e[115],qe=e[116]);let F;e[117]===P?F=e[118]:(F=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-internet-gateways`,children:(0,V.jsxs)(G,{isActive:P,tooltip:`Internet Gateways`,children:[Ke,qe]})})}),e[117]=P,e[118]=F);let I;e[119]===n?I=e[120]:(I=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[119]=n,e[120]=I);let rt,ot;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(rt=(0,V.jsx)(Xe,{className:`size-4`}),ot=(0,V.jsx)(`span`,{children:`NAT Gateways`}),e[121]=rt,e[122]=ot):(rt=e[121],ot=e[122]);let st;e[123]===I?st=e[124]:(st=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ec2/describe-nat-gateways`,children:(0,V.jsxs)(G,{isActive:I,tooltip:`NAT Gateways`,children:[rt,ot]})})}),e[123]=I,e[124]=st);let ct;e[125]!==Ae||e[126]!==Fe||e[127]!==ze||e[128]!==Ue||e[129]!==F||e[130]!==st?(ct=(0,V.jsxs)(Hl,{children:[Ee,(0,V.jsxs)(Wl,{children:[Ae,Fe,ze,Ue,F,st]})]}),e[125]=Ae,e[126]=Fe,e[127]=ze,e[128]=Ue,e[129]=F,e[130]=st,e[131]=ct):ct=e[131];let lt;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,V.jsx)(Ul,{children:`Containers`}),e[132]=lt):lt=e[132];let ut;e[133]===n?ut=e[134]:(ut=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[133]=n,e[134]=ut);let dt,ft;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,V.jsx)(us,{className:`size-4`}),ft=(0,V.jsx)(`span`,{children:`EKS`}),e[135]=dt,e[136]=ft):(dt=e[135],ft=e[136]);let pt;e[137]===ut?pt=e[138]:(pt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/eks/list-clusters`,children:(0,V.jsxs)(G,{isActive:ut,tooltip:`EKS clusters`,children:[dt,ft]})})}),e[137]=ut,e[138]=pt);let mt;e[139]===n?mt=e[140]:(mt=n.startsWith(`/ecr/list-repositories`),e[139]=n,e[140]=mt);let ht,gt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,V.jsx)(Ws,{className:`size-4`}),gt=(0,V.jsx)(`span`,{children:`ECR`}),e[141]=ht,e[142]=gt):(ht=e[141],gt=e[142]);let _t;e[143]===mt?_t=e[144]:(_t=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ecr/list-repositories`,children:(0,V.jsxs)(G,{isActive:mt,tooltip:`ECR repositories`,children:[ht,gt]})})}),e[143]=mt,e[144]=_t);let vt;e[145]===n?vt=e[146]:(vt=n.startsWith(`/ecs/`),e[145]=n,e[146]=vt);let yt,bt;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(yt=(0,V.jsx)(gs,{className:`size-4`}),bt=(0,V.jsx)(`span`,{children:`ECS`}),e[147]=yt,e[148]=bt):(yt=e[147],bt=e[148]);let xt;e[149]===vt?xt=e[150]:(xt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/ecs/list-clusters`,children:(0,V.jsxs)(G,{isActive:vt,tooltip:`ECS clusters`,children:[yt,bt]})})}),e[149]=vt,e[150]=xt);let St;e[151]!==pt||e[152]!==_t||e[153]!==xt?(St=(0,V.jsxs)(Hl,{children:[lt,(0,V.jsxs)(Wl,{children:[pt,_t,xt]})]}),e[151]=pt,e[152]=_t,e[153]=xt,e[154]=St):St=e[154];let Ct;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,V.jsx)(Ul,{children:`RDS`}),e[155]=Ct):Ct=e[155];let wt;e[156]===n?wt=e[157]:(wt=n.startsWith(`/rds/describe-db-instances`)||n.startsWith(`/rds/create-db-instance`),e[156]=n,e[157]=wt);let Tt,Et;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,V.jsx)(bs,{className:`size-4`}),Et=(0,V.jsx)(`span`,{children:`Databases`}),e[158]=Tt,e[159]=Et):(Tt=e[158],Et=e[159]);let Dt;e[160]===wt?Dt=e[161]:(Dt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-instances`,children:(0,V.jsxs)(G,{isActive:wt,tooltip:`Databases`,children:[Tt,Et]})})}),e[160]=wt,e[161]=Dt);let Ot;e[162]===n?Ot=e[163]:(Ot=n.startsWith(`/rds/describe-db-snapshots`)||n.startsWith(`/rds/restore-db-instance-from-db-snapshot`),e[162]=n,e[163]=Ot);let kt,At;e[164]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,V.jsx)(Je,{className:`size-4`}),At=(0,V.jsx)(`span`,{children:`Snapshots`}),e[164]=kt,e[165]=At):(kt=e[164],At=e[165]);let jt;e[166]===Ot?jt=e[167]:(jt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-snapshots`,children:(0,V.jsxs)(G,{isActive:Ot,tooltip:`DB Snapshots`,children:[kt,At]})})}),e[166]=Ot,e[167]=jt);let Mt;e[168]===n?Mt=e[169]:(Mt=n.startsWith(`/rds/describe-db-subnet-groups`)||n.startsWith(`/rds/create-db-subnet-group`),e[168]=n,e[169]=Mt);let Nt,Pt;e[170]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,V.jsx)(Ms,{className:`size-4`}),Pt=(0,V.jsx)(`span`,{children:`Subnet Groups`}),e[170]=Nt,e[171]=Pt):(Nt=e[170],Pt=e[171]);let Ft;e[172]===Mt?Ft=e[173]:(Ft=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-subnet-groups`,children:(0,V.jsxs)(G,{isActive:Mt,tooltip:`DB Subnet Groups`,children:[Nt,Pt]})})}),e[172]=Mt,e[173]=Ft);let It;e[174]===n?It=e[175]:(It=n.startsWith(`/rds/describe-db-parameter-groups`)||n.startsWith(`/rds/create-db-parameter-group`),e[174]=n,e[175]=It);let Lt,Rt;e[176]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,V.jsx)(at,{className:`size-4`}),Rt=(0,V.jsx)(`span`,{children:`Parameter Groups`}),e[176]=Lt,e[177]=Rt):(Lt=e[176],Rt=e[177]);let zt;e[178]===It?zt=e[179]:(zt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/rds/describe-db-parameter-groups`,children:(0,V.jsxs)(G,{isActive:It,tooltip:`DB Parameter Groups`,children:[Lt,Rt]})})}),e[178]=It,e[179]=zt);let Bt;e[180]!==jt||e[181]!==Ft||e[182]!==zt||e[183]!==Dt?(Bt=(0,V.jsxs)(Hl,{children:[Ct,(0,V.jsxs)(Wl,{children:[Dt,jt,Ft,zt]})]}),e[180]=jt,e[181]=Ft,e[182]=zt,e[183]=Dt,e[184]=Bt):Bt=e[184];let Vt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=(0,V.jsx)(Ul,{children:`IAM`}),e[185]=Vt):Vt=e[185];let Ht;e[186]===n?Ht=e[187]:(Ht=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[186]=n,e[187]=Ht);let Ut,Wt;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Ut=(0,V.jsx)(ic,{className:`size-4`}),Wt=(0,V.jsx)(`span`,{children:`Users`}),e[188]=Ut,e[189]=Wt):(Ut=e[188],Wt=e[189]);let Gt;e[190]===Ht?Gt=e[191]:(Gt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-users`,children:(0,V.jsxs)(G,{isActive:Ht,tooltip:`Users`,children:[Ut,Wt]})})}),e[190]=Ht,e[191]=Gt);let Kt;e[192]===n?Kt=e[193]:(Kt=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[192]=n,e[193]=Kt);let L,qt;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,V.jsx)(nc,{className:`size-4`}),qt=(0,V.jsx)(`span`,{children:`Groups`}),e[194]=L,e[195]=qt):(L=e[194],qt=e[195]);let Jt;e[196]===Kt?Jt=e[197]:(Jt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-groups`,children:(0,V.jsxs)(G,{isActive:Kt,tooltip:`Groups`,children:[L,qt]})})}),e[196]=Kt,e[197]=Jt);let Yt;e[198]===n?Yt=e[199]:(Yt=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[198]=n,e[199]=Yt);let Xt,Zt;e[200]===Symbol.for(`react.memo_cache_sentinel`)?(Xt=(0,V.jsx)(Ze,{className:`size-4`}),Zt=(0,V.jsx)(`span`,{children:`Policies`}),e[200]=Xt,e[201]=Zt):(Xt=e[200],Zt=e[201]);let Qt;e[202]===Yt?Qt=e[203]:(Qt=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-policies`,children:(0,V.jsxs)(G,{isActive:Yt,tooltip:`Policies`,children:[Xt,Zt]})})}),e[202]=Yt,e[203]=Qt);let $t;e[204]===n?$t=e[205]:($t=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[204]=n,e[205]=$t);let en,tn;e[206]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,V.jsx)(ec,{className:`size-4`}),tn=(0,V.jsx)(`span`,{children:`Roles`}),e[206]=en,e[207]=tn):(en=e[206],tn=e[207]);let nn;e[208]===$t?nn=e[209]:(nn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-roles`,children:(0,V.jsxs)(G,{isActive:$t,tooltip:`Roles`,children:[en,tn]})})}),e[208]=$t,e[209]=nn);let rn;e[210]===n?rn=e[211]:(rn=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[210]=n,e[211]=rn);let an,on;e[212]===Symbol.for(`react.memo_cache_sentinel`)?(an=(0,V.jsx)(Es,{className:`size-4`}),on=(0,V.jsx)(`span`,{children:`Instance Profiles`}),e[212]=an,e[213]=on):(an=e[212],on=e[213]);let sn;e[214]===rn?sn=e[215]:(sn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/iam/list-instance-profiles`,children:(0,V.jsxs)(G,{isActive:rn,tooltip:`Instance Profiles`,children:[an,on]})})}),e[214]=rn,e[215]=sn);let cn;e[216]!==Gt||e[217]!==Jt||e[218]!==Qt||e[219]!==nn||e[220]!==sn?(cn=(0,V.jsxs)(Hl,{children:[Vt,(0,V.jsxs)(Wl,{children:[Gt,Jt,Qt,nn,sn]})]}),e[216]=Gt,e[217]=Jt,e[218]=Qt,e[219]=nn,e[220]=sn,e[221]=cn):cn=e[221];let ln;e[222]===Symbol.for(`react.memo_cache_sentinel`)?(ln=(0,V.jsx)(Ul,{children:`S3`}),e[222]=ln):ln=e[222];let un;e[223]===n?un=e[224]:(un=n.startsWith(`/s3/ls`),e[223]=n,e[224]=un);let dn,fn;e[225]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,V.jsx)($e,{className:`size-4`}),fn=(0,V.jsx)(`span`,{children:`Buckets`}),e[225]=dn,e[226]=fn):(dn=e[225],fn=e[226]);let pn;e[227]===un?pn=e[228]:(pn=(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/s3/ls`,children:(0,V.jsxs)(G,{isActive:un,tooltip:`Buckets`,children:[dn,fn]})})}),e[227]=un,e[228]=pn);let mn;e[229]!==o||e[230]!==n?(mn=o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/s3/service-metrics`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,V.jsx)(os,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Service Metrics`})]})})}),e[229]=o,e[230]=n,e[231]=mn):mn=e[231];let hn;e[232]!==pn||e[233]!==mn?(hn=(0,V.jsxs)(Hl,{children:[ln,(0,V.jsxs)(Wl,{children:[pn,mn]})]}),e[232]=pn,e[233]=mn,e[234]=hn):hn=e[234];let gn;e[235]!==o||e[236]!==n?(gn=We()&&(0,V.jsxs)(Hl,{children:[(0,V.jsx)(Ul,{children:`Ochre`}),(0,V.jsxs)(Wl,{children:[(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-knowledge-bases`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-knowledge-bases`),tooltip:`Knowledge Bases`,children:[(0,V.jsx)(fs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Knowledge Bases`})]})})}),(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-guardrails`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-guardrails`),tooltip:`Guardrails`,children:[(0,V.jsx)(Ze,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Guardrails`})]})})}),(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/playground`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/playground`),tooltip:`Playground`,children:[(0,V.jsx)(Bs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Playground`})]})})}),o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-model-catalog`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-model-catalog`),tooltip:`Model Catalog`,children:[(0,V.jsx)(Ps,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Catalog`})]})})}),o&&(0,V.jsx)(W,{children:(0,V.jsx)(A,{to:`/bedrock/list-model-access`,children:(0,V.jsxs)(G,{isActive:n.startsWith(`/bedrock/list-model-access`),tooltip:`Model Access`,children:[(0,V.jsx)(Os,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Access`})]})})})]})]}),e[235]=o,e[236]=n,e[237]=gn):gn=e[237];let _n;e[238]===o?_n=e[239]:(_n=o&&(0,V.jsxs)(Hl,{children:[(0,V.jsx)(Ul,{children:`Documentation`}),(0,V.jsx)(Wl,{children:(0,V.jsx)(W,{children:(0,V.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsxs)(G,{tooltip:`Documentation`,children:[(0,V.jsx)(cs,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Docs`})]})})})})]}),e[238]=o,e[239]=_n);let vn;e[240]!==Bt||e[241]!==cn||e[242]!==hn||e[243]!==gn||e[244]!==_n||e[245]!==Te||e[246]!==ct||e[247]!==g||e[248]!==St?(vn=(0,V.jsxs)(Vl,{children:[g,Te,ct,St,Bt,cn,hn,gn,_n]}),e[240]=Bt,e[241]=cn,e[242]=hn,e[243]=gn,e[244]=_n,e[245]=Te,e[246]=ct,e[247]=g,e[248]=St,e[249]=vn):vn=e[249];let yn;e[250]===Symbol.for(`react.memo_cache_sentinel`)?(yn=(0,V.jsx)(Bl,{className:`mx-0 w-full`}),e[250]=yn):yn=e[250];let bn,Cn;e[251]===Symbol.for(`react.memo_cache_sentinel`)?(bn=(0,V.jsx)(Is,{className:`size-4`}),Cn=(0,V.jsx)(`span`,{children:`Sign out`}),e[251]=bn,e[252]=Cn):(bn=e[251],Cn=e[252]);let wn;e[253]===c?wn=e[254]:(wn=(0,V.jsxs)(zl,{children:[yn,(0,V.jsx)(Wl,{children:(0,V.jsx)(W,{children:(0,V.jsxs)(G,{onClick:c,tooltip:`Sign out`,children:[bn,Cn]})})})]}),e[253]=c,e[254]=wn);let Tn;e[255]===Symbol.for(`react.memo_cache_sentinel`)?(Tn=(0,V.jsx)(Ll,{}),e[255]=Tn):Tn=e[255];let En;return e[256]!==vn||e[257]!==wn?(En=(0,V.jsxs)(Fl,{collapsible:`icon`,children:[l,vn,wn,Tn]}),e[256]=vn,e[257]=wn,e[258]=En):En=e[258],En}function nu(e){return e.pathname}function ru(e){let t=(0,U.c)(18),{error:n,reset:r}=e,i=De(),o=a(),s;t[0]!==o||t[1]!==r||t[2]!==i?(s=function(){o.invalidateQueries(),r(),i.invalidate()},t[0]=o,t[1]=r,t[2]=i,t[3]=s):s=t[3];let c=s,l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(tu,{}),t[4]=l):l=t[4];let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)($l,{}),t[5]=u):u=t[5];let d,f;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`div`,{className:`flex justify-center`,children:(0,V.jsx)(ms,{className:`size-12 text-destructive`})}),f=(0,V.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=d,t[7]=f):(d=t[6],f=t[7]);let p=(n instanceof Error?n.message:String(n))||`An unexpected error occurred`,m;t[8]===p?m=t[9]:(m=(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:p}),t[8]=p,t[9]=m);let h;t[10]===c?h=t[11]:(h=(0,V.jsx)(mt,{onClick:c,variant:`default`,children:`Try Again`}),t[10]=c,t[11]=h);let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(A,{to:`/`,children:(0,V.jsx)(mt,{variant:`outline`,children:`Go Home`})}),t[12]=g):g=t[12];let _;t[13]===h?_=t[14]:(_=(0,V.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[h,g]}),t[13]=h,t[14]=_);let v;return t[15]!==_||t[16]!==m?(v=(0,V.jsxs)(V.Fragment,{children:[l,(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[u,(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,V.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[d,f,m,_]})})]})]}),t[15]=_,t[16]=m,t[17]=v):v=t[17],v}var K=E()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Xo,{}),(0,V.jsx)(tu,{}),(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,V.jsx)($l,{}),(0,V.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,V.jsx)(be,{})})]})]}),errorComponent:ru,notFoundComponent:eu}),iu=w(`/_auth`)({beforeLoad:()=>{if(!qe())throw we({to:`/login`})},component:D(()=>F(()=>import(`./route-ri79I-mW.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),au=w(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...Ln,staleTime:`static`}),e.queryClient.query({...On,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...Bn,staleTime:`static`}),e.queryClient.query({...sr,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...Nn,staleTime:`static`}),e.queryClient.query({...Rn,staleTime:`static`}),e.queryClient.query({...Fn,staleTime:`static`})])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:D(()=>F(()=>import(`./_auth-CQN6uKek.js`),__vite__mapDeps([6,1,7,8,9,10,11,4,5,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])),`component`)}),ou=w(`/_auth/bedrock`)({beforeLoad:()=>{We()||xe({throw:!0})},component:D(()=>F(()=>import(`./route-CAwLPdN1.js`),__vite__mapDeps([40,1,2,3,4,5])),`component`)}),su=w(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:D(()=>F(()=>import(`./nodes-DuOlBrgk.js`),__vite__mapDeps([41,1,7,8,9,10,11,4,5,42,12,13,15,14,16,19,20,21,27,28,29,30,31,32,23])),`component`)}),cu=w(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./service-metrics-BVlT0eqC.js`),__vite__mapDeps([43,1,7,8,9,10,42,19,12,13,20,21,27,28,29,30,31,32,23])),`component`)}),lu=w(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./allocate-address-Cj5JFsW1.js`),__vite__mapDeps([44,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),uu=w(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-internet-gateway-Cpxiz-Mj.js`),__vite__mapDeps([64,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),du=w(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-key-pair-CAViKLoj.js`),__vite__mapDeps([65,1,45,4,5,46,11,14,48,66,36,29,12,13,34,37,15,52,38,67,68,53,69,70,47,49,50,71,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,33,35,63])),`component`)}),fu=w(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./import-key-pair-BivCaRzr.js`),__vite__mapDeps([72,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,73,63])),`component`)}),pu=w(`/_auth/ec2/(launch-templates)/create-launch-template`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...zn,staleTime:`static`}),e.queryClient.query({...Pn,staleTime:`static`}),e.queryClient.query({...Bn,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Launch Template | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-launch-template-CZvRqBCG.js`),__vite__mapDeps([74,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63,75,76,8,10,66,36,38,67,68,69,73,77])),`component`)}),mu=w(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...Xn,staleTime:`static`}),e.queryClient.query({...wn,staleTime:`static`}),e.queryClient.query({...Yn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-load-balancer--N6lPrkX.js`),__vite__mapDeps([78,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,79,23,24,25,80,55,56,59,61,62,73,33,35,22,81,82,83,27,58,60,84,85,86,87,77,88])),`component`)}),hu=w(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...Rn,staleTime:`static`})])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-nat-gateway-z5NzuiEa.js`),__vite__mapDeps([89,1,76,8,9,10,11,4,5,45,12,13,46,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),gu=w(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-placement-group-D_o6h2Gq.js`),__vite__mapDeps([90,1,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),_u=w(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-route-table-0q7LO8Yz.js`),__vite__mapDeps([91,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),vu=w(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-security-group-BVBSieXt.js`),__vite__mapDeps([92,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),yu=w(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...Vn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-subnet-D6P8yW2z.js`),__vite__mapDeps([93,1,76,8,9,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),bu=w(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-target-group-D5bQ4Fa3.js`),__vite__mapDeps([94,1,76,8,9,10,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,22,23,24,25,81,55,56,82,27,58,59,60,87,66,36,37,52,38,67,68,53,69,51,61,62,84,85,86,77,88])),`component`)}),xu=w(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.query({...Vn,staleTime:`static`})},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-volume-BjkVTXNd.js`),__vite__mapDeps([95,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,54,55,56,57,27,58,59,60,61,62,63])),`component`)}),Su=w(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./create-vpc-HC_JSJiq.js`),__vite__mapDeps([96,1,45,4,5,46,11,14,15,16,66,36,29,12,13,34,37,48,52,38,67,68,53,69,47,49,50,51,54,9,55,56,24,25,22,23,57,27,58,59,60,61,62,63])),`component`)}),Cu=w(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.query({...Kn,staleTime:`static`})},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:D(()=>F(()=>import(`./task-definitions-CSGupk2f.js`),__vite__mapDeps([97,1,76,8,9,10,11,4,5,34,29,12,13,98,23,24,25,99,55,56,21,27,59,100,33,35,36,37,38,101])),`component`)}),wu=w(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...tr,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:D(()=>F(()=>import(`./create-cluster-CGyNwlKq.js`),__vite__mapDeps([102,1,9,76,8,10,45,4,5,12,13,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,51,22,23,24,25,103,55,56,104,105,57,106,107,108,27,58,59,60,61,62,33,35,109,110,49,111,71,50,112])),`component`)}),Tu=w(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-group-B3B-V6J_.js`),__vite__mapDeps([113,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Eu=w(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-instance-profile-Do0eBh4w.js`),__vite__mapDeps([115,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Du=w(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-policy-CL2P-ufC.js`),__vite__mapDeps([116,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,117,105,73,114])),`component`)}),Ou=w(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-role-CAJVw8Kr.js`),__vite__mapDeps([118,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,117,105,73,114])),`component`)}),ku=w(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./create-user-BE9h67_n.js`),__vite__mapDeps([119,1,45,4,5,46,11,14,47,12,13,48,15,49,34,29,50,51,37,52,53,106,9,55,56,24,25,107,27,58,59,60,61,62,114,105])),`component`)}),Au=w(`/_auth/rds/(db-instances)/create-db-instance`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...ar,staleTime:`static`}),e.queryClient.query({...ir,staleTime:`static`}),e.queryClient.query({...rr,staleTime:`static`}),e.queryClient.query({...Hn,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Create Database | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-instance-CFzM44Sn.js`),__vite__mapDeps([120,1,9,7,8,10,76,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,22,23,24,25,121,122,55,56,123,27,58,59,60,61,62,84,85,86,109,110,111,71,124,125])),`component`)}),ju=w(`/_auth/rds/(parameter-groups)/create-db-parameter-group`)({loader:async({context:e})=>{await e.queryClient.query({...ar,staleTime:`static`})},head:()=>({meta:[{title:`Create Parameter Group | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-parameter-group-CUcSdIga.js`),__vite__mapDeps([126,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,47,49,50,51,121,24,25,122,55,56,123,23,27,58,59,60,61,62,84,85,86])),`component`)}),Mu=w(`/_auth/rds/(subnet-groups)/create-db-subnet-group`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...jn,staleTime:`static`}),e.queryClient.query({...An,staleTime:`static`})])},head:()=>({meta:[{title:`Create Subnet Group | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./create-db-subnet-group-CuUW4IsJ.js`),__vite__mapDeps([127,1,76,8,9,10,45,4,5,12,13,46,11,14,47,48,15,49,34,29,50,51,37,52,53,22,23,24,25,121,122,55,56,27,58,59,60,61,62,84,85,86])),`component`)}),Nu=w(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./create-bucket-eeiuIrsW.js`),__vite__mapDeps([128,1,45,4,5,12,13,46,11,14,47,48,15,49,34,29,50,51,37,52,53,129,9,55,56,24,25,27,58,59,60,61,62])),`component`)}),Pu=w(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.query({...sr,staleTime:`static`})},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:D(()=>F(()=>import(`./ls-CWzC4f47.js`),__vite__mapDeps([130,1,76,8,9,10,11,4,5,12,13,34,29,26,23,24,25,27,131])),`component`)}),Fu=w(`/_auth/s3/ls/$bucket`)({component:D(()=>F(()=>import(`./route-MJhrpG5n.js`),__vite__mapDeps([132,1,2,3,4,5])),`component`)}),Iu=w(`/_auth/bedrock/(catalog)/list-model-catalog/`)({head:()=>({meta:[{title:`Model Catalog | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-model-catalog-CeG1beQW.js`),__vite__mapDeps([133,1,7,8,9,10,42,12,13,19,20,21,27,28,29,30,31,32,23])),`component`)}),Lu=w(`/_auth/bedrock/(guardrails)/list-guardrails/`)({loader:async({context:e})=>{await e.queryClient.query({...Tn,staleTime:`static`})},head:()=>({meta:[{title:`Guardrails | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-guardrails-Cq4kt2fN.js`),__vite__mapDeps([134,1,76,8,9,10,11,4,5,34,29,12,13,135,23,24,25,136,27,39,131])),`component`)}),Ru=w(`/_auth/bedrock/(guardrails)/list-guardrails/create`)({head:()=>({meta:[{title:`Create Guardrail | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./create-DTpWMMJH.js`),__vite__mapDeps([137,1,138,9,55,56,12,13,24,25,136,139,45,4,5,46,11,14,66,36,29,34,37,48,15,52,38,67,68,53,69,85,86,51,27,58,59,60,61,62,84,73])),`component`)}),zu=w(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/`)({loader:async({context:e})=>{await e.queryClient.query({...Dn,staleTime:`static`})},head:()=>({meta:[{title:`Knowledge Bases | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-knowledge-bases-BJaqqlKH.js`),__vite__mapDeps([140,1,76,8,9,10,11,4,5,34,29,12,13,141,23,24,25,142,27,39,131])),`component`)}),Bu=w(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/create`)({loader:async({context:e})=>{await e.queryClient.query({...En,staleTime:`static`})},head:()=>({meta:[{title:`Create Knowledge Base | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./create-BO1fFlSv.js`),__vite__mapDeps([143,1,76,8,9,10,45,4,5,46,11,14,66,36,29,12,13,34,37,48,15,52,38,67,68,53,69,51,135,23,24,25,136,144,55,56,142,27,58,59,60,61,62,73])),`component`)}),Vu=w(`/_auth/bedrock/(model-access)/list-model-access/`)({head:()=>({meta:[{title:`Model Access | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./list-model-access-_5zWqGCi.js`),__vite__mapDeps([145,1,9,55,56,7,8,10,42,66,36,29,12,13,34,37,14,48,15,52,38,5,67,68,53,69,51,19,20,21,27,28,30,31,32,23,61,62])),`component`)}),Hu=w(`/_auth/bedrock/(playground)/playground/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...En,staleTime:`static`}),e.queryClient.query({...Tn,staleTime:`static`})])},head:()=>({meta:[{title:`Playground | Ochre | Mulga`}]}),component:D(()=>F(()=>import(`./playground-Cush5Er_.js`),__vite__mapDeps([146,1,55,9,56,76,8,10,12,13,15,14,66,36,29,34,37,48,52,38,5,67,68,53,69,47,49,50,51,24,25,135,23,136,147,27,28,30,61,62,73])),`component`)}),Uu=w(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.query({...Rn,staleTime:`static`})},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-addresses-CX48-jv1.js`),__vite__mapDeps([148,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,131])),`component`)}),Wu=w(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.query({...zn,staleTime:`static`})},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-images-DU3F5FiN.js`),__vite__mapDeps([149,1,76,8,9,10,22,23,12,13,24,25,27,39,131,11,4,5,109])),`component`)}),Gu=w(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.query({...Ln,staleTime:`static`})},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-instances-2mfa0kO7.js`),__vite__mapDeps([150,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),Ku=w(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.query({...Fn,staleTime:`static`})},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-internet-gateways-BCKNPwC9.js`),__vite__mapDeps([151,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,131])),`component`)}),qu=w(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.query({...Bn,staleTime:`static`})},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-key-pairs-BFrqVQj0.js`),__vite__mapDeps([152,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,131])),`component`)}),Ju=w(`/_auth/ec2/(launch-templates)/describe-launch-templates/`)({loader:async({context:e})=>{await e.queryClient.query({...In,staleTime:`static`})},head:()=>({meta:[{title:`Launch Templates | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-launch-templates-CacWu1yX.js`),__vite__mapDeps([153,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,28,30,131])),`component`)}),Yu=w(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.query({...Jn,staleTime:`static`})},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-load-balancers-DAKWE795.js`),__vite__mapDeps([154,1,76,8,9,10,11,4,5,45,12,13,34,29,83,23,24,25,82,27,39])),`component`)}),Xu=w(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.query({...Nn,staleTime:`static`})},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-nat-gateways-DGO7NhS6.js`),__vite__mapDeps([155,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),Zu=w(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Un,staleTime:`static`})},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-placement-groups-Cn4M8Qw5.js`),__vite__mapDeps([156,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),Qu=w(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.query({...Mn,staleTime:`static`})},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-route-tables-B85w9Xcr.js`),__vite__mapDeps([157,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,28,30,131])),`component`)}),q=w(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Hn,staleTime:`static`})},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-security-groups-CorF76Fg.js`),__vite__mapDeps([158,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,131])),`component`)}),$u=w(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.query({...kn,staleTime:`static`})},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-snapshots-C4LyUqXx.js`),__vite__mapDeps([159,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),J=w(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.query({...jn,staleTime:`static`})},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-subnets-DgMQfiqj.js`),__vite__mapDeps([160,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),Y=w(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...Xn,staleTime:`static`})},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-target-groups-BmI4rGfj.js`),__vite__mapDeps([161,1,7,8,9,10,76,11,4,5,45,34,29,12,13,83,23,24,25,82,27])),`component`)}),X=w(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.query({...On,staleTime:`static`})},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-volumes-COLmjwXx.js`),__vite__mapDeps([162,1,76,8,9,10,11,4,5,34,29,12,13,22,23,24,25,27,39,131])),`component`)}),ed=w(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.query({...An,staleTime:`static`})},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:D(()=>F(()=>import(`./describe-vpcs-BnIpgEwn.js`),__vite__mapDeps([163,1,76,8,9,10,11,4,5,12,13,34,29,22,23,24,25,27,39,131])),`component`)}),td=w(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.query({...Wn,staleTime:`static`})},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:D(()=>F(()=>import(`./list-repositories-CFHE_leH.js`),__vite__mapDeps([164,1,76,8,9,10,11,4,5,45,12,13,34,29,51,37,52,53,165,23,24,25,166,55,56,27,61,62,33,35,36,38])),`component`)}),nd=w(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.query({...Gn,staleTime:`static`}),e.queryClient.query({...zn,staleTime:`static`})])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:D(()=>F(()=>import(`./list-clusters-CYIpXZk9.js`),__vite__mapDeps([167,1,9,76,8,10,11,4,5,45,34,29,12,13,51,37,52,53,22,23,24,25,98,99,55,56,21,27,59,61,62,33,35,36,38,100,39,109,110,48,14,49,111,71,50,101])),`component`)}),rd=w(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.query({...qn,staleTime:`static`})},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:D(()=>F(()=>import(`./list-clusters-Blcu3VSI.js`),__vite__mapDeps([168,1,76,8,9,10,11,4,5,34,29,12,13,169,23,24,25,104,27,131])),`component`)}),id=w(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...$n,staleTime:`static`})},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-groups-D6hjD6YQ.js`),__vite__mapDeps([170,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),ad=w(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.query({...Qn,staleTime:`static`})},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-instance-profiles-INcvr5n3.js`),__vite__mapDeps([171,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),od=w(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.query({...er,staleTime:`static`})},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-policies-DPQJyoNC.js`),__vite__mapDeps([172,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),sd=w(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.query({...tr,staleTime:`static`})},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-roles-D20fg59j.js`),__vite__mapDeps([173,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),cd=w(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.query({...Zn,staleTime:`static`})},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:D(()=>F(()=>import(`./list-users-DRJSk6hA.js`),__vite__mapDeps([174,1,76,8,9,10,11,4,5,34,29,12,13,108,23,24,25,107,105,27,131])),`component`)}),ld=w(`/_auth/rds/(db-instances)/describe-db-instances/`)({loader:async({context:e})=>{await e.queryClient.query({...or,staleTime:`static`})},head:()=>({meta:[{title:`Databases | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-instances-CLwlt50q.js`),__vite__mapDeps([175,1,76,8,9,10,11,4,5,45,34,29,12,13,121,24,25,122,55,56,123,23,27,59,39,176,51,37,52,53,61,62,33,35,36,38])),`component`)}),ud=w(`/_auth/rds/(parameter-groups)/describe-db-parameter-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...rr,staleTime:`static`})},head:()=>({meta:[{title:`Parameter Groups | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-parameter-groups-Xj7h_agu.js`),__vite__mapDeps([177,1,76,8,9,10,11,4,5,45,34,29,12,13,121,24,25,123,23,27,178,122,55,56,179,100,33,35,36,37,38])),`component`)}),dd=w(`/_auth/rds/(snapshots)/describe-db-snapshots/`)({loader:async({context:e})=>{await e.queryClient.query({...nr,staleTime:`static`})},head:()=>({meta:[{title:`Snapshots | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-snapshots-ByVAmk9k.js`),__vite__mapDeps([180,1,76,8,9,10,11,4,5,45,12,13,34,29,121,24,25,123,23,27,39,181,7,66,36,37,14,48,15,52,38,67,68,53,69,51,122,55,56,58,61,62,84,85,86,33,35,124,182,179,100])),`component`)}),fd=w(`/_auth/rds/(subnet-groups)/describe-db-subnet-groups/`)({loader:async({context:e})=>{await e.queryClient.query({...ir,staleTime:`static`})},head:()=>({meta:[{title:`Subnet Groups | RDS | Mulga`}]}),component:D(()=>F(()=>import(`./describe-db-subnet-groups-B0xn02S1.js`),__vite__mapDeps([183,1,76,8,9,10,11,4,5,45,34,29,12,13,123,23,24,25,121,27,39,184,122,55,56,179,100,33,35,36,37,38])),`component`)}),Z=iu.update({id:`/_auth`,getParentRoute:()=>K}),pd=cr.update({id:`/login`,path:`/login`,getParentRoute:()=>K}),md=au.update({id:`/`,path:`/`,getParentRoute:()=>Z}),hd=ou.update({id:`/bedrock`,path:`/bedrock`,getParentRoute:()=>Z}),gd=su.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>Z}),_d=cu.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>Z}),vd=lu.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>Z}),yd=lr.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>Z}),bd=uu.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>Z}),xd=du.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>Z}),Sd=fu.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>Z}),Cd=pu.update({id:`/ec2/(launch-templates)/create-launch-template`,path:`/ec2/create-launch-template`,getParentRoute:()=>Z}),wd=mu.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>Z}),Td=hu.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>Z}),Ed=gu.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>Z}),Dd=_u.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>Z}),Od=vu.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>Z}),kd=ur.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>Z}),Ad=yu.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>Z}),jd=bu.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>Z}),Md=xu.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>Z}),Nd=Su.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>Z}),Pd=dr.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>Z}),Fd=fr.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>Z}),Id=pr.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>Z}),Ld=Cu.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>Z}),Rd=wu.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>Z}),zd=Tu.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>Z}),Bd=Eu.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>Z}),Vd=Du.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>Z}),Hd=Ou.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>Z}),Ud=ku.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>Z}),Wd=Au.update({id:`/rds/(db-instances)/create-db-instance`,path:`/rds/create-db-instance`,getParentRoute:()=>Z}),Gd=ju.update({id:`/rds/(parameter-groups)/create-db-parameter-group`,path:`/rds/create-db-parameter-group`,getParentRoute:()=>Z}),Kd=Mu.update({id:`/rds/(subnet-groups)/create-db-subnet-group`,path:`/rds/create-db-subnet-group`,getParentRoute:()=>Z}),qd=Nu.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>Z}),Jd=Pu.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>Z}),Yd=Fu.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>Z}),Xd=Iu.update({id:`/(catalog)/list-model-catalog/`,path:`/list-model-catalog/`,getParentRoute:()=>hd}),Zd=Lu.update({id:`/(guardrails)/list-guardrails/`,path:`/list-guardrails/`,getParentRoute:()=>hd}),Qd=Ru.update({id:`/(guardrails)/list-guardrails/create`,path:`/list-guardrails/create`,getParentRoute:()=>hd}),$d=zu.update({id:`/(knowledge-bases)/list-knowledge-bases/`,path:`/list-knowledge-bases/`,getParentRoute:()=>hd}),ef=mr.update({id:`/(knowledge-bases)/list-knowledge-bases/$knowledgeBaseId`,path:`/list-knowledge-bases/$knowledgeBaseId`,getParentRoute:()=>hd}),tf=Bu.update({id:`/(knowledge-bases)/list-knowledge-bases/create`,path:`/list-knowledge-bases/create`,getParentRoute:()=>hd}),nf=Vu.update({id:`/(model-access)/list-model-access/`,path:`/list-model-access/`,getParentRoute:()=>hd}),rf=Hu.update({id:`/(playground)/playground/`,path:`/playground/`,getParentRoute:()=>hd}),af=Uu.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>Z}),of=hr.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>Z}),sf=Wu.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>Z}),cf=gr.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>Z}),lf=Gu.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>Z}),uf=_r.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>Z}),df=Ku.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>Z}),ff=vr.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>Z}),Q=qu.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>Z}),pf=yr.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>Z}),mf=Ju.update({id:`/ec2/(launch-templates)/describe-launch-templates/`,path:`/ec2/describe-launch-templates/`,getParentRoute:()=>Z}),hf=br.update({id:`/ec2/(launch-templates)/describe-launch-templates/$id`,path:`/ec2/describe-launch-templates/$id`,getParentRoute:()=>Z}),gf=Yu.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>Z}),_f=xr.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>Z}),vf=Xu.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>Z}),yf=Sr.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>Z}),bf=Zu.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>Z}),xf=Cr.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>Z}),Sf=Qu.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>Z}),Cf=wr.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>Z}),wf=q.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>Z}),Tf=ct.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>Z}),Ef=$u.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>Z}),Df=rt.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>Z}),Of=J.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>Z}),kf=Tr.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>Z}),Af=Y.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>Z}),jf=Er.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>Z}),Mf=X.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>Z}),Nf=Dr.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>Z}),Pf=Or.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>Z}),Ff=ed.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>Z}),If=kr.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>Z}),Lf=td.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>Z}),Rf=Ar.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>Z}),zf=nd.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>Z}),Bf=jr.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>Z}),$=rd.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>Z}),Vf=ot.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>Z}),Hf=id.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>Z}),Uf=Mr.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>Z}),Wf=ad.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>Z}),Gf=Nr.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>Z}),Kf=od.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>Z}),qf=Pr.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>Z}),Jf=sd.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>Z}),Yf=Fr.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>Z}),Xf=cd.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>Z}),Zf=Ir.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>Z}),Qf=ld.update({id:`/rds/(db-instances)/describe-db-instances/`,path:`/rds/describe-db-instances/`,getParentRoute:()=>Z}),$f=Lr.update({id:`/rds/(db-instances)/describe-db-instances/$id`,path:`/rds/describe-db-instances/$id`,getParentRoute:()=>Z}),ep=ud.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/`,path:`/rds/describe-db-parameter-groups/`,getParentRoute:()=>Z}),tp=Rr.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/$name`,path:`/rds/describe-db-parameter-groups/$name`,getParentRoute:()=>Z}),np=dd.update({id:`/rds/(snapshots)/describe-db-snapshots/`,path:`/rds/describe-db-snapshots/`,getParentRoute:()=>Z}),rp=zr.update({id:`/rds/(snapshots)/describe-db-snapshots/$id`,path:`/rds/describe-db-snapshots/$id`,getParentRoute:()=>Z}),ip=Br.update({id:`/rds/(snapshots)/restore-db-instance-from-db-snapshot/$id`,path:`/rds/restore-db-instance-from-db-snapshot/$id`,getParentRoute:()=>Z}),ap=fd.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/`,path:`/rds/describe-db-subnet-groups/`,getParentRoute:()=>Z}),op=Vr.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/$name`,path:`/rds/describe-db-subnet-groups/$name`,getParentRoute:()=>Z}),sp=Hr.update({id:`/`,path:`/`,getParentRoute:()=>Yd}),cp=Ur.update({id:`/$`,path:`/$`,getParentRoute:()=>Yd}),lp=Wr.update({id:`/(guardrails)/list-guardrails/$guardrailId/`,path:`/list-guardrails/$guardrailId/`,getParentRoute:()=>hd}),up=Gr.update({id:`/(guardrails)/list-guardrails/$guardrailId/edit`,path:`/list-guardrails/$guardrailId/edit`,getParentRoute:()=>hd}),dp=Kr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>Z}),fp=qr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>Z}),pp={AuthBedrockguardrailsListGuardrailsCreateRoute:Qd,AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRoute:ef,AuthBedrockknowledgeBasesListKnowledgeBasesCreateRoute:tf,AuthBedrockcatalogListModelCatalogIndexRoute:Xd,AuthBedrockguardrailsListGuardrailsIndexRoute:Zd,AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute:$d,AuthBedrockmodelAccessListModelAccessIndexRoute:nf,AuthBedrockplaygroundPlaygroundIndexRoute:rf,AuthBedrockguardrailsListGuardrailsGuardrailIdEditRoute:up,AuthBedrockguardrailsListGuardrailsGuardrailIdIndexRoute:lp},mp=hd._addFileChildren(pp),hp={AuthS3LsBucketSplatRoute:cp,AuthS3LsBucketIndexRoute:sp},gp={AuthBedrockRouteRoute:mp,AuthNodesRoute:gd,AuthIndexRoute:md,AuthS3ServiceMetricsRoute:_d,AuthS3LsBucketRouteRoute:Yd._addFileChildren(hp),AuthEc2elasticIpsAllocateAddressRoute:vd,AuthEc2instancesRunInstancesRoute:yd,AuthEc2internetGatewaysCreateInternetGatewayRoute:bd,AuthEc2keyCreateKeyPairRoute:xd,AuthEc2keyImportKeyPairRoute:Sd,AuthEc2launchTemplatesCreateLaunchTemplateRoute:Cd,AuthEc2loadBalancersCreateLoadBalancerRoute:wd,AuthEc2natGatewaysCreateNatGatewayRoute:Td,AuthEc2placementGroupsCreatePlacementGroupRoute:Ed,AuthEc2routeTablesCreateRouteTableRoute:Dd,AuthEc2securityGroupsCreateSecurityGroupRoute:Od,AuthEc2snapshotsCreateSnapshotRoute:kd,AuthEc2subnetCreateSubnetRoute:Ad,AuthEc2targetGroupsCreateTargetGroupRoute:jd,AuthEc2volumesCreateVolumeRoute:Md,AuthEc2vpcCreateVpcRoute:Nd,AuthEcsclustersCreateServiceRoute:Pd,AuthEcsclustersRegisterTaskDefinitionRoute:Fd,AuthEcsclustersRunTaskRoute:Id,AuthEcsclustersTaskDefinitionsRoute:Ld,AuthEksclustersCreateClusterRoute:Rd,AuthIamgroupsCreateGroupRoute:zd,AuthIaminstanceProfilesCreateInstanceProfileRoute:Bd,AuthIampoliciesCreatePolicyRoute:Vd,AuthIamrolesCreateRoleRoute:Hd,AuthIamusersCreateUserRoute:Ud,AuthRdsdbInstancesCreateDbInstanceRoute:Wd,AuthRdsparameterGroupsCreateDbParameterGroupRoute:Gd,AuthRdssubnetGroupsCreateDbSubnetGroupRoute:Kd,AuthS3bucketsCreateBucketRoute:qd,AuthS3LsIndexRoute:Jd,AuthEc2elasticIpsDescribeAddressesIdRoute:of,AuthEc2imagesDescribeImagesIdRoute:cf,AuthEc2instancesDescribeInstancesIdRoute:uf,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:ff,AuthEc2keyDescribeKeyPairsIdRoute:pf,AuthEc2launchTemplatesDescribeLaunchTemplatesIdRoute:hf,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:_f,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:yf,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:xf,AuthEc2routeTablesDescribeRouteTablesIdRoute:Cf,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:Tf,AuthEc2snapshotsDescribeSnapshotsIdRoute:Df,AuthEc2subnetDescribeSubnetsIdRoute:kf,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:jf,AuthEc2volumesDescribeVolumesIdRoute:Nf,AuthEc2volumesModifyVolumeIdRoute:Pf,AuthEc2vpcDescribeVpcsIdRoute:If,AuthEcrrepositoriesListRepositoriesIdRoute:Rf,AuthEcsclustersListClustersClusterNameRoute:Bf,AuthEksclustersListClustersClusterNameRoute:Vf,AuthIamgroupsListGroupsGroupNameRoute:Uf,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:Gf,AuthIampoliciesListPoliciesPolicyArnRoute:qf,AuthIamrolesListRolesRoleNameRoute:Yf,AuthIamusersListUsersUserNameRoute:Zf,AuthRdsdbInstancesDescribeDbInstancesIdRoute:$f,AuthRdsparameterGroupsDescribeDbParameterGroupsNameRoute:tp,AuthRdssnapshotsDescribeDbSnapshotsIdRoute:rp,AuthRdssnapshotsRestoreDbInstanceFromDbSnapshotIdRoute:ip,AuthRdssubnetGroupsDescribeDbSubnetGroupsNameRoute:op,AuthEc2elasticIpsDescribeAddressesIndexRoute:af,AuthEc2imagesDescribeImagesIndexRoute:sf,AuthEc2instancesDescribeInstancesIndexRoute:lf,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:df,AuthEc2keyDescribeKeyPairsIndexRoute:Q,AuthEc2launchTemplatesDescribeLaunchTemplatesIndexRoute:mf,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:gf,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:vf,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:bf,AuthEc2routeTablesDescribeRouteTablesIndexRoute:Sf,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:wf,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Ef,AuthEc2subnetDescribeSubnetsIndexRoute:Of,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Af,AuthEc2volumesDescribeVolumesIndexRoute:Mf,AuthEc2vpcDescribeVpcsIndexRoute:Ff,AuthEcrrepositoriesListRepositoriesIndexRoute:Lf,AuthEcsclustersListClustersIndexRoute:zf,AuthEksclustersListClustersIndexRoute:$,AuthIamgroupsListGroupsIndexRoute:Hf,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Wf,AuthIampoliciesListPoliciesIndexRoute:Kf,AuthIamrolesListRolesIndexRoute:Jf,AuthIamusersListUsersIndexRoute:Xf,AuthRdsdbInstancesDescribeDbInstancesIndexRoute:Qf,AuthRdsparameterGroupsDescribeDbParameterGroupsIndexRoute:ep,AuthRdssnapshotsDescribeDbSnapshotsIndexRoute:np,AuthRdssubnetGroupsDescribeDbSubnetGroupsIndexRoute:ap,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:dp,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:fp},_p={AuthRouteRoute:Z._addFileChildren(gp),LoginRoute:pd},vp=K._addFileChildren(_p)._addFileTypes(),yp=Zl(),bp=H({routeTree:vp,context:{queryClient:yp},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0});async function xp(e){try{await Ke()}catch(t){e.render((0,V.jsxs)(`div`,{style:{fontFamily:`sans-serif`,margin:`4rem auto`,maxWidth:`40rem`},children:[(0,V.jsx)(`h1`,{children:`Console unavailable`}),(0,V.jsx)(`p`,{children:`This cluster did not report its region, so the console cannot sign requests. Check that the serving node has a region set in its configuration.`}),(0,V.jsx)(`pre`,{children:t instanceof Error?t.message:String(t)})]}));return}e.render((0,V.jsx)(B.StrictMode,{children:(0,V.jsx)(rs,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,V.jsx)(p,{client:yp,children:(0,V.jsx)(Cn,{children:(0,V.jsx)(Ml,{children:(0,V.jsx)(Uo,{router:bp})})})})})}))}var Sp=document.querySelector(`#app`);Sp&&!Sp.innerHTML&&await xp(es.createRoot(Sp)); \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances-DAHwEmVQ.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances-IlcZaw6e.js similarity index 90% rename from spinifex/services/spinifexui/frontend/dist/assets/run-instances-DAHwEmVQ.js rename to spinifex/services/spinifexui/frontend/dist/assets/run-instances-IlcZaw6e.js index 7f824823a..55071900f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances-DAHwEmVQ.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances-IlcZaw6e.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/run-instances-BjKJclfU.js","assets/compiler-runtime-D_vZfn79.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/chevron-down-Dt4q6d24.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/cli-command-panel-4C78XA6W.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-B8rwH6Fi.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js","assets/system-managed-Dk7ySh_E.js","assets/gpu-instance-type-select-BhiDEfOH.js","assets/collapsible-C1lL0Zbp.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{_ as n,h as r,ut as i}from"./cluster-config-DNNpxkEw.js";import{M as a,O as o,c as s,h as c,o as l,p as u,w as d,y as f}from"./ec2-BzWGOxUI.js";var p=()=>i(()=>import(`./run-instances-BjKJclfU.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])),m=r({launchTemplateId:n().optional().catch(void 0),launchTemplateVersion:n().optional().catch(void 0)}),h=e(`/_auth/ec2/(instances)/run-instances`)({validateSearch:m,loader:async({context:e})=>{await Promise.all([e.queryClient.query({...l,staleTime:`static`}),e.queryClient.query({...u,staleTime:`static`}),e.queryClient.query({...s,staleTime:`static`}),e.queryClient.query({...o,staleTime:`static`}),e.queryClient.query({...f,staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...d,staleTime:`static`}),e.queryClient.query({...c,staleTime:`static`})])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:t(p,`component`)});export{h as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/run-instances-tb1i6-Eb.js","assets/compiler-runtime-D_vZfn79.js","assets/useQuery-2EKf7AyV.js","assets/useBaseQuery-Dqg0ViLa.js","assets/removable-Dwr9otKB.js","assets/query-BPr_oSEg.js","assets/useSuspenseQuery-Bc7E1P-f.js","assets/useNavigate-CTe_-BZA.js","assets/useSelector-C6_B_5v6.js","assets/with-selector-DrM041uv.js","assets/cluster-config-DNNpxkEw.js","assets/hex-encoding-CVnQo5PF.js","assets/back-link-wsXUoJ12.js","assets/link-BokOReHc.js","assets/createLucideIcon-BQgzNCBR.js","assets/chevron-down-Dt4q6d24.js","assets/select-sbVkpt-r.js","assets/useValueAsRef-BRYYjd2W.js","assets/dist-DEhWxN7p.js","assets/button-C9VMD5Xn.js","assets/createBaseUIEventDetails-sqRELvD6.js","assets/check-BO7W8OSs.js","assets/useValueChanged-3krk2xbP.js","assets/useScrollLock-aaqhvzFs.js","assets/usePositioner-xrDm0DAw.js","assets/DirectionContext-C9rdm8xn.js","assets/useControlled-DwxdYHYK.js","assets/useCompositeListItem-j3SLKnjj.js","assets/cli-command-panel-4C78XA6W.js","assets/copy-CamWo-pg.js","assets/use-copy-to-clipboard-DjiD3qo6.js","assets/input-CBUMH1Jl.js","assets/ec2-BzWGOxUI.js","assets/queryOptions-Dfvzj6n2.js","assets/awsClient-Bm9ksq2r.js","assets/index.browser-DuXQj3EI.js","assets/ec2-BXFEIaSs.js","assets/useMutation-6rdxVQpi.js","assets/mutation-BziiWz5u.js","assets/subnet-calculator-DDrAb5xp.js","assets/page-heading-vksh_67w.js","assets/zod-A4qtKH_p.js","assets/error-banner-DeOeVBKS.js","assets/field-BKQO3cRo.js","assets/separator-BFSV8f2Y.js","assets/ec2-CSDTsDKe.js","assets/system-managed-Dk7ySh_E.js","assets/gpu-instance-type-select-BhiDEfOH.js","assets/collapsible-C1lL0Zbp.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-D0nAq0Je.js";import{_ as n,h as r,ut as i}from"./cluster-config-DNNpxkEw.js";import{M as a,O as o,c as s,h as c,o as l,p as u,w as d,y as f}from"./ec2-BzWGOxUI.js";var p=()=>i(()=>import(`./run-instances-tb1i6-Eb.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])),m=r({launchTemplateId:n().optional().catch(void 0),launchTemplateVersion:n().optional().catch(void 0)}),h=e(`/_auth/ec2/(instances)/run-instances`)({validateSearch:m,loader:async({context:e})=>{await Promise.all([e.queryClient.query({...l,staleTime:`static`}),e.queryClient.query({...u,staleTime:`static`}),e.queryClient.query({...s,staleTime:`static`}),e.queryClient.query({...o,staleTime:`static`}),e.queryClient.query({...f,staleTime:`static`}),e.queryClient.query({...a,staleTime:`static`}),e.queryClient.query({...d,staleTime:`static`}),e.queryClient.query({...c,staleTime:`static`})])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:t(p,`component`)});export{h as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances-BjKJclfU.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances-tb1i6-Eb.js similarity index 99% rename from spinifex/services/spinifexui/frontend/dist/assets/run-instances-BjKJclfU.js rename to spinifex/services/spinifexui/frontend/dist/assets/run-instances-tb1i6-Eb.js index 403037d90..fd53e369c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances-BjKJclfU.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances-tb1i6-Eb.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as ee}from"./useQuery-2EKf7AyV.js";import{t as i}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as te}from"./useNavigate-CTe_-BZA.js";import{sn as ne}from"./cluster-config-DNNpxkEw.js";import{t as re}from"./back-link-wsXUoJ12.js";import{t as ie}from"./chevron-down-Dt4q6d24.js";import{c as a,i as o,n as s,s as c,t as l}from"./select-sbVkpt-r.js";import{t as ae}from"./cli-command-panel-4C78XA6W.js";import{t as oe}from"./button-C9VMD5Xn.js";import{t as u}from"./input-CBUMH1Jl.js";import{M as se,O as ce,c as le,h as ue,m as de,o as fe,p as pe,w as me,y as he}from"./ec2-BzWGOxUI.js";import{f as ge}from"./ec2-B8rwH6Fi.js";import{t as d}from"./run-instances-DAHwEmVQ.js";import{t as _e}from"./page-heading-vksh_67w.js";import{a as f,i as ve,n as p,t as ye}from"./zod-A4qtKH_p.js";import{t as be}from"./error-banner-DeOeVBKS.js";import{n as xe,r as m,s as h,t as g}from"./field-BKQO3cRo.js";import{b as Se,i as Ce,t as we}from"./ec2-CSDTsDKe.js";import{i as Te}from"./system-managed-Dk7ySh_E.js";import{t as Ee}from"./gpu-instance-type-select-BhiDEfOH.js";import{n as De,r as Oe,t as ke}from"./collapsible-C1lL0Zbp.js";var Ae=r(),je=t(n(),1),_=e(),Me=`/dev/sda1`,Ne=`gp3`,Pe=1,Fe=16384;function v(e){let t=(0,Ae.c)(140),{launchTemplateId:n,launchTemplateVersion:r}=e,d=te(),{data:Te}=i(fe),{data:Me}=i(pe),{data:v}=i(le),{data:rt}=i(ce),{data:it}=i(he),{data:at}=i(se),{data:ot}=i(me),{data:st}=i(ue),y=ge(),ct;t[0]===Te.Images?ct=t[1]:(ct=Te.Images??[],t[0]=Te.Images,t[1]=ct);let b=ct.filter($e),lt;t[2]===Me.KeyPairs?lt=t[3]:(lt=Me.KeyPairs??[],t[2]=Me.KeyPairs,t[3]=lt);let ut=lt,dt;t[4]===rt.Subnets?dt=t[5]:(dt=rt.Subnets??[],t[4]=rt.Subnets,t[5]=dt);let ft=dt,pt;t[6]===it.PlacementGroups?pt=t[7]:(pt=it.PlacementGroups??[],t[6]=it.PlacementGroups,t[7]=pt);let mt=pt,ht;t[8]===at.Vpcs?ht=t[9]:(ht=at.Vpcs??[],t[8]=at.Vpcs,t[9]=ht);let gt=ht,_t;t[10]===ot.SecurityGroups?_t=t[11]:(_t=ot.SecurityGroups??[],t[10]=ot.SecurityGroups,t[11]=_t);let vt=_t,yt;t[12]===st.LaunchTemplates?yt=t[13]:(yt=st.LaunchTemplates??[],t[12]=st.LaunchTemplates,t[13]=yt);let bt=yt,xt;t[14]===gt?xt=t[15]:(xt=(gt.find(Qe)??gt[0])?.VpcId,t[14]=gt,t[15]=xt);let St=xt,Ct=Se(vt.map(Ze)),x;if(t[16]!==v.InstanceTypes){x={};for(let e of v.InstanceTypes??[]){let t=e.InstanceType;t&&(x[t]=(x[t]??0)+1)}t[16]=v.InstanceTypes,t[17]=x}else x=t[17];let S=Object.keys(x).toSorted(),wt=b[0]?.ImageId,Tt=ut[0]?.KeyName,Et=S.find(Xe)??S[0],Dt=et(b.find(e=>e.ImageId===wt)),Ot;t[18]===x?Ot=t[19]:(Ot=e=>!e.instanceType||e.count<=(x[e.instanceType]??1),t[18]=x,t[19]=Ot);let{control:C,handleSubmit:kt,register:w,setValue:T,getValues:At,watch:jt,formState:Mt}=ve({resolver:ye(Ce.refine(Ot,{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=et(b.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.InstanceType===Ft))?.GpuInfo?.Gpus?.[0],Lt=D?.Name?.startsWith(`MIG `)?D.Name.slice(4):void 0,Rt;t[22]===C?Rt=t[23]:(Rt={control:C,name:`imageId`},t[22]=C,t[23]=Rt);let zt=f(Rt),Bt;t[24]===zt?Bt=t[25]:(Bt=e=>e.ImageId===zt,t[24]=zt,t[25]=Bt);let O=et(b.find(Bt)),Vt;t[26]===C?Vt=t[27]:(Vt={control:C,name:`subnetId`},t[26]=C,t[27]=Vt);let Ht=f(Vt),Ut;t[28]===C?Ut=t[29]:(Ut={control:C,name:`securityGroupMode`},t[28]=C,t[29]=Ut);let Wt=f(Ut),Gt;t[30]===C?Gt=t[31]:(Gt={control:C,name:`ruleSource`},t[30]=C,t[31]=Gt);let Kt=f(Gt),qt=f({control:C,name:`securityGroupIds`})??[],Jt;t[32]===qt?Jt=t[33]:(Jt=new Set(qt),t[32]=qt,t[33]=Jt);let Yt=Jt,Xt;t[34]===C?Xt=t[35]:(Xt={control:C,name:`launchTemplateId`},t[34]=C,t[35]=Xt);let k=f(Xt),Zt;t[36]===C?Zt=t[37]:(Zt={control:C,name:`launchTemplateVersion`},t[36]=C,t[37]=Zt);let Qt=f(Zt),$t=k??``,A;t[38]===$t?A=t[39]:(A=de($t),t[38]=$t,t[39]=A);let en=!!k,tn;t[40]!==A||t[41]!==en?(tn={...A,enabled:en},t[40]=A,t[41]=en,t[42]=tn):tn=t[42];let nn=ee(tn),rn;t[43]===nn.data?.LaunchTemplateVersions?rn=t[44]:(rn=nn.data?.LaunchTemplateVersions??[],t[43]=nn.data?.LaunchTemplateVersions,t[44]=rn);let j=rn,an;t[45]!==Qt||t[46]!==j?(an=tt(j,Qt)?.LaunchTemplateData,t[45]=Qt,t[46]=j,t[47]=an):an=t[47];let M=an,on;t[48]!==St||t[49]!==Ht||t[50]!==ft?(on=ft.find(e=>e.SubnetId===Ht)?.VpcId??St,t[48]=St,t[49]=Ht,t[50]=ft,t[51]=on):on=t[51];let N=on,sn;t[52]!==N||t[53]!==vt?(sn=N?vt.filter(e=>e.VpcId===N):vt,t[52]=N,t[53]=vt,t[54]=sn):sn=t[54];let cn=sn,ln;t[55]!==At||t[56]!==T?(ln=e=>{let t=At(`securityGroupIds`)??[],n=t.includes(e)?t.filter(t=>t!==e):[...t,e];T(`securityGroupIds`,n,{shouldValidate:!0})},t[55]=At,t[56]=T,t[57]=ln):ln=t[57];let un=ln,dn,fn;t[58]!==O.deviceName||t[59]!==T?(dn=()=>{T(`rootDeviceName`,O.deviceName)},fn=[O.deviceName,T],t[58]=O.deviceName,t[59]=T,t[60]=dn,t[61]=fn):(dn=t[60],fn=t[61]),(0,je.useEffect)(dn,fn);let pn;t[62]!==y||t[63]!==N||t[64]!==d?(pn=async e=>{let t=e.launchTemplateId?{count:e.count,launchTemplateId:e.launchTemplateId,launchTemplateVersion:e.launchTemplateVersion,resolvedVpcId:N}:{...e,resolvedVpcId:N};await y.mutateAsync(t),d({to:`/ec2/describe-instances`})},t[62]=y,t[63]=N,t[64]=d,t[65]=pn):pn=t[65];let mn=pn,P,F;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(re,{to:`/ec2/describe-instances`,children:`Back to instances`}),F=(0,_.jsx)(_e,{title:`Run Instances`}),t[66]=P,t[67]=F):(P=t[66],F=t[67]);let I;t[68]!==k||t[69]!==S?(I=S.length===0&&!k&&(0,_.jsx)(be,{msg:`No compute available. No new instances can be created until compute is available.`}),t[68]=k,t[69]=S,t[70]=I):I=t[70];let L;t[71]===y.error?L=t[72]:(L=y.error&&(0,_.jsx)(be,{error:y.error,msg:`Failed to create instance`}),t[71]=y.error,t[72]=L);let R;t[73]!==kt||t[74]!==mn?(R=kt(mn),t[73]=kt,t[74]=mn,t[75]=R):R=t[75];let hn;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(hn=(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateId`,children:`Launch Template`})}),t[76]=hn):hn=t[76];let z;t[77]===bt?z=t[78]:(z=e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`launchTemplateId`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),bt.map(Ye)]})]})},t[77]=bt,t[78]=z);let B;t[79]!==C||t[80]!==z?(B=(0,_.jsxs)(g,{children:[hn,(0,_.jsx)(p,{control:C,name:`launchTemplateId`,render:z})]}),t[79]=C,t[80]=z,t[81]=B):B=t[81];let V;t[82]!==C||t[83]!==M||t[84]!==k||t[85]!==j?(V=k&&(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateVersion`,children:`Version`})}),(0,_.jsx)(p,{control:C,name:`launchTemplateVersion`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??`$Default`,children:[(0,_.jsx)(c,{className:`w-full`,id:`launchTemplateVersion`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`$Default`,children:`$Default`}),(0,_.jsx)(o,{value:`$Latest`,children:`$Latest`}),j.map(Je)]})]})}}),M&&(0,_.jsxs)(`div`,{className:`mt-3 space-y-1 rounded-md border border-border p-3 text-xs`,children:[(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`Configuration from this version:`}),(0,_.jsxs)(`p`,{children:[`Image:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.ImageId??`—`})]}),(0,_.jsxs)(`p`,{children:[`Instance type:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.InstanceType??`—`})]}),(0,_.jsxs)(`p`,{children:[`Key pair:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.KeyName??`—`})]})]})]}),t[82]=C,t[83]=M,t[84]=k,t[85]=j,t[86]=V):V=t[86];let gn=!k&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,_.jsx)(p,{control:C,name:`imageId`,render:e=>{let{field:t}=e,n=b.find(e=>e.ImageId===t.value);return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(c,{"aria-invalid":!!E.imageId,className:`w-full`,id:`imageId`,children:(0,_.jsx)(a,{children:n?`${n.Name??`Unnamed`} (${n.Architecture})`:``})}),(0,_.jsx)(s,{children:b.map(qe)})]})}}),(0,_.jsx)(m,{errors:[E.imageId]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,_.jsx)(p,{control:C,name:`instanceType`,render:e=>{let{field:t}=e;return(0,_.jsx)(Ee,{"aria-invalid":!!E.instanceType,availabilityByType:x,className:`w-full`,id:`instanceType`,instanceTypes:v.InstanceTypes??[],onValueChange:t.onChange,value:t.value??``})}}),D&&(0,_.jsxs)(xe,{children:[`GPU: `,D.Name,D.MemoryInfo?.SizeInMiB!==void 0&&` · ${ne(D.MemoryInfo.SizeInMiB)} VRAM`,Lt&&` · MIG ${Lt} slice`]}),(0,_.jsx)(m,{errors:[E.instanceType]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,_.jsx)(p,{control:C,name:`keyName`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(c,{"aria-invalid":!!E.keyName,className:`w-full`,id:`keyName`,children:(0,_.jsx)(a,{})}),(0,_.jsx)(s,{children:ut.map(Ke)})]})}}),(0,_.jsx)(m,{errors:[E.keyName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,_.jsx)(p,{control:C,name:`subnetId`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`subnetId`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),ft.map(Ge)]})]})}})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Security Group`}),(0,_.jsx)(xe,{children:N?`Applies to VPC ${N}`:`No VPC resolved — select a subnet`}),(0,_.jsx)(p,{control:C,name:`securityGroupMode`,render:We}),Wt===`create`?(0,_.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,_.jsx)(u,{"aria-invalid":!!E.newSgName,id:`newSgName`,type:`text`,...w(`newSgName`)}),(0,_.jsx)(m,{errors:[E.newSgName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,_.jsx)(u,{id:`newSgDescription`,type:`text`,...w(`newSgDescription`)})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Inbound rules`}),(0,_.jsxs)(`div`,{className:`space-y-1`,children:[(0,_.jsx)(p,{control:C,name:`allowSsh`,render:Ue}),(0,_.jsx)(p,{control:C,name:`allowHttp`,render:He}),(0,_.jsx)(p,{control:C,name:`allowHttps`,render:Ve})]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Source`}),(0,_.jsx)(p,{control:C,name:`ruleSource`,render:Be}),Kt===`custom`&&(0,_.jsxs)(`div`,{className:`mt-2`,children:[(0,_.jsx)(u,{"aria-invalid":!!E.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...w(`customCidr`)}),(0,_.jsx)(m,{errors:[E.customCidr]})]})]})]}):(0,_.jsxs)(`div`,{className:`mt-3`,children:[cn.length===0?(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,_.jsx)(`div`,{className:`space-y-1`,children:cn.map(e=>(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,_.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Yt.has(e.GroupId??``),onChange:()=>{un(e.GroupId??``)},type:`checkbox`}),(0,_.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,_.jsx)(m,{errors:[E.securityGroupIds]})]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,_.jsx)(p,{control:C,name:`placementGroupName`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`placementGroupName`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),mt.map(ze)]})]})}})]})]}),_n;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(_n=(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),t[87]=_n):_n=t[87];let vn=!!E.count,H;t[88]===w?H=t[89]:(H=w(`count`,{valueAsNumber:!0}),t[88]=w,t[89]=H);let U;t[90]!==vn||t[91]!==H?(U=(0,_.jsx)(u,{"aria-describedby":`count-description`,"aria-invalid":vn,id:`count`,type:`number`,...H}),t[90]=vn,t[91]=H,t[92]=U):U=t[92];let yn=Ft&&`Available capacity for ${Ft}: ${It}`,W;t[93]===yn?W=t[94]:(W=(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:yn}),t[93]=yn,t[94]=W);let G;t[95]===E.count?G=t[96]:(G=(0,_.jsx)(m,{errors:[E.count]}),t[95]=E.count,t[96]=G);let K;t[97]!==U||t[98]!==W||t[99]!==G?(K=(0,_.jsxs)(g,{children:[_n,U,W,G]}),t[97]=U,t[98]=W,t[99]=G,t[100]=K):K=t[100];let q;t[101]!==C||t[102]!==E.rootDeviceName||t[103]!==E.rootVolumeSize||t[104]!==E.rootVolumeType||t[105]!==w||t[106]!==O.snapshotSize||t[107]!==k?(q=!k&&(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(ke,{children:[(0,_.jsxs)(Oe,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,_.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,_.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,_.jsx)(ie,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,_.jsxs)(De,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,_.jsx)(u,{"aria-invalid":!!E.rootDeviceName,id:`rootDeviceName`,type:`text`,...w(`rootDeviceName`)}),(0,_.jsx)(m,{errors:[E.rootDeviceName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,_.jsx)(u,{"aria-invalid":!!E.rootVolumeSize,id:`rootVolumeSize`,max:Fe,min:O.snapshotSize??Pe,placeholder:O.snapshotSize?`${O.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...w(`rootVolumeSize`,{setValueAs:Re})}),O.snapshotSize!==void 0&&(0,_.jsxs)(xe,{children:[`AMI snapshot size: `,O.snapshotSize,` GiB`]}),(0,_.jsx)(m,{errors:[E.rootVolumeSize]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,_.jsx)(p,{control:C,name:`rootVolumeType`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??Ne,children:[(0,_.jsx)(c,{"aria-invalid":!!E.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,_.jsx)(a,{})}),(0,_.jsx)(s,{children:we.map(Le)})]})}}),(0,_.jsx)(m,{errors:[E.rootVolumeType]})]}),(0,_.jsx)(g,{children:(0,_.jsx)(p,{control:C,name:`rootDeleteOnTermination`,render:Ie})})]})]})}),t[101]=C,t[102]=E.rootDeviceName,t[103]=E.rootVolumeSize,t[104]=E.rootVolumeType,t[105]=w,t[106]=O.snapshotSize,t[107]=k,t[108]=q):q=t[108];let J;t[109]!==N||t[110]!==jt?(J=nt(jt,N),t[109]=N,t[110]=jt,t[111]=J):J=t[111];let Y;t[112]===J?Y=t[113]:(Y=(0,_.jsx)(ae,{commands:J}),t[112]=J,t[113]=Y);let bn=Nt||y.isPending,X;t[114]===d?X=t[115]:(X=async()=>{await d({to:`/ec2/describe-instances`})},t[114]=d,t[115]=X);let Z;t[116]!==bn||t[117]!==X?(Z=(0,_.jsx)(oe,{disabled:bn,onClick:X,type:`button`,variant:`outline`,children:`Cancel`}),t[116]=bn,t[117]=X,t[118]=Z):Z=t[118];let xn=Nt||y.isPending||!k&&S.length===0,Sn=Nt||y.isPending?`Creating…`:`Create Instance`,Q;t[119]!==xn||t[120]!==Sn?(Q=(0,_.jsx)(oe,{disabled:xn,type:`submit`,children:Sn}),t[119]=xn,t[120]=Sn,t[121]=Q):Q=t[121];let Cn;t[122]!==Z||t[123]!==Q?(Cn=(0,_.jsxs)(`div`,{className:`flex gap-2`,children:[Z,Q]}),t[122]=Z,t[123]=Q,t[124]=Cn):Cn=t[124];let $;t[125]!==R||t[126]!==B||t[127]!==V||t[128]!==gn||t[129]!==K||t[130]!==q||t[131]!==Y||t[132]!==Cn?($=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[B,V,gn,K,q,Y,Cn]}),t[125]=R,t[126]=B,t[127]=V,t[128]=gn,t[129]=K,t[130]=q,t[131]=Y,t[132]=Cn,t[133]=$):$=t[133];let wn;return t[134]!==P||t[135]!==F||t[136]!==I||t[137]!==L||t[138]!==$?(wn=(0,_.jsxs)(_.Fragment,{children:[P,F,I,L,$]}),t[134]=P,t[135]=F,t[136]=I,t[137]=L,t[138]=$,t[139]=wn):wn=t[139],wn}function Ie(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Delete on termination`,checked:t.value??!0,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Delete on termination`]})}function Le(e){return(0,_.jsx)(o,{value:e,children:e},e)}function Re(e){return e===``||e==null?void 0:Number(e)}function ze(e){return(0,_.jsxs)(o,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId)}function Be(e){let{field:t}=e;return(0,_.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Source anywhere`,checked:t.value===`anywhere`,name:t.name,onChange:()=>{t.onChange(`anywhere`)},type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:t.value===`custom`,name:t.name,onChange:()=>{t.onChange(`custom`)},type:`radio`}),`Custom CIDR`]})]})}function Ve(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow HTTPS (tcp/443)`]})}function He(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow HTTP (tcp/80)`]})}function Ue(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow SSH`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow SSH (tcp/22)`]})}function We(e){let{field:t}=e;return(0,_.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Create new security group`,checked:t.value===`create`,name:t.name,onChange:()=>{t.onChange(`create`)},type:`radio`}),`Create new`]}),(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Select existing security group`,checked:t.value===`existing`,name:t.name,onChange:()=>{t.onChange(`existing`)},type:`radio`}),`Select existing`]})]})}function Ge(e){return(0,_.jsx)(o,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId)}function Ke(e){return(0,_.jsx)(o,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId)}function qe(e){return(0,_.jsxs)(o,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId)}function Je(e){return(0,_.jsxs)(o,{value:String(e.VersionNumber),children:[`v`,e.VersionNumber]},e.VersionNumber)}function Ye(e){return(0,_.jsx)(o,{value:e.LaunchTemplateId??``,children:e.LaunchTemplateName??e.LaunchTemplateId},e.LaunchTemplateId)}function Xe(e){return e.endsWith(`.nano`)}function Ze(e){return e.GroupName??``}function Qe(e){return e.IsDefault}function $e(e){return!Te(e)}function et(e){let t=e?.RootDeviceName??Me,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function tt(e,t){if(e.length===0)return;if(!t||t===`$Default`)return e.find(e=>e.DefaultVersion)??e[0];if(t===`$Latest`)return e.toSorted((e,t)=>(t.VersionNumber??0)-(e.VersionNumber??0))[0];let n=Number(t);return e.find(e=>e.VersionNumber===n)}function nt(e,t){let n=e(`launchTemplateId`)??``;if(n){let t=e(`launchTemplateVersion`)||`$Default`,r=e(`count`)??0;return[{label:`Run Instances`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime-D_vZfn79.js";import{t as ee}from"./useQuery-2EKf7AyV.js";import{t as i}from"./useSuspenseQuery-Bc7E1P-f.js";import{t as te}from"./useNavigate-CTe_-BZA.js";import{sn as ne}from"./cluster-config-DNNpxkEw.js";import{t as re}from"./back-link-wsXUoJ12.js";import{t as ie}from"./chevron-down-Dt4q6d24.js";import{c as a,i as o,n as s,s as c,t as l}from"./select-sbVkpt-r.js";import{t as ae}from"./cli-command-panel-4C78XA6W.js";import{t as oe}from"./button-C9VMD5Xn.js";import{t as u}from"./input-CBUMH1Jl.js";import{M as se,O as ce,c as le,h as ue,m as de,o as fe,p as pe,w as me,y as he}from"./ec2-BzWGOxUI.js";import{f as ge}from"./ec2-BXFEIaSs.js";import{t as d}from"./run-instances-IlcZaw6e.js";import{t as _e}from"./page-heading-vksh_67w.js";import{a as f,i as ve,n as p,t as ye}from"./zod-A4qtKH_p.js";import{t as be}from"./error-banner-DeOeVBKS.js";import{n as xe,r as m,s as h,t as g}from"./field-BKQO3cRo.js";import{b as Se,i as Ce,t as we}from"./ec2-CSDTsDKe.js";import{i as Te}from"./system-managed-Dk7ySh_E.js";import{t as Ee}from"./gpu-instance-type-select-BhiDEfOH.js";import{n as De,r as Oe,t as ke}from"./collapsible-C1lL0Zbp.js";var Ae=r(),je=t(n(),1),_=e(),Me=`/dev/sda1`,Ne=`gp3`,Pe=1,Fe=16384;function v(e){let t=(0,Ae.c)(140),{launchTemplateId:n,launchTemplateVersion:r}=e,d=te(),{data:Te}=i(fe),{data:Me}=i(pe),{data:v}=i(le),{data:rt}=i(ce),{data:it}=i(he),{data:at}=i(se),{data:ot}=i(me),{data:st}=i(ue),y=ge(),ct;t[0]===Te.Images?ct=t[1]:(ct=Te.Images??[],t[0]=Te.Images,t[1]=ct);let b=ct.filter($e),lt;t[2]===Me.KeyPairs?lt=t[3]:(lt=Me.KeyPairs??[],t[2]=Me.KeyPairs,t[3]=lt);let ut=lt,dt;t[4]===rt.Subnets?dt=t[5]:(dt=rt.Subnets??[],t[4]=rt.Subnets,t[5]=dt);let ft=dt,pt;t[6]===it.PlacementGroups?pt=t[7]:(pt=it.PlacementGroups??[],t[6]=it.PlacementGroups,t[7]=pt);let mt=pt,ht;t[8]===at.Vpcs?ht=t[9]:(ht=at.Vpcs??[],t[8]=at.Vpcs,t[9]=ht);let gt=ht,_t;t[10]===ot.SecurityGroups?_t=t[11]:(_t=ot.SecurityGroups??[],t[10]=ot.SecurityGroups,t[11]=_t);let vt=_t,yt;t[12]===st.LaunchTemplates?yt=t[13]:(yt=st.LaunchTemplates??[],t[12]=st.LaunchTemplates,t[13]=yt);let bt=yt,xt;t[14]===gt?xt=t[15]:(xt=(gt.find(Qe)??gt[0])?.VpcId,t[14]=gt,t[15]=xt);let St=xt,Ct=Se(vt.map(Ze)),x;if(t[16]!==v.InstanceTypes){x={};for(let e of v.InstanceTypes??[]){let t=e.InstanceType;t&&(x[t]=(x[t]??0)+1)}t[16]=v.InstanceTypes,t[17]=x}else x=t[17];let S=Object.keys(x).toSorted(),wt=b[0]?.ImageId,Tt=ut[0]?.KeyName,Et=S.find(Xe)??S[0],Dt=et(b.find(e=>e.ImageId===wt)),Ot;t[18]===x?Ot=t[19]:(Ot=e=>!e.instanceType||e.count<=(x[e.instanceType]??1),t[18]=x,t[19]=Ot);let{control:C,handleSubmit:kt,register:w,setValue:T,getValues:At,watch:jt,formState:Mt}=ve({resolver:ye(Ce.refine(Ot,{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=et(b.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.InstanceType===Ft))?.GpuInfo?.Gpus?.[0],Lt=D?.Name?.startsWith(`MIG `)?D.Name.slice(4):void 0,Rt;t[22]===C?Rt=t[23]:(Rt={control:C,name:`imageId`},t[22]=C,t[23]=Rt);let zt=f(Rt),Bt;t[24]===zt?Bt=t[25]:(Bt=e=>e.ImageId===zt,t[24]=zt,t[25]=Bt);let O=et(b.find(Bt)),Vt;t[26]===C?Vt=t[27]:(Vt={control:C,name:`subnetId`},t[26]=C,t[27]=Vt);let Ht=f(Vt),Ut;t[28]===C?Ut=t[29]:(Ut={control:C,name:`securityGroupMode`},t[28]=C,t[29]=Ut);let Wt=f(Ut),Gt;t[30]===C?Gt=t[31]:(Gt={control:C,name:`ruleSource`},t[30]=C,t[31]=Gt);let Kt=f(Gt),qt=f({control:C,name:`securityGroupIds`})??[],Jt;t[32]===qt?Jt=t[33]:(Jt=new Set(qt),t[32]=qt,t[33]=Jt);let Yt=Jt,Xt;t[34]===C?Xt=t[35]:(Xt={control:C,name:`launchTemplateId`},t[34]=C,t[35]=Xt);let k=f(Xt),Zt;t[36]===C?Zt=t[37]:(Zt={control:C,name:`launchTemplateVersion`},t[36]=C,t[37]=Zt);let Qt=f(Zt),$t=k??``,A;t[38]===$t?A=t[39]:(A=de($t),t[38]=$t,t[39]=A);let en=!!k,tn;t[40]!==A||t[41]!==en?(tn={...A,enabled:en},t[40]=A,t[41]=en,t[42]=tn):tn=t[42];let nn=ee(tn),rn;t[43]===nn.data?.LaunchTemplateVersions?rn=t[44]:(rn=nn.data?.LaunchTemplateVersions??[],t[43]=nn.data?.LaunchTemplateVersions,t[44]=rn);let j=rn,an;t[45]!==Qt||t[46]!==j?(an=tt(j,Qt)?.LaunchTemplateData,t[45]=Qt,t[46]=j,t[47]=an):an=t[47];let M=an,on;t[48]!==St||t[49]!==Ht||t[50]!==ft?(on=ft.find(e=>e.SubnetId===Ht)?.VpcId??St,t[48]=St,t[49]=Ht,t[50]=ft,t[51]=on):on=t[51];let N=on,sn;t[52]!==N||t[53]!==vt?(sn=N?vt.filter(e=>e.VpcId===N):vt,t[52]=N,t[53]=vt,t[54]=sn):sn=t[54];let cn=sn,ln;t[55]!==At||t[56]!==T?(ln=e=>{let t=At(`securityGroupIds`)??[],n=t.includes(e)?t.filter(t=>t!==e):[...t,e];T(`securityGroupIds`,n,{shouldValidate:!0})},t[55]=At,t[56]=T,t[57]=ln):ln=t[57];let un=ln,dn,fn;t[58]!==O.deviceName||t[59]!==T?(dn=()=>{T(`rootDeviceName`,O.deviceName)},fn=[O.deviceName,T],t[58]=O.deviceName,t[59]=T,t[60]=dn,t[61]=fn):(dn=t[60],fn=t[61]),(0,je.useEffect)(dn,fn);let pn;t[62]!==y||t[63]!==N||t[64]!==d?(pn=async e=>{let t=e.launchTemplateId?{count:e.count,launchTemplateId:e.launchTemplateId,launchTemplateVersion:e.launchTemplateVersion,resolvedVpcId:N}:{...e,resolvedVpcId:N};await y.mutateAsync(t),d({to:`/ec2/describe-instances`})},t[62]=y,t[63]=N,t[64]=d,t[65]=pn):pn=t[65];let mn=pn,P,F;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,_.jsx)(re,{to:`/ec2/describe-instances`,children:`Back to instances`}),F=(0,_.jsx)(_e,{title:`Run Instances`}),t[66]=P,t[67]=F):(P=t[66],F=t[67]);let I;t[68]!==k||t[69]!==S?(I=S.length===0&&!k&&(0,_.jsx)(be,{msg:`No compute available. No new instances can be created until compute is available.`}),t[68]=k,t[69]=S,t[70]=I):I=t[70];let L;t[71]===y.error?L=t[72]:(L=y.error&&(0,_.jsx)(be,{error:y.error,msg:`Failed to create instance`}),t[71]=y.error,t[72]=L);let R;t[73]!==kt||t[74]!==mn?(R=kt(mn),t[73]=kt,t[74]=mn,t[75]=R):R=t[75];let hn;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(hn=(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateId`,children:`Launch Template`})}),t[76]=hn):hn=t[76];let z;t[77]===bt?z=t[78]:(z=e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`launchTemplateId`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),bt.map(Ye)]})]})},t[77]=bt,t[78]=z);let B;t[79]!==C||t[80]!==z?(B=(0,_.jsxs)(g,{children:[hn,(0,_.jsx)(p,{control:C,name:`launchTemplateId`,render:z})]}),t[79]=C,t[80]=z,t[81]=B):B=t[81];let V;t[82]!==C||t[83]!==M||t[84]!==k||t[85]!==j?(V=k&&(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`launchTemplateVersion`,children:`Version`})}),(0,_.jsx)(p,{control:C,name:`launchTemplateVersion`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??`$Default`,children:[(0,_.jsx)(c,{className:`w-full`,id:`launchTemplateVersion`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`$Default`,children:`$Default`}),(0,_.jsx)(o,{value:`$Latest`,children:`$Latest`}),j.map(Je)]})]})}}),M&&(0,_.jsxs)(`div`,{className:`mt-3 space-y-1 rounded-md border border-border p-3 text-xs`,children:[(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`Configuration from this version:`}),(0,_.jsxs)(`p`,{children:[`Image:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.ImageId??`—`})]}),(0,_.jsxs)(`p`,{children:[`Instance type:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.InstanceType??`—`})]}),(0,_.jsxs)(`p`,{children:[`Key pair:`,` `,(0,_.jsx)(`span`,{className:`font-mono`,children:M.KeyName??`—`})]})]})]}),t[82]=C,t[83]=M,t[84]=k,t[85]=j,t[86]=V):V=t[86];let gn=!k&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,_.jsx)(p,{control:C,name:`imageId`,render:e=>{let{field:t}=e,n=b.find(e=>e.ImageId===t.value);return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(c,{"aria-invalid":!!E.imageId,className:`w-full`,id:`imageId`,children:(0,_.jsx)(a,{children:n?`${n.Name??`Unnamed`} (${n.Architecture})`:``})}),(0,_.jsx)(s,{children:b.map(qe)})]})}}),(0,_.jsx)(m,{errors:[E.imageId]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,_.jsx)(p,{control:C,name:`instanceType`,render:e=>{let{field:t}=e;return(0,_.jsx)(Ee,{"aria-invalid":!!E.instanceType,availabilityByType:x,className:`w-full`,id:`instanceType`,instanceTypes:v.InstanceTypes??[],onValueChange:t.onChange,value:t.value??``})}}),D&&(0,_.jsxs)(xe,{children:[`GPU: `,D.Name,D.MemoryInfo?.SizeInMiB!==void 0&&` · ${ne(D.MemoryInfo.SizeInMiB)} VRAM`,Lt&&` · MIG ${Lt} slice`]}),(0,_.jsx)(m,{errors:[E.instanceType]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,_.jsx)(p,{control:C,name:`keyName`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??``,children:[(0,_.jsx)(c,{"aria-invalid":!!E.keyName,className:`w-full`,id:`keyName`,children:(0,_.jsx)(a,{})}),(0,_.jsx)(s,{children:ut.map(Ke)})]})}}),(0,_.jsx)(m,{errors:[E.keyName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,_.jsx)(p,{control:C,name:`subnetId`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`subnetId`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),ft.map(Ge)]})]})}})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Security Group`}),(0,_.jsx)(xe,{children:N?`Applies to VPC ${N}`:`No VPC resolved — select a subnet`}),(0,_.jsx)(p,{control:C,name:`securityGroupMode`,render:We}),Wt===`create`?(0,_.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,_.jsx)(u,{"aria-invalid":!!E.newSgName,id:`newSgName`,type:`text`,...w(`newSgName`)}),(0,_.jsx)(m,{errors:[E.newSgName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,_.jsx)(u,{id:`newSgDescription`,type:`text`,...w(`newSgDescription`)})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Inbound rules`}),(0,_.jsxs)(`div`,{className:`space-y-1`,children:[(0,_.jsx)(p,{control:C,name:`allowSsh`,render:Ue}),(0,_.jsx)(p,{control:C,name:`allowHttp`,render:He}),(0,_.jsx)(p,{control:C,name:`allowHttps`,render:Ve})]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:`Source`}),(0,_.jsx)(p,{control:C,name:`ruleSource`,render:Be}),Kt===`custom`&&(0,_.jsxs)(`div`,{className:`mt-2`,children:[(0,_.jsx)(u,{"aria-invalid":!!E.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...w(`customCidr`)}),(0,_.jsx)(m,{errors:[E.customCidr]})]})]})]}):(0,_.jsxs)(`div`,{className:`mt-3`,children:[cn.length===0?(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,_.jsx)(`div`,{className:`space-y-1`,children:cn.map(e=>(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,_.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Yt.has(e.GroupId??``),onChange:()=>{un(e.GroupId??``)},type:`checkbox`}),(0,_.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,_.jsx)(m,{errors:[E.securityGroupIds]})]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,_.jsx)(p,{control:C,name:`placementGroupName`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e===`none`?void 0:e)},value:t.value??`none`,children:[(0,_.jsx)(c,{className:`w-full`,id:`placementGroupName`,children:(0,_.jsx)(a,{})}),(0,_.jsxs)(s,{children:[(0,_.jsx)(o,{value:`none`,children:`none`}),mt.map(ze)]})]})}})]})]}),_n;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(_n=(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),t[87]=_n):_n=t[87];let vn=!!E.count,H;t[88]===w?H=t[89]:(H=w(`count`,{valueAsNumber:!0}),t[88]=w,t[89]=H);let U;t[90]!==vn||t[91]!==H?(U=(0,_.jsx)(u,{"aria-describedby":`count-description`,"aria-invalid":vn,id:`count`,type:`number`,...H}),t[90]=vn,t[91]=H,t[92]=U):U=t[92];let yn=Ft&&`Available capacity for ${Ft}: ${It}`,W;t[93]===yn?W=t[94]:(W=(0,_.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:yn}),t[93]=yn,t[94]=W);let G;t[95]===E.count?G=t[96]:(G=(0,_.jsx)(m,{errors:[E.count]}),t[95]=E.count,t[96]=G);let K;t[97]!==U||t[98]!==W||t[99]!==G?(K=(0,_.jsxs)(g,{children:[_n,U,W,G]}),t[97]=U,t[98]=W,t[99]=G,t[100]=K):K=t[100];let q;t[101]!==C||t[102]!==E.rootDeviceName||t[103]!==E.rootVolumeSize||t[104]!==E.rootVolumeType||t[105]!==w||t[106]!==O.snapshotSize||t[107]!==k?(q=!k&&(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(ke,{children:[(0,_.jsxs)(Oe,{className:`group flex h-7 w-full items-center justify-between rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none hover:bg-input/40 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 md:text-xs/relaxed dark:bg-input/30 dark:hover:bg-input/50`,render:(0,_.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,_.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,_.jsx)(ie,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,_.jsxs)(De,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,_.jsx)(u,{"aria-invalid":!!E.rootDeviceName,id:`rootDeviceName`,type:`text`,...w(`rootDeviceName`)}),(0,_.jsx)(m,{errors:[E.rootDeviceName]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,_.jsx)(u,{"aria-invalid":!!E.rootVolumeSize,id:`rootVolumeSize`,max:Fe,min:O.snapshotSize??Pe,placeholder:O.snapshotSize?`${O.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...w(`rootVolumeSize`,{setValueAs:Re})}),O.snapshotSize!==void 0&&(0,_.jsxs)(xe,{children:[`AMI snapshot size: `,O.snapshotSize,` GiB`]}),(0,_.jsx)(m,{errors:[E.rootVolumeSize]})]}),(0,_.jsxs)(g,{children:[(0,_.jsx)(h,{children:(0,_.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,_.jsx)(p,{control:C,name:`rootVolumeType`,render:e=>{let{field:t}=e;return(0,_.jsxs)(l,{onValueChange:e=>{t.onChange(e)},value:t.value??Ne,children:[(0,_.jsx)(c,{"aria-invalid":!!E.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,_.jsx)(a,{})}),(0,_.jsx)(s,{children:we.map(Le)})]})}}),(0,_.jsx)(m,{errors:[E.rootVolumeType]})]}),(0,_.jsx)(g,{children:(0,_.jsx)(p,{control:C,name:`rootDeleteOnTermination`,render:Ie})})]})]})}),t[101]=C,t[102]=E.rootDeviceName,t[103]=E.rootVolumeSize,t[104]=E.rootVolumeType,t[105]=w,t[106]=O.snapshotSize,t[107]=k,t[108]=q):q=t[108];let J;t[109]!==N||t[110]!==jt?(J=nt(jt,N),t[109]=N,t[110]=jt,t[111]=J):J=t[111];let Y;t[112]===J?Y=t[113]:(Y=(0,_.jsx)(ae,{commands:J}),t[112]=J,t[113]=Y);let bn=Nt||y.isPending,X;t[114]===d?X=t[115]:(X=async()=>{await d({to:`/ec2/describe-instances`})},t[114]=d,t[115]=X);let Z;t[116]!==bn||t[117]!==X?(Z=(0,_.jsx)(oe,{disabled:bn,onClick:X,type:`button`,variant:`outline`,children:`Cancel`}),t[116]=bn,t[117]=X,t[118]=Z):Z=t[118];let xn=Nt||y.isPending||!k&&S.length===0,Sn=Nt||y.isPending?`Creating…`:`Create Instance`,Q;t[119]!==xn||t[120]!==Sn?(Q=(0,_.jsx)(oe,{disabled:xn,type:`submit`,children:Sn}),t[119]=xn,t[120]=Sn,t[121]=Q):Q=t[121];let Cn;t[122]!==Z||t[123]!==Q?(Cn=(0,_.jsxs)(`div`,{className:`flex gap-2`,children:[Z,Q]}),t[122]=Z,t[123]=Q,t[124]=Cn):Cn=t[124];let $;t[125]!==R||t[126]!==B||t[127]!==V||t[128]!==gn||t[129]!==K||t[130]!==q||t[131]!==Y||t[132]!==Cn?($=(0,_.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[B,V,gn,K,q,Y,Cn]}),t[125]=R,t[126]=B,t[127]=V,t[128]=gn,t[129]=K,t[130]=q,t[131]=Y,t[132]=Cn,t[133]=$):$=t[133];let wn;return t[134]!==P||t[135]!==F||t[136]!==I||t[137]!==L||t[138]!==$?(wn=(0,_.jsxs)(_.Fragment,{children:[P,F,I,L,$]}),t[134]=P,t[135]=F,t[136]=I,t[137]=L,t[138]=$,t[139]=wn):wn=t[139],wn}function Ie(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Delete on termination`,checked:t.value??!0,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Delete on termination`]})}function Le(e){return(0,_.jsx)(o,{value:e,children:e},e)}function Re(e){return e===``||e==null?void 0:Number(e)}function ze(e){return(0,_.jsxs)(o,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId)}function Be(e){let{field:t}=e;return(0,_.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Source anywhere`,checked:t.value===`anywhere`,name:t.name,onChange:()=>{t.onChange(`anywhere`)},type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:t.value===`custom`,name:t.name,onChange:()=>{t.onChange(`custom`)},type:`radio`}),`Custom CIDR`]})]})}function Ve(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow HTTPS (tcp/443)`]})}function He(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow HTTP (tcp/80)`]})}function Ue(e){let{field:t}=e;return(0,_.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,_.jsx)(`input`,{"aria-label":`Allow SSH`,checked:t.value,onChange:e=>{t.onChange(e.target.checked)},type:`checkbox`}),`Allow SSH (tcp/22)`]})}function We(e){let{field:t}=e;return(0,_.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Create new security group`,checked:t.value===`create`,name:t.name,onChange:()=>{t.onChange(`create`)},type:`radio`}),`Create new`]}),(0,_.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,_.jsx)(`input`,{"aria-label":`Select existing security group`,checked:t.value===`existing`,name:t.name,onChange:()=>{t.onChange(`existing`)},type:`radio`}),`Select existing`]})]})}function Ge(e){return(0,_.jsx)(o,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId)}function Ke(e){return(0,_.jsx)(o,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId)}function qe(e){return(0,_.jsxs)(o,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId)}function Je(e){return(0,_.jsxs)(o,{value:String(e.VersionNumber),children:[`v`,e.VersionNumber]},e.VersionNumber)}function Ye(e){return(0,_.jsx)(o,{value:e.LaunchTemplateId??``,children:e.LaunchTemplateName??e.LaunchTemplateId},e.LaunchTemplateId)}function Xe(e){return e.endsWith(`.nano`)}function Ze(e){return e.GroupName??``}function Qe(e){return e.IsDefault}function $e(e){return!Te(e)}function et(e){let t=e?.RootDeviceName??Me,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function tt(e,t){if(e.length===0)return;if(!t||t===`$Default`)return e.find(e=>e.DefaultVersion)??e[0];if(t===`$Latest`)return e.toSorted((e,t)=>(t.VersionNumber??0)-(e.VersionNumber??0))[0];let n=Number(t);return e.find(e=>e.VersionNumber===n)}function nt(e,t){let n=e(`launchTemplateId`)??``;if(n){let t=e(`launchTemplateVersion`)||`$Default`,r=e(`count`)??0;return[{label:`Run Instances`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --launch-template`},{type:`value`,value:` LaunchTemplateId=${n},Version=${t}`},{type:`flag`,value:` \\ --count`},{type:`value`,value:` ${r||1}`}]}]}let r=e(`imageId`)??``,ee=e(`instanceType`)??``,i=e(`keyName`)??``,te=e(`subnetId`)??``,ne=e(`placementGroupName`)??``,re=e(`count`)??0,ie=e(`rootDeviceName`)??``,a=e(`rootVolumeSize`),o=e(`rootVolumeType`),s=e(`rootDeleteOnTermination`),c=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/index.html b/spinifex/services/spinifexui/frontend/dist/index.html index d7ea0f758..a5f2b007c 100644 --- a/spinifex/services/spinifexui/frontend/dist/index.html +++ b/spinifex/services/spinifexui/frontend/dist/index.html @@ -7,7 +7,7 @@ - + @@ -34,12 +34,12 @@ - + - + @@ -67,27 +67,27 @@ - - + + - - - - - - + + + + + + - - - - + + + + - - - + + + diff --git a/spinifex/services/spinifexui/frontend/src/mutations/ec2.test.tsx b/spinifex/services/spinifexui/frontend/src/mutations/ec2.test.tsx index 3fb979743..990cb3c32 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/ec2.test.tsx +++ b/spinifex/services/spinifexui/frontend/src/mutations/ec2.test.tsx @@ -646,6 +646,34 @@ describe("useDeleteLaunchTemplateVersions", () => { Versions: ["2", "3"], }) }) + + it("fails when a version comes back in the unsuccessful list", async () => { + createQueryClient() + mockSend.mockResolvedValueOnce({ + SuccessfullyDeletedLaunchTemplateVersions: [], + UnsuccessfullyDeletedLaunchTemplateVersions: [ + { + VersionNumber: 2, + ResponseError: { + Code: "unexpectedError", + Message: "storage unavailable", + }, + }, + ], + }) + const { result } = renderHook(() => useDeleteLaunchTemplateVersions(), { + wrapper, + }) + + result.current.mutate({ launchTemplateId: "lt-1", versions: ["2"] }) + + await waitFor(() => { + expect(result.current.isError).toBeTruthy() + }) + expect(result.current.error?.message).toBe( + "Version 2 was not deleted: storage unavailable", + ) + }) }) describe("useDeleteLaunchTemplate", () => { diff --git a/spinifex/services/spinifexui/frontend/src/mutations/ec2.ts b/spinifex/services/spinifexui/frontend/src/mutations/ec2.ts index bb686a1c3..e9fd42e5b 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/ec2.ts +++ b/spinifex/services/spinifexui/frontend/src/mutations/ec2.ts @@ -448,7 +448,15 @@ export function useDeleteLaunchTemplateVersions() { LaunchTemplateId: params.launchTemplateId, Versions: params.versions, }) - return await getEc2Client().send(command) + const result = await getEc2Client().send(command) + // A failed delete comes back as HTTP 200 with the version listed here. + const failed = result.UnsuccessfullyDeletedLaunchTemplateVersions?.[0] + if (failed) { + throw new Error( + `Version ${failed.VersionNumber} was not deleted: ${failed.ResponseError?.Message ?? failed.ResponseError?.Code ?? "unknown error"}`, + ) + } + return result }, onSuccess: (_data, params) => { void queryClient.invalidateQueries({ diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.test.tsx new file mode 100644 index 000000000..2d525f698 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.test.tsx @@ -0,0 +1,96 @@ +import { screen, waitFor } from "@testing-library/react" +import userEvent from "@testing-library/user-event" +import { beforeEach, describe, expect, it, vi } from "vitest" + +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +const { sdk } = vi.hoisted(() => { + interface SdkCommand { + readonly input: object + } + return { + sdk: { + send: vi.fn<(command: SdkCommand) => Promise>(async () => ({})), + }, + } +}) + +vi.mock("@/lib/awsClient", () => ({ + getEc2Client: () => ({ send: sdk.send }), +})) + +vi.mock("@tanstack/react-router", async (importOriginal) => { + const actual = await importOriginal() + return { + ...actual, + createFileRoute: + () => + (options: TOptions) => ({ + options, + useParams: () => ({ id: "eipalloc-1" }), + }), + useNavigate: () => vi.fn(), + Link: ({ children, to }: { children: React.ReactNode; to?: string }) => ( + {children} + ), + } +}) + +import { Route } from "./$id" + +async function renderPage() { + const qc = createTestQueryClient() + qc.setQueryData(["ec2", "addresses", "eipalloc-1"], { + Addresses: [ + { + AllocationId: "eipalloc-1", + AssociationId: "eipassoc-1", + InstanceId: "i-1", + PublicIp: "198.51.100.7", + }, + ], + }) + qc.setQueryData(["ec2", "instances"], { Reservations: [] }) + const Detail = Route.options.component + if (!Detail) { + throw new Error("route has no component") + } + // The router plugin code-splits route components, so load it before render. + await Detail.preload?.() + renderWithClient(, qc) +} + +describe("elastic ip detail", () => { + beforeEach(() => { + sdk.send.mockClear() + }) + + it("disassociates only after it is confirmed", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click(screen.getByRole("button", { name: "Disassociate" })) + expect(sdk.send).not.toHaveBeenCalled() + await user.click(screen.getByRole("button", { name: "Disassociate" })) + + await waitFor(() => { + expect(sdk.send).toHaveBeenCalled() + }) + expect(sdk.send.mock.calls[0]?.[0]).toMatchObject({ + input: { AssociationId: "eipassoc-1" }, + }) + }) + + it("does nothing when the dialog is cancelled", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click(screen.getByRole("button", { name: "Disassociate" })) + await user.click(screen.getByRole("button", { name: "Cancel" })) + + expect(sdk.send).not.toHaveBeenCalled() + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.tsx index 832f48fc3..8d13d3331 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(elastic-ips)/describe-addresses/$id.tsx @@ -59,6 +59,7 @@ function AddressDetail() { const disassociateMutation = useDisassociateAddress() const releaseMutation = useReleaseAddress() const [showReleaseDialog, setShowReleaseDialog] = useState(false) + const [showDisassociateDialog, setShowDisassociateDialog] = useState(false) const [selectedInstanceId, setSelectedInstanceId] = useState("") const address = data.Addresses?.[0] @@ -90,7 +91,13 @@ function AddressDetail() { if (!address?.AssociationId) { return } - await disassociateMutation.mutateAsync(address.AssociationId) + try { + await disassociateMutation.mutateAsync(address.AssociationId) + } catch { + // Error is stored in disassociateMutation.error and rendered above + } finally { + setShowDisassociateDialog(false) + } } if (!address?.AllocationId) { @@ -168,7 +175,9 @@ function AddressDetail() { {isAssociated ? ( @@ -468,6 +481,19 @@ function LaunchTemplateDetail() { open={showDeleteDialog} title="Delete Launch Template" /> + + { + if (!open) { + setVersionToDelete(null) + } + }} + open={versionToDelete !== null} + title="Delete Launch Template Version" + /> ) } diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.test.tsx new file mode 100644 index 000000000..7d50de1e8 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.test.tsx @@ -0,0 +1,125 @@ +import { screen, waitFor } from "@testing-library/react" +import userEvent from "@testing-library/user-event" +import { beforeEach, describe, expect, it, vi } from "vitest" + +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +const { sdk } = vi.hoisted(() => { + interface SdkCommand { + readonly input: object + } + return { + sdk: { + send: vi.fn<(command: SdkCommand) => Promise>(async () => ({})), + }, + } +}) + +vi.mock("@/lib/awsClient", () => ({ + getEc2Client: () => ({ send: sdk.send }), +})) + +vi.mock("@tanstack/react-router", async (importOriginal) => { + const actual = await importOriginal() + return { + ...actual, + createFileRoute: + () => + (options: TOptions) => ({ + options, + useParams: () => ({ id: "rtb-1" }), + }), + useNavigate: () => vi.fn(), + Link: ({ children, to }: { children: React.ReactNode; to?: string }) => ( + {children} + ), + } +}) + +import { Route } from "./$id" + +async function renderPage() { + const qc = createTestQueryClient() + qc.setQueryData(["ec2", "routeTables", "rtb-1"], { + RouteTables: [ + { + RouteTableId: "rtb-1", + VpcId: "vpc-1", + Routes: [ + { DestinationCidrBlock: "10.0.0.0/16", GatewayId: "local" }, + { DestinationCidrBlock: "0.0.0.0/0", GatewayId: "igw-1" }, + ], + Associations: [ + { RouteTableAssociationId: "rtbassoc-1", SubnetId: "subnet-1" }, + ], + }, + ], + }) + qc.setQueryData(["ec2", "internetGateways"], { InternetGateways: [] }) + qc.setQueryData(["ec2", "natGateways"], { NatGateways: [] }) + qc.setQueryData(["ec2", "subnets"], { Subnets: [] }) + const Detail = Route.options.component + if (!Detail) { + throw new Error("route has no component") + } + // The router plugin code-splits route components, so load it before render. + await Detail.preload?.() + renderWithClient(, qc) +} + +describe("route table detail", () => { + beforeEach(() => { + sdk.send.mockClear() + }) + + it("deletes a route only after it is confirmed", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click( + screen.getByRole("button", { name: "Delete route to 0.0.0.0/0" }), + ) + expect(sdk.send).not.toHaveBeenCalled() + await user.click(screen.getByRole("button", { name: "Delete" })) + + await waitFor(() => { + expect(sdk.send).toHaveBeenCalled() + }) + expect(sdk.send.mock.calls[0]?.[0]).toMatchObject({ + input: { RouteTableId: "rtb-1", DestinationCidrBlock: "0.0.0.0/0" }, + }) + }) + + it("keeps the route when the dialog is cancelled", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click( + screen.getByRole("button", { name: "Delete route to 0.0.0.0/0" }), + ) + await user.click(screen.getByRole("button", { name: "Cancel" })) + + expect(sdk.send).not.toHaveBeenCalled() + }) + + it("disassociates a subnet only after it is confirmed", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click( + screen.getByRole("button", { name: "Disassociate subnet-1" }), + ) + expect(sdk.send).not.toHaveBeenCalled() + await user.click(screen.getByRole("button", { name: "Disassociate" })) + + await waitFor(() => { + expect(sdk.send).toHaveBeenCalled() + }) + expect(sdk.send.mock.calls[0]?.[0]).toMatchObject({ + input: { AssociationId: "rtbassoc-1" }, + }) + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.tsx index 3f80a0fe7..0aba653c8 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(route-tables)/describe-route-tables/$id.tsx @@ -105,6 +105,11 @@ function RouteTableDetail() { const disassociate = useDisassociateRouteTable() const [showDeleteDialog, setShowDeleteDialog] = useState(false) + const [routeToDelete, setRouteToDelete] = useState(null) + const [associationToRemove, setAssociationToRemove] = useState<{ + associationId: string + subnetId: string + } | null>(null) const rtb = data.RouteTables?.[0] @@ -163,6 +168,35 @@ function RouteTableDetail() { } } + const handleDeleteRoute = async () => { + if (!routeToDelete) { + return + } + try { + await deleteRoute.mutateAsync({ + routeTableId, + destinationCidrBlock: routeToDelete, + }) + } catch { + // Error is stored in deleteRoute.error and rendered below the routes + } finally { + setRouteToDelete(null) + } + } + + const handleDisassociate = async () => { + if (!associationToRemove) { + return + } + try { + await disassociate.mutateAsync(associationToRemove.associationId) + } catch { + // Error is stored in disassociate.error and rendered below the list + } finally { + setAssociationToRemove(null) + } + } + const onAddRoute = async (values: CreateRouteFormData) => { await createRoute.mutateAsync({ routeTableId, @@ -278,16 +312,16 @@ function RouteTableDetail() { {!isLocal && cidr && ( )} @@ -431,15 +465,21 @@ function RouteTableDetail() { ) @@ -522,6 +562,34 @@ function RouteTableDetail() { open={showDeleteDialog} title="Delete Route Table" /> + + { + if (!open) { + setRouteToDelete(null) + } + }} + open={routeToDelete !== null} + title="Delete Route" + /> + + { + if (!open) { + setAssociationToRemove(null) + } + }} + open={associationToRemove !== null} + pendingLabel="Disassociating…" + title="Disassociate Subnet" + /> ) } diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.test.tsx new file mode 100644 index 000000000..34d0cec19 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.test.tsx @@ -0,0 +1,113 @@ +import { screen, waitFor } from "@testing-library/react" +import userEvent from "@testing-library/user-event" +import { beforeEach, describe, expect, it, vi } from "vitest" + +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +const { sdk } = vi.hoisted(() => { + interface SdkCommand { + readonly input: object + } + return { + sdk: { + send: vi.fn<(command: SdkCommand) => Promise>(async () => ({})), + }, + } +}) + +vi.mock("@/lib/awsClient", () => ({ + getEc2Client: () => ({ send: sdk.send }), +})) + +vi.mock("@tanstack/react-router", async (importOriginal) => { + const actual = await importOriginal() + return { + ...actual, + createFileRoute: + () => + (options: TOptions) => ({ + options, + useParams: () => ({ id: "sg-1" }), + }), + useNavigate: () => vi.fn(), + Link: ({ children, to }: { children: React.ReactNode; to?: string }) => ( + {children} + ), + } +}) + +import { Route } from "./$id" + +async function renderPage() { + const qc = createTestQueryClient() + qc.setQueryData(["ec2", "securityGroups", "sg-1"], { + SecurityGroups: [ + { + GroupId: "sg-1", + GroupName: "web", + VpcId: "vpc-1", + IpPermissions: [ + { + IpProtocol: "tcp", + FromPort: 22, + ToPort: 22, + IpRanges: [{ CidrIp: "203.0.113.5/32" }], + }, + ], + IpPermissionsEgress: [], + }, + ], + }) + const Detail = Route.options.component + if (!Detail) { + throw new Error("route has no component") + } + // The router plugin code-splits route components, so load it before render. + await Detail.preload?.() + renderWithClient(, qc) +} + +describe("security group detail", () => { + beforeEach(() => { + sdk.send.mockClear() + }) + + it("revokes a rule only after it is confirmed", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click(screen.getByRole("button", { name: "Remove rule" })) + expect(sdk.send).not.toHaveBeenCalled() + await user.click(screen.getByRole("button", { name: "Remove" })) + + await waitFor(() => { + expect(sdk.send).toHaveBeenCalled() + }) + expect(sdk.send.mock.calls[0]?.[0]).toMatchObject({ + input: { + GroupId: "sg-1", + IpPermissions: [ + { + IpProtocol: "tcp", + FromPort: 22, + ToPort: 22, + IpRanges: [{ CidrIp: "203.0.113.5/32" }], + }, + ], + }, + }) + }) + + it("does nothing when the dialog is cancelled", async () => { + const user = userEvent.setup() + await renderPage() + + await user.click(screen.getByRole("button", { name: "Remove rule" })) + await user.click(screen.getByRole("button", { name: "Cancel" })) + + expect(sdk.send).not.toHaveBeenCalled() + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.tsx index d11d37041..22738719b 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ec2/(security-groups)/describe-security-groups/$id.tsx @@ -289,6 +289,7 @@ function RuleRow({ rule, source, groupId, direction }: RuleRowProps) { const revokeIngress = useRevokeSecurityGroupIngress() const revokeEgress = useRevokeSecurityGroupEgress() const mutation = direction === "ingress" ? revokeIngress : revokeEgress + const [showRemoveDialog, setShowRemoveDialog] = useState(false) const handleRemove = async () => { try { @@ -303,6 +304,8 @@ function RuleRow({ rule, source, groupId, direction }: RuleRowProps) { }) } catch { // Error is stored in mutation.error and rendered below + } finally { + setShowRemoveDialog(false) } } @@ -332,7 +335,9 @@ function RuleRow({ rule, source, groupId, direction }: RuleRowProps) {