From 6757f847d2a7b483cd42da3883ccd420cf30aca4 Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Tue, 30 Jun 2026 09:50:03 +1000 Subject: [PATCH] chore: rebuild ui --- .../spinifexui/frontend/dist/assets/_auth.js | 2 +- .../frontend/dist/assets/_clusterName.js | 2 +- .../frontend/dist/assets/_clusterName2.js | 2 +- .../spinifexui/frontend/dist/assets/_id.js | 2 +- .../spinifexui/frontend/dist/assets/_id10.js | 2 +- .../spinifexui/frontend/dist/assets/_id11.js | 2 +- .../spinifexui/frontend/dist/assets/_id12.js | 2 +- .../spinifexui/frontend/dist/assets/_id13.js | 2 +- .../spinifexui/frontend/dist/assets/_id14.js | 2 +- .../spinifexui/frontend/dist/assets/_id15.js | 2 +- .../spinifexui/frontend/dist/assets/_id16.js | 2 +- .../spinifexui/frontend/dist/assets/_id3.js | 2 +- .../spinifexui/frontend/dist/assets/_id4.js | 2 +- .../spinifexui/frontend/dist/assets/_id5.js | 2 +- .../spinifexui/frontend/dist/assets/_id6.js | 2 +- .../spinifexui/frontend/dist/assets/_id7.js | 2 +- .../spinifexui/frontend/dist/assets/_id8.js | 2 +- .../spinifexui/frontend/dist/assets/_id9.js | 2 +- .../dist/assets/_instanceProfileName.js | 2 +- .../frontend/dist/assets/_policyArn.js | 2 +- .../frontend/dist/assets/_roleName.js | 2 +- .../frontend/dist/assets/_userName.js | 2 +- .../frontend/dist/assets/alert-dialog.js | 2 +- .../frontend/dist/assets/allocate-address.js | 2 +- .../spinifexui/frontend/dist/assets/auth.js | 18 +++++++------- .../frontend/dist/assets/awsClient.js | 4 ++-- .../frontend/dist/assets/back-link.js | 2 +- .../spinifexui/frontend/dist/assets/badge.js | 2 +- .../dist/assets/certificate-import-dialog.js | 2 +- .../spinifexui/frontend/dist/assets/check.js | 2 +- .../frontend/dist/assets/chevron-down.js | 2 +- .../frontend/dist/assets/chevron-right.js | 2 +- .../frontend/dist/assets/cli-command-panel.js | 2 +- .../frontend/dist/assets/collapsible.js | 2 +- .../spinifexui/frontend/dist/assets/copy.js | 2 +- .../frontend/dist/assets/create-bucket.js | 2 +- .../frontend/dist/assets/create-cluster.js | 2 +- .../dist/assets/create-instance-profile.js | 2 +- .../dist/assets/create-internet-gateway.js | 2 +- .../frontend/dist/assets/create-key-pair.js | 2 +- .../dist/assets/create-load-balancer.js | 4 ++-- .../dist/assets/create-nat-gateway.js | 6 ++--- .../dist/assets/create-placement-group.js | 2 +- .../frontend/dist/assets/create-policy.js | 2 +- .../frontend/dist/assets/create-role.js | 2 +- .../dist/assets/create-route-table.js | 2 +- .../dist/assets/create-security-group.js | 6 ++--- .../frontend/dist/assets/create-service.js | 2 +- .../frontend/dist/assets/create-snapshot.js | 4 ++-- .../frontend/dist/assets/create-subnet.js | 6 ++--- .../dist/assets/create-target-group.js | 2 +- .../frontend/dist/assets/create-user.js | 2 +- .../frontend/dist/assets/create-volume.js | 4 ++-- .../frontend/dist/assets/create-vpc.js | 2 +- .../dist/assets/describe-load-balancers.js | 2 +- .../dist/assets/describe-target-groups.js | 2 +- .../frontend/dist/assets/download.js | 2 +- .../spinifexui/frontend/dist/assets/ec2.js | 2 +- .../spinifexui/frontend/dist/assets/ecr.js | 2 +- .../spinifexui/frontend/dist/assets/ecs.js | 2 +- .../spinifexui/frontend/dist/assets/eks.js | 2 +- .../spinifexui/frontend/dist/assets/elbv2.js | 2 +- .../spinifexui/frontend/dist/assets/iam.js | 2 +- .../frontend/dist/assets/import-key-pair.js | 2 +- .../spinifexui/frontend/dist/assets/index.js | 12 +++++----- .../frontend/dist/assets/list-clusters.js | 2 +- .../frontend/dist/assets/list-repositories.js | 2 +- .../spinifexui/frontend/dist/assets/login.js | 2 +- .../spinifexui/frontend/dist/assets/plus.js | 2 +- .../dist/assets/register-task-definition.js | 2 +- .../frontend/dist/assets/rotate-cw.js | 2 +- .../spinifexui/frontend/dist/assets/route.js | 2 +- .../spinifexui/frontend/dist/assets/route2.js | 2 +- .../frontend/dist/assets/run-instances.js | 24 +++++++++---------- .../frontend/dist/assets/run-task.js | 2 +- .../spinifexui/frontend/dist/assets/s3.js | 2 +- .../spinifexui/frontend/dist/assets/select.js | 2 +- .../spinifexui/frontend/dist/assets/tabs.js | 2 +- .../frontend/dist/assets/tags-editor.js | 2 +- .../frontend/dist/assets/target-group-form.js | 2 +- .../frontend/dist/assets/trash-2.js | 2 +- .../frontend/dist/assets/triangle-alert.js | 2 +- .../frontend/dist/assets/upload-button.js | 2 +- .../frontend/dist/assets/useBaseQuery.js | 2 +- .../frontend/dist/assets/useMutation.js | 2 +- .../frontend/dist/assets/useNavigate.js | 1 + .../frontend/dist/assets/useStore.js | 2 +- .../frontend/dist/assets/useValueAsRef.js | 1 + .../spinifexui/frontend/dist/assets/zod.js | 2 +- .../spinifexui/frontend/dist/index.html | 10 ++++---- 90 files changed, 129 insertions(+), 125 deletions(-) create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js create mode 100644 spinifex/services/spinifexui/frontend/dist/assets/useValueAsRef.js diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index f3bd88793..96fe3d5f2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{$t as l,Br as u,Bt as d,Dt as f,Gr as p,Hr as ee,It as m,Kr as h,Pt as g,Rt as _,Tt as v,Ur as y,Vr as b,Wr as x,Yr as S,qr as C,qt as w,rn as T,tn as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./card.js";var L=S(`box`,[[`path`,{d:`M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),R=S(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),z=S(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),ne=S(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),B=r(),V=t(n(),1),H=e(),re=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,B.c)(110),{isAdmin:t,version:n,license:r}=T(),[a,o]=(0,V.useState)(!1),l;e[0]===t?l=e[1]:(l={...A,enabled:t},e[0]=t,e[1]=l);let{data:u}=i(l),d;e[2]===t?d=e[3]:(d={...k,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p,m,h,g,_,v,y,b,x,S,C,w,E,D,O,M,N,L,R;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==f?.vms){g=u?.nodes??[];let t;e[31]===f?.vms?t=e[32]:(t=f?.vms??[],e[31]=f?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;h=r===`open-source`;let o=g[0]?.region??null,s=g.reduce(se,0),c=g.reduce(oe,0),l=g.reduce(ae,0),d=g.reduce(ie,0);C=`mb-6 space-y-4`,b=`grid grid-cols-1 gap-4 md:grid-cols-3`;let T;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ne,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=T):T=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,H.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let z;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=z):z=e[37];let B;e[38]===n.commit?B=e[39]:(B=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[z,(0,H.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=B);let V;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=V):V=e[40];let re;e[41]!==n.arch||e[42]!==n.os?(re=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[V,(0,H.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=re):re=e[43],x=(0,H.jsxs)(I,{children:[T,(0,H.jsxs)(F,{className:`space-y-1 text-xs`,children:[A,B,re,o&&(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,H.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=h?`secondary`:`default`,G=h?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,H.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=h?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,H.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===h?X=e[53]:(X=h&&(0,H.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=h,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(S=(0,H.jsxs)(I,{children:[U,(0,H.jsxs)(F,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=S):S=e[57],m=I,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsxs)(P,{className:`flex items-center gap-2 text-sm`,children:[(0,H.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=y):y=e[58],p=F,N=`space-y-2 text-xs`,e[59]===a?L=e[60]:(L=(0,H.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,H.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=L);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],R=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,H.jsx)(`span`,{children:g.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?_=e[64]:(_=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,H.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=_);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],v=(0,H.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,H.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],w=d.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=f?.vms,e[12]=p,e[13]=m,e[14]=h,e[15]=g,e[16]=_,e[17]=v,e[18]=y,e[19]=b,e[20]=x,e[21]=S,e[22]=C,e[23]=w,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=L,e[30]=R}else p=e[12],m=e[13],h=e[14],g=e[15],_=e[16],v=e[17],y=e[18],b=e[19],x=e[20],S=e[21],C=e[22],w=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],L=e[29],R=e[30];let U;e[67]!==w||e[68]!==E||e[69]!==D?(U=(0,H.jsxs)(`span`,{children:[w,E,D,` GB`]}),e[67]=w,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,H.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==p||e[76]!==_||e[77]!==v||e[78]!==W||e[79]!==N||e[80]!==L||e[81]!==R?(G=(0,H.jsxs)(p,{className:N,children:[L,R,_,v,W]}),e[75]=p,e[76]=_,e[77]=v,e[78]=W,e[79]=N,e[80]=L,e[81]=R,e[82]=G):G=e[82];let K;e[83]!==m||e[84]!==y||e[85]!==G?(K=(0,H.jsxs)(m,{children:[y,G]}),e[83]=m,e[84]=y,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==b||e[88]!==x||e[89]!==S||e[90]!==K?(q=(0,H.jsxs)(`div`,{className:b,children:[x,S,K]}),e[87]=b,e[88]=x,e[89]=S,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==g||e[93]!==a?(J=g.length>0&&(0,H.jsxs)(I,{children:[(0,H.jsx)(j,{className:`pb-0`,children:(0,H.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,H.jsx)(s,{className:`size-3.5`}):(0,H.jsx)(c,{className:`size-3.5`}),`Nodes (`,g.length,`)`]})}),a&&(0,H.jsx)(F,{className:`pt-2`,children:(0,H.jsx)(ce,{nodes:g})})]}),e[92]=g,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,H.jsx)(j,{className:`pb-2`,children:(0,H.jsx)(P,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===h?X=e[97]:(X=re.map(e=>(0,H.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,H.jsx)(`span`,{className:h?`text-muted-foreground`:void 0,children:e.name}),h?(0,H.jsx)(z,{className:`size-3 text-muted-foreground`}):(0,H.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=h,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,H.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===h?Q=e[101]:(Q=h&&(0,H.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=h,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,H.jsxs)(I,{children:[Y,(0,H.jsxs)(F,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==C||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,H.jsxs)(`div`,{className:C,children:[q,J,$]}),e[105]=C,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,B.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,H.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,H.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,H.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,H.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,H.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,H.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,H.jsx)(`td`,{className:`py-1.5`,children:(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,B.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(D,{title:`Dashboard`}),n=(0,H.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,H.jsxs)(H.Fragment,{children:[t,n,(0,H.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,H.jsx)(V.Suspense,{fallback:(0,H.jsx)(J,{}),children:(0,H.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(j,{children:(0,H.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,H.jsxs)(I,{children:[t,(0,H.jsx)(F,{children:(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,H.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,B.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,H.jsxs)(P,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,H.jsx)(N,{children:(0,H.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,H.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,H.jsx)(F,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,H.jsx)(M,{children:(0,H.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,H.jsxs)(I,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,B.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,H.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,B.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,H.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,B.c)(16),{data:t}=i(g),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(h,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[a.length,` running`]}),(0,H.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,H.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let d;return e[13]!==n.length||e[14]!==u?(d=(0,H.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=d):d=e[15],d}function $(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,B.c)(3),{data:t}=i(l),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,H.jsx)(L,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,H.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,H.jsxs)(`span`,{children:[i,` GiB total`]}),(0,H.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,H.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,H.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,H.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,H.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,H.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,B.c)(3),{data:t}=i(E),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(x,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,H.jsxs)(Z,{children:[(0,H.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,H.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,B.c)(3),{data:t}=i(_),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(p,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,B.c)(3),{data:t}=i(v),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(R,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,H.jsx)(Z,{children:(0,H.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,B.c)(3),{data:t}=i(w),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,B.c)(3),{data:t}=i(d),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(u,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,B.c)(3),{data:t}=i(m),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(y,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,B.c)(3),{data:t}=i(f),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsx)(C,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,H.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,H.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,H.jsxs)(Z,{children:[(0,H.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{$t as l,Br as u,Bt as d,Dt as f,Fr as p,Ir as m,It as h,Lr as g,Mr as _,Nr as ee,Pr as v,Pt as y,Rr as b,Rt as x,Tt as S,jr as C,qt as w,rn as T,tn as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=u(`box`,[[`path`,{d:`M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=u(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=u(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=u(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=T(),[a,o]=(0,B.useState)(!1),l;e[0]===t?l=e[1]:(l={...A,enabled:t},e[0]=t,e[1]=l);let{data:u}=i(l),d;e[2]===t?d=e[3]:(d={...k,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p,m,h,g,_,v,y,b,x,S,C,w,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==u?.cluster_mode||e[6]!==u?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==f?.vms){g=u?.nodes??[];let t;e[31]===f?.vms?t=e[32]:(t=f?.vms??[],e[31]=f?.vms,e[32]=t);let i=t,a=u?.cluster_mode??`single-node`;h=r===`open-source`;let o=g[0]?.region??null,s=g.reduce(se,0),c=g.reduce(oe,0),l=g.reduce(ae,0),d=g.reduce(ie,0);C=`mb-6 space-y-4`,b=`grid grid-cols-1 gap-4 md:grid-cols-3`;let T;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=T):T=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],x=(0,V.jsxs)(F,{children:[T,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=h?`secondary`:`default`,G=h?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=h?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===h?X=e[53]:(X=h&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=h,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(S=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=S):S=e[57],m=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=y):y=e[58],p=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:g.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?_=e[64]:(_=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=_);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],w=d.toFixed(1),E=` / `,D=l.toFixed(1),e[4]=r,e[5]=u?.cluster_mode,e[6]=u?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=f?.vms,e[12]=p,e[13]=m,e[14]=h,e[15]=g,e[16]=_,e[17]=v,e[18]=y,e[19]=b,e[20]=x,e[21]=S,e[22]=C,e[23]=w,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else p=e[12],m=e[13],h=e[14],g=e[15],_=e[16],v=e[17],y=e[18],b=e[19],x=e[20],S=e[21],C=e[22],w=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==w||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[w,E,D,` GB`]}),e[67]=w,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==p||e[76]!==_||e[77]!==v||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(p,{className:N,children:[I,L,_,v,W]}),e[75]=p,e[76]=_,e[77]=v,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==m||e[84]!==y||e[85]!==G?(K=(0,V.jsxs)(m,{children:[y,G]}),e[83]=m,e[84]=y,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==b||e[88]!==x||e[89]!==S||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:b,children:[x,S,K]}),e[87]=b,e[88]=x,e[89]=S,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==g||e[93]!==a?(J=g.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,g.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:g})})]}),e[92]=g,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===h?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:h?`text-muted-foreground`:void 0,children:e.name}),h?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=h,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===h?Q=e[101]:(Q=h&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=h,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==C||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:C,children:[q,J,$]}),e[105]=C,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(y),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(g,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let d;return e[13]!==n.length||e[14]!==u?(d=(0,V.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=d):d=e[15],d}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(l),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(E),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(p,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(x),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(m,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(S),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(w),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(_,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(d),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(C,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(h),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(v,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(f),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(b,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js index bc8bb8970..e43689e5e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{ni as o}from"./awsClient.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{i as u,l as d,o as f,r as p,u as m}from"./ecs.js";import{Qr as h,Rt as g,Zt as _,b as v,it as y,nr as b,ot as x,qt as S,st as C,ut as w}from"./index.js";import{t as ee}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,t as D}from"./field.js";import{a as O,i as k,l as A,n as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{n as L,t as R}from"./detail-row.js";import{t as z}from"./state-badge.js";import{i as B,n as te,r as ne,t as re}from"./tabs.js";var V=r(),H=t(n(),1),U=e(),W=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function G({clusterName:e,open:t,onOpenChange:n}){let r=f(),{data:a}=i(_),{data:o}=i(S),{data:s}=i(g),c=a?.Subnets??[],l=o?.SecurityGroups??[],u=s?.KeyPairs??[],[d,p]=(0,H.useState)(`t3.small`),[m,h]=(0,H.useState)(1),[v,y]=(0,H.useState)(``),[x,C]=(0,H.useState)(``),[w,T]=(0,H.useState)(``);function I(e){e||(p(`t3.small`),h(1),y(``),C(``),T(``),r.reset()),n(e)}async function L(){try{await r.mutateAsync({Cluster:e,InstanceType:d||void 0,Count:m,SubnetID:v,SecurityGroupID:x,KeyName:w||void 0}),I(!1)}catch{}}let R=r.isPending||v===``||x===``;return(0,U.jsx)(F,{onOpenChange:I,open:t,children:(0,U.jsxs)(k,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,U.jsxs)(P,{children:[(0,U.jsx)(A,{children:`Provision EC2 capacity`}),(0,U.jsxs)(O,{children:[`Launch container instances into cluster “`,e,`”. They register automatically once booted.`]})]}),(0,U.jsxs)(`div`,{className:`space-y-4`,children:[(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-instance-type`,children:`Instance type`})}),(0,U.jsx)(b,{id:`provision-instance-type`,onChange:e=>p(e.target.value),placeholder:`t3.small`,value:d})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-count`,children:`Count`})}),(0,U.jsx)(b,{id:`provision-count`,max:10,min:1,onChange:e=>h(Number(e.target.value)),type:`number`,value:m})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-subnet`,children:`Subnet`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-subnet`,onChange:e=>y(e.target.value),value:v,children:[(0,U.jsx)(`option`,{value:``,children:`Select a subnet`}),c.map(e=>(0,U.jsxs)(`option`,{value:e.SubnetId??``,children:[e.SubnetId,` (`,e.CidrBlock,e.AvailabilityZone?`, ${e.AvailabilityZone}`:``,`)`]},e.SubnetId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-sg`,children:`Security group`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-sg`,onChange:e=>C(e.target.value),value:x,children:[(0,U.jsx)(`option`,{value:``,children:`Select a security group`}),l.map(e=>(0,U.jsxs)(`option`,{value:e.GroupId??``,children:[e.GroupId,` (`,e.GroupName,`)`]},e.GroupId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-key`,children:`Key pair`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-key`,onChange:e=>T(e.target.value),value:w,children:[(0,U.jsx)(`option`,{value:``,children:`None`}),u.map(e=>(0,U.jsx)(`option`,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))]})]})]}),r.error&&(0,U.jsx)(ee,{error:r.error instanceof Error?r.error:void 0,msg:`Failed to provision capacity.`}),(0,U.jsxs)(M,{children:[(0,U.jsx)(N,{children:`Cancel`}),(0,U.jsx)(j,{disabled:R,onClick:e=>{e.preventDefault(),L()},children:r.isPending?`Provisioning…`:`Provision`})]})]})})}var K={drain:`Drain`,activate:`Activate`,deregister:`Deregister`},q={drain:`Draining force-stops the service-owned tasks on this instance so it can be retired.`,activate:`This returns the instance to ACTIVE so the scheduler can place tasks on it again.`,deregister:`This force-removes the container instance record. Any tasks it still holds are stopped.`};function ie(e){let t=(0,V.c)(28),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=x(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=m(),s=u(),[c,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(!1),h;t[2]!==n||t[3]!==s||t[4]!==c||t[5]!==o?(h=function(){if(!c)return;let e=()=>d(null);if(c.action===`deregister`){s.mutate({cluster:n,containerInstance:c.arn},{onSuccess:e});return}o.mutate({cluster:n,containerInstance:c.arn,status:c.action===`drain`?`DRAINING`:`ACTIVE`},{onSuccess:e})},t[2]=n,t[3]=s,t[4]=c,t[5]=o,t[6]=h):h=t[6];let g=h,_=o.isError||s.isError,v=o.error??s.error,y=o.isPending||s.isPending,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(l,{onClick:()=>p(!0),size:`sm`,children:`Provision EC2 capacity`})}),t[7]=b):b=t[7];let S;t[8]!==v||t[9]!==_?(S=_&&(0,U.jsx)(ee,{error:v instanceof Error?v:void 0,msg:`Container instance action failed.`}),t[8]=v,t[9]=_,t[10]=S):S=t[10];let C;t[11]===i?C=t[12]:(C=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No container instances found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`EC2 Instance`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=e.containerInstanceArn??``,n=e.status===`DRAINING`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ec2InstanceId}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,U.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,U.jsx)(l,{"aria-label":n?`Activate container instance`:`Drain container instance`,onClick:()=>d({arn:t,action:n?`activate`:`drain`}),size:`sm`,variant:`outline`,children:n?`Activate`:`Drain`}),(0,U.jsx)(l,{onClick:()=>d({arn:t,action:`deregister`}),size:`sm`,variant:`destructive`,children:`Deregister`})]})})]},t)})})]})}),t[11]=i,t[12]=C);let w;t[13]!==n||t[14]!==f?(w=(0,U.jsx)(G,{clusterName:n,onOpenChange:p,open:f}),t[13]=n,t[14]=f,t[15]=w):w=t[15];let T=c?K[c.action]:`Confirm`,E=c?q[c.action]:``,D;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&d(null),t[16]=D):D=t[16];let O=c!==null,k;t[17]!==g||t[18]!==y||t[19]!==O||t[20]!==T||t[21]!==E?(k=(0,U.jsx)(I,{confirmLabel:T,description:E,isPending:y,onConfirm:g,onOpenChange:D,open:O,title:`Container instance`}),t[17]=g,t[18]=y,t[19]=O,t[20]=T,t[21]=E,t[22]=k):k=t[22];let A;return t[23]!==k||t[24]!==S||t[25]!==C||t[26]!==w?(A=(0,U.jsxs)(U.Fragment,{children:[b,S,C,w,k]}),t[23]=k,t[24]=S,t[25]=C,t[26]=w,t[27]=A):A=t[27],A}function J(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function ae(e){let t=(0,V.c)(13),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=C(n),t[0]=n,t[1]=r);let{data:i}=a(r),s;t[2]===n?s=t[3]:(s={cluster:n},t[2]=n,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(l,{size:`sm`,children:`Create service`}),t[4]=c):c=t[4];let u;t[5]===s?u=t[6]:(u=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:s,to:`/ecs/create-service`,children:c})}),t[5]=s,t[6]=u);let d;t[7]!==n||t[8]!==i?(d=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No services found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,serviceName:e.serviceName??``},to:`/ecs/list-clusters/$clusterName/services/$serviceName`,children:e.serviceName})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:J(e.taskDefinition)})]},e.serviceArn??e.serviceName))})]})}),t[7]=n,t[8]=i,t[9]=d):d=t[9];let f;return t[10]!==u||t[11]!==d?(f=(0,U.jsxs)(U.Fragment,{children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function Y(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function oe(e){let t=(0,V.c)(27),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=w(n),t[0]=n,t[1]=r);let{data:i}=a(r),s=d(),[c,u]=(0,H.useState)(null),f;t[2]!==n||t[3]!==c||t[4]!==s?(f=function(){c&&s.mutate({cluster:n,task:c},{onSuccess:()=>u(null)})},t[2]=n,t[3]=c,t[4]=s,t[5]=f):f=t[5];let p=f,m;t[6]===n?m=t[7]:(m={cluster:n},t[6]=n,t[7]=m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(l,{size:`sm`,children:`Run task`}),t[8]=h):h=t[8];let g;t[9]===m?g=t[10]:(g=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(o,{search:m,to:`/ecs/run-task`,children:h})}),t[9]=m,t[10]=g);let _;t[11]!==s.error||t[12]!==s.isError?(_=s.isError&&(0,U.jsx)(ee,{error:s.error instanceof Error?s.error:void 0,msg:`Failed to stop task.`}),t[11]=s.error,t[12]=s.isError,t[13]=_):_=t[13];let v;t[14]!==n||t[15]!==i?(v=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Group`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=Y(e.taskArn),r=e.lastStatus!==`STOPPED`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,U.jsx)(o,{className:`underline`,params:{clusterName:n,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.lastStatus})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredStatus}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.group}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:r&&(0,U.jsx)(l,{onClick:()=>u(e.taskArn??t),size:`sm`,variant:`destructive`,children:`Stop`})})]},t)})})]})}),t[14]=n,t[15]=i,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(null),t[17]=y):y=t[17];let b=c!==null,x;t[18]!==p||t[19]!==s.isPending||t[20]!==b?(x=(0,U.jsx)(I,{confirmLabel:`Stop task`,description:`This stops the task and releases its ENI and reserved capacity.`,isPending:s.isPending,onConfirm:p,onOpenChange:y,open:b,pendingLabel:`Stopping…`,title:`Stop task`}),t[18]=p,t[19]=s.isPending,t[20]=b,t[21]=x):x=t[21];let S;return t[22]!==x||t[23]!==g||t[24]!==_||t[25]!==v?(S=(0,U.jsxs)(U.Fragment,{children:[g,_,v,x]}),t[22]=x,t[23]=g,t[24]=_,t[25]=v,t[26]=S):S=t[26],S}function X(e){let t=(0,V.c)(70),{clusterName:n}=e,r=h(),[i,o]=(0,H.useState)(!1),u;t[0]===n?u=t[1]:(u=y(n),t[0]=n,t[1]=u);let{data:d}=a(u),f=p(),m;t[2]!==n||t[3]!==f||t[4]!==r?(m=function(){f.mutate(n,{onSuccess:()=>{r({to:`/ecs/list-clusters`})}})},t[2]=n,t[3]=f,t[4]=r,t[5]=m):m=t[5];let g=m;if(!d){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[6]=e):e=t[6];let r;t[7]===n?r=t[8]:(r=(0,U.jsx)(T,{subtitle:`Cluster Details`,title:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`Cluster not found.`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,U.jsxs)(U.Fragment,{children:[e,r,i]}),t[10]=r,t[11]=a),a}let _;t[12]===d.tags?_=t[13]:(_=d.tags??[],t[12]=d.tags,t[13]=_);let v=_,b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(s,{to:`/ecs/list-clusters`,children:`Clusters`}),t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>o(!0),t[15]=x):x=t[15];let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsxs)(l,{onClick:x,size:`sm`,variant:`destructive`,children:[(0,U.jsx)(c,{className:`size-4`}),`Delete`]}),t[16]=S):S=t[16];let C;t[17]===d.status?C=t[18]:(C=(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[S,(0,U.jsx)(z,{state:d.status})]}),t[17]=d.status,t[18]=C);let w;t[19]!==n||t[20]!==C?(w=(0,U.jsx)(T,{actions:C,subtitle:`Cluster Details`,title:n}),t[19]=n,t[20]=C,t[21]=w):w=t[21];let E;t[22]!==f.error||t[23]!==f.isError?(E=f.isError&&(0,U.jsx)(ee,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to delete cluster.`}),t[22]=f.error,t[23]=f.isError,t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,U.jsx)(L.Header,{children:`Overview`}),t[25]=D):D=t[25];let O;t[26]===d.clusterArn?O=t[27]:(O=(0,U.jsx)(R,{label:`ARN`,value:d.clusterArn}),t[26]=d.clusterArn,t[27]=O);let k;t[28]===d.status?k=t[29]:(k=(0,U.jsx)(R,{label:`Status`,value:d.status}),t[28]=d.status,t[29]=k);let A=String(d.activeServicesCount??0),j;t[30]===A?j=t[31]:(j=(0,U.jsx)(R,{label:`Active services`,value:A}),t[30]=A,t[31]=j);let M=String(d.runningTasksCount??0),N;t[32]===M?N=t[33]:(N=(0,U.jsx)(R,{label:`Running tasks`,value:M}),t[32]=M,t[33]=N);let P=String(d.pendingTasksCount??0),F;t[34]===P?F=t[35]:(F=(0,U.jsx)(R,{label:`Pending tasks`,value:P}),t[34]=P,t[35]=F);let W=String(d.registeredContainerInstancesCount??0),G;t[36]===W?G=t[37]:(G=(0,U.jsx)(R,{label:`Registered instances`,value:W}),t[36]=W,t[37]=G);let K;t[38]!==O||t[39]!==k||t[40]!==j||t[41]!==N||t[42]!==F||t[43]!==G?(K=(0,U.jsxs)(L,{children:[D,(0,U.jsxs)(L.Content,{children:[O,k,j,N,F,G]})]}),t[38]=O,t[39]=k,t[40]=j,t[41]=N,t[42]=F,t[43]=G,t[44]=K):K=t[44];let q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,U.jsxs)(te,{children:[(0,U.jsx)(B,{value:`services`,children:`Services`}),(0,U.jsx)(B,{value:`tasks`,children:`Tasks`}),(0,U.jsx)(B,{value:`infrastructure`,children:`Infrastructure`}),(0,U.jsx)(B,{value:`tags`,children:`Tags`})]}),t[45]=q):q=t[45];let J;t[46]===n?J=t[47]:(J=(0,U.jsx)(ne,{value:`services`,children:(0,U.jsx)(ae,{clusterName:n})}),t[46]=n,t[47]=J);let Y;t[48]===n?Y=t[49]:(Y=(0,U.jsx)(ne,{value:`tasks`,children:(0,U.jsx)(oe,{clusterName:n})}),t[48]=n,t[49]=Y);let X;t[50]===n?X=t[51]:(X=(0,U.jsx)(ne,{value:`infrastructure`,children:(0,U.jsx)(ie,{clusterName:n})}),t[50]=n,t[51]=X);let Z;t[52]===v?Z=t[53]:(Z=(0,U.jsx)(ne,{value:`tags`,children:v.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Key`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Value`})]})}),(0,U.jsx)(`tbody`,{children:v.map(se)})]})})}),t[52]=v,t[53]=Z);let Q;t[54]!==J||t[55]!==Y||t[56]!==X||t[57]!==Z?(Q=(0,U.jsxs)(re,{className:`mt-6`,defaultValue:`services`,children:[q,J,Y,X,Z]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z,t[58]=Q):Q=t[58];let ce=`This permanently deletes cluster "${n}" and force-stops every task it holds. This cannot be undone.`,$;t[59]!==f.isPending||t[60]!==g||t[61]!==i||t[62]!==ce?($=(0,U.jsx)(I,{description:ce,isPending:f.isPending,onConfirm:g,onOpenChange:o,open:i,title:`Delete cluster`}),t[59]=f.isPending,t[60]=g,t[61]=i,t[62]=ce,t[63]=$):$=t[63];let le;return t[64]!==K||t[65]!==Q||t[66]!==$||t[67]!==w||t[68]!==E?(le=(0,U.jsxs)(U.Fragment,{children:[b,w,E,K,Q,$]}),t[64]=K,t[65]=Q,t[66]=$,t[67]=w,t[68]=E,t[69]=le):le=t[69],le}function se(e){return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.key}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.value})]},e.key)}function Z(){let e=(0,V.c)(2),{clusterName:t}=v.useParams(),n;return e[0]===t?n=e[1]:(n=(0,U.jsx)(X,{clusterName:t}),e[0]=t,e[1]=n),n}export{Z as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{ni as s}from"./awsClient.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{i as d,l as f,o as p,r as m,u as h}from"./ecs.js";import{Rt as g,Zt as _,b as v,er as y,it as b,ot as x,qt as S,st as C,ut as w}from"./index.js";import{t as ee}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,t as D}from"./field.js";import{a as O,i as k,l as A,n as j,o as M,r as N,s as P,t as F}from"./alert-dialog.js";import{t as I}from"./delete-confirmation-dialog.js";import{n as L,t as R}from"./detail-row.js";import{t as z}from"./state-badge.js";import{i as B,n as te,r as ne,t as re}from"./tabs.js";var V=r(),H=t(n(),1),U=e(),W=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function G({clusterName:e,open:t,onOpenChange:n}){let r=p(),{data:a}=i(_),{data:o}=i(S),{data:s}=i(g),c=a?.Subnets??[],l=o?.SecurityGroups??[],u=s?.KeyPairs??[],[d,f]=(0,H.useState)(`t3.small`),[m,h]=(0,H.useState)(1),[v,b]=(0,H.useState)(``),[x,C]=(0,H.useState)(``),[w,T]=(0,H.useState)(``);function I(e){e||(f(`t3.small`),h(1),b(``),C(``),T(``),r.reset()),n(e)}async function L(){try{await r.mutateAsync({Cluster:e,InstanceType:d||void 0,Count:m,SubnetID:v,SecurityGroupID:x,KeyName:w||void 0}),I(!1)}catch{}}let R=r.isPending||v===``||x===``;return(0,U.jsx)(F,{onOpenChange:I,open:t,children:(0,U.jsxs)(k,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,U.jsxs)(P,{children:[(0,U.jsx)(A,{children:`Provision EC2 capacity`}),(0,U.jsxs)(O,{children:[`Launch container instances into cluster “`,e,`”. They register automatically once booted.`]})]}),(0,U.jsxs)(`div`,{className:`space-y-4`,children:[(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-instance-type`,children:`Instance type`})}),(0,U.jsx)(y,{id:`provision-instance-type`,onChange:e=>f(e.target.value),placeholder:`t3.small`,value:d})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-count`,children:`Count`})}),(0,U.jsx)(y,{id:`provision-count`,max:10,min:1,onChange:e=>h(Number(e.target.value)),type:`number`,value:m})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-subnet`,children:`Subnet`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-subnet`,onChange:e=>b(e.target.value),value:v,children:[(0,U.jsx)(`option`,{value:``,children:`Select a subnet`}),c.map(e=>(0,U.jsxs)(`option`,{value:e.SubnetId??``,children:[e.SubnetId,` (`,e.CidrBlock,e.AvailabilityZone?`, ${e.AvailabilityZone}`:``,`)`]},e.SubnetId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-sg`,children:`Security group`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-sg`,onChange:e=>C(e.target.value),value:x,children:[(0,U.jsx)(`option`,{value:``,children:`Select a security group`}),l.map(e=>(0,U.jsxs)(`option`,{value:e.GroupId??``,children:[e.GroupId,` (`,e.GroupName,`)`]},e.GroupId))]})]}),(0,U.jsxs)(D,{children:[(0,U.jsx)(E,{children:(0,U.jsx)(`label`,{htmlFor:`provision-key`,children:`Key pair`})}),(0,U.jsxs)(`select`,{className:W,id:`provision-key`,onChange:e=>T(e.target.value),value:w,children:[(0,U.jsx)(`option`,{value:``,children:`None`}),u.map(e=>(0,U.jsx)(`option`,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))]})]})]}),r.error&&(0,U.jsx)(ee,{error:r.error instanceof Error?r.error:void 0,msg:`Failed to provision capacity.`}),(0,U.jsxs)(M,{children:[(0,U.jsx)(N,{children:`Cancel`}),(0,U.jsx)(j,{disabled:R,onClick:e=>{e.preventDefault(),L()},children:r.isPending?`Provisioning…`:`Provision`})]})]})})}var K={drain:`Drain`,activate:`Activate`,deregister:`Deregister`},q={drain:`Draining force-stops the service-owned tasks on this instance so it can be retired.`,activate:`This returns the instance to ACTIVE so the scheduler can place tasks on it again.`,deregister:`This force-removes the container instance record. Any tasks it still holds are stopped.`};function ie(e){let t=(0,V.c)(28),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=x(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=h(),s=d(),[c,l]=(0,H.useState)(null),[f,p]=(0,H.useState)(!1),m;t[2]!==n||t[3]!==s||t[4]!==c||t[5]!==o?(m=function(){if(!c)return;let e=()=>l(null);if(c.action===`deregister`){s.mutate({cluster:n,containerInstance:c.arn},{onSuccess:e});return}o.mutate({cluster:n,containerInstance:c.arn,status:c.action===`drain`?`DRAINING`:`ACTIVE`},{onSuccess:e})},t[2]=n,t[3]=s,t[4]=c,t[5]=o,t[6]=m):m=t[6];let g=m,_=o.isError||s.isError,v=o.error??s.error,y=o.isPending||s.isPending,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(u,{onClick:()=>p(!0),size:`sm`,children:`Provision EC2 capacity`})}),t[7]=b):b=t[7];let S;t[8]!==v||t[9]!==_?(S=_&&(0,U.jsx)(ee,{error:v instanceof Error?v:void 0,msg:`Container instance action failed.`}),t[8]=v,t[9]=_,t[10]=S):S=t[10];let C;t[11]===i?C=t[12]:(C=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No container instances found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`EC2 Instance`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=e.containerInstanceArn??``,n=e.status===`DRAINING`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.ec2InstanceId}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingTasksCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,U.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,U.jsx)(u,{"aria-label":n?`Activate container instance`:`Drain container instance`,onClick:()=>l({arn:t,action:n?`activate`:`drain`}),size:`sm`,variant:`outline`,children:n?`Activate`:`Drain`}),(0,U.jsx)(u,{onClick:()=>l({arn:t,action:`deregister`}),size:`sm`,variant:`destructive`,children:`Deregister`})]})})]},t)})})]})}),t[11]=i,t[12]=C);let w;t[13]!==n||t[14]!==f?(w=(0,U.jsx)(G,{clusterName:n,onOpenChange:p,open:f}),t[13]=n,t[14]=f,t[15]=w):w=t[15];let T=c?K[c.action]:`Confirm`,E=c?q[c.action]:``,D;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>!e&&l(null),t[16]=D):D=t[16];let O=c!==null,k;t[17]!==g||t[18]!==y||t[19]!==O||t[20]!==T||t[21]!==E?(k=(0,U.jsx)(I,{confirmLabel:T,description:E,isPending:y,onConfirm:g,onOpenChange:D,open:O,title:`Container instance`}),t[17]=g,t[18]=y,t[19]=O,t[20]=T,t[21]=E,t[22]=k):k=t[22];let A;return t[23]!==k||t[24]!==S||t[25]!==C||t[26]!==w?(A=(0,U.jsxs)(U.Fragment,{children:[b,S,C,w,k]}),t[23]=k,t[24]=S,t[25]=C,t[26]=w,t[27]=A):A=t[27],A}function J(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function ae(e){let t=(0,V.c)(13),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=C(n),t[0]=n,t[1]=r);let{data:i}=a(r),o;t[2]===n?o=t[3]:(o={cluster:n},t[2]=n,t[3]=o);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(u,{size:`sm`,children:`Create service`}),t[4]=c):c=t[4];let l;t[5]===o?l=t[6]:(l=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(s,{search:o,to:`/ecs/create-service`,children:c})}),t[5]=o,t[6]=l);let d;t[7]!==n||t[8]!==i?(d=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No services found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pending`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task Definition`})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(s,{className:`underline`,params:{clusterName:n,serviceName:e.serviceName??``},to:`/ecs/list-clusters/$clusterName/services/$serviceName`,children:e.serviceName})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.status})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.runningCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.pendingCount??0}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:J(e.taskDefinition)})]},e.serviceArn??e.serviceName))})]})}),t[7]=n,t[8]=i,t[9]=d):d=t[9];let f;return t[10]!==l||t[11]!==d?(f=(0,U.jsxs)(U.Fragment,{children:[l,d]}),t[10]=l,t[11]=d,t[12]=f):f=t[12],f}function Y(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function oe(e){let t=(0,V.c)(27),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=w(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=f(),[c,l]=(0,H.useState)(null),d;t[2]!==n||t[3]!==c||t[4]!==o?(d=function(){c&&o.mutate({cluster:n,task:c},{onSuccess:()=>l(null)})},t[2]=n,t[3]=c,t[4]=o,t[5]=d):d=t[5];let p=d,m;t[6]===n?m=t[7]:(m={cluster:n},t[6]=n,t[7]=m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(u,{size:`sm`,children:`Run task`}),t[8]=h):h=t[8];let g;t[9]===m?g=t[10]:(g=(0,U.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,U.jsx)(s,{search:m,to:`/ecs/run-task`,children:h})}),t[9]=m,t[10]=g);let _;t[11]!==o.error||t[12]!==o.isError?(_=o.isError&&(0,U.jsx)(ee,{error:o.error instanceof Error?o.error:void 0,msg:`Failed to stop task.`}),t[11]=o.error,t[12]=o.isError,t[13]=_):_=t[13];let v;t[14]!==n||t[15]!==i?(v=i.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tasks found.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Task`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Last Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Desired Status`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Group`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,U.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,U.jsx)(`tbody`,{children:i.map(e=>{let t=Y(e.taskArn),r=e.lastStatus!==`STOPPED`;return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:(0,U.jsx)(s,{className:`underline`,params:{clusterName:n,taskId:t},to:`/ecs/list-clusters/$clusterName/tasks/$taskId`,children:t})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:(0,U.jsx)(z,{state:e.lastStatus})}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.desiredStatus}),(0,U.jsx)(`td`,{className:`px-4 py-2`,children:e.group}),(0,U.jsx)(`td`,{className:`px-4 py-2 text-right`,children:r&&(0,U.jsx)(u,{onClick:()=>l(e.taskArn??t),size:`sm`,variant:`destructive`,children:`Stop`})})]},t)})})]})}),t[14]=n,t[15]=i,t[16]=v):v=t[16];let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&l(null),t[17]=y):y=t[17];let b=c!==null,x;t[18]!==p||t[19]!==o.isPending||t[20]!==b?(x=(0,U.jsx)(I,{confirmLabel:`Stop task`,description:`This stops the task and releases its ENI and reserved capacity.`,isPending:o.isPending,onConfirm:p,onOpenChange:y,open:b,pendingLabel:`Stopping…`,title:`Stop task`}),t[18]=p,t[19]=o.isPending,t[20]=b,t[21]=x):x=t[21];let S;return t[22]!==x||t[23]!==g||t[24]!==_||t[25]!==v?(S=(0,U.jsxs)(U.Fragment,{children:[g,_,v,x]}),t[22]=x,t[23]=g,t[24]=_,t[25]=v,t[26]=S):S=t[26],S}function X(e){let t=(0,V.c)(70),{clusterName:n}=e,r=o(),[i,s]=(0,H.useState)(!1),d;t[0]===n?d=t[1]:(d=b(n),t[0]=n,t[1]=d);let{data:f}=a(d),p=m(),h;t[2]!==n||t[3]!==p||t[4]!==r?(h=function(){p.mutate(n,{onSuccess:()=>{r({to:`/ecs/list-clusters`})}})},t[2]=n,t[3]=p,t[4]=r,t[5]=h):h=t[5];let g=h;if(!f){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,U.jsx)(c,{to:`/ecs/list-clusters`,children:`Clusters`}),t[6]=e):e=t[6];let r;t[7]===n?r=t[8]:(r=(0,U.jsx)(T,{subtitle:`Cluster Details`,title:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`Cluster not found.`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,U.jsxs)(U.Fragment,{children:[e,r,i]}),t[10]=r,t[11]=a),a}let _;t[12]===f.tags?_=t[13]:(_=f.tags??[],t[12]=f.tags,t[13]=_);let v=_,y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(c,{to:`/ecs/list-clusters`,children:`Clusters`}),t[14]=y):y=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>s(!0),t[15]=x):x=t[15];let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsxs)(u,{onClick:x,size:`sm`,variant:`destructive`,children:[(0,U.jsx)(l,{className:`size-4`}),`Delete`]}),t[16]=S):S=t[16];let C;t[17]===f.status?C=t[18]:(C=(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[S,(0,U.jsx)(z,{state:f.status})]}),t[17]=f.status,t[18]=C);let w;t[19]!==n||t[20]!==C?(w=(0,U.jsx)(T,{actions:C,subtitle:`Cluster Details`,title:n}),t[19]=n,t[20]=C,t[21]=w):w=t[21];let E;t[22]!==p.error||t[23]!==p.isError?(E=p.isError&&(0,U.jsx)(ee,{error:p.error instanceof Error?p.error:void 0,msg:`Failed to delete cluster.`}),t[22]=p.error,t[23]=p.isError,t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,U.jsx)(L.Header,{children:`Overview`}),t[25]=D):D=t[25];let O;t[26]===f.clusterArn?O=t[27]:(O=(0,U.jsx)(R,{label:`ARN`,value:f.clusterArn}),t[26]=f.clusterArn,t[27]=O);let k;t[28]===f.status?k=t[29]:(k=(0,U.jsx)(R,{label:`Status`,value:f.status}),t[28]=f.status,t[29]=k);let A=String(f.activeServicesCount??0),j;t[30]===A?j=t[31]:(j=(0,U.jsx)(R,{label:`Active services`,value:A}),t[30]=A,t[31]=j);let M=String(f.runningTasksCount??0),N;t[32]===M?N=t[33]:(N=(0,U.jsx)(R,{label:`Running tasks`,value:M}),t[32]=M,t[33]=N);let P=String(f.pendingTasksCount??0),F;t[34]===P?F=t[35]:(F=(0,U.jsx)(R,{label:`Pending tasks`,value:P}),t[34]=P,t[35]=F);let W=String(f.registeredContainerInstancesCount??0),G;t[36]===W?G=t[37]:(G=(0,U.jsx)(R,{label:`Registered instances`,value:W}),t[36]=W,t[37]=G);let K;t[38]!==O||t[39]!==k||t[40]!==j||t[41]!==N||t[42]!==F||t[43]!==G?(K=(0,U.jsxs)(L,{children:[D,(0,U.jsxs)(L.Content,{children:[O,k,j,N,F,G]})]}),t[38]=O,t[39]=k,t[40]=j,t[41]=N,t[42]=F,t[43]=G,t[44]=K):K=t[44];let q;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,U.jsxs)(te,{children:[(0,U.jsx)(B,{value:`services`,children:`Services`}),(0,U.jsx)(B,{value:`tasks`,children:`Tasks`}),(0,U.jsx)(B,{value:`infrastructure`,children:`Infrastructure`}),(0,U.jsx)(B,{value:`tags`,children:`Tags`})]}),t[45]=q):q=t[45];let J;t[46]===n?J=t[47]:(J=(0,U.jsx)(ne,{value:`services`,children:(0,U.jsx)(ae,{clusterName:n})}),t[46]=n,t[47]=J);let Y;t[48]===n?Y=t[49]:(Y=(0,U.jsx)(ne,{value:`tasks`,children:(0,U.jsx)(oe,{clusterName:n})}),t[48]=n,t[49]=Y);let X;t[50]===n?X=t[51]:(X=(0,U.jsx)(ne,{value:`infrastructure`,children:(0,U.jsx)(ie,{clusterName:n})}),t[50]=n,t[51]=X);let Z;t[52]===v?Z=t[53]:(Z=(0,U.jsx)(ne,{value:`tags`,children:v.length===0?(0,U.jsx)(`p`,{className:`text-muted-foreground`,children:`No tags.`}):(0,U.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,U.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,U.jsx)(`thead`,{children:(0,U.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Key`}),(0,U.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Value`})]})}),(0,U.jsx)(`tbody`,{children:v.map(se)})]})})}),t[52]=v,t[53]=Z);let Q;t[54]!==J||t[55]!==Y||t[56]!==X||t[57]!==Z?(Q=(0,U.jsxs)(re,{className:`mt-6`,defaultValue:`services`,children:[q,J,Y,X,Z]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z,t[58]=Q):Q=t[58];let ce=`This permanently deletes cluster "${n}" and force-stops every task it holds. This cannot be undone.`,$;t[59]!==p.isPending||t[60]!==g||t[61]!==i||t[62]!==ce?($=(0,U.jsx)(I,{description:ce,isPending:p.isPending,onConfirm:g,onOpenChange:s,open:i,title:`Delete cluster`}),t[59]=p.isPending,t[60]=g,t[61]=i,t[62]=ce,t[63]=$):$=t[63];let le;return t[64]!==K||t[65]!==Q||t[66]!==$||t[67]!==w||t[68]!==E?(le=(0,U.jsxs)(U.Fragment,{children:[y,w,E,K,Q,$]}),t[64]=K,t[65]=Q,t[66]=$,t[67]=w,t[68]=E,t[69]=le):le=t[69],le}function se(e){return(0,U.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.key}),(0,U.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.value})]},e.key)}function Z(){let e=(0,V.c)(2),{clusterName:t}=v.useParams(),n;return e[0]===t?n=e[1]:(n=(0,U.jsx)(X,{clusterName:t}),e[0]=t,e[1]=n),n}export{Z as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js index 9c6023aaa..72331389b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName2.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{ni as o}from"./awsClient.js";import{Bt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{C as f,S as p,T as m,_ as h,b as g,c as _,f as v,h as y,i as b,l as x,m as S,n as C,p as w,r as T,s as E,u as D,v as O,w as k,x as A,y as j}from"./eks.js";import{B as M,F as N,I as P,L as F,M as I,N as L,P as R,Qr as z,Yr as B,Zt as V,j as H,nr as U,x as ee,xt as te,z as ne}from"./index.js";import{i as W,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./page-heading.js";import{a as G,r as K,t as q}from"./field.js";import{i as se,l as ce,n as le,o as ue,r as J,s as de,t as fe}from"./alert-dialog.js";import{t as pe}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{i as me,n as he,r as ge,t as _e}from"./tabs.js";import{t as ve}from"./badge.js";import{t as ye}from"./json-editor.js";var be=B(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),xe=B(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function Se(e){return e?.split(`/`).pop()??e??``}function Ce(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=I(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=P(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),f=w(),m=p(),[h,g]=(0,Q.useState)(C[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(u,{className:`size-4`}),t[13]=S):S=t[13];let T;t[14]===x?T=t[15]:(T=(0,$.jsx)(d,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=T);let E;t[16]!==b||t[17]!==T?(E=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,T]})}),t[16]=b,t[17]=T,t[18]=E):E=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(X,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(X,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==m||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Se(e.policyArn)}),(0,$.jsx)(d,{onClick:()=>m.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=m,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let F;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(F=C.map(we),t[33]=F):F=t[33];let L;t[34]===h?L=t[35]:(L=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:h,children:F}),t[34]=h,t[35]=L);let R;t[36]!==f||t[37]!==n||t[38]!==h||t[39]!==r?(R=()=>f.mutate({clusterName:n,principalArn:r,policyArn:h,accessScopeType:`cluster`}),t[36]=f,t[37]=n,t[38]=h,t[39]=r,t[40]=R):R=t[40];let z;t[41]!==f.isPending||t[42]!==R?(z=(0,$.jsx)(d,{disabled:f.isPending,onClick:R,size:`sm`,children:`Associate`}),t[41]=f.isPending,t[42]=R,t[43]=z):z=t[43];let B;t[44]!==L||t[45]!==z?(B=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[L,z]}),t[44]=L,t[45]=z,t[46]=B):B=t[46];let V;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==B?(V=(0,$.jsxs)(Y.Content,{children:[O,A,M,B]}),t[47]=O,t[48]=A,t[49]=M,t[50]=B,t[51]=V):V=t[51];let H;return t[52]!==V||t[53]!==E?(H=(0,$.jsxs)(Y,{children:[E,V]}),t[52]=V,t[53]=E,t[54]=H):H=t[54],H}function we(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Te(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=S(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(x),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=W(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(Ee).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(U,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(K,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(q,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=C):C=t[18];let w;t[19]===l?w=t[20]:(w=l(`kubernetesGroups`),t[19]=l,t[20]=w);let T;t[21]===w?T=t[22]:(T=(0,$.jsxs)(q,{children:[C,(0,$.jsx)(U,{id:`ae-groups`,placeholder:`system:masters`,...w})]}),t[21]=w,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(J,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ue,{children:[D,(0,$.jsx)(le,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(se,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(fe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function Ee(e){return e.trim()}function De(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=H(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=O(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),f;t[2]===i.accessEntries?f=t[3]:(f=i.accessEntries??[],t[2]=i.accessEntries,t[3]=f);let p=f,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(Ce,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Te,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(pe,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var Oe=new Set([`CREATING`,`UPDATING`,`DELETING`]),ke=5e3,Ae=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function je({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=y(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=W({resolver:ie(D),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},b=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(fe,{onOpenChange:i,open:r,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:Ae,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(K,{errors:[c.addonName]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:Ae,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(K,{errors:[c.addonVersion]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(U,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(re,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(ye,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(K,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(J,{children:`Cancel`}),(0,$.jsx)(le,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(b)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Me(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=k(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=E.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(ce,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Ne),t[18]=a,t[19]=T);let D;t[20]!==C||t[21]!==T||t[22]!==l?(D=(0,$.jsxs)(q,{children:[S,(0,$.jsx)(`select`,{className:Ae,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=D):D=t[23];let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=O):O=t[24];let A;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>f(e.target.value),t[25]=A):A=t[25];let j;t[26]===d?j=t[27]:(j=(0,$.jsxs)(q,{children:[O,(0,$.jsx)(U,{id:`update-addon-role`,onChange:A,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=j);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,P;t[29]!==p||t[30]!==N?(P=(0,$.jsxs)(q,{children:[M,(0,$.jsx)(ye,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=P):P=t[31];let F;t[32]!==j||t[33]!==P||t[34]!==D?(F=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[D,j,P]}),t[32]=j,t[33]=P,t[34]=D,t[35]=F):F=t[35];let I;t[36]===h?I=t[37]:(I=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=I);let L;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(J,{children:`Cancel`}),t[38]=L):L=t[38];let R;t[39]===b?R=t[40]:(R=e=>{e.preventDefault(),b()},t[39]=b,t[40]=R);let z=c.isPending?`Updating…`:`Update`,B;t[41]!==R||t[42]!==z||t[43]!==c.isPending?(B=(0,$.jsxs)(ue,{children:[L,(0,$.jsx)(le,{disabled:c.isPending,onClick:R,children:z})]}),t[41]=R,t[42]=z,t[43]=c.isPending,t[44]=B):B=t[44];let V;t[45]!==F||t[46]!==I||t[47]!==B||t[48]!==x?(V=(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[x,F,I,B]}),t[45]=F,t[46]=I,t[47]=B,t[48]=x,t[49]=V):V=t[49];let H;return t[50]!==s||t[51]!==o||t[52]!==V?(H=(0,$.jsx)(fe,{onOpenChange:s,open:o,children:V}),t[50]=s,t[51]=o,t[52]=V,t[53]=H):H=t[53],H}function Ne(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Pe(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=L(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Ie},t[3]=s,t[4]=c);let{data:l}=i(c),[f,p]=(0,Q.useState)(!1),m=l?.addon,h=m?.health?.issues?.[0]?.message,g;t[5]!==r||t[6]!==a?(g=a.find(e=>e.addonName===r)?.addonVersions?.map(Fe).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=g):g=t[7];let v=g,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=_(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(ve,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(u,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(d,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===h?F=t[34]:(F=h&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:h})}),t[33]=h,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let R=m?.addonVersion,z=m?.serviceAccountRoleArn,B=m?.configurationValues,V;t[39]!==R||t[40]!==z||t[41]!==B?(V={addonVersion:R,serviceAccountRoleArn:z,configurationValues:B},t[39]=R,t[40]=z,t[41]=B,t[42]=V):V=t[42];let H;t[43]!==r||t[44]!==n||t[45]!==f||t[46]!==V||t[47]!==v?(H=(0,$.jsx)(Me,{addonName:r,clusterName:n,current:V,onOpenChange:p,open:f,versions:v}),t[43]=r,t[44]=n,t[45]=f,t[46]=V,t[47]=v,t[48]=H):H=t[48];let U;return t[49]!==A||t[50]!==I||t[51]!==H?(U=(0,$.jsxs)(Y,{children:[A,I,H]}),t[49]=A,t[50]=I,t[51]=H,t[52]=U):U=t[52],U}function Fe(e){return e.addonVersion??``}function Ie(e){return Oe.has(e.state.data?.addon?.status??``)?ke:!1}function Le(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=N(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(R),c=j(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Pe,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(je,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${f??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==f?(C=()=>{f&&c.mutate({clusterName:n,addonName:f},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=f,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&p(void 0),t[21]=w):w=t[21];let T=f!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(pe,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function Re(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(o,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function ze(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Re,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(He)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Ve)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Re,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Be)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Be(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Ve(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-subnets/$id`},e)}function He(e){return(0,$.jsx)(`div`,{children:e},e)}function Ue(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=f(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[p,m]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),m(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==p||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=p)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:p},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=p,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(ce,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(q,{children:[S,(0,$.jsx)(U,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(q,{children:[T,(0,$.jsx)(U,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>m(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===p?A=t[27]:(A=(0,$.jsxs)(q,{children:[O,(0,$.jsx)(U,{id:`scale-max`,onChange:k,type:`number`,value:p})]}),t[26]=p,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(J,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,I;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(I=(0,$.jsxs)(ue,{children:[N,(0,$.jsx)(le,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=I):I=t[40];let L;t[41]!==j||t[42]!==M||t[43]!==I||t[44]!==x?(L=(0,$.jsxs)(se,{children:[x,j,M,I]}),t[41]=j,t[42]=M,t[43]=I,t[44]=x,t[45]=L):L=t[45];let R;return t[46]!==o||t[47]!==a||t[48]!==L?(R=(0,$.jsx)(fe,{onOpenChange:o,open:a,children:L}),t[46]=o,t[47]=a,t[48]=L,t[49]=R):R=t[49],R}function We(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=ne(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),l=m(),f=c?.nodegroup,p=f?.scalingConfig,[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!f?.version&&f.version!==r,b;t[3]===a?b=t[4]:(b=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(d,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(d,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==a||t[10]!==o?(w=()=>o(a),t[9]=a,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(u,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(d,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=f?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${f?.version} (cluster on ${r})`:f?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===f?.instanceTypes?N=t[26]:(N=f?.instanceTypes?.join(`, `),t[25]=f?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let F=f?.amiType,I;t[29]===F?I=t[30]:(I=(0,$.jsx)(X,{label:`AMI type`,value:F}),t[29]=F,t[30]=I);let L=f?.capacityType,R;t[31]===L?R=t[32]:(R=(0,$.jsx)(X,{label:`Capacity type`,value:L}),t[31]=L,t[32]=R);let z=p?`${p.minSize} / ${p.desiredSize} / ${p.maxSize}`:void 0,B;t[33]===z?B=t[34]:(B=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:z}),t[33]=z,t[34]=B);let V;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==I||t[39]!==R||t[40]!==B?(V=(0,$.jsxs)(Y.Content,{children:[A,M,P,I,R,B]}),t[35]=A,t[36]=M,t[37]=P,t[38]=I,t[39]=R,t[40]=B,t[41]=V):V=t[41];let H;t[42]===p?H=t[43]:(H=p??{},t[42]=p,t[43]=H);let U;t[44]!==n||t[45]!==a||t[46]!==h||t[47]!==H?(U=(0,$.jsx)(Ue,{clusterName:n,current:H,nodegroupName:a,onOpenChange:g,open:h}),t[44]=n,t[45]=a,t[46]=h,t[47]=H,t[48]=U):U=t[48];let ee=`Update node group "${a}" from ${f?.version} to ${r}? Nodes are replaced in a rolling update.`,te;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==l?(te=()=>l.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=l,t[53]=te):te=t[53];let W;t[54]!==_||t[55]!==ee||t[56]!==te||t[57]!==l.isPending?(W=(0,$.jsx)(pe,{confirmLabel:`Update`,description:ee,isPending:l.isPending,onConfirm:te,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ee,t[56]=te,t[57]=l.isPending,t[58]=W):W=t[58];let re;return t[59]!==O||t[60]!==V||t[61]!==U||t[62]!==W?(re=(0,$.jsxs)(Y,{children:[O,V,U,W]}),t[59]=O,t[60]=V,t[61]=U,t[62]=W,t[63]=re):re=t[63],re}function Ge({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(te),{data:o}=i(V),s=h(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:g}=W({resolver:ie(v),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),_=g(`subnetIds`),y=e=>{m(`subnetIds`,_.includes(e)?_.filter(t=>t!==e):[..._,e],{shouldValidate:!0})},x=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(fe,{onOpenChange:r,open:n,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(U,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(K,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(K,{errors:[u.nodeRole]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:_.includes(e.SubnetId??``),onChange:()=>y(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(K,{errors:[u.subnetIds]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(U,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(K,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:T.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:b.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(U,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(U,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(U,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(U,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(K,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(J,{children:`Cancel`}),(0,$.jsx)(le,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(x)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ke(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=M(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=A(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(We,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ge,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${f??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==f?(b=()=>{f&&c.mutate({clusterName:n,nodegroupName:f},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=f,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=f!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(pe,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var qe=`ap-southeast-2`;function Je(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Ye(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=z(),[i,o]=(0,Q.useState)(!1),f;t[0]===n?f=t[1]:(f=F(n),t[0]=n,t[1]=f);let{data:p}=a(f),m=g(),h=p.cluster,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=_):_=t[2];let v;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`flag`,value:` --name `},t[3]=v):v=t[3];let y;t[4]===n?y=t[5]:(y={type:`value`,value:n},t[4]=n,t[5]=y);let b;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(b={type:`flag`,value:` --region `},t[6]=b):b=t[6];let x;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`value`,value:qe},t[7]=x):x=t[7];let S;t[8]===y?S=t[9]:(S={label:`Configure kubectl`,parts:[_,v,y,b,x]},t[8]=y,t[9]=S);let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=C):C=t[10];let w;t[11]===S?w=t[12]:(w=[S,C],t[11]=S,t[12]=w);let T=w,E;t[13]!==n||t[14]!==m||t[15]!==r?(E=function(){m.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=m,t[15]=r,t[16]=E):E=t[16];let D=E,O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=O):O=t[17];let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>o(!0),t[18]=k):k=t[18];let A;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsxs)(d,{onClick:k,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(u,{className:`size-4`}),`Delete`]}),t[19]=A):A=t[19];let j=h?.status,M;t[20]===j?M=t[21]:(M=Je(j),t[20]=j,t[21]=M);let N=h?.status??`UNKNOWN`,P;t[22]!==M||t[23]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A,(0,$.jsx)(ve,{variant:M,children:N})]}),t[22]=M,t[23]=N,t[24]=P):P=t[24];let I;t[25]!==n||t[26]!==P?(I=(0,$.jsx)(oe,{actions:P,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=P,t[27]=I):I=t[27];let L;t[28]!==m.error||t[29]!==m.isError?(L=m.isError&&(0,$.jsx)(ae,{error:m.error instanceof Error?m.error:void 0,msg:`Failed to delete cluster.`}),t[28]=m.error,t[29]=m.isError,t[30]=L):L=t[30];let R;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsxs)(he,{children:[(0,$.jsx)(me,{value:`overview`,children:`Overview`}),(0,$.jsx)(me,{value:`compute`,children:`Compute`}),(0,$.jsx)(me,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(me,{value:`access`,children:`Access`}),(0,$.jsx)(me,{value:`networking`,children:`Networking`}),(0,$.jsx)(me,{value:`connect`,children:`Connect`})]}),t[31]=R):R=t[31];let B;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=B):B=t[32];let V=h?.arn,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:V}),t[33]=V,t[34]=H);let U=h?.status,ee;t[35]===U?ee=t[36]:(ee=(0,$.jsx)(X,{label:`Status`,value:U}),t[35]=U,t[36]=ee);let te=h?.version,ne;t[37]===te?ne=t[38]:(ne=(0,$.jsx)(X,{label:`Kubernetes version`,value:te}),t[37]=te,t[38]=ne);let W=h?.platformVersion,re;t[39]===W?re=t[40]:(re=(0,$.jsx)(X,{label:`Platform version`,value:W}),t[39]=W,t[40]=re);let ie=h?.endpoint,G;t[41]===ie?G=t[42]:(G=(0,$.jsx)(X,{label:`Endpoint`,value:ie}),t[41]=ie,t[42]=G);let K=h?.identity?.oidc?.issuer,q;t[43]===K?q=t[44]:(q=(0,$.jsx)(X,{label:`OIDC issuer`,value:K}),t[43]=K,t[44]=q);let se=h?.resourcesVpcConfig?.vpcId,ce;t[45]===se?ce=t[46]:(ce=(0,$.jsx)(X,{label:`VPC`,value:se}),t[45]=se,t[46]=ce);let le=h?.createdAt,ue;t[47]===le?ue=t[48]:(ue=s(le),t[47]=le,t[48]=ue);let J;t[49]===ue?J=t[50]:(J=(0,$.jsx)(X,{label:`Created at`,value:ue}),t[49]=ue,t[50]=J);let de;t[51]!==H||t[52]!==ee||t[53]!==ne||t[54]!==re||t[55]!==G||t[56]!==q||t[57]!==ce||t[58]!==J?(de=(0,$.jsx)(ge,{value:`overview`,children:(0,$.jsxs)(Y,{children:[B,(0,$.jsxs)(Y.Content,{children:[H,ee,ne,re,G,q,ce,J]})]})}),t[51]=H,t[52]=ee,t[53]=ne,t[54]=re,t[55]=G,t[56]=q,t[57]=ce,t[58]=J,t[59]=de):de=t[59];let fe=h?.version,ye=h?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==fe||t[62]!==ye?(be=(0,$.jsx)(ge,{value:`compute`,children:(0,$.jsx)(Ke,{clusterName:n,clusterVersion:fe,vpcId:ye})}),t[60]=n,t[61]=fe,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(ge,{value:`addons`,children:(0,$.jsx)(Le,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(ge,{value:`access`,children:(0,$.jsx)(De,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===h?Ce=t[69]:(Ce=(0,$.jsx)(ge,{value:`networking`,children:(0,$.jsx)(ze,{cluster:h})}),t[68]=h,t[69]=Ce);let we;t[70]===T?we=t[71]:(we=(0,$.jsx)(ge,{value:`connect`,children:(0,$.jsx)(l,{commands:T})}),t[70]=T,t[71]=we);let Te;t[72]!==de||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Te=(0,$.jsxs)(_e,{defaultValue:`overview`,children:[R,de,be,xe,Se,Ce,we]}),t[72]=de,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Te):Te=t[78];let Ee=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==m.isPending||t[80]!==D||t[81]!==i||t[82]!==Ee?(Oe=(0,$.jsx)(pe,{description:Ee,isPending:m.isPending,onConfirm:D,onOpenChange:o,open:i,title:`Delete cluster`}),t[79]=m.isPending,t[80]=D,t[81]=i,t[82]=Ee,t[83]=Oe):Oe=t[83];let ke;return t[84]!==I||t[85]!==L||t[86]!==Te||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[O,I,L,Te,Oe]}),t[84]=I,t[85]=L,t[86]=Te,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Xe(){let e=(0,Z.c)(2),{clusterName:t}=ee.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Ye,{clusterName:t}),e[0]=t,e[1]=n),n}export{Xe as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{ni as s}from"./awsClient.js";import{Bt as c}from"./auth.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./back-link.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{C as p,S as m,T as h,_ as g,b as _,c as v,f as y,h as b,i as x,l as S,m as C,n as w,p as T,r as E,s as D,u as O,v as k,w as A,x as j,y as M}from"./eks.js";import{B as N,Br as P,F,I,L,M as R,N as z,P as B,Zt as V,er as H,j as U,x as ee,xt as te,z as ne}from"./index.js";import{i as W,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./page-heading.js";import{a as G,r as K,t as q}from"./field.js";import{i as se,l as ce,n as le,o as ue,r as J,s as de,t as fe}from"./alert-dialog.js";import{t as pe}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{i as me,n as he,r as ge,t as _e}from"./tabs.js";import{t as ve}from"./badge.js";import{t as ye}from"./json-editor.js";var be=P(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),xe=P(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function Se(e){return e?.split(`/`).pop()??e??``}function Ce(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=R(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=I(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),u=T(),p=m(),[h,g]=(0,Q.useState)(w[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(d,{className:`size-4`}),t[13]=S):S=t[13];let C;t[14]===x?C=t[15]:(C=(0,$.jsx)(f,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=C);let E;t[16]!==b||t[17]!==C?(E=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,C]})}),t[16]=b,t[17]=C,t[18]=E):E=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(X,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(X,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==p||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Se(e.policyArn)}),(0,$.jsx)(f,{onClick:()=>p.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=p,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=w.map(we),t[33]=P):P=t[33];let F;t[34]===h?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:h,children:P}),t[34]=h,t[35]=F);let L;t[36]!==u||t[37]!==n||t[38]!==h||t[39]!==r?(L=()=>u.mutate({clusterName:n,principalArn:r,policyArn:h,accessScopeType:`cluster`}),t[36]=u,t[37]=n,t[38]=h,t[39]=r,t[40]=L):L=t[40];let z;t[41]!==u.isPending||t[42]!==L?(z=(0,$.jsx)(f,{disabled:u.isPending,onClick:L,size:`sm`,children:`Associate`}),t[41]=u.isPending,t[42]=L,t[43]=z):z=t[43];let B;t[44]!==F||t[45]!==z?(B=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,z]}),t[44]=F,t[45]=z,t[46]=B):B=t[46];let V;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==B?(V=(0,$.jsxs)(Y.Content,{children:[O,A,M,B]}),t[47]=O,t[48]=A,t[49]=M,t[50]=B,t[51]=V):V=t[51];let H;return t[52]!==V||t[53]!==E?(H=(0,$.jsxs)(Y,{children:[E,V]}),t[52]=V,t[53]=E,t[54]=H):H=t[54],H}function we(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Te(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=C(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ie(S),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=W(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(Ee).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(H,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(K,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(q,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=x):x=t[18];let w;t[19]===l?w=t[20]:(w=l(`kubernetesGroups`),t[19]=l,t[20]=w);let T;t[21]===w?T=t[22]:(T=(0,$.jsxs)(q,{children:[x,(0,$.jsx)(H,{id:`ae-groups`,placeholder:`system:masters`,...w})]}),t[21]=w,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(J,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(ue,{children:[D,(0,$.jsx)(le,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(se,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(fe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function Ee(e){return e.trim()}function De(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=U(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=k(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),d;t[2]===i.accessEntries?d=t[3]:(d=i.accessEntries??[],t[2]=i.accessEntries,t[3]=d);let p=d,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(Ce,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Te,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(pe,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var Oe=new Set([`CREATING`,`UPDATING`,`DELETING`]),ke=5e3,Ae=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function je({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=b(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=W({resolver:ie(O),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},y=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(fe,{onOpenChange:i,open:r,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:Ae,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(K,{errors:[c.addonName]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:Ae,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(K,{errors:[c.addonVersion]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(H,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(re,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(ye,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(K,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(J,{children:`Cancel`}),(0,$.jsx)(le,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(y)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Me(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=A(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=D.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(ce,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Ne),t[18]=a,t[19]=T);let E;t[20]!==C||t[21]!==T||t[22]!==l?(E=(0,$.jsxs)(q,{children:[S,(0,$.jsx)(`select`,{className:Ae,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=E):E=t[23];let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>f(e.target.value),t[25]=k):k=t[25];let j;t[26]===d?j=t[27]:(j=(0,$.jsxs)(q,{children:[O,(0,$.jsx)(H,{id:`update-addon-role`,onChange:k,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=j);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,P;t[29]!==p||t[30]!==N?(P=(0,$.jsxs)(q,{children:[M,(0,$.jsx)(ye,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=P):P=t[31];let F;t[32]!==j||t[33]!==P||t[34]!==E?(F=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[E,j,P]}),t[32]=j,t[33]=P,t[34]=E,t[35]=F):F=t[35];let I;t[36]===h?I=t[37]:(I=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=I);let L;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(J,{children:`Cancel`}),t[38]=L):L=t[38];let R;t[39]===b?R=t[40]:(R=e=>{e.preventDefault(),b()},t[39]=b,t[40]=R);let z=c.isPending?`Updating…`:`Update`,B;t[41]!==R||t[42]!==z||t[43]!==c.isPending?(B=(0,$.jsxs)(ue,{children:[L,(0,$.jsx)(le,{disabled:c.isPending,onClick:R,children:z})]}),t[41]=R,t[42]=z,t[43]=c.isPending,t[44]=B):B=t[44];let V;t[45]!==F||t[46]!==I||t[47]!==B||t[48]!==x?(V=(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[x,F,I,B]}),t[45]=F,t[46]=I,t[47]=B,t[48]=x,t[49]=V):V=t[49];let U;return t[50]!==s||t[51]!==o||t[52]!==V?(U=(0,$.jsx)(fe,{onOpenChange:s,open:o,children:V}),t[50]=s,t[51]=o,t[52]=V,t[53]=U):U=t[53],U}function Ne(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Pe(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=z(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Ie},t[3]=s,t[4]=c);let{data:l}=i(c),[u,p]=(0,Q.useState)(!1),m=l?.addon,h=m?.health?.issues?.[0]?.message,g;t[5]!==r||t[6]!==a?(g=a.find(e=>e.addonName===r)?.addonVersions?.map(Fe).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=g):g=t[7];let _=g,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=v(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(ve,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(f,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(d,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(f,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===h?F=t[34]:(F=h&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:h})}),t[33]=h,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let L=m?.addonVersion,R=m?.serviceAccountRoleArn,B=m?.configurationValues,V;t[39]!==L||t[40]!==R||t[41]!==B?(V={addonVersion:L,serviceAccountRoleArn:R,configurationValues:B},t[39]=L,t[40]=R,t[41]=B,t[42]=V):V=t[42];let H;t[43]!==r||t[44]!==n||t[45]!==u||t[46]!==V||t[47]!==_?(H=(0,$.jsx)(Me,{addonName:r,clusterName:n,current:V,onOpenChange:p,open:u,versions:_}),t[43]=r,t[44]=n,t[45]=u,t[46]=V,t[47]=_,t[48]=H):H=t[48];let U;return t[49]!==A||t[50]!==I||t[51]!==H?(U=(0,$.jsxs)(Y,{children:[A,I,H]}),t[49]=A,t[50]=I,t[51]=H,t[52]=U):U=t[52],U}function Fe(e){return e.addonVersion??``}function Ie(e){return Oe.has(e.state.data?.addon?.status??``)?ke:!1}function Le(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=F(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(B),c=M(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Pe,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(je,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${d??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==d?(C=()=>{d&&c.mutate({clusterName:n,addonName:d},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=d,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&p(void 0),t[21]=w):w=t[21];let T=d!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(pe,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function Re(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(s,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function ze(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Re,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(He)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Ve)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Re,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Be)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Be(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Ve(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-subnets/$id`},e)}function He(e){return(0,$.jsx)(`div`,{children:e},e)}function Ue(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=p(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[f,m]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),m(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==f||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=f)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:f},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=f,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(ce,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(q,{children:[S,(0,$.jsx)(H,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(q,{children:[T,(0,$.jsx)(H,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>m(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===f?A=t[27]:(A=(0,$.jsxs)(q,{children:[O,(0,$.jsx)(H,{id:`scale-max`,onChange:k,type:`number`,value:f})]}),t[26]=f,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(J,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,I;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(I=(0,$.jsxs)(ue,{children:[N,(0,$.jsx)(le,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=I):I=t[40];let L;t[41]!==j||t[42]!==M||t[43]!==I||t[44]!==x?(L=(0,$.jsxs)(se,{children:[x,j,M,I]}),t[41]=j,t[42]=M,t[43]=I,t[44]=x,t[45]=L):L=t[45];let R;return t[46]!==o||t[47]!==a||t[48]!==L?(R=(0,$.jsx)(fe,{onOpenChange:o,open:a,children:L}),t[46]=o,t[47]=a,t[48]=L,t[49]=R):R=t[49],R}function We(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=ne(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),l=h(),u=c?.nodegroup,p=u?.scalingConfig,[m,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!u?.version&&u.version!==r,b;t[3]===a?b=t[4]:(b=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(f,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(f,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==a||t[10]!==o?(w=()=>o(a),t[9]=a,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(f,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=u?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${u?.version} (cluster on ${r})`:u?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===u?.instanceTypes?N=t[26]:(N=u?.instanceTypes?.join(`, `),t[25]=u?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let F=u?.amiType,I;t[29]===F?I=t[30]:(I=(0,$.jsx)(X,{label:`AMI type`,value:F}),t[29]=F,t[30]=I);let L=u?.capacityType,R;t[31]===L?R=t[32]:(R=(0,$.jsx)(X,{label:`Capacity type`,value:L}),t[31]=L,t[32]=R);let z=p?`${p.minSize} / ${p.desiredSize} / ${p.maxSize}`:void 0,B;t[33]===z?B=t[34]:(B=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:z}),t[33]=z,t[34]=B);let V;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==I||t[39]!==R||t[40]!==B?(V=(0,$.jsxs)(Y.Content,{children:[A,M,P,I,R,B]}),t[35]=A,t[36]=M,t[37]=P,t[38]=I,t[39]=R,t[40]=B,t[41]=V):V=t[41];let H;t[42]===p?H=t[43]:(H=p??{},t[42]=p,t[43]=H);let U;t[44]!==n||t[45]!==a||t[46]!==m||t[47]!==H?(U=(0,$.jsx)(Ue,{clusterName:n,current:H,nodegroupName:a,onOpenChange:g,open:m}),t[44]=n,t[45]=a,t[46]=m,t[47]=H,t[48]=U):U=t[48];let ee=`Update node group "${a}" from ${u?.version} to ${r}? Nodes are replaced in a rolling update.`,te;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==l?(te=()=>l.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=l,t[53]=te):te=t[53];let W;t[54]!==_||t[55]!==ee||t[56]!==te||t[57]!==l.isPending?(W=(0,$.jsx)(pe,{confirmLabel:`Update`,description:ee,isPending:l.isPending,onConfirm:te,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ee,t[56]=te,t[57]=l.isPending,t[58]=W):W=t[58];let re;return t[59]!==O||t[60]!==V||t[61]!==U||t[62]!==W?(re=(0,$.jsxs)(Y,{children:[O,V,U,W]}),t[59]=O,t[60]=V,t[61]=U,t[62]=W,t[63]=re):re=t[63],re}function Ge({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(te),{data:o}=i(V),s=g(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:h}=W({resolver:ie(y),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),_=h(`subnetIds`),v=e=>{m(`subnetIds`,_.includes(e)?_.filter(t=>t!==e):[..._,e],{shouldValidate:!0})},b=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(fe,{onOpenChange:r,open:n,children:(0,$.jsxs)(se,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(ce,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(H,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(K,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(K,{errors:[u.nodeRole]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:_.includes(e.SubnetId??``),onChange:()=>v(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(K,{errors:[u.subnetIds]})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(H,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(K,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:E.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:x.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(H,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(H,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(H,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(H,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(K,{errors:[u.desiredSize]})]}),(0,$.jsxs)(ue,{children:[(0,$.jsx)(J,{children:`Cancel`}),(0,$.jsx)(le,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(b)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ke(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=N(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=j(),[l,u]=(0,Q.useState)(!1),[d,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(f,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(We,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ge,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${d??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==d?(b=()=>{d&&c.mutate({clusterName:n,nodegroupName:d},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=d,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=d!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(pe,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var qe=`ap-southeast-2`;function Je(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Ye(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=o(),[i,s]=(0,Q.useState)(!1),p;t[0]===n?p=t[1]:(p=L(n),t[0]=n,t[1]=p);let{data:m}=a(p),h=_(),g=m.cluster,v;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=v):v=t[2];let y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y={type:`flag`,value:` --name `},t[3]=y):y=t[3];let b;t[4]===n?b=t[5]:(b={type:`value`,value:n},t[4]=n,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`flag`,value:` --region `},t[6]=x):x=t[6];let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S={type:`value`,value:qe},t[7]=S):S=t[7];let C;t[8]===b?C=t[9]:(C={label:`Configure kubectl`,parts:[v,y,b,x,S]},t[8]=b,t[9]=C);let w;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(w={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=w):w=t[10];let T;t[11]===C?T=t[12]:(T=[C,w],t[11]=C,t[12]=T);let E=T,D;t[13]!==n||t[14]!==h||t[15]!==r?(D=function(){h.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=h,t[15]=r,t[16]=D):D=t[16];let O=D,k;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(u,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=k):k=t[17];let A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>s(!0),t[18]=A):A=t[18];let j;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsxs)(f,{onClick:A,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(d,{className:`size-4`}),`Delete`]}),t[19]=j):j=t[19];let M=g?.status,N;t[20]===M?N=t[21]:(N=Je(M),t[20]=M,t[21]=N);let P=g?.status??`UNKNOWN`,F;t[22]!==N||t[23]!==P?(F=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[j,(0,$.jsx)(ve,{variant:N,children:P})]}),t[22]=N,t[23]=P,t[24]=F):F=t[24];let I;t[25]!==n||t[26]!==F?(I=(0,$.jsx)(oe,{actions:F,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=F,t[27]=I):I=t[27];let R;t[28]!==h.error||t[29]!==h.isError?(R=h.isError&&(0,$.jsx)(ae,{error:h.error instanceof Error?h.error:void 0,msg:`Failed to delete cluster.`}),t[28]=h.error,t[29]=h.isError,t[30]=R):R=t[30];let z;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsxs)(he,{children:[(0,$.jsx)(me,{value:`overview`,children:`Overview`}),(0,$.jsx)(me,{value:`compute`,children:`Compute`}),(0,$.jsx)(me,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(me,{value:`access`,children:`Access`}),(0,$.jsx)(me,{value:`networking`,children:`Networking`}),(0,$.jsx)(me,{value:`connect`,children:`Connect`})]}),t[31]=z):z=t[31];let B;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=B):B=t[32];let V=g?.arn,H;t[33]===V?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:V}),t[33]=V,t[34]=H);let U=g?.status,ee;t[35]===U?ee=t[36]:(ee=(0,$.jsx)(X,{label:`Status`,value:U}),t[35]=U,t[36]=ee);let te=g?.version,ne;t[37]===te?ne=t[38]:(ne=(0,$.jsx)(X,{label:`Kubernetes version`,value:te}),t[37]=te,t[38]=ne);let W=g?.platformVersion,re;t[39]===W?re=t[40]:(re=(0,$.jsx)(X,{label:`Platform version`,value:W}),t[39]=W,t[40]=re);let ie=g?.endpoint,G;t[41]===ie?G=t[42]:(G=(0,$.jsx)(X,{label:`Endpoint`,value:ie}),t[41]=ie,t[42]=G);let K=g?.identity?.oidc?.issuer,q;t[43]===K?q=t[44]:(q=(0,$.jsx)(X,{label:`OIDC issuer`,value:K}),t[43]=K,t[44]=q);let se=g?.resourcesVpcConfig?.vpcId,ce;t[45]===se?ce=t[46]:(ce=(0,$.jsx)(X,{label:`VPC`,value:se}),t[45]=se,t[46]=ce);let le=g?.createdAt,ue;t[47]===le?ue=t[48]:(ue=c(le),t[47]=le,t[48]=ue);let J;t[49]===ue?J=t[50]:(J=(0,$.jsx)(X,{label:`Created at`,value:ue}),t[49]=ue,t[50]=J);let de;t[51]!==H||t[52]!==ee||t[53]!==ne||t[54]!==re||t[55]!==G||t[56]!==q||t[57]!==ce||t[58]!==J?(de=(0,$.jsx)(ge,{value:`overview`,children:(0,$.jsxs)(Y,{children:[B,(0,$.jsxs)(Y.Content,{children:[H,ee,ne,re,G,q,ce,J]})]})}),t[51]=H,t[52]=ee,t[53]=ne,t[54]=re,t[55]=G,t[56]=q,t[57]=ce,t[58]=J,t[59]=de):de=t[59];let fe=g?.version,ye=g?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==fe||t[62]!==ye?(be=(0,$.jsx)(ge,{value:`compute`,children:(0,$.jsx)(Ke,{clusterName:n,clusterVersion:fe,vpcId:ye})}),t[60]=n,t[61]=fe,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(ge,{value:`addons`,children:(0,$.jsx)(Le,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(ge,{value:`access`,children:(0,$.jsx)(De,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===g?Ce=t[69]:(Ce=(0,$.jsx)(ge,{value:`networking`,children:(0,$.jsx)(ze,{cluster:g})}),t[68]=g,t[69]=Ce);let we;t[70]===E?we=t[71]:(we=(0,$.jsx)(ge,{value:`connect`,children:(0,$.jsx)(l,{commands:E})}),t[70]=E,t[71]=we);let Te;t[72]!==de||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Te=(0,$.jsxs)(_e,{defaultValue:`overview`,children:[z,de,be,xe,Se,Ce,we]}),t[72]=de,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Te):Te=t[78];let Ee=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==h.isPending||t[80]!==O||t[81]!==i||t[82]!==Ee?(Oe=(0,$.jsx)(pe,{description:Ee,isPending:h.isPending,onConfirm:O,onOpenChange:s,open:i,title:`Delete cluster`}),t[79]=h.isPending,t[80]=O,t[81]=i,t[82]=Ee,t[83]=Oe):Oe=t[83];let ke;return t[84]!==I||t[85]!==R||t[86]!==Te||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[k,I,R,Te,Oe]}),t[84]=I,t[85]=R,t[86]=Te,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Xe(){let e=(0,Z.c)(2),{clusterName:t}=ee.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Ye,{clusterName:t}),e[0]=t,e[1]=n),n}export{Xe as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id.js b/spinifex/services/spinifexui/frontend/dist/assets/_id.js index fadb2062a..6cfef388f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{G as p,L as m,n as h}from"./ec2.js";import{Et as g,Pt as _,Qr as v,r as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=y.useParams(),t=v(),{data:n}=r(g(e)),{data:D}=r(_),O=h(),k=m(),A=p(),[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)(a,{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=i(F.Tags);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),(A.error??O.error??k.error)&&(0,E.jsx)(b,{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)(x,{actions:(0,E.jsxs)(f,{disabled:B||A.isPending,onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,E.jsx)(d,{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)(f,{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)(u,{onValueChange:e=>P(e??``),value:N,children:[(0,E.jsx)(l,{className:`w-full`,children:(0,E.jsx)(o,{placeholder:`Select an instance`})}),(0,E.jsx)(c,{children:I.map(e=>{let t=i(e.Tags);return(0,E.jsx)(s,{value:e.InstanceId??``,children:t?`${e.InstanceId} (${t})`:e.InstanceId},e.InstanceId)})})]})}),(0,E.jsx)(f,{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 +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{G as m,L as h,n as g}from"./ec2.js";import{Et as _,Pt as v,r as y}from"./index.js";import{t as b}from"./error-banner.js";import{t as x}from"./page-heading.js";import{t as S}from"./delete-confirmation-dialog.js";import{n as C,t as w}from"./detail-row.js";var T=t(n()),E=e();function D(){let{id:e}=y.useParams(),t=i(),{data:n}=r(_(e)),{data:D}=r(v),O=g(),k=h(),A=m(),[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)(b,{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)(x,{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/_id10.js b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js index 800480b3a..5af5a8740 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{A as m,K as h,c as g,q as _,s as v}from"./ec2.js";import{Kt as y,Qr as b,f as x,nr as S,zr as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(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 q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=g(),a=v(),d=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:_,formState:{errors:y}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),b=_(`ipProtocol`),x=b===`-1`||b===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),d.error&&(0,W.jsx)(D,{error:d.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:x?-1:e.fromPort,toPort:x?-1:e.toPort,cidrIp:e.cidrIp};await d.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(s,{value:`tcp`,children:`TCP`}),(0,W.jsx)(s,{value:`udp`,children:`UDP`}),(0,W.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[y.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(S,{"aria-invalid":!!y.fromPort,disabled:x,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(S,{"aria-invalid":!!y.toPort,disabled:x,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(S,{"aria-invalid":!!y.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[y.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),d.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:d.isPending,form:`add-rule-form`,type:`submit`,children:d.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=_(),a=h(),o=r===`ingress`?i:a,s=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{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(p,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(C,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=x.useParams(),t=b(),{data:n}=r(y(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),v=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let S=o.IpPermissions??[],C=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(D,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(p,{onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(H,{label:`Description`,value:o.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(i,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,S.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>h(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),S.length>0?(0,W.jsx)(`div`,{children:S.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,C.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),C.length>0?(0,W.jsx)(`div`,{children:C.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:v,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:h,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:g})]})}export{X as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./plus.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{A as h,K as g,c as _,q as v,s as y}from"./ec2.js";import{Ar as b,Kt as x,er as S,f as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(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 q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=_(),a=y(),o=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:g,formState:{errors:v}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),b=g(`ipProtocol`),x=b===`-1`||b===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),o.error&&(0,W.jsx)(D,{error:o.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:x?-1:e.fromPort,toPort:x?-1:e.toPort,cidrIp:e.cidrIp};await o.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(u,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(s,{})}),(0,W.jsxs)(l,{children:[(0,W.jsx)(c,{value:`tcp`,children:`TCP`}),(0,W.jsx)(c,{value:`udp`,children:`UDP`}),(0,W.jsx)(c,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(c,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[v.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(S,{"aria-invalid":!!v.fromPort,disabled:x,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[v.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(S,{"aria-invalid":!!v.toPort,disabled:x,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[v.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(S,{"aria-invalid":!!v.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[v.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),o.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:o.isPending,form:`add-rule-form`,type:`submit`,children:o.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=v(),a=g(),o=r===`ingress`?i:a,s=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{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(m,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(b,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=C.useParams(),t=i(),{data:n}=r(x(e)),s=n.SecurityGroups?.[0],c=h(),[l,u]=(0,U.useState)(!1),[d,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1),y=async()=>{try{await c.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{u(!1)}};if(!s?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(o,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let b=s.IpPermissions??[],S=s.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(o,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),c.error&&(0,W.jsx)(D,{error:c.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(m,{onClick:()=>u(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(p,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:s.GroupName?`${s.GroupId} (${s.GroupName})`:s.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:s.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:s.GroupName}),(0,W.jsx)(H,{label:`Description`,value:s.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:s.VpcId?(0,W.jsx)(a,{className:`text-primary hover:underline`,params:{id:s.VpcId},to:`/ec2/describe-vpcs/$id`,children:s.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:s.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,b.length,`)`]}),(0,W.jsxs)(m,{onClick:()=>g(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(f,{className:`size-4`}),`Add Rule`]})]}),b.length>0?(0,W.jsx)(`div`,{children:b.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:s.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,S.length,`)`]}),(0,W.jsxs)(m,{onClick:()=>v(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(f,{className:`size-4`}),`Add Rule`]})]}),S.length>0?(0,W.jsx)(`div`,{children:S.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:s.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${s.GroupId}"? This action cannot be undone.`,isPending:c.isPending,onConfirm:y,onOpenChange:u,open:l,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:s.GroupId,onOpenChange:g,open:d}),(0,W.jsx)(q,{direction:`egress`,groupId:s.GroupId,onOpenChange:v,open:_})]})}export{X as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index 0fd8ec8d4..267869dd3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./copy.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{j as u,l as d}from"./ec2.js";import{Jt as f,Qr as p,Ut as m,nr as h,p as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=g.useParams(),t=p(),{data:n}=r(f(e)),{data:F}=r(m),I=n.Snapshots?.[0],L=u(),R=d(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=a(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(_,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(_,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(l,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(c,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(l,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(s,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(h,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./copy.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{j as d,l as f}from"./ec2.js";import{Jt as p,Ut as m,er as h,p as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=g.useParams(),t=i(),{data:n}=r(p(e)),{data:F}=r(m),I=n.Snapshots?.[0],L=d(),R=f(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=o(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(_,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(_,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(u,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(l,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(u,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(c,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(h,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index 8c38cd4cd..fbd503604 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{M as l}from"./ec2.js";import{Qr as u,Xt as d,m as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),x=n.Subnets?.[0],S=l(),[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)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{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: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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{M as u}from"./ec2.js";import{Xt as d,m as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=i(),{data:n}=r(d(e)),x=n.Subnets?.[0],S=u(),[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)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{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)(a,{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/_id13.js b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js index 0f9cd1157..34e29da97 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id13.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id13.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Lt as o,Ut as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./trash-2.js";import{t as u}from"./button.js";import{_ as d,c as f,l as p,m,p as h}from"./elbv2.js";import{$ as g,Pt as _,Q as v,Qr as y,Z as b,h as x,nr as S,tt as C}from"./index.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:c}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,b;t[6]!==c||t[7]!==u?(b=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),c(t)},t[6]=c,t[7]=u,t[8]=b):b=t[8];let x=b,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=s(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(S,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==x||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:x,children:I}),t[20]=x,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:s}=a(_),{data:c,isLoading:d,error:f}=i({...C(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),h=m(),g=p(),[v,y]=(0,G.useState)(!1),[b,x]=(0,G.useState)(),S=(s.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=c?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[h.error&&(0,K.jsx)(w,{error:h.error,msg:`Failed to register targets`}),g.error&&(0,K.jsx)(w,{error:g.error,msg:`Failed to deregister target`}),f&&(0,K.jsx)(w,{error:f,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:d?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(u,{onClick:()=>y(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:o(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(u,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(l,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:S,isPending:h.isPending,onConfirm:async t=>{try{await h.mutateAsync({targetGroupArn:e,targets:t}),y(!1)}catch{}},onOpenChange:y,open:v}),(0,K.jsx)(P,{description:b?`Deregister ${b.Id}${b.Port?`:${b.Port}`:``} from this target group?`:``,isPending:g.isPending,onConfirm:async()=>{if(b?.Id)try{await g.mutateAsync({targetGroupArn:e,targets:[{id:b.Id,port:b.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=y(),{data:n}=a(g(e)),{data:r}=a(v(e)),{data:i}=a(b([e])),o=f(),s=h(),p=d(),[m,_]=(0,G.useState)(!1),[x,S]=(0,G.useState)(`overview`),C=n.TargetGroups?.[0];if(!C?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await o.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{_(!1)}},D=r.Attributes??[],O=i?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(c,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),o.error&&(0,K.jsx)(w,{error:o.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(u,{onClick:()=>_(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(l,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:C.TargetGroupName??C.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:S,value:x,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:C.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:C.Protocol}),(0,K.jsx)(I,{label:`Port`,value:C.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:C.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:C.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:C.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:C.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:C.Port??80,isActive:x===`targets`,targetGroupArn:C.TargetGroupArn,vpcId:C.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:C.HealthCheckEnabled===void 0?void 0:String(C.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:C.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:C.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:C.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:C.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:C.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:C.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:C.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:C.Matcher?.HttpCode??C.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:s.error,isPending:s.isPending,isSuccess:s.isSuccess,onSubmit:t=>{s.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>p.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${C.TargetGroupName??C.TargetGroupArn}"? This action cannot be undone.`,isPending:o.isPending,onConfirm:E,onOpenChange:_,open:m,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=x.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./useNavigate.js";import{Lt as s,Ut as c}from"./auth.js";import{t as l}from"./back-link.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{_ as f,c as p,l as m,m as h,p as g}from"./elbv2.js";import{$ as _,Pt as v,Q as y,Z as b,er as x,h as S,tt as C}from"./index.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{i as L,n as R,t as z}from"./tags-editor.js";import{i as B,n as V,r as H,t as U}from"./tabs.js";var W=r(),G=t(n(),1),K=e();function q(e){let t=e.trim();if(t===``)return;let n=Number(t);if(!(!Number.isInteger(n)||n<1||n>65535))return n}function J(e){let t=(0,W.c)(36),{open:n,onOpenChange:r,instances:i,defaultPort:a,isPending:o,onConfirm:s}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={},t[0]=l):l=t[0];let[u,d]=(0,G.useState)(l),[f,p]=(0,G.useState)(),m,h;t[1]===n?(m=t[2],h=t[3]):(m=()=>{n||(d({}),p(void 0))},h=[n],t[1]=n,t[2]=m,t[3]=h),(0,G.useEffect)(m,h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>{let n=t[e];return n?.checked?{...t,[e]:{...n,checked:!1}}:{...t,[e]:{checked:!0,port:n?.port??``}}})},t[4]=g):g=t[4];let _=g,v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(e,t)=>{d(n=>({...n,[e]:{checked:n[e]?.checked??!0,port:t}}))},t[5]=v):v=t[5];let y=v,b;t[6]!==s||t[7]!==u?(b=()=>{let e=Object.entries(u).filter(Y);if(e.length===0){p(`Select at least one instance.`);return}let t=[];for(let[n,r]of e){if(r.port.trim()===``){t.push({id:n});continue}let e=q(r.port);if(e===void 0){p(`Port for ${n} must be an integer between 1 and 65535.`);return}t.push({id:n,port:e})}p(void 0),s(t)},t[6]=s,t[7]=u,t[8]=b):b=t[8];let S=b,C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(O,{children:`Register targets`}),t[9]=C):C=t[9];let w;t[10]===a?w=t[11]:(w=(0,K.jsxs)(M,{children:[C,(0,K.jsxs)(E,{children:[`Select instances to register. Leave port blank to use the target group port (`,a,`).`]})]}),t[10]=a,t[11]=w);let T;t[12]!==a||t[13]!==i||t[14]!==u?(T=i.length===0?(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances available in this VPC.`}):(0,K.jsx)(`div`,{className:`max-h-72 space-y-1 overflow-y-auto`,children:i.map(e=>{let t=e.InstanceId??``,n=u[t],r=n?.checked??!1,i=c(e.Tags);return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-1 py-1 text-xs hover:bg-accent`,children:[(0,K.jsx)(`input`,{"aria-label":`Register target ${t}`,checked:r,id:`register-target-${t}`,onChange:()=>_(t),type:`checkbox`}),(0,K.jsxs)(`label`,{className:`flex flex-1 items-center gap-2`,htmlFor:`register-target-${t}`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:t}),i&&(0,K.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,i,`)`]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.State?.Name??``})]}),r&&(0,K.jsx)(x,{"aria-label":`Port override for ${t}`,className:`w-24`,onChange:e=>y(t,e.target.value),placeholder:String(a),value:n?.port??``})]},t)})}),t[12]=a,t[13]=i,t[14]=u,t[15]=T):T=t[15];let P;t[16]===f?P=t[17]:(P=f&&(0,K.jsx)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:f}),t[16]=f,t[17]=P);let F;t[18]===o?F=t[19]:(F=(0,K.jsx)(j,{disabled:o,children:`Cancel`}),t[18]=o,t[19]=F);let I=o?`Registering…`:`Register`,L;t[20]!==S||t[21]!==o||t[22]!==I?(L=(0,K.jsx)(k,{disabled:o,onClick:S,children:I}),t[20]=S,t[21]=o,t[22]=I,t[23]=L):L=t[23];let R;t[24]!==F||t[25]!==L?(R=(0,K.jsxs)(A,{children:[F,L]}),t[24]=F,t[25]=L,t[26]=R):R=t[26];let z;t[27]!==P||t[28]!==R||t[29]!==w||t[30]!==T?(z=(0,K.jsxs)(D,{className:`sm:max-w-lg`,children:[w,T,P,R]}),t[27]=P,t[28]=R,t[29]=w,t[30]=T,t[31]=z):z=t[31];let B;return t[32]!==r||t[33]!==n||t[34]!==z?(B=(0,K.jsx)(N,{onOpenChange:r,open:n,children:z}),t[32]=r,t[33]=n,t[34]=z,t[35]=B):B=t[35],B}function Y(e){let[,t]=e;return t.checked&&t!==void 0}var X=5e3,Z=new Set([`healthy`]),Q=new Set([`unhealthy`,`unavailable`]),$=new Set([`initial`,`draining`]);function ee(e){return e&&Z.has(e)?`bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100`:e&&Q.has(e)?`bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100`:e&&$.has(e)?`bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100`:`bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100`}function te(e){return`${e.Id??``}:${e.Port??``}`}function ne({targetGroupArn:e,vpcId:t,defaultPort:n,isActive:r}){let{data:o}=a(v),{data:c,isLoading:l,error:f}=i({...C(e),refetchInterval:r?X:!1,refetchIntervalInBackground:!1}),p=h(),g=m(),[_,y]=(0,G.useState)(!1),[b,x]=(0,G.useState)(),S=(o.Reservations?.flatMap(e=>e.Instances??[])??[]).filter(e=>e.VpcId===t&&e.State?.Name!==`terminated`),T=c?.TargetHealthDescriptions??[];return(0,K.jsxs)(`div`,{className:`space-y-3`,children:[p.error&&(0,K.jsx)(w,{error:p.error,msg:`Failed to register targets`}),g.error&&(0,K.jsx)(w,{error:g.error,msg:`Failed to deregister target`}),f&&(0,K.jsx)(w,{error:f,msg:`Failed to load target health`}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:l?`Loading target health…`:`${T.length} target${T.length===1?``:`s`}`}),(0,K.jsx)(d,{onClick:()=>y(!0),size:`sm`,children:`Register targets`})]}),T.length===0?(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`No targets registered.`}):(0,K.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,K.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`AZ`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Reason`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Description`}),(0,K.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,K.jsx)(`tbody`,{children:T.map(e=>{let t=e.Target??{Id:``},n=e.TargetHealth?.State;return(0,K.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,K.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t.Id??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:t.Port??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:t.AvailabilityZone??``}),(0,K.jsx)(`td`,{className:`px-4 py-2`,children:(0,K.jsx)(`span`,{className:s(`rounded-full px-2 py-0.5 text-xs`,ee(n)),children:n??`unknown`})}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Reason??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:e.TargetHealth?.Description??``}),(0,K.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,K.jsx)(d,{"aria-label":`Deregister ${t.Id}`,onClick:()=>x(t),size:`sm`,variant:`ghost`,children:(0,K.jsx)(u,{className:`size-4`})})})]},te(t))})})]})}),(0,K.jsx)(J,{defaultPort:n,instances:S,isPending:p.isPending,onConfirm:async t=>{try{await p.mutateAsync({targetGroupArn:e,targets:t}),y(!1)}catch{}},onOpenChange:y,open:_}),(0,K.jsx)(P,{description:b?`Deregister ${b.Id}${b.Port?`:${b.Port}`:``} from this target group?`:``,isPending:g.isPending,onConfirm:async()=>{if(b?.Id)try{await g.mutateAsync({targetGroupArn:e,targets:[{id:b.Id,port:b.Port}]})}finally{x(void 0)}},onOpenChange:e=>!e&&x(void 0),open:b!==void 0,title:`Deregister target`})]})}function re({arn:e}){let t=o(),{data:n}=a(_(e)),{data:r}=a(y(e)),{data:i}=a(b([e])),s=p(),c=g(),m=f(),[h,v]=(0,G.useState)(!1),[x,S]=(0,G.useState)(`overview`),C=n.TargetGroups?.[0];if(!C?.TargetGroupArn)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:`Target group not found.`})]});let E=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-target-groups`})}finally{v(!1)}},D=r.Attributes??[],O=i?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),s.error&&(0,K.jsx)(w,{error:s.error,msg:`Failed to delete target group`}),(0,K.jsxs)(`div`,{className:`space-y-6`,children:[(0,K.jsx)(T,{actions:(0,K.jsxs)(d,{onClick:()=>v(!0),size:`sm`,variant:`destructive`,children:[(0,K.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`Target Group Details`,title:C.TargetGroupName??C.TargetGroupArn}),(0,K.jsxs)(U,{onValueChange:S,value:x,children:[(0,K.jsxs)(V,{children:[(0,K.jsx)(B,{value:`overview`,children:`Overview`}),(0,K.jsx)(B,{value:`targets`,children:`Targets`}),(0,K.jsx)(B,{value:`health-checks`,children:`Health checks`}),(0,K.jsx)(B,{value:`attributes`,children:`Attributes`}),(0,K.jsx)(B,{value:`tags`,children:`Tags`})]}),(0,K.jsx)(H,{value:`overview`,children:(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Target group`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`ARN`,value:C.TargetGroupArn}),(0,K.jsx)(I,{label:`Protocol`,value:C.Protocol}),(0,K.jsx)(I,{label:`Port`,value:C.Port?.toString()}),(0,K.jsx)(I,{label:`VPC`,value:C.VpcId}),(0,K.jsx)(I,{label:`Target type`,value:C.TargetType}),(0,K.jsx)(I,{label:`Protocol version`,value:C.ProtocolVersion}),(0,K.jsx)(I,{label:`IP address type`,value:C.IpAddressType})]})]})}),(0,K.jsx)(H,{value:`targets`,children:(0,K.jsx)(ne,{defaultPort:C.Port??80,isActive:x===`targets`,targetGroupArn:C.TargetGroupArn,vpcId:C.VpcId})}),(0,K.jsxs)(H,{value:`health-checks`,children:[(0,K.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:`Health-check settings are set at creation time. Editing lands in a future slice (mulga-948).`}),(0,K.jsxs)(F,{children:[(0,K.jsx)(F.Header,{children:`Health check`}),(0,K.jsxs)(F.Content,{children:[(0,K.jsx)(I,{label:`Enabled`,value:C.HealthCheckEnabled===void 0?void 0:String(C.HealthCheckEnabled)}),(0,K.jsx)(I,{label:`Protocol`,value:C.HealthCheckProtocol}),(0,K.jsx)(I,{label:`Path`,value:C.HealthCheckPath}),(0,K.jsx)(I,{label:`Port`,value:C.HealthCheckPort}),(0,K.jsx)(I,{label:`Interval (s)`,value:C.HealthCheckIntervalSeconds?.toString()}),(0,K.jsx)(I,{label:`Timeout (s)`,value:C.HealthCheckTimeoutSeconds?.toString()}),(0,K.jsx)(I,{label:`Healthy threshold`,value:C.HealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Unhealthy threshold`,value:C.UnhealthyThresholdCount?.toString()}),(0,K.jsx)(I,{label:`Matcher (HTTP codes)`,value:C.Matcher?.HttpCode??C.Matcher?.GrpcCode})]})]})]}),(0,K.jsx)(H,{value:`attributes`,children:(0,K.jsx)(R,{attributes:D,error:c.error,isPending:c.isPending,isSuccess:c.isSuccess,onSubmit:t=>{c.mutate({targetGroupArn:e,attributes:t})},specs:L})}),(0,K.jsx)(H,{value:`tags`,children:(0,K.jsx)(z,{error:m.error,isPending:m.isPending,isSuccess:m.isSuccess,onSubmit:t=>m.mutate({resourceArn:e,tags:t,initialKeys:O.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:O})})]})]}),(0,K.jsx)(P,{description:`Are you sure you want to delete target group "${C.TargetGroupName??C.TargetGroupArn}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:E,onOpenChange:v,open:h,title:`Delete Target Group`})]})}function ie(){let e=(0,W.c)(2),{id:t}=S.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,K.jsx)(re,{arn:n}),e[0]=n,e[1]=r),r}export{ie as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js index a7b09e7f3..6aacde371 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Bt as a,Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as ee,s as u,t as te}from"./select.js";import{t as d}from"./trash-2.js";import{n as f,t as p}from"./button.js";import{I as m,N as h,o as g}from"./ec2.js";import{Jr as _,Pt as v,Qr as ne,Qt as re,Yr as y,g as b,nr as x}from"./index.js";import{t as S}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as C,t as w}from"./field.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.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`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`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=b.useParams(),t=ne(),{data:n}=r(re(e)),{data:y}=r(v),B=n.Volumes?.[0],V=h(),H=g(),U=m(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(S,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(p,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(d,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(i,{className:f({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(p,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(p,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(p,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(i,{className:f({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(_,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:a(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:a(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(te,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(ee,{children:oe.map(e=>{let t=o(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(x,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.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,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.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,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Bt as o,Ut as ee}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as te,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{n as p,t as m}from"./button.js";import{I as h,N as g,o as _}from"./ec2.js";import{Br as v,Pt as ne,Qt as re,er as ie,g as y,zr as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{a as C,t as w}from"./field.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.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=v(`link-2-off`,[[`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`}]]),L=v(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=y.useParams(),t=i(),{data:n}=r(re(e)),{data:v}=r(ne),B=n.Volumes?.[0],V=g(),H=_(),U=h(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=v.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(x,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(x,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(x,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(S,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(m,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(f,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(a,{className:p({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(m,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(m,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(m,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(a,{className:p({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(b,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:o(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:o(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(d,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(te,{children:oe.map(e=>{let t=ee(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(ie,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.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,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.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,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id15.js b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js index 152c0ea9a..cff59d4fc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id15.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id15.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{U as i}from"./ec2.js";import{Qr as a,Qt as o,_ as s,nr as c}from"./index.js";import{i as l,t as u}from"./zod.js";import{t as d}from"./error-banner.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=s.useParams(),b=a(),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=i(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=u(_.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}=l(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)(r,{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)(r,{params:{id:w},to:`/ec2/describe-volumes/$id`,children:`Back to volume`}),R=(0,y.jsx)(p,{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)(d,{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)(m,{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)(c,{"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)(h,{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)(f,{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.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{t as i}from"./back-link.js";import{U as a}from"./ec2.js";import{Qt as o,_ as s,er as c}from"./index.js";import{i as l,t as u}from"./zod.js";import{t as d}from"./error-banner.js";import{t as f}from"./form-actions.js";import{t as p}from"./page-heading.js";import{a as m,r as h,t as g}from"./field.js";import{_}from"./ec22.js";var v=t(),y=e();function b(){let e=(0,v.c)(53),{id:t}=s.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=a(),E=C?.Size??1,D;e[2]===E?D=e[3]:(D=u(_.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}=l(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)(p,{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)(d,{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)(m,{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)(c,{"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)(h,{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)(f,{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/_id16.js b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js index abda6ad88..30310ac48 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{P as l}from"./ec2.js";import{Qr as u,Zt as d,en as f,v as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=u(),{data:n}=r(f(e)),{data:S}=r(d),C=n.Vpcs?.[0],w=l(),[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)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{P as u}from"./ec2.js";import{Zt as d,en as f,v as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=i(),{data:n}=r(f(e)),{data:S}=r(d),C=n.Vpcs?.[0],w=u(),[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)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{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)(a,{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/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index da2422bf8..b8cbdc3bf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{ni as o}from"./awsClient.js";import{Bt as s,Ht as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{B as v,H as y,J as b,R as x,W as S,X as C,Y as w,r as T,u as E}from"./ec2.js";import{At as D,Mt as O,Nt as k,Yr as A,a as j,gt as M,kt as N,nr as P,rn as ee}from"./index.js";import{t as F}from"./error-banner.js";import{t as te}from"./page-heading.js";import{a as I,t as L}from"./field.js";import{a as R,i as z,l as B,n as V,o as ne,r as re,s as ie,t as ae}from"./alert-dialog.js";import{t as H}from"./delete-confirmation-dialog.js";import{n as U,t as W}from"./detail-row.js";import{t as G}from"./state-badge.js";import{t as oe}from"./ami-details.js";import{r as se}from"./admin.js";import{t as K}from"./textarea.js";var ce=A(`image-plus`,[[`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`}]]),q=A(`pause`,[[`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`}]]),J=A(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=A(`settings-2`,[[`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`}]]),ue=A(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=E(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(ae,{onOpenChange:u,open:t,children:(0,X.jsxs)(z,{children:[(0,X.jsxs)(ie,{children:[(0,X.jsx)(B,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(R,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(P,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(K,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(ne,{children:[(0,X.jsx)(re,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(V,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=N(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(M),c=T(),l=x(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,S;t[6]!==c||t[7]!==n||t[8]!==d?(S=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=S):S=t[9];let C=S,w;t[10]!==v||t[11]!==l||t[12]!==n?(w=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=w):w=t[13];let E=w,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(U.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let k;t[17]===l.error?k=t[18]:(k=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==C||t[23]!==E||t[24]!==b||t[25]!==d?(A=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(W,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(W,{label:`State`,value:(0,X.jsx)(G,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:E,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.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.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:C,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=C,t[23]=E,t[24]=b,t[25]=d,t[26]=A):A=t[26];let j;return t[27]!==O||t[28]!==k||t[29]!==A?(j=(0,X.jsxs)(U,{children:[D,(0,X.jsxs)(U.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=j):j=t[30],j}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=b(),a=w(),o=S(),s=C(),[c,l]=(0,Y.useState)(!1),u=$.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,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.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,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.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,X.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,X.jsx)(F,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let v;t[9]===a.error?v=t[10]:(v=a.error&&(0,X.jsx)(F,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=v);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,X.jsx)(F,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let x;t[13]===s.error?x=t[14]:(x=s.error&&(0,X.jsx)(F,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=x);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(q,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(H,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==v||t[40]!==y||t[41]!==x?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,v,y,x,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=v,t[40]=y,t[41]=x,t[42]=j):j=t[42],j}function he(){let{id:e}=j.useParams(),{isAdmin:t}=ee(),{data:n}=a(O(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(D(r?.ImageId)),g=h?.Images?.[0],{data:b}=a(k),{data:x}=i({...se,enabled:t,refetchInterval:5e3}),S=x?.vms?.find(t=>t.instance_id===e),C=y(),w=v(),[T,E]=(0,Y.useState)(!1),[A,M]=(0,Y.useState)(``),[N,P]=(0,Y.useState)(!1),[H,K]=(0,Y.useState)(null),[q,J]=(0,Y.useState)(!1),Z=[...new Set(b.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=s(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:A}),E(!1),M(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e);K(t.Output?atob(t.Output):`(no output)`),P(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(F,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(F,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(te,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{M(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(G,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),N&&H!==null&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{P(!1),K(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:H})})]}),(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Instance Information`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(W,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(W,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(W,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(W,{label:`Launch Time`,value:pe}),(0,X.jsx)(W,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(W,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Network & Security`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(W,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(W,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(W,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(W,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(W,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(W,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(W,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`GPU`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(W,{label:`VRAM`,value:c(S.gpu.vram_mib)}),(0,X.jsx)(W,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(W,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(W,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(W,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(W,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(W,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(W,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,X.jsx)(W,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(oe,{image:g})]}),(0,X.jsx)(ae,{onOpenChange:e=>{e||(E(!1),M(``))},open:T,children:(0,X.jsxs)(z,{children:[(0,X.jsxs)(ie,{children:[(0,X.jsx)(B,{children:`Modify Instance`}),(0,X.jsxs)(R,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>M(e??``),value:A,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(ne,{children:[(0,X.jsx)(re,{children:`Cancel`}),(0,X.jsx)(V,{disabled:C.isPending||!A||A===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:q})]})}export{he as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{ni as o}from"./awsClient.js";import{Bt as s,Ht as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{B as v,H as y,J as b,R as x,W as S,X as C,Y as w,r as T,u as E}from"./ec2.js";import{At as D,Br as O,Mt as k,Nt as A,a as j,er as M,gt as N,kt as P,rn as ee}from"./index.js";import{t as F}from"./error-banner.js";import{t as te}from"./page-heading.js";import{a as I,t as L}from"./field.js";import{a as R,i as z,l as B,n as V,o as ne,r as re,s as ie,t as ae}from"./alert-dialog.js";import{t as H}from"./delete-confirmation-dialog.js";import{n as U,t as W}from"./detail-row.js";import{t as G}from"./state-badge.js";import{t as oe}from"./ami-details.js";import{r as se}from"./admin.js";import{t as K}from"./textarea.js";var ce=O(`image-plus`,[[`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`}]]),q=O(`pause`,[[`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`}]]),J=O(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=O(`settings-2`,[[`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`}]]),ue=O(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=E(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(ae,{onOpenChange:u,open:t,children:(0,X.jsxs)(z,{children:[(0,X.jsxs)(ie,{children:[(0,X.jsx)(B,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(R,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(M,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(K,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(ne,{children:[(0,X.jsx)(re,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(V,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=P(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(N),c=T(),l=x(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,S;t[6]!==c||t[7]!==n||t[8]!==d?(S=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=S):S=t[9];let C=S,w;t[10]!==v||t[11]!==l||t[12]!==n?(w=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=w):w=t[13];let E=w,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(U.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let k;t[17]===l.error?k=t[18]:(k=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(F,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==C||t[23]!==E||t[24]!==b||t[25]!==d?(A=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(W,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(W,{label:`State`,value:(0,X.jsx)(G,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:E,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.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.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:C,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=C,t[23]=E,t[24]=b,t[25]=d,t[26]=A):A=t[26];let j;return t[27]!==O||t[28]!==k||t[29]!==A?(j=(0,X.jsxs)(U,{children:[D,(0,X.jsxs)(U.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=j):j=t[30],j}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=b(),a=w(),o=S(),s=C(),[c,l]=(0,Y.useState)(!1),u=$.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,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.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,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.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,X.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,X.jsx)(F,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let v;t[9]===a.error?v=t[10]:(v=a.error&&(0,X.jsx)(F,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=v);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,X.jsx)(F,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let x;t[13]===s.error?x=t[14]:(x=s.error&&(0,X.jsx)(F,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=x);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(q,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(H,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==v||t[40]!==y||t[41]!==x?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,v,y,x,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=v,t[40]=y,t[41]=x,t[42]=j):j=t[42],j}function he(){let{id:e}=j.useParams(),{isAdmin:t}=ee(),{data:n}=a(k(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(D(r?.ImageId)),g=h?.Images?.[0],{data:b}=a(A),{data:x}=i({...se,enabled:t,refetchInterval:5e3}),S=x?.vms?.find(t=>t.instance_id===e),C=y(),w=v(),[T,E]=(0,Y.useState)(!1),[O,M]=(0,Y.useState)(``),[N,P]=(0,Y.useState)(!1),[H,K]=(0,Y.useState)(null),[q,J]=(0,Y.useState)(!1),Z=[...new Set(b.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=s(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:O}),E(!1),M(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e);K(t.Output?atob(t.Output):`(no output)`),P(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(F,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(F,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(te,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{M(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(G,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),N&&H!==null&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{P(!1),K(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:H})})]}),(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Instance Information`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(W,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(W,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(W,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(W,{label:`Launch Time`,value:pe}),(0,X.jsx)(W,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(W,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Network & Security`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(W,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(W,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(W,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(W,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(W,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(W,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(W,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`GPU`}),(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(W,{label:`VRAM`,value:c(S.gpu.vram_mib)}),(0,X.jsx)(W,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(W,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(W,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(W,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(U,{children:[(0,X.jsx)(U.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(U.Content,{children:[(0,X.jsx)(W,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(W,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(W,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(W,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,X.jsx)(W,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(oe,{image:g})]}),(0,X.jsx)(ae,{onOpenChange:e=>{e||(E(!1),M(``))},open:T,children:(0,X.jsxs)(z,{children:[(0,X.jsxs)(ie,{children:[(0,X.jsx)(B,{children:`Modify Instance`}),(0,X.jsxs)(R,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>M(e??``),value:O,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(ne,{children:[(0,X.jsx)(re,{children:`Cancel`}),(0,X.jsx)(V,{disabled:C.isPending||!O||O===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:q})]})}export{he as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 12b08c9b1..8d1c89d51 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{F as m,a as h,w as g}from"./ec2.js";import{Ft as _,Qr as v,o as y,tn as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=y.useParams(),t=v(),{data:n}=r(_(e)),{data:O}=r(b),k=h(),A=m(),j=g(),[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)(o,{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=a(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(x,{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)(S,{actions:(0,D.jsxs)(p,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(f,{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)(p,{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)(d,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(u,{className:`w-full`,children:(0,D.jsx)(s,{placeholder:`Select a VPC`})}),(0,D.jsx)(l,{children:L.map(e=>{let t=a(e.Tags);return(0,D.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(p,{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 +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{F as h,a as g,w as _}from"./ec2.js";import{Ft as v,o as y,tn as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=y.useParams(),t=i(),{data:n}=r(v(e)),{data:O}=r(b),k=g(),A=h(),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)(x,{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)(S,{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)(a,{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/_id5.js b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js index 8cbc72109..fae257511 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id5.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id5.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Bt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{T as c}from"./ec2.js";import{Lt as l,Qr as u,s as d}from"./index.js";import{t as f}from"./error-banner.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=u(),{data:n}=r(l(e)),y=n.KeyPairs?.[0],b=c(),[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)(a,{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=i(y.CreateTime);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),b.error&&(0,v.jsx)(f,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{actions:(0,v.jsxs)(s,{onClick:()=>S(!0),size:`sm`,variant:`destructive`,children:[(0,v.jsx)(o,{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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{T as l}from"./ec2.js";import{Lt as u,s as d}from"./index.js";import{t as f}from"./error-banner.js";import{t as p}from"./page-heading.js";import{t as m}from"./delete-confirmation-dialog.js";import{n as h,t as g}from"./detail-row.js";var _=t(n()),v=e();function y(){let{id:e}=d.useParams(),t=i(),{data:n}=r(u(e)),y=n.KeyPairs?.[0],b=l(),[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)(f,{error:b.error,msg:`Failed to delete key pair`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsx)(p,{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/_id6.js b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js index 4f5a64108..ae880bfbf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id6.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id6.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Bt as a,Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{_ as g,a as _,d as v,f as y,g as b,h as x,o as S,r as C,s as w,t as T,u as E}from"./elbv2.js";import{G as D,H as O,J as k,K as A,Qr as j,X as M,Yr as N,Z as P,Zt as F,c as I,et as ee,nr as te,q as L,qt as R}from"./index.js";import{a as ne,i as z,n as re,r as B,t as V}from"./zod.js";import{t as H}from"./error-banner.js";import{t as U}from"./page-heading.js";import{a as W,r as ie,t as G}from"./field.js";import{a as K,i as q,l as J,n as Y,o as ae,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=N(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let l=s,p;t[2]===o?p=t[3]:(p=o===void 0?[]:o,t[2]=o,t[3]=p);let g=p,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=ne(T),D=E===`HTTPS`,O;t[6]===E?O=t[7]:(O=he(E),t[6]=E,t[7]=O);let k=O,A;t[8]!==y||t[9]!==b?(A=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=A):A=t[10];let j=A,M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=M):M=t[11];let N;t[12]!==j||t[13]!==r?(N=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:e=>{t.onChange(e),j(e)},value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:r.map(Ne)})]})},t[12]=j,t[13]=r,t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==N?(P=(0,$.jsxs)(G,{children:[M,(0,$.jsx)(re,{control:_,name:`protocol`,render:N})]}),t[15]=_,t[16]=N,t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=F):F=t[18];let I=!!S.port,ee=k?`443`:`80`,L;t[19]===v?L=t[20]:(L=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=L);let R;t[21]!==I||t[22]!==ee||t[23]!==L?(R=(0,$.jsx)(te,{"aria-invalid":I,id:`listener-port`,inputMode:`numeric`,placeholder:ee,type:`number`,...L}),t[21]=I,t[22]=ee,t[23]=L,t[24]=R):R=t[24];let z;t[25]===S.port?z=t[26]:(z=(0,$.jsx)(ie,{errors:[S.port]}),t[25]=S.port,t[26]=z);let B;t[27]!==R||t[28]!==z?(B=(0,$.jsxs)(G,{children:[F,R,z]}),t[27]=R,t[28]=z,t[29]=B):B=t[29];let V;t[30]!==l||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==D||t[35]!==k||t[36]!==b||t[37]!==g?(V=k&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(re,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(c,{placeholder:`Select certificate`})}),(0,$.jsx)(u,{children:l.map(Me)})]})}}),(0,$.jsx)(ie,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[l.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(m,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),D&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(re,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(d,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(c,{})}),(0,$.jsx)(u,{children:g.map(je)})]})}})]}),(0,$.jsx)(h,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=l,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=D,t[35]=k,t[36]=b,t[37]=g,t[38]=V):V=t[38];let H;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=H):H=t[39];let U;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(U=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=U):U=t[42];let K;t[43]!==_||t[44]!==U?(K=(0,$.jsx)(re,{control:_,name:`defaultTargetGroupArn`,render:U}),t[43]=_,t[44]=U,t[45]=K):K=t[45];let q;t[46]===S.defaultTargetGroupArn?q=t[47]:(q=(0,$.jsx)(ie,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=q);let J;t[48]===i.length?J=t[49]:(J=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=J);let Y;t[50]!==K||t[51]!==q||t[52]!==J?(Y=(0,$.jsxs)(G,{children:[H,K,q,J]}),t[50]=K,t[51]=q,t[52]=J,t[53]=Y):Y=t[53];let ae;return t[54]!==P||t[55]!==B||t[56]!==V||t[57]!==Y?(ae=(0,$.jsxs)($.Fragment,{children:[P,B,V,Y]}),t[54]=P,t[55]=B,t[56]=V,t[57]=Y,t[58]=ae):ae=t[58],ae}function Ae(e){return(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(l,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(l,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(l,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=i(D(e)),r=C(),a=y(),o=w(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),[d,f]=(0,Q.useState)(),h=n.Rules??[],g=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&g.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(H,{error:r.error,msg:`Failed to create rule`}),a.error&&(0,$.jsx)(H,{error:a.error,msg:`Failed to modify rule`}),o.error&&(0,$.jsx)(H,{error:o.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h.length,` rule`,h.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(m,{onClick:()=>c(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:h.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,g)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>u(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>f(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:c,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),c(!1)}catch{}},open:s,targetGroups:t}),(0,$.jsx)(ze,{initialRule:l,isPending:a.isPending,mode:`edit`,onOpenChange:e=>!e&&u(void 0),onSubmit:async t=>{if(l?.RuleArn)try{await a.mutateAsync({ruleArn:l.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),u(void 0)}catch{}},open:l!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:d?`Delete rule with priority ${d.Priority}? This cannot be undone.`:``,isPending:o.isPending,onConfirm:async()=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:e})}finally{f(void 0)}},onOpenChange:e=>!e&&f(void 0),open:d!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],p=z({resolver:V(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:h,append:g,remove:_}=B({control:p.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||p.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;p.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=p.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(K,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(te,{"aria-invalid":!!p.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...p.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ie,{errors:[p.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(W,{children:`Conditions`}),(0,$.jsx)(m,{disabled:h.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),h.map((e,t)=>(0,$.jsx)(Be,{form:p,index:t,onRemove:h.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(re,{control:p.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(d,{"aria-invalid":!!p.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(c,{placeholder:`Select target group`})}),(0,$.jsx)(u,{children:i.map(e=>(0,$.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ie,{errors:[p.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(ae,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(Y,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,h,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(f,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(d,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(c,{})}),(0,$.jsxs)(u,{children:[(0,$.jsx)(l,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(l,{value:`host-header`,children:`Host header`}),(0,$.jsx)(l,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(l,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(l,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(l,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(re,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==C?(D=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==i?(O=i&&(0,$.jsx)(m,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=O):O=t[26],t[27]!==D||t[28]!==O?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[D,O]}),t[27]=D,t[28]=O,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(G,{children:[(0,$.jsx)(W,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(te,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ie,{errors:[s?.httpHeaderName]})]}),o=G;let k=`rule-cond-${r}-values`,A;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=A):A=t[30],t[31]===k?v=t[32]:(v=(0,$.jsx)(W,{children:(0,$.jsxs)(`label`,{htmlFor:k,children:[`Values`,` `,A]})}),t[31]=k,t[32]=v),a=te,h=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=h,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],h=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==h||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":h,id:g,placeholder:_,...S}),t[36]=a,t[37]=h,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ie,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let D;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(D=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=D):D=t[53],D}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:a}=i(A(e)),{data:o}=i(ee),{data:s}=i(O),{data:c}=i(M),l=T(),u=_(),d=E(),[f,h]=(0,Q.useState)(!1),[g,v]=(0,Q.useState)(),[y,b]=(0,Q.useState)(),[x,S]=(0,Q.useState)(),C=a.Listeners??[],w=o.TargetGroups??[],D=w.filter(e=>e.VpcId===t),k=s.CertificateSummaryList??[],j=c.SslPolicies??[],N=new Map;for(let e of w)e.TargetGroupArn&&e.TargetGroupName&&N.set(e.TargetGroupArn,e.TargetGroupName);let P=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=N.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[l.error&&(0,$.jsx)(H,{error:l.error,msg:`Failed to create listener`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to modify listener`}),u.error&&(0,$.jsx)(H,{error:u.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[C.length,` listener`,C.length===1?``:`s`]}),(0,$.jsx)(m,{onClick:()=>h(!0),size:`sm`,children:`Add listener`})]}),C.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:C.map(e=>{let t=e.ListenerArn??``,n=x===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:P(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(m,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>S(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(m,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>v(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(m,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>b(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(p,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:D})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:k,isPending:l.isPending,lbType:n,onOpenChange:h,onSubmit:async t=>{try{await l.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),h(!1)}catch{}},open:f,protocols:r,sslPolicies:j,targetGroups:D}),(0,$.jsx)(Xe,{certificates:k,isPending:d.isPending,listener:g,onOpenChange:e=>!e&&v(void 0),onSubmit:async t=>{if(g?.ListenerArn)try{await d.mutateAsync({listenerArn:g.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),v(void 0)}catch{}},protocols:r,sslPolicies:j,targetGroups:D}),(0,$.jsx)(le,{description:y?`Delete listener ${y.Protocol}:${y.Port}? This cannot be undone.`:``,isPending:u.isPending,onConfirm:async()=>{if(y?.ListenerArn)try{await u.mutateAsync(y.ListenerArn)}finally{b(void 0)}},onOpenChange:e=>!e&&b(void 0),open:y!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=V(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=z(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Add listener`}),(0,$.jsx)(K,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(Y,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(ae,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:V(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=z(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(J,{children:`Edit listener`}),(0,$.jsx)(K,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(Y,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(ae,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(q,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(m,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(m,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=o(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,h;t[3]===l?h=t[4]:(h=()=>d(l),t[3]=l,t[4]=h);let g=h,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(m,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(m,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=j(),{data:n}=i(k(e)),{data:r}=i(L(e)),{data:c}=i(P([e])),{data:l}=i(F),{data:u}=i(R),d=S(),f=v(),h=g(),_=x(),y=b(),[C,w]=(0,Q.useState)(!1),T=n.LoadBalancers?.[0];if(!T?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let E=async()=>{try{await d.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{w(!1)}},D=l.Subnets??[],O=e=>{let t=D.find(t=>t.SubnetId===e);if(!t)return e;let n=o(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},A=r.Attributes??[],M=c?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],N=(T.SecurityGroups??[]).filter(e=>e!==void 0),I=(u.SecurityGroups??[]).filter(e=>e.VpcId===T.VpcId),ee=D.filter(e=>e.VpcId===T.VpcId),te=(T.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),ne=T.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),d.error&&(0,$.jsx)(H,{error:d.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(U,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(m,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(p,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:T.State?.Code})]}),subtitle:`Load Balancer Details`,title:T.LoadBalancerName??T.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!ne&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:T.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:T.DNSName}),(0,$.jsx)(Z,{label:`State`,value:T.State?.Reason?`${T.State.Code} — ${T.State.Reason}`:T.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:T.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:T.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:T.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:T.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:a(T.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(T.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?O(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(T.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(T.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:ne?`network`:`application`,loadBalancerArn:e,vpcId:T.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:ee,current:te,error:y.error,isPending:y.isPending,isSuccess:y.isSuccess,onSubmit:t=>y.mutate({loadBalancerArn:e,subnetIds:t})})}),!ne&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:I,current:N,error:_.error,isPending:_.isPending,isSuccess:_.isSuccess,onSubmit:t=>_.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:A,error:f.error,isPending:f.isPending,isSuccess:f.isSuccess,onSubmit:t=>{f.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:h.error,isPending:h.isPending,isSuccess:h.isSuccess,onSubmit:t=>h.mutate({resourceArn:e,tags:t,initialKeys:M.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:M})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${T.LoadBalancerName??T.LoadBalancerArn}"? This action cannot be undone.`,isPending:d.isPending,onConfirm:E,onOpenChange:w,open:C,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=I.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{Bt as o,Ut as s}from"./auth.js";import{t as c}from"./back-link.js";import{c as l,i as u,n as d,s as f,t as p}from"./select.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{t as g}from"./certificate-import-dialog.js";import{_,a as v,d as y,f as b,g as x,h as S,o as C,r as w,s as T,t as E,u as D}from"./elbv2.js";import{Br as O,G as k,H as A,J as j,K as M,X as N,Z as P,Zt as F,c as I,er as ee,et as te,q as L,qt as ne}from"./index.js";import{a as re,i as R,n as ie,r as z,t as B}from"./zod.js";import{t as V}from"./error-banner.js";import{t as H}from"./page-heading.js";import{a as U,r as ae,t as W}from"./field.js";import{a as G,i as K,l as q,n as J,o as Y,r as oe,s as se,t as ce}from"./alert-dialog.js";import{t as le}from"./delete-confirmation-dialog.js";import{n as X,t as Z}from"./detail-row.js";import{t as ue}from"./state-badge.js";import{c as de,i as fe,n as pe,o as me,s as he,t as ge}from"./elbv22.js";import{n as _e,r as ve,t as ye}from"./tags-editor.js";import{i as be,n as xe,r as Se,t as Ce}from"./tabs.js";var we=O(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Te=r(),Q=t(n(),1),$=e(),Ee=80,De=443;function Oe(e){let t=e.CertificateArn?.split(`/`).pop()??e.CertificateArn??``;return e.DomainName?`${e.DomainName} · ${t}`:t}function ke(e){let t=(0,Te.c)(59),{form:n,protocols:r,targetGroups:i,certificates:a,sslPolicies:o}=e,s;t[0]===a?s=t[1]:(s=a===void 0?[]:a,t[0]=a,t[1]=s);let c=s,u;t[2]===o?u=t[3]:(u=o===void 0?[]:o,t[2]=o,t[3]=u);let m=u,{control:_,register:v,getValues:y,setValue:b,formState:x}=n,{errors:S}=x,[C,w]=(0,Q.useState)(!1),T;t[4]===_?T=t[5]:(T={control:_,name:`protocol`},t[4]=_,t[5]=T);let E=re(T),D=E===`HTTPS`,O;t[6]===E?O=t[7]:(O=he(E),t[6]=E,t[7]=O);let k=O,A;t[8]!==y||t[9]!==b?(A=e=>{if(!e)return;let t=y(`port`);he(e)?(t===Ee&&b(`port`,De),e===`HTTPS`?y(`sslPolicy`)||b(`sslPolicy`,ge):b(`sslPolicy`,void 0)):(t===De&&b(`port`,Ee),b(`certificateArn`,void 0),b(`sslPolicy`,void 0))},t[8]=y,t[9]=b,t[10]=A):A=t[10];let j=A,M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),t[11]=M):M=t[11];let N;t[12]!==j||t[13]!==r?(N=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:e=>{t.onChange(e),j(e)},value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-protocol`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:r.map(Ne)})]})},t[12]=j,t[13]=r,t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==N?(P=(0,$.jsxs)(W,{children:[M,(0,$.jsx)(ie,{control:_,name:`protocol`,render:N})]}),t[15]=_,t[16]=N,t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),t[18]=F):F=t[18];let I=!!S.port,te=k?`443`:`80`,L;t[19]===v?L=t[20]:(L=v(`port`,{valueAsNumber:!0}),t[19]=v,t[20]=L);let ne;t[21]!==I||t[22]!==te||t[23]!==L?(ne=(0,$.jsx)(ee,{"aria-invalid":I,id:`listener-port`,inputMode:`numeric`,placeholder:te,type:`number`,...L}),t[21]=I,t[22]=te,t[23]=L,t[24]=ne):ne=t[24];let R;t[25]===S.port?R=t[26]:(R=(0,$.jsx)(ae,{errors:[S.port]}),t[25]=S.port,t[26]=R);let z;t[27]!==ne||t[28]!==R?(z=(0,$.jsxs)(W,{children:[F,ne,R]}),t[27]=ne,t[28]=R,t[29]=z):z=t[29];let B;t[30]!==c||t[31]!==_||t[32]!==S.certificateArn||t[33]!==C||t[34]!==D||t[35]!==k||t[36]!==b||t[37]!==m?(B=k&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,$.jsx)(ie,{control:_,name:`certificateArn`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,$.jsx)(l,{placeholder:`Select certificate`})}),(0,$.jsx)(d,{children:c.map(Me)})]})}}),(0,$.jsx)(ae,{errors:[S.certificateArn]}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[c.length===0&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,$.jsx)(h,{className:`ml-auto`,onClick:()=>w(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),D&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,$.jsx)(ie,{control:_,name:`sslPolicy`,render:e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??`ELBSecurityPolicy-2016-08`,children:[(0,$.jsx)(f,{className:`w-full`,id:`listener-ssl-policy`,children:(0,$.jsx)(l,{})}),(0,$.jsx)(d,{children:m.map(je)})]})}})]}),(0,$.jsx)(g,{onImported:e=>b(`certificateArn`,e,{shouldValidate:!0}),onOpenChange:w,open:C})]}),t[30]=c,t[31]=_,t[32]=S.certificateArn,t[33]=C,t[34]=D,t[35]=k,t[36]=b,t[37]=m,t[38]=B):B=t[38];let V;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`listener-default-tg`,children:`Default target group`})}),t[39]=V):V=t[39];let H;t[40]!==S.defaultTargetGroupArn||t[41]!==i?(H=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!S.defaultTargetGroupArn,className:`w-full`,id:`listener-default-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(Ae)})]})},t[40]=S.defaultTargetGroupArn,t[41]=i,t[42]=H):H=t[42];let G;t[43]!==_||t[44]!==H?(G=(0,$.jsx)(ie,{control:_,name:`defaultTargetGroupArn`,render:H}),t[43]=_,t[44]=H,t[45]=G):G=t[45];let K;t[46]===S.defaultTargetGroupArn?K=t[47]:(K=(0,$.jsx)(ae,{errors:[S.defaultTargetGroupArn]}),t[46]=S.defaultTargetGroupArn,t[47]=K);let q;t[48]===i.length?q=t[49]:(q=i.length===0&&(0,$.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups available in this VPC. Create one first.`}),t[48]=i.length,t[49]=q);let J;t[50]!==G||t[51]!==K||t[52]!==q?(J=(0,$.jsxs)(W,{children:[V,G,K,q]}),t[50]=G,t[51]=K,t[52]=q,t[53]=J):J=t[53];let Y;return t[54]!==P||t[55]!==z||t[56]!==B||t[57]!==J?(Y=(0,$.jsxs)($.Fragment,{children:[P,z,B,J]}),t[54]=P,t[55]=z,t[56]=B,t[57]=J,t[58]=Y):Y=t[58],Y}function Ae(e){return(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn)}function je(e){return(0,$.jsx)(u,{value:e.Name??``,children:e.Name},e.Name)}function Me(e){return(0,$.jsx)(u,{value:e.CertificateArn??``,children:Oe(e)},e.CertificateArn)}function Ne(e){return(0,$.jsx)(u,{value:e,children:e},e)}function Pe({listenerArn:e,targetGroups:t}){let{data:n}=i(k(e)),r=w(),a=b(),o=T(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),[d,f]=(0,Q.useState)(),p=n.Rules??[],g=new Map;for(let e of t)e.TargetGroupArn&&e.TargetGroupName&&g.set(e.TargetGroupArn,e.TargetGroupName);return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[r.error&&(0,$.jsx)(V,{error:r.error,msg:`Failed to create rule`}),a.error&&(0,$.jsx)(V,{error:a.error,msg:`Failed to modify rule`}),o.error&&(0,$.jsx)(V,{error:o.error,msg:`Failed to delete rule`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[p.length,` rule`,p.length===1?``:`s`,` (including default)`]}),(0,$.jsx)(h,{onClick:()=>c(!0),size:`sm`,children:`Add rule`})]}),(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Priority`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Conditions`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Forward to`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:p.map(e=>(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Priority}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Fe(e.Conditions,e.IsDefault===!0)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:Le(e,g)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:e.IsDefault===!0?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Edit via listener`}):(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`Edit rule ${e.Priority}`,onClick:()=>u(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete rule ${e.Priority}`,onClick:()=>f(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]},e.RuleArn??e.Priority??`default`))})]})}),(0,$.jsx)(ze,{isPending:r.isPending,mode:`add`,onOpenChange:c,onSubmit:async t=>{try{await r.mutateAsync({listenerArn:e,priority:t.priority,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),c(!1)}catch{}},open:s,targetGroups:t}),(0,$.jsx)(ze,{initialRule:l,isPending:a.isPending,mode:`edit`,onOpenChange:e=>!e&&u(void 0),onSubmit:async t=>{if(l?.RuleArn)try{await a.mutateAsync({ruleArn:l.RuleArn,listenerArn:e,conditions:t.conditions.map(Re),forwardTargetGroupArn:t.forwardTargetGroupArn}),u(void 0)}catch{}},open:l!==void 0,targetGroups:t}),(0,$.jsx)(le,{description:d?`Delete rule with priority ${d.Priority}? This cannot be undone.`:``,isPending:o.isPending,onConfirm:async()=>{if(d?.RuleArn)try{await o.mutateAsync({ruleArn:d.RuleArn,listenerArn:e})}finally{f(void 0)}},onOpenChange:e=>!e&&f(void 0),open:d!==void 0,title:`Delete rule`})]})}function Fe(e,t){return t?`default`:!e||e.length===0?`—`:e.map(e=>{let t=Ie(e);return`${e.Field}: ${t.join(`, `)}`}).join(` AND `)}function Ie(e){if(e.Field===void 0)return e.Values??[];switch(e.Field){case`host-header`:return e.HostHeaderConfig?.Values??e.Values??[];case`path-pattern`:return e.PathPatternConfig?.Values??e.Values??[];case`http-header`:{let t=e.HttpHeaderConfig?.HttpHeaderName??`?`;return(e.HttpHeaderConfig?.Values??[]).map(e=>`${t}=${e}`)}case`http-request-method`:return e.HttpRequestMethodConfig?.Values??[];case`source-ip`:return e.SourceIpConfig?.Values??[];case`query-string`:return(e.QueryStringConfig?.Values??[]).map(e=>e.Key?`${e.Key}=${e.Value??``}`:e.Value??``);default:return e.Values??[]}}function Le(e,t){let n=e.Actions?.[0];return n?n.Type===`forward`&&n.TargetGroupArn?t.get(n.TargetGroupArn)??n.TargetGroupArn:n.Type??`—`:`—`}function Re(e){let t=e.rawValues.split(/[\n,]/).map(e=>e.trim()).filter(e=>e.length>0);return e.field===`query-string`?{field:e.field,values:[],queryStringPairs:t.map(e=>{let t=e.indexOf(`=`);return t===-1?{value:e}:{key:e.slice(0,t),value:e.slice(t+1)}})}:{field:e.field,values:t,httpHeaderName:e.httpHeaderName}}function ze({open:e,onOpenChange:t,onSubmit:n,isPending:r,targetGroups:i,mode:a,initialRule:o}){let s=[{field:`path-pattern`,rawValues:``}],c=R({resolver:B(fe),defaultValues:{priority:1,conditions:s,forwardTargetGroupArn:``}}),{fields:m,append:g,remove:_}=z({control:c.control,name:`conditions`});(0,Q.useEffect)(()=>{if(a===`add`){e||c.reset({priority:1,conditions:s,forwardTargetGroupArn:``});return}if(!o)return;let t=Number(o.Priority??1),n=o.Conditions?.map(e=>We(e))??s;c.reset({priority:Number.isFinite(t)?t:1,conditions:n.length>0?n:s,forwardTargetGroupArn:o.Actions?.[0]?.TargetGroupArn??``})},[o,e,a]);let v=c.handleSubmit(n);return(0,$.jsx)(ce,{onOpenChange:t,open:e,children:(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:{maxWidth:`40rem`,width:`calc(100vw - 2rem)`},children:[(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:a===`add`?`Add rule`:`Edit rule`}),(0,$.jsx)(G,{children:`Routing rules match incoming requests and forward them to a target group. Rules evaluate in priority order; the listener default applies when no rule matches.`})]}),(0,$.jsxs)(`form`,{className:`min-w-0 space-y-4`,onSubmit:e=>{e.preventDefault(),v()},children:[(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-priority`,children:`Priority`})}),(0,$.jsx)(ee,{"aria-invalid":!!c.formState.errors.priority,id:`rule-priority`,inputMode:`numeric`,type:`number`,...c.register(`priority`,{valueAsNumber:!0})}),(0,$.jsx)(ae,{errors:[c.formState.errors.priority]})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsx)(U,{children:`Conditions`}),(0,$.jsx)(h,{disabled:m.length>=5,onClick:()=>g({field:`path-pattern`,rawValues:``}),size:`sm`,type:`button`,variant:`outline`,children:`Add condition`})]}),m.map((e,t)=>(0,$.jsx)(Be,{form:c,index:t,onRemove:m.length>1?()=>_(t):void 0},e.id))]}),(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-forward-tg`,children:`Forward to target group`})}),(0,$.jsx)(ie,{control:c.control,name:`forwardTargetGroupArn`,render:({field:e})=>(0,$.jsxs)(p,{onValueChange:e.onChange,value:e.value??``,children:[(0,$.jsx)(f,{"aria-invalid":!!c.formState.errors.forwardTargetGroupArn,className:`w-full`,id:`rule-forward-tg`,children:(0,$.jsx)(l,{placeholder:`Select target group`})}),(0,$.jsx)(d,{children:i.map(e=>(0,$.jsxs)(u,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,$.jsx)(ae,{errors:[c.formState.errors.forwardTargetGroupArn]})]})]}),(0,$.jsxs)(Y,{children:[(0,$.jsx)(oe,{disabled:r,children:`Cancel`}),(0,$.jsx)(J,{disabled:r,onClick:v,children:Ge(a,r)})]})]})})}function Be(e){let t=(0,Te.c)(54),{form:n,index:r,onRemove:i}=e,a,o,s,c,g,_,v,y,b,x;if(t[0]!==n||t[1]!==r||t[2]!==i){let e=n.watch(`conditions.${r}.field`);s=n.formState.errors.conditions?.[r],y=`space-y-2 rounded-md border p-3`;let S=`rule-cond-${r}-field`,C;t[13]===S?C=t[14]:(C=(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:S,children:`Type`})}),t[13]=S,t[14]=C);let w=`conditions.${r}.field`,T;t[15]===r?T=t[16]:(T=e=>{let{field:t}=e;return(0,$.jsxs)(p,{onValueChange:t.onChange,value:t.value,children:[(0,$.jsx)(f,{className:`w-full`,id:`rule-cond-${r}-field`,children:(0,$.jsx)(l,{})}),(0,$.jsxs)(d,{children:[(0,$.jsx)(u,{value:`path-pattern`,children:`Path pattern`}),(0,$.jsx)(u,{value:`host-header`,children:`Host header`}),(0,$.jsx)(u,{value:`http-header`,children:`HTTP header`}),(0,$.jsx)(u,{value:`http-request-method`,children:`HTTP method`}),(0,$.jsx)(u,{value:`source-ip`,children:`Source IP CIDR`}),(0,$.jsx)(u,{value:`query-string`,children:`Query string`})]})]})},t[15]=r,t[16]=T);let E;t[17]!==n.control||t[18]!==w||t[19]!==T?(E=(0,$.jsx)(ie,{control:n.control,name:w,render:T}),t[17]=n.control,t[18]=w,t[19]=T,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==C?(D=(0,$.jsxs)(`div`,{className:`flex-1`,children:[C,E]}),t[21]=E,t[22]=C,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==i?(O=i&&(0,$.jsx)(h,{"aria-label":`Remove condition ${r+1}`,className:`self-end`,onClick:i,size:`sm`,type:`button`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})}),t[24]=r,t[25]=i,t[26]=O):O=t[26],t[27]!==D||t[28]!==O?(b=(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[D,O]}),t[27]=D,t[28]=O,t[29]=b):b=t[29],x=e===`http-header`&&(0,$.jsxs)(W,{children:[(0,$.jsx)(U,{children:(0,$.jsx)(`label`,{htmlFor:`rule-cond-${r}-hdr-name`,children:`Header name`})}),(0,$.jsx)(ee,{"aria-invalid":!!s?.httpHeaderName,id:`rule-cond-${r}-hdr-name`,placeholder:`X-Tenant`,...n.register(`conditions.${r}.httpHeaderName`)}),(0,$.jsx)(ae,{errors:[s?.httpHeaderName]})]}),o=W;let k=`rule-cond-${r}-values`,A;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`(comma or newline separated, max 5)`}),t[30]=A):A=t[30],t[31]===k?v=t[32]:(v=(0,$.jsx)(U,{children:(0,$.jsxs)(`label`,{htmlFor:k,children:[`Values`,` `,A]})}),t[31]=k,t[32]=v),a=ee,c=!!s?.rawValues,g=`rule-cond-${r}-values`,_=Ve(e),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=g,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x}else a=t[3],o=t[4],s=t[5],c=t[6],g=t[7],_=t[8],v=t[9],y=t[10],b=t[11],x=t[12];let S;t[33]!==n||t[34]!==r?(S=n.register(`conditions.${r}.rawValues`),t[33]=n,t[34]=r,t[35]=S):S=t[35];let C;t[36]!==a||t[37]!==c||t[38]!==g||t[39]!==_||t[40]!==S?(C=(0,$.jsx)(a,{"aria-invalid":c,id:g,placeholder:_,...S}),t[36]=a,t[37]=c,t[38]=g,t[39]=_,t[40]=S,t[41]=C):C=t[41];let w=s?.rawValues,T;t[42]===w?T=t[43]:(T=(0,$.jsx)(ae,{errors:[w]}),t[42]=w,t[43]=T);let E;t[44]!==o||t[45]!==T||t[46]!==v||t[47]!==C?(E=(0,$.jsxs)(o,{children:[v,C,T]}),t[44]=o,t[45]=T,t[46]=v,t[47]=C,t[48]=E):E=t[48];let D;return t[49]!==E||t[50]!==y||t[51]!==b||t[52]!==x?(D=(0,$.jsxs)(`div`,{className:y,children:[b,x,E]}),t[49]=E,t[50]=y,t[51]=b,t[52]=x,t[53]=D):D=t[53],D}function Ve(e){switch(e){case`path-pattern`:return`/api/*`;case`host-header`:return`*.example.com`;case`http-header`:return`acme`;case`http-request-method`:return`GET, POST`;case`source-ip`:return`10.0.0.0/8`;case`query-string`:return`key=value`;default:return``}}var He=new Set([`host-header`,`path-pattern`,`http-header`,`http-request-method`,`source-ip`,`query-string`]);function Ue(e){return e!==void 0&&He.has(e)}function We(e){let t=Ie(e);return{field:Ue(e.Field)?e.Field:`path-pattern`,httpHeaderName:e.HttpHeaderConfig?.HttpHeaderName,rawValues:t.join(`, `)}}function Ge(e,t){return t?e===`add`?`Adding…`:`Saving…`:e===`add`?`Add rule`:`Save changes`}function Ke(e){return{protocol:me(e),port:80,defaultTargetGroupArn:``}}function qe(e){if(e.Protocol!==`HTTPS`)return`—`;let t=e.Certificates?.[0]?.CertificateArn?.split(`/`).pop(),n=e.SslPolicy;return t&&n?`${n} · ${t}`:n??t??`—`}function Je({loadBalancerArn:e,vpcId:t,lbType:n}){let r=de(n),{data:a}=i(M(e)),{data:o}=i(te),{data:s}=i(A),{data:c}=i(N),l=E(),u=v(),d=D(),[f,p]=(0,Q.useState)(!1),[g,_]=(0,Q.useState)(),[y,b]=(0,Q.useState)(),[x,S]=(0,Q.useState)(),C=a.Listeners??[],w=o.TargetGroups??[],T=w.filter(e=>e.VpcId===t),O=s.CertificateSummaryList??[],k=c.SslPolicies??[],j=new Map;for(let e of w)e.TargetGroupArn&&e.TargetGroupName&&j.set(e.TargetGroupArn,e.TargetGroupName);let P=e=>{let t=e.DefaultActions?.[0];if(!t)return`—`;if(t.Type===`forward`&&t.TargetGroupArn){let e=j.get(t.TargetGroupArn);return e?`forward → ${e}`:`forward → ${t.TargetGroupArn}`}return t.Type??`—`};return(0,$.jsxs)(`div`,{className:`space-y-3`,children:[l.error&&(0,$.jsx)(V,{error:l.error,msg:`Failed to create listener`}),d.error&&(0,$.jsx)(V,{error:d.error,msg:`Failed to modify listener`}),u.error&&(0,$.jsx)(V,{error:u.error,msg:`Failed to delete listener`}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,$.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[C.length,` listener`,C.length===1?``:`s`]}),(0,$.jsx)(h,{onClick:()=>p(!0),size:`sm`,children:`Add listener`})]}),C.length===0?(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No listeners configured.`}):(0,$.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,$.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`TLS`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Default action`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Listener ARN`}),(0,$.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(`tbody`,{children:C.map(e=>{let t=e.ListenerArn??``,n=x===t;return(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol}),(0,$.jsx)(`td`,{className:`px-4 py-2`,children:e.Port}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:qe(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:P(e)}),(0,$.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:t}),(0,$.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,$.jsxs)(`div`,{className:`flex justify-end gap-1`,children:[(0,$.jsx)(h,{"aria-label":`${n?`Hide`:`Show`} rules for listener ${e.Protocol}:${e.Port}`,onClick:()=>S(n?void 0:t),size:`sm`,variant:`ghost`,children:n?`Hide rules`:`Rules`}),(0,$.jsx)(h,{"aria-label":`Edit listener ${e.Protocol}:${e.Port}`,onClick:()=>_(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(we,{className:`size-4`})}),(0,$.jsx)(h,{"aria-label":`Delete listener ${e.Protocol}:${e.Port}`,onClick:()=>b(e),size:`sm`,variant:`ghost`,children:(0,$.jsx)(m,{className:`size-4`})})]})})]}),n&&t&&(0,$.jsx)(`tr`,{className:`border-b bg-muted/30 last:border-0`,children:(0,$.jsx)(`td`,{className:`px-4 py-3`,colSpan:6,children:(0,$.jsx)(Pe,{listenerArn:t,targetGroups:T})})})]},t)})})]})}),(0,$.jsx)(Ye,{certificates:O,isPending:l.isPending,lbType:n,onOpenChange:p,onSubmit:async t=>{try{await l.mutateAsync({loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),p(!1)}catch{}},open:f,protocols:r,sslPolicies:k,targetGroups:T}),(0,$.jsx)(Xe,{certificates:O,isPending:d.isPending,listener:g,onOpenChange:e=>!e&&_(void 0),onSubmit:async t=>{if(g?.ListenerArn)try{await d.mutateAsync({listenerArn:g.ListenerArn,loadBalancerArn:e,protocol:t.protocol,port:t.port,defaultTargetGroupArn:t.defaultTargetGroupArn,certificateArn:t.certificateArn,sslPolicy:t.sslPolicy}),_(void 0)}catch{}},protocols:r,sslPolicies:k,targetGroups:T}),(0,$.jsx)(le,{description:y?`Delete listener ${y.Protocol}:${y.Port}? This cannot be undone.`:``,isPending:u.isPending,onConfirm:async()=>{if(y?.ListenerArn)try{await u.mutateAsync(y.ListenerArn)}finally{b(void 0)}},onOpenChange:e=>!e&&b(void 0),open:y!==void 0,title:`Delete listener`})]})}function Ye(e){let t=(0,Te.c)(42),{open:n,onOpenChange:r,lbType:i,protocols:a,targetGroups:o,certificates:s,sslPolicies:c,isPending:l,onSubmit:u}=e,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=B(pe),t[0]=d):d=t[0];let f;t[1]===i?f=t[2]:(f=Ke(i),t[1]=i,t[2]=f);let p;t[3]===f?p=t[4]:(p={resolver:d,defaultValues:f},t[3]=f,t[4]=p);let m=R(p),h,g;t[5]!==m||t[6]!==i||t[7]!==n?(h=()=>{n||m.reset(Ke(i))},g=[n,m,i],t[5]=m,t[6]=i,t[7]=n,t[8]=h,t[9]=g):(h=t[8],g=t[9]),(0,Q.useEffect)(h,g);let _;t[10]!==m||t[11]!==u?(_=m.handleSubmit(u),t[10]=m,t[11]=u,t[12]=_):_=t[12];let v=_,y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[13]=y):y=t[13];let b;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Add listener`}),(0,$.jsx)(G,{children:`Listeners forward incoming traffic to a default target group.`})]}),t[14]=b):b=t[14];let x;t[15]===v?x=t[16]:(x=e=>{e.preventDefault(),v()},t[15]=v,t[16]=x);let S;t[17]!==s||t[18]!==m||t[19]!==a||t[20]!==c||t[21]!==o?(S=(0,$.jsx)(ke,{certificates:s,form:m,protocols:a,sslPolicies:c,targetGroups:o}),t[17]=s,t[18]=m,t[19]=a,t[20]=c,t[21]=o,t[22]=S):S=t[22];let C;t[23]!==S||t[24]!==x?(C=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:x,children:S}),t[23]=S,t[24]=x,t[25]=C):C=t[25];let w;t[26]===l?w=t[27]:(w=(0,$.jsx)(oe,{disabled:l,children:`Cancel`}),t[26]=l,t[27]=w);let T=l?`Adding…`:`Add listener`,E;t[28]!==v||t[29]!==l||t[30]!==T?(E=(0,$.jsx)(J,{disabled:l,onClick:v,children:T}),t[28]=v,t[29]=l,t[30]=T,t[31]=E):E=t[31];let D;t[32]!==w||t[33]!==E?(D=(0,$.jsxs)(Y,{children:[w,E]}),t[32]=w,t[33]=E,t[34]=D):D=t[34];let O;t[35]!==C||t[36]!==D?(O=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:y,children:[b,C,D]}),t[35]=C,t[36]=D,t[37]=O):O=t[37];let k;return t[38]!==r||t[39]!==n||t[40]!==O?(k=(0,$.jsx)(ce,{onOpenChange:r,open:n,children:O}),t[38]=r,t[39]=n,t[40]=O,t[41]=k):k=t[41],k}function Xe(e){let t=(0,Te.c)(38),{listener:n,onOpenChange:r,protocols:i,targetGroups:a,certificates:o,sslPolicies:s,isPending:c,onSubmit:l}=e,u=n!==void 0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:B(pe),defaultValues:{protocol:`HTTP`,port:80,defaultTargetGroupArn:``}},t[0]=d):d=t[0];let f=R(d),p,m;t[1]!==f||t[2]!==n||t[3]!==i?(p=()=>{if(!n)return;let e=i.find(e=>e===n.Protocol)??i[0]??`HTTP`,t=he(e);f.reset({protocol:e,port:n.Port??80,defaultTargetGroupArn:n.DefaultActions?.[0]?.TargetGroupArn??``,certificateArn:t?n.Certificates?.[0]?.CertificateArn:void 0,sslPolicy:e===`HTTPS`?n.SslPolicy:void 0})},m=[n,f,i],t[1]=f,t[2]=n,t[3]=i,t[4]=p,t[5]=m):(p=t[4],m=t[5]),(0,Q.useEffect)(p,m);let h;t[6]!==f||t[7]!==l?(h=f.handleSubmit(l),t[6]=f,t[7]=l,t[8]=h):h=t[8];let g=h,_;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_={maxWidth:`32rem`,width:`calc(100vw - 2rem)`},t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsxs)(se,{children:[(0,$.jsx)(q,{children:`Edit listener`}),(0,$.jsx)(G,{children:`Update port, protocol, or default target group. Changes apply without dropping the listener.`})]}),t[10]=v):v=t[10];let y;t[11]===g?y=t[12]:(y=e=>{e.preventDefault(),g()},t[11]=g,t[12]=y);let b;t[13]!==o||t[14]!==f||t[15]!==i||t[16]!==s||t[17]!==a?(b=(0,$.jsx)(ke,{certificates:o,form:f,protocols:i,sslPolicies:s,targetGroups:a}),t[13]=o,t[14]=f,t[15]=i,t[16]=s,t[17]=a,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,$.jsx)(`form`,{className:`min-w-0 space-y-4`,onSubmit:y,children:b}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]===c?S=t[23]:(S=(0,$.jsx)(oe,{disabled:c,children:`Cancel`}),t[22]=c,t[23]=S);let C=c?`Saving…`:`Save changes`,w;t[24]!==g||t[25]!==c||t[26]!==C?(w=(0,$.jsx)(J,{disabled:c,onClick:g,children:C}),t[24]=g,t[25]=c,t[26]=C,t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==w?(T=(0,$.jsxs)(Y,{children:[S,w]}),t[28]=S,t[29]=w,t[30]=T):T=t[30];let E;t[31]!==T||t[32]!==x?(E=(0,$.jsxs)(K,{className:`grid-cols-[minmax(0,1fr)]`,style:_,children:[v,x,T]}),t[31]=T,t[32]=x,t[33]=E):E=t[33];let D;return t[34]!==r||t[35]!==u||t[36]!==E?(D=(0,$.jsx)(ce,{onOpenChange:r,open:u,children:E}),t[34]=r,t[35]=u,t[36]=E,t[37]=D):D=t[37],D}function Ze(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function Qe(e){let t=(0,Te.c)(46),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=Ze(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===o?x=t[14]:(x=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update security groups`}),t[13]=o,t[14]=x);let S;t[15]!==v||t[16]!==s?(S=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Security groups updated.`}),t[15]=v,t[16]=s,t[17]=S):S=t[17];let C;t[18]!==n||t[19]!==u?(C=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No security groups in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:u.includes(e.GroupId??``),onChange:()=>p(e.GroupId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId)),t[18]=n,t[19]=u,t[20]=C):C=t[20];let w;t[21]===y?w=t[22]:(w=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one security group is required.`}),t[21]=y,t[22]=w);let T;t[23]!==C||t[24]!==w?(T=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[C,w]}),t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=v?`Unsaved changes`:`No changes`,D;t[26]===E?D=t[27]:(D=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:E}),t[26]=E,t[27]=D);let O=a||!v,k;t[28]!==g||t[29]!==O?(k=(0,$.jsx)(h,{disabled:O,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[28]=g,t[29]=O,t[30]=k):k=t[30];let A=a||!v||y,j=a?`Saving…`:`Save changes`,M;t[31]!==A||t[32]!==j?(M=(0,$.jsx)(h,{disabled:A,size:`sm`,type:`submit`,children:j}),t[31]=A,t[32]=j,t[33]=M):M=t[33];let N;t[34]!==D||t[35]!==k||t[36]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[D,k,M]}),t[34]=D,t[35]=k,t[36]=M,t[37]=N):N=t[37];let P;t[38]!==T||t[39]!==N?(P=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[T,N]}),t[38]=T,t[39]=N,t[40]=P):P=t[40];let F;return t[41]!==P||t[42]!==b||t[43]!==x||t[44]!==S?(F=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,P]}),t[41]=P,t[42]=b,t[43]=x,t[44]=S,t[45]=F):F=t[45],F}function $e(e,t){if(e.length!==t.length)return!1;let n=new Set(t);return e.every(e=>n.has(e))}function et(e){let t=s(e.Tags),n=e.AvailabilityZone?` · ${e.AvailabilityZone}`:``,r=e.CidrBlock?` (${e.CidrBlock})`:``;return`${e.SubnetId}${t?` — ${t}`:``}${r}${n}`}function tt(e){let t=(0,Te.c)(47),{available:n,current:r,onSubmit:i,isPending:a,error:o,isSuccess:s}=e,c;t[0]===r?c=t[1]:(c=[...r],t[0]=r,t[1]=c);let l=c,[u,d]=(0,Q.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},t[2]=f):f=t[2];let p=f,m;t[3]===l?m=t[4]:(m=()=>d(l),t[3]=l,t[4]=m);let g=m,_;t[5]!==l||t[6]!==u?(_=$e(u,l),t[5]=l,t[6]=u,t[7]=_):_=t[7];let v=!_,y=u.length===0,b;t[8]!==v||t[9]!==y||t[10]!==i||t[11]!==u?(b=e=>{e.preventDefault(),!(!v||y)&&i(u)},t[8]=v,t[9]=y,t[10]=i,t[11]=u,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-amber-500 bg-amber-500/10 p-3 text-sm text-amber-700 dark:text-amber-400`,role:`note`,children:`Applying a subnet change re-homes the load balancer by relaunching its underlying system VM. Expect a brief data-plane interruption while it restarts.`}),t[13]=x):x=t[13];let S;t[14]===o?S=t[15]:(S=o&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:o.message||`Failed to update subnets`}),t[14]=o,t[15]=S);let C;t[16]!==v||t[17]!==s?(C=s&&!v&&(0,$.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Subnets updated.`}),t[16]=v,t[17]=s,t[18]=C):C=t[18];let w;t[19]!==n||t[20]!==u?(w=n.length===0?(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnets in this VPC.`}):n.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:u.includes(e.SubnetId??``),onChange:()=>p(e.SubnetId??``),type:`checkbox`}),(0,$.jsx)(`span`,{className:`font-mono`,children:et(e)})]},e.SubnetId)),t[19]=n,t[20]=u,t[21]=w):w=t[21];let T;t[22]===y?T=t[23]:(T=y&&(0,$.jsx)(`p`,{className:`text-xs text-destructive`,children:`At least one subnet is required.`}),t[22]=y,t[23]=T);let E;t[24]!==T||t[25]!==w?(E=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 p-4`,children:[w,T]}),t[24]=T,t[25]=w,t[26]=E):E=t[26];let D=v?`Unsaved changes`:`No changes`,O;t[27]===D?O=t[28]:(O=(0,$.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:D}),t[27]=D,t[28]=O);let k=a||!v,A;t[29]!==g||t[30]!==k?(A=(0,$.jsx)(h,{disabled:k,onClick:g,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[29]=g,t[30]=k,t[31]=A):A=t[31];let j=a||!v||y,M=a?`Saving…`:`Save changes`,N;t[32]!==j||t[33]!==M?(N=(0,$.jsx)(h,{disabled:j,size:`sm`,type:`submit`,children:M}),t[32]=j,t[33]=M,t[34]=N):N=t[34];let P;t[35]!==O||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[O,A,N]}),t[35]=O,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]!==E||t[40]!==P?(F=(0,$.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[E,P]}),t[39]=E,t[40]=P,t[41]=F):F=t[41];let I;return t[42]!==F||t[43]!==b||t[44]!==S||t[45]!==C?(I=(0,$.jsxs)(`form`,{onSubmit:b,children:[x,S,C,F]}),t[42]=F,t[43]=b,t[44]=S,t[45]=C,t[46]=I):I=t[46],I}function nt({arn:e}){let t=a(),{data:n}=i(j(e)),{data:r}=i(L(e)),{data:l}=i(P([e])),{data:u}=i(F),{data:d}=i(ne),f=C(),p=y(),g=_(),v=S(),b=x(),[w,T]=(0,Q.useState)(!1),E=n.LoadBalancers?.[0];if(!E?.LoadBalancerArn)return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`Load balancer not found.`})]});let D=async()=>{try{await f.mutateAsync(e),t({to:`/ec2/describe-load-balancers`})}finally{T(!1)}},O=u.Subnets??[],k=e=>{let t=O.find(t=>t.SubnetId===e);if(!t)return e;let n=s(t.Tags),r=t.CidrBlock?` (${t.CidrBlock})`:``;return n?`${e} — ${n}${r}`:`${e}${r}`},A=r.Attributes??[],M=l?.TagDescriptions?.find(t=>t.ResourceArn===e)?.Tags??[],N=(E.SecurityGroups??[]).filter(e=>e!==void 0),I=(d.SecurityGroups??[]).filter(e=>e.VpcId===E.VpcId),ee=O.filter(e=>e.VpcId===E.VpcId),te=(E.AvailabilityZones??[]).map(e=>e.SubnetId).filter(e=>e!==void 0),re=E.Type===`network`;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(c,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),f.error&&(0,$.jsx)(V,{error:f.error,msg:`Failed to delete load balancer`}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsx)(H,{actions:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(h,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,$.jsx)(m,{className:`size-4`}),`Delete`]}),(0,$.jsx)(ue,{state:E.State?.Code})]}),subtitle:`Load Balancer Details`,title:E.LoadBalancerName??E.LoadBalancerArn}),(0,$.jsxs)(Ce,{defaultValue:`overview`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(be,{value:`overview`,children:`Overview`}),(0,$.jsx)(be,{value:`listeners`,children:`Listeners`}),(0,$.jsx)(be,{value:`subnets`,children:`Subnets`}),!re&&(0,$.jsx)(be,{value:`security-groups`,children:`Security groups`}),(0,$.jsx)(be,{value:`attributes`,children:`Attributes`}),(0,$.jsx)(be,{value:`tags`,children:`Tags`})]}),(0,$.jsxs)(Se,{value:`overview`,children:[(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Load balancer`}),(0,$.jsxs)(X.Content,{children:[(0,$.jsx)(Z,{label:`ARN`,value:E.LoadBalancerArn}),(0,$.jsx)(Z,{label:`DNS name`,value:E.DNSName}),(0,$.jsx)(Z,{label:`State`,value:E.State?.Reason?`${E.State.Code} — ${E.State.Reason}`:E.State?.Code}),(0,$.jsx)(Z,{label:`Type`,value:E.Type}),(0,$.jsx)(Z,{label:`Scheme`,value:E.Scheme}),(0,$.jsx)(Z,{label:`IP address type`,value:E.IpAddressType}),(0,$.jsx)(Z,{label:`VPC`,value:E.VpcId}),(0,$.jsx)(Z,{label:`Created at`,value:o(E.CreatedTime)})]})]}),(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Availability zones`}),(0,$.jsx)(X.Content,{children:(E.AvailabilityZones??[]).map(e=>(0,$.jsx)(Z,{label:e.ZoneName??`—`,value:e.SubnetId?k(e.SubnetId):void 0},`${e.ZoneName}-${e.SubnetId}`))})]}),(E.SecurityGroups??[]).length>0&&(0,$.jsxs)(X,{children:[(0,$.jsx)(X.Header,{children:`Security groups`}),(0,$.jsx)(X.Content,{children:(E.SecurityGroups??[]).map(e=>(0,$.jsx)(Z,{label:`Security group`,value:e},e))})]})]}),(0,$.jsx)(Se,{value:`listeners`,children:(0,$.jsx)(Je,{lbType:re?`network`:`application`,loadBalancerArn:e,vpcId:E.VpcId})}),(0,$.jsx)(Se,{value:`subnets`,children:(0,$.jsx)(tt,{available:ee,current:te,error:b.error,isPending:b.isPending,isSuccess:b.isSuccess,onSubmit:t=>b.mutate({loadBalancerArn:e,subnetIds:t})})}),!re&&(0,$.jsx)(Se,{value:`security-groups`,children:(0,$.jsx)(Qe,{available:I,current:N,error:v.error,isPending:v.isPending,isSuccess:v.isSuccess,onSubmit:t=>v.mutate({loadBalancerArn:e,securityGroupIds:t})})}),(0,$.jsx)(Se,{value:`attributes`,children:(0,$.jsx)(_e,{attributes:A,error:p.error,isPending:p.isPending,isSuccess:p.isSuccess,onSubmit:t=>{p.mutate({loadBalancerArn:e,attributes:t})},specs:ve})}),(0,$.jsx)(Se,{value:`tags`,children:(0,$.jsx)(ye,{error:g.error,isPending:g.isPending,isSuccess:g.isSuccess,onSubmit:t=>g.mutate({resourceArn:e,tags:t,initialKeys:M.map(e=>e.Key??``).filter(e=>e.length>0)}),tags:M})})]})]}),(0,$.jsx)(le,{description:`Are you sure you want to delete load balancer "${E.LoadBalancerName??E.LoadBalancerArn}"? This action cannot be undone.`,isPending:f.isPending,onConfirm:D,onOpenChange:T,open:w,title:`Delete load balancer`})]})}function rt(){let e=(0,Te.c)(2),{id:t}=I.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,$.jsx)(nt,{arn:n}),e[0]=n,e[1]=r),r}export{rt as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index 078b4c36a..9cfa71332 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{E as l}from"./ec2.js";import{Qr as u,l as d,zt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=d.useParams(),t=u(),{data:n}=r(f(e)),x=l(),[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)(o,{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=a(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{E as u}from"./ec2.js";import{l as d,zt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=d.useParams(),t=i(),{data:n}=r(f(e)),x=u(),[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)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{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)(a,{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)(a,{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)(a,{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/_id8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js index 88487eb38..838f725af 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{D as c}from"./ec2.js";import{Pt as l,Qr as u,Vt as d,u as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),{data:x}=r(l),S=c(),[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)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{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)(a,{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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{D as l}from"./ec2.js";import{Pt as u,Vt as d,u as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=i(),{data:n}=r(d(e)),{data:x}=r(u),S=l(),[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)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{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)(a,{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/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index c55a7e6e3..887347cf4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{O as m,g as h,i as ee,k as te,z as ne}from"./ec2.js";import{Bt as re,It as g,Qr as ie,Wt as _,Zt as v,d as y,nr as ae}from"./index.js";import{a as oe,i as b,n as x,t as S}from"./zod.js";import{t as C}from"./error-banner.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{l as O,r as k}from"./ec22.js";import{t as A}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=y.useParams(),t=ie(),{data:n}=r(_(e)),{data:I}=r(g),{data:L}=r(re),{data:R}=r(v),z=te(),B=h(),V=m(),H=ee(),U=ne(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=b({resolver:S(O),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=oe({control:q.control,name:`targetType`}),J=b({resolver:S(k),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=a(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(C,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(w,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(p,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(f,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(p,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(C,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(ae,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(E,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(x,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(u,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(s,{})}),(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(c,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(x,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(s,{placeholder:`Select target`})}),(0,P.jsx)(l,{children:ce===`igw`?le.map(e=>(0,P.jsx)(c,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(c,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(E,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(p,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(p,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(C,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(x,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(s,{placeholder:`Select a subnet`})}),(0,P.jsx)(l,{children:fe.map(e=>{let t=a(e.Tags);return(0,P.jsx)(c,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(E,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(p,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(A,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{O as h,g,i as ee,k as te,z as _}from"./ec2.js";import{Bt as v,It as y,Wt as b,Zt as x,d as S,er as C}from"./index.js";import{a as ne,i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as re}from"./page-heading.js";import{a as O,r as k,t as A}from"./field.js";import{l as ie,r as ae}from"./ec22.js";import{t as oe}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=S.useParams(),t=i(),{data:n}=r(b(e)),{data:I}=r(y),{data:L}=r(v),{data:R}=r(x),z=te(),B=g(),V=h(),H=ee(),U=_(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=w({resolver:E(ie),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=ne({control:q.control,name:`targetType`}),J=w({resolver:E(ae),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=o(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(s,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(D,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(re,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(m,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(p,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(a,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(m,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(D,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(A,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(C,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(k,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(T,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(d,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(c,{})}),(0,P.jsxs)(u,{children:[(0,P.jsx)(l,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(l,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(A,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(T,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(c,{placeholder:`Select target`})}),(0,P.jsx)(u,{children:ce===`igw`?le.map(e=>(0,P.jsx)(l,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(l,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(k,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(m,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(a,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(m,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(p,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(D,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(A,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(T,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(f,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(d,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(c,{placeholder:`Select a subnet`})}),(0,P.jsx)(u,{children:fe.map(e=>{let t=o(e.Tags);return(0,P.jsx)(l,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(k,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(m,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(oe,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js index 2ff52e874..a9ced0b34 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{g as l,t as u,u as d}from"./iam.js";import{Qr as f,S as p,mt as m,xt as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=p.useParams(),t=f(),{data:n}=r(m(e)),{data:C}=r(h),w=d(),T=u(),E=l(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(c,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:a(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(c,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(i,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(c,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{g as u,t as d,u as f}from"./iam.js";import{S as p,mt as m,xt as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=p.useParams(),t=i(),{data:n}=r(m(e)),{data:C}=r(h),w=f(),T=d(),E=u(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(l,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:o(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(l,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(a,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(l,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js index bc8946e17..0074cfb99 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_policyArn.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Bt as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{d as c}from"./iam.js";import{C as l,Qr as u,vt as d,yt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=l.useParams(),t=decodeURIComponent(e),n=u(),{data:x}=r(d(t)),S=x.Policy,C=c(),[w,T]=(0,y.useState)(!1),{data:E}=r(f(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(p,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(s,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:i(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy 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.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{d as l}from"./iam.js";import{C as u,vt as d,yt as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./policy-document-viewer.js";var y=t(n()),b=e();function x(){let{policyArn:e}=u.useParams(),t=decodeURIComponent(e),n=i(),{data:x}=r(d(t)),S=x.Policy,C=l(),[w,T]=(0,y.useState)(!1),{data:E}=r(f(t,S?.DefaultVersionId??`v1`)),D=E?.PolicyVersion?.Document?decodeURIComponent(E.PolicyVersion.Document):null;return S?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),C.error&&(0,b.jsx)(p,{error:C.error,msg:`Failed to delete policy`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(c,{onClick:()=>T(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Policy Details`,title:S.PolicyName??``}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Policy Name`,value:S.PolicyName}),(0,b.jsx)(_,{label:`Policy ID`,value:S.PolicyId}),(0,b.jsx)(_,{label:`ARN`,value:S.Arn}),(0,b.jsx)(_,{label:`Path`,value:S.Path}),(0,b.jsx)(_,{label:`Description`,value:S.Description??`-`}),(0,b.jsx)(_,{label:`Created`,value:a(S.CreateDate)})]})]}),D&&(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Policy Document`}),(0,b.jsx)(`div`,{className:`p-4`,children:(0,b.jsx)(v,{document:D})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the policy "${S.PolicyName}"? This action cannot be undone.`,isPending:C.isPending,onConfirm:async()=>{try{await C.mutateAsync(t),n({to:`/iam/list-policies`})}finally{T(!1)}},onOpenChange:T,open:w,title:`Delete Policy`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/iam/list-policies`,children:`Back to policies`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Policy not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js index e1222cebf..4567f6782 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{f as l,m as u,n as d}from"./iam.js";import{Qr as f,_t as p,bt as m,ft as h,ht as g,w as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=f(),{data:n}=r(m(e)),{data:E}=r(h(e)),{data:D}=r(g(e)),{data:O}=r(p),k=l(),A=d(),j=u(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(v,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(v,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(v,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(c,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:a(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(c,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(c,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(i,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./back-link.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{f as u,m as d,n as f}from"./iam.js";import{_t as p,bt as m,ft as h,ht as g,w as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=i(),{data:n}=r(m(e)),{data:E}=r(h(e)),{data:D}=r(g(e)),{data:O}=r(p),k=u(),A=f(),j=d(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(v,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(v,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(v,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(l,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:o(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(l,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(l,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(a,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(s,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js index 1e3f3a9c9..c1be1e0af 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_userName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_userName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./check.js";import{t as c}from"./trash-2.js";import{t as l}from"./triangle-alert.js";import{t as u}from"./button.js";import{_ as d,h as f,i as p,l as m,p as h,r as g}from"./iam.js";import{Qr as _,St as v,T as y,_t as b,dt as x,pt as S}from"./index.js";import{t as C}from"./use-copy-to-clipboard.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=t(n()),z=r(),B=e();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=C(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(l,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=c):c=t[0];let d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=d):d=t[1];let f;t[2]===r?f=t[3]:(f=(0,B.jsxs)(`div`,{children:[d,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(s,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(u,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[c,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:e}=y.useParams(),t=_(),{data:n}=i(v(e)),{data:r}=i(x(e)),{data:s}=i(S(e)),{data:l}=i(b),C=h(),E=p(),D=m(),O=d(),k=g(),A=f(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata??[],X=s.AttachedPolicies??[],Z=l.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await C.mutateAsync(e),t({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let t=await E.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await O.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await D.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await k.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await A.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(o,{to:`/iam/list-users`,children:`Back to users`}),C.error&&(0,B.jsx)(w,{error:C.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(w,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(w,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(w,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(w,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(u,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(c,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:a(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(u,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,a(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(u,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(u,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(u,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(u,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:C.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(o,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{Bt as o}from"./auth.js";import{t as s}from"./triangle-alert.js";import{t as c}from"./back-link.js";import{t as l}from"./check.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{_ as f,h as p,i as m,l as h,p as g,r as _}from"./iam.js";import{St as v,T as y,_t as b,dt as x,pt as S}from"./index.js";import{t as C}from"./use-copy-to-clipboard.js";import{t as w}from"./error-banner.js";import{t as T}from"./page-heading.js";import{a as E,c as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./alert-dialog.js";import{t as P}from"./delete-confirmation-dialog.js";import{n as F,t as I}from"./detail-row.js";import{t as L}from"./state-badge.js";var R=t(n()),z=r(),B=e();function V(e){let t=(0,z.c)(27),{onClose:n,accessKeyId:r,secretAccessKey:i}=e,{copied:a,copy:o}=C(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsxs)(M,{children:[(0,B.jsx)(D,{children:(0,B.jsx)(s,{className:`text-destructive`})}),(0,B.jsx)(k,{children:`Save Your Access Key`}),(0,B.jsx)(E,{children:`This is your only chance to view the secret access key. Please copy it now. You won't be able to retrieve it again.`})]}),t[0]=c):c=t[0];let u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Access Key ID: `}),t[1]=u):u=t[1];let f;t[2]===r?f=t[3]:(f=(0,B.jsxs)(`div`,{children:[u,r]}),t[2]=r,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Secret Access Key: `}),t[4]=p):p=t[4];let m;t[5]===i?m=t[6]:(m=(0,B.jsxs)(`div`,{children:[p,i]}),t[5]=i,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,B.jsxs)(`div`,{className:`space-y-2 rounded-md border p-4 font-mono text-sm`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==r||t[11]!==o||t[12]!==i?(g=async()=>await o(`Access Key ID: ${r}\nSecret Access Key: ${i}`),t[10]=r,t[11]=o,t[12]=i,t[13]=g):g=t[13];let _;t[14]===a?_=t[15]:(_=a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[14]=a,t[15]=_);let v;t[16]!==g||t[17]!==_?(v=(0,B.jsx)(d,{className:`w-full`,onClick:g,type:`button`,variant:`outline`,children:_}),t[16]=g,t[17]=_,t[18]=v):v=t[18];let y;t[19]!==h||t[20]!==v?(y=(0,B.jsxs)(`div`,{className:`space-y-3`,children:[h,v]}),t[19]=h,t[20]=v,t[21]=y):y=t[21];let b;t[22]===n?b=t[23]:(b=(0,B.jsx)(A,{children:(0,B.jsx)(j,{onClick:n,children:`Close and Continue`})}),t[22]=n,t[23]=b);let x;return t[24]!==y||t[25]!==b?(x=(0,B.jsx)(N,{open:!0,children:(0,B.jsxs)(O,{className:`max-w-2xl`,children:[c,y,b]})}),t[24]=y,t[25]=b,t[26]=x):x=t[26],x}function H(){let{userName:e}=y.useParams(),t=a(),{data:n}=i(v(e)),{data:r}=i(x(e)),{data:s}=i(S(e)),{data:l}=i(b),C=g(),E=m(),D=h(),O=f(),k=_(),A=p(),[j,M]=(0,R.useState)(!1),[N,z]=(0,R.useState)(null),[H,U]=(0,R.useState)(!1),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(null),J=n.User,Y=r.AccessKeyMetadata??[],X=s.AttachedPolicies??[],Z=l.Policies??[],Q=new Set(X.map(e=>e.PolicyArn)),$=Z.filter(e=>e.Arn&&!Q.has(e.Arn)),ee=async()=>{try{await C.mutateAsync(e),t({to:`/iam/list-users`})}finally{M(!1)}},te=async()=>{let t=await E.mutateAsync(e);t.AccessKey&&z({accessKeyId:t.AccessKey.AccessKeyId??``,secretAccessKey:t.AccessKey.SecretAccessKey??``})},ne=async t=>{if(t.AccessKeyId){G(t.AccessKeyId);try{await O.mutateAsync({userName:e,accessKeyId:t.AccessKeyId,status:t.Status===`Active`?`Inactive`:`Active`})}finally{G(null)}}},re=async t=>{G(t);try{await D.mutateAsync({userName:e,accessKeyId:t})}finally{G(null)}},ie=async t=>{await k.mutateAsync({userName:e,policyArn:t}),U(!1)},ae=async t=>{q(t);try{await A.mutateAsync({userName:e,policyArn:t})}finally{q(null)}};return J?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{to:`/iam/list-users`,children:`Back to users`}),C.error&&(0,B.jsx)(w,{error:C.error,msg:`Failed to delete user`}),E.error&&(0,B.jsx)(w,{error:E.error,msg:`Failed to create access key`}),D.error&&(0,B.jsx)(w,{error:D.error,msg:`Failed to delete access key`}),k.error&&(0,B.jsx)(w,{error:k.error,msg:`Failed to attach policy`}),A.error&&(0,B.jsx)(w,{error:A.error,msg:`Failed to detach policy`}),(0,B.jsxs)(`div`,{className:`space-y-6`,children:[(0,B.jsx)(T,{actions:(0,B.jsxs)(d,{onClick:()=>M(!0),size:`sm`,variant:`destructive`,children:[(0,B.jsx)(u,{className:`size-4`}),`Delete`]}),subtitle:`User Details`,title:J.UserName??``}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:`User Information`}),(0,B.jsxs)(F.Content,{children:[(0,B.jsx)(I,{label:`User Name`,value:J.UserName}),(0,B.jsx)(I,{label:`User ID`,value:J.UserId}),(0,B.jsx)(I,{label:`ARN`,value:J.Arn}),(0,B.jsx)(I,{label:`Path`,value:J.Path}),(0,B.jsx)(I,{label:`Created`,value:o(J.CreateDate)})]})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Access Keys`}),(0,B.jsx)(d,{disabled:E.isPending,onClick:te,size:`sm`,children:E.isPending?`Creating...`:`Create Access Key`})]})}),(0,B.jsx)(F.Content,{children:Y.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:Y.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`font-mono text-sm`,children:e.AccessKeyId}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Created `,o(e.CreateDate)]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{state:e.Status}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:async()=>await ne(e),size:`sm`,variant:`outline`,children:e.Status===`Active`?`Deactivate`:`Activate`}),(0,B.jsx)(d,{disabled:W===e.AccessKeyId,onClick:()=>{e.AccessKeyId&&re(e.AccessKeyId)},size:`sm`,variant:`destructive`,children:`Delete`})]})]},e.AccessKeyId))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No access keys.`})})]}),(0,B.jsxs)(F,{children:[(0,B.jsx)(F.Header,{children:(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,B.jsx)(`span`,{children:`Attached Policies`}),(0,B.jsx)(d,{onClick:()=>U(!H),size:`sm`,children:`Attach Policy`})]})}),(0,B.jsxs)(F.Content,{children:[H&&$.length>0&&(0,B.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,B.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,B.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:k.isPending,onClick:()=>{e.Arn&&ie(e.Arn)},type:`button`,children:[(0,B.jsx)(`span`,{children:e.PolicyName}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),H&&$.length===0&&(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),X.length>0?(0,B.jsx)(`div`,{className:`col-span-2 space-y-3`,children:X.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,B.jsxs)(`div`,{className:`space-y-1`,children:[(0,B.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,B.jsx)(d,{disabled:K===e.PolicyArn,onClick:()=>{e.PolicyArn&&ae(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,B.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]})]}),(0,B.jsx)(P,{description:`Are you sure you want to delete the user "${e}"? This action cannot be undone. You must detach all policies and delete all access keys first.`,isPending:C.isPending,onConfirm:ee,onOpenChange:M,open:j,title:`Delete User`}),N&&(0,B.jsx)(V,{accessKeyId:N.accessKeyId,onClose:()=>z(null),secretAccessKey:N.secretAccessKey})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(c,{to:`/iam/list-users`,children:`Back to users`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`User not found.`})]})}export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js index ee8ac6806..704e5c8a0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/alert-dialog.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";import{t as r}from"./button.js";import{Xn as i,Yn as a,Zn as o,dn as s,gn as c,pn as l,un as u}from"./index.js";function d(e){return s(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.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,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.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,p.jsx)(l,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=a);let s;return t[5]!==i||t[6]!==a?(s=(0,p.jsx)(o,{className:a,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s}function _(e){let t=(0,f.c)(11),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({className:r,size:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o=a===void 0?`default`:a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,p.jsx)(g,{}),t[4]=s):s=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==i||t[8]!==o||t[9]!==l?(u=(0,p.jsxs)(h,{children:[s,(0,p.jsx)(c,{className:l,"data-size":o,"data-slot":`alert-dialog-content`,...i})]}),t[7]=i,t[8]=o,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(u,{className:a,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),a,o,s,c;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4]):({className:a,variant:s,size:c,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c);let l=s===void 0?`outline`:s,u=c===void 0?`default`:c,d;t[5]===a?d=t[6]:(d=n(a),t[5]=a,t[6]=d);let m;t[7]!==u||t[8]!==l?(m=(0,p.jsx)(r,{size:u,variant:l}),t[7]=u,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==o||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(i,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...o}),t[10]=o,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Lt as n}from"./auth.js";import{t as r}from"./button.js";import{Jn as i,Yn as a,dn as o,gn as s,pn as c,qn as l,un as u}from"./index.js";function d(e){return o(e,`alert-dialog`)}var f=t(),p=e();function m(e){let t=(0,f.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,p.jsx)(d,{"data-slot":`alert-dialog`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,f.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,p.jsx)(c,{"data-slot":`alert-dialog-portal`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-overlay`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function _(e){let t=(0,f.c)(11),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({className:r,size:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o=a===void 0?`default`:a,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(g,{}),t[4]=c):c=t[4];let l;t[5]===r?l=t[6]:(l=n(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content data-closed:animate-out data-open:animate-in fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm`,r),t[5]=r,t[6]=l);let u;return t[7]!==i||t[8]!==o||t[9]!==l?(u=(0,p.jsxs)(h,{children:[c,(0,p.jsx)(s,{className:l,"data-size":o,"data-slot":`alert-dialog-content`,...i})]}),t[7]=i,t[8]=o,t[9]=l,t[10]=u):u=t[10],u}function v(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-footer`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-media`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(u,{className:a,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(l,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(8),i,a;t[0]===e?(i=t[1],a=t[2]):({className:i,...a}=e,t[0]=e,t[1]=i,t[2]=a);let o;t[3]===i?o=t[4]:(o=n(i),t[3]=i,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,p.jsx)(r,{className:o,"data-slot":`alert-dialog-action`,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,f.c)(14),a,o,s,c;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4]):({className:a,variant:s,size:c,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c);let l=s===void 0?`outline`:s,u=c===void 0?`default`:c,d;t[5]===a?d=t[6]:(d=n(a),t[5]=a,t[6]=d);let m;t[7]!==u||t[8]!==l?(m=(0,p.jsx)(r,{size:u,variant:l}),t[7]=u,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==o||t[11]!==d||t[12]!==m?(h=(0,p.jsx)(i,{className:d,"data-slot":`alert-dialog-cancel`,render:m,...o}),t[10]=o,t[11]=d,t[12]=m,t[13]=h):h=t[13],h}export{S as a,b as c,_ as i,x as l,C as n,y as o,w as r,v as s,m as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js index 705173d15..dae566940 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/allocate-address.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./ec2.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=a(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(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)(n,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{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)(u,{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)(o,{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)(r,{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)(d,{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.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{t as a}from"./ec2.js";import{er as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{n as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=a(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(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)(i,{to:`/ec2/describe-addresses`,children:`Back to Elastic IPs`}),j=(0,_.jsx)(f,{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)(u,{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)(o,{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)(r,{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)(d,{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/auth.js b/spinifex/services/spinifexui/frontend/dist/assets/auth.js index edd449fdc..2839fcb6c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/auth.js @@ -1,9 +1,9 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.browser.js","assets/compiler-runtime.js","assets/tslib.es6.js"])))=>i.map(i=>d[i]); -import"./compiler-runtime.js";import{E as e,F as t,I as n,M as r,N as i,O as a,P as o,S as s,T as c,_ as l,b as u,d,g as f,k as p,l as m,n as h,o as g,s as ee,t as te,u as ne,w as re,x as ie,y as ae}from"./tslib.es6.js";function oe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ce=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),le=`-`,ue=[],de=`arbitrary..`,fe=e=>{let t=me(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return pe(e);let n=e.split(le);return y(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?v(i,t):t:i||ue}return n[e]||ue}}},y=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=y(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(le):e.slice(t).join(le),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?de+r:void 0})(),me=e=>{let{theme:t,classGroups:n}=e;return he(n,t)},he=(e,t)=>{let n=ce();for(let r in e){let i=e[r];b(i,n,r,t)}return n},b=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){_e(e,t,n);return}if(typeof e==`function`){ve(e,t,n,r);return}ye(e,t,n,r)},_e=(e,t,n)=>{let r=e===``?t:x(t,e);r.classGroupId=n},ve=(e,t,n,r)=>{if(S(e)){b(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(se(n,e))},ye=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(le),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,be=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},xe=`!`,C=`:`,Se=[],Ce=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),we=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return Ce(t,l,c,u)};if(t){let e=t+C,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ce(Se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Te=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ee=e=>({cache:be(e.cacheSize),parseClassName:we(e),sortModifiers:Te(e),postfixLookupClassGroupIds:De(e),...fe(e)}),De=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Oe),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let ee=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?ee+xe:ee,ne=te+g;if(s.indexOf(ne)>-1)continue;s.push(ne);let re=i(g,h);for(let e=0;e0?` `+l:l)}return l},Ae=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Ee(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ke(e,n);return i(e,a),a};return a=o,(...e)=>a(Ae(...e))},Ne=[],w=e=>{let t=t=>t[e]||Ne;return t.isThemeGetter=!0,t},Pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ie=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Le=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Re=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Ie.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),E=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith(`%`)&&T(e.slice(0,-1)),D=e=>Le.test(e),We=()=>!0,Ge=e=>Re.test(e)&&!ze.test(e),Ke=()=>!1,qe=e=>Be.test(e),Je=e=>Ve.test(e),Ye=e=>!O(e)&&!k(e),Xe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ze=e=>A(e,ht,Ke),O=e=>Pe.test(e),Qe=e=>A(e,gt,Ge),$e=e=>A(e,_t,T),et=e=>A(e,yt,We),tt=e=>A(e,vt,Ke),nt=e=>A(e,pt,Ke),rt=e=>A(e,mt,Je),it=e=>A(e,bt,qe),k=e=>Fe.test(e),at=e=>ft(e,gt),ot=e=>ft(e,vt),st=e=>ft(e,pt),ct=e=>ft(e,ht),lt=e=>ft(e,mt),ut=e=>ft(e,bt,!0),dt=e=>ft(e,yt,!0),A=(e,t,n)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ft=(e,t,n=!1)=>{let r=Fe.exec(e);return r?r[1]?t(r[1]):n:!1},pt=e=>e===`position`||e===`percentage`,mt=e=>e===`image`||e===`url`,ht=e=>e===`length`||e===`size`||e===`bg-size`,gt=e=>e===`length`,_t=e=>e===`number`,vt=e=>e===`family-name`,yt=e=>e===`number`||e===`weight`,bt=e=>e===`shadow`,xt=Me(()=>{let e=w(`color`),t=w(`font`),n=w(`text`),r=w(`font-weight`),i=w(`tracking`),a=w(`leading`),o=w(`breakpoint`),s=w(`container`),c=w(`spacing`),l=w(`radius`),u=w(`shadow`),d=w(`inset-shadow`),f=w(`text-shadow`),p=w(`drop-shadow`),m=w(`blur`),h=w(`perspective`),g=w(`aspect`),ee=w(`ease`),te=w(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],re=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ie=()=>[...re(),k,O],ae=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],oe=()=>[`auto`,`contain`,`none`],_=()=>[k,O,c],v=()=>[He,`full`,`auto`,..._()],se=()=>[E,`none`,`subgrid`,k,O],ce=()=>[`auto`,{span:[`full`,E,k,O]},E,k,O],le=()=>[E,`auto`,k,O],ue=()=>[`auto`,`min`,`max`,`fr`,k,O],de=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],fe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],y=()=>[`auto`,..._()],pe=()=>[He,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,..._()],me=()=>[He,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,..._()],he=()=>[He,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,..._()],b=()=>[e,k,O],ge=()=>[...re(),st,nt,{position:[k,O]}],_e=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ve=()=>[`auto`,`cover`,`contain`,ct,Ze,{size:[k,O]}],ye=()=>[Ue,at,Qe],x=()=>[``,`none`,`full`,l,k,O],S=()=>[``,T,at,Qe],be=()=>[`solid`,`dashed`,`dotted`,`double`],xe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],C=()=>[T,Ue,st,nt],Se=()=>[``,`none`,m,k,O],Ce=()=>[`none`,T,k,O],we=()=>[`none`,T,k,O],Te=()=>[T,k,O],Ee=()=>[He,`full`,..._()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[D],breakpoint:[D],color:[We],container:[D],"drop-shadow":[D],ease:[`in`,`out`,`in-out`],font:[Ye],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[D],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[D],shadow:[D],spacing:[`px`,T],text:[D],"text-shadow":[D],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,He,O,k,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,k,O]}],"container-named":[Xe],columns:[{columns:[T,O,k,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[E,`auto`,k,O]}],basis:[{basis:[He,`full`,`auto`,s,..._()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[T,He,`auto`,`initial`,`none`,O]}],grow:[{grow:[``,T,k,O]}],shrink:[{shrink:[``,T,k,O]}],order:[{order:[E,`first`,`last`,`none`,k,O]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...de(),`normal`]}],"justify-items":[{"justify-items":[...fe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...fe()]}],"align-content":[{content:[`normal`,...de()]}],"align-items":[{items:[...fe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...fe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...fe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...fe()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:y()}],mx:[{mx:y()}],my:[{my:y()}],ms:[{ms:y()}],me:[{me:y()}],mbs:[{mbs:y()}],mbe:[{mbe:y()}],mt:[{mt:y()}],mr:[{mr:y()}],mb:[{mb:y()}],ml:[{ml:y()}],"space-x":[{"space-x":_()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":_()}],"space-y-reverse":[`space-y-reverse`],size:[{size:pe()}],"inline-size":[{inline:[`auto`,...me()]}],"min-inline-size":[{"min-inline":[`auto`,...me()]}],"max-inline-size":[{"max-inline":[`none`,...me()]}],"block-size":[{block:[`auto`,...he()]}],"min-block-size":[{"min-block":[`auto`,...he()]}],"max-block-size":[{"max-block":[`none`,...he()]}],w:[{w:[s,`screen`,...pe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...pe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...pe()]}],h:[{h:[`screen`,`lh`,...pe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...pe()]}],"max-h":[{"max-h":[`screen`,`lh`,...pe()]}],"font-size":[{text:[`base`,n,at,Qe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,dt,et]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ue,O]}],"font-family":[{font:[ot,tt,t]}],"font-features":[{"font-features":[O]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,k,O]}],"line-clamp":[{"line-clamp":[T,`none`,k,$e]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":[`none`,k,O]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,k,O]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...be(),`wavy`]}],"text-decoration-thickness":[{decoration:[T,`from-font`,`auto`,k,Qe]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[T,`auto`,k,O]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:_()}],"tab-size":[{tab:[E,k,O]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,k,O]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,k,O]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},E,k,O],radial:[``,k,O],conic:[E,k,O]},lt,rt]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-bs":[{"border-bs":S()}],"border-w-be":[{"border-be":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":S()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...be(),`hidden`,`none`]}],"divide-style":[{divide:[...be(),`hidden`,`none`]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...be(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[T,k,O]}],"outline-w":[{outline:[``,T,at,Qe]}],"outline-color":[{outline:b()}],shadow:[{shadow:[``,`none`,u,ut,it]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":[`none`,d,ut,it]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:S()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[T,Qe]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":[`none`,f,ut,it]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[T,k,O]}],"mix-blend":[{"mix-blend":[...xe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[k,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,k,O]}],filter:[{filter:[``,`none`,k,O]}],blur:[{blur:Se()}],brightness:[{brightness:[T,k,O]}],contrast:[{contrast:[T,k,O]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ut,it]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:[``,T,k,O]}],"hue-rotate":[{"hue-rotate":[T,k,O]}],invert:[{invert:[``,T,k,O]}],saturate:[{saturate:[T,k,O]}],sepia:[{sepia:[``,T,k,O]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,k,O]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[T,k,O]}],"backdrop-contrast":[{"backdrop-contrast":[T,k,O]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,T,k,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,k,O]}],"backdrop-invert":[{"backdrop-invert":[``,T,k,O]}],"backdrop-opacity":[{"backdrop-opacity":[T,k,O]}],"backdrop-saturate":[{"backdrop-saturate":[T,k,O]}],"backdrop-sepia":[{"backdrop-sepia":[``,T,k,O]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,k,O]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[T,`initial`,k,O]}],ease:[{ease:[`linear`,`initial`,ee,k,O]}],delay:[{delay:[T,k,O]}],animate:[{animate:[`none`,te,k,O]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,k,O]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":[`scale-3d`],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[k,O,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":[`translate-none`],zoom:[{zoom:[E,k,O]}],accent:[{accent:b()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,k,O]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,k,O]}],fill:[{fill:[`none`,...b()]}],"stroke-w":[{stroke:[T,at,Qe,$e]}],stroke:[{stroke:[`none`,...b()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function St(...e){return xt(_(e))}var Ct=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function wt(e){return e?Ct.format(new Date(e)):`Unknown`}function Tt(e){return`${Math.round(e/1024)} GiB`}var Et=[`B`,`KB`,`MB`,`GB`,`TB`];function Dt(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${Et[t]}`}function Ot(e){return e?.find(e=>e.Key===`Name`)?.Value}var kt=/\/$/;function At(e){return e.replace(kt,``)}function jt(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function Mt(e,t){return e.startsWith(t)?e:`${t}${e}`}function Nt(e,t){return e.startsWith(t)?e.slice(t.length):e}function Pt(e,t,n){return e.$source||={},e.$source[t]=n,e}var Ft=e=>e?.body instanceof ReadableStream,It=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},j=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,Lt=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Rt[t.step]-Rt[e.step]||zt[t.priority||`normal`]-zt[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=It(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of It(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of It(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of It(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${j(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=It(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${j(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${j(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${j(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=It(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${j(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${j(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${j(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(Lt()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=It(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(Lt());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return j(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Rt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},zt={high:3,normal:2,low:1},Bt;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Bt||={});var Vt;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Vt||={});var Ht=`__smithy_context`,Ut=e=>e.__smithy_context||={},M=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Wt(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Wt(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var Gt=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Kt=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),qt=(e,t=!1)=>{if(!t)return Kt.test(e);let n=e.split(`.`);for(let e of n)if(!qt(e))return!1;return!0},N=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function Jt(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Yt=e=>{if(typeof e==`string`)return Yt(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=Jt(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Xt=e=>{if(typeof e==`object`){if(`url`in e){let t=Yt(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Yt(e)},Zt=e=>()=>Promise.reject(e),Qt=class{config;middlewareStack=Lt();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},$t=e=>typeof e==`function`?e():e,en=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),tn=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=Ut(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(en(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(Gt.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:nn(/^x-[\w-]+-request-?id$/,r),extendedRequestId:nn(/^x-[\w-]+-id-2$/,r),cfId:nn(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},nn=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],rn=e=>(t,n)=>async r=>{let{operationSchema:i}=Ut(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Xt(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(en(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},an={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},on={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function sn(e){return{applyToStack:t=>{t.add(rn(e),on),t.add(tn(e),an),e.protocol.setSerdeContext(e)}}}var cn=[];function ln(e){if(typeof e==`object`)return e;if(e|=0,cn[e])return cn[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return cn[e]=t}var un={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},dn=[],fn={},P=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;mn(i);)r.push(i[1]),i=i[0],a=$t(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,ln(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=$t(a),hn(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(dn[t])return dn[t]}else if(typeof t==`string`){if(fn[t])return fn[t]}else if(n&&t[un.ns])return t[un.ns];let r=$t(t);if(r instanceof e)return r;if(mn(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),ln(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[un.ns]=i:typeof r==`string`?fn[r]=i:typeof r==`number`?dn[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return ln(this.memberTraits)}getOwnTraits(){return ln(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return pn([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return pn([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return pn(mn(r)?r:[r,0],e)}if(this.isDocumentSchema())return pn([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[un.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,hn=e=>Array.isArray(e)&&e.length>=5,gn=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},_n=`***SensitiveInformation***`;function vn(e,t){if(t==null)return t;let n=P.of(e);if(n.getMergedTraits().sensitive)return _n;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return _n}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return _n}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=vn(i,e[t]));return r}return t}var yn=class{middlewareStack=Lt();schema;static classBuilder(){return new bn}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Ht]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},bn=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends yn{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?vn.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?vn.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},xn=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},Sn=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Cn=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},wn=Object.values(Vt),Tn=e=>{let t=[];for(let n in Vt){let r=Vt[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();wn.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},En=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();wn.includes(n)&&(t[n]=e.checksumConstructor())}),t},Dn=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),On=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},kn=e=>Object.assign(Tn(e),Dn(e)),An=e=>Object.assign(En(e),On(e)),jn=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=jn(e[n]));return e},Mn=class{trace(){}debug(){}info(){}warn(){}error(){}},Nn=async e=>void 0,Pn=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),zn(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Rn(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Fn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,In=/(\d+\.){3}\d+/,Ln=/\.\./,Rn=e=>Fn.test(e)&&!In.test(e)&&!Ln.test(e),zn=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},Bn=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function Vn(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Xt(t)),r.isCustomEndpoint=!0)}let a=await Hn(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var Hn=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Bn(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Pn(r),r};function Un(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function Wn(e){let t=Vn(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Un(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=Ut(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var Gn={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function Kn(e){let t=Wn(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Gn)}})}function qn(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Xt(await N(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:N(i??!1),useFipsEndpoint:N(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var Jn=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Yn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},F=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Xn=`endpoints`;function Zn(e){return typeof e!=`object`||!e?e:`ref`in e?`$${Zn(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(Zn).join(`, `)})`:JSON.stringify(e,null,2)}var Qn={},$n=(e,t)=>e===t;function er(...e){for(let t of e)if(t!=null)return t}var tr=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new F(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new F(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},nr=(e,t)=>tr(t).reduce((n,r)=>{if(typeof n!=`object`)throw new F(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),rr=e=>e!=null;function ir(e,t,n){return e?t:n}var ar=e=>!e,or=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),sr=e=>or.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),cr={[Bt.HTTP]:80,[Bt.HTTPS]:443},lr=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Bt).includes(c))return null;let l=sr(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${cr[c]}`)||typeof e==`string`&&e.includes(`${r}:${cr[c]}`)?`:${cr[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function ur(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var dr={booleanEquals:$n,coalesce:er,getAttr:nr,isSet:rr,isValidHostLabel:qt,ite:ir,not:ar,parseURL:lr,split:ur,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},fr=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],mr=(e,t,n)=>{if(typeof e==`string`)return fr(e,n);if(e.fn)return gr.callFunction(e,n);if(e.ref)return pr(e,n);throw new F(`'${t}': ${String(e)} is not a string, function or reference.`)},hr=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new F(`'${n}' is already defined in Reference Record.`);let r=hr(e,t);t.logger?.debug?.(`${Xn} evaluateCondition: ${Zn(e)} = ${Zn(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},vr=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=mr(e,`Header value entry`,t);if(typeof r!=`string`)throw new F(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),yr=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=xr.getEndpointProperty(r,t),e),{}),br=(e,t)=>{if(Array.isArray(e))return e.map(e=>br(e,t));switch(typeof e){case`string`:return fr(e,t);case`object`:if(e===null)throw new F(`Unexpected endpoint property: ${e}`);return xr.getEndpointProperties(e,t);case`boolean`:return e;default:throw new F(`Unexpected endpoint property type: ${typeof e}`)}},xr={getEndpointProperty:br,getEndpointProperties:yr},Sr=(e,t)=>{let n=mr(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new F(`Endpoint URL must be a string, got ${typeof n}`)},Cr=1e8,wr=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=Cr){let e=i[o-Cr];if(e[0]===-1){let[,t]=e;throw new F(mr(t,`Error`,c))}let[t,n,r]=e;return{url:Sr(t,c),properties:yr(n,c),headers:vr(r??{},c)}}throw new F(`No matching endpoint.`)},Tr=Vn(Nn),Er=qn(Nn);Wn(Nn);var Dr=Kn(Nn),Or=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return m.mutate(e);if(!e)return m.mutate(new Uint8Array);let n=t.streamCollector(e);return m.mutate(await n)};function kr(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var Ar=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},jr=`modulepreload`,Mr=function(e){return`/`+e},Nr={},Pr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Mr(t,n),t in Nr)return;Nr[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:jr,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Fr=class extends Ar{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=gn.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return M}getResponseType(){return Gt}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=P.of(t.input),i=ln(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:t}=await Pr(async()=>{let{EventStreamSerde:e,eventStreamSerdeProvider:t}=await import(`./index.browser.js`).then(e=>e.t);return{EventStreamSerde:e,eventStreamSerdeProvider:t}},__vite__mapDeps([0,1,2]));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}resolveEventStreamMarshaller(e){let t=this.serdeContext;return t.eventStreamMarshaller?t.eventStreamMarshaller:e(this.serdeContext)}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},Ir=class extends Fr{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=P.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new M({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=P.of(e.output),a={};if(n.statusCode>=300){let i=await Or(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await Or(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function Lr(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Rr=class extends Ar{settings;constructor(e){super(),this.settings=e}read(t,r){let i=P.of(t);if(i.isListSchema())return s(r).map(e=>this.read(i.getValueSchema(),e));if(i.isBlobSchema())return(this.serdeContext?.base64Decoder??n)(r);if(i.isTimestampSchema())switch(Lr(i,this.settings)){case 5:return c(r);case 6:return e(r);case 7:return re(r);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,r),new Date(r)}if(i.isStringSchema()){let e=i.getMergedTraits().mediaType,t=r;if(e)return i.getMergedTraits().httpHeader&&(t=this.base64ToUtf8(t)),(e===`application/json`||e.endsWith(`+json`))&&(t=a.from(t)),t}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new ie(r,`bigDecimal`):i.isBooleanSchema()?String(r).toLowerCase()===`true`:r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??i)((this.serdeContext?.base64Decoder??n)(e))}},zr=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Br=e=>({httpHandler:e.httpHandler()}),Vr=`content-length`;function Hr(e){return t=>async n=>{let r=n.request;if(M.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Vr)===-1)try{let n=e(t);r.headers={...r.headers,[Vr]:String(n)}}catch{}}return t({...n,request:r})}}var Ur={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Wr=e=>({applyToStack:t=>{t.add(Hr(e.bodyLengthChecker),Ur)}}),Gr=e=>encodeURIComponent(e).replace(/[!'()*]/g,Kr),Kr=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function qr(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Gr(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,ei=e=>e.$metadata?.clockSkewCorrected,ti=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},ni=e=>e.$metadata?.httpStatusCode===429||Jr.includes(e.name)||e.$retryable?.throttling==1,ri=(e,t=0)=>$r(e)||ei(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Yr.includes(e.name)||Zr.includes(e?.code||``)||Qr.includes(e?.code||``)||Xr.includes(e.$metadata?.httpStatusCode||0)||ti(e)||ai(e)||e.cause!==void 0&&t<=10&&ri(e.cause,t+1),ii=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!ri(e)}return!1};function ai(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var oi=20*1e3,si=`amz-sdk-invocation-id`,ci=`amz-sdk-request`;function li(e,t){if(Gt.isInstance(e))for(let n of Object.keys(e.headers)){let i=n.toLowerCase();if(i===`retry-after`){let i=e.headers[n],a=NaN;if(i.endsWith(`GMT`))try{a=(r(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?a=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?a=Number(i):Date.parse(i)>=Date.now()&&(a=(Date.parse(i)-Date.now())/1e3);return isNaN(a)?void 0:new Date(Date.now()+a*1e3)}else if(i===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var ui=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function di(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(pi(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:f}=i,p=M.isInstance(f);for(p&&(f.headers[si]=d());;)try{p&&(f.headers[ci]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=mi(n,t.logger);if(c=ui(n),p&&e(f))throw(r.logger instanceof Mn?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch{throw c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=(s?.$retryLog?.acquisitionDelay??0)+o,o>0&&await fi(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var fi=e=>new Promise(t=>setTimeout(t,e)),pi=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,mi=(e,t)=>{let n={error:e,errorType:hi(e)},r=li(e.$response,t);return r&&(n.retryAfterHint=r),n},hi=e=>ni(e)?`THROTTLING`:ri(e)?`TRANSIENT`:ii(e)?`SERVER_ERROR`:`CLIENT_ERROR`,gi={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function _i(e){let t=di(e);return e=>({applyToStack:n=>{n.add(t(e),gi)}})}var vi=class e{static setTimeoutFn=(e,t)=>setTimeout(e,t);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||ni(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},I=class e{static v2026=typeof process<`u`&&{}.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},yi=class{x=I.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,oi);return Math.floor(t)}setDelayBase(e){this.x=e}},bi=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(oi,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},xi;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(xi||={});var Si=xi.STANDARD,Ci={incompatible:1,attempts:2,capacity:3},wi=class{mode=xi.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=I.delay(),this.retryBackoffStrategy??=new yi}async acquireInitialRetryToken(e){return new bi(I.delay(),0,void 0,I.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?I.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);this.capacity-=t;let r=new bi(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,s)),r.$retryLog.acquisitionDelay=s,r}else{let e=I.v2026&&r===Ci.capacity&&a?s:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:Ci.incompatible,a=r=this.getCapacityCost(t.errorType)?0:Ci.capacity;return i||a||o}getCapacityCost(e){return e===I.modifiedCostType()?I.throttlingCost():I.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Ti=class{mode=xi.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new vi,this.standardRetryStrategy=t?new wi({maxAttempts:typeof e==`number`?e:3,...t}):new wi(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},Ei=(e,t)=>{let{retryStrategy:n,retryMode:r}=e,{defaultMaxAttempts:i=3,defaultBaseDelay:a=I.delay()}=t??{},o=N(e.maxAttempts??i),s=n?Promise.resolve(n):void 0,c=async()=>{let e=await o();return await N(r)()===xi.ADAPTIVE?new Ti(o,{maxAttempts:e,baseDelay:a}):new wi({maxAttempts:e,baseDelay:a})};return Object.assign(e,{maxAttempts:o,retryStrategy:()=>s??=c()})},Di=_i(Ft);I.v2026||=typeof process==`object`&&{}.AWS_NEW_RETRIES_2026===`true`;function L(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function Oi(e){return e}var ki=e=>t=>async n=>{if(!M.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Ai={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},ji=e=>({applyToStack:t=>{t.add(ki(e),Ai)}}),Mi=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Ni={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Pi=e=>({applyToStack:e=>{e.add(Mi(),Ni)}}),Fi=e=>({applyToStack:e=>{}}),Ii=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function Li(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Ri=(e,t)=>(n,r)=>async i=>{let a=Ii(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=Li(e.httpAuthSchemes),s=Ut(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)},zi={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Bi=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Ri(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),zi)}}),Vi=e=>e=>{throw e},Hi=(e,t)=>{},Ui=e=>(e,t)=>async n=>{if(!M.isInstance(n.request))return e(n);let r=Ut(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||Vi)(i));return(o.successHandler||Hi)(s.response,i),s},Wi={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Gi=e=>({applyToStack:t=>{t.addRelativeTo(Ui(e),Wi)}}),Ki=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},qi=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Ji=(e=>function(t){return Yi(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Xi=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function Zi(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Qi(e){let t=Ki(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!Zi(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var $i={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},ea=``,ta=e=>{let{partitions:t}=$i;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},na=()=>ea,ra=/\d{12}\.ddb/;async function ia(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&L(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case xi.ADAPTIVE:L(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case xi.STANDARD:L(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(ra)&&L(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:L(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:L(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:L(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&L(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))L(e,n,r)}}var aa=`user-agent`,oa=`x-amz-user-agent`,sa=/[^!$%&'*+\-.^_`|~\w]/g,ca=/[^!$%&'*+\-.^_`|~\w#]/g,la=1024;function ua(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=la){t.length?t+=`,`+r:t+=r;continue}break}return t}var da=e=>(t,n)=>async r=>{let{request:i}=r;if(!M.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(fa)||[],s=(await e.defaultUserAgentProvider()).map(fa);await ia(n,e,r);let c=n;s.push(`m/${ua(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(fa)||[],u=await e.userAgentAppId();u&&s.push(fa([`app`,`${u}`]));let d=na(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[oa]=f:(p&&(a[oa]=a[`x-amz-user-agent`]?`${a[aa]} ${p}`:p),a[aa]=f),t({...r,request:i})},fa=e=>{let t=e[0].split(`/`).map(e=>e.replace(sa,`-`)).join(`/`),n=e[1]?.replace(ca,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},pa={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},ma=e=>({applyToStack:t=>{t.add(da(e),pa)}}),ha=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??ga.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??ga.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},ga={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},_a=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!_a(t))return!1;return!0}return!(!qt(e)||e.length<3||e.length>63||e!==e.toLowerCase()||sr(e))},va=`:`,ya=`/`,ba={isVirtualHostableS3Bucket:_a,parseArn:e=>{let t=e.split(va);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(va)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(ya)).flat()}},partition:ta};Qn.aws=ba;var xa=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},Sa=new Set,Ca=(e,t=qt)=>{if(!Sa.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Sa.add(e)},wa=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Ta=e=>wa(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,Ea=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Ta(typeof t==`function`?await t():t);return Ca(e),e},useFipsEndpoint:async()=>wa(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},Da=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],Oa=({defaultsMode:e}={})=>xa(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(ka()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Da.join(`, `)}, got ${t}`)}}),ka=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},Aa=e=>({setRegion(t){e.region=t},region(){return e.region}}),ja=e=>({region:e.region()}),Ma=e=>Gt.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Na=e=>new Date(Date.now()+e),Pa=(e,t)=>Math.abs(Na(t).getTime()-e)>=3e5,Fa=(e,t)=>{let n=Date.parse(e);return Pa(n,t)?n-Date.now():t},Ia=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},La=async e=>{let t=Ia(`context`,e.context),n=Ia(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await Ia(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Ra=class{async sign(e,t,n){if(!M.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await La(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return n._preRequestSystemClockOffset=i.systemClockOffset,await a.sign(e,{signingDate:Na(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t,r=n.ServerTime??Ma(n.$response);if(r){let t=Ia(`config`,e.config),i=e._preRequestSystemClockOffset,a=Fa(r,t.systemClockOffset);(a!==t.systemClockOffset||i!==void 0&&i!==a)&&n.$metadata&&(t.systemClockOffset=a,n.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Ma(e);if(n){let e=Ia(`config`,t.config);e.systemClockOffset=Fa(n,e.systemClockOffset)}}},za=class extends Ra{async sign(e,t,n){if(!M.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await La(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return n._preRequestSystemClockOffset=r.systemClockOffset,await i.sign(e,{signingDate:Na(r.systemClockOffset),signingRegion:c,signingService:s})}},Ba=e=>(e.sigv4aSigningRegionSet=Ki(e.sigv4aSigningRegionSet),e),Va=class{format(e){let n=[];for(let r of Object.keys(e)){let i=t(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,e.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(e.value,3),o;case`string`:let s=t(e.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Wa.fromNumber(e.value.valueOf()).bytes,1),u;case`uuid`:if(!Ua.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ae(e.value.replace(/\-/g,``)),1),d}}},Ha;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Ha||={});var Ua=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Wa=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Ga(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Ga(e),parseInt(u(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Ga(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Ka=`X-Amz-Algorithm`,qa=`X-Amz-Credential`,Ja=`X-Amz-Date`,Ya=`X-Amz-SignedHeaders`,Xa=`X-Amz-Expires`,Za=`X-Amz-Signature`,Qa=`X-Amz-Security-Token`,$a=`authorization`,eo=Ja.toLowerCase(),to=[$a,eo,`date`];Za.toLowerCase();var no=`x-amz-content-sha256`,ro=Qa.toLowerCase(),io={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},ao=/^proxy-/,oo=/^sec-/,so=`AWS4-HMAC-SHA256`,co=`AWS4-HMAC-SHA256-PAYLOAD`,lo=`UNSIGNED-PAYLOAD`,uo=`aws4_request`,fo=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Gr(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Gr(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Gr(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},po=e=>mo(e).toISOString().replace(/\.\d{3}Z$/,`Z`),mo=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,ho=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=N(n),this.credentialProvider=N(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +import"./compiler-runtime.js";import{E as e,F as t,I as n,M as r,N as i,O as a,P as o,S as s,T as c,_ as l,b as u,d,g as f,k as p,l as m,n as h,o as g,s as ee,t as te,u as ne,w as re,x as ie,y as ae}from"./tslib.es6.js";function oe(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ce=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,le=[],ue=`arbitrary..`,de=e=>{let t=pe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return fe(e);let n=e.split(y);return b(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?v(i,t):t:i||le}return n[e]||le}}},b=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=b(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ue+r:void 0})(),pe=e=>{let{theme:t,classGroups:n}=e;return me(n,t)},me=(e,t)=>{let n=ce();for(let r in e){let i=e[r];x(i,n,r,t)}return n},x=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){ge(e,t,n);return}if(typeof e==`function`){_e(e,t,n,r);return}ve(e,t,n,r)},ge=(e,t,n)=>{let r=e===``?t:S(t,e);r.classGroupId=n},_e=(e,t,n,r)=>{if(C(e)){x(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(se(n,e))},ve=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,ye=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},be=`!`,w=`:`,xe=[],Se=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ce=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return Se(t,l,c,u)};if(t){let e=t+w,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Se(xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},we=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Te=e=>({cache:ye(e.cacheSize),parseClassName:Ce(e),sortModifiers:we(e),postfixLookupClassGroupIds:Ee(e),...de(e)}),Ee=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(De),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let ee=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?ee+be:ee,ne=te+g;if(s.indexOf(ne)>-1)continue;s.push(ne);let re=i(g,h);for(let e=0;e0?` `+l:l)}return l},ke=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Te(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Oe(e,n);return i(e,a),a};return a=o,(...e)=>a(ke(...e))},Me=[],T=e=>{let t=t=>t[e]||Me;return t.isThemeGetter=!0,t},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ie=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Le=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Re=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Be=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>Fe.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),Ve=e=>e.endsWith(`%`)&&D(e.slice(0,-1)),k=e=>Ie.test(e),He=()=>!0,Ue=e=>Le.test(e)&&!Re.test(e),We=()=>!1,Ge=e=>ze.test(e),Ke=e=>Be.test(e),qe=e=>!A(e)&&!j(e),Je=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ye=e=>M(e,pt,We),A=e=>Ne.test(e),Xe=e=>M(e,mt,Ue),Ze=e=>M(e,ht,D),Qe=e=>M(e,_t,He),$e=e=>M(e,gt,We),et=e=>M(e,dt,We),tt=e=>M(e,ft,Ke),nt=e=>M(e,vt,Ge),j=e=>Pe.test(e),rt=e=>ut(e,mt),it=e=>ut(e,gt),at=e=>ut(e,dt),ot=e=>ut(e,pt),st=e=>ut(e,ft),ct=e=>ut(e,vt,!0),lt=e=>ut(e,_t,!0),M=(e,t,n)=>{let r=Ne.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n:!1},dt=e=>e===`position`||e===`percentage`,ft=e=>e===`image`||e===`url`,pt=e=>e===`length`||e===`size`||e===`bg-size`,mt=e=>e===`length`,ht=e=>e===`number`,gt=e=>e===`family-name`,_t=e=>e===`number`||e===`weight`,vt=e=>e===`shadow`,yt=je(()=>{let e=T(`color`),t=T(`font`),n=T(`text`),r=T(`font-weight`),i=T(`tracking`),a=T(`leading`),o=T(`breakpoint`),s=T(`container`),c=T(`spacing`),l=T(`radius`),u=T(`shadow`),d=T(`inset-shadow`),f=T(`text-shadow`),p=T(`drop-shadow`),m=T(`blur`),h=T(`perspective`),g=T(`aspect`),ee=T(`ease`),te=T(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],re=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ie=()=>[...re(),j,A],ae=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],oe=()=>[`auto`,`contain`,`none`],_=()=>[j,A,c],v=()=>[E,`full`,`auto`,..._()],se=()=>[O,`none`,`subgrid`,j,A],ce=()=>[`auto`,{span:[`full`,O,j,A]},O,j,A],y=()=>[O,`auto`,j,A],le=()=>[`auto`,`min`,`max`,`fr`,j,A],ue=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],de=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],b=()=>[`auto`,..._()],fe=()=>[E,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,..._()],pe=()=>[E,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,..._()],me=()=>[E,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,..._()],x=()=>[e,j,A],he=()=>[...re(),at,et,{position:[j,A]}],ge=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],_e=()=>[`auto`,`cover`,`contain`,ot,Ye,{size:[j,A]}],ve=()=>[Ve,rt,Xe],S=()=>[``,`none`,`full`,l,j,A],C=()=>[``,D,rt,Xe],ye=()=>[`solid`,`dashed`,`dotted`,`double`],be=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],w=()=>[D,Ve,at,et],xe=()=>[``,`none`,m,j,A],Se=()=>[`none`,D,j,A],Ce=()=>[`none`,D,j,A],we=()=>[D,j,A],Te=()=>[E,`full`,..._()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[k],breakpoint:[k],color:[He],container:[k],"drop-shadow":[k],ease:[`in`,`out`,`in-out`],font:[qe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[k],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[k],shadow:[k],spacing:[`px`,D],text:[k],"text-shadow":[k],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,E,A,j,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,j,A]}],"container-named":[Je],columns:[{columns:[D,A,j,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ie()}],overflow:[{overflow:ae()}],"overflow-x":[{"overflow-x":ae()}],"overflow-y":[{"overflow-y":ae()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{"inset-s":v(),start:v()}],end:[{"inset-e":v(),end:v()}],"inset-bs":[{"inset-bs":v()}],"inset-be":[{"inset-be":v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[O,`auto`,j,A]}],basis:[{basis:[E,`full`,`auto`,s,..._()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[D,E,`auto`,`initial`,`none`,A]}],grow:[{grow:[``,D,j,A]}],shrink:[{shrink:[``,D,j,A]}],order:[{order:[O,`first`,`last`,`none`,j,A]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":y()}],"col-end":[{"col-end":y()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":y()}],"row-end":[{"row-end":y()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...ue(),`normal`]}],"justify-items":[{"justify-items":[...de(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...de()]}],"align-content":[{content:[`normal`,...ue()]}],"align-items":[{items:[...de(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...de(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...de(),`baseline`]}],"place-self":[{"place-self":[`auto`,...de()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:b()}],mx:[{mx:b()}],my:[{my:b()}],ms:[{ms:b()}],me:[{me:b()}],mbs:[{mbs:b()}],mbe:[{mbe:b()}],mt:[{mt:b()}],mr:[{mr:b()}],mb:[{mb:b()}],ml:[{ml:b()}],"space-x":[{"space-x":_()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":_()}],"space-y-reverse":[`space-y-reverse`],size:[{size:fe()}],"inline-size":[{inline:[`auto`,...pe()]}],"min-inline-size":[{"min-inline":[`auto`,...pe()]}],"max-inline-size":[{"max-inline":[`none`,...pe()]}],"block-size":[{block:[`auto`,...me()]}],"min-block-size":[{"min-block":[`auto`,...me()]}],"max-block-size":[{"max-block":[`none`,...me()]}],w:[{w:[s,`screen`,...fe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...fe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...fe()]}],h:[{h:[`screen`,`lh`,...fe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...fe()]}],"max-h":[{"max-h":[`screen`,`lh`,...fe()]}],"font-size":[{text:[`base`,n,rt,Xe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,lt,Qe]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ve,A]}],"font-family":[{font:[it,$e,t]}],"font-features":[{"font-features":[A]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,j,A]}],"line-clamp":[{"line-clamp":[D,`none`,j,Ze]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":[`none`,j,A]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,j,A]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ye(),`wavy`]}],"text-decoration-thickness":[{decoration:[D,`from-font`,`auto`,j,Xe]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[D,`auto`,j,A]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:_()}],"tab-size":[{tab:[O,j,A]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,j,A]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,j,A]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:_e()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},O,j,A],radial:[``,j,A],conic:[O,j,A]},st,tt]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:C()}],"border-w-x":[{"border-x":C()}],"border-w-y":[{"border-y":C()}],"border-w-s":[{"border-s":C()}],"border-w-e":[{"border-e":C()}],"border-w-bs":[{"border-bs":C()}],"border-w-be":[{"border-be":C()}],"border-w-t":[{"border-t":C()}],"border-w-r":[{"border-r":C()}],"border-w-b":[{"border-b":C()}],"border-w-l":[{"border-l":C()}],"divide-x":[{"divide-x":C()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":C()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ye(),`hidden`,`none`]}],"divide-style":[{divide:[...ye(),`hidden`,`none`]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...ye(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[D,j,A]}],"outline-w":[{outline:[``,D,rt,Xe]}],"outline-color":[{outline:x()}],shadow:[{shadow:[``,`none`,u,ct,nt]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":[`none`,d,ct,nt]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:C()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[D,Xe]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":C()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":[`none`,f,ct,nt]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[D,j,A]}],"mix-blend":[{"mix-blend":[...be(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[j,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:_e()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,j,A]}],filter:[{filter:[``,`none`,j,A]}],blur:[{blur:xe()}],brightness:[{brightness:[D,j,A]}],contrast:[{contrast:[D,j,A]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ct,nt]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:[``,D,j,A]}],"hue-rotate":[{"hue-rotate":[D,j,A]}],invert:[{invert:[``,D,j,A]}],saturate:[{saturate:[D,j,A]}],sepia:[{sepia:[``,D,j,A]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,j,A]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[D,j,A]}],"backdrop-contrast":[{"backdrop-contrast":[D,j,A]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,D,j,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,j,A]}],"backdrop-invert":[{"backdrop-invert":[``,D,j,A]}],"backdrop-opacity":[{"backdrop-opacity":[D,j,A]}],"backdrop-saturate":[{"backdrop-saturate":[D,j,A]}],"backdrop-sepia":[{"backdrop-sepia":[``,D,j,A]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,j,A]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[D,`initial`,j,A]}],ease:[{ease:[`linear`,`initial`,ee,j,A]}],delay:[{delay:[D,j,A]}],animate:[{animate:[`none`,te,j,A]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,j,A]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":[`scale-3d`],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[j,A,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Te()}],"translate-x":[{"translate-x":Te()}],"translate-y":[{"translate-y":Te()}],"translate-z":[{"translate-z":Te()}],"translate-none":[`translate-none`],zoom:[{zoom:[O,j,A]}],accent:[{accent:x()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,j,A]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,j,A]}],fill:[{fill:[`none`,...x()]}],"stroke-w":[{stroke:[D,rt,Xe,Ze]}],stroke:[{stroke:[`none`,...x()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function bt(...e){return yt(_(e))}var xt=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`long`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function St(e){return e?xt.format(new Date(e)):`Unknown`}function Ct(e){return`${Math.round(e/1024)} GiB`}var wt=[`B`,`KB`,`MB`,`GB`,`TB`];function Tt(e){if(e===0)return`0 B`;let t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(2)} ${wt[t]}`}function Et(e){return e?.find(e=>e.Key===`Name`)?.Value}var Dt=/\/$/;function Ot(e){return e.replace(Dt,``)}function kt(e){return e&&(e.endsWith(`/`)?e:`${e}/`)}function At(e,t){return e.startsWith(t)?e:`${t}${e}`}function jt(e,t){return e.startsWith(t)?e.slice(t.length):e}function Mt(e,t,n){return e.$source||={},e.$source[t]=n,e}var Nt=e=>e?.body instanceof ReadableStream,Pt;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(Pt||={});var Ft;(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(Ft||={});var It=`__smithy_context`,Lt=e=>e.__smithy_context||={},N=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=Rt(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function Rt(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var zt=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},Bt=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),Vt=(e,t=!1)=>{if(!t)return Bt.test(e);let n=e.split(`.`);for(let e of n)if(!Vt(e))return!1;return!0},P=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t};function Ht(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var Ut=e=>{if(typeof e==`string`)return Ut(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=Ht(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Wt=e=>{if(typeof e==`object`){if(`url`in e){let t=Ut(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return Ut(e)},Gt=e=>()=>Promise.reject(e),Kt=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},F=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,qt=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>Jt[t.step]-Jt[e.step]||Yt[t.priority||`normal`]-Yt[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=Kt(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of Kt(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Kt(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of Kt(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${F(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=Kt(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${F(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${F(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${F(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=Kt(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${F(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${F(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${F(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(qt()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=Kt(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(qt());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return F(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},Jt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Yt={high:3,normal:2,low:1},Xt=class{config;middlewareStack=qt();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},Zt=e=>typeof e==`function`?e():e,Qt=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),$t=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=Lt(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(Qt(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(zt.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:en(/^x-[\w-]+-request-?id$/,r),extendedRequestId:en(/^x-[\w-]+-id-2$/,r),cfId:en(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},en=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],tn=e=>(t,n)=>async r=>{let{operationSchema:i}=Lt(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Wt(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(Qt(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})},nn={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},rn={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function an(e){return{applyToStack:t=>{t.add(tn(e),rn),t.add($t(e),nn),e.protocol.setSerdeContext(e)}}}var on=[];function sn(e){if(typeof e==`object`)return e;if(e|=0,on[e])return on[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return on[e]=t}var cn={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},ln=[],un={},I=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;fn(i);)r.push(i[1]),i=i[0],a=Zt(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,sn(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=Zt(a),pn(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(ln[t])return ln[t]}else if(typeof t==`string`){if(un[t])return un[t]}else if(n&&t[cn.ns])return t[cn.ns];let r=Zt(t);if(r instanceof e)return r;if(fn(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),sn(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[cn.ns]=i:typeof r==`string`?un[r]=i:typeof r==`number`?ln[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return sn(this.memberTraits)}getOwnTraits(){return sn(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return dn([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return dn([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return dn(fn(r)?r:[r,0],e)}if(this.isDocumentSchema())return dn([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[cn.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,pn=e=>Array.isArray(e)&&e.length>=5,mn=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}},hn=`***SensitiveInformation***`;function gn(e,t){if(t==null)return t;let n=I.of(e);if(n.getMergedTraits().sensitive)return hn;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return hn}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return hn}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=gn(i,e[t]));return r}return t}var _n=class{middlewareStack=qt();schema;static classBuilder(){return new vn}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[It]:{commandInstance:this,...c},...l},{requestHandler:m}=t,h=n??{};return c.eventStream&&(h={isEventStream:!0,...h}),d.resolve(e=>m.handle(e.request,h),p)}},vn=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends _n{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?gn.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?gn.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}},yn=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},bn=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},xn=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),Sn=Object.values(Ft),Cn=e=>{let t=[];for(let n in Ft){let r=Ft[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();Sn.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},wn=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();Sn.includes(n)&&(t[n]=e.checksumConstructor())}),t},Tn=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),En=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},Dn=e=>Object.assign(Cn(e),Tn(e)),On=e=>Object.assign(wn(e),En(e)),kn=e=>{let t=`#text`;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=kn(e[n]));return e},An=class{trace(){}debug(){}info(){}warn(){}error(){}},jn=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return m.mutate(e);if(!e)return m.mutate(new Uint8Array);let n=t.streamCollector(e);return m.mutate(await n)};function Mn(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var Nn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},Pn=`modulepreload`,Fn=function(e){return`/`+e},In={},Ln=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=Fn(t,n),t=s(t),t in In)return;In[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Pn,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Rn=class extends Nn{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=mn.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return N}getResponseType(){return zt}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=I.of(t.input),i=sn(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:t}=await Ln(async()=>{let{EventStreamSerde:e,eventStreamSerdeProvider:t}=await import(`./index.browser.js`).then(e=>e.t);return{EventStreamSerde:e,eventStreamSerdeProvider:t}},__vite__mapDeps([0,1,2]));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}resolveEventStreamMarshaller(e){let t=this.serdeContext;return t.eventStreamMarshaller?t.eventStreamMarshaller:e(this.serdeContext)}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}},zn=class extends Rn{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=I.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new N({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=I.of(e.output),a={};if(n.statusCode>=300){let i=await jn(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await jn(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}};function Bn(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Vn=class extends Nn{settings;constructor(e){super(),this.settings=e}read(t,r){let i=I.of(t);if(i.isListSchema())return s(r).map(e=>this.read(i.getValueSchema(),e));if(i.isBlobSchema())return(this.serdeContext?.base64Decoder??n)(r);if(i.isTimestampSchema())switch(Bn(i,this.settings)){case 5:return c(r);case 6:return e(r);case 7:return re(r);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,r),new Date(r)}if(i.isStringSchema()){let e=i.getMergedTraits().mediaType,t=r;if(e)return i.getMergedTraits().httpHeader&&(t=this.base64ToUtf8(t)),(e===`application/json`||e.endsWith(`+json`))&&(t=a.from(t)),t}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new ie(r,`bigDecimal`):i.isBooleanSchema()?String(r).toLowerCase()===`true`:r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??i)((this.serdeContext?.base64Decoder??n)(e))}},Hn=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Un=e=>({httpHandler:e.httpHandler()}),Wn=`content-length`;function Gn(e){return t=>async n=>{let r=n.request;if(N.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(Wn)===-1)try{let n=e(t);r.headers={...r.headers,[Wn]:String(n)}}catch{}}return t({...n,request:r})}}var Kn={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},qn=e=>({applyToStack:t=>{t.add(Gn(e.bodyLengthChecker),Kn)}}),Jn=e=>encodeURIComponent(e).replace(/[!'()*]/g,Yn),Yn=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Xn(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Jn(n),Array.isArray(r))for(let e=0,i=r.length;ee?.$retryable!==void 0,rr=e=>e.$metadata?.clockSkewCorrected,ir=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},ar=e=>e.$metadata?.httpStatusCode===429||Zn.includes(e.name)||e.$retryable?.throttling==1,or=(e,t=0)=>nr(e)||rr(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Qn.includes(e.name)||er.includes(e?.code||``)||tr.includes(e?.code||``)||$n.includes(e.$metadata?.httpStatusCode||0)||ir(e)||cr(e)||e.cause!==void 0&&t<=10&&or(e.cause,t+1),sr=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!or(e)}return!1};function cr(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var lr=20*1e3,ur=`amz-sdk-invocation-id`,dr=`amz-sdk-request`;function fr(e,t){if(zt.isInstance(e))for(let n of Object.keys(e.headers)){let i=n.toLowerCase();if(i===`retry-after`){let i=e.headers[n],a=NaN;if(i.endsWith(`GMT`))try{a=(r(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?a=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?a=Number(i):Date.parse(i)>=Date.now()&&(a=(Date.parse(i)-Date.now())/1e3);return isNaN(a)?void 0:new Date(Date.now()+a*1e3)}else if(i===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var pr=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`);function mr(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if(gr(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:f}=i,p=N.isInstance(f);for(p&&(f.headers[ur]=d());;)try{p&&(f.headers[dr]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=_r(n,t.logger);if(c=pr(n),p&&e(f))throw(r.logger instanceof An?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch{throw c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=(s?.$retryLog?.acquisitionDelay??0)+o,o>0&&await hr(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}var hr=e=>new Promise(t=>setTimeout(t,e)),gr=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,_r=(e,t)=>{let n={error:e,errorType:vr(e)},r=fr(e.$response,t);return r&&(n.retryAfterHint=r),n},vr=e=>ar(e)?`THROTTLING`:or(e)?`TRANSIENT`:sr(e)?`SERVER_ERROR`:`CLIENT_ERROR`,yr={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};function br(e){let t=mr(e);return e=>({applyToStack:n=>{n.add(t(e),yr)}})}var xr=class e{static setTimeoutFn=(e,t)=>setTimeout(e,t);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||ar(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}},L=class e{static v2026=typeof process<`u`&&{}.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},Sr=class{x=L.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,lr);return Math.floor(t)}setDelayBase(e){this.x=e}},Cr=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(lr,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},wr;(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(wr||={});var Tr=wr.STANDARD,Er={incompatible:1,attempts:2,capacity:3},Dr=class{mode=wr.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=L.delay(),this.retryBackoffStrategy??=new Sr}async acquireInitialRetryToken(e){return new Cr(L.delay(),0,void 0,L.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?L.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);this.capacity-=t;let r=new Cr(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,s)),r.$retryLog.acquisitionDelay=s,r}else{let e=L.v2026&&r===Er.capacity&&a?s:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:Er.incompatible,a=r=this.getCapacityCost(t.errorType)?0:Er.capacity;return i||a||o}getCapacityCost(e){return e===L.modifiedCostType()?L.throttlingCost():L.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},Or=class{mode=wr.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new xr,this.standardRetryStrategy=t?new Dr({maxAttempts:typeof e==`number`?e:3,...t}):new Dr(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},kr=(e,t)=>{let{retryStrategy:n,retryMode:r}=e,{defaultMaxAttempts:i=3,defaultBaseDelay:a=L.delay()}=t??{},o=P(e.maxAttempts??i),s=n?Promise.resolve(n):void 0,c=async()=>{let e=await o();return await P(r)()===wr.ADAPTIVE?new Or(o,{maxAttempts:e,baseDelay:a}):new Dr({maxAttempts:e,baseDelay:a})};return Object.assign(e,{maxAttempts:o,retryStrategy:()=>s??=c()})},Ar=br(Nt);L.v2026||=typeof process==`object`&&{}.AWS_NEW_RETRIES_2026===`true`;function R(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}function jr(e){return e}var Mr=e=>t=>async n=>{if(!N.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Nr={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},Pr=e=>({applyToStack:t=>{t.add(Mr(e),Nr)}}),Fr=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Ir={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Lr=e=>({applyToStack:e=>{e.add(Fr(),Ir)}}),Rr=e=>({applyToStack:e=>{}}),zr=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n};function Br(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Vr=(e,t)=>(n,r)=>async i=>{let a=zr(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=Br(e.httpAuthSchemes),s=Lt(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)},Hr={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Ur=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Vr(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Hr)}}),Wr=e=>e=>{throw e},Gr=(e,t)=>{},Kr=e=>(e,t)=>async n=>{if(!N.isInstance(n.request))return e(n);let r=Lt(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||Wr)(i));return(o.successHandler||Gr)(s.response,i),s},qr={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Jr=e=>({applyToStack:t=>{t.addRelativeTo(Kr(e),qr)}}),Yr=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},Xr=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}},Zr=(e=>function(t){return Qr(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,$r=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))};function ei(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function ti(e){let t=Yr(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!ei(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var ni={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`},ri=``,ii=e=>{let{partitions:t}=ni;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},ai=()=>ri,oi=/\d{12}\.ddb/;async function si(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&R(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case wr.ADAPTIVE:R(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case wr.STANDARD:R(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(oi)&&R(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:R(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:R(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:R(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&R(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))R(e,n,r)}}var ci=`user-agent`,li=`x-amz-user-agent`,ui=/[^!$%&'*+\-.^_`|~\w]/g,di=/[^!$%&'*+\-.^_`|~\w#]/g,fi=1024;function pi(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=fi){t.length?t+=`,`+r:t+=r;continue}break}return t}var mi=e=>(t,n)=>async r=>{let{request:i}=r;if(!N.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(hi)||[],s=(await e.defaultUserAgentProvider()).map(hi);await si(n,e,r);let c=n;s.push(`m/${pi(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(hi)||[],u=await e.userAgentAppId();u&&s.push(hi([`app`,`${u}`]));let d=ai(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[li]=f:(p&&(a[li]=a[`x-amz-user-agent`]?`${a[ci]} ${p}`:p),a[ci]=f),t({...r,request:i})},hi=e=>{let t=e[0].split(`/`).map(e=>e.replace(ui,`-`)).join(`/`),n=e[1]?.replace(di,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},gi={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},_i=e=>({applyToStack:t=>{t.add(mi(e),gi)}}),vi=({serviceId:e,clientVersion:t})=>async n=>{let r=typeof window<`u`?window.navigator:void 0,i=r?.userAgent??``,a=r?.userAgentData?.platform??yi.os(i)??`other`,o=r?.userAgentData?.brands??[],s=o[o.length-1],c=s?.brand??yi.browser(i)??`unknown`,l=s?.version??`unknown`,u=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${a}`,void 0],[`lang/js`],[`md/browser`,`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await n?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u},yi={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}},bi=async e=>void 0,xi=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),Ei(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else(!Ti(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Si=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ci=/(\d+\.){3}\d+/,wi=/\.\./,Ti=e=>Si.test(e)&&!Ci.test(e)&&!wi.test(e),Ei=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},Di=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i};function Oi(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(Wt(t)),r.isCustomEndpoint=!0)}let a=await ki(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var ki=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Di(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await xi(r),r};function Ai(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function ji(e){let t=Oi(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Ai(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=Lt(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var Mi={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function Ni(e){let t=ji(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Mi)}})}function Pi(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>Wt(await P(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:P(i??!1),useFipsEndpoint:P(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var Fi=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},Ii=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},z=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},Li=`endpoints`;function Ri(e){return typeof e!=`object`||!e?e:`ref`in e?`$${Ri(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(Ri).join(`, `)})`:JSON.stringify(e,null,2)}var zi={},Bi=(e,t)=>e===t;function Vi(...e){for(let t of e)if(t!=null)return t}var Hi=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new z(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new z(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},Ui=(e,t)=>Hi(t).reduce((n,r)=>{if(typeof n!=`object`)throw new z(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),Wi=e=>e!=null;function Gi(e,t,n){return e?t:n}var Ki=e=>!e,qi=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),Ji=e=>qi.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),Yi={[Pt.HTTP]:80,[Pt.HTTPS]:443},Xi=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(Pt).includes(c))return null;let l=Ji(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${Yi[c]}`)||typeof e==`string`&&e.includes(`${r}:${Yi[c]}`)?`:${Yi[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}};function Zi(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var Qi={booleanEquals:Bi,coalesce:Vi,getAttr:Ui,isSet:Wi,isValidHostLabel:Vt,ite:Gi,not:Ki,parseURL:Xi,split:Zi,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},$i=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],ta=(e,t,n)=>{if(typeof e==`string`)return $i(e,n);if(e.fn)return ra.callFunction(e,n);if(e.ref)return ea(e,n);throw new z(`'${t}': ${String(e)} is not a string, function or reference.`)},na=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new z(`'${n}' is already defined in Reference Record.`);let r=na(e,t);t.logger?.debug?.(`${Li} evaluateCondition: ${Ri(e)} = ${Ri(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},aa=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=ta(e,`Header value entry`,t);if(typeof r!=`string`)throw new z(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),oa=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=ca.getEndpointProperty(r,t),e),{}),sa=(e,t)=>{if(Array.isArray(e))return e.map(e=>sa(e,t));switch(typeof e){case`string`:return $i(e,t);case`object`:if(e===null)throw new z(`Unexpected endpoint property: ${e}`);return ca.getEndpointProperties(e,t);case`boolean`:return e;default:throw new z(`Unexpected endpoint property type: ${typeof e}`)}},ca={getEndpointProperty:sa,getEndpointProperties:oa},la=(e,t)=>{let n=ta(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new z(`Endpoint URL must be a string, got ${typeof n}`)},ua=1e8,da=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=ua){let e=i[o-ua];if(e[0]===-1){let[,t]=e;throw new z(ta(t,`Error`,c))}let[t,n,r]=e;return{url:la(t,c),properties:oa(n,c),headers:aa(r??{},c)}}throw new z(`No matching endpoint.`)},fa=Oi(bi),pa=Pi(bi);ji(bi);var ma=Ni(bi),ha=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!ha(t))return!1;return!0}return!(!Vt(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Ji(e))},ga=`:`,_a=`/`,va={isVirtualHostableS3Bucket:ha,parseArn:e=>{let t=e.split(ga);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(ga)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(_a)).flat()}},partition:ii};zi.aws=va;var ya=e=>({setRegion(t){e.region=t},region(){return e.region}}),ba=e=>({region:e.region()}),xa=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},Sa=new Set,Ca=(e,t=Vt)=>{if(!Sa.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Sa.add(e)},wa=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),Ta=e=>wa(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,Ea=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Ta(typeof t==`function`?await t():t);return Ca(e),e},useFipsEndpoint:async()=>wa(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},Da=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],Oa=({defaultsMode:e}={})=>xa(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(ka()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Da.join(`, `)}, got ${t}`)}}),ka=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},Aa=e=>zt.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,ja=e=>new Date(Date.now()+e),Ma=(e,t)=>Math.abs(ja(t).getTime()-e)>=3e5,Na=(e,t)=>{let n=Date.parse(e);return Ma(n,t)?n-Date.now():t},Pa=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Fa=async e=>{let t=Pa(`context`,e.context),n=Pa(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await Pa(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Ia=class{async sign(e,t,n){if(!N.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await Fa(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return n._preRequestSystemClockOffset=i.systemClockOffset,await a.sign(e,{signingDate:ja(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t,r=n.ServerTime??Aa(n.$response);if(r){let t=Pa(`config`,e.config),i=e._preRequestSystemClockOffset,a=Na(r,t.systemClockOffset);(a!==t.systemClockOffset||i!==void 0&&i!==a)&&n.$metadata&&(t.systemClockOffset=a,n.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=Aa(e);if(n){let e=Pa(`config`,t.config);e.systemClockOffset=Na(n,e.systemClockOffset)}}},La=class extends Ia{async sign(e,t,n){if(!N.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await Fa(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return n._preRequestSystemClockOffset=r.systemClockOffset,await i.sign(e,{signingDate:ja(r.systemClockOffset),signingRegion:c,signingService:s})}},Ra=e=>(e.sigv4aSigningRegionSet=Yr(e.sigv4aSigningRegionSet),e),za=class{format(e){let n=[];for(let r of Object.keys(e)){let i=t(r);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(n.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of n)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,e.value,!1),new Uint8Array(n.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(e.value,3),o;case`string`:let s=t(e.value),c=new DataView(new ArrayBuffer(3+s.byteLength));c.setUint8(0,7),c.setUint16(1,s.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(s,3),l;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(Ha.fromNumber(e.value.valueOf()).bytes,1),u;case`uuid`:if(!Va.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ae(e.value.replace(/\-/g,``)),1),d}}},Ba;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Ba||={});var Va=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Ha=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&Ua(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&Ua(e),parseInt(u(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Ua(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Wa=`X-Amz-Algorithm`,Ga=`X-Amz-Credential`,Ka=`X-Amz-Date`,qa=`X-Amz-SignedHeaders`,Ja=`X-Amz-Expires`,Ya=`X-Amz-Signature`,Xa=`X-Amz-Security-Token`,Za=`authorization`,Qa=Ka.toLowerCase(),$a=[Za,Qa,`date`];Ya.toLowerCase();var eo=`x-amz-content-sha256`,to=Xa.toLowerCase(),no={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},ro=/^proxy-/,io=/^sec-/,ao=`AWS4-HMAC-SHA256`,oo=`AWS4-HMAC-SHA256-PAYLOAD`,so=`UNSIGNED-PAYLOAD`,co=`aws4_request`,lo=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===`x-amz-signature`)continue;let i=Jn(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${Jn(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${Jn(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},uo=e=>fo(e).toISOString().replace(/\.\d{3}Z$/,`Z`),fo=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e,po=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){this.service=r,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=P(n),this.credentialProvider=P(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} ${this.getCanonicalPath(e)} -${fo(e)} +${lo(e)} ${r.map(e=>`${e}:${t[e]}`).join(` `)} @@ -11,10 +11,10 @@ ${r.join(`;`)} ${n}`}async createStringToSign(e,t,n,r){let i=new this.sha256;return i.update(l(n)),`${r} ${e} ${t} -${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Gr(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=po(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},go={},_o=[],vo=(e,t,n)=>`${e}/${t}/${n}/${uo}`,yo=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${u(await bo(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in go)return go[a];for(_o.push(a);_o.length>50;)delete go[_o.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,uo])o=await bo(e,o,t);return go[a]=o},bo=(e,t,n)=>{let r=new e(t);return r.update(l(n)),r.digest()},xo=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in io||t?.has(a)||ao.test(a)||oo.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},So=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||f(t)){let e=new n;return e.update(l(t)),u(await e.digest())}return lo},Co=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},wo=(e,t={})=>{let{headers:n,query:r={}}=M.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},To=e=>{e=M.clone(e);for(let t of Object.keys(e.headers))to.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Eo=class extends ho{headerFormatter=new Va;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=vo(p,d,l??this.service),h=wo(To(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Qa]=u.sessionToken),h.query[Ka]=so,h.query[qa]=`${u.accessKeyId}/${m}`,h.query[Ja]=f,h.query[Xa]=r.toString(10);let g=xo(h,i,o);return h.query[Ya]=this.getCanonicalHeaderList(g),h.query[Za]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await So(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),d=vo(c,s,a??this.service),f=await So({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);let m=[co,l,d,r,u(await p.digest()),f].join(` -`);return this.signString(m,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(l(e)),u(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=To(e),{longDate:l,shortDate:u}=this.formatDate(t),d=vo(u,s,a??this.service);c.headers[eo]=l,o.sessionToken&&(c.headers[ro]=o.sessionToken);let f=await So(c,this.sha256);!Co(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[no]=f);let p=xo(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[$a]=`${so} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,so),a=new this.sha256(await n);return a.update(l(i)),u(await a.digest())}getSigningKey(e,t,n,r){return yo(this.sha256,e,n,t,r||this.service)}},Do={SignatureV4a:null},Oo=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Ao(e,ko(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Pt(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Ki(e.signer):e.regionInfoProvider?()=>Ki(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Eo)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Ki(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Eo)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function ko(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:Xi(t,Ji,Yi):n?Ki(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ao(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var jo={CrtSignerV4:null},Mo=`X-Amz-S3session-Token`,No=Mo.toLowerCase(),Po=class extends Eo{async signWithCredentials(e,t,n){let r=Fo(t);e.headers[No]=t.sessionToken;let i=this;return Io(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=Fo(t);return delete e.headers[No],e.headers[Mo]=t.sessionToken,e.query=e.query??{},e.query[Mo]=t.sessionToken,Io(this,r),this.presign(e,n)}};function Fo(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Io(e,t){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(t))}var Lo=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof jo.CrtSignerV4==`function`?`crt`:typeof Do.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new Po(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=jo.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=jo.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=jo.CrtSignerV4,t=Do.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},Ro={name:`SHA-256`},zo={name:`HMAC`,hash:Ro},Bo=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Vo={};function Ho(){return typeof window<`u`?window:typeof self<`u`?self:Vo}var Uo=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!g(e)){var t=ee(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Ho().crypto.subtle.sign(zo,t,e.toHash).then(function(e){return new Uint8Array(e)})}):g(this.toHash)?Promise.resolve(Bo):Promise.resolve().then(function(){return Ho().crypto.subtle.digest(Ro,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){Ho().crypto.subtle.importKey(`raw`,ee(e.secret),zo,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}(),Wo=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Go=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ko=2**53-1,qo=function(){function e(){this.state=Int32Array.from(Go),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Ko)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Wo[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Jo=function(){function e(e){this.secret=e,this.hash=new qo,this.reset()}return e.prototype.update=function(e){if(!(g(e)||this.error))try{this.hash.update(ee(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return te(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new qo,this.secret){this.outer=new qo;var e=Yo(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new qo;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Xo=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Zo(e){if(Qo(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return $o(t)}return!1}function Qo(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function $o(e){return e&&Xo.every(function(t){return typeof e[t]==`function`})}var es=function(){function e(e){Zo(Ho())?this.hash=new Uo(e):this.hash=new Jo(e)}return e.prototype.update=function(e,t){this.hash.update(ee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();function ts(e,t){return new Request(e,t)}function ns(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var rs={supported:void 0},is=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),rs.supported===void 0&&(rs.supported=typeof Request<`u`&&`keepalive`in ts(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=as(t);return Promise.reject(e)}let o=e.path,s=qr(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),rs.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=ts(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new Gt({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new Gt({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),ns(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(as(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function as(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var os=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?ss(e):new Uint8Array(await e.arrayBuffer()):cs(e);async function ss(e){let t=n(await ls(e));return new Uint8Array(t)}async function cs(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ls(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var us=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=gn.for(r),a=gn.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=Sn(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return Sn(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tP.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},ds=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},fs=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},ps;function ms(e){ps||=new DOMParser;let t=ps.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;r[t]?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var hs=class extends ds{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Rr(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=P.of(e),a=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(a).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(a)[0];return a[n].isBlobSchema()?e[n]=t:e[n]=this.read(a[n],t),e}let o=(this.serdeContext?.utf8Encoder??i)(t),s=this.parseXml(o);return this.readSchema(e,n?s[n]:s)}readSchema(e,t){let n=P.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new fs(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=ms(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),jn(i)}return{}}},gs=class extends ds{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=P.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??o)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(ne())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof ie?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),Lr(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(p(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${kr(e)}=`}writeValue(e){this.buffer+=kr(e)}},_s=class extends Ir{options;serializer;deserializer;mixin=new us;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new gs(t),this.deserializer=new hs(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,($t(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=P.of(e.output),a={};if(n.statusCode>=300){let i=await Or(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await Or(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=P.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)({}),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},vs;function R(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var ys=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},bs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(vs=globalThis).__zod_globalConfig??(vs.__zod_globalConfig={});var xs=globalThis.__zod_globalConfig;function z(e){return e&&Object.assign(xs,e),xs}function Ss(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Cs(e,t){return typeof t==`bigint`?t.toString():t}function ws(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Ts(e){return e==null}function Es(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Ds(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function Ns(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ps=ws(()=>{if(xs.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Fs(e){if(Ns(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ns(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Is(e){return Fs(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ls=new Set([`string`,`number`,`symbol`]);function Rs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function H(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function U(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function zs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Bs={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Vs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return H(e,V(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ks(this,`shape`,e),e},checks:[]}))}function Hs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return H(e,V(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ks(this,`shape`,r),r},checks:[]}))}function Us(e,t){if(!Fs(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ks(this,`shape`,n),n}}))}function Ws(e,t){if(!Fs(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ks(this,`shape`,n),n}}))}function Gs(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return H(e,V(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ks(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ks(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return H(t,V(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ks(this,`shape`,i),i},checks:[]}))}function qs(e,t,n){return H(t,V(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ks(this,`shape`,i),i}}))}function Js(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Zs(e){return typeof e==`string`?e:e?.message}function W(e,t,n){let r=e.message?e.message:Zs(e.inst?._zod.def?.error?.(e))??Zs(t?.error?.(e))??Zs(n.customError?.(e))??Zs(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Qs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function $s(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var ec=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Cs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tc=R(`$ZodError`,ec),nc=R(`$ZodError`,ec,{Parent:Error});function rc(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ic(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ys;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>W(e,a,z())));throw Ms(t,i?.callee),t}return o.value},oc=ac(nc),sc=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>W(e,a,z())));throw Ms(t,i?.callee),t}return o.value},cc=sc(nc),lc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ys;return a.issues.length?{success:!1,error:new(e??tc)(a.issues.map(e=>W(e,i,z())))}:{success:!0,data:a.value}},uc=lc(nc),dc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>W(e,i,z())))}:{success:!0,data:a.value}},fc=dc(nc),pc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ac(e)(t,n,i)},mc=e=>(t,n,r)=>ac(e)(t,n,r),hc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return sc(e)(t,n,i)},gc=e=>async(t,n,r)=>sc(e)(t,n,r),_c=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return lc(e)(t,n,i)},vc=e=>(t,n,r)=>lc(e)(t,n,r),yc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dc(e)(t,n,i)},bc=e=>async(t,n,r)=>dc(e)(t,n,r),xc=/^[cC][0-9a-z]{6,}$/,Sc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wc=/^[0-9a-vA-V]{20}$/,Tc=/^[A-Za-z0-9]{27}$/,Ec=/^[a-zA-Z0-9_-]{21}$/,Dc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Oc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,kc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ac=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,jc=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Mc(){return new RegExp(jc,`u`)}var Nc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Fc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ic=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rc=/^[A-Za-z0-9_-]*$/,zc=/^https?$/,Bc=/^\+[1-9]\d{6,14}$/,Vc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Hc=RegExp(`^${Vc}$`);function Uc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wc(e){return RegExp(`^${Uc(e)}$`)}function Gc(e){let t=Uc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Vc}T(?:${r})$`)}var Kc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},qc=/^-?\d+$/,Jc=/^-?\d+(?:\.\d+)?$/,Yc=/^(?:true|false)$/i,Xc=/^[^A-Z]*$/,Zc=/^[^a-z]*$/,G=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qc={number:`number`,bigint:`bigint`,object:`date`},$c=R(`$ZodCheckLessThan`,(e,t)=>{G.init(e,t);let n=Qc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{G.init(e,t);let n=Qc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tl=R(`$ZodCheckMultipleOf`,(e,t)=>{G.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Ds(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nl=R(`$ZodCheckNumberFormat`,(e,t)=>{G.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Bs[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=qc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rl=R(`$ZodCheckMaxLength`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Qs(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),il=R(`$ZodCheckMinLength`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Qs(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),al=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;G.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ts(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Qs(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ol=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;G.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),sl=R(`$ZodCheckRegex`,(e,t)=>{ol.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),cl=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Xc,ol.init(e,t)}),ll=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Zc,ol.init(e,t)}),ul=R(`$ZodCheckIncludes`,(e,t)=>{G.init(e,t);let n=Rs(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),dl=R(`$ZodCheckStartsWith`,(e,t)=>{G.init(e,t);let n=RegExp(`^${Rs(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),fl=R(`$ZodCheckEndsWith`,(e,t)=>{G.init(e,t);let n=RegExp(`.*${Rs(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),pl=R(`$ZodCheckOverwrite`,(e,t)=>{G.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ml=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));return Jn(`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=uo(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},mo={},ho=[],go=(e,t,n)=>`${e}/${t}/${n}/${co}`,_o=async(e,t,n,r,i)=>{let a=`${n}:${r}:${i}:${u(await vo(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(a in mo)return mo[a];for(ho.push(a);ho.length>50;)delete mo[ho.shift()];let o=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,co])o=await vo(e,o,t);return mo[a]=o},vo=(e,t,n)=>{let r=new e(t);return r.update(l(n)),r.digest()},yo=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in no||t?.has(a)||ro.test(a)||io.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},bo=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===`x-amz-content-sha256`)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||f(t)){let e=new n;return e.update(l(t)),u(await e.digest())}return so},xo=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},So=(e,t={})=>{let{headers:n,query:r={}}=N.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},Co=e=>{e=N.clone(e);for(let t of Object.keys(e.headers))$a.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},wo=class extends po{headerFormatter=new za;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let d=c??await this.regionProvider(),{longDate:f,shortDate:p}=this.formatDate(n);if(r>604800)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let m=go(p,d,l??this.service),h=So(Co(e),{unhoistableHeaders:a,hoistableHeaders:s});u.sessionToken&&(h.query[Xa]=u.sessionToken),h.query[Wa]=ao,h.query[Ga]=`${u.accessKeyId}/${m}`,h.query[Ka]=f,h.query[Ja]=r.toString(10);let g=yo(h,i,o);return h.query[qa]=this.getCanonicalHeaderList(g),h.query[Ya]=await this.getSignature(f,m,this.getSigningKey(u,d,p,l),this.createCanonicalRequest(h,g,await bo(e,this.sha256))),h}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:a,eventStreamCredentials:o}){let s=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),d=go(c,s,a??this.service),f=await bo({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);let m=[oo,l,d,r,u(await p.digest()),f].join(` +`);return this.signString(m,{signingDate:n,signingRegion:s,signingService:a,eventStreamCredentials:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}={}){let a=i??await this.credentialProvider();this.validateResolvedCredentials(a);let o=n??await this.regionProvider(),{shortDate:s}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(a,o,s,r));return c.update(l(e)),u(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=Co(e),{longDate:l,shortDate:u}=this.formatDate(t),d=go(u,s,a??this.service);c.headers[Qa]=l,o.sessionToken&&(c.headers[to]=o.sessionToken);let f=await bo(c,this.sha256);!xo(`x-amz-content-sha256`,c.headers)&&this.applyChecksum&&(c.headers[eo]=f);let p=yo(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[Za]=`${ao} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r,ao),a=new this.sha256(await n);return a.update(l(i)),u(await a.digest())}getSigningKey(e,t,n,r){return _o(this.sha256,e,n,t,r||this.service)}},To={SignatureV4a:null},Eo=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Oo(e,Do(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?Mt(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?Yr(e.signer):e.regionInfoProvider?()=>Yr(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||wo)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await Yr(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||wo)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})};function Do(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:$r(t,Zr,Qr):n?Yr(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Oo(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var ko={CrtSignerV4:null},Ao=`X-Amz-S3session-Token`,jo=Ao.toLowerCase(),Mo=class extends wo{async signWithCredentials(e,t,n){let r=No(t);e.headers[jo]=t.sessionToken;let i=this;return Po(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=No(t);return delete e.headers[jo],e.headers[Ao]=t.sessionToken,e.query=e.query??{},e.query[Ao]=t.sessionToken,Po(this,r),this.presign(e,n)}};function No(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Po(e,t){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(t))}var Fo=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof ko.CrtSignerV4==`function`?`crt`:typeof To.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new Mo(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=ko.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=ko.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=ko.CrtSignerV4,t=To.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},Io={name:`SHA-256`},Lo={name:`HMAC`,hash:Io},Ro=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),zo={};function Bo(){return typeof window<`u`?window:typeof self<`u`?self:zo}var Vo=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!g(e)){var t=ee(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Bo().crypto.subtle.sign(Lo,t,e.toHash).then(function(e){return new Uint8Array(e)})}):g(this.toHash)?Promise.resolve(Ro):Promise.resolve().then(function(){return Bo().crypto.subtle.digest(Io,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array,this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){Bo().crypto.subtle.importKey(`raw`,ee(e.secret),Lo,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}(),Ho=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Uo=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Wo=2**53-1,Go=function(){function e(){this.state=Int32Array.from(Uo),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Wo)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Ho[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),Ko=function(){function e(e){this.secret=e,this.hash=new Go,this.reset()}return e.prototype.update=function(e){if(!(g(e)||this.error))try{this.hash.update(ee(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return te(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Go,this.secret){this.outer=new Go;var e=qo(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n64){var n=new Go;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Jo=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function Yo(e){if(Xo(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return Zo(t)}return!1}function Xo(e){return typeof e==`object`&&typeof e.crypto==`object`?typeof e.crypto.getRandomValues==`function`:!1}function Zo(e){return e&&Jo.every(function(t){return typeof e[t]==`function`})}var Qo=function(){function e(e){Yo(Bo())?this.hash=new Vo(e):this.hash=new Ko(e)}return e.prototype.update=function(e,t){this.hash.update(ee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();function $o(e,t){return new Request(e,t)}function es(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var ts={supported:void 0},ns=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),ts.supported===void 0&&(ts.supported=typeof Request<`u`&&`keepalive`in $o(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||=await this.configProvider;let r=n??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let e=rs(t);return Promise.reject(e)}let o=e.path,s=Xn(e.query||{});s&&(o+=`?${s}`),e.fragment&&(o+=`#${e.fragment}`);let c=``;(e.username!=null||e.password!=null)&&(c=`${e.username??``}:${e.password??``}@`);let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:``}${o}`,f=u===`GET`||u===`HEAD`?void 0:e.body,p={body:f,headers:new Headers(e.headers),method:u,credentials:a};this.config?.cache&&(p.cache=this.config.cache),f&&(p.duplex=`half`),typeof AbortController<`u`&&(p.signal=t),ts.supported&&(p.keepalive=i),typeof this.config.requestInit==`function`&&Object.assign(p,this.config.requestInit(e));let m=()=>{},h=$o(d,p),g=[fetch(h).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return e.body==null?e.blob().then(t=>({response:new zt({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new zt({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),es(r)];return t&&g.push(new Promise((e,n)=>{let r=()=>{n(rs(t))};if(typeof t.addEventListener==`function`){let e=t;e.addEventListener(`abort`,r,{once:!0}),m=()=>e.removeEventListener(`abort`,r)}else t.onabort=r})),Promise.race(g).finally(m)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function rs(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}var is=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?as(e):new Uint8Array(await e.arrayBuffer()):os(e);async function as(e){let t=n(await ss(e));return new Uint8Array(t)}async function os(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function ss(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var cs=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=mn.for(r),a=mn.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=xn(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return xn(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tI.of(e).getMergedTraits().awsQueryError?.[0]===t)}}},ls=class{serdeContext;setSerdeContext(e){this.serdeContext=e}},us=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}},ds;function fs(e){ds||=new DOMParser;let t=ds.parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length>0)throw Error(`DOMParser XML parsing error.`);let n=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.attributes.length===0&&t.childNodes.length===0)return``;let r={},i=Array.from(t.attributes);for(let e of i)r[`${e.name}`]=e.value;let a=Array.from(t.childNodes);for(let e of a){let o=n(e);if(o!=null){let t=e.nodeName;if(a.length===1&&i.length===0&&t===`#text`)return o;t in r?Array.isArray(r[t])?r[t].push(o):r[t]=[r[t],o]:r[t]=o}else if(a.length===1&&i.length===0)return t.textContent}return r}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}var ps=class extends ls{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Vn(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=I.of(e),a=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(a).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(a)[0];return a[n].isBlobSchema()?e[n]=t:e[n]=this.read(a[n],t),e}let o=(this.serdeContext?.utf8Encoder??i)(t),s=this.parseXml(o);return this.readSchema(e,n?s[n]:s)}readSchema(e,t){let n=I.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new us(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=fs(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),kn(i)}return{}}},ms=class extends ls{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=I.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??o)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(ne())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof ie?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),Bn(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(p(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${Mn(e)}=`}writeValue(e){this.buffer+=Mn(e)}},hs=class extends zn{options;serializer;deserializer;mixin=new cs;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ms(t),this.deserializer=new ps(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(Zt(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=I.of(e.output),a={};if(n.statusCode>=300){let i=await jn(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await jn(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=I.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)({}),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}},gs;function B(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var _s=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},vs=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(gs=globalThis).__zod_globalConfig??(gs.__zod_globalConfig={});var ys=globalThis.__zod_globalConfig;function V(e){return e&&Object.assign(ys,e),ys}function bs(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function xs(e,t){return typeof t==`bigint`?t.toString():t}function Ss(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function Cs(e){return e==null}function ws(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Ts(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function js(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ms=Ss(()=>{if(ys.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ns(e){if(js(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(js(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Ps(e){return Ns(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Fs=new Set([`string`,`number`,`symbol`]);function Is(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ls(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function W(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Rs(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var zs={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Bs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ls(e,U(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Ds(this,`shape`,e),e},checks:[]}))}function Vs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ls(e,U(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Ds(this,`shape`,r),r},checks:[]}))}function Hs(e,t){if(!Ns(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ls(e,U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ds(this,`shape`,n),n}}))}function Us(e,t){if(!Ns(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ls(e,U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ds(this,`shape`,n),n}}))}function Ws(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ls(e,U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ds(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Gs(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ls(t,U(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Ds(this,`shape`,i),i},checks:[]}))}function Ks(e,t,n){return Ls(t,U(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Ds(this,`shape`,i),i}}))}function qs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Xs(e){return typeof e==`string`?e:e?.message}function G(e,t,n){let r=e.message?e.message:Xs(e.inst?._zod.def?.error?.(e))??Xs(t?.error?.(e))??Xs(n.customError?.(e))??Xs(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Zs(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Qs(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var $s=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ec=B(`$ZodError`,$s),tc=B(`$ZodError`,$s,{Parent:Error});function nc(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function rc(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _s;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>G(e,a,V())));throw As(t,i?.callee),t}return o.value},ac=ic(tc),oc=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>G(e,a,V())));throw As(t,i?.callee),t}return o.value},sc=oc(tc),cc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _s;return a.issues.length?{success:!1,error:new(e??ec)(a.issues.map(e=>G(e,i,V())))}:{success:!0,data:a.value}},lc=cc(tc),uc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>G(e,i,V())))}:{success:!0,data:a.value}},dc=uc(tc),fc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ic(e)(t,n,i)},pc=e=>(t,n,r)=>ic(e)(t,n,r),mc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oc(e)(t,n,i)},hc=e=>async(t,n,r)=>oc(e)(t,n,r),gc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return cc(e)(t,n,i)},_c=e=>(t,n,r)=>cc(e)(t,n,r),vc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uc(e)(t,n,i)},yc=e=>async(t,n,r)=>uc(e)(t,n,r),bc=/^[cC][0-9a-z]{6,}$/,xc=/^[0-9a-z]+$/,Sc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cc=/^[0-9a-vA-V]{20}$/,wc=/^[A-Za-z0-9]{27}$/,Tc=/^[a-zA-Z0-9_-]{21}$/,Ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Oc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ac=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function jc(){return new RegExp(Ac,`u`)}var Mc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ic=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lc=/^[A-Za-z0-9_-]*$/,Rc=/^https?$/,zc=/^\+[1-9]\d{6,14}$/,Bc=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Vc=RegExp(`^${Bc}$`);function Hc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Uc(e){return RegExp(`^${Hc(e)}$`)}function Wc(e){let t=Hc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Bc}T(?:${r})$`)}var Gc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Kc=/^-?\d+$/,qc=/^-?\d+(?:\.\d+)?$/,Jc=/^(?:true|false)$/i,Yc=/^[^A-Z]*$/,Xc=/^[^a-z]*$/,K=B(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zc={number:`number`,bigint:`bigint`,object:`date`},Qc=B(`$ZodCheckLessThan`,(e,t)=>{K.init(e,t);let n=Zc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{K.init(e,t);let n=Zc[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),el=B(`$ZodCheckMultipleOf`,(e,t)=>{K.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Ts(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tl=B(`$ZodCheckNumberFormat`,(e,t)=>{K.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=zs[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Kc)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nl=B(`$ZodCheckMaxLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cs(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Zs(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),rl=B(`$ZodCheckMinLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cs(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Zs(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),il=B(`$ZodCheckLengthEquals`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cs(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Zs(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),al=B(`$ZodCheckStringFormat`,(e,t)=>{var n,r;K.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ol=B(`$ZodCheckRegex`,(e,t)=>{al.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),sl=B(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Yc,al.init(e,t)}),cl=B(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Xc,al.init(e,t)}),ll=B(`$ZodCheckIncludes`,(e,t)=>{K.init(e,t);let n=Is(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ul=B(`$ZodCheckStartsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`^${Is(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),dl=B(`$ZodCheckEndsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`.*${Is(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),fl=B(`$ZodCheckOverwrite`,(e,t)=>{K.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),pl=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}},hl={major:4,minor:4,patch:3},K=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hl;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Js(e),i;for(let a of t){if(a._zod.def.when){if(Ys(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ys;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Js(e,t))});else{if(e.issues.length===t)continue;r||=Js(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Js(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ys;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ys;return o.then(e=>t(e,r,a))}return t(o,r,a)}}B(e,`~standard`,()=>({validate:t=>{try{let n=uc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return fc(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),gl=R(`$ZodString`,(e,t)=>{K.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kc(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),q=R(`$ZodStringFormat`,(e,t)=>{ol.init(e,t),gl.init(e,t)}),_l=R(`$ZodGUID`,(e,t)=>{t.pattern??=Oc,q.init(e,t)}),vl=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=kc(e)}else t.pattern??=kc();q.init(e,t)}),yl=R(`$ZodEmail`,(e,t)=>{t.pattern??=Ac,q.init(e,t)}),bl=R(`$ZodURL`,(e,t)=>{q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===zc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),xl=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Mc(),q.init(e,t)}),Sl=R(`$ZodNanoID`,(e,t)=>{t.pattern??=Ec,q.init(e,t)}),Cl=R(`$ZodCUID`,(e,t)=>{t.pattern??=xc,q.init(e,t)}),wl=R(`$ZodCUID2`,(e,t)=>{t.pattern??=Sc,q.init(e,t)}),Tl=R(`$ZodULID`,(e,t)=>{t.pattern??=Cc,q.init(e,t)}),El=R(`$ZodXID`,(e,t)=>{t.pattern??=wc,q.init(e,t)}),Dl=R(`$ZodKSUID`,(e,t)=>{t.pattern??=Tc,q.init(e,t)}),Ol=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gc(t),q.init(e,t)}),kl=R(`$ZodISODate`,(e,t)=>{t.pattern??=Hc,q.init(e,t)}),Al=R(`$ZodISOTime`,(e,t)=>{t.pattern??=Wc(t),q.init(e,t)}),jl=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Dc,q.init(e,t)}),Ml=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Nc,q.init(e,t),e._zod.bag.format=`ipv4`}),Nl=R(`$ZodIPv6`,(e,t)=>{t.pattern??=Pc,q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Pl=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Fc,q.init(e,t)}),Fl=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ic,q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Il(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Ll=R(`$ZodBase64`,(e,t)=>{t.pattern??=Lc,q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Il(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Rl(e){if(!Rc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Il(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var zl=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Rc,q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Rl(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Bl=R(`$ZodE164`,(e,t)=>{t.pattern??=Bc,q.init(e,t)});function Vl(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Hl=R(`$ZodJWT`,(e,t)=>{q.init(e,t),e._zod.check=n=>{Vl(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ul=R(`$ZodNumber`,(e,t)=>{K.init(e,t),e._zod.pattern=e._zod.bag.pattern??Jc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Wl=R(`$ZodNumberFormat`,(e,t)=>{nl.init(e,t),Ul.init(e,t)}),Gl=R(`$ZodBoolean`,(e,t)=>{K.init(e,t),e._zod.pattern=Yc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Kl=R(`$ZodUnknown`,(e,t)=>{K.init(e,t),e._zod.parse=e=>e}),ql=R(`$ZodNever`,(e,t)=>{K.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Jl(e,t,n){e.issues.length&&t.issues.push(...Xs(n,e.issues)),t.value[n]=e.value}var Yl=R(`$ZodArray`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eJl(t,n,e))):Jl(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Xl(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Xs(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Zl(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=zs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ql(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Xl(e,n,i,t,u,d))):Xl(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var $l=R(`$ZodObject`,(e,t)=>{if(K.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=ws(()=>Zl(t));B(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ns,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Xl(n,t,e,s,r,i))):Xl(a,t,e,s,r,i)}return i?Ql(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),eu=R(`$ZodObjectJIT`,(e,t)=>{$l.init(e,t);let n=e._zod.parse,r=ws(()=>Zl(t)),i=e=>{let t=new ml([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=As(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=As(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}},ml={major:4,minor:4,patch:3},q=B(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ml;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=qs(e),i;for(let a of t){if(a._zod.def.when){if(Js(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _s;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=qs(e,t))});else{if(e.issues.length===t)continue;r||=qs(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(qs(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _s;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _s;return o.then(e=>t(e,r,a))}return t(o,r,a)}}H(e,`~standard`,()=>({validate:t=>{try{let n=lc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return dc(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),hl=B(`$ZodString`,(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gc(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),J=B(`$ZodStringFormat`,(e,t)=>{al.init(e,t),hl.init(e,t)}),gl=B(`$ZodGUID`,(e,t)=>{t.pattern??=Dc,J.init(e,t)}),_l=B(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Oc(e)}else t.pattern??=Oc();J.init(e,t)}),vl=B(`$ZodEmail`,(e,t)=>{t.pattern??=kc,J.init(e,t)}),yl=B(`$ZodURL`,(e,t)=>{J.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Rc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),bl=B(`$ZodEmoji`,(e,t)=>{t.pattern??=jc(),J.init(e,t)}),xl=B(`$ZodNanoID`,(e,t)=>{t.pattern??=Tc,J.init(e,t)}),Sl=B(`$ZodCUID`,(e,t)=>{t.pattern??=bc,J.init(e,t)}),Cl=B(`$ZodCUID2`,(e,t)=>{t.pattern??=xc,J.init(e,t)}),wl=B(`$ZodULID`,(e,t)=>{t.pattern??=Sc,J.init(e,t)}),Tl=B(`$ZodXID`,(e,t)=>{t.pattern??=Cc,J.init(e,t)}),El=B(`$ZodKSUID`,(e,t)=>{t.pattern??=wc,J.init(e,t)}),Dl=B(`$ZodISODateTime`,(e,t)=>{t.pattern??=Wc(t),J.init(e,t)}),Ol=B(`$ZodISODate`,(e,t)=>{t.pattern??=Vc,J.init(e,t)}),kl=B(`$ZodISOTime`,(e,t)=>{t.pattern??=Uc(t),J.init(e,t)}),Al=B(`$ZodISODuration`,(e,t)=>{t.pattern??=Ec,J.init(e,t)}),jl=B(`$ZodIPv4`,(e,t)=>{t.pattern??=Mc,J.init(e,t),e._zod.bag.format=`ipv4`}),Ml=B(`$ZodIPv6`,(e,t)=>{t.pattern??=Nc,J.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Nl=B(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Pc,J.init(e,t)}),Pl=B(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Fc,J.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Fl(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Il=B(`$ZodBase64`,(e,t)=>{t.pattern??=Ic,J.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Fl(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ll(e){if(!Lc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Fl(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Rl=B(`$ZodBase64URL`,(e,t)=>{t.pattern??=Lc,J.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Ll(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),zl=B(`$ZodE164`,(e,t)=>{t.pattern??=zc,J.init(e,t)});function Bl(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Vl=B(`$ZodJWT`,(e,t)=>{J.init(e,t),e._zod.check=n=>{Bl(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Hl=B(`$ZodNumber`,(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??qc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ul=B(`$ZodNumberFormat`,(e,t)=>{tl.init(e,t),Hl.init(e,t)}),Wl=B(`$ZodBoolean`,(e,t)=>{q.init(e,t),e._zod.pattern=Jc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Gl=B(`$ZodUnknown`,(e,t)=>{q.init(e,t),e._zod.parse=e=>e}),Kl=B(`$ZodNever`,(e,t)=>{q.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function ql(e,t,n){e.issues.length&&t.issues.push(...Ys(n,e.issues)),t.value[n]=e.value}var Jl=B(`$ZodArray`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eql(t,n,e))):ql(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Yl(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ys(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Xl(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Rs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Zl(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Yl(e,n,i,t,u,d))):Yl(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Ql=B(`$ZodObject`,(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=Ss(()=>Xl(t));H(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=js,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Yl(n,t,e,s,r,i))):Yl(a,t,e,s,r,i)}return i?Zl(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),$l=B(`$ZodObjectJIT`,(e,t)=>{Ql.init(e,t);let n=e._zod.parse,r=Ss(()=>Xl(t)),i=e=>{let t=new pl([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Os(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Os(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -73,6 +73,6 @@ ${u(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t= } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ns,s=!xs.jitless,c=s&&Ps.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Ql([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function tu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Js(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>W(e,r,z())))}),t)}var nu=R(`$ZodUnion`,(e,t)=>{K.init(e,t),B(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),B(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),B(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),B(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Es(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>tu(t,r,e,i)):tu(o,r,e,i)}}),ru=R(`$ZodIntersection`,(e,t)=>{K.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>au(e,t,n)):au(e,i,a)}});function iu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Fs(e)&&Fs(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=iu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Js(e))return e;let o=iu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ou=R(`$ZodRecord`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Fs(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>W(e,r,z())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Xs(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Xs(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Jc.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>W(e,r,z())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Xs(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Xs(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),su=R(`$ZodEnum`,(e,t)=>{K.init(e,t);let n=Ss(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ls.has(typeof e)).map(e=>typeof e==`string`?Rs(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),cu=R(`$ZodTransform`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bs(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ys;return n.value=i,n.fallback=!0,n}});function lu(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var uu=R(`$ZodOptional`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),B(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Es(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>lu(e,r)):lu(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),du=R(`$ZodExactOptional`,(e,t)=>{uu.init(e,t),B(e._zod,`values`,()=>t.innerType._zod.values),B(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),fu=R(`$ZodNullable`,(e,t)=>{K.init(e,t),B(e._zod,`optin`,()=>t.innerType._zod.optin),B(e._zod,`optout`,()=>t.innerType._zod.optout),B(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Es(e.source)}|null)$`):void 0}),B(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),pu=R(`$ZodDefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>mu(e,t)):mu(r,t)}});function mu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var hu=R(`$ZodPrefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),gu=R(`$ZodNonOptional`,(e,t)=>{K.init(e,t),B(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>_u(t,e)):_u(i,e)}});function _u(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var vu=R(`$ZodCatch`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,B(e._zod,`optout`,()=>t.innerType._zod.optout),B(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>W(e,n,z()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>W(e,n,z()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),yu=R(`$ZodPipe`,(e,t)=>{K.init(e,t),B(e._zod,`values`,()=>t.in._zod.values),B(e._zod,`optin`,()=>t.in._zod.optin),B(e._zod,`optout`,()=>t.out._zod.optout),B(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>bu(e,t.in,n)):bu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>bu(e,t.out,n)):bu(r,t.out,n)}});function bu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var xu=R(`$ZodReadonly`,(e,t)=>{K.init(e,t),B(e._zod,`propValues`,()=>t.innerType._zod.propValues),B(e._zod,`values`,()=>t.innerType._zod.values),B(e._zod,`optin`,()=>t.innerType?._zod?.optin),B(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Su):Su(r)}});function Su(e){return e.value=Object.freeze(e.value),e}var Cu=R(`$ZodCustom`,(e,t)=>{G.init(e,t),K.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wu(t,n,r,e));wu(i,n,r,e)}});function wu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push($s(e))}}var Tu,Eu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Du(){return new Eu}(Tu=globalThis).__zod_globalRegistry??(Tu.__zod_globalRegistry=Du());var Ou=globalThis.__zod_globalRegistry;function ku(e,t){return new e({type:`string`,...U(t)})}function Au(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...U(t)})}function ju(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...U(t)})}function Mu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...U(t)})}function Nu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...U(t)})}function Pu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...U(t)})}function Fu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...U(t)})}function Iu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...U(t)})}function Lu(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...U(t)})}function Ru(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...U(t)})}function zu(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...U(t)})}function Bu(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...U(t)})}function Vu(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...U(t)})}function Hu(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...U(t)})}function Uu(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...U(t)})}function Wu(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...U(t)})}function Gu(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...U(t)})}function Ku(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...U(t)})}function qu(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...U(t)})}function Ju(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...U(t)})}function Yu(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...U(t)})}function Xu(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...U(t)})}function Zu(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...U(t)})}function Qu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...U(t)})}function $u(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...U(t)})}function ed(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...U(t)})}function td(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...U(t)})}function nd(e,t){return new e({type:`number`,checks:[],...U(t)})}function rd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...U(t)})}function id(e,t){return new e({type:`boolean`,...U(t)})}function ad(e){return new e({type:`unknown`})}function od(e,t){return new e({type:`never`,...U(t)})}function sd(e,t){return new $c({check:`less_than`,...U(t),value:e,inclusive:!1})}function cd(e,t){return new $c({check:`less_than`,...U(t),value:e,inclusive:!0})}function ld(e,t){return new el({check:`greater_than`,...U(t),value:e,inclusive:!1})}function ud(e,t){return new el({check:`greater_than`,...U(t),value:e,inclusive:!0})}function dd(e,t){return new tl({check:`multiple_of`,...U(t),value:e})}function fd(e,t){return new rl({check:`max_length`,...U(t),maximum:e})}function pd(e,t){return new il({check:`min_length`,...U(t),minimum:e})}function md(e,t){return new al({check:`length_equals`,...U(t),length:e})}function hd(e,t){return new sl({check:`string_format`,format:`regex`,...U(t),pattern:e})}function gd(e){return new cl({check:`string_format`,format:`lowercase`,...U(e)})}function _d(e){return new ll({check:`string_format`,format:`uppercase`,...U(e)})}function vd(e,t){return new ul({check:`string_format`,format:`includes`,...U(t),includes:e})}function yd(e,t){return new dl({check:`string_format`,format:`starts_with`,...U(t),prefix:e})}function bd(e,t){return new fl({check:`string_format`,format:`ends_with`,...U(t),suffix:e})}function xd(e){return new pl({check:`overwrite`,tx:e})}function Sd(e){return xd(t=>t.normalize(e))}function Cd(){return xd(e=>e.trim())}function wd(){return xd(e=>e.toLowerCase())}function Td(){return xd(e=>e.toUpperCase())}function Ed(){return xd(e=>js(e))}function Dd(e,t,n){return new e({type:`array`,element:t,...U(n)})}function Od(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...U(n)})}function kd(e,t){let n=Ad(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push($s(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push($s(r))}},e(t.value,t)),t);return n}function Ad(e,t){let n=new G({check:`custom`,...U(t)});return n._zod.check=e,n}function jd(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ou,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function J(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,J(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Y(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Md(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=js,s=!ys.jitless,c=s&&Ms.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Zl([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function eu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!qs(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>G(e,r,V())))}),t)}var tu=B(`$ZodUnion`,(e,t)=>{q.init(e,t),H(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),H(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),H(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),H(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ws(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>eu(t,r,e,i)):eu(o,r,e,i)}}),nu=B(`$ZodIntersection`,(e,t)=>{q.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>iu(e,t,n)):iu(e,i,a)}});function ru(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ns(e)&&Ns(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ru(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),qs(e))return e;let o=ru(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var au=B(`$ZodRecord`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ns(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>G(e,r,V())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Ys(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Ys(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&qc.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>G(e,r,V())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ys(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ys(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),ou=B(`$ZodEnum`,(e,t)=>{q.init(e,t);let n=bs(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Fs.has(typeof e)).map(e=>typeof e==`string`?Is(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),su=B(`$ZodTransform`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new vs(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _s;return n.value=i,n.fallback=!0,n}});function cu(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var lu=B(`$ZodOptional`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,H(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),H(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ws(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>cu(e,r)):cu(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),uu=B(`$ZodExactOptional`,(e,t)=>{lu.init(e,t),H(e._zod,`values`,()=>t.innerType._zod.values),H(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),du=B(`$ZodNullable`,(e,t)=>{q.init(e,t),H(e._zod,`optin`,()=>t.innerType._zod.optin),H(e._zod,`optout`,()=>t.innerType._zod.optout),H(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ws(e.source)}|null)$`):void 0}),H(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),fu=B(`$ZodDefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>pu(e,t)):pu(r,t)}});function pu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var mu=B(`$ZodPrefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),hu=B(`$ZodNonOptional`,(e,t)=>{q.init(e,t),H(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>gu(t,e)):gu(i,e)}});function gu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var _u=B(`$ZodCatch`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,H(e._zod,`optout`,()=>t.innerType._zod.optout),H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>G(e,n,V()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>G(e,n,V()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),vu=B(`$ZodPipe`,(e,t)=>{q.init(e,t),H(e._zod,`values`,()=>t.in._zod.values),H(e._zod,`optin`,()=>t.in._zod.optin),H(e._zod,`optout`,()=>t.out._zod.optout),H(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>yu(e,t.in,n)):yu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>yu(e,t.out,n)):yu(r,t.out,n)}});function yu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var bu=B(`$ZodReadonly`,(e,t)=>{q.init(e,t),H(e._zod,`propValues`,()=>t.innerType._zod.propValues),H(e._zod,`values`,()=>t.innerType._zod.values),H(e._zod,`optin`,()=>t.innerType?._zod?.optin),H(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(xu):xu(r)}});function xu(e){return e.value=Object.freeze(e.value),e}var Su=B(`$ZodCustom`,(e,t)=>{K.init(e,t),q.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Cu(t,n,r,e));Cu(i,n,r,e)}});function Cu(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Qs(e))}}var wu,Tu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Eu(){return new Tu}(wu=globalThis).__zod_globalRegistry??(wu.__zod_globalRegistry=Eu());var Du=globalThis.__zod_globalRegistry;function Ou(e,t){return new e({type:`string`,...W(t)})}function ku(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...W(t)})}function Au(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...W(t)})}function ju(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...W(t)})}function Mu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...W(t)})}function Nu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...W(t)})}function Pu(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...W(t)})}function Fu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...W(t)})}function Iu(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...W(t)})}function Lu(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...W(t)})}function Ru(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...W(t)})}function zu(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...W(t)})}function Bu(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...W(t)})}function Vu(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...W(t)})}function Hu(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...W(t)})}function Uu(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...W(t)})}function Wu(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...W(t)})}function Gu(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...W(t)})}function Ku(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...W(t)})}function qu(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...W(t)})}function Ju(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...W(t)})}function Yu(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...W(t)})}function Xu(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...W(t)})}function Zu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...W(t)})}function Qu(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...W(t)})}function $u(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...W(t)})}function ed(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...W(t)})}function td(e,t){return new e({type:`number`,checks:[],...W(t)})}function nd(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...W(t)})}function rd(e,t){return new e({type:`boolean`,...W(t)})}function id(e){return new e({type:`unknown`})}function ad(e,t){return new e({type:`never`,...W(t)})}function od(e,t){return new Qc({check:`less_than`,...W(t),value:e,inclusive:!1})}function sd(e,t){return new Qc({check:`less_than`,...W(t),value:e,inclusive:!0})}function cd(e,t){return new $c({check:`greater_than`,...W(t),value:e,inclusive:!1})}function ld(e,t){return new $c({check:`greater_than`,...W(t),value:e,inclusive:!0})}function ud(e,t){return new el({check:`multiple_of`,...W(t),value:e})}function dd(e,t){return new nl({check:`max_length`,...W(t),maximum:e})}function fd(e,t){return new rl({check:`min_length`,...W(t),minimum:e})}function pd(e,t){return new il({check:`length_equals`,...W(t),length:e})}function md(e,t){return new ol({check:`string_format`,format:`regex`,...W(t),pattern:e})}function hd(e){return new sl({check:`string_format`,format:`lowercase`,...W(e)})}function gd(e){return new cl({check:`string_format`,format:`uppercase`,...W(e)})}function _d(e,t){return new ll({check:`string_format`,format:`includes`,...W(t),includes:e})}function vd(e,t){return new ul({check:`string_format`,format:`starts_with`,...W(t),prefix:e})}function yd(e,t){return new dl({check:`string_format`,format:`ends_with`,...W(t),suffix:e})}function bd(e){return new fl({check:`overwrite`,tx:e})}function xd(e){return bd(t=>t.normalize(e))}function Sd(){return bd(e=>e.trim())}function Cd(){return bd(e=>e.toLowerCase())}function wd(){return bd(e=>e.toUpperCase())}function Td(){return bd(e=>ks(e))}function Ed(e,t,n){return new e({type:`array`,element:t,...W(n)})}function Dd(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...W(n)})}function Od(e,t){let n=kd(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Qs(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Qs(r))}},e(t.value,t)),t);return n}function kd(e,t){let n=new K({check:`custom`,...W(t)});return n._zod.check=e,n}function Ad(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Du,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Y(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Y(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&X(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function jd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Nd(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Fd(t,`input`,e.processors),output:Fd(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Y(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Y(r.element,n);if(r.type===`set`)return Y(r.valueType,n);if(r.type===`lazy`)return Y(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Y(r.innerType,n);if(r.type===`intersection`)return Y(r.left,n)||Y(r.right,n);if(r.type===`record`||r.type===`map`)return Y(r.keyType,n)||Y(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Y(r.in,n)||Y(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Y(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Y(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Y(e,n))return!0;return!!(r.rest&&Y(r.rest,n))}return!1}var Pd=(e,t={})=>n=>{let r=jd({...n,processors:t});return J(e,r),Md(r,e),Nd(r,e)},Fd=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=jd({...i??{},target:a,io:t,processors:n});return J(e,o),Md(o,e),Nd(o,e)},Id={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ld=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Id[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Rd=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},zd=(e,t,n,r)=>{n.type=`boolean`},Bd=(e,t,n,r)=>{n.not={}},Vd=(e,t,n,r)=>{let i=e._zod.def,a=Ss(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=J(a.element,t,{...r,path:[...r.path,`items`]})},Gd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=J(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=J(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>J(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qd=(e,t,n,r)=>{let i=e._zod.def,a=J(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=J(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Jd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=J(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=J(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=J(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Yd=(e,t,n,r)=>{let i=e._zod.def,a=J(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Xd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Qd=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$d=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ef=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;J(o,t,r);let s=t.seen.get(e);s.ref=o},tf=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},nf=(e,t,n,r)=>{let i=e._zod.def;J(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},rf=R(`ZodISODateTime`,(e,t)=>{Ol.init(e,t),Q.init(e,t)});function af(e){return Qu(rf,e)}var of=R(`ZodISODate`,(e,t)=>{kl.init(e,t),Q.init(e,t)});function sf(e){return $u(of,e)}var cf=R(`ZodISOTime`,(e,t)=>{Al.init(e,t),Q.init(e,t)});function lf(e){return ed(cf,e)}var uf=R(`ZodISODuration`,(e,t)=>{jl.init(e,t),Q.init(e,t)});function df(e){return td(uf,e)}var X=R(`ZodError`,(e,t)=>{tc.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ic(e,t)},flatten:{value:t=>rc(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Cs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Cs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),ff=ac(X),pf=sc(X),mf=lc(X),hf=dc(X),gf=pc(X),_f=mc(X),vf=hc(X),yf=gc(X),bf=_c(X),xf=vc(X),Sf=yc(X),Cf=bc(X),wf=new WeakMap;function Tf(e,t,n){let r=Object.getPrototypeOf(e),i=wf.get(r);if(i||(i=new Set,wf.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Z=R(`ZodType`,(e,t)=>(K.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Fd(e,`input`),output:Fd(e,`output`)}}),e.toJSONSchema=Pd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ff(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>mf(e,t,n),e.parseAsync=async(t,n)=>pf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>hf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>gf(e,t,n),e.decode=(t,n)=>_f(e,t,n),e.encodeAsync=async(t,n)=>vf(e,t,n),e.decodeAsync=async(t,n)=>yf(e,t,n),e.safeEncode=(t,n)=>bf(e,t,n),e.safeDecode=(t,n)=>xf(e,t,n),e.safeEncodeAsync=async(t,n)=>Sf(e,t,n),e.safeDecodeAsync=async(t,n)=>Cf(e,t,n),Tf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return H(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Lp(e,t))},superRefine(e,t){return this.check(Rp(e,t))},overwrite(e){return this.check(xd(e))},optional(){return yp(this)},exactOptional(){return xp(this)},nullable(){return Cp(this)},nullish(){return yp(Cp(this))},nonoptional(e){return kp(this,e)},array(){return ap(this)},or(e){return lp([this,e])},and(e){return dp(this,e)},transform(e){return Np(this,_p(e))},default(e){return Tp(this,e)},prefault(e){return Dp(this,e)},catch(e){return jp(this,e)},pipe(e){return Np(this,e)},readonly(){return Fp(this)},describe(e){let t=this.clone();return Ou.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ou.get(this);let t=this.clone();return Ou.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Ou.get(e)?.description},configurable:!0}),e)),Ef=R(`_ZodString`,(e,t)=>{gl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Tf(e,`_ZodString`,{regex(...e){return this.check(hd(...e))},includes(...e){return this.check(vd(...e))},startsWith(...e){return this.check(yd(...e))},endsWith(...e){return this.check(bd(...e))},min(...e){return this.check(pd(...e))},max(...e){return this.check(fd(...e))},length(...e){return this.check(md(...e))},nonempty(...e){return this.check(pd(1,...e))},lowercase(e){return this.check(gd(e))},uppercase(e){return this.check(_d(e))},trim(){return this.check(Cd())},normalize(...e){return this.check(Sd(...e))},toLowerCase(){return this.check(wd())},toUpperCase(){return this.check(Td())},slugify(){return this.check(Ed())}})}),Df=R(`ZodString`,(e,t)=>{gl.init(e,t),Ef.init(e,t),e.email=t=>e.check(Au(kf,t)),e.url=t=>e.check(Iu(Mf,t)),e.jwt=t=>e.check(Zu(qf,t)),e.emoji=t=>e.check(Lu(Nf,t)),e.guid=t=>e.check(ju(Af,t)),e.uuid=t=>e.check(Mu(jf,t)),e.uuidv4=t=>e.check(Nu(jf,t)),e.uuidv6=t=>e.check(Pu(jf,t)),e.uuidv7=t=>e.check(Fu(jf,t)),e.nanoid=t=>e.check(Ru(Pf,t)),e.guid=t=>e.check(ju(Af,t)),e.cuid=t=>e.check(zu(Ff,t)),e.cuid2=t=>e.check(Bu(If,t)),e.ulid=t=>e.check(Vu(Lf,t)),e.base64=t=>e.check(Ju(Wf,t)),e.base64url=t=>e.check(Yu(Gf,t)),e.xid=t=>e.check(Hu(Rf,t)),e.ksuid=t=>e.check(Uu(zf,t)),e.ipv4=t=>e.check(Wu(Bf,t)),e.ipv6=t=>e.check(Gu(Vf,t)),e.cidrv4=t=>e.check(Ku(Hf,t)),e.cidrv6=t=>e.check(qu(Uf,t)),e.e164=t=>e.check(Xu(Kf,t)),e.datetime=t=>e.check(af(t)),e.date=t=>e.check(sf(t)),e.time=t=>e.check(lf(t)),e.duration=t=>e.check(df(t))});function Of(e){return ku(Df,e)}var Q=R(`ZodStringFormat`,(e,t)=>{q.init(e,t),Ef.init(e,t)}),kf=R(`ZodEmail`,(e,t)=>{yl.init(e,t),Q.init(e,t)}),Af=R(`ZodGUID`,(e,t)=>{_l.init(e,t),Q.init(e,t)}),jf=R(`ZodUUID`,(e,t)=>{vl.init(e,t),Q.init(e,t)}),Mf=R(`ZodURL`,(e,t)=>{bl.init(e,t),Q.init(e,t)}),Nf=R(`ZodEmoji`,(e,t)=>{xl.init(e,t),Q.init(e,t)}),Pf=R(`ZodNanoID`,(e,t)=>{Sl.init(e,t),Q.init(e,t)}),Ff=R(`ZodCUID`,(e,t)=>{Cl.init(e,t),Q.init(e,t)}),If=R(`ZodCUID2`,(e,t)=>{wl.init(e,t),Q.init(e,t)}),Lf=R(`ZodULID`,(e,t)=>{Tl.init(e,t),Q.init(e,t)}),Rf=R(`ZodXID`,(e,t)=>{El.init(e,t),Q.init(e,t)}),zf=R(`ZodKSUID`,(e,t)=>{Dl.init(e,t),Q.init(e,t)}),Bf=R(`ZodIPv4`,(e,t)=>{Ml.init(e,t),Q.init(e,t)}),Vf=R(`ZodIPv6`,(e,t)=>{Nl.init(e,t),Q.init(e,t)}),Hf=R(`ZodCIDRv4`,(e,t)=>{Pl.init(e,t),Q.init(e,t)}),Uf=R(`ZodCIDRv6`,(e,t)=>{Fl.init(e,t),Q.init(e,t)}),Wf=R(`ZodBase64`,(e,t)=>{Ll.init(e,t),Q.init(e,t)}),Gf=R(`ZodBase64URL`,(e,t)=>{zl.init(e,t),Q.init(e,t)}),Kf=R(`ZodE164`,(e,t)=>{Bl.init(e,t),Q.init(e,t)}),qf=R(`ZodJWT`,(e,t)=>{Hl.init(e,t),Q.init(e,t)}),Jf=R(`ZodNumber`,(e,t)=>{Ul.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r),Tf(e,`ZodNumber`,{gt(e,t){return this.check(ld(e,t))},gte(e,t){return this.check(ud(e,t))},min(e,t){return this.check(ud(e,t))},lt(e,t){return this.check(sd(e,t))},lte(e,t){return this.check(cd(e,t))},max(e,t){return this.check(cd(e,t))},int(e){return this.check(Zf(e))},safe(e){return this.check(Zf(e))},positive(e){return this.check(ld(0,e))},nonnegative(e){return this.check(ud(0,e))},negative(e){return this.check(sd(0,e))},nonpositive(e){return this.check(cd(0,e))},multipleOf(e,t){return this.check(dd(e,t))},step(e,t){return this.check(dd(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Yf(e){return nd(Jf,e)}var Xf=R(`ZodNumberFormat`,(e,t)=>{Wl.init(e,t),Jf.init(e,t)});function Zf(e){return rd(Xf,e)}var Qf=R(`ZodBoolean`,(e,t)=>{Gl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)});function $f(e){return id(Qf,e)}var ep=R(`ZodUnknown`,(e,t)=>{Kl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function tp(){return ad(ep)}var np=R(`ZodNever`,(e,t)=>{ql.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r)});function rp(e){return od(np,e)}var ip=R(`ZodArray`,(e,t)=>{Yl.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),e.element=t.element,Tf(e,`ZodArray`,{min(e,t){return this.check(pd(e,t))},nonempty(e){return this.check(pd(1,e))},max(e,t){return this.check(fd(e,t))},length(e,t){return this.check(md(e,t))},unwrap(){return this.element}})});function ap(e,t){return Dd(ip,e,t)}var op=R(`ZodObject`,(e,t)=>{eu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),B(e,`shape`,()=>t.shape),Tf(e,`ZodObject`,{keyof(){return hp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:tp()})},loose(){return this.clone({...this._zod.def,catchall:tp()})},strict(){return this.clone({...this._zod.def,catchall:rp()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Us(this,e)},safeExtend(e){return Ws(this,e)},merge(e){return Gs(this,e)},pick(e){return Vs(this,e)},omit(e){return Hs(this,e)},partial(...e){return Ks(vp,this,e[0])},required(...e){return qs(Op,this,e[0])}})});function sp(e,t){return new op({type:`object`,shape:e??{},...U(t)})}var cp=R(`ZodUnion`,(e,t)=>{nu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r),e.options=t.options});function lp(e,t){return new cp({type:`union`,options:e,...U(t)})}var up=R(`ZodIntersection`,(e,t)=>{ru.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r)});function dp(e,t){return new up({type:`intersection`,left:e,right:t})}var fp=R(`ZodRecord`,(e,t)=>{ou.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function pp(e,t,n){return!t||!t._zod?new fp({type:`record`,keyType:Of(),valueType:e,...U(t)}):new fp({type:`record`,keyType:e,valueType:t,...U(n)})}var mp=R(`ZodEnum`,(e,t)=>{su.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new mp({...t,checks:[],...U(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new mp({...t,checks:[],...U(r),entries:i})}});function hp(e,t){return new mp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...U(t)})}var gp=R(`ZodTransform`,(e,t)=>{cu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bs(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push($s(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push($s(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function _p(e){return new gp({type:`transform`,transform:e})}var vp=R(`ZodOptional`,(e,t)=>{uu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yp(e){return new vp({type:`optional`,innerType:e})}var bp=R(`ZodExactOptional`,(e,t)=>{du.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new bp({type:`optional`,innerType:e})}var Sp=R(`ZodNullable`,(e,t)=>{fu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cp(e){return new Sp({type:`nullable`,innerType:e})}var wp=R(`ZodDefault`,(e,t)=>{pu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Tp(e,t){return new wp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Is(t)}})}var Ep=R(`ZodPrefault`,(e,t)=>{hu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Dp(e,t){return new Ep({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Is(t)}})}var Op=R(`ZodNonOptional`,(e,t)=>{gu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function kp(e,t){return new Op({type:`nonoptional`,innerType:e,...U(t)})}var Ap=R(`ZodCatch`,(e,t)=>{vu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function jp(e,t){return new Ap({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Mp=R(`ZodPipe`,(e,t)=>{yu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.in=t.in,e.out=t.out});function Np(e,t){return new Mp({type:`pipe`,in:e,out:t})}var Pp=R(`ZodReadonly`,(e,t)=>{xu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Fp(e){return new Pp({type:`readonly`,innerType:e})}var Ip=R(`ZodCustom`,(e,t)=>{Cu.init(e,t),Z.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r)});function Lp(e,t={}){return Od(Ip,e,t)}function Rp(e,t){return kd(e,t)}var zp=`spinifex:v2:aws-session`,Bp=sp({accessKeyId:Of().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Of().min(1,`Secret Access Key is required`)}),Vp=sp({accessKeyId:Of().min(1),secretAccessKey:Of().min(1),sessionToken:Of().min(1),expiration:Of().min(1)}),$;function Hp(e){let t=Date.parse(e);return Number.isNaN(t)||t<=Date.now()}function Up(){try{let e=localStorage.getItem(zp);if(!e)return null;let t=JSON.parse(e),n=Vp.safeParse(t);return n.success?n.data:null}catch{return null}}function Wp(){return $===void 0&&($=Up()),$&&Hp($.expiration)?(Kp(),null):$}function Gp(e){try{localStorage.setItem(zp,JSON.stringify(e)),$=e}catch{$=e}}function Kp(){try{localStorage.removeItem(zp)}catch{}$=null}export{zr as $,Ra as A,Xt as At,Gi as B,wt as Bt,es as C,gn as Ct,Eo as D,$t as Dt,Oo as E,sn as Et,ba as F,Ut as Ft,ji as G,_ as Gt,Bi as H,Tt as Ht,ha as I,Mt as It,Di as J,Oi as K,ma as L,St as Lt,ja as M,N as Mt,Oa as N,Gt as Nt,Ba as O,Qt as Ot,Ea as P,M as Pt,Wr as Q,Qi as R,jt as Rt,is as S,yn as St,Lo as T,ln as Tt,Fi as U,Ot as Ut,Wi as V,Dt as Vt,Pi as W,At as Wt,Si as X,Ei as Y,qr as Z,hs as _,Mn as _t,hp as a,Pr as at,us as b,Cn as bt,Zf as c,Or as ct,pp as d,Er as dt,Br as et,Of as f,wr as ft,_s as g,Hn as gt,tc as h,Jn as ht,Gp as i,Fr as it,Aa as j,Yt as jt,za as k,Zt as kt,Yf as l,Tr as lt,cc as m,Yn as mt,Kp as n,Lr as nt,ap as o,Ar as ot,oc as p,Qn as pt,L as q,Wp as r,Ir as rt,$f as s,kr as st,Bp as t,Rr as tt,sp as u,Dr as ut,fs as v,kn as vt,Zo as w,P as wt,os as x,xn as xt,ds as y,An as yt,qi as z,Nt as zt}; \ No newline at end of file +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Md(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Pd(t,`input`,e.processors),output:Pd(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function X(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return X(r.element,n);if(r.type===`set`)return X(r.valueType,n);if(r.type===`lazy`)return X(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return X(r.innerType,n);if(r.type===`intersection`)return X(r.left,n)||X(r.right,n);if(r.type===`record`||r.type===`map`)return X(r.keyType,n)||X(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:X(r.in,n)||X(r.out,n);if(r.type===`object`){for(let e in r.shape)if(X(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(X(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(X(e,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}var Nd=(e,t={})=>n=>{let r=Ad({...n,processors:t});return Y(e,r),jd(r,e),Md(r,e)},Pd=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Ad({...i??{},target:a,io:t,processors:n});return Y(e,o),jd(o,e),Md(o,e)},Fd={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Id=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Fd[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ld=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Rd=(e,t,n,r)=>{n.type=`boolean`},zd=(e,t,n,r)=>{n.not={}},Bd=(e,t,n,r)=>{let i=e._zod.def,a=bs(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Vd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Hd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ud=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y(a.element,t,{...r,path:[...r.path,`items`]})},Wd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Gd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Kd=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},qd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Y(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Y(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Y(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Jd=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Yd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Xd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Zd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Qd=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},$d=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Y(o,t,r);let s=t.seen.get(e);s.ref=o},ef=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},tf=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},nf=B(`ZodISODateTime`,(e,t)=>{Dl.init(e,t),$.init(e,t)});function rf(e){return Zu(nf,e)}var af=B(`ZodISODate`,(e,t)=>{Ol.init(e,t),$.init(e,t)});function of(e){return Qu(af,e)}var sf=B(`ZodISOTime`,(e,t)=>{kl.init(e,t),$.init(e,t)});function cf(e){return $u(sf,e)}var lf=B(`ZodISODuration`,(e,t)=>{Al.init(e,t),$.init(e,t)});function uf(e){return ed(lf,e)}var Z=B(`ZodError`,(e,t)=>{ec.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>rc(e,t)},flatten:{value:t=>nc(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,xs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,xs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),df=ic(Z),ff=oc(Z),pf=cc(Z),mf=uc(Z),hf=fc(Z),gf=pc(Z),_f=mc(Z),vf=hc(Z),yf=gc(Z),bf=_c(Z),xf=vc(Z),Sf=yc(Z),Cf=new WeakMap;function wf(e,t,n){let r=Object.getPrototypeOf(e),i=Cf.get(r);if(i||(i=new Set,Cf.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Q=B(`ZodType`,(e,t)=>(q.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Pd(e,`input`),output:Pd(e,`output`)}}),e.toJSONSchema=Nd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>df(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>pf(e,t,n),e.parseAsync=async(t,n)=>ff(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>mf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>hf(e,t,n),e.decode=(t,n)=>gf(e,t,n),e.encodeAsync=async(t,n)=>_f(e,t,n),e.decodeAsync=async(t,n)=>vf(e,t,n),e.safeEncode=(t,n)=>yf(e,t,n),e.safeDecode=(t,n)=>bf(e,t,n),e.safeEncodeAsync=async(t,n)=>xf(e,t,n),e.safeDecodeAsync=async(t,n)=>Sf(e,t,n),wf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(U(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ls(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ip(e,t))},superRefine(e,t){return this.check(Lp(e,t))},overwrite(e){return this.check(bd(e))},optional(){return vp(this)},exactOptional(){return bp(this)},nullable(){return Sp(this)},nullish(){return vp(Sp(this))},nonoptional(e){return Op(this,e)},array(){return ip(this)},or(e){return cp([this,e])},and(e){return up(this,e)},transform(e){return Mp(this,gp(e))},default(e){return wp(this,e)},prefault(e){return Ep(this,e)},catch(e){return Ap(this,e)},pipe(e){return Mp(this,e)},readonly(){return Pp(this)},describe(e){let t=this.clone();return Du.add(t,{description:e}),t},meta(...e){if(e.length===0)return Du.get(this);let t=this.clone();return Du.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Du.get(e)?.description},configurable:!0}),e)),Tf=B(`_ZodString`,(e,t)=>{hl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Id(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,wf(e,`_ZodString`,{regex(...e){return this.check(md(...e))},includes(...e){return this.check(_d(...e))},startsWith(...e){return this.check(vd(...e))},endsWith(...e){return this.check(yd(...e))},min(...e){return this.check(fd(...e))},max(...e){return this.check(dd(...e))},length(...e){return this.check(pd(...e))},nonempty(...e){return this.check(fd(1,...e))},lowercase(e){return this.check(hd(e))},uppercase(e){return this.check(gd(e))},trim(){return this.check(Sd())},normalize(...e){return this.check(xd(...e))},toLowerCase(){return this.check(Cd())},toUpperCase(){return this.check(wd())},slugify(){return this.check(Td())}})}),Ef=B(`ZodString`,(e,t)=>{hl.init(e,t),Tf.init(e,t),e.email=t=>e.check(ku(Of,t)),e.url=t=>e.check(Fu(jf,t)),e.jwt=t=>e.check(Xu(Kf,t)),e.emoji=t=>e.check(Iu(Mf,t)),e.guid=t=>e.check(Au(kf,t)),e.uuid=t=>e.check(ju(Af,t)),e.uuidv4=t=>e.check(Mu(Af,t)),e.uuidv6=t=>e.check(Nu(Af,t)),e.uuidv7=t=>e.check(Pu(Af,t)),e.nanoid=t=>e.check(Lu(Nf,t)),e.guid=t=>e.check(Au(kf,t)),e.cuid=t=>e.check(Ru(Pf,t)),e.cuid2=t=>e.check(zu(Ff,t)),e.ulid=t=>e.check(Bu(If,t)),e.base64=t=>e.check(qu(Uf,t)),e.base64url=t=>e.check(Ju(Wf,t)),e.xid=t=>e.check(Vu(Lf,t)),e.ksuid=t=>e.check(Hu(Rf,t)),e.ipv4=t=>e.check(Uu(zf,t)),e.ipv6=t=>e.check(Wu(Bf,t)),e.cidrv4=t=>e.check(Gu(Vf,t)),e.cidrv6=t=>e.check(Ku(Hf,t)),e.e164=t=>e.check(Yu(Gf,t)),e.datetime=t=>e.check(rf(t)),e.date=t=>e.check(of(t)),e.time=t=>e.check(cf(t)),e.duration=t=>e.check(uf(t))});function Df(e){return Ou(Ef,e)}var $=B(`ZodStringFormat`,(e,t)=>{J.init(e,t),Tf.init(e,t)}),Of=B(`ZodEmail`,(e,t)=>{vl.init(e,t),$.init(e,t)}),kf=B(`ZodGUID`,(e,t)=>{gl.init(e,t),$.init(e,t)}),Af=B(`ZodUUID`,(e,t)=>{_l.init(e,t),$.init(e,t)}),jf=B(`ZodURL`,(e,t)=>{yl.init(e,t),$.init(e,t)}),Mf=B(`ZodEmoji`,(e,t)=>{bl.init(e,t),$.init(e,t)}),Nf=B(`ZodNanoID`,(e,t)=>{xl.init(e,t),$.init(e,t)}),Pf=B(`ZodCUID`,(e,t)=>{Sl.init(e,t),$.init(e,t)}),Ff=B(`ZodCUID2`,(e,t)=>{Cl.init(e,t),$.init(e,t)}),If=B(`ZodULID`,(e,t)=>{wl.init(e,t),$.init(e,t)}),Lf=B(`ZodXID`,(e,t)=>{Tl.init(e,t),$.init(e,t)}),Rf=B(`ZodKSUID`,(e,t)=>{El.init(e,t),$.init(e,t)}),zf=B(`ZodIPv4`,(e,t)=>{jl.init(e,t),$.init(e,t)}),Bf=B(`ZodIPv6`,(e,t)=>{Ml.init(e,t),$.init(e,t)}),Vf=B(`ZodCIDRv4`,(e,t)=>{Nl.init(e,t),$.init(e,t)}),Hf=B(`ZodCIDRv6`,(e,t)=>{Pl.init(e,t),$.init(e,t)}),Uf=B(`ZodBase64`,(e,t)=>{Il.init(e,t),$.init(e,t)}),Wf=B(`ZodBase64URL`,(e,t)=>{Rl.init(e,t),$.init(e,t)}),Gf=B(`ZodE164`,(e,t)=>{zl.init(e,t),$.init(e,t)}),Kf=B(`ZodJWT`,(e,t)=>{Vl.init(e,t),$.init(e,t)}),qf=B(`ZodNumber`,(e,t)=>{Hl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ld(e,t,n,r),wf(e,`ZodNumber`,{gt(e,t){return this.check(cd(e,t))},gte(e,t){return this.check(ld(e,t))},min(e,t){return this.check(ld(e,t))},lt(e,t){return this.check(od(e,t))},lte(e,t){return this.check(sd(e,t))},max(e,t){return this.check(sd(e,t))},int(e){return this.check(Xf(e))},safe(e){return this.check(Xf(e))},positive(e){return this.check(cd(0,e))},nonnegative(e){return this.check(ld(0,e))},negative(e){return this.check(od(0,e))},nonpositive(e){return this.check(sd(0,e))},multipleOf(e,t){return this.check(ud(e,t))},step(e,t){return this.check(ud(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Jf(e){return td(qf,e)}var Yf=B(`ZodNumberFormat`,(e,t)=>{Ul.init(e,t),qf.init(e,t)});function Xf(e){return nd(Yf,e)}var Zf=B(`ZodBoolean`,(e,t)=>{Wl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rd(e,t,n,r)});function Qf(e){return rd(Zf,e)}var $f=B(`ZodUnknown`,(e,t)=>{Gl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ep(){return id($f)}var tp=B(`ZodNever`,(e,t)=>{Kl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zd(e,t,n,r)});function np(e){return ad(tp,e)}var rp=B(`ZodArray`,(e,t)=>{Jl.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ud(e,t,n,r),e.element=t.element,wf(e,`ZodArray`,{min(e,t){return this.check(fd(e,t))},nonempty(e){return this.check(fd(1,e))},max(e,t){return this.check(dd(e,t))},length(e,t){return this.check(pd(e,t))},unwrap(){return this.element}})});function ip(e,t){return Ed(rp,e,t)}var ap=B(`ZodObject`,(e,t)=>{$l.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wd(e,t,n,r),H(e,`shape`,()=>t.shape),wf(e,`ZodObject`,{keyof(){return mp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:ep()})},loose(){return this.clone({...this._zod.def,catchall:ep()})},strict(){return this.clone({...this._zod.def,catchall:np()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Hs(this,e)},safeExtend(e){return Us(this,e)},merge(e){return Ws(this,e)},pick(e){return Bs(this,e)},omit(e){return Vs(this,e)},partial(...e){return Gs(_p,this,e[0])},required(...e){return Ks(Dp,this,e[0])}})});function op(e,t){return new ap({type:`object`,shape:e??{},...W(t)})}var sp=B(`ZodUnion`,(e,t)=>{tu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gd(e,t,n,r),e.options=t.options});function cp(e,t){return new sp({type:`union`,options:e,...W(t)})}var lp=B(`ZodIntersection`,(e,t)=>{nu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kd(e,t,n,r)});function up(e,t){return new lp({type:`intersection`,left:e,right:t})}var dp=B(`ZodRecord`,(e,t)=>{au.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function fp(e,t,n){return!t||!t._zod?new dp({type:`record`,keyType:Df(),valueType:e,...W(t)}):new dp({type:`record`,keyType:e,valueType:t,...W(n)})}var pp=B(`ZodEnum`,(e,t)=>{ou.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bd(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new pp({...t,checks:[],...W(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new pp({...t,checks:[],...W(r),entries:i})}});function mp(e,t){return new pp({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}var hp=B(`ZodTransform`,(e,t)=>{su.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hd(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new vs(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Qs(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Qs(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function gp(e){return new hp({type:`transform`,transform:e})}var _p=B(`ZodOptional`,(e,t)=>{lu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vp(e){return new _p({type:`optional`,innerType:e})}var yp=B(`ZodExactOptional`,(e,t)=>{uu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tf(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bp(e){return new yp({type:`optional`,innerType:e})}var xp=B(`ZodNullable`,(e,t)=>{du.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Sp(e){return new xp({type:`nullable`,innerType:e})}var Cp=B(`ZodDefault`,(e,t)=>{fu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wp(e,t){return new Cp({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ps(t)}})}var Tp=B(`ZodPrefault`,(e,t)=>{mu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ep(e,t){return new Tp({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ps(t)}})}var Dp=B(`ZodNonOptional`,(e,t)=>{hu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Op(e,t){return new Dp({type:`nonoptional`,innerType:e,...W(t)})}var kp=B(`ZodCatch`,(e,t)=>{_u.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ap(e,t){return new kp({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var jp=B(`ZodPipe`,(e,t)=>{vu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$d(e,t,n,r),e.in=t.in,e.out=t.out});function Mp(e,t){return new jp({type:`pipe`,in:e,out:t})}var Np=B(`ZodReadonly`,(e,t)=>{bu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ef(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Pp(e){return new Np({type:`readonly`,innerType:e})}var Fp=B(`ZodCustom`,(e,t)=>{Su.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vd(e,t,n,r)});function Ip(e,t={}){return Dd(Fp,e,t)}function Lp(e,t){return Od(e,t)}var Rp=`spinifex:v2:aws-session`,zp=op({accessKeyId:Df().min(16,`Access Key ID must be at least 16 characters`),secretAccessKey:Df().min(1,`Secret Access Key is required`)}),Bp=op({accessKeyId:Df().min(1),secretAccessKey:Df().min(1),sessionToken:Df().min(1),expiration:Df().min(1)}),Vp;function Hp(e){let t=Date.parse(e);return Number.isNaN(t)||t<=Date.now()}function Up(){try{let e=localStorage.getItem(Rp);if(!e)return null;let t=JSON.parse(e),n=Bp.safeParse(t);return n.success?n.data:null}catch{return null}}function Wp(){return Vp===void 0&&(Vp=Up()),Vp&&Hp(Vp.expiration)?(Kp(),null):Vp}function Gp(e){try{localStorage.setItem(Rp,JSON.stringify(e)),Vp=e}catch{Vp=e}}function Kp(){try{localStorage.removeItem(Rp)}catch{}Vp=null}export{Pr as $,Ia as A,Wt as At,zi as B,St as Bt,Qo as C,mn as Ct,wo as D,Zt as Dt,Eo as E,an as Et,va as F,Lt as Ft,_i as G,_ as Gt,Fi as H,Ct as Ht,fa as I,At as It,Jr as J,ti as K,ma as L,bt as Lt,Ea as M,P as Mt,ya as N,zt as Nt,Ra as O,Xt as Ot,ba as P,N as Pt,Lr as Q,pa as R,kt as Rt,ns as S,_n as St,Fo as T,sn as Tt,ki as U,Et as Ut,Ii as V,Tt as Vt,vi as W,Ot as Wt,Ur as X,qr as Y,Rr as Z,ps as _,An as _t,mp as a,Xn as at,cs as b,bn as bt,Xf as c,Un as ct,fp as d,zn as dt,jr as et,Df as f,Rn as ft,hs as g,jn as gt,ec as h,Mn as ht,Gp as i,Tr as it,Oa as j,Ut as jt,La as k,Gt as kt,Jf as l,Vn as lt,sc as m,Nn as mt,Kp as n,Ar as nt,ip as o,qn as ot,ac as p,Ln as pt,Xr as q,Wp as r,kr as rt,Qf as s,Hn as st,zp as t,R as tt,op as u,Bn as ut,us as v,Dn as vt,Yo as w,I as wt,is as x,yn as xt,ls as y,On as yt,da as z,jt as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js index 7751a9fe7..f49586006 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js @@ -1,2 +1,2 @@ -import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u as re}from"./useStore.js";import{$ as ie,A as ae,B as oe,C as se,Ct as ce,Dt as le,E as ue,Et as de,F as fe,Ft as pe,G as me,H as he,I as ge,J as _e,K as ve,L as ye,M as be,Mt as xe,N as Se,Nt as Ce,O as we,Ot as Te,P as Ee,Pt as De,Q as Oe,R as ke,S as Ae,St as je,T as Me,Tt as Ne,U as Pe,V as eee,W as Fe,X as Ie,Y as Le,_ as Re,_t as ze,b as Be,bt as Ve,ct as He,dt as Ue,et as We,ft as Ge,g as Ke,gt as qe,ht as Je,it as Ye,j as Xe,jt as Ze,k as Qe,kt as $e,mt as et,nt as tt,ot as nt,pt as rt,q as it,r as at,rt as ot,st,tt as tee,ut as nee,v as ree,vt as ct,w as iee,wt as lt,x as ut,xt as dt,y as ft,yt as pt,z as mt}from"./auth.js";import{A as aee,C as oee,D as see,F as ht,I as gt,M as _t,N as vt,O as yt,P as bt,S as cee,c as lee,f as xt,j as uee,k as St,p as dee,s as fee,u as Ct,v as wt,x as Tt}from"./tslib.es6.js";import{n as pee,r as mee}from"./index.browser.js";var hee=`Error preloading route! ☝️`,gee=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{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=gee()})),Dt=n(r(),1);t();var _ee=n(Et(),1);function vee(e,t){let n=l(),r=o(t),{activeProps:ie,inactiveProps:ae,activeOptions:oe,to:se,preload:ce,preloadDelay:le,preloadIntentProximity:ue,hashScrollIntoView:de,replace:fe,startTransition:pe,resetScroll:me,viewTransition:he,children:ge,target:_e,disabled:ve,style:ye,className:be,onClick:xe,onBlur:Se,onFocus:Ce,onMouseEnter:we,onMouseLeave:Te,onTouchStart:Ee,ignoreBlocker:De,params:Oe,search:ke,hash:Ae,state:je,mask:Me,reloadDocument:Ne,unsafeRelative:Pe,from:eee,_fromLocation:Fe,...Ie}=e,Le=te(),Re=Dt.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ze=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),Be=Dt.useMemo(()=>{let e={_fromLocation:ze,...Re};return n.buildLocation(e)},[n,ze,Re]),Ve=Be.maskedLocation?Be.maskedLocation.publicHref:Be.publicHref,He=Be.maskedLocation?Be.maskedLocation.external:Be.external,Ue=Dt.useMemo(()=>Pt(Ve,He,n.history,ve),[ve,He,Ve,n.history]),We=Dt.useMemo(()=>{if(Ue?.external)return a(Ue.href,n.protocolAllowlist)?void 0:Ue.href;if(!Ft(se)&&!(typeof se!=`string`||se.indexOf(`:`)===-1))try{return new URL(se),a(se,n.protocolAllowlist)?void 0:se}catch{}},[se,Ue,n.protocolAllowlist]),Ge=Dt.useMemo(()=>{if(We)return!1;if(oe?.exact){if(!re(ze.pathname,Be.pathname,n.basepath))return!1}else{let e=ee(ze.pathname,n.basepath),t=ee(Be.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(oe?.includeSearch??!0)&&!i(ze.search,Be.search,{partial:!oe?.exact,ignoreUndefined:!oe?.explicitUndefined})?!1:oe?.includeHash?Le&&ze.hash===Be.hash:!0},[oe?.exact,oe?.explicitUndefined,oe?.includeHash,oe?.includeSearch,ze,We,Le,Be.hash,Be.pathname,Be.search,n.basepath]),Ke=Ge?s(ie,{})??yee:Ot,qe=Ge?Ot:s(ae,{})??Ot,Je=[be,Ke.className,qe.className].filter(Boolean).join(` `),Ye=(ye||Ke.style||qe.style)&&{...ye,...Ke.style,...qe.style},[Xe,Ze]=Dt.useState(!1),Qe=Dt.useRef(!1),$e=e.reloadDocument||We?!1:ce??n.options.defaultPreload,et=le??n.options.defaultPreloadDelay??0,tt=Dt.useCallback(()=>{n.preloadRoute({...Re,_builtLocation:Be}).catch(e=>{console.warn(e),console.warn(hee)})},[n,Re,Be]);c(r,Dt.useCallback(e=>{e?.isIntersecting&&tt()},[tt]),Mt,{disabled:!!ve||$e!==`viewport`}),Dt.useEffect(()=>{Qe.current||!ve&&$e===`render`&&(tt(),Qe.current=!0)},[ve,tt,$e]);let nt=e=>{let t=e.currentTarget.getAttribute(`target`),r=_e===void 0?t:_e;if(!ve&&!Lt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,_ee.flushSync)(()=>{Ze(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ze(!1)});n.navigate({...Re,replace:fe,resetScroll:me,hashScrollIntoView:de,startTransition:pe,viewTransition:he,ignoreBlocker:De})}};if(We)return{...Ie,ref:r,href:We,...ge&&{children:ge},..._e&&{target:_e},...ve&&{disabled:ve},...ye&&{style:ye},...be&&{className:be},...xe&&{onClick:xe},...Se&&{onBlur:Se},...Ce&&{onFocus:Ce},...we&&{onMouseEnter:we},...Te&&{onMouseLeave:Te},...Ee&&{onTouchStart:Ee}};let rt=e=>{if(ve||$e!==`intent`)return;if(!et){tt();return}let t=e.currentTarget;if(jt.has(t))return;let n=setTimeout(()=>{jt.delete(t),tt()},et);jt.set(t,n)},it=e=>{ve||$e!==`intent`||tt()},at=e=>{if(ve||!$e||!et)return;let t=e.currentTarget,n=jt.get(t);n&&(clearTimeout(n),jt.delete(t))};return{...Ie,...Ke,...qe,href:Ue?.href,ref:r,onClick:Nt([xe,nt]),onBlur:Nt([Se,at]),onFocus:Nt([Ce,rt]),onMouseEnter:Nt([we,rt]),onMouseLeave:Nt([Te,at]),onTouchStart:Nt([Ee,it]),disabled:!!ve,target:_e,...Ye&&{style:Ye},...Je&&{className:Je},...ve&&bee,...Ge&&kt,...Le&&Xe&&At}}var Ot={},yee={className:`active`},bee={role:`link`,"aria-disabled":!0},kt={"data-status":`active`,"aria-current":`page`},At={"data-transitioning":`transitioning`},jt=new WeakMap,Mt={rootMargin:`100px`},Nt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Pt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Ft(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var It=Dt.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=vee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Dt.createElement(`a`,t,o)}return Dt.createElement(n,a,o)});function Lt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Rt=class extends Ye{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=lt.of(e?.input),l=[],ee=[],te=!1,ne,re=new De({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(re,s),this.setHostPrefix(re,e,r);let t=Ne(e.traits);if(t.http){re.method=t.http[0];let[e,n]=t.http[1].split(`?`);re.path==`/`?re.path=e:re.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(re.path.includes(`{${e}+}`)||re.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();re.path.includes(`{${e}+}`)?re.path=re.path.replace(`{${e}+}`,n.split(`/`).map(st).join(`/`)):re.path.includes(`{${e}}`)&&(re.path=re.path.replace(`{${e}}`,st(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return re.headers=o,re.query=a,re.body=ne,re}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=lt.of(e.output),a={};if(n.statusCode>=300){let i=await He(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await He(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await He(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=lt.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=xt(n.body);else if(n.body){let i=await He(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?oee(o,`,`,2):cee(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},zt=class extends nt{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new tee(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=lt.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??vt;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??ht;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Bt=class extends nt{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=lt.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(tt(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=St(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??bt)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:see(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=yt.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??bt)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Ct():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Vt=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Bt(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=lt.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function xee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new Tt(e,`bigDecimal`):BigInt(e)}return t}var See=(e,t)=>He(e,t).then(e=>(t?.utf8Encoder??vt)(e)),Cee=(e,t)=>See(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),Ht=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Ut=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},wee=(e,t)=>Wt(e,t,[`header`,`code`,`type`]),Tee=(e,t,n=!1)=>Wt(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),Wt=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=Ht(e??{},`x-amzn-errortype`);if(n!==void 0)return Ut(e[n]);break;case`code`:let r=Ht(t??{},`code`);if(r&&t[r]!==void 0)return Ut(t[r]);break;case`type`:if(t?.__type!==void 0)return Ut(t.__type);break}},Eee=class extends ft{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,xee):await Cee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=lt.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new ree(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return gt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?yt.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(tt(r,this.settings)){case 5:return uee(t);case 6:return _t(t);case 7:return aee(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof Tt)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new Tt(e.string,e.type):new Tt(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof Tt?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},Dee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof Tt){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},Oee=class extends ft{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=lt.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Dee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=lt.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=lt.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??bt)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(tt(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return St(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof Tt&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Ct();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?yt.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??bt)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof Tt?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},Gt=class extends ft{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Oee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Eee(this.settings);return e.setSerdeContext(this.serdeContext),e}},kee=class extends ot{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new Gt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Be(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(le(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=Tee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=lt.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},re=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=re.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},Kt=class extends kee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},Aee=class extends Rt{serializer;deserializer;codec;mixin=new Be;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Gt(n),this.serializer=new Vt(this.codec.createSerializer(),n),this.deserializer=new zt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=lt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=lt.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=wee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=lt.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},jee=/[&<>"]/g,Mee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Nee(e){return e.replace(jee,e=>Mee[e])}var Pee=/[&"'<>\r\n\u0085\u2028]/g,Fee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function Iee(e){return e.replace(Pee,e=>Fee[e])}var qt=class{value;constructor(e){this.value=e}toString(){return Iee(``+this.value)}},Jt=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new qt(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${Nee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Lee=class extends Ke{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Ree=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},zee=class extends ft{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=lt.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??gt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Jt.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=Jt.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=Jt.of(e);if(typeof n!=`string`)if(t instanceof Jt||t instanceof qt)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=Jt.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=Jt.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[re,ie]=this.getXmlnsAttribute(e,r),ae=(e,t,n)=>{let r=Jt.of(s,t),[i,a]=this.getXmlnsAttribute(o,ie);a&&r.addAttribute(i,a),e.addChildNode(r);let l=Jt.of(ee);c.isListSchema()?this.writeList(c,n,l,ie):c.isMapSchema()?this.writeMap(c,n,l,ie,!0):c.isStructSchema()?l=this.writeStruct(c,n,ie):this.writeSimpleInto(c,n,l,ie),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=Jt.of(a.xmlName??e.getMemberName());ae(t,r,i),n.addChildNode(t)}}else{let r;i||(r=Jt.of(a.xmlName??e.getMemberName()),ie&&r.addAttribute(re,ie),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=Jt.of(`entry`);ae(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=lt.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??bt)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(tt(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=St(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=St(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof Tt?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Ct():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=lt.of(e),o=new qt(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Bee=class extends ft{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new zee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Re(this.settings);return e.setSerdeContext(this.serdeContext),e}},Vee=class extends Rt{codec;serializer;deserializer;mixin=new Be;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Bee(t),this.serializer=new Vt(this.codec.createSerializer(),t),this.deserializer=new zt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=lt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Ree(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=lt.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Hee=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Uee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Wee=e=>{let t=[];switch(e.operation){default:t.push(Uee(e))}return t},Gee=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},Kee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),qee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Jee={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},Yt=`ref`,Xt=-1,Zt=!0,Qt=`isSet`,$t=`PartitionResult`,en=`booleanEquals`,tn=`getAttr`,nn={[Yt]:`Endpoint`},rn={[Yt]:$t},an={},on=[{[Yt]:`Region`}],sn={conditions:[[Qt,[nn]],[Qt,on],[`aws.partition`,on,$t],[en,[{[Yt]:`UseFIPS`},Zt]],[en,[{[Yt]:`UseDualStack`},Zt]],[en,[{fn:tn,argv:[rn,`supportsDualStack`]},Zt]],[en,[{fn:tn,argv:[rn,`supportsFIPS`]},Zt]],[`stringEquals`,[{fn:tn,argv:[rn,`name`]},`aws-us-gov`]]],results:[[Xt],[Xt,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Xt,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[nn,an],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,an],[Xt,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,an],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,an],[Xt,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,an],[Xt,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,an],[Xt,`Invalid Configuration: Missing Region`]]},Yee=2,Xee=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Zee=Je.from(Xee,Yee,sn.conditions,sn.results),Qee=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),$ee=(e,t={})=>Qee.get(e,()=>Ge(Zee,{endpointParams:e,logger:t.logger}));rt.aws=fe;var cn=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ete=class e extends cn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tte=class e extends cn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nte=class e extends cn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rte=class e extends cn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ite=class e extends cn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ate=class e extends cn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ln=class e extends cn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},un=class e extends cn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dn=class e extends cn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fn=class e extends cn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pn=class e extends cn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mn=class e extends cn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hn=class e extends cn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends cn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends cn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vn=class e extends cn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yn=`AccessDeniedException`,bn=`Certificate`,xn=`CreatedAt`,Sn=`CertificateArn`,Cn=`CertificateChain`,wn=`ConflictException`,Tn=`CertificateSummary`,En=`CertificateSummaryList`,Dn=`CertificateStatuses`,On=`DomainName`,kn=`Exported`,An=`ExtendedKeyUsages`,jn=`ExportOption`,Mn=`Filters`,Nn=`HasAdditionalSubjectAlternativeNames`,Pn=`ImportedAt`,Fn=`InvalidArgsException`,In=`InvalidArnException`,Ln=`IssuedAt`,Rn=`ImportCertificate`,zn=`ImportCertificateRequest`,Bn=`ImportCertificateResponse`,Vn=`InvalidDomainValidationOptionsException`,Hn=`InvalidParameterException`,Un=`InvalidStateException`,Wn=`InvalidTagException`,Gn=`InUse`,Kn=`Includes`,qn=`Key`,Jn=`KeyAlgorithm`,Yn=`KeyUsages`,Xn=`ListCertificates`,Zn=`ListCertificatesRequest`,Qn=`ListCertificatesResponse`,$n=`LimitExceededException`,er=`Message`,tr=`ManagedBy`,nr=`MaxItems`,rr=`NotAfter`,ir=`NotBefore`,ar=`NextToken`,or=`PrivateKey`,sr=`PrivateKeyBlob`,cr=`RevokedAt`,lr=`RenewalEligibility`,ur=`RequestInProgressException`,dr=`ResourceInUseException`,fr=`ResourceNotFoundException`,pr=`Status`,mr=`SubjectAlternativeNameSummaries`,hr=`SortBy`,gr=`SortOrder`,_r=`Type`,vr=`ThrottlingException`,yr=`TagList`,br=`TooManyTagsException`,xr=`TagPolicyException`,Sr=`ThrottlingReason`,Cr=`ThrottlingReasonList`,wr=`Tags`,Tr=`Tag`,Er=`Value`,Dr=`ValidationException`,Or=`awsQueryError`,kr=`client`,Ar=`error`,jr=`extendedKeyUsage`,Mr=`exportOption`,Nr=`httpError`,Pr=`keyTypes`,Fr=`keyUsage`,Ir=`message`,Lr=`managedBy`,Rr=`reason`,zr=`resource`,Br=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,Vr=`throttlingReasons`,u=`com.amazonaws.acm`,Hr=ce.for(Br),Ur=[-3,Br,`ACMServiceException`,0,[],[]];Hr.registerError(Ur,cn);var Wr=ce.for(u),Gr=[-3,u,yn,{[Or]:[`AccessDenied`,403],[Ar]:kr,[Nr]:403},[er],[0]];Wr.registerError(Gr,ete);var Kr=[-3,u,wn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Kr,dn);var qr=[-3,u,Fn,{[Ar]:kr},[Ir],[0]];Wr.registerError(qr,hn);var Jr=[-3,u,In,{[Ar]:kr},[Ir],[0]];Wr.registerError(Jr,tte);var Yr=[-3,u,Vn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Yr,_n);var Xr=[-3,u,Hn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Xr,nte);var Zr=[-3,u,Un,{[Ar]:kr},[Ir],[0]];Wr.registerError(Zr,vn);var ote=[-3,u,Wn,{[Ar]:kr},[Ir],[0]];Wr.registerError(ote,rte);var ste=[-3,u,$n,{[Ar]:kr},[Ir],[0]];Wr.registerError(ste,mn);var cte=[-3,u,ur,{[Ar]:kr},[Ir],[0]];Wr.registerError(cte,pn);var lte=[-3,u,dr,{[Ar]:kr},[Ir],[0]];Wr.registerError(lte,fn);var ute=[-3,u,fr,{[Ar]:kr},[Ir],[0]];Wr.registerError(ute,ite);var dte=[-3,u,xr,{[Ar]:kr},[Ir],[0]];Wr.registerError(dte,ate);var fte=[-3,u,vr,{[Or]:[`Throttling`,400],[Ar]:kr,[Nr]:400},[Ir,Vr],[0,()=>Dte]];Wr.registerError(fte,ln);var pte=[-3,u,br,{[Ar]:kr},[Ir],[0]];Wr.registerError(pte,un);var mte=[-3,u,Dr,{[Or]:[`ValidationError`,400],[Ar]:kr,[Nr]:400},[Ir],[0]];Wr.registerError(mte,gn);var hte=[Hr,Wr],gte=[0,u,sr,8,21],_te=[3,u,Tn,0,[Sn,On,mr,Nn,pr,_r,Jn,Yn,An,jn,Gn,kn,lr,ir,rr,xn,Ln,Pn,cr,tr],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],vte=[3,u,Mn,0,[jr,Fr,Pr,Mr,Lr],[64,64,64,0,0]],yte=[3,u,zn,0,[bn,or,Sn,Cn,wr],[21,[()=>gte,0],0,21,()=>Ete],2],bte=[3,u,Bn,0,[Sn],[0]],xte=[3,u,Zn,0,[Dn,Kn,ar,nr,hr,gr],[64,()=>vte,0,1,0,0]],Ste=[3,u,Qn,0,[ar,En],[0,()=>Tte]],Cte=[3,u,Tr,0,[qn,Er],[0,0],1],wte=[3,u,Sr,0,[Rr,zr],[0,0]],Tte=[1,u,En,0,()=>_te],Ete=[1,u,yr,0,()=>Cte],Dte=[1,u,Cr,0,()=>wte],Ote=[9,u,Rn,0,()=>yte,()=>bte],kte=[9,u,Xn,0,()=>xte,()=>Ste],Ate=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$ee,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Kt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:hte,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),jte=e=>{let t=Se(e),n=()=>t().then(Ve),r=Ate(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:Jee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Mte=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Nte=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Pte=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),Mte(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),Nte(n))},Fte=class extends Te{config;constructor(...[e]){let t=jte(e||{});super(t),this.initConfig=t;let n=Pte(Gee(Ue(ve(Ee(Le(ke(Kee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Hee,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},Ite=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Lte(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Rte=e=>{let t=[];switch(e.operation){default:t.push(Lte(e))}return t},zte=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},Bte=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),Vte={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Hte={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/middleware-sdk-ec2":`^3.972.36`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Qr=`ref`,$r=-1,ei=!0,ti=`isSet`,ni=`PartitionResult`,ri=`booleanEquals`,ii=`getAttr`,ai={[Qr]:`Endpoint`},oi={[Qr]:ni},si={},ci=[{[Qr]:`Region`}],li={conditions:[[ti,[ai]],[ti,ci],[`aws.partition`,ci,ni],[ri,[{[Qr]:`UseFIPS`},ei]],[ri,[{[Qr]:`UseDualStack`},ei]],[ri,[{fn:ii,argv:[oi,`supportsDualStack`]},ei]],[ri,[{fn:ii,argv:[oi,`supportsFIPS`]},ei]],[`stringEquals`,[{fn:ii,argv:[oi,`name`]},`aws-us-gov`]]],results:[[$r],[$r,`Invalid Configuration: FIPS and custom endpoint are not supported`],[$r,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[ai,si],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,si],[$r,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,si],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,si],[$r,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,si],[$r,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,si],[$r,`Invalid Configuration: Missing Region`]]},Ute=2,Wte=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Gte=Je.from(Wte,Ute,li.conditions,li.results),Kte=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),qte=(e,t={})=>Kte.get(e,()=>Ge(Gte,{endpointParams:e,logger:t.logger}));rt.aws=fe;var Jte=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ui=`Address`,Yte=`AllocateAddressRequest`,Xte=`AllocateAddressResult`,Zte=`AssociateAddressRequest`,Qte=`AssociateAddressResult`,$te=`AllAvailabilityZones`,ene=`AllocateAddress`,tne=`ApplianceArn`,nne=`AssociateAddress`,rne=`AttachedAppliances`,ine=`AttributeBooleanValue`,ane=`AssociateCarrierIpAddress`,one=`AdditionalFlexibleNetworkInterfaces`,sne=`AvailableIpAddressCount`,di=`AssignIpv6AddressOnCreation`,cne=`AttachInternetGateway`,lne=`AttachInternetGatewayRequest`,une=`AssociateIamInstanceProfile`,dne=`AssociateIamInstanceProfileRequest`,fne=`AssociateIamInstanceProfileResult`,pne=`AllocationIdList`,mne=`AssociationIdList`,fi=`AdditionalInfo`,pi=`AllocationId`,mi=`AllocationIds`,hi=`AssociationId`,hne=`AssociationIds`,gi=`AttachmentId`,gne=`AmiLaunchIndex`,_ne=`AttachmentLimitType`,vne=`AddressList`,_i=`AvailabilityMode`,yne=`AssociatePublicIpAddress`,bne=`AmazonProvidedIpv6CidrBlock`,xne=`AutoProvisionZones`,Sne=`AutoRecoverySupported`,Cne=`AssociateRouteTableRequest`,wne=`AssociateRouteTableResult`,Tne=`AssociateRouteTable`,Ene=`AllowReassociation`,Dne=`AllRegions`,vi=`AssociatedResource`,yi=`AutoRecovery`,bi=`AssociationState`,One=`AuthorizeSecurityGroupEgress`,kne=`AuthorizeSecurityGroupEgressRequest`,Ane=`AuthorizeSecurityGroupEgressResult`,jne=`AuthorizeSecurityGroupIngressRequest`,Mne=`AuthorizeSecurityGroupIngressResult`,Nne=`AuthorizeSecurityGroupIngress`,Pne=`AutoScalingIps`,xi=`AmdSevSnp`,Fne=`AttachmentState`,Ine=`ArchitectureTypeList`,Si=`AttachTime`,Lne=`AttachVolumeRequest`,Rne=`AttributeValue`,zne=`AttachVolume`,Ci=`AvailabilityZone`,wi=`AvailabilityZoneAddress`,Ti=`AvailabilityZoneAddresses`,Bne=`AvailabilityZoneGeography`,Vne=`AvailabilityZoneGeographyList`,Ei=`AvailabilityZoneId`,Hne=`AvailabilityZoneList`,Une=`AvailabilityZoneMessage`,Wne=`AvailabilityZoneMessageList`,Gne=`AvailabilityZoneSubGeography`,Kne=`AvailabilityZoneSubGeographyList`,qne=`AvailabilityZones`,Di=`Accelerators`,Jne=`Addresses`,Yne=`Affinity`,Oi=`Arn`,ki=`Architecture`,Xne=`Associations`,Ai=`Association`,Zne=`Attribute`,ji=`Attachment`,Mi=`Attachments`,Qne=`BlobAttributeValue`,$ne=`BaselineBandwidthInGbps`,Ni=`BaselineBandwidthInMbps`,Pi=`BlockDeviceMapping`,ere=`BlockDeviceMappingList`,tre=`BlockDeviceMappingRequestList`,Fi=`BlockDeviceMappings`,nre=`BlockDurationMinutes`,Ii=`BaselineIops`,Li=`BootMode`,rre=`BootModeTypeList`,ire=`BareMetal`,Ri=`BlockPublicAccessStates`,are=`BurstablePerformanceSupported`,zi=`BaselineThroughputInMBps`,Bi=`BandwidthWeighting`,ore=`BandwidthWeightingTypeList`,sre=`BandwidthWeightings`,Vi=`CidrBlock`,cre=`CidrBlockAssociationSet`,lre=`CapacityBlockId`,ure=`CidrBlockState`,dre=`CoreCountList`,Hi=`CoreCount`,fre=`CpuCredits`,Ui=`CompletionDurationMinutes`,pre=`CreationDate`,Wi=`CarrierGatewayId`,mre=`CurrentGeneration`,Gi=`CarrierIp`,hre=`CurrentInstanceBootMode`,gre=`CreateInternetGateway`,_re=`CreateInternetGatewayRequest`,vre=`CreateInternetGatewayResult`,yre=`CreateImageRequest`,bre=`CreateImageResult`,Ki=`CidrIp`,qi=`CidrIpv6`,Ji=`CidrIpv4`,xre=`CoreInfo`,Sre=`CreateImage`,Cre=`CreateKeyPair`,wre=`CreateKeyPairRequest`,Yi=`CoreNetworkArn`,Tre=`CreateNatGateway`,Ere=`CreateNatGatewayRequest`,Dre=`CreateNatGatewayResult`,Xi=`CpuOptions`,Zi=`CustomerOwnedIp`,Qi=`CustomerOwnedIpv4Pool`,Ore=`CpuOptionsRequest`,kre=`CreatePlacementGroup`,Are=`CreatePlacementGroupRequest`,jre=`CreatePlacementGroupResult`,$i=`CapacityReservationId`,ea=`CapacityReservationPreference`,Mre=`CreateRouteRequest`,ta=`CapacityReservationResourceGroupArn`,Nre=`CreateRouteResult`,Pre=`CapacityReservationSpecificationResponse`,na=`CapacityReservationSpecification`,ra=`CapacityReservationTarget`,Fre=`CapacityReservationTargetResponse`,Ire=`CreateRouteTableRequest`,Lre=`CreateRouteTableResult`,Rre=`CreateRouteTable`,zre=`CreateRoute`,Bre=`CreateSecurityGroup`,Vre=`CreateSecurityGroupRequest`,Hre=`CreateSecurityGroupResult`,Ure=`CopySnapshotRequest`,Wre=`CopySnapshotRequestPSU`,Gre=`CopySnapshotResult`,Kre=`CreateSnapshotRequest`,qre=`CreateSubnetRequest`,Jre=`CreateSubnetResult`,Yre=`CreditSpecificationRequest`,Xre=`CopySnapshot`,ia=`CreditSpecification`,aa=`CreateSnapshot`,oa=`CreateSubnet`,sa=`CurrentState`,ca=`ClientToken`,la=`ConnectionTrackingConfiguration`,ua=`ConnectionTrackingSpecification`,da=`ConnectionTrackingSpecificationRequest`,fa=`ConnectionTrackingSpecificationResponse`,pa=`CompletionTime`,ma=`ConnectivityType`,ha=`CreateTime`,ga=`CreateVolumeRequest`,_a=`CreateVpcRequest`,va=`CreateVpcResult`,ya=`CreateVolume`,ba=`CreateVpc`,xa=`Code`,Sa=`Configured`,Ca=`Count`,wa=`DescribeAddressesRequest`,Ta=`DescribeAddressesResult`,Ea=`DisassociateAddressRequest`,Da=`DisableApiStop`,Oa=`DisableApiTermination`,ka=`DestinationAvailabilityZone`,Aa=`DescribeAvailabilityZonesRequest`,ja=`DescribeAvailabilityZonesResult`,Ma=`DescribeAvailabilityZones`,Na=`DescribeAddresses`,Pa=`DisassociateAddress`,Fa=`DestinationCidrBlock`,Ia=`DefaultConnectionTrackingConfiguration`,La=`DefaultCores`,Ra=`DataEncryptionKeyId`,za=`DefaultEnaQueueCountPerInterface`,Ba=`DefaultForAz`,Va=`DedicatedHostsSupported`,Ha=`DeviceIndex`,Ua=`DestinationIpv6CidrBlock`,Wa=`DeleteInternetGateway`,Ga=`DeleteInternetGatewayRequest`,Ka=`DescribeInternetGatewaysRequest`,qa=`DescribeInternetGatewaysResult`,Ja=`DetachInternetGatewayRequest`,Ya=`DescribeInternetGateways`,Xa=`DetachInternetGateway`,Za=`DisassociateIamInstanceProfile`,Qa=`DescribeIamInstanceProfileAssociations`,$a=`DescribeIamInstanceProfileAssociationsRequest`,eo=`DescribeIamInstanceProfileAssociationsResult`,to=`DisassociateIamInstanceProfileRequest`,no=`DisassociateIamInstanceProfileResult`,ro=`DiskInfoList`,io=`DescribeImagesRequest`,ao=`DescribeImagesResult`,oo=`DescribeInstancesRequest`,so=`DescribeInstancesResult`,co=`DescribeInstanceTypesRequest`,lo=`DescribeInstanceTypesResult`,uo=`DescribeInstanceTypes`,fo=`DescribeImages`,po=`DescribeInstances`,mo=`DiskInfo`,ho=`DeleteKeyPair`,go=`DeleteKeyPairRequest`,_o=`DeleteKeyPairResult`,vo=`DescribeKeyPairsRequest`,yo=`DescribeKeyPairsResult`,bo=`DescribeKeyPairs`,xo=`DisableLniAtDeviceIndex`,So=`DeviceName`,Co=`DefaultNetworkCardIndex`,wo=`DeleteNatGateway`,To=`DeleteNatGatewayRequest`,Eo=`DeleteNatGatewayResult`,Do=`DescribeNatGatewaysRequest`,Oo=`DescribeNatGatewaysResult`,ko=`DescribeNatGateways`,Ao=`DestinationOutpostArn`,jo=`DhcpOptionsId`,Mo=`DeleteOnTermination`,No=`DeletePlacementGroup`,Po=`DeletePlacementGroupRequest`,Fo=`DescribePlacementGroupsRequest`,Io=`DescribePlacementGroupsResult`,Lo=`DescribePlacementGroups`,Ro=`DestinationPrefixListId`,zo=`DeregistrationProtection`,d=`DryRun`,Bo=`DeleteRouteRequest`,Vo=`DescribeRegionsRequest`,Ho=`DescribeRegionsResult`,Uo=`DeleteRouteTable`,Wo=`DeleteRouteTableRequest`,Go=`DescribeRouteTablesRequest`,Ko=`DescribeRouteTablesResult`,qo=`DisassociateRouteTableRequest`,Jo=`DescribeRouteTables`,Yo=`DisassociateRouteTable`,Xo=`DestinationRegion`,Zo=`DeleteRoute`,Qo=`DescribeRegions`,$o=`DeleteSecurityGroup`,es=`DeleteSecurityGroupRequest`,ts=`DeleteSecurityGroupResult`,ns=`DescribeSecurityGroupsRequest`,rs=`DescribeSecurityGroupsResult`,is=`DescribeSecurityGroups`,as=`DeleteSnapshotRequest`,os=`DeleteSubnetRequest`,ss=`DescribeSnapshotsRequest`,cs=`DescribeSnapshotsResult`,ls=`DescribeSubnetsRequest`,us=`DescribeSubnetsResult`,ds=`DeleteSnapshot`,fs=`DeleteSubnet`,ps=`DescribeSnapshots`,ms=`DescribeSubnets`,hs=`DefaultTcpEstablishedTimeout`,gs=`DefaultThreadsPerCore`,_s=`DeprecationTime`,vs=`DeleteTime`,ys=`DefaultUdpStreamTimeout`,bs=`DefaultUdpTimeout`,xs=`DefaultVCpus`,Ss=`DeleteVolumeRequest`,Cs=`DeleteVpcRequest`,ws=`DescribeVolumesRequest`,Ts=`DescribeVolumesResult`,Es=`DescribeVpcsRequest`,Ds=`DescribeVpcsResult`,Os=`DetachVolumeRequest`,ks=`DeleteVolume`,As=`DeleteVpc`,js=`DescribeVolumes`,Ms=`DescribeVpcs`,Ns=`DetachVolume`,Ps=`Description`,Fs=`Device`,Is=`Disks`,Ls=`Domain`,Rs=`EbsBlockDevice`,zs=`ExecutableByStringList`,Bs=`ExecutableBy`,Vs=`EbsCardIndex`,Hs=`EbsCardInfoList`,Us=`EbsCardInfo`,Ws=`EbsCards`,Gs=`EncryptionControl`,Ks=`EnableDns64`,qs=`ElasticFileSystem`,Js=`ElasticFileSystemExclusion`,Ys=`ElasticGpuAssociation`,Xs=`ElasticGpuAssociationId`,Zs=`ElasticGpuAssociationList`,Qs=`ElasticGpuAssociationState`,$s=`ElasticGpuAssociationTime`,ec=`ElasticGpuAssociations`,tc=`ElasticGpuId`,nc=`ElasticGpuSpecification`,rc=`ElasticGpuSpecifications`,ic=`ElasticInferenceAccelerator`,ac=`ElasticInferenceAcceleratorAssociation`,oc=`ElasticInferenceAcceleratorAssociationId`,sc=`ElasticInferenceAcceleratorAssociationList`,cc=`ElasticInferenceAcceleratorAssociationState`,lc=`ElasticInferenceAcceleratorAssociationTime`,uc=`ElasticInferenceAcceleratorArn`,dc=`ElasticInferenceAcceleratorAssociations`,fc=`ElasticInferenceAccelerators`,pc=`EbsInstanceBlockDevice`,mc=`EbsInstanceBlockDeviceSpecification`,hc=`EncryptionInTransitSupported`,gc=`EbsInfo`,_c=`EfaInfo`,vc=`EnableLniAtDeviceIndex`,yc=`EbsOptimized`,bc=`EbsOptimizedInfo`,xc=`EgressOnlyInternetGateway`,Sc=`EgressOnlyInternetGatewayExclusion`,Cc=`EgressOnlyInternetGatewayId`,wc=`EnclaveOptionsRequest`,Tc=`EbsOptimizedSupport`,Ec=`EnclaveOptions`,Dc=`EnablePrimaryIpv6`,Oc=`EnaQueueCount`,kc=`EnableResourceNameDnsAAAARecord`,Ac=`EnableResourceNameDnsAAAARecordOnLaunch`,jc=`EnableResourceNameDnsARecord`,Mc=`EnableResourceNameDnsARecordOnLaunch`,Nc=`EnaSrdEnabled`,Pc=`EnaSrdSpecification`,Fc=`EnaSrdSpecificationRequest`,Ic=`EnaSrdSupported`,Lc=`EnaSrdUdpEnabled`,Rc=`EnaSrdUdpSpecification`,zc=`EnaSrdUdpSpecificationRequest`,Bc=`EfaSupported`,Vc=`EncryptionSupport`,Hc=`EnaSupport`,Uc=`EndTime`,Wc=`ExecutableUsers`,Gc=`Ebs`,Kc=`Enabled`,qc=`Encrypted`,Jc=`Endpoint`,Yc=`Force`,Xc=`FailureCode`,Zc=`FpgaDeviceInfo`,Qc=`FpgaDeviceInfoList`,$c=`FpgaDeviceMemoryInfo`,el=`FlexibleEnaQueuesSupport`,tl=`FpgaInfo`,nl=`FilterList`,rl=`FailureMessage`,il=`FromPort`,al=`FastRestored`,ol=`FullSnapshotSizeInBytes`,sl=`FreeTierEligible`,cl=`Filters`,ll=`Filter`,ul=`Fpgas`,dl=`Groups`,fl=`GroupArn`,pl=`GetConsoleOutput`,ml=`GetConsoleOutputRequest`,hl=`GetConsoleOutputResult`,gl=`GroupDescription`,_l=`GpuDeviceInfo`,vl=`GpuDeviceInfoList`,yl=`GpuDeviceMemoryInfo`,bl=`GatewayId`,xl=`GroupIdentifierList`,Sl=`GroupIdStringList`,Cl=`GpuInfo`,wl=`GroupId`,Tl=`GroupIds`,El=`GroupIdentifier`,Dl=`GroupLongName`,Ol=`GroupName`,kl=`GroupNameStringList`,Al=`GroupNames`,jl=`GroupOwnerId`,Ml=`GpuPartitionSize`,Nl=`Geography`,Pl=`Gpus`,Fl=`HiddenByDefault`,Il=`HttpEndpoint`,Ll=`HostId`,Rl=`HibernationOptions`,zl=`HibernationOptionsRequest`,Bl=`HttpProtocolIpv6`,Vl=`HttpPutResponseHopLimit`,Hl=`HostResourceGroupArn`,Ul=`HibernationSupported`,Wl=`HttpTokens`,Gl=`HostnameType`,Kl=`Hibernate`,ql=`Hypervisor`,Jl=`Id`,Yl=`Ipv6Addresses`,Xl=`Ipv6AddressAttribute`,Zl=`Ipv6AddressCount`,Ql=`InstanceAttachmentEnaSrdSpecification`,$l=`InstanceAttachmentEnaSrdUdpSpecification`,eu=`InferenceAcceleratorInfo`,tu=`Ipv4AddressesPerInterface`,nu=`Ipv6AddressesPerInterface`,ru=`Ipv4AddressesPerSecondaryInterface`,iu=`ImageAllowed`,au=`IpAddress`,ou=`Ipv6Address`,su=`InstanceBlockDeviceMapping`,cu=`InstanceBlockDeviceMappingList`,lu=`InstanceBlockDeviceMappingSpecification`,uu=`InstanceBlockDeviceMappingSpecificationList`,du=`Ipv6CidrBlock`,fu=`Ipv6CidrBlockAssociationSet`,pu=`Ipv6CidrBlockNetworkBorderGroup`,mu=`Ipv6CidrBlockState`,hu=`IncludeDeprecated`,gu=`InferenceDeviceInfo`,_u=`InferenceDeviceInfoList`,vu=`InferenceDeviceMemoryInfo`,yu=`IncludeDisabled`,bu=`IsDefault`,xu=`IsEgress`,Su=`InternetGateway`,Cu=`InternetGatewayAttachment`,wu=`InternetGatewayAttachmentList`,Tu=`InternetGatewayBlockMode`,Eu=`InternetGatewayExclusion`,Du=`InternetGatewayId`,Ou=`InternetGatewayIdList`,ku=`InternetGatewayIds`,Au=`InternetGatewayList`,ju=`InternetGateways`,Mu=`InstanceId`,Nu=`InstanceIpv6Address`,Pu=`InstanceIpv6AddressList`,Fu=`InstanceInterruptionBehavior`,Iu=`IamInstanceProfile`,Lu=`IamInstanceProfileAssociation`,Ru=`IamInstanceProfileAssociationSet`,zu=`IamInstanceProfileAssociations`,Bu=`Ipv6IpamPoolId`,Vu=`Ipv4IpamPoolId`,Hu=`InstanceIpv4PrefixList`,Uu=`InstanceIpv6PrefixList`,Wu=`IamInstanceProfileSpecification`,Gu=`InstanceIpv4Prefix`,Ku=`InstanceIpv6Prefix`,qu=`InstanceInitiatedShutdownBehavior`,Ju=`ImageIdStringList`,Yu=`InstanceIdStringList`,Xu=`ImageId`,Zu=`ImageIds`,Qu=`InstanceIds`,$u=`ImportKeyPair`,ed=`ImportKeyPairRequest`,td=`ImportKeyPairResult`,nd=`ImageLocation`,rd=`ImageList`,id=`InstanceLifecycle`,ad=`InstanceList`,od=`IpList`,sd=`InstanceMaintenanceOptions`,cd=`InstanceMaintenanceOptionsRequest`,ld=`InstanceMarketOptionsRequest`,ud=`InstanceMetadataOptionsRequest`,dd=`InstanceMetadataOptionsResponse`,fd=`InstanceMarketOptions`,pd=`IncludeManagedResources`,md=`InstanceMetadataTags`,hd=`Ipv6Native`,gd=`InstanceNetworkInterface`,_d=`InstanceNetworkInterfaceAssociation`,vd=`InstanceNetworkInterfaceAttachment`,yd=`InstanceNetworkInterfaceList`,bd=`InstanceNetworkInterfaceSpecification`,xd=`InstanceNetworkInterfaceSpecificationList`,Sd=`Ipv6NetmaskLength`,Cd=`Ipv4NetmaskLength`,wd=`InstanceNetworkPerformanceOptions`,Td=`InstanceNetworkPerformanceOptionsRequest`,Ed=`ImageOwnerAlias`,Dd=`IpOwnerId`,Od=`InstanceOwnerId`,kd=`InstanceOwningService`,Ad=`Ipv6PrefixCount`,jd=`Ipv4PrefixCount`,Md=`IpPermissionsEgress`,Nd=`IpamPoolId`,Pd=`InstancePrivateIpAddress`,Fd=`InstancePrivateIpAddressList`,Id=`IsPrimaryIpv6`,Ld=`IncludePublicKey`,Rd=`IpPermissionList`,zd=`Ipv4PrefixList`,Bd=`Ipv6PrefixList`,Vd=`Ipv4PrefixSpecificationRequest`,Hd=`Ipv6PrefixSpecificationRequest`,Ud=`Ipv6Prefixes`,Wd=`IpPermissions`,Gd=`IpPermission`,Kd=`IpProtocol`,qd=`Ipv6Prefix`,Jd=`Ipv6Pool`,Yd=`Ipv4Prefixes`,Xd=`Ipv4Prefix`,Zd=`IsPrimary`,Qd=`IpRangeList`,$d=`Ipv6RangeList`,ef=`IpRanges`,tf=`IpRange`,nf=`Ipv6Ranges`,rf=`Ipv6Range`,af=`InstanceStateChange`,Zre=`InstanceStateChangeList`,Qre=`InstanceSecondaryInterfaceAttachment`,$re=`InstanceSecondaryInterfaceList`,eie=`InstanceSecondaryInterfacePrivateIpAddress`,tie=`InstanceSecondaryInterfacePrivateIpAddressList`,nie=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,rie=`InstanceSecondaryInterfacePrivateIpAddressRequest`,iie=`InstanceSecondaryInterfaceSpecificationListRequest`,aie=`InstanceSecondaryInterfaceSpecificationRequest`,oie=`InstanceSecondaryInterface`,of=`InstanceStorageInfo`,sie=`InstanceStorageSupported`,cie=`ImdsSupport`,lie=`InstanceState`,sf=`IpSource`,uie=`Ipv6Supported`,cf=`InstanceType`,die=`InstanceTypeInfoList`,fie=`InstanceTypeInfo`,pie=`ImageType`,lf=`InstanceTenancy`,uf=`InstanceTypes`,df=`InterfaceType`,mie=`IncludeUnsupportedInRegion`,hie=`ImageWatermarks`,gie=`ImageWatermarkList`,_ie=`ImageWatermark`,vie=`Images`,yie=`Image`,bie=`Instance`,xie=`Instances`,ff=`Iops`,Sie=`Key`,Cie=`KeyFormat`,pf=`KeyFingerprint`,mf=`KernelId`,hf=`KmsKeyId`,wie=`KeyMaterial`,gf=`KeyName`,Tie=`KeyNameStringList`,Eie=`KeyNames`,Die=`KeyPairs`,_f=`KeyPairId`,Oie=`KeyPairIdStringList`,kie=`KeyPairIds`,Aie=`KeyPairInfo`,jie=`KeyPairList`,Mie=`KeyPair`,vf=`KeyType`,Nie=`Kernel`,yf=`LicenseConfigurationArn`,Pie=`LicenseConfigurationRequest`,Fie=`LicenseConfiguration`,Iie=`LambdaExclusion`,Lie=`LogicalGpuCount`,bf=`LocalGatewayId`,xf=`LinkedGroupId`,Rie=`LicenseList`,zie=`LastLaunchedTime`,Bie=`LicenseSpecifications`,Vie=`LicenseSpecificationListRequest`,Hie=`LicenseSpecification`,Uie=`LaunchTemplate`,Wie=`LaunchTemplateId`,Gie=`LaunchTemplateName`,Kie=`LaunchTemplateSpecification`,qie=`LaunchTime`,Jie=`Latest`,Yie=`Lambda`,Xie=`Licenses`,Zie=`Location`,Sf=`MultiAttachEnabled`,Cf=`MediaAcceleratorInfo`,wf=`MacAddress`,Tf=`MaximumBandwidthInMbps`,Ef=`MapCustomerOwnedIpOnLaunch`,Qie=`MaxCount`,$ie=`MinCount`,eae=`MediaDeviceInfo`,tae=`MediaDeviceInfoList`,nae=`MediaDeviceMemoryInfo`,rae=`MaximumEbsAttachments`,iae=`MaximumEbsCards`,aae=`MaximumEfaInterfaces`,oae=`MaximumEnaQueueCount`,sae=`MaximumEnaQueueCountPerInterface`,Df=`MaximumIops`,cae=`ModifyInstanceAttributeRequest`,lae=`ModifyInstanceAttributeValue`,uae=`ModifyInstanceAttribute`,Of=`MemoryInfo`,dae=`MaximumNetworkCards`,kf=`MaximumNetworkInterfaces`,Af=`MetadataOptions`,jf=`MaintenanceOptions`,Mf=`MapPublicIpOnLaunch`,fae=`MaxPrice`,Nf=`MaxResults`,pae=`ModifySubnetAttributeRequest`,mae=`ModifySubnetAttribute`,hae=`MaximumSecondaryNetworkInterfaces`,Pf=`ModificationState`,gae=`MarketType`,Ff=`MaximumThroughputInMBps`,_ae=`ModifyVolumeRequest`,vae=`ModifyVolumeResult`,yae=`ModifyVolume`,bae=`Main`,If=`Manufacturer`,xae=`Managed`,Lf=`Message`,Sae=`Messages`,Rf=`Mode`,zf=`Monitoring`,Bf=`Name`,Vf=`NetworkBorderGroup`,Cae=`NetworkCards`,Hf=`NetworkCardIndex`,wae=`NetworkCardInfoList`,Tae=`NetworkCardInfo`,Uf=`NoDevice`,Eae=`NeuronDeviceCoreInfo`,Dae=`NeuronDeviceInfo`,Oae=`NeuronDeviceInfoList`,kae=`NeuronDeviceMemoryInfo`,Aae=`NeuronDevices`,jae=`NitroEnclavesSupport`,Wf=`NatGateway`,Mae=`NatGatewayAddresses`,Nae=`NatGatewayAttachedAppliance`,Pae=`NatGatewayAttachedApplianceList`,Fae=`NatGatewayAddressList`,Iae=`NatGatewayAddress`,Lae=`NatGatewayExclusion`,Gf=`NatGatewayId`,Rae=`NatGatewayIdStringList`,zae=`NatGatewayIds`,Bae=`NatGatewayList`,Vae=`NatGateways`,Kf=`NetworkInterfaceId`,Hae=`NetworkInterfaceOwnerId`,qf=`NetworkInterfaces`,Jf=`NetworkInfo`,Yf=`NeuronInfo`,Xf=`NetworkPerformanceOptions`,Zf=`NetworkPerformance`,Uae=`NoReboot`,Qf=`NvmeSupport`,$f=`NitroTpmInfo`,Wae=`NitroTpmSupport`,Gae=`NitroTpmSupportedVersionsList`,ep=`NextToken`,tp=`NestedVirtualization`,Kae=`Origin`,np=`OutpostArn`,qae=`OwnerAlias`,rp=`OwnerId`,ip=`OptInStatus`,Jae=`OriginalIops`,Yae=`OwnerIds`,Xae=`OriginalMultiAttachEnabled`,ap=`OdbNetworkArn`,Zae=`OperatorRequest`,Qae=`OperatorResponse`,$ae=`OwnerStringList`,eoe=`OriginalSize`,toe=`OriginalThroughput`,noe=`OriginalVolumeType`,op=`Operator`,roe=`Output`,ioe=`Owners`,sp=`Owner`,cp=`Principal`,lp=`ProvisionedBandwidth`,aoe=`PeakBandwidthInGbps`,ooe=`ProductCodeId`,soe=`ProductCodeList`,coe=`ProductCodeType`,up=`PartitionCount`,loe=`ProductCode`,dp=`ProductCodes`,uoe=`PrivateDnsHostnameTypeOnLaunch`,fp=`PrivateDnsName`,pp=`PrivateDnsNameOptions`,mp=`PrivateDnsNameOptionsOnLaunch`,doe=`PrivateDnsNameOptionsRequest`,foe=`PrivateDnsNameOptionsResponse`,hp=`PublicDnsName`,gp=`PlatformDetails`,_p=`PlacementGroup`,vp=`PlacementGroupInfo`,poe=`PlacementGroupIdStringList`,moe=`PlacementGroupList`,hoe=`PlacementGroupStrategyList`,goe=`PlacementGroups`,yp=`PublicIp`,_oe=`PrivateIpAddressCount`,voe=`PrivateIpAddressSpecification`,yoe=`PrivateIpAddressSpecificationList`,bp=`PrivateIpAddress`,xp=`PrivateIpAddresses`,boe=`PublicIpAddress`,Sp=`PublicIpv4Pool`,xoe=`PublicIpStringList`,Soe=`PrimaryIpv6`,Coe=`PrivateIp`,Cp=`ProcessorInfo`,woe=`PublicIps`,Toe=`PublicKey`,Eoe=`PublicKeyMaterial`,wp=`PrefixListId`,Doe=`PrefixListIdList`,Ooe=`PrefixListIds`,koe=`PartitionNumber`,Tp=`PeeringStatus`,Aoe=`PhcSupport`,joe=`PreviousState`,Moe=`ProvisionTime`,Noe=`PresignedUrl`,Poe=`PropagatingVgw`,Foe=`PropagatingVgwList`,Ioe=`PropagatingVgws`,Loe=`ParentZoneId`,Roe=`ParentZoneName`,Ep=`Platform`,Dp=`Placement`,Op=`Primary`,kp=`Progress`,zoe=`Provisioned`,Boe=`Public`,Ap=`Return`,Voe=`ReleaseAddressRequest`,Hoe=`ReleaseAddress`,Uoe=`RestorableByUserIds`,Woe=`RestorableBy`,jp=`RootDeviceName`,Mp=`RootDeviceType`,Goe=`RootDeviceTypeList`,Koe=`RestoreExpiryTime`,qoe=`ResourceExclusions`,Joe=`RegionGeography`,Yoe=`ReferencedGroupId`,Xoe=`ReferencedGroupInfo`,Zoe=`RegionGeographyList`,Qoe=`RunInstancesMonitoringEnabled`,$oe=`RebootInstancesRequest`,ese=`RunInstancesRequest`,tse=`RunInstancesUserData`,Np=`RamdiskId`,nse=`ReservationId`,rse=`RebootInstances`,ise=`RequesterId`,ase=`RunInstances`,ose=`RegionList`,sse=`ReservationList`,cse=`RouteList`,lse=`RebootMigrationSupport`,use=`RebootMigration`,Pp=`RegionName`,dse=`RegionNameStringList`,fse=`RegionNames`,pse=`ReferencedSecurityGroup`,mse=`RevokeSecurityGroupEgress`,hse=`RevokeSecurityGroupEgressRequest`,gse=`RevokeSecurityGroupEgressResult`,_se=`RevokeSecurityGroupIngressRequest`,vse=`RevokeSecurityGroupIngressResult`,yse=`RevokeSecurityGroupIngress`,bse=`RevokedSecurityGroupRule`,xse=`RevokedSecurityGroupRuleList`,Fp=`RevokedSecurityGroupRules`,Sse=`RouteTableAssociation`,Cse=`RouteTableAssociationId`,wse=`RouteTableAssociationList`,Tse=`RouteTableAssociationState`,Ip=`RouteTableId`,Ese=`RouteTableIdStringList`,Dse=`RouteTableIds`,Ose=`RouteTableList`,kse=`ResourceType`,Ase=`RequestTime`,Lp=`RouteTable`,jse=`RouteTables`,Mse=`Ramdisk`,Nse=`Regions`,Pse=`Region`,Fse=`Requested`,Ise=`Reservations`,Lse=`Reservation`,Rse=`Route`,zse=`Routes`,Bse=`SecondaryAllocationIds`,Vse=`SecondaryAllocationId`,Hse=`SupportedAdditionalProcessorFeatureList`,Use=`SubnetArn`,Wse=`SupportedArchitectures`,Gse=`SupportedBootModes`,Kse=`SubnetCidrBlockState`,qse=`SustainedClockSpeedInGhz`,Rp=`SourceDestCheck`,Jse=`SpreadDomain`,Yse=`SupportedFeatures`,Xse=`SubGeography`,zp=`SecurityGroupArn`,Bp=`SecurityGroupId`,Zse=`SecurityGroupIdStringList`,Qse=`SecurityGroupIds`,$se=`SecurityGroupList`,Vp=`SecurityGroupRules`,ece=`SecurityGroupRuleArn`,Hp=`SecurityGroupRuleIds`,tce=`SecurityGroupRuleIdList`,Up=`SecurityGroupRuleId`,nce=`SecurityGroupRuleList`,rce=`SecurityGroupRule`,ice=`SecurityGroupStringList`,Wp=`SecurityGroups`,Gp=`SecurityGroup`,ace=`SubnetIds`,oce=`SubnetIpv6CidrBlockAssociation`,sce=`SubnetIpv6CidrBlockAssociationSet`,cce=`SourceImageCreationTime`,lce=`SizeInGB`,Kp=`SourceImageId`,uce=`SecondaryInterfaceId`,dce=`SourceInstanceId`,qp=`SizeInMiB`,fce=`SpotInstanceRequestId`,Jp=`SourceImageRegion`,pce=`StartInstancesRequest`,mce=`StartInstancesResult`,hce=`StopInstancesRequest`,gce=`StopInstancesResult`,_ce=`SupportedInRegion`,vce=`SnapshotIdStringList`,yce=`SubnetIdStringList`,bce=`SpotInstanceType`,Yp=`SecondaryInterfaces`,xce=`SecondaryInterface`,Xp=`SnapshotId`,Sce=`SnapshotIds`,Cce=`StartingInstances`,wce=`StartInstances`,Tce=`StoppingInstances`,Ece=`StopInstances`,Zp=`SubnetId`,Dce=`SnapshotLocation`,Oce=`SnapshotList`,Qp=`SpreadLevel`,kce=`SubnetList`,Ace=`ServiceManaged`,jce=`SpotMarketOptions`,$p=`StatusMessage`,em=`StateMessage`,Mce=`SecondaryNetworkId`,tm=`SriovNetSupport`,Nce=`SecondaryNetworkSupported`,Pce=`SpotOptions`,nm=`SkipOsShutdown`,Fce=`SecondaryPrivateIpAddresses`,rm=`SecondaryPrivateIpAddressCount`,Ice=`SecondaryPrivateIpAddress`,Lce=`SupportedRootDeviceTypes`,Rce=`SourceRegion`,im=`StateReason`,am=`SourceSecurityGroupName`,om=`SourceSecurityGroupOwnerId`,zce=`SourceSnapshotId`,sm=`SecondarySubnetId`,Bce=`SupportedStrategies`,cm=`StartTime`,Vce=`StateTransitionReason`,lm=`SseType`,Hce=`StorageTier`,Uce=`SupportedUsageClasses`,Wce=`SensitiveUserData`,Gce=`SourceVolumeId`,Kce=`SupportedVirtualizationTypes`,qce=`SupportedVersions`,um=`Size`,Jce=`Snapshots`,Yce=`Snapshot`,dm=`State`,fm=`Status`,pm=`Strategy`,mm=`Subnet`,Xce=`Subnets`,hm=`Tags`,gm=`TcpEstablishedTimeout`,Zce=`TotalFpgaMemoryInMiB`,_m=`TransitGatewayId`,Qce=`TotalGpuMemoryInMiB`,$ce=`TerminateInstances`,ele=`TotalInferenceMemoryInMiB`,tle=`TerminateInstancesRequest`,nle=`TerminateInstancesResult`,rle=`TargetIops`,ile=`TerminatingInstances`,ale=`TagList`,ole=`TargetMultiAttachEnabled`,sle=`TotalMediaMemoryInMiB`,cle=`TotalNeuronDeviceMemoryInMiB`,vm=`ToPort`,ym=`ThreadsPerCore`,lle=`ThreadsPerCoreList`,bm=`TagSpecifications`,ule=`TotalSizeInGB`,dle=`TagSpecificationList`,xm=`TagSpecification`,fle=`TargetSize`,Sm=`TpmSupport`,ple=`TargetThroughput`,mle=`TransferType`,hle=`TargetVolumeType`,Cm=`Tag`,gle=`Tenancy`,wm=`Throughput`,Tm=`Timestamp`,Em=`Type`,_le=`UsageClassTypeList`,Dm=`UserData`,Om=`UserId`,vle=`UserIdGroupPairs`,yle=`UserIdGroupPairList`,ble=`UserIdGroupPair`,km=`UnknownIpPermissions`,Am=`UsageOperation`,xle=`UsageOperationUpdateTime`,jm=`UdpStreamTimeout`,Mm=`UdpTimeout`,Nm=`Value`,Sle=`VolumeAttachmentList`,Cle=`VolumeAttachment`,wle=`VpcCidrBlockAssociation`,Tle=`VpcCidrBlockAssociationSet`,Ele=`VpcCidrBlockState`,Pm=`VCpuInfo`,Dle=`ValidCores`,Fm=`VpcEncryptionControl`,Ole=`VpcEncryptionControlConfiguration`,kle=`VpcEncryptionControlExclusion`,Ale=`VpcEncryptionControlExclusions`,jle=`VpcEncryptionControlId`,Im=`VpcEndpointId`,Lm=`VpcId`,Mle=`VpcIpv6CidrBlockAssociation`,Nle=`VpcIpv6CidrBlockAssociationSet`,Rm=`VolumeInitializationRate`,Ple=`VolumeIdStringList`,Fle=`VpcIdStringList`,zm=`VolumeId`,Ile=`VolumeIds`,Lle=`VpcIds`,Rle=`VpcLattice`,zle=`VpcLatticeExclusion`,Ble=`VolumeList`,Vle=`VpcList`,Bm=`VolumeModification`,Vm=`VirtualName`,Hle=`VolumeOwnerId`,Hm=`VpcPeeringConnectionId`,Ule=`VpcPeeringExclusion`,Wle=`VirtualPrivateGateway`,Gle=`VirtualPrivateGatewayExclusion`,Kle=`VpcPeering`,qle=`ValueStringList`,Um=`VolumeSize`,Wm=`VolumeType`,Jle=`VirtualizationTypeList`,Yle=`ValidThreadsPerCore`,Gm=`VirtualizationType`,Xle=`ValidUntil`,Zle=`Values`,Km=`Version`,Qle=`Volumes`,$le=`Volume`,qm=`Vpc`,eue=`Vpcs`,tue=`WatermarkCreationTime`,nue=`WatermarkKey`,rue=`WorkloadsList`,iue=`Workloads`,Jm=`ZoneId`,aue=`ZoneIdStringList`,oue=`ZoneIds`,Ym=`ZoneName`,sue=`ZoneNameStringList`,cue=`ZoneNames`,lue=`ZoneType`,uue=`attachedApplianceSet`,due=`applianceArn`,fue=`additionalFlexibleNetworkInterfaces`,Xm=`allocationId`,pue=`availableIpAddressCount`,mue=`assignIpv6AddressOnCreation`,Zm=`additionalInfo`,Qm=`associationId`,$m=`attachmentId`,hue=`amiLaunchIndex`,gue=`attachmentLimitType`,_ue=`availabilityMode`,vue=`associatePublicIpAddress`,yue=`amazonProvidedIpv6CidrBlock`,bue=`autoProvisionZones`,xue=`autoRecoverySupported`,Sue=`allowReassociation`,eh=`associatedResource`,Cue=`autoRecovery`,th=`associationState`,wue=`autoScalingIps`,Tue=`amdSevSnp`,Eue=`addressesSet`,Due=`associationSet`,nh=`attachmentSet`,Oue=`attachmentState`,rh=`attachTime`,ih=`availabilityZone`,ah=`availabilityZoneId`,kue=`availabilityZoneInfo`,oh=`accelerators`,Aue=`affinity`,sh=`arn`,ch=`architecture`,lh=`association`,uh=`attachment`,jue=`attribute`,Mue=`baselineBandwidthInGbps`,dh=`baselineBandwidthInMbps`,fh=`blockDeviceMapping`,ph=`baselineIops`,mh=`bootMode`,Nue=`bareMetal`,hh=`blockPublicAccessStates`,Pue=`burstablePerformanceSupported`,gh=`baselineThroughputInMBps`,Fue=`bandwidthWeighting`,Iue=`bandwidthWeightings`,_h=`cidrBlock`,Lue=`cidrBlockAssociationSet`,Rue=`capacityBlockId`,zue=`cidrBlockState`,Bue=`coreCount`,Vue=`completionDurationMinutes`,Hue=`creationDate`,Uue=`carrierGatewayId`,Wue=`currentGeneration`,vh=`carrierIp`,Gue=`currentInstanceBootMode`,yh=`cidrIp`,bh=`cidrIpv6`,xh=`cidrIpv4`,Kue=`coreInfo`,que=`coreNetworkArn`,Jue=`cpuOptions`,Sh=`customerOwnedIp`,Ch=`customerOwnedIpv4Pool`,wh=`capacityReservationId`,Yue=`capacityReservationPreference`,Xue=`capacityReservationResourceGroupArn`,Zue=`capacityReservationSpecification`,Que=`capacityReservationTarget`,$ue=`currentState`,Th=`clientToken`,Eh=`connectionTrackingConfiguration`,ede=`completionTime`,tde=`connectivityType`,Dh=`createTime`,Oh=`code`,nde=`configured`,kh=`count`,Ah=`disableApiTermination`,jh=`destinationCidrBlock`,rde=`defaultCores`,ide=`dataEncryptionKeyId`,ade=`defaultEnaQueueCountPerInterface`,ode=`defaultForAz`,sde=`dedicatedHostsSupported`,Mh=`deviceIndex`,Nh=`destinationIpv6CidrBlock`,Ph=`deviceName`,cde=`defaultNetworkCardIndex`,lde=`dnsName`,ude=`dhcpOptionsId`,Fh=`deleteOnTermination`,dde=`destinationPrefixListId`,fde=`deregistrationProtection`,f=`dryRun`,pde=`destinationRegion`,mde=`defaultTcpEstablishedTimeout`,hde=`defaultThreadsPerCore`,gde=`deprecationTime`,_de=`deleteTime`,vde=`defaultUdpStreamTimeout`,yde=`defaultUdpTimeout`,bde=`defaultVCpus`,Ih=`description`,xde=`device`,Sde=`disks`,Lh=`domain`,Rh=`ebsCardIndex`,Cde=`ebsCardSet`,wde=`encryptionControl`,Tde=`enableDns64`,Ede=`elasticFileSystem`,Dde=`elasticGpuAssociationId`,Ode=`elasticGpuAssociationState`,kde=`elasticGpuAssociationSet`,Ade=`elasticGpuAssociationTime`,jde=`elasticGpuId`,Mde=`elasticInferenceAcceleratorArn`,Nde=`elasticInferenceAcceleratorAssociationId`,Pde=`elasticInferenceAcceleratorAssociationState`,Fde=`elasticInferenceAcceleratorAssociationSet`,Ide=`elasticInferenceAcceleratorAssociationTime`,Lde=`encryptionInTransitSupported`,Rde=`ebsInfo`,zde=`efaInfo`,Bde=`enableLniAtDeviceIndex`,zh=`ebsOptimized`,Vde=`ebsOptimizedInfo`,Hde=`egressOnlyInternetGateway`,Bh=`egressOnlyInternetGatewayId`,Ude=`ebsOptimizedSupport`,Wde=`enclaveOptions`,Gde=`enaQueueCount`,p=`ec2QueryName`,Vh=`enableResourceNameDnsAAAARecord`,Hh=`enableResourceNameDnsARecord`,Kde=`enaSrdEnabled`,qde=`enaSrdSpecification`,Jde=`enaSrdSupported`,Yde=`enaSrdUdpEnabled`,Xde=`enaSrdUdpSpecification`,Zde=`efaSupported`,Uh=`encryptionSupport`,Wh=`enaSupport`,Qde=`endTime`,Gh=`ebs`,Kh=`enabled`,qh=`encrypted`,Jh=`failureCode`,$de=`flexibleEnaQueuesSupport`,efe=`fpgaInfo`,Yh=`failureMessage`,Xh=`fromPort`,tfe=`fastRestored`,nfe=`fullSnapshotSizeInBytes`,Zh=`freeTierEligible`,rfe=`force`,ife=`fpgas`,afe=`groupArn`,ofe=`groupDescription`,Qh=`gatewayId`,sfe=`gpuInfo`,$h=`groupId`,cfe=`groupLongName`,eg=`groupName`,lfe=`groupOwnerId`,tg=`gpuPartitionSize`,ng=`geographySet`,rg=`groupSet`,ig=`gpus`,ag=`groups`,og=`hypervisor`,sg=`hiddenByDefault`,cg=`httpEndpoint`,lg=`hostId`,ug=`hibernationOptions`,dg=`httpProtocolIpv6`,fg=`httpPutResponseHopLimit`,pg=`hostResourceGroupArn`,mg=`hibernationSupported`,hg=`httpTokens`,gg=`hostnameType`,_g=`id`,vg=`ipv6AddressAttribute`,yg=`ipv6AddressCount`,bg=`inferenceAcceleratorInfo`,xg=`ipv4AddressesPerInterface`,Sg=`ipv6AddressesPerInterface`,Cg=`ipv4AddressesPerSecondaryInterface`,wg=`ipv6AddressesSet`,Tg=`imageAllowed`,Eg=`ipAddress`,Dg=`ipv6Address`,Og=`ipv6CidrBlock`,kg=`ipv6CidrBlockAssociationSet`,Ag=`ipv6CidrBlockState`,jg=`isDefault`,Mg=`isEgress`,Ng=`internetGateway`,Pg=`internetGatewayBlockMode`,Fg=`internetGatewayId`,Ig=`internetGatewaySet`,Lg=`instanceId`,Rg=`iamInstanceProfile`,zg=`iamInstanceProfileAssociation`,Bg=`iamInstanceProfileAssociationSet`,Vg=`instanceInitiatedShutdownBehavior`,Hg=`imageId`,Ug=`imageLocation`,Wg=`instanceLifecycle`,Gg=`instanceMetadataTags`,Kg=`ipv6Native`,qg=`imageOwnerAlias`,Jg=`imageOwnerId`,Yg=`instanceOwnerId`,Xg=`ipOwnerId`,Zg=`instanceOwningService`,Qg=`ipPermissionsEgress`,$g=`isPrimaryIpv6`,e_=`ipv4PrefixSet`,t_=`ipv6PrefixSet`,n_=`ipProtocol`,r_=`ipPermissions`,i_=`ipv4Prefix`,a_=`ipv6Pool`,o_=`ipv6Prefix`,s_=`isPublic`,c_=`isPrimary`,l_=`ipRanges`,u_=`ipv6Ranges`,d_=`instanceStorageInfo`,f_=`instanceStorageSupported`,p_=`imagesSet`,m_=`imageState`,h_=`imdsSupport`,g_=`instancesSet`,__=`instanceState`,v_=`ipSource`,y_=`ipv6Supported`,b_=`instanceType`,x_=`instanceTypeSet`,S_=`idempotencyToken`,C_=`imageType`,w_=`instanceTenancy`,T_=`interfaceType`,E_=`imageWatermarkSet`,D_=`iops`,m=`item`,O_=`key`,k_=`keyFingerprint`,A_=`kernelId`,j_=`kmsKeyId`,M_=`keyMaterial`,N_=`keyName`,P_=`keyPairId`,F_=`keySet`,I_=`keyType`,L_=`kernel`,R_=`licenseConfigurationArn`,z_=`logicalGpuCount`,B_=`localGatewayId`,V_=`linkedGroupId`,H_=`lastLaunchedTime`,U_=`licenseSet`,W_=`launchTime`,G_=`lambda`,K_=`multiAttachEnabled`,q_=`mediaAcceleratorInfo`,J_=`macAddress`,Y_=`maximumBandwidthInMbps`,X_=`mapCustomerOwnedIpOnLaunch`,Z_=`maximumEbsAttachments`,Q_=`maximumEbsCards`,$_=`maximumEfaInterfaces`,ev=`maximumEnaQueueCount`,tv=`maximumEnaQueueCountPerInterface`,nv=`maximumIops`,rv=`memoryInfo`,iv=`maximumNetworkCards`,av=`maximumNetworkInterfaces`,ov=`metadataOptions`,sv=`maintenanceOptions`,cv=`mapPublicIpOnLaunch`,lv=`maxResults`,uv=`messageSet`,dv=`maximumSecondaryNetworkInterfaces`,fv=`modificationState`,pv=`maximumThroughputInMBps`,mv=`main`,hv=`manufacturer`,gv=`managed`,_v=`message`,vv=`monitoring`,yv=`mode`,bv=`name`,xv=`networkBorderGroup`,Sv=`networkCards`,Cv=`networkCardIndex`,wv=`noDevice`,Tv=`neuronDevices`,Ev=`nitroEnclavesSupport`,Dv=`natGateway`,Ov=`natGatewayAddressSet`,kv=`natGatewayId`,Av=`natGatewaySet`,jv=`networkInterfaceId`,Mv=`networkInterfaceOwnerId`,Nv=`networkInterfaceSet`,Pv=`networkInterface`,Fv=`networkInfo`,Iv=`neuronInfo`,Lv=`networkPerformanceOptions`,Rv=`networkPerformance`,zv=`noReboot`,Bv=`nvmeSupport`,Vv=`nitroTpmInfo`,Hv=`nitroTpmSupport`,Uv=`nextToken`,Wv=`nestedVirtualization`,Gv=`origin`,Kv=`outpostArn`,qv=`ownerAlias`,Jv=`ownerId`,Yv=`optInStatus`,Xv=`originalIops`,Zv=`originalMultiAttachEnabled`,Qv=`odbNetworkArn`,$v=`originalSize`,ey=`originalThroughput`,ty=`originalVolumeType`,ny=`operator`,ry=`output`,iy=`principal`,ay=`provisionedBandwidth`,oy=`peakBandwidthInGbps`,sy=`productCodes`,cy=`partitionCount`,ly=`productCode`,uy=`privateDnsNameOptions`,dy=`privateDnsNameOptionsOnLaunch`,fy=`privateDnsName`,py=`publicDnsName`,my=`platformDetails`,hy=`placementGroup`,gy=`placementGroupInfo`,_y=`placementGroupSet`,vy=`publicIp`,yy=`privateIpAddressesSet`,by=`privateIpAddressSet`,xy=`privateIpAddress`,Sy=`publicIpv4Pool`,Cy=`processorInfo`,wy=`privateIp`,Ty=`publicKey`,Ey=`publicKeyMaterial`,Dy=`prefixListId`,Oy=`prefixListIds`,ky=`partitionNumber`,Ay=`peeringStatus`,jy=`phcSupport`,My=`previousState`,Ny=`provisionTime`,Py=`presignedUrl`,Fy=`propagatingVgwSet`,Iy=`parentZoneId`,Ly=`parentZoneName`,Ry=`platform`,zy=`placement`,By=`primary`,Vy=`progress`,Hy=`provisioned`,Uy=`return`,Wy=`rootDeviceName`,Gy=`rootDeviceType`,Ky=`restoreExpiryTime`,qy=`regionEndpoint`,Jy=`resourceExclusions`,Yy=`referencedGroupId`,Xy=`referencedGroupInfo`,Zy=`reservationId`,Qy=`ramdiskId`,$y=`regionInfo`,eb=`requesterId`,tb=`rebootMigrationSupport`,nb=`rebootMigration`,rb=`regionName`,ib=`revokedSecurityGroupRuleSet`,ab=`reservationSet`,ob=`routeSet`,sb=`routeTableAssociationId`,cb=`routeTableId`,lb=`routeTableSet`,ub=`resourceType`,db=`requestTime`,fb=`routeTable`,pb=`ramdisk`,mb=`reason`,hb=`requested`,gb=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,_b=`supportedArchitectures`,vb=`subnetArn`,yb=`supportedBootModes`,bb=`sustainedClockSpeedInGhz`,xb=`sourceDestCheck`,Sb=`spreadDomain`,Cb=`supportedFeatures`,wb=`securityGroupArn`,Tb=`securityGroupInfo`,Eb=`securityGroupRuleArn`,Db=`securityGroupRuleId`,Ob=`securityGroupRuleSet`,kb=`subGeographySet`,Ab=`sourceImageCreationTime`,jb=`sizeInGB`,Mb=`sourceInstanceId`,Nb=`secondaryInterfaceId`,Pb=`sourceImageId`,Fb=`sizeInMiB`,Ib=`sourceImageRegion`,Lb=`spotInstanceRequestId`,Rb=`supportedInRegion`,zb=`secondaryInterfaceSet`,Bb=`snapshotId`,Vb=`subnetId`,Hb=`spreadLevel`,Ub=`serviceManaged`,Wb=`statusMessage`,Gb=`stateMessage`,Kb=`secondaryNetworkId`,qb=`secondaryNetworkSupported`,Jb=`sriovNetSupport`,Yb=`secondaryPrivateIpAddressCount`,Xb=`supportedRootDeviceTypes`,Zb=`stateReason`,Qb=`sourceSecurityGroupName`,$b=`sourceSecurityGroupOwnerId`,ex=`secondarySubnetId`,tx=`snapshotSet`,nx=`subnetSet`,rx=`supportedStrategies`,ix=`startTime`,ax=`sseType`,ox=`storageTier`,sx=`supportedUsageClasses`,cx=`sourceVolumeId`,lx=`supportedVirtualizationTypes`,ux=`supportedVersions`,dx=`size`,fx=`state`,px=`status`,mx=`strategy`,hx=`subnet`,gx=`tenancy`,_x=`tcpEstablishedTimeout`,vx=`totalFpgaMemoryInMiB`,yx=`transitGatewayId`,bx=`totalGpuMemoryInMiB`,xx=`totalInferenceMemoryInMiB`,Sx=`targetIops`,Cx=`targetMultiAttachEnabled`,wx=`totalMediaMemoryInMiB`,Tx=`totalNeuronDeviceMemoryInMiB`,Ex=`toPort`,Dx=`threadsPerCore`,Ox=`tagSet`,kx=`totalSizeInGB`,Ax=`targetSize`,jx=`tpmSupport`,Mx=`targetThroughput`,Nx=`transferType`,Px=`targetVolumeType`,Fx=`throughput`,Ix=`timestamp`,Lx=`type`,Rx=`userData`,zx=`userId`,Bx=`unknownIpPermissionSet`,Vx=`usageOperation`,Hx=`usageOperationUpdateTime`,Ux=`udpStreamTimeout`,Wx=`udpTimeout`,Gx=`value`,Kx=`vCpuInfo`,qx=`validCores`,Jx=`vpcEncryptionControlId`,Yx=`vpcEndpointId`,Xx=`vpcId`,Zx=`volumeInitializationRate`,Qx=`volumeId`,$x=`vpcLattice`,eS=`volumeModification`,tS=`virtualName`,nS=`volumeOwnerId`,rS=`vpcPeeringConnectionId`,iS=`virtualPrivateGateway`,aS=`vpcPeering`,oS=`volumeSet`,sS=`volumeSize`,cS=`vpcSet`,lS=`volumeType`,uS=`validThreadsPerCore`,dS=`virtualizationType`,fS=`version`,pS=`vpc`,mS=`watermarkCreationTime`,hS=`watermarkKey`,gS=`workloadSet`,h=`xmlName`,_S=`zoneId`,vS=`zoneName`,yS=`zoneState`,bS=`zoneType`,g=`com.amazonaws.ec2`,xS=ce.for(gb),SS=[-3,gb,`EC2ServiceException`,0,[],[]];xS.registerError(SS,Jte);var CS=[xS],wS=[0,g,Wre,8,0],TS=[0,g,lae,8,0],ES=[0,g,tse,8,0],DS=[0,g,Wce,8,0],OS=[3,g,ui,0,[pi,hi,Ls,Kf,Hae,bp,hm,Sp,Vf,Zi,Qi,Gi,Zp,Ace,Mu,yp],[[0,{[p]:`AllocationId`,[h]:Xm}],[0,{[p]:`AssociationId`,[h]:Qm}],[0,{[p]:`Domain`,[h]:Lh}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`NetworkInterfaceOwnerId`,[h]:Mv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`CustomerOwnedIp`,[h]:Sh}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:Ch}],[0,{[p]:`CarrierIp`,[h]:vh}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`ServiceManaged`,[h]:Ub}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`PublicIp`,[h]:vy}]]],kS=[3,g,Yte,0,[Ls,ui,Sp,Vf,Qi,bm,Nd,d],[0,0,0,0,0,[()=>Sk,{[h]:xm}],0,[2,{[p]:`DryRun`,[h]:f}]]],AS=[3,g,Xte,0,[pi,Sp,Vf,Ls,Zi,Qi,Gi,yp],[[0,{[p]:`AllocationId`,[h]:Xm}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`Domain`,[h]:Lh}],[0,{[p]:`CustomerOwnedIp`,[h]:Sh}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:Ch}],[0,{[p]:`CarrierIp`,[h]:vh}],[0,{[p]:`PublicIp`,[h]:vy}]]],jS=[3,g,Zte,0,[pi,Mu,yp,d,Kf,bp,Ene],[0,0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[2,{[p]:`AllowReassociation`,[h]:Sue}]]],MS=[3,g,Qte,0,[hi],[[0,{[p]:`AssociationId`,[h]:Qm}]]],NS=[3,g,dne,0,[Iu,Mu],[[()=>cT,0],0],2],PS=[3,g,fne,0,[Lu],[[()=>sT,{[p]:`IamInstanceProfileAssociation`,[h]:zg}]]],FS=[3,g,Cne,0,[Ip,bl,Sp,d,Zp],[[0,{[p]:`RouteTableId`,[h]:cb}],0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SubnetId`,[h]:Vb}]],1],IS=[3,g,wne,0,[hi,bi],[[0,{[p]:`AssociationId`,[h]:Qm}],[()=>XE,{[p]:`AssociationState`,[h]:th}]]],LS=[3,g,lne,0,[Du,Lm,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`VpcId`,[h]:Xx}],[2,{[p]:`DryRun`,[h]:f}]],2],RS=[3,g,Lne,0,[Fs,Mu,zm,Vs,d],[0,0,0,1,[2,{[p]:`DryRun`,[h]:f}]],3],zS=[3,g,ine,0,[Nm],[[2,{[p]:`Value`,[h]:Gx}]]],BS=[3,g,Rne,0,[Nm],[[0,{[p]:`Value`,[h]:Gx}]]],VS=[3,g,kne,0,[wl,bm,d,am,om,Kd,il,vm,Ki,Wd],[[0,{[p]:`GroupId`,[h]:$h}],[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SourceSecurityGroupName`,[h]:Qb}],[0,{[p]:`SourceSecurityGroupOwnerId`,[h]:$b}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Xh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIp`,[h]:yh}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]],1],HS=[3,g,Ane,0,[Ap,Vp],[[2,{[p]:`Return`,[h]:Uy}],[()=>pk,{[p]:`SecurityGroupRuleSet`,[h]:Ob}]]],US=[3,g,jne,0,[Ki,il,wl,Ol,Wd,Kd,am,om,vm,bm,d],[0,1,0,0,[()=>DO,0],0,0,0,1,[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}]]],WS=[3,g,Mne,0,[Ap,Vp],[[2,{[p]:`Return`,[h]:Uy}],[()=>pk,{[p]:`SecurityGroupRuleSet`,[h]:Ob}]]],GS=[3,g,Ci,0,[ip,Sae,Pp,Ym,Jm,Ol,Vf,lue,Roe,Loe,Dl,Nl,Xse,dm],[[0,{[p]:`OptInStatus`,[h]:Yv}],[()=>ID,{[p]:`MessageSet`,[h]:uv}],[0,{[p]:`RegionName`,[h]:rb}],[0,{[p]:`ZoneName`,[h]:vS}],[0,{[p]:`ZoneId`,[h]:_S}],[0,{[p]:`GroupName`,[h]:eg}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`ZoneType`,[h]:bS}],[0,{[p]:`ParentZoneName`,[h]:Ly}],[0,{[p]:`ParentZoneId`,[h]:Iy}],[0,{[p]:`GroupLongName`,[h]:cfe}],[()=>PD,{[p]:`GeographySet`,[h]:ng}],[()=>LD,{[p]:`SubGeographySet`,[h]:kb}],[0,{[p]:`ZoneState`,[h]:yS}]]],KS=[3,g,wi,0,[Ci,Ei,mi],[0,0,[()=>AD,{[h]:pi}]]],qS=[3,g,Bne,0,[Bf],[[0,{[p]:`Name`,[h]:bv}]]],JS=[3,g,Une,0,[Lf],[[0,{[p]:`Message`,[h]:_v}]]],YS=[3,g,Gne,0,[Bf],[[0,{[p]:`Name`,[h]:bv}]]],XS=[3,g,Qne,0,[Nm],[[21,{[p]:`Value`,[h]:Gx}]]],ZS=[3,g,Pi,0,[Gc,Uf,So,Vm],[[()=>Nw,{[p]:`Ebs`,[h]:Gh}],[0,{[p]:`NoDevice`,[h]:wv}],[0,{[p]:`DeviceName`,[h]:Ph}],[0,{[p]:`VirtualName`,[h]:tS}]]],QS=[3,g,Ri,0,[Tu],[[0,{[p]:`InternetGatewayBlockMode`,[h]:Pg}]]],$S=[3,g,na,0,[ea,ra],[0,()=>tC]],eC=[3,g,Pre,0,[ea,ra],[[0,{[p]:`CapacityReservationPreference`,[h]:Yue}],[()=>nC,{[p]:`CapacityReservationTarget`,[h]:Que}]]],tC=[3,g,ra,0,[$i,ta],[0,0]],nC=[3,g,Fre,0,[$i,ta],[[0,{[p]:`CapacityReservationId`,[h]:wh}],[0,{[p]:`CapacityReservationResourceGroupArn`,[h]:Xue}]]],rC=[3,g,da,0,[gm,jm,Mm],[1,1,1]],iC=[3,g,fa,0,[gm,jm,Mm],[[1,{[p]:`TcpEstablishedTimeout`,[h]:_x}],[1,{[p]:`UdpStreamTimeout`,[h]:Ux}],[1,{[p]:`UdpTimeout`,[h]:Wx}]]],aC=[3,g,Ure,0,[Rce,zce,Ps,Ao,Xo,qc,hf,Noe,bm,Ui,ka,d],[0,0,0,0,[0,{[p]:`DestinationRegion`,[h]:pde}],[2,{[p]:`Encrypted`,[h]:qh}],[0,{[p]:`KmsKeyId`,[h]:j_}],[()=>wS,{[p]:`PresignedUrl`,[h]:Py}],[()=>Sk,{[h]:xm}],1,0,[2,{[p]:`DryRun`,[h]:f}]],2],oC=[3,g,Gre,0,[hm,Xp],[[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SnapshotId`,[h]:Bb}]]],sC=[3,g,Xi,0,[Hi,ym,xi,tp],[[1,{[p]:`CoreCount`,[h]:Bue}],[1,{[p]:`ThreadsPerCore`,[h]:Dx}],[0,{[p]:`AmdSevSnp`,[h]:Tue}],[0,{[p]:`NestedVirtualization`,[h]:Wv}]]],cC=[3,g,Ore,0,[Hi,ym,xi,tp],[1,1,0,0]],lC=[3,g,yre,0,[Mu,Bf,bm,Dce,d,Ps,Uae,Fi],[[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`Name`,[h]:bv}],[()=>Sk,{[h]:xm}],0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`Description`,[h]:Ih}],[2,{[p]:`NoReboot`,[h]:zv}],[()=>BD,{[p]:`BlockDeviceMapping`,[h]:fh}]],2],uC=[3,g,bre,0,[Xu],[[0,{[p]:`ImageId`,[h]:Hg}]]],dC=[3,g,_re,0,[bm,d],[[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}]]],fC=[3,g,vre,0,[Su],[[()=>GT,{[p]:`InternetGateway`,[h]:Ng}]]],pC=[3,g,wre,0,[gf,vf,bm,Cie,d],[0,0,[()=>Sk,{[h]:xm}],0,[2,{[p]:`DryRun`,[h]:f}]],1],mC=[3,g,Ere,0,[_i,pi,ca,d,Zp,Lm,Ti,bm,ma,bp,Bse,Fce,rm],[0,0,[0,4],2,0,0,[()=>ND,{[h]:wi}],[()=>Sk,{[h]:xm}],0,0,[()=>AD,{[h]:Vse}],[()=>EO,{[h]:Ice}],1]],hC=[3,g,Dre,0,[ca,Wf],[[0,{[p]:`ClientToken`,[h]:Th}],[()=>fE,{[p]:`NatGateway`,[h]:Dv}]]],gC=[3,g,Are,0,[up,bm,Qp,xf,op,d,Ol,pm],[1,[()=>Sk,{[h]:xm}],0,0,()=>SE,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`GroupName`,[h]:eg}],[0,{[p]:`Strategy`,[h]:mx}]]],_C=[3,g,jre,0,[_p],[[()=>TE,{[p]:`PlacementGroup`,[h]:hy}]]],vC=[3,g,Mre,0,[Ip,Ro,Im,_m,bf,Wi,Yi,ap,d,Fa,bl,Ua,Cc,Mu,Kf,Hm,Gf],[[0,{[p]:`RouteTableId`,[h]:cb}],0,0,0,0,0,0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`DestinationCidrBlock`,[h]:jh}],[0,{[p]:`GatewayId`,[h]:Qh}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Nh}],[0,{[p]:`EgressOnlyInternetGatewayId`,[h]:Bh}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`NatGatewayId`,[h]:kv}]],1],yC=[3,g,Nre,0,[Ap],[[2,{[p]:`Return`,[h]:Uy}]]],bC=[3,g,Ire,0,[Lm,bm,ca,d],[[0,{[p]:`VpcId`,[h]:Xx}],[()=>Sk,{[h]:xm}],[0,4],[2,{[p]:`DryRun`,[h]:f}]],1],xC=[3,g,Lre,0,[Lp,ca],[[()=>JE,{[p]:`RouteTable`,[h]:fb}],[0,{[p]:`ClientToken`,[h]:Th}]]],SC=[3,g,Vre,0,[Ps,Ol,Lm,bm,d],[[0,{[h]:gl}],0,0,[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}]],2],CC=[3,g,Hre,0,[wl,hm,zp],[[0,{[p]:`GroupId`,[h]:$h}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SecurityGroupArn`,[h]:wb}]]],wC=[3,g,Kre,0,[zm,Ps,np,bm,Zie,d],[0,0,0,[()=>Sk,{[h]:xm}],0,[2,{[p]:`DryRun`,[h]:f}]],1],TC=[3,g,qre,0,[Lm,bm,Ci,Ei,Vi,du,np,hd,Vu,Cd,Bu,Sd,d],[0,[()=>Sk,{[h]:xm}],0,0,0,0,0,2,0,1,0,1,[2,{[p]:`DryRun`,[h]:f}]],1],EC=[3,g,Jre,0,[mm],[[()=>cD,{[p]:`Subnet`,[h]:hx}]]],DC=[3,g,ga,0,[Ci,Ei,qc,ff,hf,np,um,Xp,Wm,bm,Sf,wm,ca,Rm,op,d],[0,0,[2,{[p]:`Encrypted`,[h]:qh}],1,0,0,1,0,0,[()=>Sk,{[h]:xm}],2,1,[0,4],1,()=>SE,[2,{[p]:`DryRun`,[h]:f}]]],OC=[3,g,_a,0,[Vi,Jd,du,Vu,Cd,Bu,Sd,pu,Fm,bm,d,lf,bne],[0,0,0,0,1,0,1,0,()=>wD,[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`InstanceTenancy`,[h]:w_}],[2,{[p]:`AmazonProvidedIpv6CidrBlock`,[h]:yue}]]],kC=[3,g,va,0,[qm],[[()=>bD,{[p]:`Vpc`,[h]:pS}]]],AC=[3,g,Yre,0,[fre],[0],1],jC=[3,g,Ia,0,[hs,bs,ys],[[1,{[p]:`DefaultTcpEstablishedTimeout`,[h]:mde}],[1,{[p]:`DefaultUdpTimeout`,[h]:yde}],[1,{[p]:`DefaultUdpStreamTimeout`,[h]:vde}]]],MC=[3,g,Ga,0,[Du,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[2,{[p]:`DryRun`,[h]:f}]],1],NC=[3,g,go,0,[gf,_f,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],PC=[3,g,_o,0,[Ap,_f],[[2,{[p]:`Return`,[h]:Uy}],[0,{[p]:`KeyPairId`,[h]:P_}]]],FC=[3,g,To,0,[Gf,d],[[0,{[h]:Gf}],2],1],IC=[3,g,Eo,0,[Gf],[[0,{[p]:`NatGatewayId`,[h]:kv}]]],LC=[3,g,Po,0,[Ol,d],[[0,{[p]:`GroupName`,[h]:eg}],[2,{[p]:`DryRun`,[h]:f}]],1],RC=[3,g,Bo,0,[Ip,Ro,d,Fa,Ua],[[0,{[p]:`RouteTableId`,[h]:cb}],0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`DestinationCidrBlock`,[h]:jh}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Nh}]],1],zC=[3,g,Wo,0,[Ip,d],[[0,{[p]:`RouteTableId`,[h]:cb}],[2,{[p]:`DryRun`,[h]:f}]],1],BC=[3,g,es,0,[wl,Ol,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],VC=[3,g,ts,0,[Ap,wl],[[2,{[p]:`Return`,[h]:Uy}],[0,{[p]:`GroupId`,[h]:$h}]]],HC=[3,g,as,0,[Xp,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],UC=[3,g,os,0,[Zp,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],WC=[3,g,Ss,0,[zm,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],GC=[3,g,Cs,0,[Lm,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],KC=[3,g,wa,0,[woe,d,cl,mi],[[()=>$O,{[h]:yp}],[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}],[()=>AD,{[h]:pi}]]],qC=[3,g,Ta,0,[Jne],[[()=>kD,{[p]:`AddressesSet`,[h]:Eue}]]],JC=[3,g,Aa,0,[cue,oue,$te,d,cl],[[()=>Lk,{[h]:Ym}],[()=>Ik,{[h]:Jm}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],YC=[3,g,ja,0,[qne],[[()=>FD,{[p]:`AvailabilityZoneInfo`,[h]:kue}]]],XC=[3,g,$a,0,[hne,cl,Nf,ep],[[()=>MD,{[h]:hi}],[()=>XD,{[h]:ll}],1,0]],ZC=[3,g,eo,0,[zu,ep],[[()=>nO,{[p]:`IamInstanceProfileAssociationSet`,[h]:Bg}],[0,{[p]:`NextToken`,[h]:Uv}]]],QC=[3,g,io,0,[Wc,Zu,ioe,hu,yu,Nf,ep,d,cl],[[()=>YD,{[h]:Bs}],[()=>rO,{[h]:Xu}],[()=>GO,{[h]:sp}],2,2,1,0,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],$C=[3,g,ao,0,[ep,vie],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>iO,{[p]:`ImagesSet`,[h]:p_}]]],ew=[3,g,oo,0,[Qu,pd,d,cl,ep,Nf],[[()=>lO,{[h]:Mu}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}],[0,{[p]:`NextToken`,[h]:Uv}],[1,{[p]:`MaxResults`,[h]:lv}]]],tw=[3,g,so,0,[ep,Ise],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>rk,{[p]:`ReservationSet`,[h]:ab}]]],nw=[3,g,co,0,[d,uf,cl,Nf,ep,mie],[2,[64,{[h]:cf}],[()=>XD,{[h]:ll}],1,0,2]],rw=[3,g,lo,0,[uf,ep],[[()=>SO,{[p]:`InstanceTypeSet`,[h]:x_}],[0,{[p]:`NextToken`,[h]:Uv}]]],iw=[3,g,Ka,0,[ep,Nf,d,ku,cl],[0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>wO,{[p]:`InternetGatewayId`,[h]:Fg}],[()=>XD,{[h]:ll}]]],aw=[3,g,qa,0,[ju,ep],[[()=>TO,{[p]:`InternetGatewaySet`,[h]:Ig}],[0,{[p]:`NextToken`,[h]:Uv}]]],ow=[3,g,vo,0,[Eie,kie,Ld,d,cl],[[()=>MO,{[h]:gf}],[()=>NO,{[h]:_f}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],sw=[3,g,yo,0,[Die],[[()=>PO,{[p]:`KeySet`,[h]:F_}]]],cw=[3,g,Do,0,[d,ll,Nf,zae,ep],[2,[()=>XD,0],1,[()=>BO,{[h]:Gf}],0]],lw=[3,g,Oo,0,[Vae,ep],[[()=>VO,{[p]:`NatGatewaySet`,[h]:Av}],[0,{[p]:`NextToken`,[h]:Uv}]]],uw=[3,g,Fo,0,[Tl,d,Al,cl],[[()=>KO,{[h]:wl}],[2,{[p]:`DryRun`,[h]:f}],[64,{[p]:`GroupName`,[h]:eg}],[()=>XD,{[h]:ll}]]],dw=[3,g,Io,0,[goe],[[()=>qO,{[p]:`PlacementGroupSet`,[h]:_y}]]],fw=[3,g,Vo,0,[fse,Dne,d,cl],[[()=>nk,{[h]:Pp}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],pw=[3,g,Ho,0,[Nse],[[()=>tk,{[p]:`RegionInfo`,[h]:$y}]]],mw=[3,g,Go,0,[ep,Nf,d,Dse,cl],[0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>ck,{[h]:Ip}],[()=>XD,{[h]:ll}]]],hw=[3,g,Ko,0,[jse,ep],[[()=>lk,{[p]:`RouteTableSet`,[h]:lb}],[0,{[p]:`NextToken`,[h]:Uv}]]],gw=[3,g,ns,0,[Tl,Al,ep,Nf,d,cl],[[()=>eO,{[h]:wl}],[()=>tO,{[h]:Ol}],0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],_w=[3,g,rs,0,[ep,Wp],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>dk,{[p]:`SecurityGroupInfo`,[h]:Tb}]]],vw=[3,g,ss,0,[Nf,ep,Yae,Uoe,Sce,d,cl],[1,0,[()=>GO,{[h]:sp}],[64,{[h]:Woe}],[()=>hk,{[h]:Xp}],[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}]]],yw=[3,g,cs,0,[ep,Jce],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>gk,{[p]:`SnapshotSet`,[h]:tx}]]],bw=[3,g,ls,0,[cl,ace,ep,Nf,d],[[()=>XD,{[h]:ll}],[()=>_k,{[h]:Zp}],0,1,[2,{[p]:`DryRun`,[h]:f}]]],xw=[3,g,us,0,[ep,Xce],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>yk,{[p]:`SubnetSet`,[h]:nx}]]],Sw=[3,g,ws,0,[Ile,pd,d,cl,ep,Nf],[[()=>kk,{[h]:zm}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:ll}],[0,{[p]:`NextToken`,[h]:Uv}],[1,{[p]:`MaxResults`,[h]:lv}]]],Cw=[3,g,Ts,0,[ep,Qle],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>Ak,{[p]:`VolumeSet`,[h]:oS}]]],ww=[3,g,Es,0,[cl,Lle,ep,Nf,d],[[()=>XD,{[h]:ll}],[()=>Mk,{[h]:Lm}],0,1,[2,{[p]:`DryRun`,[h]:f}]]],Tw=[3,g,Ds,0,[ep,eue],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>Pk,{[p]:`VpcSet`,[h]:cS}]]],Ew=[3,g,Ja,0,[Du,Lm,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`VpcId`,[h]:Xx}],[2,{[p]:`DryRun`,[h]:f}]],2],Dw=[3,g,Os,0,[zm,Fs,Yc,Mu,d],[0,0,2,0,[2,{[p]:`DryRun`,[h]:f}]],1],Ow=[3,g,Ea,0,[hi,yp,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],kw=[3,g,to,0,[hi],[0],1],Aw=[3,g,no,0,[Lu],[[()=>sT,{[p]:`IamInstanceProfileAssociation`,[h]:zg}]]],jw=[3,g,qo,0,[hi,d],[[0,{[p]:`AssociationId`,[h]:Qm}],[2,{[p]:`DryRun`,[h]:f}]],1],Mw=[3,g,mo,0,[lce,Ca,Em],[[1,{[p]:`SizeInGB`,[h]:jb}],[1,{[p]:`Count`,[h]:kh}],[0,{[p]:`Type`,[h]:Lx}]]],Nw=[3,g,Rs,0,[Mo,ff,Xp,Um,Wm,hf,wm,np,Ci,qc,Rm,Ei,Vs],[[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[1,{[p]:`Iops`,[h]:D_}],[0,{[p]:`SnapshotId`,[h]:Bb}],[1,{[p]:`VolumeSize`,[h]:sS}],[0,{[p]:`VolumeType`,[h]:lS}],[0,{[p]:`KmsKeyId`,[h]:j_}],[1,{[p]:`Throughput`,[h]:Fx}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`AvailabilityZone`,[h]:ih}],[2,{[p]:`Encrypted`,[h]:qh}],1,0,1]],Pw=[3,g,Us,0,[Vs,Ni,zi,Ii,Tf,Ff,Df],[[1,{[p]:`EbsCardIndex`,[h]:Rh}],[1,{[p]:`BaselineBandwidthInMbps`,[h]:dh}],[1,{[p]:`BaselineThroughputInMBps`,[h]:gh}],[1,{[p]:`BaselineIops`,[h]:ph}],[1,{[p]:`MaximumBandwidthInMbps`,[h]:Y_}],[1,{[p]:`MaximumThroughputInMBps`,[h]:pv}],[1,{[p]:`MaximumIops`,[h]:nv}]]],Fw=[3,g,gc,0,[Tc,Vc,bc,Qf,rae,_ne,iae,Ws],[[0,{[p]:`EbsOptimizedSupport`,[h]:Ude}],[0,{[p]:`EncryptionSupport`,[h]:Uh}],[()=>Rw,{[p]:`EbsOptimizedInfo`,[h]:Vde}],[0,{[p]:`NvmeSupport`,[h]:Bv}],[1,{[p]:`MaximumEbsAttachments`,[h]:Z_}],[0,{[p]:`AttachmentLimitType`,[h]:gue}],[1,{[p]:`MaximumEbsCards`,[h]:Q_}],[()=>WD,{[p]:`EbsCardSet`,[h]:Cde}]]],Iw=[3,g,pc,0,[Si,Mo,fm,zm,vi,Hle,op,Vs],[[4,{[p]:`AttachTime`,[h]:rh}],[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`AssociatedResource`,[h]:eh}],[0,{[p]:`VolumeOwnerId`,[h]:nS}],[()=>CE,{[p]:`Operator`,[h]:ny}],[1,{[p]:`EbsCardIndex`,[h]:Rh}]]],Lw=[3,g,mc,0,[zm,Mo],[[0,{[p]:`VolumeId`,[h]:Qx}],[2,{[p]:`DeleteOnTermination`,[h]:Fh}]]],Rw=[3,g,bc,0,[Ni,zi,Ii,Tf,Ff,Df],[[1,{[p]:`BaselineBandwidthInMbps`,[h]:dh}],[1,{[p]:`BaselineThroughputInMBps`,[h]:gh}],[1,{[p]:`BaselineIops`,[h]:ph}],[1,{[p]:`MaximumBandwidthInMbps`,[h]:Y_}],[1,{[p]:`MaximumThroughputInMBps`,[h]:pv}],[1,{[p]:`MaximumIops`,[h]:nv}]]],zw=[3,g,_c,0,[aae],[[1,{[p]:`MaximumEfaInterfaces`,[h]:$_}]]],Bw=[3,g,Ys,0,[tc,Xs,Qs,$s],[[0,{[p]:`ElasticGpuId`,[h]:jde}],[0,{[p]:`ElasticGpuAssociationId`,[h]:Dde}],[0,{[p]:`ElasticGpuAssociationState`,[h]:Ode}],[0,{[p]:`ElasticGpuAssociationTime`,[h]:Ade}]]],Vw=[3,g,nc,0,[Em],[0],1],Hw=[3,g,ic,0,[Em,Ca],[0,1],1],Uw=[3,g,ac,0,[uc,oc,cc,lc],[[0,{[p]:`ElasticInferenceAcceleratorArn`,[h]:Mde}],[0,{[p]:`ElasticInferenceAcceleratorAssociationId`,[h]:Nde}],[0,{[p]:`ElasticInferenceAcceleratorAssociationState`,[h]:Pde}],[4,{[p]:`ElasticInferenceAcceleratorAssociationTime`,[h]:Ide}]]],Ww=[3,g,Fc,0,[Nc,Rc],[2,()=>Gw]],Gw=[3,g,zc,0,[Lc],[2]],Kw=[3,g,Ec,0,[Kc],[[2,{[p]:`Enabled`,[h]:Kh}]]],qw=[3,g,wc,0,[Kc],[2]],Jw=[3,g,ll,0,[Bf,Zle],[0,[()=>Ek,{[h]:Nm}]]],Yw=[3,g,Zc,0,[Bf,If,Ca,Of],[[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[1,{[p]:`Count`,[h]:kh}],[()=>Xw,{[p]:`MemoryInfo`,[h]:rv}]]],Xw=[3,g,$c,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],Zw=[3,g,tl,0,[ul,Zce],[[()=>ZD,{[p]:`Fpgas`,[h]:ife}],[1,{[p]:`TotalFpgaMemoryInMiB`,[h]:vx}]]],Qw=[3,g,ml,0,[Mu,Jie,d],[0,2,[2,{[p]:`DryRun`,[h]:f}]],1],$w=[3,g,hl,0,[Mu,Tm,roe],[[0,{[p]:`InstanceId`,[h]:Lg}],[4,{[p]:`Timestamp`,[h]:Ix}],[0,{[p]:`Output`,[h]:ry}]]],eT=[3,g,_l,0,[Bf,If,Ca,Lie,Ml,iue,Of],[[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[1,{[p]:`Count`,[h]:kh}],[1,{[p]:`LogicalGpuCount`,[h]:z_}],[1,{[p]:`GpuPartitionSize`,[h]:tg}],[()=>Fk,{[p]:`WorkloadSet`,[h]:gS}],[()=>tT,{[p]:`MemoryInfo`,[h]:rv}]]],tT=[3,g,yl,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],nT=[3,g,Cl,0,[Pl,Qce],[[()=>QD,{[p]:`Gpus`,[h]:ig}],[1,{[p]:`TotalGpuMemoryInMiB`,[h]:bx}]]],rT=[3,g,El,0,[wl,Ol],[[0,{[p]:`GroupId`,[h]:$h}],[0,{[p]:`GroupName`,[h]:eg}]]],iT=[3,g,Rl,0,[Sa],[[2,{[p]:`Configured`,[h]:nde}]]],aT=[3,g,zl,0,[Sa],[2]],oT=[3,g,Iu,0,[Oi,Jl],[[0,{[p]:`Arn`,[h]:sh}],[0,{[p]:`Id`,[h]:_g}]]],sT=[3,g,Lu,0,[hi,Mu,Iu,dm,Tm],[[0,{[p]:`AssociationId`,[h]:Qm}],[0,{[p]:`InstanceId`,[h]:Lg}],[()=>oT,{[p]:`IamInstanceProfile`,[h]:Rg}],[0,{[p]:`State`,[h]:fx}],[4,{[p]:`Timestamp`,[h]:Ix}]]],cT=[3,g,Wu,0,[Oi,Bf],[[0,{[p]:`Arn`,[h]:sh}],[0,{[p]:`Name`,[h]:bv}]]],lT=[3,g,yie,0,[gp,Am,Fi,Ps,Hc,ql,Ed,Bf,jp,Mp,tm,im,hm,Gm,Li,Sm,_s,cie,dce,zo,zie,iu,Kp,Jp,sl,hie,Xu,nd,dm,rp,pre,Boe,dp,ki,pie,mf,Np,Ep],[[0,{[p]:`PlatformDetails`,[h]:my}],[0,{[p]:`UsageOperation`,[h]:Vx}],[()=>zD,{[p]:`BlockDeviceMapping`,[h]:fh}],[0,{[p]:`Description`,[h]:Ih}],[2,{[p]:`EnaSupport`,[h]:Wh}],[0,{[p]:`Hypervisor`,[h]:og}],[0,{[p]:`ImageOwnerAlias`,[h]:qg}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`RootDeviceName`,[h]:Wy}],[0,{[p]:`RootDeviceType`,[h]:Gy}],[0,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>aD,{[p]:`StateReason`,[h]:Zb}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VirtualizationType`,[h]:dS}],[0,{[p]:`BootMode`,[h]:mh}],[0,{[p]:`TpmSupport`,[h]:jx}],[0,{[p]:`DeprecationTime`,[h]:gde}],[0,{[p]:`ImdsSupport`,[h]:h_}],[0,{[p]:`SourceInstanceId`,[h]:Mb}],[0,{[p]:`DeregistrationProtection`,[h]:fde}],[0,{[p]:`LastLaunchedTime`,[h]:H_}],[2,{[p]:`ImageAllowed`,[h]:Tg}],[0,{[p]:`SourceImageId`,[h]:Pb}],[0,{[p]:`SourceImageRegion`,[h]:Ib}],[2,{[p]:`FreeTierEligible`,[h]:Zh}],[()=>aO,{[p]:`ImageWatermarkSet`,[h]:E_}],[0,{[p]:`ImageId`,[h]:Hg}],[0,{[p]:`ImageLocation`,[h]:Ug}],[0,{[p]:`ImageState`,[h]:m_}],[0,{[p]:`ImageOwnerId`,[h]:Jg}],[0,{[p]:`CreationDate`,[h]:Hue}],[2,{[p]:`IsPublic`,[h]:s_}],[()=>ZO,{[p]:`ProductCodes`,[h]:sy}],[0,{[p]:`Architecture`,[h]:ch}],[0,{[p]:`ImageType`,[h]:C_}],[0,{[p]:`KernelId`,[h]:A_}],[0,{[p]:`RamdiskId`,[h]:Qy}],[0,{[p]:`Platform`,[h]:Ry}]]],uT=[3,g,_ie,0,[nue,Jp,Kp,cce,tue],[[0,{[p]:`WatermarkKey`,[h]:hS}],[0,{[p]:`SourceImageRegion`,[h]:Ib}],[0,{[p]:`SourceImageId`,[h]:Pb}],[4,{[p]:`SourceImageCreationTime`,[h]:Ab}],[4,{[p]:`WatermarkCreationTime`,[h]:mS}]]],dT=[3,g,ed,0,[gf,Eoe,bm,d],[[0,{[p]:`KeyName`,[h]:N_}],[21,{[p]:`PublicKeyMaterial`,[h]:Ey}],[()=>Sk,{[h]:xm}],[2,{[p]:`DryRun`,[h]:f}]],2],fT=[3,g,td,0,[pf,gf,_f,hm],[[0,{[p]:`KeyFingerprint`,[h]:k_}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyPairId`,[h]:P_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],pT=[3,g,eu,0,[Di,ele],[[()=>oO,{[p]:`Accelerators`,[h]:oh}],[1,{[p]:`TotalInferenceMemoryInMiB`,[h]:xx}]]],mT=[3,g,gu,0,[Ca,Bf,If,Of],[[1,{[p]:`Count`,[h]:kh}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[()=>hT,{[p]:`MemoryInfo`,[h]:rv}]]],hT=[3,g,vu,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],gT=[3,g,bie,0,[ki,Fi,ca,yc,Hc,ql,Iu,id,ec,dc,qf,np,jp,Mp,Wp,Rp,fce,tm,im,hm,Gm,Xi,lre,$i,na,Rl,Xie,Af,Ec,Li,gp,Am,xle,pp,ou,Sm,jf,hre,Xf,op,Yp,Mu,Xu,dm,fp,hp,Vce,gf,gne,dp,cf,qie,Dp,mf,Np,Ep,zf,Zp,Lm,bp,boe],[[0,{[p]:`Architecture`,[h]:ch}],[()=>sO,{[p]:`BlockDeviceMapping`,[h]:fh}],[0,{[p]:`ClientToken`,[h]:Th}],[2,{[p]:`EbsOptimized`,[h]:zh}],[2,{[p]:`EnaSupport`,[h]:Wh}],[0,{[p]:`Hypervisor`,[h]:og}],[()=>oT,{[p]:`IamInstanceProfile`,[h]:Rg}],[0,{[p]:`InstanceLifecycle`,[h]:Wg}],[()=>GD,{[p]:`ElasticGpuAssociationSet`,[h]:kde}],[()=>qD,{[p]:`ElasticInferenceAcceleratorAssociationSet`,[h]:Fde}],[()=>mO,{[p]:`NetworkInterfaceSet`,[h]:Nv}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`RootDeviceName`,[h]:Wy}],[0,{[p]:`RootDeviceType`,[h]:Gy}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`SpotInstanceRequestId`,[h]:Lb}],[0,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>aD,{[p]:`StateReason`,[h]:Zb}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VirtualizationType`,[h]:dS}],[()=>sC,{[p]:`CpuOptions`,[h]:Jue}],[0,{[p]:`CapacityBlockId`,[h]:Rue}],[0,{[p]:`CapacityReservationId`,[h]:wh}],[()=>eC,{[p]:`CapacityReservationSpecification`,[h]:Zue}],[()=>iT,{[p]:`HibernationOptions`,[h]:ug}],[()=>FO,{[p]:`LicenseSet`,[h]:U_}],[()=>OT,{[p]:`MetadataOptions`,[h]:ov}],[()=>Kw,{[p]:`EnclaveOptions`,[h]:Wde}],[0,{[p]:`BootMode`,[h]:mh}],[0,{[p]:`PlatformDetails`,[h]:my}],[0,{[p]:`UsageOperation`,[h]:Vx}],[4,{[p]:`UsageOperationUpdateTime`,[h]:Hx}],[()=>AE,{[p]:`PrivateDnsNameOptions`,[h]:uy}],[0,{[p]:`Ipv6Address`,[h]:Dg}],[0,{[p]:`TpmSupport`,[h]:jx}],[()=>wT,{[p]:`MaintenanceOptions`,[h]:sv}],[0,{[p]:`CurrentInstanceBootMode`,[h]:Gue}],[()=>NT,{[p]:`NetworkPerformanceOptions`,[h]:Lv}],[()=>CE,{[p]:`Operator`,[h]:ny}],[()=>_O,{[p]:`SecondaryInterfaceSet`,[h]:zb}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`ImageId`,[h]:Hg}],[()=>VT,{[p]:`InstanceState`,[h]:__}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`DnsName`,[h]:lde}],[0,{[p]:`Reason`,[h]:mb}],[0,{[p]:`KeyName`,[h]:N_}],[1,{[p]:`AmiLaunchIndex`,[h]:hue}],[()=>ZO,{[p]:`ProductCodes`,[h]:sy}],[0,{[p]:`InstanceType`,[h]:b_}],[4,{[p]:`LaunchTime`,[h]:W_}],[()=>wE,{[p]:`Placement`,[h]:zy}],[0,{[p]:`KernelId`,[h]:A_}],[0,{[p]:`RamdiskId`,[h]:Qy}],[0,{[p]:`Platform`,[h]:Ry}],[()=>dE,{[p]:`Monitoring`,[h]:vv}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[0,{[p]:`IpAddress`,[h]:Eg}]]],_T=[3,g,Ql,0,[Nc,Rc],[[2,{[p]:`EnaSrdEnabled`,[h]:Kde}],[()=>vT,{[p]:`EnaSrdUdpSpecification`,[h]:Xde}]]],vT=[3,g,$l,0,[Lc],[[2,{[p]:`EnaSrdUdpEnabled`,[h]:Yde}]]],yT=[3,g,su,0,[So,Gc],[[0,{[p]:`DeviceName`,[h]:Ph}],[()=>Iw,{[p]:`Ebs`,[h]:Gh}]]],bT=[3,g,lu,0,[So,Gc,Vm,Uf],[[0,{[p]:`DeviceName`,[h]:Ph}],[()=>Lw,{[p]:`Ebs`,[h]:Gh}],[0,{[p]:`VirtualName`,[h]:tS}],[0,{[p]:`NoDevice`,[h]:wv}]]],xT=[3,g,Gu,0,[Xd],[[0,{[p]:`Ipv4Prefix`,[h]:i_}]]],ST=[3,g,Nu,0,[ou,Id],[[0,{[p]:`Ipv6Address`,[h]:Dg}],[2,{[p]:`IsPrimaryIpv6`,[h]:$g}]]],CT=[3,g,Ku,0,[qd],[[0,{[p]:`Ipv6Prefix`,[h]:o_}]]],wT=[3,g,sd,0,[yi,use],[[0,{[p]:`AutoRecovery`,[h]:Cue}],[0,{[p]:`RebootMigration`,[h]:nb}]]],TT=[3,g,cd,0,[yi],[0]],ET=[3,g,ld,0,[gae,Pce],[0,()=>nD]],DT=[3,g,ud,0,[Wl,Vl,Il,Bl,md],[0,1,0,0,0]],OT=[3,g,dd,0,[dm,Wl,Vl,Il,Bl,md],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`HttpTokens`,[h]:hg}],[1,{[p]:`HttpPutResponseHopLimit`,[h]:fg}],[0,{[p]:`HttpEndpoint`,[h]:cg}],[0,{[p]:`HttpProtocolIpv6`,[h]:dg}],[0,{[p]:`InstanceMetadataTags`,[h]:Gg}]]],kT=[3,g,gd,0,[Ai,ji,Ps,dl,Yl,wf,Kf,rp,fp,bp,xp,Rp,fm,Zp,Lm,df,Yd,Ud,la,op],[[()=>AT,{[p]:`Association`,[h]:lh}],[()=>jT,{[p]:`Attachment`,[h]:uh}],[0,{[p]:`Description`,[h]:Ih}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[()=>dO,{[p]:`Ipv6AddressesSet`,[h]:wg}],[0,{[p]:`MacAddress`,[h]:J_}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>gO,{[p]:`PrivateIpAddressesSet`,[h]:yy}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`InterfaceType`,[h]:T_}],[()=>uO,{[p]:`Ipv4PrefixSet`,[h]:e_}],[()=>fO,{[p]:`Ipv6PrefixSet`,[h]:t_}],[()=>iC,{[p]:`ConnectionTrackingConfiguration`,[h]:Eh}],[()=>CE,{[p]:`Operator`,[h]:ny}]]],AT=[3,g,_d,0,[Gi,Zi,Dd,hp,yp],[[0,{[p]:`CarrierIp`,[h]:vh}],[0,{[p]:`CustomerOwnedIp`,[h]:Sh}],[0,{[p]:`IpOwnerId`,[h]:Xg}],[0,{[p]:`PublicDnsName`,[h]:py}],[0,{[p]:`PublicIp`,[h]:vy}]]],jT=[3,g,vd,0,[Si,gi,Mo,Ha,fm,Hf,Pc,Oc],[[4,{[p]:`AttachTime`,[h]:rh}],[0,{[p]:`AttachmentId`,[h]:$m}],[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[1,{[p]:`DeviceIndex`,[h]:Mh}],[0,{[p]:`Status`,[h]:px}],[1,{[p]:`NetworkCardIndex`,[h]:Cv}],[()=>_T,{[p]:`EnaSrdSpecification`,[h]:qde}],[1,{[p]:`EnaQueueCount`,[h]:Gde}]]],MT=[3,g,bd,0,[yne,Mo,Ps,Ha,dl,Zl,Yl,Kf,bp,xp,rm,Zp,ane,df,Hf,Yd,jd,Ud,Ad,Soe,Pc,ua,Oc],[[2,{[p]:`AssociatePublicIpAddress`,[h]:vue}],[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[0,{[p]:`Description`,[h]:Ih}],[1,{[p]:`DeviceIndex`,[h]:Mh}],[()=>uk,{[h]:Bp}],[1,{[p]:`Ipv6AddressCount`,[h]:yg}],[()=>dO,{[p]:`Ipv6Addresses`,[h]:wg}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>XO,{[p]:`PrivateIpAddresses`,[h]:yy}],[1,{[p]:`SecondaryPrivateIpAddressCount`,[h]:Yb}],[0,{[p]:`SubnetId`,[h]:Vb}],2,0,1,[()=>kO,{[h]:Xd}],1,[()=>AO,{[h]:qd}],1,2,()=>Ww,()=>rC,1]],NT=[3,g,wd,0,[Bi],[[0,{[p]:`BandwidthWeighting`,[h]:Fue}]]],PT=[3,g,Td,0,[Bi],[0]],FT=[3,g,Pd,0,[Ai,Op,fp,bp],[[()=>AT,{[p]:`Association`,[h]:lh}],[2,{[p]:`Primary`,[h]:By}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],IT=[3,g,oie,0,[ji,wf,uce,rp,xp,Rp,fm,sm,Mce,df],[[()=>LT,{[p]:`Attachment`,[h]:uh}],[0,{[p]:`MacAddress`,[h]:J_}],[0,{[p]:`SecondaryInterfaceId`,[h]:Nb}],[0,{[p]:`OwnerId`,[h]:Jv}],[()=>vO,{[p]:`PrivateIpAddressSet`,[h]:by}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`SecondarySubnetId`,[h]:ex}],[0,{[p]:`SecondaryNetworkId`,[h]:Kb}],[0,{[p]:`InterfaceType`,[h]:T_}]]],LT=[3,g,Qre,0,[Si,gi,Mo,Ha,fm,Hf],[[4,{[p]:`AttachTime`,[h]:rh}],[0,{[p]:`AttachmentId`,[h]:$m}],[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[1,{[p]:`DeviceIndex`,[h]:Mh}],[0,{[p]:`Status`,[h]:px}],[1,{[p]:`NetworkCardIndex`,[h]:Cv}]]],RT=[3,g,eie,0,[bp],[[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],zT=[3,g,rie,0,[bp],[0],1],BT=[3,g,aie,0,[Mo,Ha,xp,_oe,sm,df,Hf],[2,1,[()=>yO,{[h]:bp}],1,0,0,1]],VT=[3,g,lie,0,[xa,Bf],[[1,{[p]:`Code`,[h]:Oh}],[0,{[p]:`Name`,[h]:bv}]]],HT=[3,g,af,0,[Mu,sa,joe],[[0,{[p]:`InstanceId`,[h]:Lg}],[()=>VT,{[p]:`CurrentState`,[h]:$ue}],[()=>VT,{[p]:`PreviousState`,[h]:My}]]],UT=[3,g,of,0,[ule,Is,Qf,Vc],[[1,{[p]:`TotalSizeInGB`,[h]:kx}],[()=>UD,{[p]:`Disks`,[h]:Sde}],[0,{[p]:`NvmeSupport`,[h]:Bv}],[0,{[p]:`EncryptionSupport`,[h]:Uh}]]],WT=[3,g,fie,0,[cf,mre,sl,Uce,Lce,Kce,ire,ql,Cp,Pm,Of,sie,of,gc,Jf,Cl,tl,vp,eu,Ul,are,Va,Sne,Gse,jae,Wae,$f,Cf,Yf,Aoe,lse,_ce],[[0,{[p]:`InstanceType`,[h]:b_}],[2,{[p]:`CurrentGeneration`,[h]:Wue}],[2,{[p]:`FreeTierEligible`,[h]:Zh}],[()=>wk,{[p]:`SupportedUsageClasses`,[h]:sx}],[()=>ak,{[p]:`SupportedRootDeviceTypes`,[h]:Xb}],[()=>Dk,{[p]:`SupportedVirtualizationTypes`,[h]:lx}],[2,{[p]:`BareMetal`,[h]:Nue}],[0,{[p]:`Hypervisor`,[h]:og}],[()=>ME,{[p]:`ProcessorInfo`,[h]:Cy}],[()=>gD,{[p]:`VCpuInfo`,[h]:Kx}],[()=>oE,{[p]:`MemoryInfo`,[h]:rv}],[2,{[p]:`InstanceStorageSupported`,[h]:f_}],[()=>UT,{[p]:`InstanceStorageInfo`,[h]:d_}],[()=>Fw,{[p]:`EbsInfo`,[h]:Rde}],[()=>gE,{[p]:`NetworkInfo`,[h]:Fv}],[()=>nT,{[p]:`GpuInfo`,[h]:sfe}],[()=>Zw,{[p]:`FpgaInfo`,[h]:efe}],[()=>EE,{[p]:`PlacementGroupInfo`,[h]:gy}],[()=>pT,{[p]:`InferenceAcceleratorInfo`,[h]:bg}],[2,{[p]:`HibernationSupported`,[h]:mg}],[2,{[p]:`BurstablePerformanceSupported`,[h]:Pue}],[2,{[p]:`DedicatedHostsSupported`,[h]:sde}],[2,{[p]:`AutoRecoverySupported`,[h]:xue}],[()=>VD,{[p]:`SupportedBootModes`,[h]:yb}],[0,{[p]:`NitroEnclavesSupport`,[h]:Ev}],[0,{[p]:`NitroTpmSupport`,[h]:Hv}],[()=>xE,{[p]:`NitroTpmInfo`,[h]:Vv}],[()=>rE,{[p]:`MediaAcceleratorInfo`,[h]:q_}],[()=>bE,{[p]:`NeuronInfo`,[h]:Iv}],[0,{[p]:`PhcSupport`,[h]:jy}],[0,{[p]:`RebootMigrationSupport`,[h]:tb}],[2,{[p]:`SupportedInRegion`,[h]:Rb}]]],GT=[3,g,Su,0,[Mi,Du,rp,hm],[[()=>CO,{[p]:`AttachmentSet`,[h]:nh}],[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`OwnerId`,[h]:Jv}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],KT=[3,g,Cu,0,[dm,Lm],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcId`,[h]:Xx}]]],qT=[3,g,Gd,0,[Kd,il,vm,vle,ef,nf,Ooe],[[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Xh}],[1,{[p]:`ToPort`,[h]:Ex}],[()=>Tk,{[p]:`Groups`,[h]:ag}],[()=>OO,{[p]:`IpRanges`,[h]:l_}],[()=>jO,{[p]:`Ipv6Ranges`,[h]:u_}],[()=>YO,{[p]:`PrefixListIds`,[h]:Oy}]]],JT=[3,g,tf,0,[Ps,Ki],[[0,{[p]:`Description`,[h]:Ih}],[0,{[p]:`CidrIp`,[h]:yh}]]],YT=[3,g,Vd,0,[Xd],[0]],XT=[3,g,Hd,0,[qd],[0]],ZT=[3,g,rf,0,[Ps,qi],[[0,{[p]:`Description`,[h]:Ih}],[0,{[p]:`CidrIpv6`,[h]:bh}]]],QT=[3,g,Mie,0,[_f,hm,gf,pf,wie],[[0,{[p]:`KeyPairId`,[h]:P_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyFingerprint`,[h]:k_}],[()=>DS,{[p]:`KeyMaterial`,[h]:M_}]]],$T=[3,g,Aie,0,[_f,vf,hm,Toe,ha,gf,pf],[[0,{[p]:`KeyPairId`,[h]:P_}],[0,{[p]:`KeyType`,[h]:I_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`PublicKey`,[h]:Ty}],[4,{[p]:`CreateTime`,[h]:Dh}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyFingerprint`,[h]:k_}]]],eE=[3,g,Kie,0,[Wie,Gie,Km],[0,0,0]],tE=[3,g,Fie,0,[yf],[[0,{[p]:`LicenseConfigurationArn`,[h]:R_}]]],nE=[3,g,Pie,0,[yf],[0]],rE=[3,g,Cf,0,[Di,sle],[[()=>LO,{[p]:`Accelerators`,[h]:oh}],[1,{[p]:`TotalMediaMemoryInMiB`,[h]:wx}]]],iE=[3,g,eae,0,[Ca,Bf,If,Of],[[1,{[p]:`Count`,[h]:kh}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[()=>aE,{[p]:`MemoryInfo`,[h]:rv}]]],aE=[3,g,nae,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],oE=[3,g,Of,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],sE=[3,g,cae,0,[Mu,Rp,Ec,Da,d,Zne,Nm,Fi,Oa,cf,Nie,Mse,Dm,qu,dl,yc,tm,Hc],[[0,{[p]:`InstanceId`,[h]:Lg}],[()=>zS,0],()=>qw,[()=>zS,0],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`Attribute`,[h]:jue}],[()=>TS,{[p]:`Value`,[h]:Gx}],[()=>cO,{[p]:`BlockDeviceMapping`,[h]:fh}],[()=>zS,{[p]:`DisableApiTermination`,[h]:Ah}],[()=>BS,{[p]:`InstanceType`,[h]:b_}],[()=>BS,{[p]:`Kernel`,[h]:L_}],[()=>BS,{[p]:`Ramdisk`,[h]:pb}],[()=>XS,{[p]:`UserData`,[h]:Rx}],[()=>BS,{[p]:`InstanceInitiatedShutdownBehavior`,[h]:Vg}],[()=>eO,{[h]:wl}],[()=>zS,{[p]:`EbsOptimized`,[h]:zh}],[()=>BS,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>zS,{[p]:`EnaSupport`,[h]:Wh}]],1],cE=[3,g,pae,0,[Zp,di,Mf,Ef,Qi,Ks,uoe,Mc,Ac,vc,xo],[[0,{[p]:`SubnetId`,[h]:Vb}],[()=>zS,0],[()=>zS,0],[()=>zS,0],0,[()=>zS,0],0,[()=>zS,0],[()=>zS,0],1,[()=>zS,0]],1],lE=[3,g,_ae,0,[zm,d,um,Wm,ff,wm,Sf],[0,2,1,0,1,1,2],1],uE=[3,g,vae,0,[Bm],[[()=>yD,{[p]:`VolumeModification`,[h]:eS}]]],dE=[3,g,zf,0,[dm],[[0,{[p]:`State`,[h]:fx}]]],fE=[3,g,Wf,0,[ha,vs,Xc,rl,Mae,Gf,lp,dm,Zp,Lm,hm,ma,_i,Pne,xne,rne,Ip],[[4,{[p]:`CreateTime`,[h]:Dh}],[4,{[p]:`DeleteTime`,[h]:_de}],[0,{[p]:`FailureCode`,[h]:Jh}],[0,{[p]:`FailureMessage`,[h]:Yh}],[()=>RO,{[p]:`NatGatewayAddressSet`,[h]:Ov}],[0,{[p]:`NatGatewayId`,[h]:kv}],[()=>FE,{[p]:`ProvisionedBandwidth`,[h]:ay}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`ConnectivityType`,[h]:tde}],[0,{[p]:`AvailabilityMode`,[h]:_ue}],[0,{[p]:`AutoScalingIps`,[h]:wue}],[0,{[p]:`AutoProvisionZones`,[h]:bue}],[()=>zO,{[p]:`AttachedApplianceSet`,[h]:uue}],[0,{[p]:`RouteTableId`,[h]:cb}]]],pE=[3,g,Iae,0,[pi,Kf,Coe,yp,hi,Zd,rl,fm,Ci,Ei],[[0,{[p]:`AllocationId`,[h]:Xm}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIp`,[h]:wy}],[0,{[p]:`PublicIp`,[h]:vy}],[0,{[p]:`AssociationId`,[h]:Qm}],[2,{[p]:`IsPrimary`,[h]:c_}],[0,{[p]:`FailureMessage`,[h]:Yh}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`AvailabilityZone`,[h]:ih}],[0,{[p]:`AvailabilityZoneId`,[h]:ah}]]],mE=[3,g,Nae,0,[Em,tne,Im,Fne,Pf,Xc,rl],[[0,{[p]:`Type`,[h]:Lx}],[0,{[p]:`ApplianceArn`,[h]:due}],[0,{[p]:`VpcEndpointId`,[h]:Yx}],[0,{[p]:`AttachmentState`,[h]:Oue}],[0,{[p]:`ModificationState`,[h]:fv}],[0,{[p]:`FailureCode`,[h]:Jh}],[0,{[p]:`FailureMessage`,[h]:Yh}]]],hE=[3,g,Tae,0,[Hf,Zf,kf,one,$ne,aoe,za,oae,sae],[[1,{[p]:`NetworkCardIndex`,[h]:Cv}],[0,{[p]:`NetworkPerformance`,[h]:Rv}],[1,{[p]:`MaximumNetworkInterfaces`,[h]:av}],[1,{[p]:`AdditionalFlexibleNetworkInterfaces`,[h]:fue}],[1,{[p]:`BaselineBandwidthInGbps`,[h]:Mue}],[1,{[p]:`PeakBandwidthInGbps`,[h]:oy}],[1,{[p]:`DefaultEnaQueueCountPerInterface`,[h]:ade}],[1,{[p]:`MaximumEnaQueueCount`,[h]:ev}],[1,{[p]:`MaximumEnaQueueCountPerInterface`,[h]:tv}]]],gE=[3,g,Jf,0,[Zf,kf,dae,Co,Cae,tu,nu,uie,Hc,Bc,_c,hc,Ic,sre,el,la,Nce,hae,ru],[[0,{[p]:`NetworkPerformance`,[h]:Rv}],[1,{[p]:`MaximumNetworkInterfaces`,[h]:av}],[1,{[p]:`MaximumNetworkCards`,[h]:iv}],[1,{[p]:`DefaultNetworkCardIndex`,[h]:cde}],[()=>HO,{[p]:`NetworkCards`,[h]:Sv}],[1,{[p]:`Ipv4AddressesPerInterface`,[h]:xg}],[1,{[p]:`Ipv6AddressesPerInterface`,[h]:Sg}],[2,{[p]:`Ipv6Supported`,[h]:y_}],[0,{[p]:`EnaSupport`,[h]:Wh}],[2,{[p]:`EfaSupported`,[h]:Zde}],[()=>zw,{[p]:`EfaInfo`,[h]:zde}],[2,{[p]:`EncryptionInTransitSupported`,[h]:Lde}],[2,{[p]:`EnaSrdSupported`,[h]:Jde}],[()=>RD,{[p]:`BandwidthWeightings`,[h]:Iue}],[0,{[p]:`FlexibleEnaQueuesSupport`,[h]:$de}],[()=>jC,{[p]:`ConnectionTrackingConfiguration`,[h]:Eh}],[2,{[p]:`SecondaryNetworkSupported`,[h]:qb}],[1,{[p]:`MaximumSecondaryNetworkInterfaces`,[h]:dv}],[1,{[p]:`Ipv4AddressesPerSecondaryInterface`,[h]:Cg}]]],_E=[3,g,Eae,0,[Ca,Km],[[1,{[p]:`Count`,[h]:kh}],[1,{[p]:`Version`,[h]:fS}]]],vE=[3,g,Dae,0,[Ca,Bf,xre,Of],[[1,{[p]:`Count`,[h]:kh}],[0,{[p]:`Name`,[h]:bv}],[()=>_E,{[p]:`CoreInfo`,[h]:Kue}],[()=>yE,{[p]:`MemoryInfo`,[h]:rv}]]],yE=[3,g,kae,0,[qp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],bE=[3,g,Yf,0,[Aae,cle],[[()=>UO,{[p]:`NeuronDevices`,[h]:Tv}],[1,{[p]:`TotalNeuronDeviceMemoryInMiB`,[h]:Tx}]]],xE=[3,g,$f,0,[qce],[[()=>WO,{[p]:`SupportedVersions`,[h]:ux}]]],SE=[3,g,Zae,0,[cp],[0]],CE=[3,g,Qae,0,[xae,cp,Fl],[[2,{[p]:`Managed`,[h]:gv}],[0,{[p]:`Principal`,[h]:iy}],[2,{[p]:`HiddenByDefault`,[h]:sg}]]],wE=[3,g,Dp,0,[Ei,Yne,Ol,koe,Ll,gle,Jse,Hl,wl,Ci],[[0,{[p]:`AvailabilityZoneId`,[h]:ah}],[0,{[p]:`Affinity`,[h]:Aue}],[0,{[p]:`GroupName`,[h]:eg}],[1,{[p]:`PartitionNumber`,[h]:ky}],[0,{[p]:`HostId`,[h]:lg}],[0,{[p]:`Tenancy`,[h]:gx}],[0,{[p]:`SpreadDomain`,[h]:Sb}],[0,{[p]:`HostResourceGroupArn`,[h]:pg}],[0,{[p]:`GroupId`,[h]:$h}],[0,{[p]:`AvailabilityZone`,[h]:ih}]]],TE=[3,g,_p,0,[Ol,dm,pm,up,wl,hm,fl,Qp,xf,op],[[0,{[p]:`GroupName`,[h]:eg}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`Strategy`,[h]:mx}],[1,{[p]:`PartitionCount`,[h]:cy}],[0,{[p]:`GroupId`,[h]:$h}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`GroupArn`,[h]:afe}],[0,{[p]:`SpreadLevel`,[h]:Hb}],[0,{[p]:`LinkedGroupId`,[h]:V_}],[()=>CE,{[p]:`Operator`,[h]:ny}]]],EE=[3,g,vp,0,[Bce],[[()=>JO,{[p]:`SupportedStrategies`,[h]:rx}]]],DE=[3,g,wp,0,[Ps,wp],[[0,{[p]:`Description`,[h]:Ih}],[0,{[p]:`PrefixListId`,[h]:Dy}]]],OE=[3,g,mp,0,[Gl,jc,kc],[[0,{[p]:`HostnameType`,[h]:gg}],[2,{[p]:`EnableResourceNameDnsARecord`,[h]:Hh}],[2,{[p]:`EnableResourceNameDnsAAAARecord`,[h]:Vh}]]],kE=[3,g,doe,0,[Gl,jc,kc],[0,2,2]],AE=[3,g,foe,0,[Gl,jc,kc],[[0,{[p]:`HostnameType`,[h]:gg}],[2,{[p]:`EnableResourceNameDnsARecord`,[h]:Hh}],[2,{[p]:`EnableResourceNameDnsAAAARecord`,[h]:Vh}]]],jE=[3,g,voe,0,[Op,bp],[[2,{[p]:`Primary`,[h]:By}],[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],ME=[3,g,Cp,0,[Wse,qse,Yse,If],[[()=>jD,{[p]:`SupportedArchitectures`,[h]:_b}],[1,{[p]:`SustainedClockSpeedInGhz`,[h]:bb}],[()=>bk,{[p]:`SupportedFeatures`,[h]:Cb}],[0,{[p]:`Manufacturer`,[h]:hv}]]],NE=[3,g,loe,0,[ooe,coe],[[0,{[p]:`ProductCode`,[h]:ly}],[0,{[p]:`Type`,[h]:Lx}]]],PE=[3,g,Poe,0,[bl],[[0,{[p]:`GatewayId`,[h]:Qh}]]],FE=[3,g,lp,0,[Moe,zoe,Ase,Fse,fm],[[4,{[p]:`ProvisionTime`,[h]:Ny}],[0,{[p]:`Provisioned`,[h]:Hy}],[4,{[p]:`RequestTime`,[h]:db}],[0,{[p]:`Requested`,[h]:hb}],[0,{[p]:`Status`,[h]:px}]]],IE=[3,g,$oe,0,[Qu,d],[[()=>lO,{[h]:Mu}],[2,{[p]:`DryRun`,[h]:f}]],1],LE=[3,g,pse,0,[wl,Tp,Om,Lm,Hm],[[0,{[p]:`GroupId`,[h]:$h}],[0,{[p]:`PeeringStatus`,[h]:Ay}],[0,{[p]:`UserId`,[h]:zx}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}]]],RE=[3,g,Pse,0,[ip,Nl,Pp,Jc],[[0,{[p]:`OptInStatus`,[h]:Yv}],[()=>ek,{[p]:`GeographySet`,[h]:ng}],[0,{[p]:`RegionName`,[h]:rb}],[0,{[p]:`RegionEndpoint`,[h]:qy}]]],zE=[3,g,Joe,0,[Bf],[[0,{[p]:`Name`,[h]:bv}]]],BE=[3,g,Voe,0,[pi,yp,Vf,d],[0,0,0,[2,{[p]:`DryRun`,[h]:f}]]],VE=[3,g,Lse,0,[nse,rp,ise,dl,xie],[[0,{[p]:`ReservationId`,[h]:Zy}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`RequesterId`,[h]:eb}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[()=>pO,{[p]:`InstancesSet`,[h]:g_}]]],HE=[3,g,bse,0,[Up,wl,xu,Kd,il,vm,Ji,qi,wp,Yoe,Ps],[[0,{[p]:`SecurityGroupRuleId`,[h]:Db}],[0,{[p]:`GroupId`,[h]:$h}],[2,{[p]:`IsEgress`,[h]:Mg}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Xh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIpv4`,[h]:xh}],[0,{[p]:`CidrIpv6`,[h]:bh}],[0,{[p]:`PrefixListId`,[h]:Dy}],[0,{[p]:`ReferencedGroupId`,[h]:Yy}],[0,{[p]:`Description`,[h]:Ih}]]],UE=[3,g,hse,0,[wl,Hp,d,am,om,Kd,il,vm,Ki,Wd],[[0,{[p]:`GroupId`,[h]:$h}],[()=>fk,{[h]:Up}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SourceSecurityGroupName`,[h]:Qb}],[0,{[p]:`SourceSecurityGroupOwnerId`,[h]:$b}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Xh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIp`,[h]:yh}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]],1],WE=[3,g,gse,0,[Ap,km,Fp],[[2,{[p]:`Return`,[h]:Uy}],[()=>DO,{[p]:`UnknownIpPermissionSet`,[h]:Bx}],[()=>ik,{[p]:`RevokedSecurityGroupRuleSet`,[h]:ib}]]],GE=[3,g,_se,0,[Ki,il,wl,Ol,Wd,Kd,am,om,vm,Hp,d],[0,1,0,0,[()=>DO,0],0,0,0,1,[()=>fk,{[h]:Up}],[2,{[p]:`DryRun`,[h]:f}]]],KE=[3,g,vse,0,[Ap,km,Fp],[[2,{[p]:`Return`,[h]:Uy}],[()=>DO,{[p]:`UnknownIpPermissionSet`,[h]:Bx}],[()=>ik,{[p]:`RevokedSecurityGroupRuleSet`,[h]:ib}]]],qE=[3,g,Rse,0,[Fa,Ua,Ro,Cc,bl,Mu,Od,Gf,_m,bf,Wi,Kf,Kae,dm,Hm,Yi,ap,au],[[0,{[p]:`DestinationCidrBlock`,[h]:jh}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Nh}],[0,{[p]:`DestinationPrefixListId`,[h]:dde}],[0,{[p]:`EgressOnlyInternetGatewayId`,[h]:Bh}],[0,{[p]:`GatewayId`,[h]:Qh}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`InstanceOwnerId`,[h]:Yg}],[0,{[p]:`NatGatewayId`,[h]:kv}],[0,{[p]:`TransitGatewayId`,[h]:yx}],[0,{[p]:`LocalGatewayId`,[h]:B_}],[0,{[p]:`CarrierGatewayId`,[h]:Uue}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`Origin`,[h]:Gv}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`CoreNetworkArn`,[h]:que}],[0,{[p]:`OdbNetworkArn`,[h]:Qv}],[0,{[p]:`IpAddress`,[h]:Eg}]]],JE=[3,g,Lp,0,[Xne,Ioe,Ip,zse,hm,Lm,rp],[[()=>sk,{[p]:`AssociationSet`,[h]:Due}],[()=>QO,{[p]:`PropagatingVgwSet`,[h]:Fy}],[0,{[p]:`RouteTableId`,[h]:cb}],[()=>ok,{[p]:`RouteSet`,[h]:ob}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`OwnerId`,[h]:Jv}]]],YE=[3,g,Sse,0,[bae,Cse,Ip,Zp,bl,Sp,bi],[[2,{[p]:`Main`,[h]:mv}],[0,{[p]:`RouteTableAssociationId`,[h]:sb}],[0,{[p]:`RouteTableId`,[h]:cb}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`GatewayId`,[h]:Qh}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[()=>XE,{[p]:`AssociationState`,[h]:th}]]],XE=[3,g,Tse,0,[dm,$p],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],ZE=[3,g,Qoe,0,[Kc],[[2,{[p]:`Enabled`,[h]:Kh}]],1],QE=[3,g,ese,0,[Qie,$ie,Fi,Xu,cf,Zl,Yl,mf,gf,zf,Dp,Np,Qse,Wp,Zp,Dm,nc,fc,bm,Uie,fd,ia,Xi,na,Rl,Bie,Af,Ec,pp,jf,Da,Dc,Xf,op,Yp,d,Oa,qu,bp,ca,fi,qf,Iu,yc],[1,1,[()=>BD,{[h]:Pi}],0,0,1,[()=>dO,{[h]:ou}],0,0,[()=>ZE,0],[()=>wE,0],0,[()=>uk,{[h]:Bp}],[()=>mk,{[h]:Gp}],0,[()=>ES,0],[()=>KD,0],[()=>JD,{[h]:ic}],[()=>Sk,{[h]:xm}],()=>eE,()=>ET,()=>AC,()=>cC,()=>$S,()=>aT,[()=>IO,{[h]:Hie}],()=>DT,()=>qw,()=>kE,()=>TT,2,2,()=>PT,()=>SE,[()=>bO,{[h]:xce}],[2,{[p]:`DryRun`,[h]:f}],[2,{[p]:`DisableApiTermination`,[h]:Ah}],[0,{[p]:`InstanceInitiatedShutdownBehavior`,[h]:Vg}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[0,{[p]:`ClientToken`,[S_]:1,[h]:Th}],[0,{[p]:`AdditionalInfo`,[h]:Zm}],[()=>hO,{[p]:`NetworkInterface`,[h]:Pv}],[()=>cT,{[p]:`IamInstanceProfile`,[h]:Rg}],[2,{[p]:`EbsOptimized`,[h]:zh}]],2],$E=[3,g,Gp,0,[wl,Md,hm,Lm,zp,rp,Ol,Ps,Wd],[[0,{[p]:`GroupId`,[h]:$h}],[()=>DO,{[p]:`IpPermissionsEgress`,[h]:Qg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`SecurityGroupArn`,[h]:wb}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`GroupName`,[h]:eg}],[0,{[p]:`GroupDescription`,[h]:ofe}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]]],eD=[3,g,rce,0,[Up,wl,jl,xu,Kd,il,vm,Ji,qi,wp,Xoe,Ps,hm,ece],[[0,{[p]:`SecurityGroupRuleId`,[h]:Db}],[0,{[p]:`GroupId`,[h]:$h}],[0,{[p]:`GroupOwnerId`,[h]:lfe}],[2,{[p]:`IsEgress`,[h]:Mg}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Xh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIpv4`,[h]:xh}],[0,{[p]:`CidrIpv6`,[h]:bh}],[0,{[p]:`PrefixListId`,[h]:Dy}],[()=>LE,{[p]:`ReferencedGroupInfo`,[h]:Xy}],[0,{[p]:`Description`,[h]:Ih}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SecurityGroupRuleArn`,[h]:Eb}]]],tD=[3,g,Yce,0,[qae,np,hm,Hce,Koe,lm,Ci,mle,Ui,pa,ol,Xp,zm,dm,em,cm,kp,rp,Ps,Um,qc,hf,Ra],[[0,{[p]:`OwnerAlias`,[h]:qv}],[0,{[p]:`OutpostArn`,[h]:Kv}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`StorageTier`,[h]:ox}],[4,{[p]:`RestoreExpiryTime`,[h]:Ky}],[0,{[p]:`SseType`,[h]:ax}],[0,{[p]:`AvailabilityZone`,[h]:ih}],[0,{[p]:`TransferType`,[h]:Nx}],[1,{[p]:`CompletionDurationMinutes`,[h]:Vue}],[4,{[p]:`CompletionTime`,[h]:ede}],[1,{[p]:`FullSnapshotSizeInBytes`,[h]:nfe}],[0,{[p]:`SnapshotId`,[h]:Bb}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`StatusMessage`,[h]:Wb}],[4,{[p]:`StartTime`,[h]:ix}],[0,{[p]:`Progress`,[h]:Vy}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`Description`,[h]:Ih}],[1,{[p]:`VolumeSize`,[h]:sS}],[2,{[p]:`Encrypted`,[h]:qh}],[0,{[p]:`KmsKeyId`,[h]:j_}],[0,{[p]:`DataEncryptionKeyId`,[h]:ide}]]],nD=[3,g,jce,0,[fae,bce,nre,Xle,Fu],[0,0,1,4,0]],rD=[3,g,pce,0,[Qu,fi,d],[[()=>lO,{[h]:Mu}],[0,{[p]:`AdditionalInfo`,[h]:Zm}],[2,{[p]:`DryRun`,[h]:f}]],1],iD=[3,g,mce,0,[Cce],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],aD=[3,g,im,0,[xa,Lf],[[0,{[p]:`Code`,[h]:Oh}],[0,{[p]:`Message`,[h]:_v}]]],oD=[3,g,hce,0,[Qu,Kl,nm,d,Yc],[[()=>lO,{[h]:Mu}],2,2,[2,{[p]:`DryRun`,[h]:f}],[2,{[p]:`Force`,[h]:rfe}]],1],sD=[3,g,gce,0,[Tce],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],cD=[3,g,mm,0,[Ei,vc,Ef,Qi,rp,di,fu,hm,Use,np,Ks,hd,mp,Ri,Em,Zp,dm,Lm,Vi,sne,Ci,Ba,Mf],[[0,{[p]:`AvailabilityZoneId`,[h]:ah}],[1,{[p]:`EnableLniAtDeviceIndex`,[h]:Bde}],[2,{[p]:`MapCustomerOwnedIpOnLaunch`,[h]:X_}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:Ch}],[0,{[p]:`OwnerId`,[h]:Jv}],[2,{[p]:`AssignIpv6AddressOnCreation`,[h]:mue}],[()=>vk,{[p]:`Ipv6CidrBlockAssociationSet`,[h]:kg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SubnetArn`,[h]:vb}],[0,{[p]:`OutpostArn`,[h]:Kv}],[2,{[p]:`EnableDns64`,[h]:Tde}],[2,{[p]:`Ipv6Native`,[h]:Kg}],[()=>OE,{[p]:`PrivateDnsNameOptionsOnLaunch`,[h]:dy}],[()=>QS,{[p]:`BlockPublicAccessStates`,[h]:hh}],[0,{[p]:`Type`,[h]:Lx}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`CidrBlock`,[h]:_h}],[1,{[p]:`AvailableIpAddressCount`,[h]:pue}],[0,{[p]:`AvailabilityZone`,[h]:ih}],[2,{[p]:`DefaultForAz`,[h]:ode}],[2,{[p]:`MapPublicIpOnLaunch`,[h]:cv}]]],lD=[3,g,Kse,0,[dm,$p],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],uD=[3,g,oce,0,[hi,du,mu,Xl,sf],[[0,{[p]:`AssociationId`,[h]:Qm}],[0,{[p]:`Ipv6CidrBlock`,[h]:Og}],[()=>lD,{[p]:`Ipv6CidrBlockState`,[h]:Ag}],[0,{[p]:`Ipv6AddressAttribute`,[h]:vg}],[0,{[p]:`IpSource`,[h]:v_}]]],dD=[3,g,Cm,0,[Sie,Nm],[[0,{[p]:`Key`,[h]:O_}],[0,{[p]:`Value`,[h]:Gx}]]],fD=[3,g,xm,0,[kse,hm],[[0,{[p]:`ResourceType`,[h]:ub}],[()=>xk,{[h]:Cm}]]],pD=[3,g,tle,0,[Qu,Yc,nm,d],[[()=>lO,{[h]:Mu}],2,2,[2,{[p]:`DryRun`,[h]:f}]],1],mD=[3,g,nle,0,[ile],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],hD=[3,g,ble,0,[Ps,Om,Ol,wl,Lm,Hm,Tp],[[0,{[p]:`Description`,[h]:Ih}],[0,{[p]:`UserId`,[h]:zx}],[0,{[p]:`GroupName`,[h]:eg}],[0,{[p]:`GroupId`,[h]:$h}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`PeeringStatus`,[h]:Ay}]]],gD=[3,g,Pm,0,[xs,La,gs,Dle,Yle],[[1,{[p]:`DefaultVCpus`,[h]:bde}],[1,{[p]:`DefaultCores`,[h]:rde}],[1,{[p]:`DefaultThreadsPerCore`,[h]:hde}],[()=>HD,{[p]:`ValidCores`,[h]:qx}],[()=>Ck,{[p]:`ValidThreadsPerCore`,[h]:uS}]]],_D=[3,g,$le,0,[Ei,np,Gce,ff,hm,Wm,al,Sf,wm,lm,op,Rm,zm,um,Xp,Ci,dm,ha,Mi,qc,hf],[[0,{[p]:`AvailabilityZoneId`,[h]:ah}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`SourceVolumeId`,[h]:cx}],[1,{[p]:`Iops`,[h]:D_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VolumeType`,[h]:lS}],[2,{[p]:`FastRestored`,[h]:tfe}],[2,{[p]:`MultiAttachEnabled`,[h]:K_}],[1,{[p]:`Throughput`,[h]:Fx}],[0,{[p]:`SseType`,[h]:ax}],[()=>CE,{[p]:`Operator`,[h]:ny}],[1,{[p]:`VolumeInitializationRate`,[h]:Zx}],[0,{[p]:`VolumeId`,[h]:Qx}],[1,{[p]:`Size`,[h]:dx}],[0,{[p]:`SnapshotId`,[h]:Bb}],[0,{[p]:`AvailabilityZone`,[h]:ih}],[0,{[p]:`Status`,[h]:px}],[4,{[p]:`CreateTime`,[h]:Dh}],[()=>Ok,{[p]:`AttachmentSet`,[h]:nh}],[2,{[p]:`Encrypted`,[h]:qh}],[0,{[p]:`KmsKeyId`,[h]:j_}]]],vD=[3,g,Cle,0,[Mo,vi,kd,Vs,zm,Mu,Fs,dm,Si],[[2,{[p]:`DeleteOnTermination`,[h]:Fh}],[0,{[p]:`AssociatedResource`,[h]:eh}],[0,{[p]:`InstanceOwningService`,[h]:Zg}],[1,{[p]:`EbsCardIndex`,[h]:Rh}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`Device`,[h]:xde}],[0,{[p]:`Status`,[h]:px}],[4,{[p]:`AttachTime`,[h]:rh}]]],yD=[3,g,Bm,0,[zm,Pf,$p,fle,rle,hle,ple,ole,eoe,Jae,noe,toe,Xae,kp,cm,Uc],[[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`ModificationState`,[h]:fv}],[0,{[p]:`StatusMessage`,[h]:Wb}],[1,{[p]:`TargetSize`,[h]:Ax}],[1,{[p]:`TargetIops`,[h]:Sx}],[0,{[p]:`TargetVolumeType`,[h]:Px}],[1,{[p]:`TargetThroughput`,[h]:Mx}],[2,{[p]:`TargetMultiAttachEnabled`,[h]:Cx}],[1,{[p]:`OriginalSize`,[h]:$v}],[1,{[p]:`OriginalIops`,[h]:Xv}],[0,{[p]:`OriginalVolumeType`,[h]:ty}],[1,{[p]:`OriginalThroughput`,[h]:ey}],[2,{[p]:`OriginalMultiAttachEnabled`,[h]:Zv}],[1,{[p]:`Progress`,[h]:Vy}],[4,{[p]:`StartTime`,[h]:ix}],[4,{[p]:`EndTime`,[h]:Qde}]]],bD=[3,g,qm,0,[rp,lf,fu,cre,bu,Gs,hm,Ri,Lm,dm,Vi,jo],[[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`InstanceTenancy`,[h]:w_}],[()=>Nk,{[p]:`Ipv6CidrBlockAssociationSet`,[h]:kg}],[()=>jk,{[p]:`CidrBlockAssociationSet`,[h]:Lue}],[2,{[p]:`IsDefault`,[h]:jg}],[()=>CD,{[p]:`EncryptionControl`,[h]:wde}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[()=>QS,{[p]:`BlockPublicAccessStates`,[h]:hh}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`CidrBlock`,[h]:_h}],[0,{[p]:`DhcpOptionsId`,[h]:ude}]]],xD=[3,g,wle,0,[hi,Vi,ure],[[0,{[p]:`AssociationId`,[h]:Qm}],[0,{[p]:`CidrBlock`,[h]:_h}],[()=>SD,{[p]:`CidrBlockState`,[h]:zue}]]],SD=[3,g,Ele,0,[dm,$p],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],CD=[3,g,Fm,0,[Lm,jle,Rf,dm,em,qoe,hm],[[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcEncryptionControlId`,[h]:Jx}],[0,{[p]:`Mode`,[h]:yv}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StateMessage`,[h]:Gb}],[()=>ED,{[p]:`ResourceExclusions`,[h]:Jy}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],wD=[3,g,Ole,0,[Rf,Eu,Sc,Lae,Gle,Ule,Iie,zle,Js],[0,0,0,0,0,0,0,0,0],1],TD=[3,g,kle,0,[dm,em],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StateMessage`,[h]:Gb}]]],ED=[3,g,Ale,0,[Su,xc,Wf,Wle,Kle,Yie,Rle,qs],[[()=>TD,{[p]:`InternetGateway`,[h]:Ng}],[()=>TD,{[p]:`EgressOnlyInternetGateway`,[h]:Hde}],[()=>TD,{[p]:`NatGateway`,[h]:Dv}],[()=>TD,{[p]:`VirtualPrivateGateway`,[h]:iS}],[()=>TD,{[p]:`VpcPeering`,[h]:aS}],[()=>TD,{[p]:`Lambda`,[h]:G_}],[()=>TD,{[p]:`VpcLattice`,[h]:$x}],[()=>TD,{[p]:`ElasticFileSystem`,[h]:Ede}]]],DD=[3,g,Mle,0,[hi,du,mu,Vf,Jd,Xl,sf],[[0,{[p]:`AssociationId`,[h]:Qm}],[0,{[p]:`Ipv6CidrBlock`,[h]:Og}],[()=>SD,{[p]:`Ipv6CidrBlockState`,[h]:Ag}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`Ipv6Pool`,[h]:a_}],[0,{[p]:`Ipv6AddressAttribute`,[h]:vg}],[0,{[p]:`IpSource`,[h]:v_}]]],OD=`unit`,kD=[1,g,vne,0,[()=>OS,{[h]:m}]],AD=[1,g,pne,0,[0,{[h]:pi}]],jD=[1,g,Ine,0,[0,{[h]:m}]],MD=[1,g,mne,0,[0,{[h]:hi}]],ND=[1,g,Ti,0,[()=>KS,{[h]:wi}]],PD=[1,g,Vne,0,[()=>qS,{[h]:m}]],FD=[1,g,Hne,0,[()=>GS,{[h]:m}]],ID=[1,g,Wne,0,[()=>JS,{[h]:m}]],LD=[1,g,Kne,0,[()=>YS,{[h]:m}]],RD=[1,g,ore,0,[0,{[h]:m}]],zD=[1,g,ere,0,[()=>ZS,{[h]:m}]],BD=[1,g,tre,0,[()=>ZS,{[h]:Pi}]],VD=[1,g,rre,0,[0,{[h]:m}]],HD=[1,g,dre,0,[1,{[h]:m}]],UD=[1,g,ro,0,[()=>Mw,{[h]:m}]],WD=[1,g,Hs,0,[()=>Pw,{[h]:m}]],GD=[1,g,Zs,0,[()=>Bw,{[h]:m}]],KD=[1,g,rc,0,[()=>Vw,{[h]:m}]],qD=[1,g,sc,0,[()=>Uw,{[h]:m}]],JD=[1,g,fc,0,[()=>Hw,{[h]:m}]],YD=[1,g,zs,0,[0,{[h]:Bs}]],XD=[1,g,nl,0,[()=>Jw,{[h]:ll}]],ZD=[1,g,Qc,0,[()=>Yw,{[h]:m}]],QD=[1,g,vl,0,[()=>eT,{[h]:m}]],$D=[1,g,xl,0,[()=>rT,{[h]:m}]],eO=[1,g,Sl,0,[0,{[h]:$h}]],tO=[1,g,kl,0,[0,{[h]:Ol}]],nO=[1,g,Ru,0,[()=>sT,{[h]:m}]],rO=[1,g,Ju,0,[0,{[h]:Xu}]],iO=[1,g,rd,0,[()=>lT,{[h]:m}]],aO=[1,g,gie,0,[()=>uT,{[h]:m}]],oO=[1,g,_u,0,[()=>mT,0]],sO=[1,g,cu,0,[()=>yT,{[h]:m}]],cO=[1,g,uu,0,[()=>bT,{[h]:m}]],lO=[1,g,Yu,0,[0,{[h]:Mu}]],uO=[1,g,Hu,0,[()=>xT,{[h]:m}]],dO=[1,g,Pu,0,[()=>ST,{[h]:m}]],fO=[1,g,Uu,0,[()=>CT,{[h]:m}]],pO=[1,g,ad,0,[()=>gT,{[h]:m}]],mO=[1,g,yd,0,[()=>kT,{[h]:m}]],hO=[1,g,xd,0,[()=>MT,{[h]:m}]],gO=[1,g,Fd,0,[()=>FT,{[h]:m}]],_O=[1,g,$re,0,[()=>IT,{[h]:m}]],vO=[1,g,tie,0,[()=>RT,{[h]:m}]],yO=[1,g,nie,0,[()=>zT,{[h]:m}]],bO=[1,g,iie,0,[()=>BT,{[h]:m}]],xO=[1,g,Zre,0,[()=>HT,{[h]:m}]],SO=[1,g,die,0,[()=>WT,{[h]:m}]],CO=[1,g,wu,0,[()=>KT,{[h]:m}]],wO=[1,g,Ou,0,[0,{[h]:m}]],TO=[1,g,Au,0,[()=>GT,{[h]:m}]],EO=[1,g,od,0,[0,{[h]:m}]],DO=[1,g,Rd,0,[()=>qT,{[h]:m}]],OO=[1,g,Qd,0,[()=>JT,{[h]:m}]],kO=[1,g,zd,0,[()=>YT,{[h]:m}]],AO=[1,g,Bd,0,[()=>XT,{[h]:m}]],jO=[1,g,$d,0,[()=>ZT,{[h]:m}]],MO=[1,g,Tie,0,[0,{[h]:gf}]],NO=[1,g,Oie,0,[0,{[h]:_f}]],PO=[1,g,jie,0,[()=>$T,{[h]:m}]],FO=[1,g,Rie,0,[()=>tE,{[h]:m}]],IO=[1,g,Vie,0,[()=>nE,{[h]:m}]],LO=[1,g,tae,0,[()=>iE,{[h]:m}]],RO=[1,g,Fae,0,[()=>pE,{[h]:m}]],zO=[1,g,Pae,0,[()=>mE,{[h]:m}]],BO=[1,g,Rae,0,[0,{[h]:m}]],VO=[1,g,Bae,0,[()=>fE,{[h]:m}]],HO=[1,g,wae,0,[()=>hE,{[h]:m}]],UO=[1,g,Oae,0,[()=>vE,{[h]:m}]],WO=[1,g,Gae,0,[0,{[h]:m}]],GO=[1,g,$ae,0,[0,{[h]:sp}]],KO=[1,g,poe,0,[0,{[h]:wl}]],qO=[1,g,moe,0,[()=>TE,{[h]:m}]],JO=[1,g,hoe,0,[0,{[h]:m}]],YO=[1,g,Doe,0,[()=>DE,{[h]:m}]],XO=[1,g,yoe,0,[()=>jE,{[h]:m}]],ZO=[1,g,soe,0,[()=>NE,{[h]:m}]],QO=[1,g,Foe,0,[()=>PE,{[h]:m}]],$O=[1,g,xoe,0,[0,{[h]:yp}]],ek=[1,g,Zoe,0,[()=>zE,{[h]:m}]],tk=[1,g,ose,0,[()=>RE,{[h]:m}]],nk=[1,g,dse,0,[0,{[h]:Pp}]],rk=[1,g,sse,0,[()=>VE,{[h]:m}]],ik=[1,g,xse,0,[()=>HE,{[h]:m}]],ak=[1,g,Goe,0,[0,{[h]:m}]],ok=[1,g,cse,0,[()=>qE,{[h]:m}]],sk=[1,g,wse,0,[()=>YE,{[h]:m}]],ck=[1,g,Ese,0,[0,{[h]:m}]],lk=[1,g,Ose,0,[()=>JE,{[h]:m}]],uk=[1,g,Zse,0,[0,{[h]:Bp}]],dk=[1,g,$se,0,[()=>$E,{[h]:m}]],fk=[1,g,tce,0,[0,{[h]:m}]],pk=[1,g,nce,0,[()=>eD,{[h]:m}]],mk=[1,g,ice,0,[0,{[h]:Gp}]],hk=[1,g,vce,0,[0,{[h]:Xp}]],gk=[1,g,Oce,0,[()=>tD,{[h]:m}]],_k=[1,g,yce,0,[0,{[h]:Zp}]],vk=[1,g,sce,0,[()=>uD,{[h]:m}]],yk=[1,g,kce,0,[()=>cD,{[h]:m}]],bk=[1,g,Hse,0,[0,{[h]:m}]],xk=[1,g,ale,0,[()=>dD,{[h]:m}]],Sk=[1,g,dle,0,[()=>fD,{[h]:m}]],Ck=[1,g,lle,0,[1,{[h]:m}]],wk=[1,g,_le,0,[0,{[h]:m}]],Tk=[1,g,yle,0,[()=>hD,{[h]:m}]],Ek=[1,g,qle,0,[0,{[h]:m}]],Dk=[1,g,Jle,0,[0,{[h]:m}]],Ok=[1,g,Sle,0,[()=>vD,{[h]:m}]],kk=[1,g,Ple,0,[0,{[h]:zm}]],Ak=[1,g,Ble,0,[()=>_D,{[h]:m}]],jk=[1,g,Tle,0,[()=>xD,{[h]:m}]],Mk=[1,g,Fle,0,[0,{[h]:Lm}]],Nk=[1,g,Nle,0,[()=>DD,{[h]:m}]],Pk=[1,g,Vle,0,[()=>bD,{[h]:m}]],Fk=[1,g,rue,0,[0,{[h]:m}]],Ik=[1,g,aue,0,[0,{[h]:Jm}]],Lk=[1,g,sue,0,[0,{[h]:Ym}]],Rk=[9,g,ene,0,()=>kS,()=>AS],zk=[9,g,nne,0,()=>jS,()=>MS],Bk=[9,g,une,0,()=>NS,()=>PS],Vk=[9,g,Tne,0,()=>FS,()=>IS],Hk=[9,g,cne,0,()=>LS,()=>OD],Uk=[9,g,zne,0,()=>RS,()=>vD],Wk=[9,g,One,0,()=>VS,()=>HS],Gk=[9,g,Nne,0,()=>US,()=>WS],Kk=[9,g,Xre,0,()=>aC,()=>oC],qk=[9,g,Sre,0,()=>lC,()=>uC],Jk=[9,g,gre,0,()=>dC,()=>fC],Yk=[9,g,Cre,0,()=>pC,()=>QT],Xk=[9,g,Tre,0,()=>mC,()=>hC],Zk=[9,g,kre,0,()=>gC,()=>_C],Qk=[9,g,zre,0,()=>vC,()=>yC],$k=[9,g,Rre,0,()=>bC,()=>xC],eA=[9,g,Bre,0,()=>SC,()=>CC],tA=[9,g,aa,0,()=>wC,()=>tD],nA=[9,g,oa,0,()=>TC,()=>EC],rA=[9,g,ya,0,()=>DC,()=>_D],iA=[9,g,ba,0,()=>OC,()=>kC],aA=[9,g,Wa,0,()=>MC,()=>OD],oA=[9,g,ho,0,()=>NC,()=>PC],sA=[9,g,wo,0,()=>FC,()=>IC],cA=[9,g,No,0,()=>LC,()=>OD],lA=[9,g,Zo,0,()=>RC,()=>OD],uA=[9,g,Uo,0,()=>zC,()=>OD],dA=[9,g,$o,0,()=>BC,()=>VC],fA=[9,g,ds,0,()=>HC,()=>OD],pA=[9,g,fs,0,()=>UC,()=>OD],mA=[9,g,ks,0,()=>WC,()=>OD],hA=[9,g,As,0,()=>GC,()=>OD],gA=[9,g,Na,0,()=>KC,()=>qC],_A=[9,g,Ma,0,()=>JC,()=>YC],vA=[9,g,Qa,0,()=>XC,()=>ZC],yA=[9,g,fo,0,()=>QC,()=>$C],bA=[9,g,po,0,()=>ew,()=>tw],xA=[9,g,uo,0,()=>nw,()=>rw],SA=[9,g,Ya,0,()=>iw,()=>aw],CA=[9,g,bo,0,()=>ow,()=>sw],wA=[9,g,ko,0,()=>cw,()=>lw],TA=[9,g,Lo,0,()=>uw,()=>dw],EA=[9,g,Qo,0,()=>fw,()=>pw],DA=[9,g,Jo,0,()=>mw,()=>hw],OA=[9,g,is,0,()=>gw,()=>_w],kA=[9,g,ps,0,()=>vw,()=>yw],AA=[9,g,ms,0,()=>bw,()=>xw],jA=[9,g,js,0,()=>Sw,()=>Cw],MA=[9,g,Ms,0,()=>ww,()=>Tw],NA=[9,g,Xa,0,()=>Ew,()=>OD],PA=[9,g,Ns,0,()=>Dw,()=>vD],FA=[9,g,Pa,0,()=>Ow,()=>OD],IA=[9,g,Za,0,()=>kw,()=>Aw],LA=[9,g,Yo,0,()=>jw,()=>OD],RA=[9,g,pl,0,()=>Qw,()=>$w],zA=[9,g,$u,0,()=>dT,()=>fT],BA=[9,g,uae,0,()=>sE,()=>OD],VA=[9,g,mae,0,()=>cE,()=>OD],HA=[9,g,yae,0,()=>lE,()=>uE],UA=[9,g,rse,0,()=>IE,()=>OD],WA=[9,g,Hoe,0,()=>BE,()=>OD],GA=[9,g,mse,0,()=>UE,()=>WE],KA=[9,g,yse,0,()=>GE,()=>KE],qA=[9,g,ase,0,()=>QE,()=>VE],JA=[9,g,wce,0,()=>rD,()=>iD],YA=[9,g,Ece,0,()=>oD,()=>sD],XA=[9,g,$ce,0,()=>pD,()=>mD],ZA=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??qte,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Rte,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Lee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:CS,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),QA=e=>{let t=Se(e),n=()=>t().then(Ve),r=ZA(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:Hte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},$A=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ej=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),tj=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),$A(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),ej(n))},nj=class extends Te{config;constructor(...[e]){let t=QA(e||{});super(t),this.initConfig=t;let n=tj(zte(Ue(ve(Ee(Le(ke(Bte(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Ite,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},rj=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,ij=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function aj(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var oj=e=>{let t=[];switch(e.operation){default:t.push(aj(e))}return t},sj=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},cj=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),lj={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},uj={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},dj=`ref`,fj=-1,pj=!0,mj=`isSet`,hj=`PartitionResult`,gj=`stringEquals`,_j=`booleanEquals`,vj=`getAttr`,yj={[dj]:`Endpoint`},bj={fn:vj,argv:[{[dj]:hj},`name`]},xj={[dj]:hj},Sj={},Cj=[{[dj]:`Region`}],wj={conditions:[[mj,[yj]],[mj,Cj],[`aws.partition`,Cj,hj],[gj,[bj,`aws-eusc`]],[gj,[bj,`aws-iso-f`]],[gj,[bj,`aws-iso-e`]],[gj,[bj,`aws-iso-b`]],[gj,[bj,`aws-iso`]],[gj,[bj,`aws-cn`]],[gj,[bj,`aws-us-gov`]],[gj,[bj,`aws`]],[_j,[{[dj]:`UseFIPS`},pj]],[_j,[{fn:vj,argv:[xj,`supportsFIPS`]},pj]],[_j,[{[dj]:`UseDualStack`},pj]],[_j,[{fn:vj,argv:[xj,`supportsDualStack`]},pj]]],results:[[fj],[fj,`Invalid Configuration: FIPS and custom endpoint are not supported`],[fj,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[yj,Sj],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,Sj],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,Sj],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[fj,`FIPS and DualStack are enabled, but this partition does not support one or both`],[fj,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[fj,`DualStack is enabled but this partition does not support DualStack`],[fj,`Invalid Configuration: Missing Region`]]},Tj=2,Ej=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),Dj=Je.from(Ej,Tj,wj.conditions,wj.results),Oj=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),kj=(e,t={})=>Oj.get(e,()=>Ge(Dj,{endpointParams:e,logger:t.logger}));rt.aws=fe;var _=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Aj=class e extends _{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jj=class e extends _{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Mj=class e extends _{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nj=class e extends _{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pj=class e extends _{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fj=class e extends _{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ij=class e extends _{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lj=class e extends _{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rj=class e extends _{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},zj=class e extends _{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bj=class e extends _{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vj=class e extends _{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hj=class e extends _{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Uj=class e extends _{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wj=class e extends _{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gj=class e extends _{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kj=class e extends _{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qj=class e extends _{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jj=class e extends _{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yj=class e extends _{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xj=class e extends _{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zj=class e extends _{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qj=class e extends _{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$j=class e extends _{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eM=class e extends _{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tM=class e extends _{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nM=class e extends _{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rM=class e extends _{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iM=class e extends _{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aM=class e extends _{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oM=class e extends _{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sM=class e extends _{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cM=class e extends _{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lM=class e extends _{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uM=class e extends _{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dM=class e extends _{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fM=class e extends _{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pM=class e extends _{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mM=class e extends _{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hM=class e extends _{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gM=class e extends _{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_M=class e extends _{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vM=class e extends _{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yM=class e extends _{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bM=class e extends _{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xM=class e extends _{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SM=class e extends _{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},CM=`BlockedByOrganizationPolicyException`,wM=`BatchDeleteImage`,TM=`BatchDeleteImageRequest`,EM=`BatchDeleteImageResponse`,DM=`CreateRepository`,OM=`CreateRepositoryRequest`,kM=`CreateRepositoryResponse`,AM=`DescribeImages`,jM=`DescribeImagesFilter`,MM=`DescribeImagesRequest`,NM=`DescribeImagesResponse`,PM=`DeleteLifecyclePolicy`,FM=`DeleteLifecyclePolicyRequest`,IM=`DeleteLifecyclePolicyResponse`,LM=`DeleteRepository`,RM=`DeleteRepositoryPolicyRequest`,zM=`DeleteRepositoryPolicyResponse`,BM=`DeleteRepositoryPolicy`,VM=`DeleteRepositoryRequest`,HM=`DeleteRepositoryResponse`,UM=`DescribeRepositoriesRequest`,WM=`DescribeRepositoriesResponse`,GM=`DescribeRepositories`,KM=`ExclusionAlreadyExistsException`,qM=`EncryptionConfiguration`,JM=`ExclusionNotFoundException`,YM=`EmptyUploadException`,XM=`GetLifecyclePolicy`,ZM=`GetLifecyclePolicyPreview`,QM=`GetLifecyclePolicyPreviewRequest`,$M=`GetLifecyclePolicyPreviewResponse`,eN=`GetLifecyclePolicyRequest`,tN=`GetLifecyclePolicyResponse`,nN=`GetRepositoryPolicyRequest`,rN=`GetRepositoryPolicyResponse`,iN=`GetRepositoryPolicy`,aN=`ImageArchivedException`,oN=`ImageAlreadyExistsException`,sN=`ImageDetail`,cN=`ImageDigestDoesNotMatchException`,lN=`ImageDetailList`,uN=`ImageFailure`,dN=`ImageFailureList`,fN=`ImageIdentifier`,pN=`ImageIdentifierList`,mN=`InvalidLayerException`,hN=`InvalidLayerPartException`,gN=`ImageNotFoundException`,_N=`InvalidParameterException`,vN=`ImageScanningConfiguration`,yN=`ImageStorageClassUpdateNotSupportedException`,bN=`ImageScanFindingsSummary`,xN=`ImageScanStatus`,SN=`ImageTagAlreadyExistsException`,CN=`ImageTagMutabilityExclusionFilter`,wN=`ImageTagMutabilityExclusionFilters`,TN=`InvalidTagParameterException`,EN=`Key`,DN=`KmsException`,ON=`LayerAlreadyExistsException`,kN=`LimitExceededException`,AN=`LayerInaccessibleException`,jN=`LayersNotFoundException`,MN=`LifecyclePolicyNotFoundException`,NN=`LifecyclePolicyPreviewFilter`,PN=`LifecyclePolicyPreviewInProgressException`,FN=`LifecyclePolicyPreviewNotFoundException`,IN=`LifecyclePolicyPreviewResult`,LN=`LifecyclePolicyPreviewResultList`,RN=`LifecyclePolicyPreviewSummary`,zN=`LifecyclePolicyRuleAction`,BN=`LayerPartTooSmallException`,VN=`PutImageTagMutability`,HN=`PutImageTagMutabilityRequest`,UN=`PutImageTagMutabilityResponse`,WN=`PutLifecyclePolicy`,GN=`PutLifecyclePolicyRequest`,KN=`PutLifecyclePolicyResponse`,qN=`PullThroughCacheRuleAlreadyExistsException`,JN=`PullThroughCacheRuleNotFoundException`,YN=`RepositoryAlreadyExistsException`,XN=`ReferencedImagesNotFoundException`,ZN=`RepositoryList`,QN=`RepositoryNotEmptyException`,$N=`RepositoryNotFoundException`,eP=`RegistryPolicyNotFoundException`,tP=`RepositoryPolicyNotFoundException`,nP=`Repository`,rP=`SigningConfigurationNotFoundException`,iP=`ServerException`,aP=`ScanNotFoundException`,oP=`SecretNotFoundException`,sP=`SetRepositoryPolicy`,cP=`SetRepositoryPolicyRequest`,lP=`SetRepositoryPolicyResponse`,uP=`Tag`,dP=`TemplateAlreadyExistsException`,fP=`TransitioningImageTotalCount`,pP=`TransitioningImageTotalCounts`,mP=`TagList`,hP=`TooManyTagsException`,gP=`TemplateNotFoundException`,_P=`UnsupportedImageTypeException`,vP=`UploadNotFoundException`,yP=`UnableToAccessSecretException`,bP=`UnableToDecryptSecretValueException`,xP=`UnableToGetUpstreamImageException`,SP=`UnableToGetUpstreamLayerException`,CP=`UnableToListUpstreamImageReferrersException`,wP=`UnsupportedUpstreamRegistryException`,TP=`Value`,EP=`ValidationException`,DP=`artifactMediaType`,OP=`appliedRulePriority`,kP=`action`,v=`client`,AP=`createdAt`,jP=`description`,y=`error`,MP=`encryptionConfiguration`,NP=`expiringImageTotalCount`,PP=`encryptionType`,FP=`failures`,IP=`failureCode`,LP=`failureReason`,RP=`findingSeverityCounts`,zP=`filterType`,BP=`filter`,VP=`force`,HP=`httpError`,UP=`imageDetails`,WP=`imageDigest`,GP=`imageIds`,KP=`imageId`,qP=`imageManifestMediaType`,JP=`imagePushedAt`,YP=`imageStatus`,XP=`imageScanningConfiguration`,ZP=`imageScanCompletedAt`,QP=`imageScanFindingsSummary`,$P=`imageSizeInBytes`,eF=`imageScanStatus`,tF=`imageTags`,nF=`imageTotalCount`,rF=`imageTagMutability`,iF=`imageTagMutabilityExclusionFilters`,aF=`imageTag`,oF=`kmsError`,sF=`kmsKey`,cF=`lastArchivedAt`,lF=`lastActivatedAt`,uF=`lastEvaluatedAt`,dF=`lifecyclePolicyText`,fF=`lastRecordedPullTime`,pF=`lastValidByteReceived`,b=`message`,mF=`maxResults`,hF=`nextToken`,gF=`previewResults`,_F=`policyText`,vF=`repositoryArn`,yF=`registryId`,bF=`repositoryName`,xF=`repositoryNames`,SF=`repositoryUri`,CF=`repository`,wF=`repositories`,TF=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,EF=`storageClass`,DF=`subjectManifestDigest`,OF=`scanOnPush`,kF=`server`,AF=`status`,jF=`summary`,MF=`tags`,NF=`transitioningImageTotalCounts`,PF=`tagStatus`,FF=`targetStorageClass`,IF=`type`,LF=`uploadId`,RF=`vulnerabilitySourceUpdatedAt`,x=`com.amazonaws.ecr`,zF=ce.for(TF),BF=[-3,TF,`ECRServiceException`,0,[],[]];zF.registerError(BF,_);var S=ce.for(x),VF=[-3,x,CM,{[y]:v},[b],[0]];S.registerError(VF,gM);var HF=[-3,x,YM,{[y]:v},[b],[0]];S.registerError(HF,Ij);var UF=[-3,x,KM,{[y]:v},[b],[0]];S.registerError(UF,_M);var WF=[-3,x,JM,{[y]:v},[b],[0]];S.registerError(WF,iM);var GF=[-3,x,oN,{[y]:v},[b],[0]];S.registerError(GF,fM);var KF=[-3,x,aN,{[y]:v},[b],[0]];S.registerError(KF,vM);var qF=[-3,x,cN,{[y]:v},[b],[0]];S.registerError(qF,pM);var JF=[-3,x,gN,{[y]:v},[b],[0]];S.registerError(JF,aM);var YF=[-3,x,yN,{[y]:v},[b],[0]];S.registerError(YF,xM);var XF=[-3,x,SN,{[y]:v},[b],[0]];S.registerError(XF,mM);var ZF=[-3,x,mN,{[y]:v},[b],[0]];S.registerError(ZF,Lj);var QF=[-3,x,hN,{[y]:v},[yF,bF,LF,pF,b],[0,0,0,1,0]];S.registerError(QF,SM);var $F=[-3,x,_N,{[y]:v},[b],[0]];S.registerError($F,Aj);var eI=[-3,x,TN,{[y]:v},[b],[0]];S.registerError(eI,qj);var tI=[-3,x,DN,{[y]:v},[b,oF],[0,0]];S.registerError(tI,Rj);var nI=[-3,x,ON,{[y]:v},[b],[0]];S.registerError(nI,zj);var rI=[-3,x,AN,{[y]:v},[b],[0]];S.registerError(rI,sM);var iI=[-3,x,BN,{[y]:v},[b],[0]];S.registerError(iI,Bj);var aI=[-3,x,jN,{[y]:v},[b],[0]];S.registerError(aI,cM);var oI=[-3,x,MN,{[y]:v},[b],[0]];S.registerError(oI,Zj);var sI=[-3,x,PN,{[y]:v},[b],[0]];S.registerError(sI,bM);var cI=[-3,x,FN,{[y]:v},[b],[0]];S.registerError(cI,uM);var lI=[-3,x,kN,{[y]:v},[b],[0]];S.registerError(lI,Nj);var uI=[-3,x,qN,{[y]:v},[b],[0]];S.registerError(uI,Hj);var dI=[-3,x,JN,{[y]:v},[b],[0]];S.registerError(dI,Qj);var fI=[-3,x,XN,{[y]:v},[b],[0]];S.registerError(fI,hM);var pI=[-3,x,eP,{[y]:v},[b],[0]];S.registerError(pI,$j);var mI=[-3,x,YN,{[y]:v},[b],[0]];S.registerError(mI,Jj);var hI=[-3,x,QN,{[y]:v},[b],[0]];S.registerError(hI,eM);var gI=[-3,x,$N,{[y]:v},[b],[0]];S.registerError(gI,jj);var _I=[-3,x,tP,{[y]:v},[b],[0]];S.registerError(_I,nM);var vI=[-3,x,aP,{[y]:v},[b],[0]];S.registerError(vI,oM);var yI=[-3,x,oP,{[y]:v},[b],[0]];S.registerError(yI,Uj);var bI=[-3,x,iP,{[y]:kF},[b],[0]];S.registerError(bI,Mj);var xI=[-3,x,rP,{[y]:v},[b],[0]];S.registerError(xI,rM);var SI=[-3,x,dP,{[y]:v},[b],[0]];S.registerError(SI,Xj);var CI=[-3,x,gP,{[y]:v},[b],[0]];S.registerError(CI,tM);var wI=[-3,x,hP,{[y]:v},[b],[0]];S.registerError(wI,Yj);var TI=[-3,x,yP,{[y]:v},[b],[0]];S.registerError(TI,Wj);var EI=[-3,x,bP,{[y]:v},[b],[0]];S.registerError(EI,Gj);var DI=[-3,x,xP,{[y]:v},[b],[0]];S.registerError(DI,Pj);var OI=[-3,x,SP,{[y]:v},[b],[0]];S.registerError(OI,lM);var kI=[-3,x,CP,{[y]:v},[b],[0]];S.registerError(kI,dM);var AI=[-3,x,_P,{[y]:v},[b],[0]];S.registerError(AI,yM);var jI=[-3,x,wP,{[y]:v},[b],[0]];S.registerError(jI,Kj);var MI=[-3,x,vP,{[y]:v},[b],[0]];S.registerError(MI,Vj);var NI=[-3,x,EP,{[y]:v,[HP]:400},[b],[0]];S.registerError(NI,Fj);var PI=[zF,S],FI=[3,x,TM,0,[bF,GP,yF],[0,()=>TL,0],2],II=[3,x,EM,0,[GP,FP],[()=>TL,()=>wL]],LI=[3,x,OM,0,[bF,yF,MF,rF,iF,XP,MP],[0,0,()=>kL,0,()=>EL,()=>sL,()=>XI],1],RI=[3,x,kM,0,[CF],[()=>vL]],zI=[3,x,FM,0,[bF,yF],[0,0],1],BI=[3,x,IM,0,[yF,bF,dF,uF],[0,0,0,4]],VI=[3,x,RM,0,[bF,yF],[0,0],1],HI=[3,x,zM,0,[yF,bF,_F],[0,0,0]],UI=[3,x,VM,0,[bF,yF,VP],[0,0,2],1],WI=[3,x,HM,0,[CF],[()=>vL]],GI=[3,x,jM,0,[PF,YP],[0,0]],KI=[3,x,MM,0,[bF,yF,GP,hF,mF,BP],[0,0,()=>TL,0,1,()=>GI],1],qI=[3,x,NM,0,[UP,hF],[()=>CL,0]],JI=[3,x,UM,0,[yF,xF,hF,mF],[0,64,0,1]],YI=[3,x,WM,0,[wF,hF],[()=>OL,0]],XI=[3,x,qM,0,[PP,sF],[0,0],1],ZI=[3,x,QM,0,[bF,yF,GP,hF,mF,BP],[0,0,()=>TL,0,1,()=>uL],1],QI=[3,x,$M,0,[yF,bF,dF,AF,hF,gF,jF],[0,0,0,0,0,()=>DL,()=>fL]],$I=[3,x,eN,0,[bF,yF],[0,0],1],eL=[3,x,tN,0,[yF,bF,dF,uF],[0,0,0,4]],tL=[3,x,nN,0,[bF,yF],[0,0],1],nL=[3,x,rN,0,[yF,bF,_F],[0,0,0]],rL=[3,x,sN,0,[yF,bF,WP,tF,$P,JP,eF,QP,qP,DP,fF,DF,YP,cF,lF],[0,0,0,64,1,4,()=>cL,()=>oL,0,0,4,0,0,4,4]],iL=[3,x,uN,0,[KP,IP,LP],[()=>aL,0,0]],aL=[3,x,fN,0,[WP,aF],[0,0]],oL=[3,x,bN,0,[ZP,RF,RP],[4,4,129]],sL=[3,x,vN,0,[OF],[2]],cL=[3,x,xN,0,[AF,jP],[0,0]],lL=[3,x,CN,0,[zP,BP],[0,0],2],uL=[3,x,NN,0,[PF],[0]],dL=[3,x,IN,0,[tF,WP,JP,kP,OP,EF],[64,0,4,()=>pL,1,0]],fL=[3,x,RN,0,[NP,NF],[1,()=>AL]],pL=[3,x,zN,0,[IF,FF],[0,0]],mL=[3,x,HN,0,[bF,rF,yF,iF],[0,0,0,()=>EL],2],hL=[3,x,UN,0,[yF,bF,rF,iF],[0,0,0,()=>EL]],gL=[3,x,GN,0,[bF,dF,yF],[0,0,0],2],_L=[3,x,KN,0,[yF,bF,dF],[0,0,0]],vL=[3,x,nP,0,[vF,yF,bF,SF,AP,rF,iF,XP,MP],[0,0,0,0,4,0,()=>EL,()=>sL,()=>XI]],yL=[3,x,cP,0,[bF,_F,yF,VP],[0,0,0,2],2],bL=[3,x,lP,0,[yF,bF,_F],[0,0,0]],xL=[3,x,uP,0,[EN,TP],[0,0],2],SL=[3,x,fP,0,[FF,nF],[0,1]],CL=[1,x,lN,0,()=>rL],wL=[1,x,dN,0,()=>iL],TL=[1,x,pN,0,()=>aL],EL=[1,x,wN,0,()=>lL],DL=[1,x,LN,0,()=>dL],OL=[1,x,ZN,0,()=>vL],kL=[1,x,mP,0,()=>xL],AL=[1,x,pP,0,()=>SL],jL=[9,x,wM,0,()=>FI,()=>II],ML=[9,x,DM,0,()=>LI,()=>RI],NL=[9,x,PM,0,()=>zI,()=>BI],PL=[9,x,LM,0,()=>UI,()=>WI],FL=[9,x,BM,0,()=>VI,()=>HI],IL=[9,x,AM,0,()=>KI,()=>qI],LL=[9,x,GM,0,()=>JI,()=>YI],RL=[9,x,XM,0,()=>$I,()=>eL],zL=[9,x,ZM,0,()=>ZI,()=>QI],BL=[9,x,iN,0,()=>tL,()=>nL],VL=[9,x,VN,0,()=>mL,()=>hL],HL=[9,x,WN,0,()=>gL,()=>_L],UL=[9,x,sP,0,()=>yL,()=>bL],WL=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??kj,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??oj,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Kt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:PI,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),GL=e=>{let t=Se(e),n=()=>t().then(Ve),r=WL(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:uj.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},KL=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},qL=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),JL=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),KL(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),qL(n))},YL=class extends Te{config;constructor(...[e]){let t=GL(e||{});super(t),this.initConfig=t;let n=JL(sj(Ue(ve(Ee(Le(ke(cj(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:ij,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},XL=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ZL(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecs`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var QL=e=>{let t=[];switch(e.operation){default:t.push(ZL(e))}return t},$L=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},eR=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecs`}),tR={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},nR={name:`@aws-sdk/client-ecs`,description:`AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native`,version:`3.1073.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecs`}},rR=`ref`,iR=-1,aR=!0,oR=`isSet`,sR=`PartitionResult`,cR=`booleanEquals`,lR=`getAttr`,uR={[rR]:`Endpoint`},dR={[rR]:sR},fR={},pR=[{[rR]:`Region`}],mR={conditions:[[oR,[uR]],[oR,pR],[`aws.partition`,pR,sR],[cR,[{[rR]:`UseFIPS`},aR]],[cR,[{[rR]:`UseDualStack`},aR]],[cR,[{fn:lR,argv:[dR,`supportsDualStack`]},aR]],[cR,[{fn:lR,argv:[dR,`supportsFIPS`]},aR]]],results:[[iR],[iR,`Invalid Configuration: FIPS and custom endpoint are not supported`],[iR,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[uR,fR],[`https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,fR],[iR,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}`,fR],[iR,`FIPS is enabled but this partition does not support FIPS`],[`https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}`,fR],[iR,`DualStack is enabled but this partition does not support DualStack`],[`https://ecs.{Region}.{PartitionResult#dnsSuffix}`,fR],[iR,`Invalid Configuration: Missing Region`]]},hR=2,gR=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),_R=Je.from(gR,hR,mR.conditions,mR.results),vR=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),yR=(e,t={})=>vR.get(e,()=>Ge(_R,{endpointParams:e,logger:t.logger}));rt.aws=fe;var C=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},bR=class e extends C{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xR=class e extends C{name=`ClientException`;$fault=`client`;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SR=class e extends C{name=`ClusterNotFoundException`;$fault=`client`;constructor(t){super({name:`ClusterNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CR=class e extends C{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wR=class e extends C{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TR=class e extends C{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},ER=class e extends C{name=`UnsupportedFeatureException`;$fault=`client`;constructor(t){super({name:`UnsupportedFeatureException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DR=class e extends C{name=`UpdateInProgressException`;$fault=`client`;constructor(t){super({name:`UpdateInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OR=class e extends C{name=`NamespaceNotFoundException`;$fault=`client`;constructor(t){super({name:`NamespaceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kR=class e extends C{name=`ClusterContainsCapacityProviderException`;$fault=`client`;constructor(t){super({name:`ClusterContainsCapacityProviderException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AR=class e extends C{name=`ClusterContainsContainerInstancesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsContainerInstancesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jR=class e extends C{name=`ClusterContainsServicesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsServicesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MR=class e extends C{name=`ClusterContainsTasksException`;$fault=`client`;constructor(t){super({name:`ClusterContainsTasksException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NR=class e extends C{name=`TargetNotConnectedException`;$fault=`client`;constructor(t){super({name:`TargetNotConnectedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PR=class e extends C{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FR=class e extends C{name=`TargetNotFoundException`;$fault=`client`;constructor(t){super({name:`TargetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IR=class e extends C{name=`ServiceNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LR=class e extends C{name=`AttributeLimitExceededException`;$fault=`client`;constructor(t){super({name:`AttributeLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RR=class e extends C{name=`MissingVersionException`;$fault=`client`;constructor(t){super({name:`MissingVersionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zR=class e extends C{name=`NoUpdateAvailableException`;$fault=`client`;constructor(t){super({name:`NoUpdateAvailableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BR=class e extends C{name=`ServiceDeploymentNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceDeploymentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VR=class e extends C{name=`PlatformUnknownException`;$fault=`client`;constructor(t){super({name:`PlatformUnknownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HR=class e extends C{name=`DaemonNotActiveException`;$fault=`client`;constructor(t){super({name:`DaemonNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UR=class e extends C{name=`DaemonNotFoundException`;$fault=`client`;constructor(t){super({name:`DaemonNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WR=class e extends C{name=`PlatformTaskDefinitionIncompatibilityException`;$fault=`client`;constructor(t){super({name:`PlatformTaskDefinitionIncompatibilityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GR=class e extends C{name=`ServiceNotActiveException`;$fault=`client`;constructor(t){super({name:`ServiceNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KR=class e extends C{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qR=class e extends C{name=`ConflictException`;$fault=`client`;resourceIds;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.resourceIds=t.resourceIds}},JR=class e extends C{name=`TaskSetNotFoundException`;$fault=`client`;constructor(t){super({name:`TaskSetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YR=class e extends C{name=`BlockedException`;$fault=`client`;constructor(t){super({name:`BlockedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XR=`Attachment`,ZR=`AdvancedConfiguration`,QR=`AttachmentDetails`,$R=`AccessDeniedException`,ez=`AttributeLimitExceededException`,tz=`AwsVpcConfiguration`,nz=`Attribute`,rz=`Attachments`,iz=`Attributes`,az=`BlockedException`,oz=`Cluster`,sz=`CanaryConfiguration`,cz=`ClusterContainsContainerInstancesException`,lz=`ClusterContainsCapacityProviderException`,uz=`CreateClusterRequest`,dz=`CreateClusterResponse`,fz=`ClusterContainsServicesException`,pz=`ClusterContainsTasksException`,mz=`ClusterConfiguration`,hz=`CreateCluster`,gz=`ContainerDefinition`,_z=`ContainerDependency`,vz=`ContainerDefinitions`,yz=`ContainerDependencies`,bz=`ClientException`,xz=`ConflictException`,Sz=`ContainerInstanceHealthStatus`,Cz=`ContainerInstance`,wz=`ContainerInstances`,Tz=`ClusterNotFoundException`,Ez=`ContainerOverride`,Dz=`ContainerOverrides`,Oz=`CapacityProviderStrategy`,kz=`CapacityProviderStrategyItem`,Az=`ContainerRestartPolicy`,jz=`ClusterSetting`,Mz=`ClusterServiceConnectDefaults`,Nz=`ClusterServiceConnectDefaultsRequest`,Pz=`CreateServiceRequest`,Fz=`CreateServiceResponse`,Iz=`ClusterSettings`,Lz=`CreateService`,Rz=`Clusters`,zz=`Container`,Bz=`Containers`,Vz=`Deployment`,Hz=`DeploymentAlarms`,Uz=`DeploymentConfiguration`,Wz=`DeploymentCircuitBreaker`,Gz=`DeregisterContainerInstanceRequest`,Kz=`DeregisterContainerInstanceResponse`,qz=`DescribeContainerInstancesRequest`,Jz=`DescribeContainerInstancesResponse`,Yz=`DeregisterContainerInstance`,Xz=`DescribeContainerInstances`,Zz=`DeleteClusterRequest`,Qz=`DeleteClusterResponse`,$z=`DescribeClustersRequest`,eB=`DescribeClustersResponse`,tB=`DeploymentController`,nB=`DeleteCluster`,rB=`DescribeClusters`,iB=`DeploymentEphemeralStorage`,aB=`DevicesList`,oB=`DeploymentLifecycleHook`,sB=`DeploymentLifecycleHookList`,cB=`DeploymentLifecycleHookTimeoutConfiguration`,lB=`DaemonNotActiveException`,uB=`DaemonNotFoundException`,dB=`DescribeServicesRequest`,fB=`DescribeServicesResponse`,pB=`DescribeServices`,mB=`DescribeTasks`,hB=`DeregisterTaskDefinitionRequest`,gB=`DeregisterTaskDefinitionResponse`,_B=`DescribeTaskDefinitionRequest`,vB=`DescribeTaskDefinitionResponse`,yB=`DeregisterTaskDefinition`,bB=`DescribeTaskDefinition`,xB=`DescribeTasksRequest`,SB=`DescribeTasksResponse`,CB=`DockerVolumeConfiguration`,wB=`Device`,TB=`Deployments`,EB=`EBSTagSpecification`,DB=`EBSTagSpecifications`,OB=`ExecuteCommandConfiguration`,kB=`ExecuteCommandLogConfiguration`,AB=`EnvironmentFile`,jB=`EFSAuthorizationConfig`,MB=`EFSVolumeConfiguration`,NB=`EnvironmentFiles`,PB=`EphemeralStorage`,FB=`EnvironmentVariables`,IB=`Failure`,LB=`FirelensConfiguration`,RB=`FSxWindowsFileServerAuthorizationConfig`,zB=`FSxWindowsFileServerVolumeConfiguration`,BB=`Failures`,VB=`HealthCheck`,HB=`HostEntry`,UB=`HostEntryList`,WB=`HostVolumeProperties`,GB=`InferenceAccelerator`,KB=`InferenceAcceleratorOverride`,qB=`InferenceAcceleratorOverrides`,JB=`InferenceAccelerators`,YB=`InstanceHealthCheckResult`,XB=`InstanceHealthCheckResultList`,ZB=`InvalidParameterException`,QB=`KernelCapabilities`,$B=`KeyValuePair`,eV=`LoadBalancer`,tV=`LoadBalancers`,nV=`LinearConfiguration`,rV=`ListContainerInstances`,iV=`ListContainerInstancesRequest`,aV=`ListContainerInstancesResponse`,oV=`ListClustersRequest`,sV=`ListClustersResponse`,cV=`ListClusters`,lV=`LogConfiguration`,uV=`LimitExceededException`,dV=`LinuxParameters`,fV=`ListServices`,pV=`ListServicesRequest`,mV=`ListServicesResponse`,hV=`ListTasks`,gV=`ListTaskDefinitions`,_V=`ListTaskDefinitionsRequest`,vV=`ListTaskDefinitionsResponse`,yV=`ListTasksRequest`,bV=`ListTasksResponse`,xV=`ManagedAgent`,SV=`ManagedAgents`,CV=`MetricConfigurationList`,wV=`MetricConfiguration`,TV=`MonitoringConfiguration`,EV=`MountPoint`,DV=`MountPointList`,OV=`ManagedStorageConfiguration`,kV=`MissingVersionException`,AV=`NetworkBinding`,jV=`NetworkBindings`,MV=`NetworkConfiguration`,NV=`NetworkInterface`,PV=`NetworkInterfaces`,FV=`NamespaceNotFoundException`,IV=`NoUpdateAvailableException`,LV=`PlacementConstraint`,RV=`ProxyConfigurationProperties`,zV=`PlacementConstraints`,BV=`ProxyConfiguration`,VV=`PortMapping`,HV=`PortMappingList`,UV=`PlacementStrategy`,WV=`PlacementStrategies`,GV=`PlatformTaskDefinitionIncompatibilityException`,KV=`PlatformUnknownException`,qV=`Resource`,JV=`RequiresAttributes`,YV=`RepositoryCredentials`,XV=`ResourceInUseException`,ZV=`ResourceNotFoundException`,QV=`RuntimePlatform`,$V=`ResourceRequirement`,eH=`ResourceRequirements`,tH=`RunTask`,nH=`RegisterTaskDefinition`,rH=`RegisterTaskDefinitionRequest`,iH=`RegisterTaskDefinitionResponse`,aH=`RunTaskRequest`,oH=`RunTaskResponse`,sH=`Resources`,cH=`Scale`,lH=`SystemControl`,uH=`ServiceConnectAccessLogConfiguration`,dH=`ServiceConnectConfiguration`,fH=`ServiceConnectClientAlias`,pH=`ServiceConnectClientAliasList`,mH=`ServiceCurrentRevisionSummary`,hH=`ServiceCurrentRevisionSummaryList`,gH=`ServiceConnectService`,_H=`ServiceConnectServiceList`,vH=`ServiceConnectServiceResource`,yH=`ServiceConnectServiceResourceList`,bH=`ServiceConnectTlsConfiguration`,xH=`ServiceConnectTlsCertificateAuthority`,SH=`ServiceConnectTestTrafficHeaderMatchRules`,CH=`ServiceConnectTestTrafficHeaderRules`,wH=`ServiceConnectTestTrafficRules`,TH=`SystemControls`,EH=`ServiceDeploymentNotFoundException`,DH=`ServerException`,OH=`ServiceEvent`,kH=`ServiceEvents`,AH=`S3FilesVolumeConfiguration`,jH=`SecretList`,MH=`ServiceManagedEBSVolumeConfiguration`,NH=`ServiceNotActiveException`,PH=`ServiceNotFoundException`,FH=`ServiceRegistry`,IH=`ServiceRegistries`,LH=`StopTaskRequest`,RH=`StopTaskResponse`,zH=`StopTask`,BH=`ServiceVolumeConfiguration`,VH=`ServiceVolumeConfigurations`,HH=`Secret`,UH=`Service`,WH=`Services`,GH=`Statistics`,KH=`Tag`,qH=`TimeoutConfiguration`,JH=`TaskDefinition`,YH=`TaskDefinitionPlacementConstraint`,XH=`TaskDefinitionPlacementConstraints`,ZH=`TaskEphemeralStorage`,QH=`TmpfsList`,$H=`TaskManagedEBSVolumeConfiguration`,eU=`TaskManagedEBSVolumeTerminationPolicy`,tU=`TargetNotConnectedException`,nU=`TargetNotFoundException`,rU=`TaskOverride`,iU=`TaskSet`,aU=`TaskSetNotFoundException`,oU=`TaskSets`,sU=`TaskVolumeConfiguration`,cU=`TaskVolumeConfigurations`,lU=`Task`,uU=`Tags`,dU=`Tasks`,fU=`Tmpfs`,pU=`Ulimit`,mU=`UpdateContainerInstancesState`,hU=`UpdateContainerInstancesStateRequest`,gU=`UpdateContainerInstancesStateResponse`,_U=`UnsupportedFeatureException`,vU=`UpdateInProgressException`,yU=`UlimitList`,bU=`Volume`,xU=`VolumeFrom`,SU=`VolumeFromList`,CU=`VersionInfo`,wU=`VolumeList`,TU=`VpcLatticeConfiguration`,EU=`VpcLatticeConfigurations`,DU=`attachments`,OU=`agentConnected`,kU=`advancedConfiguration`,AU=`authorizationConfig`,jU=`awsvpcConfiguration`,MU=`agentHash`,NU=`attachmentId`,PU=`accessLogConfiguration`,FU=`alarmNames`,IU=`appProtocol`,LU=`accessPointArn`,RU=`awsPcaAuthorityArn`,zU=`assignPublicIp`,BU=`accessPointId`,VU=`activeServicesCount`,HU=`attachmentsStatus`,UU=`alternateTargetGroupArn`,WU=`agentUpdateStatus`,GU=`agentVersion`,KU=`availabilityZone`,qU=`availabilityZoneRebalancing`,JU=`action`,YU=`add`,XU=`alarms`,ZU=`arn`,QU=`attributes`,$U=`autoprovision`,eW=`base`,tW=`bindIP`,nW=`bakeTimeInMinutes`,w=`client`,rW=`clusterArn`,iW=`configuredAtLaunch`,aW=`clusterArns`,oW=`clientAliases`,sW=`containerArn`,cW=`connectivityAt`,lW=`cpuArchitecture`,uW=`createdAt`,dW=`canaryBakeTimeInMinutes`,fW=`createdBy`,pW=`canaryConfiguration`,mW=`containerDefinitions`,hW=`computedDesiredCount`,gW=`containerInstanceArn`,_W=`containerInstanceArns`,vW=`containerInstance`,yW=`containerInstances`,bW=`clusterName`,xW=`containerName`,SW=`containerOverrides`,CW=`canaryPercent`,wW=`capacityProviderName`,TW=`containerPortRange`,EW=`capacityProviderStrategy`,DW=`capacityProvider`,OW=`capacityProviders`,kW=`containerPath`,AW=`containerPort`,jW=`credentialsParameter`,MW=`credentialSpecs`,NW=`currentServiceDeployment`,PW=`currentServiceRevisions`,FW=`clientToken`,IW=`cloudWatchEncryptionEnabled`,LW=`cloudWatchLogGroupName`,RW=`capabilities`,zW=`cluster`,BW=`clusters`,VW=`configuration`,HW=`command`,UW=`compatibilities`,WW=`condition`,GW=`connectivity`,KW=`containers`,qW=`count`,JW=`cpu`,YW=`details`,XW=`deregisteredAt`,ZW=`discoveryArn`,QW=`deploymentConfiguration`,$W=`deploymentCircuitBreaker`,eG=`defaultCapacityProviderStrategy`,tG=`desiredCount`,nG=`deploymentController`,rG=`dockerLabels`,iG=`disableNetworking`,aG=`daemonName`,oG=`deviceName`,sG=`discoveryName`,cG=`dnsName`,lG=`dependsOn`,uG=`deleteOnTermination`,dG=`driverOpts`,fG=`deleteRequestedAt`,pG=`dnsServers`,mG=`dnsSearchDomains`,hG=`dockerSecurityOptions`,gG=`desiredStatus`,_G=`deviceType`,vG=`doubleValue`,yG=`dockerVolumeConfiguration`,bG=`dockerVersion`,xG=`devices`,SG=`deployments`,CG=`detail`,wG=`domain`,TG=`driver`,EG=`drop`,T=`error`,DG=`exitCode`,OG=`executeCommandConfiguration`,kG=`enableExecuteCommand`,AG=`enableECSManagedTags`,jG=`environmentFiles`,MG=`enableFaultInjection`,NG=`extraHosts`,PG=`externalId`,FG=`ec2InstanceId`,IG=`entryPoint`,LG=`executionRoleArn`,RG=`executionStoppedAt`,zG=`ephemeralStorage`,BG=`efsVolumeConfiguration`,VG=`environment`,HG=`enabled`,UG=`enable`,WG=`encrypted`,GG=`essential`,KG=`events`,qG=`expression`,JG=`exact`,YG=`family`,XG=`firelensConfiguration`,ZG=`fargateEphemeralStorage`,QG=`fargateEphemeralStorageKmsKeyId`,$G=`familyPrefix`,eK=`fileSystemArn`,tK=`fileSystemId`,nK=`failedTasks`,rK=`filesystemType`,iK=`fsxWindowsFileServerVolumeConfiguration`,aK=`failures`,oK=`filter`,sK=`field`,cK=`force`,lK=`format`,uK=`group`,dK=`gpuIds`,fK=`hostname`,pK=`healthCheck`,mK=`healthCheckGracePeriodSeconds`,hK=`hookDetails`,gK=`httpError`,_K=`hardLimit`,vK=`hostPath`,yK=`hostPortRange`,bK=`hostPort`,xK=`healthStatus`,SK=`hookTargetArn`,CK=`header`,wK=`host`,TK=`id`,EK=`ipAddress`,DK=`inferenceAcceleratorOverrides`,OK=`inferenceAccelerators`,kK=`ipv6Address`,AK=`issuerCertificateAuthority`,jK=`imageDigest`,MK=`ignoredExitCodes`,NK=`ipcMode`,PK=`initProcessEnabled`,FK=`ingressPortOverride`,IK=`includeQueryParameters`,LK=`idleTimeoutSeconds`,RK=`integerValue`,zK=`iam`,BK=`image`,VK=`interactive`,HK=`include`,UK=`interval`,WK=`iops`,GK=`key`,KK=`kmsKey`,qK=`kmsKeyId`,JK=`links`,YK=`loadBalancers`,XK=`loadBalancerName`,ZK=`logConfiguration`,QK=`linearConfiguration`,$K=`logDriver`,eq=`lifecycleHooks`,tq=`linuxParameters`,nq=`lastStatus`,rq=`lastStartedAt`,iq=`lastStatusChange`,aq=`lifecycleStages`,oq=`launchType`,sq=`lastUpdated`,cq=`longValue`,lq=`labels`,uq=`logging`,E=`message`,dq=`managedAgents`,fq=`metricConfigurations`,pq=`managedEBSVolume`,mq=`minimumHealthyPercent`,hq=`metricNames`,gq=`mountOptions`,_q=`mountPoints`,vq=`maximumPercent`,yq=`memoryReservation`,bq=`maxResults`,xq=`managedStorageConfiguration`,Sq=`maxSwap`,Cq=`memory`,wq=`monitoring`,Tq=`name`,Eq=`networkBindings`,Dq=`networkConfiguration`,Oq=`neuronDeviceIds`,kq=`networkInterfaces`,Aq=`networkMode`,jq=`nextToken`,Mq=`namespace`,Nq=`options`,Pq=`overallStatus`,Fq=`operatingSystemFamily`,Iq=`overrides`,Lq=`privileged`,Rq=`pendingCount`,zq=`placementConstraints`,Bq=`proxyConfiguration`,Vq=`platformFamily`,Hq=`privateIpv4Address`,Uq=`productionListenerRule`,Wq=`portMappings`,Gq=`pidMode`,Kq=`portName`,qq=`perRequestTimeoutSeconds`,Jq=`placementStrategy`,Yq=`pullStartedAt`,Xq=`pullStoppedAt`,Zq=`pseudoTerminal`,Qq=`pendingTasksCount`,$q=`pendingTaskCount`,eJ=`propagateTags`,tJ=`platformVersion`,nJ=`permissions`,rJ=`port`,iJ=`protocol`,aJ=`properties`,oJ=`reason`,sJ=`roleArn`,cJ=`restartAttemptPeriod`,lJ=`registeredAt`,uJ=`registryArn`,dJ=`requiresAttributes`,fJ=`registeredBy`,pJ=`repositoryCredentials`,mJ=`registeredContainerInstancesCount`,hJ=`requiresCompatibilities`,gJ=`runningCount`,_J=`rootDirectory`,vJ=`resourceIds`,yJ=`referenceId`,bJ=`runtimeId`,xJ=`resourceManagementType`,SJ=`readOnly`,CJ=`restartPolicy`,wJ=`runtimePlatform`,TJ=`resourceRequirements`,EJ=`readonlyRootFilesystem`,DJ=`remainingResources`,OJ=`registeredResources`,kJ=`rolloutState`,AJ=`rolloutStateReason`,jJ=`resolutionSeconds`,MJ=`resourceType`,NJ=`runningTasksCount`,PJ=`requestedTaskCount`,FJ=`runningTaskCount`,IJ=`revision`,LJ=`retries`,RJ=`role`,zJ=`rollback`,BJ=`smithy.ts.sdk.synthetic.com.amazonaws.ecs`,VJ=`startedAt`,HJ=`serviceArn`,UJ=`serviceArns`,WJ=`stoppedAt`,GJ=`stoppingAt`,KJ=`startedBy`,qJ=`s3BucketName`,JJ=`stepBakeTimeInMinutes`,YJ=`systemControls`,XJ=`serviceConnectConfiguration`,ZJ=`serviceConnectDefaults`,QJ=`serviceConnectResources`,$J=`sourceContainer`,eY=`stopCode`,tY=`s3EncryptionEnabled`,nY=`securityGroups`,rY=`sizeInGiB`,iY=`snapshotId`,aY=`s3KeyPrefix`,oY=`softLimit`,sY=`sharedMemorySize`,cY=`serviceName`,lY=`secretOptions`,uY=`startPeriod`,dY=`sourcePath`,fY=`stepPercent`,pY=`statusReason`,mY=`serviceRegistries`,hY=`stoppedReason`,gY=`schedulingStrategy`,_Y=`stabilityStatusAt`,vY=`stringSetValue`,yY=`stabilityStatus`,bY=`startTimeout`,xY=`stopTimeout`,SY=`sourceVolume`,CY=`s3filesVolumeConfiguration`,wY=`scale`,TY=`scope`,EY=`server`,DY=`secrets`,OY=`service`,kY=`services`,AY=`settings`,jY=`size`,MY=`sort`,NY=`status`,PY=`statistics`,FY=`strategy`,IY=`subnets`,LY=`swappiness`,RY=`type`,zY=`taskArn`,BY=`taskArns`,VY=`timeoutConfiguration`,HY=`taskDefinition`,UY=`taskDefinitionArn`,WY=`taskDefinitionArns`,GY=`transitEncryptionPort`,KY=`transitEncryption`,qY=`targetGroupArn`,JY=`targetId`,YY=`timeoutInMinutes`,XY=`testListenerRule`,ZY=`terminationPolicy`,QY=`taskRoleArn`,$Y=`taskSetArn`,eX=`taskSets`,tX=`tagSpecifications`,nX=`targetType`,rX=`testTrafficRules`,iX=`tags`,aX=`tasks`,oX=`task`,sX=`throughput`,cX=`timeout`,lX=`tls`,uX=`tmpfs`,dX=`user`,fX=`updatedAt`,pX=`ulimits`,mX=`unit`,hX=`value`,gX=`versionConsistency`,_X=`volumeConfigurations`,vX=`volumesFrom`,yX=`valueFrom`,bX=`versionInfo`,xX=`volumeInitializationRate`,SX=`vpcLatticeConfigurations`,CX=`volumeType`,wX=`version`,TX=`volumes`,EX=`weight`,DX=`workingDirectory`,D=`com.amazonaws.ecs`,OX=ce.for(BJ),kX=[-3,BJ,`ECSServiceException`,0,[],[]];OX.registerError(kX,C);var O=ce.for(D),AX=[-3,D,$R,{[T]:w,[gK]:403},[E],[0]];O.registerError(AX,bR);var jX=[-3,D,ez,{[T]:w},[E],[0]];O.registerError(jX,LR);var MX=[-3,D,az,{[T]:w},[E],[0]];O.registerError(MX,YR);var NX=[-3,D,bz,{[T]:w},[E],[0]];O.registerError(NX,xR);var PX=[-3,D,lz,{[T]:w},[E],[0]];O.registerError(PX,kR);var FX=[-3,D,cz,{[T]:w},[E],[0]];O.registerError(FX,AR);var IX=[-3,D,fz,{[T]:w},[E],[0]];O.registerError(IX,jR);var LX=[-3,D,pz,{[T]:w},[E],[0]];O.registerError(LX,MR);var RX=[-3,D,Tz,{[T]:w},[E],[0]];O.registerError(RX,SR);var zX=[-3,D,xz,{[T]:w},[vJ,E],[64,0]];O.registerError(zX,qR);var BX=[-3,D,lB,{[T]:w},[E],[0]];O.registerError(BX,HR);var VX=[-3,D,uB,{[T]:w},[E],[0]];O.registerError(VX,UR);var HX=[-3,D,ZB,{[T]:w},[E],[0]];O.registerError(HX,CR);var UX=[-3,D,uV,{[T]:w},[E],[0]];O.registerError(UX,wR);var WX=[-3,D,kV,{[T]:w},[E],[0]];O.registerError(WX,RR);var GX=[-3,D,FV,{[T]:w},[E],[0]];O.registerError(GX,OR);var KX=[-3,D,IV,{[T]:w},[E],[0]];O.registerError(KX,zR);var qX=[-3,D,GV,{[T]:w},[E],[0]];O.registerError(qX,WR);var JX=[-3,D,KV,{[T]:w},[E],[0]];O.registerError(JX,VR);var YX=[-3,D,XV,{[T]:w},[E],[0]];O.registerError(YX,PR);var XX=[-3,D,ZV,{[T]:w},[E],[0]];O.registerError(XX,KR);var ZX=[-3,D,DH,{[T]:EY},[E],[0]];O.registerError(ZX,TR);var QX=[-3,D,EH,{[T]:w},[E],[0]];O.registerError(QX,BR);var $X=[-3,D,NH,{[T]:w},[E],[0]];O.registerError($X,GR);var eZ=[-3,D,PH,{[T]:w},[E],[0]];O.registerError(eZ,IR);var tZ=[-3,D,tU,{[T]:w},[E],[0]];O.registerError(tZ,NR);var nZ=[-3,D,nU,{[T]:w},[E],[0]];O.registerError(nZ,FR);var rZ=[-3,D,aU,{[T]:w},[E],[0]];O.registerError(rZ,JR);var iZ=[-3,D,_U,{[T]:w},[E],[0]];O.registerError(iZ,ER);var aZ=[-3,D,vU,{[T]:w},[E],[0]];O.registerError(aZ,DR);var oZ=[OX,O],sZ=[3,D,ZR,0,[UU,Uq,XY,sJ],[0,0,0,0]],cZ=[3,D,XR,0,[TK,RY,NY,YW],[0,0,0,()=>Tpe]],lZ=[3,D,nz,0,[Tq,hX,nX,JY],[0,0,0,0],1],uZ=[3,D,tz,0,[IY,nY,zU],[64,64,0],1],dZ=[3,D,sz,0,[CW,dW],[1,1]],fZ=[3,D,kz,0,[DW,EX,eW],[0,1,1],1],pZ=[3,D,oz,0,[rW,bW,VW,NY,mJ,NJ,Qq,VU,PY,iX,AY,OW,eG,DU,HU,ZJ],[0,0,()=>mZ,0,1,1,1,1,()=>Xpe,()=>GQ,()=>kQ,64,()=>OQ,()=>EQ,0,()=>hZ]],mZ=[3,D,mz,0,[OG,xq],[()=>oQ,()=>Dfe]],hZ=[3,D,Mz,0,[Mq],[0]],gZ=[3,D,Nz,0,[Mq],[0],1],_Z=[3,D,jz,0,[Tq,hX],[0,0]],vZ=[3,D,zz,0,[sW,zY,Tq,BK,jK,bJ,nq,DG,oJ,Eq,kq,xK,dq,JW,Cq,yq,dK,Oq],[0,0,0,0,0,0,0,1,0,()=>zpe,()=>Bpe,0,()=>Ipe,0,0,0,64,64]],yZ=[3,D,gz,0,[Tq,BK,pJ,JW,Cq,yq,JK,Wq,GG,CJ,IG,HW,VG,jG,_q,vX,tq,DY,lG,bY,xY,gX,fK,dX,DX,iG,Lq,EJ,pG,mG,NG,hG,VK,Zq,rG,pX,ZK,pK,YJ,TJ,XG,MW],[0,0,[()=>Rfe,0],1,1,1,64,()=>Vpe,2,()=>wZ,64,64,[()=>PQ,0],()=>NQ,()=>Rpe,()=>nme,()=>mfe,()=>HQ,()=>Dpe,1,1,0,0,0,0,2,2,2,64,64,()=>Npe,64,2,2,128,()=>tme,()=>_Q,()=>fQ,()=>Zpe,()=>BQ,()=>lQ,64]],bZ=[3,D,_z,0,[xW,WW],[0,0],2],xZ=[3,D,Cz,0,[gW,FG,wW,wX,bX,DJ,OJ,NY,pY,OU,NJ,Qq,WU,QU,lJ,DU,iX,xK],[0,0,0,1,()=>xpe,()=>VQ,()=>VQ,0,0,2,1,1,0,()=>DQ,4,()=>EQ,()=>GQ,()=>SZ]],SZ=[3,D,Sz,0,[Pq,YW],[0,()=>Fpe]],CZ=[3,D,Ez,0,[Tq,HW,VG,jG,JW,Cq,yq,TJ],[0,64,[()=>PQ,0],()=>NQ,1,1,1,()=>BQ]],wZ=[3,D,Az,0,[HG,MK,cJ],[2,65,1],1],TZ=[3,D,uz,0,[bW,iX,AY,VW,OW,eG,ZJ],[0,()=>GQ,()=>kQ,()=>mZ,64,()=>OQ,()=>gZ]],EZ=[3,D,dz,0,[zW],[()=>pZ]],DZ=[3,D,Pz,0,[cY,zW,HY,qU,YK,mY,tG,FW,oq,EW,tJ,RJ,QW,zq,Jq,Dq,mK,gY,nG,iX,AG,eJ,kG,XJ,_X,SX,wq],[0,0,0,0,()=>LQ,()=>UQ,1,0,0,()=>OQ,0,0,()=>PZ,()=>RQ,()=>zQ,()=>vQ,1,0,()=>FZ,()=>GQ,2,0,2,()=>SQ,()=>WQ,()=>YQ,()=>kfe],1],OZ=[3,D,Fz,0,[OY],[()=>xQ]],kZ=[3,D,Zz,0,[zW],[0],1],AZ=[3,D,Qz,0,[zW],[()=>pZ]],jZ=[3,D,Vz,0,[TK,NY,HY,tG,Rq,gJ,nK,uW,fX,EW,oq,tJ,Vq,Dq,kJ,AJ,XJ,QJ,_X,ZG,SX],[0,0,0,1,1,1,1,4,4,()=>OQ,0,0,0,()=>vQ,0,0,()=>SQ,()=>Kpe,()=>WQ,()=>IZ,()=>YQ]],MZ=[3,D,Hz,0,[FU,zJ,UG],[64,2,2],3],NZ=[3,D,Wz,0,[UG,zJ],[2,2],2],PZ=[3,D,Uz,0,[$W,vq,mq,XU,FY,nW,eq,QK,pW],[()=>NZ,1,1,()=>MZ,0,1,()=>Ape,()=>pfe,()=>dZ]],FZ=[3,D,tB,0,[RY],[0],1],IZ=[3,D,iB,0,[qK],[0]],LZ=[3,D,oB,0,[nX,SK,sJ,aq,hK,VY],[0,0,0,64,15,()=>RZ]],RZ=[3,D,cB,0,[YY,JU],[1,0]],zZ=[3,D,Gz,0,[vW,zW,cK],[0,0,2],1],BZ=[3,D,Kz,0,[vW],[()=>xZ]],VZ=[3,D,hB,0,[HY],[0],1],HZ=[3,D,gB,0,[HY],[[()=>wQ,0]]],UZ=[3,D,$z,0,[BW,HK],[64,64]],WZ=[3,D,eB,0,[BW,aK],[()=>Epe,()=>FQ]],GZ=[3,D,qz,0,[yW,zW,HK],[64,0,64],1],KZ=[3,D,Jz,0,[yW,aK],[()=>jQ,()=>FQ]],qZ=[3,D,dB,0,[kY,zW,HK],[64,0,64],1],JZ=[3,D,fB,0,[kY,aK],[()=>Ype,()=>FQ]],YZ=[3,D,_B,0,[HY,HK],[0,64],1],XZ=[3,D,vB,0,[HY,iX],[[()=>wQ,0],()=>GQ]],ZZ=[3,D,xB,0,[aX,zW,HK],[64,0,64],1],QZ=[3,D,SB,0,[aX,aK],[[()=>qQ,0],()=>FQ]],$Z=[3,D,wB,0,[vK,kW,nJ],[0,0,64],1],eQ=[3,D,CB,0,[TY,$U,TG,dG,lq],[0,2,0,128,128]],tQ=[3,D,EB,0,[MJ,iX,eJ],[0,()=>GQ,0],1],nQ=[3,D,jB,0,[BU,zK],[0,0]],rQ=[3,D,MB,0,[tK,_J,KY,GY,AU],[0,0,0,1,()=>nQ],1],iQ=[3,D,AB,0,[hX,RY],[0,0],2],aQ=[3,D,PB,0,[rY],[1],1],oQ=[3,D,OB,0,[qK,uq,ZK],[0,0,()=>sQ]],sQ=[3,D,kB,0,[LW,IW,qJ,tY,aY],[0,2,0,2,0]],cQ=[3,D,IB,0,[ZU,oJ,CG],[0,0,0]],lQ=[3,D,LB,0,[RY,Nq],[0,128],1],uQ=[3,D,RB,0,[jW,wG],[0,0],2],dQ=[3,D,zB,0,[tK,_J,AU],[0,0,()=>uQ],3],fQ=[3,D,VB,0,[HW,UK,cX,LJ,uY],[64,1,1,1,1],1],pQ=[3,D,HB,0,[fK,EK],[0,0],2],mQ=[3,D,WB,0,[dY],[0]],hQ=[3,D,GB,0,[oG,_G],[0,0],2],ufe=[3,D,KB,0,[oG,_G],[0,0]],dfe=[3,D,YB,0,[RY,NY,pY,sq,iq],[0,0,0,4,4]],ffe=[3,D,QB,0,[YU,EG],[64,64]],gQ=[3,D,$B,0,[Tq,hX],[0,0]],pfe=[3,D,nV,0,[fY,JJ],[1,1]],mfe=[3,D,dV,0,[RW,xG,PK,sY,uX,Sq,LY],[()=>ffe,()=>Mpe,2,1,()=>eme,1,1]],hfe=[3,D,oV,0,[jq,bq],[0,1]],gfe=[3,D,sV,0,[aW,jq],[64,0]],_fe=[3,D,iV,0,[zW,oK,jq,bq,NY],[0,0,0,1,0]],vfe=[3,D,aV,0,[_W,jq],[64,0]],yfe=[3,D,pV,0,[zW,jq,bq,oq,gY,xJ],[0,0,1,0,0,0]],bfe=[3,D,mV,0,[UJ,jq],[64,0]],xfe=[3,D,_V,0,[$G,NY,MY,jq,bq],[0,0,0,0,1]],Sfe=[3,D,vV,0,[WY,jq],[64,0]],Cfe=[3,D,yV,0,[zW,vW,YG,jq,bq,KJ,cY,gG,oq,aG],[0,0,0,0,1,0,0,0,0,0]],wfe=[3,D,bV,0,[BY,jq],[64,0]],Tfe=[3,D,eV,0,[qY,XK,xW,AW,kU],[0,0,0,1,()=>sZ]],_Q=[3,D,lV,0,[$K,Nq,lY],[0,128,()=>HQ],1],Efe=[3,D,xV,0,[rq,Tq,oJ,nq],[4,0,0,0]],Dfe=[3,D,OV,0,[qK,QG],[0,0]],Ofe=[3,D,wV,0,[hq,jJ],[64,1],2],kfe=[3,D,TV,0,[fq],[()=>Lpe]],Afe=[3,D,EV,0,[SY,kW,SJ],[0,0,2]],jfe=[3,D,AV,0,[tW,AW,bK,iJ,TW,yK],[0,1,1,0,0,0]],vQ=[3,D,MV,0,[jU],[()=>uZ]],Mfe=[3,D,NV,0,[NU,Hq,kK],[0,0,0]],Nfe=[3,D,LV,0,[RY,qG],[0,0]],Pfe=[3,D,UV,0,[RY,sK],[0,0]],Ffe=[3,D,VV,0,[AW,bK,iJ,Tq,IU,TW],[1,1,0,0,0,0]],yQ=[3,D,BV,0,[xW,RY,aJ],[0,0,()=>Hpe],1],Ife=[3,D,rH,0,[YG,mW,QY,LG,Aq,TX,zq,hJ,JW,Cq,iX,Gq,NK,Bq,OK,zG,wJ,MG],[0,[()=>AQ,0],0,0,0,()=>JQ,()=>KQ,64,0,0,()=>GQ,0,0,()=>yQ,()=>IQ,()=>aQ,()=>bQ,2],2],Lfe=[3,D,iH,0,[HY,iX],[[()=>wQ,0],()=>GQ]],Rfe=[3,D,YV,8,[jW],[0],1],zfe=[3,D,qV,0,[Tq,RY,vG,cq,RK,vY],[0,0,1,1,1,64]],Bfe=[3,D,$V,0,[hX,RY],[0,0],2],Vfe=[3,D,aH,0,[HY,EW,zW,qW,AG,kG,uK,oq,Dq,Iq,zq,Jq,tJ,eJ,yJ,KJ,iX,FW,_X],[0,()=>OQ,0,1,2,2,0,0,()=>vQ,[()=>TQ,0],()=>RQ,()=>zQ,0,0,0,0,()=>GQ,[0,4],()=>$pe],1],Hfe=[3,D,oH,0,[aX,aK],[[()=>qQ,0],()=>FQ]],bQ=[3,D,QV,0,[lW,Fq],[0,0]],Ufe=[3,D,AH,0,[eK,_J,GY,LU],[0,0,1,0],1],Wfe=[3,D,cH,0,[hX,mX],[1,0]],Gfe=[3,D,HH,0,[Tq,yX],[0,0],2],xQ=[3,D,UH,0,[HJ,cY,rW,YK,mY,NY,tG,gJ,Rq,oq,EW,tJ,Vq,HY,QW,eX,SG,sJ,KG,uW,NW,PW,zq,Jq,Dq,mK,gY,nG,iX,fW,AG,eJ,kG,qU,xJ],[0,0,0,()=>LQ,()=>UQ,0,1,1,1,0,()=>OQ,0,0,0,()=>PZ,()=>Qpe,()=>jpe,0,()=>Jpe,4,0,()=>qpe,()=>RQ,()=>zQ,()=>vQ,1,0,()=>FZ,()=>GQ,0,2,0,2,0,0]],Kfe=[3,D,uH,0,[lK,IK],[0,0],1],qfe=[3,D,fH,0,[rJ,cG,rX],[1,0,()=>Qfe],1],SQ=[3,D,dH,0,[HG,Mq,kY,ZK,PU],[2,0,()=>Gpe,()=>_Q,()=>Kfe],1],Jfe=[3,D,gH,0,[Kq,sG,oW,FK,cX,lX],[0,0,()=>Wpe,1,()=>gpe,()=>epe],1],Yfe=[3,D,vH,0,[sG,ZW],[0,0]],Xfe=[3,D,SH,0,[JG],[0],1],Zfe=[3,D,CH,0,[Tq,hX],[0,()=>Xfe],1],Qfe=[3,D,wH,0,[CK],[()=>Zfe],1],$fe=[3,D,xH,0,[RU],[0]],epe=[3,D,bH,0,[AK,KK,sJ],[()=>$fe,0,0],1],tpe=[3,D,mH,0,[ZU,PJ,FJ,$q],[0,1,1,1]],npe=[3,D,OH,0,[TK,uW,E],[0,4,0]],rpe=[3,D,MH,0,[sJ,WG,qK,CX,rY,iY,xX,WK,sX,tX,rK],[0,2,0,0,1,0,1,1,1,()=>MQ,0],1],ipe=[3,D,FH,0,[uJ,rJ,xW,AW],[0,1,0,1]],ape=[3,D,BH,0,[Tq,pq],[0,()=>rpe],1],ope=[3,D,LH,0,[oX,zW,oJ],[0,0,0],1],spe=[3,D,RH,0,[oX],[[()=>CQ,0]]],cpe=[3,D,lH,0,[Mq,hX],[0,0]],lpe=[3,D,KH,0,[GK,hX],[0,0]],CQ=[3,D,lU,0,[DU,QU,KU,wW,rW,GW,cW,gW,KW,JW,uW,gG,kG,RG,uK,xK,OK,nq,oq,Cq,Iq,tJ,Vq,Yq,Xq,VJ,KJ,eY,WJ,hY,GJ,iX,zY,UY,wX,zG,ZG],[()=>EQ,()=>DQ,0,0,0,0,4,0,()=>kpe,0,4,0,2,4,0,0,()=>IQ,0,0,0,[()=>TQ,0],0,0,4,4,4,0,0,4,0,4,()=>GQ,0,0,1,()=>aQ,()=>dpe]],wQ=[3,D,JH,0,[UY,mW,YG,QY,LG,Aq,IJ,TX,NY,dJ,zq,UW,wJ,hJ,JW,Cq,OK,Gq,NK,Bq,lJ,XW,fG,fJ,zG,MG],[0,[()=>AQ,0],0,0,0,0,1,()=>JQ,0,()=>Upe,()=>KQ,64,()=>bQ,64,0,0,()=>IQ,0,0,()=>yQ,4,4,4,0,()=>aQ,2]],upe=[3,D,YH,0,[RY,qG],[0,0]],dpe=[3,D,ZH,0,[rY,qK],[1,0]],fpe=[3,D,$H,0,[sJ,WG,qK,CX,rY,iY,xX,WK,sX,tX,ZY,rK],[0,2,0,0,1,0,1,1,1,()=>MQ,()=>ppe,0],1],ppe=[3,D,eU,0,[uG],[2],1],TQ=[3,D,rU,0,[SW,JW,DK,LG,Cq,QY,zG],[[()=>Ope,0],0,()=>Ppe,0,0,0,()=>aQ]],mpe=[3,D,iU,0,[TK,$Y,HJ,rW,KJ,PG,NY,HY,hW,Rq,gJ,uW,fX,oq,EW,tJ,Vq,Dq,YK,mY,wY,yY,_Y,iX,ZG],[0,0,0,0,0,0,0,0,1,1,1,4,4,0,()=>OQ,0,0,()=>vQ,()=>LQ,()=>UQ,()=>Wfe,0,4,()=>GQ,()=>IZ]],hpe=[3,D,sU,0,[Tq,pq],[0,()=>fpe],1],gpe=[3,D,qH,0,[LK,qq],[1,1]],_pe=[3,D,fU,0,[kW,jY,gq],[0,1,64],2],vpe=[3,D,pU,0,[Tq,oY,_K],[0,1,1],3],ype=[3,D,hU,0,[yW,NY,zW],[64,0,0],2],bpe=[3,D,gU,0,[yW,aK],[()=>jQ,()=>FQ]],xpe=[3,D,CU,0,[GU,MU,bG],[0,0,0]],Spe=[3,D,bU,0,[Tq,wK,yG,BG,CY,iK,iW],[0,()=>mQ,()=>eQ,()=>rQ,()=>Ufe,()=>dQ,2]],Cpe=[3,D,xU,0,[$J,SJ],[0,2]],wpe=[3,D,TU,0,[sJ,qY,Kq],[0,0,0],3],Tpe=[1,D,QR,0,()=>gQ],EQ=[1,D,rz,0,()=>cZ],DQ=[1,D,iz,0,()=>lZ],OQ=[1,D,Oz,0,()=>fZ],Epe=[1,D,Rz,0,()=>pZ],kQ=[1,D,Iz,0,()=>_Z],AQ=[1,D,vz,0,[()=>yZ,0]],Dpe=[1,D,yz,0,()=>bZ],jQ=[1,D,wz,0,()=>xZ],Ope=[1,D,Dz,0,[()=>CZ,0]],kpe=[1,D,Bz,0,()=>vZ],Ape=[1,D,sB,0,()=>LZ],jpe=[1,D,TB,0,()=>jZ],Mpe=[1,D,aB,0,()=>$Z],MQ=[1,D,DB,0,()=>tQ],NQ=[1,D,NB,0,()=>iQ],PQ=[1,D,FB,8,()=>gQ],FQ=[1,D,BB,0,()=>cQ],Npe=[1,D,UB,0,()=>pQ],Ppe=[1,D,qB,0,()=>ufe],IQ=[1,D,JB,0,()=>hQ],Fpe=[1,D,XB,0,()=>dfe],LQ=[1,D,tV,0,()=>Tfe],Ipe=[1,D,SV,0,()=>Efe],Lpe=[1,D,CV,0,()=>Ofe],Rpe=[1,D,DV,0,()=>Afe],zpe=[1,D,jV,0,()=>jfe],Bpe=[1,D,PV,0,()=>Mfe],RQ=[1,D,zV,0,()=>Nfe],zQ=[1,D,WV,0,()=>Pfe],Vpe=[1,D,HV,0,()=>Ffe],Hpe=[1,D,RV,0,()=>gQ],Upe=[1,D,JV,0,()=>lZ],BQ=[1,D,eH,0,()=>Bfe],VQ=[1,D,sH,0,()=>zfe],HQ=[1,D,jH,0,()=>Gfe],Wpe=[1,D,pH,0,()=>qfe],Gpe=[1,D,_H,0,()=>Jfe],Kpe=[1,D,yH,0,()=>Yfe],qpe=[1,D,hH,0,()=>tpe],Jpe=[1,D,kH,0,()=>npe],UQ=[1,D,IH,0,()=>ipe],Ype=[1,D,WH,0,()=>xQ],WQ=[1,D,VH,0,()=>ape],Xpe=[1,D,GH,0,()=>gQ],Zpe=[1,D,TH,0,()=>cpe],GQ=[1,D,uU,0,()=>lpe],KQ=[1,D,XH,0,()=>upe],qQ=[1,D,dU,0,[()=>CQ,0]],Qpe=[1,D,oU,0,()=>mpe],$pe=[1,D,cU,0,()=>hpe],eme=[1,D,QH,0,()=>_pe],tme=[1,D,yU,0,()=>vpe],nme=[1,D,SU,0,()=>Cpe],JQ=[1,D,wU,0,()=>Spe],YQ=[1,D,EU,0,()=>wpe],rme=[9,D,hz,0,()=>TZ,()=>EZ],XQ=[9,D,Lz,0,()=>DZ,()=>OZ],ime=[9,D,nB,2,()=>kZ,()=>AZ],ame=[9,D,Yz,0,()=>zZ,()=>BZ],ome=[9,D,yB,0,()=>VZ,()=>HZ],sme=[9,D,rB,0,()=>UZ,()=>WZ],cme=[9,D,Xz,0,()=>GZ,()=>KZ],lme=[9,D,pB,0,()=>qZ,()=>JZ],ume=[9,D,bB,0,()=>YZ,()=>XZ],dme=[9,D,mB,0,()=>ZZ,()=>QZ],fme=[9,D,cV,0,()=>hfe,()=>gfe],pme=[9,D,rV,0,()=>_fe,()=>vfe],mme=[9,D,fV,0,()=>yfe,()=>bfe],hme=[9,D,gV,0,()=>xfe,()=>Sfe],gme=[9,D,hV,0,()=>Cfe,()=>wfe],_me=[9,D,nH,0,()=>Ife,()=>Lfe],vme=[9,D,tH,0,()=>Vfe,()=>Hfe],yme=[9,D,zH,0,()=>ope,()=>spe],bme=[9,D,mU,0,()=>ype,()=>bpe],xme=e=>({apiVersion:`2014-11-13`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??yR,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??QL,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Kt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecs`,errorTypeRegistries:oZ,xmlNamespace:`http://ecs.amazonaws.com/doc/2014-11-13/`,version:`2014-11-13`,serviceTarget:`AmazonEC2ContainerServiceV20141113`},serviceId:e?.serviceId??`ECS`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),Sme=e=>{let t=Se(e),n=()=>t().then(Ve),r=xme(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:nR.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cme=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wme=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tme=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),Cme(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),wme(n))},Eme=class extends Te{config;constructor(...[e]){let t=Sme(e||{});super(t),this.initConfig=t;let n=Tme($L(Ue(ve(Ee(Le(ke(eR(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:XL,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},Dme=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ome(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var kme=e=>{let t=[];switch(e.operation){default:t.push(Ome(e))}return t},Ame=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},jme=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),Mme={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Nme={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},ZQ=`ref`,QQ=-1,$Q=!0,e$=`isSet`,t$=`PartitionResult`,n$=`booleanEquals`,r$=`getAttr`,i$=`stringEquals`,a$={[ZQ]:`Endpoint`},o$={[ZQ]:t$},s$={fn:r$,argv:[o$,`name`]},c$={},l$=[{[ZQ]:`Region`}],u$={conditions:[[e$,[a$]],[e$,l$],[`aws.partition`,l$,t$],[n$,[{[ZQ]:`UseFIPS`},$Q]],[n$,[{[ZQ]:`UseDualStack`},$Q]],[n$,[{fn:r$,argv:[o$,`supportsDualStack`]},$Q]],[n$,[{fn:r$,argv:[o$,`supportsFIPS`]},$Q]],[i$,[s$,`aws`]],[i$,[s$,`aws-us-gov`]]],results:[[QQ],[QQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[QQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[a$,c$],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,c$],[QQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,c$],[`https://eks.{Region}.amazonaws.com`,c$],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,c$],[QQ,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,c$],[QQ,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,c$],[QQ,`Invalid Configuration: Missing Region`]]},Pme=2,Fme=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),Ime=Je.from(Fme,Pme,u$.conditions,u$.results),Lme=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Rme=(e,t={})=>Lme.get(e,()=>Ge(Ime,{endpointParams:e,logger:t.logger}));rt.aws=fe;var d$=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},zme=class e extends d${name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bme=class e extends d${name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Vme=class e extends d${name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Hme=class e extends d${name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Ume=class e extends d${name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Wme=class e extends d${name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Gme=class e extends d${name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},Kme=class e extends d${name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},qme=class e extends d${name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},Jme=class e extends d${name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yme=class e extends d${name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},Xme=class e extends d${name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zme=class e extends d${name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qme=class e extends d${name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$me=class e extends d${name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},ehe=`Addon`,the=`AssociatedAccessPolicy`,nhe=`AssociatedAccessPoliciesList`,rhe=`AssociateAccessPolicyRequest`,ihe=`AssociateAccessPolicyResponse`,ahe=`AssociateAccessPolicy`,ohe=`AccessConfigResponse`,she=`AccessDeniedException`,che=`AccessEntry`,lhe=`AddonHealth`,uhe=`AddonInfo`,dhe=`AddonIssueList`,fhe=`AddonIssue`,phe=`AddonNamespaceConfigRequest`,mhe=`AddonNamespaceConfigResponse`,hhe=`AccessPolicy`,ghe=`AddonPodIdentityAssociations`,_he=`AddonPodIdentityAssociationsList`,vhe=`AccessPoliciesList`,yhe=`AccessScope`,bhe=`AutoScalingGroup`,xhe=`AutoScalingGroupList`,She=`AddonVersionInfo`,Che=`AddonVersionInfoList`,whe=`Addons`,The=`BadRequestException`,Ehe=`BlockStorage`,Dhe=`CreateAddon`,Ohe=`CreateAccessConfigRequest`,khe=`CreateAccessEntry`,Ahe=`CreateAccessEntryRequest`,jhe=`CreateAccessEntryResponse`,Mhe=`CreateAddonRequest`,Nhe=`CreateAddonResponse`,Phe=`ComputeConfigRequest`,Fhe=`ComputeConfigResponse`,Ihe=`ConnectorConfigResponse`,Lhe=`CreateClusterRequest`,Rhe=`CreateClusterResponse`,zhe=`CreateCluster`,Bhe=`ClientException`,Vhe=`ClusterHealth`,Hhe=`ClusterIssueList`,Uhe=`ClusterIssue`,Whe=`CreateNodegroup`,Ghe=`CreateNodegroupRequest`,Khe=`CreateNodegroupResponse`,qhe=`ControlPlanePlacementRequest`,Jhe=`ControlPlanePlacementResponse`,Yhe=`ControlPlaneScalingConfig`,Xhe=`Certificate`,Zhe=`Cluster`,Qhe=`Compatibility`,$he=`Compatibilities`,ege=`DeleteAddon`,tge=`DeleteAccessEntry`,nge=`DeleteAccessEntryRequest`,rge=`DeleteAccessEntryResponse`,ige=`DescribeAccessEntryRequest`,age=`DescribeAccessEntryResponse`,oge=`DescribeAccessEntry`,sge=`DisassociateAccessPolicy`,cge=`DisassociateAccessPolicyRequest`,lge=`DisassociateAccessPolicyResponse`,uge=`DeleteAddonRequest`,dge=`DeleteAddonResponse`,fge=`DescribeAddonRequest`,pge=`DescribeAddonResponse`,mge=`DescribeAddonVersions`,hge=`DescribeAddonVersionsRequest`,gge=`DescribeAddonVersionsResponse`,_ge=`DescribeAddon`,vge=`DeleteClusterRequest`,yge=`DeleteClusterResponse`,bge=`DescribeClusterRequest`,xge=`DescribeClusterResponse`,Sge=`DeleteCluster`,Cge=`DescribeCluster`,wge=`DeleteNodegroup`,Tge=`DeleteNodegroupRequest`,Ege=`DeleteNodegroupResponse`,Dge=`DescribeNodegroupRequest`,Oge=`DescribeNodegroupResponse`,kge=`DescribeNodegroup`,Age=`EncryptionConfig`,jge=`EncryptionConfigList`,Mge=`ErrorDetail`,Nge=`ErrorDetails`,Pge=`ElasticLoadBalancing`,Fge=`EtcdPlacementRequest`,Ige=`EtcdPlacementResponse`,Lge=`Identity`,Rge=`IssueList`,zge=`InvalidParameterException`,Bge=`InvalidRequestException`,Vge=`InvalidStateException`,Hge=`Issue`,Uge=`KubernetesNetworkConfigRequest`,Wge=`KubernetesNetworkConfigResponse`,Gge=`ListAddons`,Kge=`ListAssociatedAccessPolicies`,qge=`ListAssociatedAccessPoliciesRequest`,Jge=`ListAssociatedAccessPoliciesResponse`,Yge=`ListAccessEntries`,Xge=`ListAccessEntriesRequest`,Zge=`ListAccessEntriesResponse`,Qge=`ListAccessPolicies`,$ge=`ListAccessPoliciesRequest`,e_e=`ListAccessPoliciesResponse`,t_e=`ListAddonsRequest`,n_e=`ListAddonsResponse`,r_e=`ListClustersRequest`,i_e=`ListClustersResponse`,a_e=`ListClusters`,o_e=`ListNodegroups`,s_e=`ListNodegroupsRequest`,c_e=`ListNodegroupsResponse`,l_e=`LogSetup`,u_e=`LogSetups`,d_e=`LaunchTemplateSpecification`,f_e=`Logging`,p_e=`MarketplaceInformation`,m_e=`Nodegroup`,h_e=`NotFoundException`,g_e=`NodegroupHealth`,__e=`NodegroupResources`,v_e=`NodeRepairConfig`,y_e=`NodeRepairConfigOverrides`,b_e=`NodeRepairConfigOverridesList`,x_e=`NodegroupScalingConfig`,S_e=`NodegroupUpdateConfig`,C_e=`OutpostConfigRequest`,w_e=`OutpostConfigResponse`,T_e=`OIDC`,E_e=`Provider`,D_e=`RemoteAccessConfig`,O_e=`ResourceInUseException`,k_e=`ResourceLimitExceededException`,A_e=`RemoteNetworkConfigRequest`,j_e=`RemoteNetworkConfigResponse`,M_e=`ResourceNotFoundException`,N_e=`RemoteNodeNetwork`,P_e=`RemoteNodeNetworkList`,F_e=`ResourcePropagationDelayException`,I_e=`RemotePodNetwork`,L_e=`RemotePodNetworkList`,R_e=`StorageConfigRequest`,z_e=`StorageConfigResponse`,B_e=`ServerException`,V_e=`ServiceUnavailableException`,H_e=`Taint`,U_e=`ThrottlingException`,W_e=`Update`,G_e=`UpdateAddon`,K_e=`UpdateAddonRequest`,q_e=`UpdateAddonResponse`,J_e=`UnsupportedAvailabilityZoneException`,Y_e=`UpdateLabelsPayload`,X_e=`UpdateNodegroupConfig`,Z_e=`UpdateNodegroupConfigRequest`,Q_e=`UpdateNodegroupConfigResponse`,$_e=`UpdateNodegroupVersion`,eve=`UpdateNodegroupVersionRequest`,tve=`UpdateNodegroupVersionResponse`,nve=`UpdateParam`,rve=`UpgradePolicyRequest`,ive=`UpgradePolicyResponse`,ave=`UpdateParams`,ove=`UpdateTaintsPayload`,sve=`VpcConfigRequest`,cve=`VpcConfigResponse`,lve=`WarmPoolConfig`,uve=`ZonalShiftConfigRequest`,dve=`ZonalShiftConfigResponse`,f$=`arn`,fve=`addonArn`,pve=`associatedAccessPolicy`,mve=`associatedAccessPolicies`,hve=`associatedAt`,p$=`accessConfig`,gve=`activationCode`,_ve=`activationExpiry`,vve=`accessEntryArn`,m$=`accessEntry`,yve=`accessEntries`,bve=`activationId`,h$=`authenticationMode`,g$=`addonName`,xve=`addOrUpdateLabels`,Sve=`addOrUpdateTaints`,Cve=`accessPolicies`,_$=`associatedPolicyArn`,v$=`accessScope`,wve=`autoScalingGroups`,y$=`amiType`,b$=`addonVersion`,Tve=`addonVersions`,x$=`addon`,S$=`addons`,Eve=`architecture`,C$=`bootstrapClusterCreatorAdminPermissions`,w$=`blockStorage`,Dve=`bootstrapSelfManagedAddons`,T$=`client`,E$=`createdAt`,Ove=`certificateAuthority`,kve=`connectorConfig`,D$=`computeConfig`,Ave=`clusterLogging`,k=`clusterName`,O$=`controlPlaneEgressMode`,k$=`controlPlaneInstanceType`,A$=`controlPlanePlacement`,j$=`controlPlaneScalingConfig`,M$=`clientRequestToken`,jve=`clusterSecurityGroupId`,Mve=`computeTypes`,N$=`capacityType`,P$=`configurationValues`,Nve=`clusterVersion`,F$=`cidrs`,I$=`cluster`,Pve=`clusters`,L$=`code`,Fve=`compatibilities`,Ive=`data`,Lve=`defaultNamespace`,R$=`deletionProtection`,z$=`diskSize`,Rve=`desiredSize`,zve=`defaultVersion`,B$=`error`,V$=`encryptionConfig`,Bve=`errorCode`,H$=`etcdInstanceType`,U$=`elasticLoadBalancing`,Vve=`errorMessage`,W$=`etcdPlacement`,G$=`endpointPublicAccess`,K$=`endpointPrivateAccess`,Hve=`ec2SshKey`,Uve=`effect`,q$=`enabled`,Wve=`endpoint`,Gve=`errors`,J$=`fargateProfileName`,Kve=`force`,Y$=`groupName`,X$=`health`,Z$=`httpError`,Q$=`httpQuery`,$$=`http`,e1=`issues`,t1=`ipFamily`,n1=`instanceTypes`,r1=`id`,qve=`identity`,i1=`include`,Jve=`issuer`,Yve=`key`,Xve=`keyArn`,a1=`kubernetesGroups`,o1=`kubernetesNetworkConfig`,s1=`kubernetesVersion`,c1=`logging`,l1=`launchTemplate`,u1=`labels`,d1=`message`,f1=`modifiedAt`,Zve=`maxGroupPreparedCapacity`,p1=`marketplaceInformation`,Qve=`maxParallelNodesRepairedCount`,$ve=`maxParallelNodesRepairedPercentage`,m1=`maxResults`,eye=`minRepairWaitTimeMins`,h1=`minSize`,tye=`maxSize`,nye=`maxUnavailable`,rye=`maxUnhealthyNodeThresholdCount`,iye=`maxUnhealthyNodeThresholdPercentage`,aye=`maxUnavailablePercentage`,g1=`name`,oye=`nodegroupArn`,_1=`namespaceConfig`,sye=`nodeMonitoringCondition`,v1=`nodegroupName`,y1=`nodePools`,b1=`nodeRole`,x1=`nodeRoleArn`,S1=`nodeRepairConfig`,cye=`nodeRepairConfigOverrides`,C1=`nextToken`,lye=`nodeUnhealthyReason`,uye=`namespaces`,w1=`namespace`,T1=`nodegroup`,dye=`nodegroups`,E1=`owner`,D1=`outpostArns`,O1=`outpostConfig`,fye=`oidc`,k1=`owners`,A1=`publisher`,j1=`principalArn`,M1=`publicAccessCidrs`,N1=`policyArn`,pye=`productId`,P1=`podIdentityAssociations`,mye=`poolState`,hye=`productUrl`,gye=`platformVersion`,_ye=`platformVersions`,vye=`params`,F1=`provider`,I1=`preserve`,L1=`publishers`,R1=`roleArn`,yye=`remoteAccessSecurityGroup`,z1=`remoteAccess`,bye=`repairAction`,xye=`requiresConfiguration`,B1=`resolveConflicts`,V1=`resourceIds`,Sye=`requiresIamPermissions`,Cye=`removeLabels`,H1=`remoteNetworkConfig`,U1=`remoteNodeNetworks`,wye=`reuseOnScaleIn`,W1=`remotePodNetworks`,Tye=`removeTaints`,G1=`releaseVersion`,K1=`resourcesVpcConfig`,q1=`resources`,J1=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,Eye=`serviceAccount`,Y1=`serviceAccountRoleArn`,X1=`storageConfig`,Z1=`scalingConfig`,Q1=`securityGroupIds`,$1=`subscriptionId`,e0=`serviceIpv4Cidr`,Dye=`serviceIpv6Cidr`,t0=`subnetIds`,n0=`spreadLevel`,Oye=`sourceSecurityGroups`,r0=`supportType`,i0=`server`,a0=`status`,o0=`subnets`,s0=`tags`,kye=`taintsList`,c0=`taints`,Aye=`tier`,l0=`type`,u0=`types`,d0=`username`,f0=`updateConfig`,p0=`upgradePolicy`,jye=`updateStrategy`,m0=`update`,h0=`version`,Mye=`vpcId`,Nye=`validZones`,g0=`value`,_0=`warmPoolConfig`,v0=`zonalShiftConfig`,A=`com.amazonaws.eks`,y0=ce.for(J1),Pye=[-3,J1,`EKSServiceException`,0,[],[]];y0.registerError(Pye,d$);var b0=ce.for(A),Fye=[-3,A,she,{[B$]:T$,[Z$]:403},[d1],[0]];b0.registerError(Fye,zme);var Iye=[-3,A,The,{[B$]:T$,[Z$]:400},[d1],[0]];b0.registerError(Iye,Xme);var Lye=[-3,A,Bhe,{[B$]:T$,[Z$]:400},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(Lye,Wme);var Rye=[-3,A,zge,{[B$]:T$,[Z$]:400},[k,v1,J$,g$,$1,d1],[0,0,0,0,0,0]];b0.registerError(Rye,Bme);var zye=[-3,A,Bge,{[B$]:T$,[Z$]:400},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(zye,Vme);var Bye=[-3,A,Vge,{[B$]:T$,[Z$]:400},[k,d1],[0,0]];b0.registerError(Bye,$me);var Vye=[-3,A,h_e,{[B$]:T$,[Z$]:404},[d1],[0]];b0.registerError(Vye,Zme);var Hye=[-3,A,O_e,{[B$]:T$,[Z$]:409},[k,v1,g$,d1],[0,0,0,0]];b0.registerError(Hye,Gme);var Uye=[-3,A,k_e,{[B$]:T$,[Z$]:400},[k,v1,$1,d1],[0,0,0,0]];b0.registerError(Uye,qme);var Wye=[-3,A,M_e,{[B$]:T$,[Z$]:404},[k,v1,J$,g$,$1,d1],[0,0,0,0,0,0]];b0.registerError(Wye,Hme);var Gye=[-3,A,F_e,{[B$]:T$,[Z$]:428},[d1],[0]];b0.registerError(Gye,Qme);var Kye=[-3,A,B_e,{[B$]:i0,[Z$]:500},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(Kye,Ume);var qye=[-3,A,V_e,{[B$]:i0,[Z$]:503},[d1],[0]];b0.registerError(qye,Jme);var Jye=[-3,A,U_e,{[B$]:T$,[Z$]:429},[k,d1],[0,0]];b0.registerError(Jye,Kme);var Yye=[-3,A,J_e,{[B$]:T$,[Z$]:400},[d1,k,v1,Nye],[0,0,0,64]];b0.registerError(Yye,Yme);var Xye=[y0,b0],Zye=[3,A,ohe,0,[C$,h$],[2,0]],x0=[3,A,che,0,[k,j1,a1,vve,E$,f1,s0,d0,l0],[0,0,64,0,4,4,128,0,0]],Qye=[3,A,hhe,0,[g1,f$],[0,0]],S0=[3,A,yhe,0,[l0,uye],[0,64]],C0=[3,A,ehe,0,[g$,k,a0,b$,X$,fve,E$,f1,Y1,s0,A1,E1,p1,P$,P1,_1],[0,0,0,0,()=>$ye,0,4,4,0,128,0,0,()=>j0,0,64,()=>rbe]],$ye=[3,A,lhe,0,[e1],[()=>Wxe]],ebe=[3,A,uhe,0,[g$,l0,Tve,A1,E1,p1,Lve],[0,0,()=>Kxe,0,0,()=>j0,0]],tbe=[3,A,fhe,0,[L$,d1,V1],[0,0,64]],nbe=[3,A,phe,0,[w1],[0]],rbe=[3,A,mhe,0,[w1],[0]],ibe=[3,A,ghe,0,[Eye,R1],[0,0],2],abe=[3,A,She,0,[b$,Eve,Mve,Fve,xye,Sye],[0,64,64,()=>Xxe,2,2]],obe=[3,A,rhe,0,[k,j1,N1,v$],[[0,1],[0,1],0,()=>S0],4],sbe=[3,A,ihe,0,[k,j1,pve],[0,0,()=>w0]],w0=[3,A,the,0,[N1,v$,hve,f1],[0,()=>S0,4,4]],cbe=[3,A,bhe,0,[g1],[0]],T0=[3,A,Ehe,0,[q$],[2]],lbe=[3,A,Xhe,0,[Ive],[0]],E0=[3,A,Zhe,0,[g1,f$,E$,h0,Wve,R1,K1,o1,c1,qve,a0,Ove,M$,gye,s0,V$,kve,r1,X$,O1,p$,p0,v0,H1,D$,X1,R$,j$],[0,0,4,0,0,0,()=>Bxe,()=>exe,()=>A0,()=>Zbe,0,()=>lbe,0,0,128,()=>B0,()=>hbe,0,()=>ube,()=>yxe,()=>Zye,()=>Rxe,()=>Hxe,()=>Sxe,()=>mbe,()=>Exe,2,()=>D0]],ube=[3,A,Vhe,0,[e1],[()=>Yxe]],dbe=[3,A,Uhe,0,[L$,d1,V1],[0,0,64]],fbe=[3,A,Qhe,0,[Nve,_ye,zve],[0,64,2]],pbe=[3,A,Phe,0,[q$,y1,x1],[2,64,0]],mbe=[3,A,Fhe,0,[q$,y1,x1],[2,64,0]],hbe=[3,A,Ihe,0,[bve,gve,_ve,F1,R1],[0,0,4,0,0]],gbe=[3,A,qhe,0,[Y$,n0],[0,0]],_be=[3,A,Jhe,0,[Y$,n0],[0,0]],D0=[3,A,Yhe,0,[Aye],[0]],vbe=[3,A,Ohe,0,[C$,h$],[2,0]],ybe=[3,A,Ahe,0,[k,j1,a1,s0,M$,d0,l0],[[0,1],0,64,128,[0,4],0,0],2],bbe=[3,A,jhe,0,[m$],[()=>x0]],xbe=[3,A,Mhe,0,[k,g$,b$,Y1,B1,M$,s0,P$,P1,_1],[[0,1],0,0,0,0,[0,4],128,0,()=>z0,()=>nbe],2],Sbe=[3,A,Nhe,0,[x$],[()=>C0]],Cbe=[3,A,Lhe,0,[g1,R1,K1,h0,o1,c1,M$,s0,V$,O1,p$,Dve,p0,v0,H1,D$,X1,R$,j$],[0,0,()=>zxe,0,()=>$be,()=>A0,[0,4],128,()=>B0,()=>vxe,()=>vbe,2,()=>Lxe,()=>Vxe,()=>xxe,()=>pbe,()=>Txe,2,()=>D0],3],wbe=[3,A,Rhe,0,[I$],[()=>E0]],Tbe=[3,A,Ghe,0,[k,v1,o0,b1,Z1,z$,n1,y$,z1,u1,c0,s0,M$,l1,f0,S1,N$,h0,G1,_0],[[0,1],0,64,0,()=>N0,1,64,0,()=>I0,128,()=>U0,128,[0,4],()=>k0,()=>P0,()=>F0,0,0,0,()=>R0],4],Ebe=[3,A,Khe,0,[T1],[()=>M0]],Dbe=[3,A,nge,0,[k,j1],[[0,1],[0,1]],2],Obe=[3,A,rge,0,[],[]],kbe=[3,A,uge,0,[k,g$,I1],[[0,1],[0,1],[2,{[Q$]:I1}]],2],Abe=[3,A,dge,0,[x$],[()=>C0]],jbe=[3,A,vge,0,[g1],[[0,1]],1],Mbe=[3,A,yge,0,[I$],[()=>E0]],Nbe=[3,A,Tge,0,[k,v1],[[0,1],[0,1]],2],Pbe=[3,A,Ege,0,[T1],[()=>M0]],Fbe=[3,A,ige,0,[k,j1],[[0,1],[0,1]],2],Ibe=[3,A,age,0,[m$],[()=>x0]],Lbe=[3,A,fge,0,[k,g$],[[0,1],[0,1]],2],Rbe=[3,A,pge,0,[x$],[()=>C0]],zbe=[3,A,hge,0,[s1,m1,C1,g$,u0,L1,k1],[[0,{[Q$]:s1}],[1,{[Q$]:m1}],[0,{[Q$]:C1}],[0,{[Q$]:g$}],[64,{[Q$]:u0}],[64,{[Q$]:L1}],[64,{[Q$]:k1}]]],Bbe=[3,A,gge,0,[S$,C1],[()=>Gxe,0]],Vbe=[3,A,bge,0,[g1],[[0,1]],1],Hbe=[3,A,xge,0,[I$],[()=>E0]],Ube=[3,A,Dge,0,[k,v1],[[0,1],[0,1]],2],Wbe=[3,A,Oge,0,[T1],[()=>M0]],Gbe=[3,A,cge,0,[k,j1,N1],[[0,1],[0,1],[0,1]],3],Kbe=[3,A,lge,0,[],[]],O0=[3,A,Pge,0,[q$],[2]],qbe=[3,A,Age,0,[q1,F1],[64,()=>bxe]],Jbe=[3,A,Mge,0,[Bve,Vve,V1],[0,0,64]],Ybe=[3,A,Fge,0,[n0],[0]],Xbe=[3,A,Ige,0,[n0],[0]],Zbe=[3,A,Lge,0,[fye],[()=>_xe]],Qbe=[3,A,Hge,0,[L$,d1,V1],[0,0,64]],$be=[3,A,Uge,0,[e0,t1,U$],[0,0,()=>O0]],exe=[3,A,Wge,0,[e0,Dye,t1,U$],[0,0,0,()=>O0]],k0=[3,A,d_e,0,[g1,h0,r1],[0,0,0]],txe=[3,A,Xge,0,[k,_$,m1,C1],[[0,1],[0,{[Q$]:_$}],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],nxe=[3,A,Zge,0,[yve,C1],[64,0]],rxe=[3,A,$ge,0,[m1,C1],[[1,{[Q$]:m1}],[0,{[Q$]:C1}]]],ixe=[3,A,e_e,0,[Cve,C1],[()=>Uxe,0]],axe=[3,A,t_e,0,[k,m1,C1],[[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],oxe=[3,A,n_e,0,[S$,C1],[64,0]],sxe=[3,A,qge,0,[k,j1,m1,C1],[[0,1],[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],2],cxe=[3,A,Jge,0,[k,j1,C1,mve],[0,0,0,()=>qxe]],lxe=[3,A,r_e,0,[m1,C1,i1],[[1,{[Q$]:m1}],[0,{[Q$]:C1}],[64,{[Q$]:i1}]]],uxe=[3,A,i_e,0,[Pve,C1],[64,0]],dxe=[3,A,s_e,0,[k,m1,C1],[[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],fxe=[3,A,c_e,0,[dye,C1],[64,0]],A0=[3,A,f_e,0,[Ave],[()=>$xe]],pxe=[3,A,l_e,0,[u0,q$],[64,2]],j0=[3,A,p_e,0,[pye,hye],[0,0]],M0=[3,A,m_e,0,[v1,oye,k,h0,G1,E$,f1,a0,N$,Z1,n1,o0,z1,y$,b1,u1,c0,q1,z$,X$,f0,S1,l1,s0,_0],[0,0,0,0,0,4,4,0,0,()=>N0,64,64,()=>I0,0,0,128,()=>U0,()=>hxe,1,()=>mxe,()=>P0,()=>F0,()=>k0,128,()=>R0]],mxe=[3,A,g_e,0,[e1],[()=>Qxe]],hxe=[3,A,__e,0,[wve,yye],[()=>Jxe,0]],N0=[3,A,x_e,0,[h1,tye,Rve],[1,1,1]],P0=[3,A,S_e,0,[nye,aye,jye],[1,1,0]],F0=[3,A,v_e,0,[q$,rye,iye,Qve,$ve,cye],[2,1,1,1,1,()=>eSe]],gxe=[3,A,y_e,0,[sye,lye,eye,bye],[0,0,1,0]],_xe=[3,A,T_e,0,[Jve],[0]],vxe=[3,A,C_e,0,[D1,k$,A$,H$,W$],[64,0,()=>gbe,0,()=>Ybe],2],yxe=[3,A,w_e,0,[D1,k$,A$,H$,W$],[64,0,()=>_be,0,()=>Xbe],2],bxe=[3,A,E_e,0,[Xve],[0]],I0=[3,A,D_e,0,[Hve,Oye],[0,64]],xxe=[3,A,A_e,0,[U1,W1],[()=>V0,()=>H0]],Sxe=[3,A,j_e,0,[U1,W1],[()=>V0,()=>H0]],Cxe=[3,A,N_e,0,[F$],[64]],wxe=[3,A,I_e,0,[F$],[64]],Txe=[3,A,R_e,0,[w$],[()=>T0]],Exe=[3,A,z_e,0,[w$],[()=>T0]],Dxe=[3,A,H_e,0,[Yve,g0,Uve],[0,0,0]],L0=[3,A,W_e,0,[r1,a0,l0,vye,E$,Gve],[0,0,0,()=>tSe,4,()=>Zxe]],Oxe=[3,A,K_e,0,[k,g$,b$,Y1,B1,M$,P$,P1],[[0,1],[0,1],0,0,0,[0,4],0,()=>z0],2],kxe=[3,A,q_e,0,[m0],[()=>L0]],Axe=[3,A,Y_e,0,[xve,Cye],[128,64]],jxe=[3,A,Z_e,0,[k,v1,u1,c0,Z1,f0,S1,_0,M$],[[0,1],[0,1],()=>Axe,()=>Ixe,()=>N0,()=>P0,()=>F0,()=>R0,[0,4]],2],Mxe=[3,A,Q_e,0,[m0],[()=>L0]],Nxe=[3,A,eve,0,[k,v1,h0,G1,l1,Kve,M$],[[0,1],[0,1],0,0,()=>k0,2,[0,4]],2],Pxe=[3,A,tve,0,[m0],[()=>L0]],Fxe=[3,A,nve,0,[l0,g0],[0,0]],Ixe=[3,A,ove,0,[Sve,Tye],[()=>U0,()=>U0]],Lxe=[3,A,rve,0,[r0],[0]],Rxe=[3,A,ive,0,[r0],[0]],zxe=[3,A,sve,0,[t0,Q1,G$,K$,M1,O$],[64,64,2,2,64,0]],Bxe=[3,A,cve,0,[t0,Q1,jve,Mye,G$,K$,M1,O$],[64,64,0,0,2,2,64,0]],R0=[3,A,lve,0,[q$,h1,Zve,mye,wye],[2,1,1,0,2]],Vxe=[3,A,uve,0,[q$],[2]],Hxe=[3,A,dve,0,[q$],[2]],Uxe=[1,A,vhe,0,()=>Qye],Wxe=[1,A,dhe,0,()=>tbe],z0=[1,A,_he,0,()=>ibe],Gxe=[1,A,whe,0,()=>ebe],Kxe=[1,A,Che,0,()=>abe],qxe=[1,A,nhe,0,()=>w0],Jxe=[1,A,xhe,0,()=>cbe],Yxe=[1,A,Hhe,0,()=>dbe],Xxe=[1,A,$he,0,()=>fbe],B0=[1,A,jge,0,()=>qbe],Zxe=[1,A,Nge,0,()=>Jbe],Qxe=[1,A,Rge,0,()=>Qbe],$xe=[1,A,u_e,0,()=>pxe],eSe=[1,A,b_e,0,()=>gxe],V0=[1,A,P_e,0,()=>Cxe],H0=[1,A,L_e,0,()=>wxe],U0=[1,A,kye,0,()=>Dxe],tSe=[1,A,ave,0,()=>Fxe],nSe=[9,A,ahe,{[$$]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>obe,()=>sbe],rSe=[9,A,khe,{[$$]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>ybe,()=>bbe],iSe=[9,A,Dhe,{[$$]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>xbe,()=>Sbe],aSe=[9,A,zhe,{[$$]:[`POST`,`/clusters`,200]},()=>Cbe,()=>wbe],oSe=[9,A,Whe,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>Tbe,()=>Ebe],sSe=[9,A,tge,{[$$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Dbe,()=>Obe],cSe=[9,A,ege,{[$$]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>kbe,()=>Abe],lSe=[9,A,Sge,{[$$]:[`DELETE`,`/clusters/{name}`,200]},()=>jbe,()=>Mbe],uSe=[9,A,wge,{[$$]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Nbe,()=>Pbe],dSe=[9,A,oge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Fbe,()=>Ibe],fSe=[9,A,_ge,{[$$]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>Lbe,()=>Rbe],pSe=[9,A,mge,{[$$]:[`GET`,`/addons/supported-versions`,200]},()=>zbe,()=>Bbe],mSe=[9,A,Cge,{[$$]:[`GET`,`/clusters/{name}`,200]},()=>Vbe,()=>Hbe],hSe=[9,A,kge,{[$$]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Ube,()=>Wbe],gSe=[9,A,sge,{[$$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>Gbe,()=>Kbe],_Se=[9,A,Yge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>txe,()=>nxe],vSe=[9,A,Qge,{[$$]:[`GET`,`/access-policies`,200]},()=>rxe,()=>ixe],ySe=[9,A,Gge,{[$$]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>axe,()=>oxe],bSe=[9,A,Kge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>sxe,()=>cxe],xSe=[9,A,a_e,{[$$]:[`GET`,`/clusters`,200]},()=>lxe,()=>uxe],SSe=[9,A,o_e,{[$$]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>dxe,()=>fxe],CSe=[9,A,G_e,{[$$]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>Oxe,()=>kxe],wSe=[9,A,X_e,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>jxe,()=>Mxe],TSe=[9,A,$_e,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>Nxe,()=>Pxe],ESe=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Rme,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??kme,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Aee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:Xye,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),DSe=e=>{let t=Se(e),n=()=>t().then(Ve),r=ESe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:Nme.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},OSe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},kSe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ASe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),OSe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),kSe(n))},jSe=class extends Te{config;constructor(...[e]){let t=DSe(e||{});super(t),this.initConfig=t;let n=ASe(Ame(Ue(ve(Ee(Le(ke(jme(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Dme,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},MSe=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function NSe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var PSe=e=>{let t=[];switch(e.operation){default:t.push(NSe(e))}return t},FSe=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},ISe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),LSe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},RSe={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},W0=`ref`,G0=-1,K0=!0,q0=`isSet`,J0=`PartitionResult`,Y0=`booleanEquals`,X0=`getAttr`,Z0={[W0]:`Endpoint`},Q0={[W0]:J0},$0={},e2=[{[W0]:`Region`}],t2={conditions:[[q0,[Z0]],[q0,e2],[`aws.partition`,e2,J0],[Y0,[{[W0]:`UseFIPS`},K0]],[Y0,[{[W0]:`UseDualStack`},K0]],[Y0,[{fn:X0,argv:[Q0,`supportsDualStack`]},K0]],[Y0,[{fn:X0,argv:[Q0,`supportsFIPS`]},K0]],[`stringEquals`,[{fn:X0,argv:[Q0,`name`]},`aws-us-gov`]]],results:[[G0],[G0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[G0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Z0,$0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,$0],[G0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,$0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,$0],[G0,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,$0],[G0,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,$0],[G0,`Invalid Configuration: Missing Region`]]},zSe=2,BSe=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),VSe=Je.from(BSe,zSe,t2.conditions,t2.results),HSe=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),USe=(e,t={})=>HSe.get(e,()=>Ge(VSe,{endpointParams:e,logger:t.logger}));rt.aws=fe;var j=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},WSe=class e extends j{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GSe=class e extends j{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KSe=class e extends j{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qSe=class e extends j{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JSe=class e extends j{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YSe=class e extends j{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XSe=class e extends j{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZSe=class e extends j{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QSe=class e extends j{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Se=class e extends j{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eCe=class e extends j{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tCe=class e extends j{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nCe=class e extends j{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rCe=class e extends j{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iCe=class e extends j{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aCe=class e extends j{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oCe=class e extends j{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sCe=class e extends j{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cCe=class e extends j{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lCe=class e extends j{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uCe=class e extends j{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dCe=class e extends j{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fCe=class e extends j{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pCe=class e extends j{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mCe=class e extends j{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hCe=class e extends j{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gCe=class e extends j{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_Ce=class e extends j{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vCe=class e extends j{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yCe=class e extends j{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bCe=class e extends j{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xCe=class e extends j{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SCe=class e extends j{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CCe=class e extends j{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wCe=class e extends j{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TCe=class e extends j{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ECe=class e extends j{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DCe=class e extends j{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OCe=class e extends j{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kCe=class e extends j{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ACe=class e extends j{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jCe=class e extends j{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MCe=class e extends j{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NCe=class e extends j{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PCe=class e extends j{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FCe=class e extends j{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ICe=class e extends j{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LCe=class e extends j{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RCe=class e extends j{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zCe=class e extends j{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BCe=class e extends j{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VCe=class e extends j{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HCe=class e extends j{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UCe=class e extends j{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WCe=class e extends j{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GCe=class e extends j{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KCe=`Action`,qCe=`AdditionalClaims`,JCe=`AuthenticateCognitoActionConfig`,YCe=`AuthenticateCognitoConfig`,n2=`AnomalyDetection`,XCe=`AuthorizationEndpoint`,r2=`AllocationId`,ZCe=`AllocationIdNotFoundException`,QCe=`ALPNPolicyNotSupportedException`,i2=`AdministrativeOverride`,$Ce=`AuthenticateOidcActionConfig`,ewe=`AuthenticateOidcConfig`,a2=`AlpnPolicy`,o2=`AuthenticationRequestExtraParams`,twe=`AddTags`,nwe=`AddTagsInput`,rwe=`AddTagsOutput`,iwe=`AdvertiseTrustStoreCaNames`,s2=`AvailabilityZone`,awe=`AvailabilityZoneNotSupportedException`,c2=`AvailabilityZones`,l2=`Actions`,u2=`Attributes`,d2=`Certificates`,owe=`CertificateArn`,swe=`CaCertificatesBundleNotFoundException`,cwe=`CapacityDecreaseRequestsLimitExceededException`,lwe=`CanonicalHostedZoneId`,uwe=`ClientId`,dwe=`CertificateList`,fwe=`CreateLoadBalancer`,pwe=`CreateLoadBalancerInput`,mwe=`CreateLoadBalancerOutput`,hwe=`CreateListenerInput`,gwe=`CreateListenerOutput`,_we=`CreateListener`,vwe=`CertificateNotFoundException`,f2=`CustomerOwnedIpv4Pool`,ywe=`CreateRule`,bwe=`CreateRuleInput`,xwe=`CreateRuleOutput`,Swe=`CapacityReservationPendingException`,Cwe=`ClientSecret`,wwe=`ContentType`,Twe=`CreateTargetGroup`,Ewe=`CreateTargetGroupInput`,Dwe=`CreateTargetGroupOutput`,Owe=`CreatedTime`,kwe=`CapacityUnitsLimitExceededException`,Awe=`Certificate`,jwe=`Cipher`,p2=`Ciphers`,Mwe=`Code`,m2=`Conditions`,h2=`Description`,g2=`DefaultActions`,Nwe=`DeleteAssociationSameAccountException`,Pwe=`DeleteListener`,Fwe=`DeleteLoadBalancer`,Iwe=`DescribeLoadBalancerAttributes`,Lwe=`DescribeLoadBalancerAttributesInput`,Rwe=`DescribeLoadBalancerAttributesOutput`,zwe=`DeleteLoadBalancerInput`,Bwe=`DescribeLoadBalancersInput`,Vwe=`DuplicateLoadBalancerNameException`,Hwe=`DeleteLoadBalancerOutput`,Uwe=`DescribeLoadBalancersOutput`,Wwe=`DescribeLoadBalancers`,Gwe=`DuplicateListenerException`,Kwe=`DeleteListenerInput`,qwe=`DescribeListenersInput`,Jwe=`DeleteListenerOutput`,Ywe=`DescribeListenersOutput`,Xwe=`DescribeListeners`,Zwe=`DNSName`,Qwe=`DeleteRule`,$we=`DeleteRuleInput`,eTe=`DescribeRulesInput`,tTe=`DeleteRuleOutput`,nTe=`DescribeRulesOutput`,rTe=`DescribeRules`,iTe=`DurationSeconds`,aTe=`DescribeSSLPolicies`,oTe=`DescribeSSLPoliciesInput`,sTe=`DescribeSSLPoliciesOutput`,cTe=`DeregisterTargets`,lTe=`DeleteTargetGroup`,uTe=`DescribeTargetGroupAttributes`,dTe=`DescribeTargetGroupAttributesInput`,fTe=`DescribeTargetGroupAttributesOutput`,pTe=`DeleteTargetGroupInput`,mTe=`DescribeTargetGroupsInput`,hTe=`DuplicateTargetGroupNameException`,gTe=`DeleteTargetGroupOutput`,_Te=`DescribeTargetGroupsOutput`,vTe=`DescribeTargetGroups`,yTe=`DescribeTargetHealth`,bTe=`DescribeTargetHealthInput`,xTe=`DescribeTargetHealthOutput`,STe=`DeregisterTargetsInput`,CTe=`DescribeTagsInput`,wTe=`DuplicateTagKeysException`,TTe=`DeregisterTargetsOutput`,ETe=`DescribeTagsOutput`,DTe=`DuplicateTrustStoreNameException`,OTe=`DescribeTags`,kTe=`Enabled`,_2=`EnablePrefixForIpv6SourceNat`,v2=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,ATe=`Format`,jTe=`ForwardActionConfig`,MTe=`ForwardConfig`,NTe=`FixedResponseActionConfig`,PTe=`FixedResponseConfig`,FTe=`Field`,ITe=`GrpcCode`,LTe=`Host`,RTe=`HttpCode`,y2=`HealthCheckEnabled`,b2=`HealthCheckIntervalSeconds`,x2=`HealthCheckProtocol`,S2=`HealthCheckPort`,C2=`HealthCheckPath`,w2=`HealthCheckTimeoutSeconds`,zTe=`HostHeaderConfig`,BTe=`HostHeaderConditionConfig`,VTe=`HttpHeaderConditionConfig`,HTe=`HttpHeaderConfig`,UTe=`HttpHeaderName`,T2=`HostHeaderRewriteConfig`,WTe=`HttpRequestMethodConfig`,GTe=`HttpRequestMethodConditionConfig`,E2=`HealthyThresholdCount`,KTe=`HealthUnavailableException`,D2=`Issuer`,qTe=`IpAddress`,O2=`IpAddressType`,JTe=`InvalidCaCertificatesBundleException`,YTe=`IgnoreClientCertificateExpiry`,XTe=`InsufficientCapacityException`,ZTe=`InvalidConfigurationRequestException`,k2=`IsDefault`,QTe=`Ipv4IpamPoolId`,$Te=`InvalidLoadBalancerActionException`,A2=`IpamPools`,j2=`IPv6Address`,eEe=`IncompatibleProtocolsException`,tEe=`InvalidRevocationContentException`,nEe=`InvalidSchemeException`,rEe=`InvalidSubnetException`,iEe=`InvalidSecurityGroupException`,aEe=`InvalidTargetException`,oEe=`Id`,sEe=`Include`,cEe=`JwksEndpoint`,lEe=`JwtValidationActionAdditionalClaim`,uEe=`JwtValidationActionAdditionalClaims`,dEe=`JwtValidationActionConfig`,fEe=`JwtValidationConfig`,M2=`Key`,N2=`Listeners`,P2=`ListenerArn`,pEe=`ListenerArns`,F2=`LoadBalancers`,I2=`LoadBalancerAddresses`,L2=`LoadBalancerArn`,R2=`LoadBalancerArns`,mEe=`LoadBalancerAddress`,hEe=`LoadBalancerAttribute`,gEe=`LoadBalancerAttributes`,_Ee=`LoadBalancerName`,vEe=`LoadBalancerNotFoundException`,yEe=`LoadBalancerState`,bEe=`LoadBalancerType`,xEe=`LoadBalancer`,SEe=`ListenerNotFoundException`,CEe=`Listener`,M=`Message`,z2=`MutualAuthentication`,wEe=`MutualAuthenticationAttributes`,TEe=`MessageBody`,EEe=`MitigationInEffect`,DEe=`ModifyListener`,OEe=`ModifyLoadBalancerAttributes`,kEe=`ModifyLoadBalancerAttributesInput`,AEe=`ModifyLoadBalancerAttributesOutput`,jEe=`ModifyListenerInput`,MEe=`ModifyListenerOutput`,NEe=`ModifyRule`,PEe=`ModifyRuleInput`,FEe=`ModifyRuleOutput`,IEe=`ModifyTargetGroupAttributes`,LEe=`ModifyTargetGroupAttributesInput`,REe=`ModifyTargetGroupAttributesOutput`,B2=`Matcher`,V2=`Marker`,zEe=`Mode`,H2=`Name`,U2=`NextMarker`,W2=`Names`,BEe=`Order`,VEe=`OutpostId`,HEe=`OperationNotPermittedException`,G2=`OnUnauthenticatedRequest`,K2=`Priority`,q2=`PrivateIPv4Address`,UEe=`PriorityInUseException`,WEe=`PathPatternConfig`,GEe=`PathPatternConditionConfig`,KEe=`PriorRequestNotCompleteException`,J2=`PageSize`,Y2=`ProtocolVersion`,qEe=`Path`,X2=`Port`,Z2=`Protocol`,JEe=`Query`,YEe=`QueryStringConfig`,XEe=`QueryStringConditionConfig`,ZEe=`QuicServerId`,QEe=`QueryStringKeyValuePair`,$Ee=`QueryStringKeyValuePairList`,Q2=`Reason`,$2=`ResourceArns`,eDe=`RedirectActionConfig`,tDe=`ResourceArn`,e4=`RuleArn`,nDe=`RuleArns`,rDe=`RedirectConfig`,iDe=`RewriteConfigList`,aDe=`RuleConditionList`,oDe=`RevocationContentNotFoundException`,sDe=`RewriteConfig`,cDe=`RuleCondition`,lDe=`RevocationIdNotFoundException`,uDe=`ResourceInUseException`,dDe=`ResourceNotFoundException`,fDe=`RuleNotFoundException`,pDe=`RegisterTargetsInput`,mDe=`RemoveTagsInput`,hDe=`RuleTransformList`,gDe=`RegisterTargetsOutput`,_De=`RemoveTagsOutput`,vDe=`ResetTransforms`,yDe=`RegisterTargets`,bDe=`RemoveTags`,xDe=`RuleTransform`,t4=`RegexValues`,SDe=`Result`,CDe=`Regex`,wDe=`Replace`,n4=`Rewrites`,r4=`Rules`,TDe=`Rule`,i4=`State`,a4=`StatusCode`,o4=`SessionCookieName`,s4=`SecurityGroups`,EDe=`SecurityGroupIds`,c4=`SubnetId`,DDe=`SourceIpConfig`,ODe=`SourceIpConditionConfig`,kDe=`SupportedLoadBalancerTypes`,l4=`SubnetMappings`,ADe=`SubnetMapping`,jDe=`SubnetNotFoundException`,MDe=`SourceNatIpv6Prefixes`,NDe=`SourceNatIpv6Prefix`,u4=`SslPolicy`,d4=`SslPolicies`,PDe=`SslProtocols`,FDe=`SetSubnets`,IDe=`SetSecurityGroups`,LDe=`SetSecurityGroupsInput`,RDe=`SetSecurityGroupsOutput`,zDe=`SetSubnetsInput`,BDe=`SSLPolicyNotFoundException`,VDe=`SetSubnetsOutput`,f4=`SessionTimeout`,p4=`Scope`,m4=`Scheme`,h4=`Subnets`,g4=`Type`,_4=`TargetControlPort`,v4=`TagDescriptions`,HDe=`TagDescription`,UDe=`TargetDescription`,WDe=`TargetDescriptions`,GDe=`TokenEndpoint`,y4=`TargetGroups`,b4=`TargetGroupArn`,KDe=`TargetGroupAssociationLimitException`,qDe=`TargetGroupArns`,JDe=`TargetGroupAttribute`,YDe=`TargetGroupAttributes`,XDe=`TargetGroupList`,ZDe=`TargetGroupName`,QDe=`TargetGroupNotFoundException`,x4=`TargetGroupStickinessConfig`,$De=`TargetGroupTuple`,eOe=`TargetGroup`,S4=`TargetHealth`,C4=`TargetHealthDescriptions`,tOe=`TargetHealthDescription`,nOe=`TagKeys`,rOe=`TagList`,iOe=`TooManyActionsException`,aOe=`TooManyCertificatesException`,oOe=`TooManyLoadBalancersException`,sOe=`TooManyListenersException`,cOe=`TooManyRulesException`,lOe=`TooManyRegistrationsForTargetIdException`,uOe=`TooManyTagsException`,dOe=`TooManyTargetsException`,fOe=`TooManyTargetGroupsException`,pOe=`TooManyTrustStoresException`,mOe=`TooManyTrustStoreRevocationEntriesException`,hOe=`TooManyUniqueTargetGroupsPerLoadBalancerException`,gOe=`TrustStoreArn`,_Oe=`TrustStoreAssociationNotFoundException`,vOe=`TrustStoreAssociationStatus`,yOe=`TrustStoreInUseException`,bOe=`TrustStoreNotFoundException`,xOe=`TrustStoreNotReadyException`,w4=`TargetType`,T4=`Tags`,SOe=`Tag`,E4=`Targets`,COe=`Target`,D4=`Transforms`,wOe=`UseExistingClientSecret`,TOe=`UserInfoEndpoint`,EOe=`UserPoolArn`,DOe=`UserPoolClientId`,OOe=`UserPoolDomain`,kOe=`UnsupportedProtocolException`,O4=`UrlRewriteConfig`,k4=`UnhealthyThresholdCount`,A4=`Values`,j4=`VpcId`,M4=`Value`,AOe=`Weight`,jOe=`ZoneName`,N=`awsQueryError`,P=`client`,F=`error`,I=`httpError`,N4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,P4=`server`,L=`com.amazonaws.elasticloadbalancingv2`,F4=ce.for(N4),MOe=[-3,N4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];F4.registerError(MOe,j);var R=ce.for(L),NOe=[-3,L,ZCe,{[N]:[`AllocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(NOe,nCe);var POe=[-3,L,QCe,{[N]:[`ALPNPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(POe,rCe);var FOe=[-3,L,awe,{[N]:[`AvailabilityZoneNotSupported`,400],[F]:P,[I]:400},[M],[0]];R.registerError(FOe,iCe);var IOe=[-3,L,swe,{[N]:[`CaCertificatesBundleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(IOe,aCe);var LOe=[-3,L,cwe,{[N]:[`CapacityDecreaseRequestLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(LOe,oCe);var ROe=[-3,L,Swe,{[N]:[`CapacityReservationPending`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ROe,sCe);var zOe=[-3,L,kwe,{[N]:[`CapacityUnitsLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(zOe,cCe);var BOe=[-3,L,vwe,{[N]:[`CertificateNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(BOe,WSe);var VOe=[-3,L,Nwe,{[N]:[`DeleteAssociationSameAccount`,400],[F]:P,[I]:400},[M],[0]];R.registerError(VOe,LCe);var HOe=[-3,L,Gwe,{[N]:[`DuplicateListener`,400],[F]:P,[I]:400},[M],[0]];R.registerError(HOe,lCe);var UOe=[-3,L,Vwe,{[N]:[`DuplicateLoadBalancerName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(UOe,SCe);var WOe=[-3,L,wTe,{[N]:[`DuplicateTagKeys`,400],[F]:P,[I]:400},[M],[0]];R.registerError(WOe,qSe);var GOe=[-3,L,hTe,{[N]:[`DuplicateTargetGroupName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(GOe,NCe);var KOe=[-3,L,DTe,{[N]:[`DuplicateTrustStoreName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(KOe,PCe);var qOe=[-3,L,KTe,{[N]:[`HealthUnavailable`,500],[F]:P4,[I]:500},[M],[0]];R.registerError(qOe,VCe);var JOe=[-3,L,eEe,{[N]:[`IncompatibleProtocols`,400],[F]:P,[I]:400},[M],[0]];R.registerError(JOe,uCe);var YOe=[-3,L,XTe,{[N]:[`InsufficientCapacity`,500],[F]:P4,[I]:500},[M],[0]];R.registerError(YOe,WCe);var XOe=[-3,L,JTe,{[N]:[`InvalidCaCertificatesBundle`,400],[F]:P,[I]:400},[M],[0]];R.registerError(XOe,FCe);var ZOe=[-3,L,ZTe,{[N]:[`InvalidConfigurationRequest`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ZOe,dCe);var QOe=[-3,L,$Te,{[N]:[`InvalidLoadBalancerAction`,400],[F]:P,[I]:400},[M],[0]];R.registerError(QOe,fCe);var $Oe=[-3,L,tEe,{[N]:[`InvalidRevocationContent`,400],[F]:P,[I]:400},[M],[0]];R.registerError($Oe,$Se);var eke=[-3,L,nEe,{[N]:[`InvalidScheme`,400],[F]:P,[I]:400},[M],[0]];R.registerError(eke,CCe);var tke=[-3,L,iEe,{[N]:[`InvalidSecurityGroup`,400],[F]:P,[I]:400},[M],[0]];R.registerError(tke,wCe);var nke=[-3,L,rEe,{[N]:[`InvalidSubnet`,400],[F]:P,[I]:400},[M],[0]];R.registerError(nke,TCe);var rke=[-3,L,aEe,{[N]:[`InvalidTarget`,400],[F]:P,[I]:400},[M],[0]];R.registerError(rke,BCe);var ike=[-3,L,SEe,{[N]:[`ListenerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ike,GSe);var ake=[-3,L,vEe,{[N]:[`LoadBalancerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ake,JSe);var oke=[-3,L,HEe,{[N]:[`OperationNotPermitted`,400],[F]:P,[I]:400},[M],[0]];R.registerError(oke,ECe);var ske=[-3,L,UEe,{[N]:[`PriorityInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ske,ACe);var cke=[-3,L,KEe,{[N]:[`PriorRequestNotComplete`,429],[F]:P,[I]:429},[M],[0]];R.registerError(cke,GCe);var lke=[-3,L,uDe,{[N]:[`ResourceInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(lke,DCe);var uke=[-3,L,dDe,{[N]:[`ResourceNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(uke,UCe);var dke=[-3,L,oDe,{[N]:[`RevocationContentNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(dke,eCe);var fke=[-3,L,lDe,{[N]:[`RevocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(fke,HCe);var pke=[-3,L,fDe,{[N]:[`RuleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(pke,YSe);var mke=[-3,L,BDe,{[N]:[`SSLPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(mke,pCe);var hke=[-3,L,jDe,{[N]:[`SubnetNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(hke,OCe);var gke=[-3,L,KDe,{[N]:[`TargetGroupAssociationLimit`,400],[F]:P,[I]:400},[M],[0]];R.registerError(gke,mCe);var _ke=[-3,L,QDe,{[N]:[`TargetGroupNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(_ke,XSe);var vke=[-3,L,iOe,{[N]:[`TooManyActions`,400],[F]:P,[I]:400},[M],[0]];R.registerError(vke,hCe);var yke=[-3,L,aOe,{[N]:[`TooManyCertificates`,400],[F]:P,[I]:400},[M],[0]];R.registerError(yke,KSe);var bke=[-3,L,sOe,{[N]:[`TooManyListeners`,400],[F]:P,[I]:400},[M],[0]];R.registerError(bke,gCe);var xke=[-3,L,oOe,{[N]:[`TooManyLoadBalancers`,400],[F]:P,[I]:400},[M],[0]];R.registerError(xke,kCe);var Ske=[-3,L,lOe,{[N]:[`TooManyRegistrationsForTargetId`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Ske,_Ce);var Cke=[-3,L,cOe,{[N]:[`TooManyRules`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Cke,jCe);var wke=[-3,L,uOe,{[N]:[`TooManyTags`,400],[F]:P,[I]:400},[M],[0]];R.registerError(wke,ZSe);var Tke=[-3,L,fOe,{[N]:[`TooManyTargetGroups`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Tke,MCe);var Eke=[-3,L,dOe,{[N]:[`TooManyTargets`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Eke,vCe);var Dke=[-3,L,mOe,{[N]:[`TooManyTrustStoreRevocationEntries`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Dke,tCe);var Oke=[-3,L,pOe,{[N]:[`TooManyTrustStores`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Oke,ICe);var kke=[-3,L,hOe,{[N]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[F]:P,[I]:400},[M],[0]];R.registerError(kke,yCe);var Ake=[-3,L,_Oe,{[N]:[`AssociationNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Ake,RCe);var jke=[-3,L,yOe,{[N]:[`TrustStoreInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(jke,zCe);var Mke=[-3,L,bOe,{[N]:[`TrustStoreNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Mke,QSe);var Nke=[-3,L,xOe,{[N]:[`TrustStoreNotReady`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Nke,bCe);var Pke=[-3,L,kOe,{[N]:[`UnsupportedProtocol`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Pke,xCe);var Fke=[F4,R],Ike=[3,L,KCe,0,[g4,b4,ewe,YCe,BEe,rDe,PTe,MTe,fEe],[0,0,()=>Hke,()=>Vke,1,()=>QAe,()=>OAe,()=>kAe,()=>FAe],1],Lke=[3,L,nwe,0,[$2,T4],[64,()=>Z4],2],Rke=[3,L,rwe,0,[],[]],zke=[3,L,i2,0,[i4,Q2,h2],[0,0,0]],Bke=[3,L,n2,0,[SDe,EEe],[0,0]],Vke=[3,L,JCe,0,[EOe,DOe,OOe,o4,p4,f4,o2,G2],[0,0,0,0,0,1,128,0],3],Hke=[3,L,$Ce,0,[D2,XCe,GDe,TOe,uwe,Cwe,o4,p4,f4,o2,G2,wOe],[0,0,0,0,0,0,0,0,1,128,0,2],5],Uke=[3,L,s2,0,[jOe,c4,VEe,I2,MDe],[0,0,0,()=>Tje,64]],Wke=[3,L,Awe,0,[owe,k2],[0,2]],Gke=[3,L,jwe,0,[H2,K2],[0,1]],Kke=[3,L,hwe,0,[L2,g2,Z2,X2,u4,d2,a2,T4,z2],[0,()=>B4,0,1,0,()=>H4,64,()=>Z4,()=>R4],2],qke=[3,L,gwe,0,[N2],[()=>U4]],Jke=[3,L,pwe,0,[H2,h4,l4,s4,m4,T4,g4,O2,f2,_2,A2],[0,64,()=>X4,64,0,()=>Z4,0,0,0,0,()=>I4],1],Yke=[3,L,mwe,0,[F2],[()=>G4]],Xke=[3,L,bwe,0,[P2,m2,K2,l2,T4,D4],[0,()=>q4,1,()=>B4,()=>Z4,()=>Y4],4],Zke=[3,L,xwe,0,[r4],[()=>J4]],Qke=[3,L,Ewe,0,[H2,Z2,Y2,X2,j4,x2,S2,y2,C2,b2,w2,E2,k4,B2,w4,T4,O2,_4],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>L4,0,()=>Z4,0,1],1],$ke=[3,L,Dwe,0,[y4],[()=>e3]],eAe=[3,L,Kwe,0,[P2],[0],1],tAe=[3,L,Jwe,0,[],[]],nAe=[3,L,zwe,0,[L2],[0],1],rAe=[3,L,Hwe,0,[],[]],iAe=[3,L,$we,0,[e4],[0],1],aAe=[3,L,tTe,0,[],[]],oAe=[3,L,pTe,0,[b4],[0],1],sAe=[3,L,gTe,0,[],[]],cAe=[3,L,STe,0,[b4,E4],[0,()=>Q4],2],lAe=[3,L,TTe,0,[],[]],uAe=[3,L,qwe,0,[L2,pEe,V2,J2],[0,64,0,1]],dAe=[3,L,Ywe,0,[N2,U2],[()=>U4,0]],fAe=[3,L,Lwe,0,[L2],[0],1],pAe=[3,L,Rwe,0,[u2],[()=>W4]],mAe=[3,L,Bwe,0,[R2,W2,V2,J2],[64,64,0,1]],hAe=[3,L,Uwe,0,[F2,U2],[()=>G4,0]],gAe=[3,L,eTe,0,[P2,nDe,V2,J2],[0,64,0,1]],_Ae=[3,L,nTe,0,[r4,U2],[()=>J4,0]],vAe=[3,L,oTe,0,[W2,V2,J2,bEe],[64,0,1,0]],yAe=[3,L,sTe,0,[d4,U2],[()=>Dje,0]],bAe=[3,L,CTe,0,[$2],[64],1],xAe=[3,L,ETe,0,[v4],[()=>Oje]],SAe=[3,L,dTe,0,[b4],[0],1],CAe=[3,L,fTe,0,[u2],[()=>$4]],wAe=[3,L,mTe,0,[L2,qDe,W2,V2,J2],[0,64,64,0,1]],TAe=[3,L,_Te,0,[y4,U2],[()=>e3,0]],EAe=[3,L,bTe,0,[b4,E4,sEe],[0,()=>Q4,64],1],DAe=[3,L,xTe,0,[C4],[()=>Aje]],OAe=[3,L,NTe,0,[a4,TEe,wwe],[0,0,0],1],kAe=[3,L,jTe,0,[y4,x4],[()=>kje,()=>vje]],AAe=[3,L,BTe,0,[A4,t4],[64,64]],jAe=[3,L,T2,0,[n4],[()=>K4]],MAe=[3,L,VTe,0,[UTe,A4,t4],[0,64,64]],NAe=[3,L,GTe,0,[A4],[64]],I4=[3,L,A2,0,[QTe],[0]],PAe=[3,L,lEe,0,[ATe,H2,A4],[0,0,64],3],FAe=[3,L,dEe,0,[cEe,D2,qCe],[0,0,()=>wje],2],IAe=[3,L,CEe,0,[P2,L2,X2,Z2,d2,u4,g2,a2,z2],[0,0,1,0,()=>H4,0,()=>B4,64,()=>R4]],LAe=[3,L,xEe,0,[L2,Zwe,lwe,Owe,_Ee,m4,j4,i4,g4,c2,s4,O2,f2,v2,_2,A2],[0,0,0,4,0,0,0,()=>BAe,0,()=>V4,64,0,0,0,0,()=>I4]],RAe=[3,L,mEe,0,[qTe,r2,q2,j2],[0,0,0,0]],zAe=[3,L,hEe,0,[M2,M4],[0,0]],BAe=[3,L,yEe,0,[Mwe,Q2],[0,0]],L4=[3,L,B2,0,[RTe,ITe],[0,0]],VAe=[3,L,jEe,0,[P2,X2,Z2,u4,d2,g2,a2,z2],[0,1,0,0,()=>H4,()=>B4,64,()=>R4],1],HAe=[3,L,MEe,0,[N2],[()=>U4]],UAe=[3,L,kEe,0,[L2,u2],[0,()=>W4],2],WAe=[3,L,AEe,0,[u2],[()=>W4]],GAe=[3,L,PEe,0,[e4,m2,l2,D4,vDe],[0,()=>q4,()=>B4,()=>Y4,2],1],KAe=[3,L,FEe,0,[r4],[()=>J4]],qAe=[3,L,LEe,0,[b4,u2],[0,()=>$4],2],JAe=[3,L,REe,0,[u2],[()=>$4]],R4=[3,L,wEe,0,[zEe,gOe,YTe,vOe,iwe],[0,0,2,0,0]],YAe=[3,L,GEe,0,[A4,t4],[64,64]],XAe=[3,L,XEe,0,[A4],[()=>Eje]],ZAe=[3,L,QEe,0,[M2,M4],[0,0]],QAe=[3,L,eDe,0,[a4,Z2,X2,LTe,qEe,JEe],[0,0,0,0,0,0],1],$Ae=[3,L,pDe,0,[b4,E4],[0,()=>Q4],2],eje=[3,L,gDe,0,[],[]],tje=[3,L,mDe,0,[$2,nOe],[64,64],2],nje=[3,L,_De,0,[],[]],rje=[3,L,sDe,0,[CDe,wDe],[0,0],2],ije=[3,L,TDe,0,[e4,K2,m2,l2,k2,D4],[0,0,()=>q4,()=>B4,2,()=>Y4]],aje=[3,L,cDe,0,[FTe,A4,zTe,WEe,HTe,YEe,WTe,DDe,t4],[0,64,()=>AAe,()=>YAe,()=>MAe,()=>XAe,()=>NAe,()=>dje,64]],oje=[3,L,xDe,0,[g4,T2,O4],[0,()=>jAe,()=>Sje],1],sje=[3,L,LDe,0,[L2,s4,v2],[0,64,0],2],cje=[3,L,RDe,0,[EDe,v2],[64,0]],lje=[3,L,zDe,0,[L2,h4,l4,O2,_2],[0,64,()=>X4,0,0],1],uje=[3,L,VDe,0,[c2,O2,_2],[()=>V4,0,0]],dje=[3,L,ODe,0,[A4],[64]],fje=[3,L,u4,0,[PDe,p2,H2,kDe],[64,()=>Cje,0,64]],pje=[3,L,ADe,0,[c4,r2,q2,j2,NDe],[0,0,0,0,0]],mje=[3,L,SOe,0,[M2,M4],[0,0],1],hje=[3,L,HDe,0,[tDe,T4],[0,()=>Z4]],z4=[3,L,UDe,0,[oEe,X2,s2,ZEe],[0,1,0,0],1],gje=[3,L,eOe,0,[b4,ZDe,Z2,X2,j4,x2,S2,y2,b2,w2,E2,k4,C2,B2,R2,w4,Y2,O2,_4],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>L4,64,0,0,0,1]],_je=[3,L,JDe,0,[M2,M4],[0,0]],vje=[3,L,x4,0,[kTe,iTe],[2,1]],yje=[3,L,$De,0,[b4,AOe],[0,1]],bje=[3,L,S4,0,[i4,Q2,h2],[0,0,0]],xje=[3,L,tOe,0,[COe,S2,S4,n2,i2],[()=>z4,0,()=>bje,()=>Bke,()=>zke]],Sje=[3,L,O4,0,[n4],[()=>K4]],B4=[1,L,l2,0,()=>Ike],V4=[1,L,c2,0,()=>Uke],H4=[1,L,dwe,0,()=>Wke],Cje=[1,L,p2,0,()=>Gke],wje=[1,L,uEe,0,()=>PAe],U4=[1,L,N2,0,()=>IAe],Tje=[1,L,I2,0,()=>RAe],W4=[1,L,gEe,0,()=>zAe],G4=[1,L,F2,0,()=>LAe],Eje=[1,L,$Ee,0,()=>ZAe],K4=[1,L,iDe,0,()=>rje],q4=[1,L,aDe,0,()=>aje],J4=[1,L,r4,0,()=>ije],Y4=[1,L,hDe,0,()=>oje],Dje=[1,L,d4,0,()=>fje],X4=[1,L,l4,0,()=>pje],Oje=[1,L,v4,0,()=>hje],Z4=[1,L,rOe,0,()=>mje],Q4=[1,L,WDe,0,()=>z4],$4=[1,L,YDe,0,()=>_je],kje=[1,L,XDe,0,()=>yje],e3=[1,L,y4,0,()=>gje],Aje=[1,L,C4,0,()=>xje],jje=[9,L,twe,0,()=>Lke,()=>Rke],Mje=[9,L,_we,0,()=>Kke,()=>qke],Nje=[9,L,fwe,0,()=>Jke,()=>Yke],Pje=[9,L,ywe,0,()=>Xke,()=>Zke],Fje=[9,L,Twe,0,()=>Qke,()=>$ke],Ije=[9,L,Pwe,0,()=>eAe,()=>tAe],Lje=[9,L,Fwe,0,()=>nAe,()=>rAe],Rje=[9,L,Qwe,0,()=>iAe,()=>aAe],zje=[9,L,lTe,0,()=>oAe,()=>sAe],Bje=[9,L,cTe,0,()=>cAe,()=>lAe],Vje=[9,L,Xwe,0,()=>uAe,()=>dAe],Hje=[9,L,Iwe,0,()=>fAe,()=>pAe],Uje=[9,L,Wwe,0,()=>mAe,()=>hAe],Wje=[9,L,rTe,0,()=>gAe,()=>_Ae],Gje=[9,L,aTe,0,()=>vAe,()=>yAe],Kje=[9,L,OTe,0,()=>bAe,()=>xAe],qje=[9,L,uTe,0,()=>SAe,()=>CAe],Jje=[9,L,vTe,0,()=>wAe,()=>TAe],Yje=[9,L,yTe,0,()=>EAe,()=>DAe],Xje=[9,L,DEe,0,()=>VAe,()=>HAe],Zje=[9,L,OEe,0,()=>UAe,()=>WAe],Qje=[9,L,NEe,0,()=>GAe,()=>KAe],$je=[9,L,IEe,0,()=>qAe,()=>JAe],eMe=[9,L,yDe,0,()=>$Ae,()=>eje],tMe=[9,L,bDe,0,()=>tje,()=>nje],nMe=[9,L,IDe,0,()=>sje,()=>cje],rMe=[9,L,FDe,0,()=>lje,()=>uje],iMe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??USe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??PSe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:Fke,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),aMe=e=>{let t=Se(e),n=()=>t().then(Ve),r=iMe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:RSe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},oMe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},sMe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cMe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),oMe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),sMe(n))},lMe=class extends Te{config;constructor(...[e]){let t=aMe(e||{});super(t),this.initConfig=t;let n=cMe(FSe(Ue(ve(Ee(Le(ke(ISe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:MSe,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},uMe=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dMe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var fMe=e=>{let t=[];switch(e.operation){default:t.push(dMe(e))}return t},pMe=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},mMe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),hMe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},gMe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},t3=`ref`,n3=`authSchemes`,r3=`name`,i3=`signingRegion`,a3=-1,o3=!0,s3=`isSet`,c3=`PartitionResult`,l3=`booleanEquals`,u3=`stringEquals`,d3=`getAttr`,f3=`sigv4`,p3={[t3]:`Endpoint`},m3={fn:d3,argv:[{[t3]:c3},`name`]},h3={[t3]:c3},g3={[n3]:[{[r3]:f3,[i3]:`us-east-1`}]},_3={[n3]:[{[r3]:f3,[i3]:`cn-north-1`}]},v3={[n3]:[{[r3]:f3,[i3]:`us-gov-west-1`}]},y3={[n3]:[{[r3]:f3,[i3]:`us-iso-east-1`}]},b3={[n3]:[{[r3]:f3,[i3]:`us-isob-east-1`}]},x3={[n3]:[{[r3]:f3,[i3]:`{PartitionResult#implicitGlobalRegion}`}]},S3=[{[t3]:`Region`}],C3={conditions:[[s3,[p3]],[s3,S3],[`aws.partition`,S3,c3],[l3,[{[t3]:`UseFIPS`},o3]],[l3,[{[t3]:`UseDualStack`},o3]],[u3,[m3,`aws`]],[u3,[m3,`aws-cn`]],[u3,[m3,`aws-us-gov`]],[l3,[{fn:d3,argv:[h3,`supportsDualStack`]},o3]],[u3,[m3,`aws-iso`]],[u3,[m3,`aws-iso-b`]],[l3,[{fn:d3,argv:[h3,`supportsFIPS`]},o3]],[u3,[m3,`aws-iso-e`]],[u3,[m3,`aws-iso-f`]],[u3,[m3,`aws-eusc`]]],results:[[a3],[a3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[a3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[p3,{}],[`https://iam.global.api.aws`,g3],[`https://iam-fips.global.api.aws`,g3],[`https://iam.global.api.amazonwebservices.com.cn`,_3],[`https://iam.cn-north-1.amazonaws.com.cn`,_3],[`https://iam.us-gov.api.aws`,v3],[`https://iam.us-gov.amazonaws.com`,v3],[`https://iam.us-iso-east-1.c2s.ic.gov`,y3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,y3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,b3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,b3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[n3]:[{[r3]:f3,[i3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[n3]:[{[r3]:f3,[i3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[n3]:[{[r3]:f3,[i3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,x3],[a3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,x3],[a3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,x3],[a3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,x3],[a3,`Invalid Configuration: Missing Region`]]},_Me=2,vMe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),yMe=Je.from(vMe,_Me,C3.conditions,C3.results),bMe=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),xMe=(e,t={})=>bMe.get(e,()=>Ge(yMe,{endpointParams:e,logger:t.logger}));rt.aws=fe;var z=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},SMe=class e extends z{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CMe=class e extends z{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wMe=class e extends z{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},TMe=class e extends z{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EMe=class e extends z{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DMe=class e extends z{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OMe=class e extends z{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kMe=class e extends z{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AMe=class e extends z{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jMe=class e extends z{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MMe=class e extends z{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NMe=class e extends z{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PMe=class e extends z{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FMe=class e extends z{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IMe=class e extends z{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LMe=class e extends z{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RMe=class e extends z{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zMe=class e extends z{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BMe=class e extends z{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VMe=class e extends z{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HMe=class e extends z{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UMe=class e extends z{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WMe=class e extends z{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GMe=class e extends z{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KMe=class e extends z{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qMe=class e extends z{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JMe=class e extends z{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YMe=class e extends z{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XMe=class e extends z{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZMe=class e extends z{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QMe=class e extends z{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$Me=class e extends z{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eNe=class e extends z{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tNe=class e extends z{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nNe=class e extends z{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},w3=`Arn`,rNe=`AttachmentCount`,T3=`AccessKey`,E3=`AccessKeyId`,D3=`AccessKeyMetadata`,iNe=`AccountNotManagementOrDelegatedAdministratorException`,aNe=`AttachedPolicy`,oNe=`AttachedPermissionsBoundary`,O3=`AttachedPolicies`,sNe=`AttachRolePolicy`,k3=`AssumeRolePolicyDocument`,cNe=`AttachRolePolicyRequest`,lNe=`AddRoleToInstanceProfile`,uNe=`AddRoleToInstanceProfileRequest`,dNe=`AttachUserPolicy`,fNe=`AttachUserPolicyRequest`,pNe=`CreateAccessKey`,mNe=`CreateAccessKeyRequest`,hNe=`CreateAccessKeyResponse`,A3=`CreateDate`,gNe=`CallerIsNotManagementAccountException`,_Ne=`CreateInstanceProfile`,vNe=`CreateInstanceProfileRequest`,yNe=`CreateInstanceProfileResponse`,bNe=`ConcurrentModificationException`,xNe=`CreatePolicyRequest`,SNe=`CreatePolicyResponse`,CNe=`CreatePolicy`,wNe=`CreateRole`,TNe=`CredentialReportExpiredException`,ENe=`CredentialReportNotPresentException`,DNe=`CredentialReportNotReadyException`,ONe=`CreateRoleRequest`,kNe=`CreateRoleResponse`,ANe=`CreateUser`,jNe=`CreateUserRequest`,MNe=`CreateUserResponse`,j3=`Description`,NNe=`DeleteAccessKey`,PNe=`DeleteAccessKeyRequest`,FNe=`DeleteConflictException`,INe=`DuplicateCertificateException`,LNe=`DeleteInstanceProfile`,RNe=`DeleteInstanceProfileRequest`,zNe=`DeletePolicyRequest`,BNe=`DeletePolicy`,VNe=`DetachRolePolicyRequest`,HNe=`DetachRolePolicy`,UNe=`DeleteRoleRequest`,WNe=`DeleteRole`,GNe=`DuplicateSSHPublicKeyException`,KNe=`DeleteUser`,qNe=`DetachUserPolicyRequest`,JNe=`DetachUserPolicy`,YNe=`DeleteUserRequest`,XNe=`DefaultVersionId`,ZNe=`Document`,QNe=`EntityAlreadyExistsException`,$Ne=`EntityTemporarilyUnmodifiableException`,ePe=`FeatureDisabledException`,tPe=`FeatureEnabledException`,nPe=`GetInstanceProfile`,rPe=`GetInstanceProfileRequest`,iPe=`GetInstanceProfileResponse`,aPe=`GetPolicy`,oPe=`GetPolicyRequest`,sPe=`GetPolicyResponse`,cPe=`GetPolicyVersion`,lPe=`GetPolicyVersionRequest`,uPe=`GetPolicyVersionResponse`,dPe=`GetRole`,fPe=`GetRoleRequest`,pPe=`GetRoleResponse`,mPe=`GetUser`,hPe=`GetUserRequest`,gPe=`GetUserResponse`,_Pe=`IsAttachable`,vPe=`InvalidAuthenticationCodeException`,yPe=`InvalidCertificateException`,bPe=`IsDefaultVersion`,xPe=`InvalidInputException`,M3=`InstanceProfile`,SPe=`InstanceProfileId`,CPe=`InvalidPublicKeyException`,N3=`InstanceProfileName`,P3=`InstanceProfiles`,F3=`IsTruncated`,wPe=`InvalidUserTypeException`,TPe=`Key`,EPe=`KeyPairMismatchException`,DPe=`ListAccessKeys`,OPe=`ListAccessKeysRequest`,kPe=`ListAccessKeysResponse`,APe=`ListAttachedRolePolicies`,jPe=`ListAttachedRolePoliciesRequest`,MPe=`ListAttachedRolePoliciesResponse`,NPe=`ListAttachedUserPolicies`,PPe=`ListAttachedUserPoliciesRequest`,FPe=`ListAttachedUserPoliciesResponse`,IPe=`LimitExceededException`,LPe=`ListInstanceProfiles`,RPe=`ListInstanceProfilesForRole`,zPe=`ListInstanceProfilesForRoleRequest`,BPe=`ListInstanceProfilesForRoleResponse`,VPe=`ListInstanceProfilesRequest`,HPe=`ListInstanceProfilesResponse`,UPe=`ListPoliciesRequest`,WPe=`ListPoliciesResponse`,GPe=`ListPolicies`,KPe=`ListRoles`,qPe=`ListRolesRequest`,JPe=`ListRolesResponse`,YPe=`ListUsers`,XPe=`LastUsedDate`,ZPe=`ListUsersRequest`,QPe=`ListUsersResponse`,I3=`Message`,$Pe=`MalformedCertificateException`,L3=`MaxItems`,eFe=`MalformedPolicyDocumentException`,R3=`MaxSessionDuration`,z3=`Marker`,tFe=`NoSuchEntityException`,nFe=`OnlyAttached`,rFe=`OpenIdIdpCommunicationErrorException`,iFe=`OrganizationNotFoundException`,aFe=`OrganizationNotInAllFeaturesModeException`,B3=`PolicyArn`,V3=`PermissionsBoundary`,oFe=`PermissionsBoundaryArn`,sFe=`PermissionsBoundaryType`,cFe=`PermissionsBoundaryUsageCount`,lFe=`PolicyDocument`,uFe=`PolicyEvaluationException`,dFe=`PolicyId`,fFe=`PasswordLastUsed`,H3=`PolicyName`,pFe=`PolicyNotAttachableException`,mFe=`PasswordPolicyViolationException`,U3=`PathPrefix`,hFe=`PolicyUsageFilter`,W3=`PolicyVersion`,G3=`Path`,K3=`Policy`,gFe=`Policies`,_Fe=`Region`,vFe=`ReportGenerationLimitExceededException`,yFe=`RoleId`,q3=`RoleLastUsed`,J3=`RoleName`,bFe=`RemoveRoleFromInstanceProfile`,xFe=`RemoveRoleFromInstanceProfileRequest`,Y3=`Role`,X3=`Roles`,Z3=`Status`,SFe=`SecretAccessKey`,CFe=`ServiceAccessNotEnabledException`,wFe=`ServiceFailureException`,TFe=`ServiceNotSupportedException`,EFe=`Scope`,Q3=`Tags`,DFe=`Tag`,OFe=`UpdateAccessKey`,kFe=`UpdateAccessKeyRequest`,AFe=`UpdateDate`,jFe=`UnmodifiableEntityException`,MFe=`UserId`,$3=`UserName`,NFe=`UnrecognizedPublicKeyEncodingException`,e6=`User`,PFe=`Users`,t6=`VersionId`,FFe=`Value`,IFe=`accessKeyMetadataListType`,LFe=`accessKeySecretType`,RFe=`attachedPoliciesListType`,B=`awsQueryError`,V=`client`,H=`error`,U=`httpError`,zFe=`instanceProfileListType`,W=`message`,BFe=`policyListType`,VFe=`roleListType`,n6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,r6=`server`,HFe=`tagListType`,UFe=`userListType`,G=`com.amazonaws.iam`,i6=ce.for(n6),WFe=[-3,n6,`IAMServiceException`,0,[],[]];i6.registerError(WFe,z);var K=ce.for(G),GFe=[-3,G,iNe,{[H]:V,[U]:400},[I3],[0]];K.registerError(GFe,TMe);var KFe=[-3,G,gNe,{[H]:V,[U]:400},[I3],[0]];K.registerError(KFe,UMe);var qFe=[-3,G,bNe,{[B]:[`ConcurrentModification`,409],[H]:V,[U]:409},[W],[0]];K.registerError(qFe,SMe);var JFe=[-3,G,TNe,{[B]:[`ReportExpired`,410],[H]:V,[U]:410},[W],[0]];K.registerError(JFe,KMe);var YFe=[-3,G,ENe,{[B]:[`ReportNotPresent`,410],[H]:V,[U]:410},[W],[0]];K.registerError(YFe,qMe);var XFe=[-3,G,DNe,{[B]:[`ReportInProgress`,404],[H]:V,[U]:404},[W],[0]];K.registerError(XFe,JMe);var ZFe=[-3,G,FNe,{[B]:[`DeleteConflict`,409],[H]:V,[U]:409},[W],[0]];K.registerError(ZFe,LMe);var QFe=[-3,G,INe,{[B]:[`DuplicateCertificate`,409],[H]:V,[U]:409},[W],[0]];K.registerError(QFe,$Me);var $Fe=[-3,G,GNe,{[B]:[`DuplicateSSHPublicKey`,400],[H]:V,[U]:400},[W],[0]];K.registerError($Fe,tNe);var eIe=[-3,G,QNe,{[B]:[`EntityAlreadyExists`,409],[H]:V,[U]:409},[W],[0]];K.registerError(eIe,OMe);var tIe=[-3,G,$Ne,{[B]:[`EntityTemporarilyUnmodifiable`,409],[H]:V,[U]:409},[W],[0]];K.registerError(tIe,jMe);var nIe=[-3,G,ePe,{[B]:[`FeatureDisabled`,404],[H]:V,[U]:404},[W],[0]];K.registerError(nIe,VMe);var rIe=[-3,G,tPe,{[B]:[`FeatureEnabled`,409],[H]:V,[U]:409},[W],[0]];K.registerError(rIe,WMe);var iIe=[-3,G,vPe,{[B]:[`InvalidAuthenticationCode`,403],[H]:V,[U]:403},[W],[0]];K.registerError(iIe,HMe);var aIe=[-3,G,yPe,{[B]:[`InvalidCertificate`,400],[H]:V,[U]:400},[W],[0]];K.registerError(aIe,eNe);var oIe=[-3,G,xPe,{[B]:[`InvalidInput`,400],[H]:V,[U]:400},[W],[0]];K.registerError(oIe,EMe);var sIe=[-3,G,CPe,{[B]:[`InvalidPublicKey`,400],[H]:V,[U]:400},[W],[0]];K.registerError(sIe,nNe);var cIe=[-3,G,wPe,{[B]:[`InvalidUserType`,400],[H]:V,[U]:400},[W],[0]];K.registerError(cIe,MMe);var lIe=[-3,G,EPe,{[B]:[`KeyPairMismatch`,400],[H]:V,[U]:400},[W],[0]];K.registerError(lIe,ZMe);var uIe=[-3,G,IPe,{[B]:[`LimitExceeded`,409],[H]:V,[U]:409},[W],[0]];K.registerError(uIe,DMe);var dIe=[-3,G,$Pe,{[B]:[`MalformedCertificate`,400],[H]:V,[U]:400},[W],[0]];K.registerError(dIe,QMe);var fIe=[-3,G,eFe,{[B]:[`MalformedPolicyDocument`,400],[H]:V,[U]:400},[W],[0]];K.registerError(fIe,FMe);var pIe=[-3,G,tFe,{[B]:[`NoSuchEntity`,404],[H]:V,[U]:404},[W],[0]];K.registerError(pIe,CMe);var mIe=[-3,G,rFe,{[B]:[`OpenIdIdpCommunicationError`,400],[H]:V,[U]:400},[W],[0]];K.registerError(mIe,PMe);var hIe=[-3,G,iFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(hIe,RMe);var gIe=[-3,G,aFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(gIe,zMe);var _Ie=[-3,G,mFe,{[B]:[`PasswordPolicyViolation`,400],[H]:V,[U]:400},[W],[0]];K.registerError(_Ie,NMe);var vIe=[-3,G,uFe,{[B]:[`PolicyEvaluation`,500],[H]:r6,[U]:500},[W],[0]];K.registerError(vIe,XMe);var yIe=[-3,G,pFe,{[B]:[`PolicyNotAttachable`,400],[H]:V,[U]:400},[W],[0]];K.registerError(yIe,AMe);var bIe=[-3,G,vFe,{[B]:[`ReportGenerationLimitExceeded`,409],[H]:V,[U]:409},[W],[0]];K.registerError(bIe,GMe);var xIe=[-3,G,CFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(xIe,BMe);var SIe=[-3,G,wFe,{[B]:[`ServiceFailure`,500],[H]:r6,[U]:500},[W],[0]];K.registerError(SIe,wMe);var CIe=[-3,G,TFe,{[B]:[`NotSupportedService`,404],[H]:V,[U]:404},[W],[0]];K.registerError(CIe,IMe);var wIe=[-3,G,jFe,{[B]:[`UnmodifiableEntity`,400],[H]:V,[U]:400},[W],[0]];K.registerError(wIe,kMe);var TIe=[-3,G,NFe,{[B]:[`UnrecognizedPublicKeyEncoding`,400],[H]:V,[U]:400},[W],[0]];K.registerError(TIe,YMe);var EIe=[i6,K],DIe=[0,G,LFe,8,0],OIe=[3,G,T3,0,[$3,E3,Z3,SFe,A3],[0,0,0,[()=>DIe,0],4],4],kIe=[3,G,D3,0,[$3,E3,Z3,A3],[0,0,0,4]],AIe=[3,G,uNe,0,[N3,J3],[0,0],2],a6=[3,G,oNe,0,[sFe,oFe],[0,0]],jIe=[3,G,aNe,0,[H3,B3],[0,0]],MIe=[3,G,cNe,0,[J3,B3],[0,0],2],NIe=[3,G,fNe,0,[$3,B3],[0,0],2],PIe=[3,G,mNe,0,[$3],[0]],FIe=[3,G,hNe,0,[T3],[[()=>OIe,0]],1],IIe=[3,G,vNe,0,[N3,G3,Q3],[0,0,()=>m6],1],LIe=[3,G,yNe,0,[M3],[()=>o6],1],RIe=[3,G,xNe,0,[H3,lFe,G3,j3,Q3],[0,0,0,0,()=>m6],2],zIe=[3,G,SNe,0,[K3],[()=>s6]],BIe=[3,G,ONe,0,[J3,k3,G3,j3,R3,V3,Q3],[0,0,0,0,1,0,()=>m6],2],VIe=[3,G,kNe,0,[Y3],[()=>c6],1],HIe=[3,G,jNe,0,[$3,G3,V3,Q3],[0,0,0,()=>m6],1],UIe=[3,G,MNe,0,[e6],[()=>l6]],WIe=[3,G,PNe,0,[E3,$3],[0,0],1],GIe=[3,G,RNe,0,[N3],[0],1],KIe=[3,G,zNe,0,[B3],[0],1],qIe=[3,G,UNe,0,[J3],[0],1],JIe=[3,G,YNe,0,[$3],[0],1],YIe=[3,G,VNe,0,[J3,B3],[0,0],2],XIe=[3,G,qNe,0,[$3,B3],[0,0],2],ZIe=[3,G,rPe,0,[N3],[0],1],QIe=[3,G,iPe,0,[M3],[()=>o6],1],$Ie=[3,G,oPe,0,[B3],[0],1],eLe=[3,G,sPe,0,[K3],[()=>s6]],tLe=[3,G,lPe,0,[B3,t6],[0,0],2],nLe=[3,G,uPe,0,[W3],[()=>CLe]],rLe=[3,G,fPe,0,[J3],[0],1],iLe=[3,G,pPe,0,[Y3],[()=>c6],1],aLe=[3,G,hPe,0,[$3],[0]],oLe=[3,G,gPe,0,[e6],[()=>l6],1],o6=[3,G,M3,0,[G3,N3,SPe,w3,A3,X3,Q3],[0,0,0,0,4,()=>p6,()=>m6],6],sLe=[3,G,OPe,0,[$3,z3,L3],[0,0,1]],cLe=[3,G,kPe,0,[D3,F3,z3],[()=>OLe,2,0],1],lLe=[3,G,jPe,0,[J3,U3,z3,L3],[0,0,0,1],1],uLe=[3,G,MPe,0,[O3,F3,z3],[()=>d6,2,0]],dLe=[3,G,PPe,0,[$3,U3,z3,L3],[0,0,0,1],1],fLe=[3,G,FPe,0,[O3,F3,z3],[()=>d6,2,0]],pLe=[3,G,zPe,0,[J3,z3,L3],[0,0,1],1],mLe=[3,G,BPe,0,[P3,F3,z3],[()=>f6,2,0],1],hLe=[3,G,VPe,0,[U3,z3,L3],[0,0,1]],gLe=[3,G,HPe,0,[P3,F3,z3],[()=>f6,2,0],1],_Le=[3,G,UPe,0,[EFe,nFe,U3,hFe,z3,L3],[0,2,0,0,0,1]],vLe=[3,G,WPe,0,[gFe,F3,z3],[()=>kLe,2,0]],yLe=[3,G,qPe,0,[U3,z3,L3],[0,0,1]],bLe=[3,G,JPe,0,[X3,F3,z3],[()=>p6,2,0],1],xLe=[3,G,ZPe,0,[U3,z3,L3],[0,0,1]],SLe=[3,G,QPe,0,[PFe,F3,z3],[()=>ALe,2,0],1],s6=[3,G,K3,0,[H3,dFe,w3,G3,XNe,rNe,cFe,_Pe,j3,A3,AFe,Q3],[0,0,0,0,0,1,1,2,0,4,4,()=>m6]],CLe=[3,G,W3,0,[ZNe,t6,bPe,A3],[0,0,2,4]],wLe=[3,G,xFe,0,[N3,J3],[0,0],2],c6=[3,G,Y3,0,[G3,J3,yFe,w3,A3,k3,j3,R3,V3,Q3,q3],[0,0,0,0,4,0,0,1,()=>a6,()=>m6,()=>TLe],5],TLe=[3,G,q3,0,[XPe,_Fe],[4,0]],ELe=[3,G,DFe,0,[TPe,FFe],[0,0],2],DLe=[3,G,kFe,0,[E3,Z3,$3],[0,0,0],2],l6=[3,G,e6,0,[G3,$3,MFe,w3,A3,fFe,V3,Q3],[0,0,0,0,4,4,()=>a6,()=>m6],5],u6=`unit`,OLe=[1,G,IFe,0,()=>kIe],d6=[1,G,RFe,0,()=>jIe],f6=[1,G,zFe,0,()=>o6],kLe=[1,G,BFe,0,()=>s6],p6=[1,G,VFe,0,()=>c6],m6=[1,G,HFe,0,()=>ELe],ALe=[1,G,UFe,0,()=>l6],jLe=[9,G,lNe,0,()=>AIe,()=>u6],MLe=[9,G,sNe,0,()=>MIe,()=>u6],NLe=[9,G,dNe,0,()=>NIe,()=>u6],PLe=[9,G,pNe,0,()=>PIe,()=>FIe],FLe=[9,G,_Ne,0,()=>IIe,()=>LIe],ILe=[9,G,CNe,0,()=>RIe,()=>zIe],LLe=[9,G,wNe,0,()=>BIe,()=>VIe],RLe=[9,G,ANe,0,()=>HIe,()=>UIe],zLe=[9,G,NNe,0,()=>WIe,()=>u6],BLe=[9,G,LNe,0,()=>GIe,()=>u6],VLe=[9,G,BNe,0,()=>KIe,()=>u6],HLe=[9,G,WNe,0,()=>qIe,()=>u6],ULe=[9,G,KNe,0,()=>JIe,()=>u6],WLe=[9,G,HNe,0,()=>YIe,()=>u6],GLe=[9,G,JNe,0,()=>XIe,()=>u6],KLe=[9,G,nPe,0,()=>ZIe,()=>QIe],qLe=[9,G,aPe,0,()=>$Ie,()=>eLe],JLe=[9,G,cPe,0,()=>tLe,()=>nLe],YLe=[9,G,dPe,0,()=>rLe,()=>iLe],XLe=[9,G,mPe,0,()=>aLe,()=>oLe],ZLe=[9,G,DPe,0,()=>sLe,()=>cLe],QLe=[9,G,APe,0,()=>lLe,()=>uLe],$Le=[9,G,NPe,0,()=>dLe,()=>fLe],eRe=[9,G,LPe,0,()=>hLe,()=>gLe],tRe=[9,G,RPe,0,()=>pLe,()=>mLe],nRe=[9,G,GPe,0,()=>_Le,()=>vLe],rRe=[9,G,KPe,0,()=>yLe,()=>bLe],iRe=[9,G,YPe,0,()=>xLe,()=>SLe],aRe=[9,G,bFe,0,()=>wLe,()=>u6],oRe=[9,G,OFe,0,()=>DLe,()=>u6],sRe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??xMe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??fMe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:EIe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),cRe=e=>{let t=Se(e),n=()=>t().then(Ve),r=sRe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:gMe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},lRe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},uRe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dRe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),lRe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),uRe(n))},fRe=class extends Te{config;constructor(...[e]){let t=cRe(e||{});super(t),this.initConfig=t;let n=dRe(pMe(Ue(ve(Ee(Le(ke(mMe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:uMe,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},h6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},pRe=h6.WHEN_SUPPORTED,mRe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},hRe=h6.WHEN_SUPPORTED,g6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(g6||={});var gRe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(gRe||={});var _Re=g6.CRC32,vRe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:xe(t??pRe),responseChecksumValidation:xe(n??hRe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},yRe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},bRe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function xRe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var SRe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},CRe=e=>({applyToStack:t=>{t.add(xRe(e),SRe),t.addRelativeTo(yRe(e),bRe)}}),wRe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new _6(Promise.resolve(e)))})),t)):i.set(r,new _6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},ERe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new TRe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},DRe=`sigv4-s3express`,ORe=`x-amz-s3session-token`,kRe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===DRe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(it(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,De.isInstance(r.request)&&i.sessionToken&&(r.request.headers[ORe]=i.sessionToken)}}}return t(r)},ARe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},jRe=e=>({applyToStack:t=>{t.add(kRe(e),ARe)}}),MRe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},NRe=e=>e=>{throw e},PRe=(e,t)=>{},FRe=e=>(t,n)=>async r=>{if(!De.isInstance(r.request))return t(r);let i=pe(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await MRe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||NRe)(a));return(s.successHandler||PRe)(l.response,a),l},IRe=e=>({applyToStack:t=>{t.addRelativeTo(FRe(e),eee)}});function LRe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var RRe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},zRe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Ce.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await BRe(s,e);if(a.body=LRe(c),c.length===0&&RRe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},BRe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),VRe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},v6=e=>({applyToStack:t=>{t.addRelativeTo(zRe(e),VRe)}});function HRe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var URe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function WRe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!rj(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var GRe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},KRe=e=>({applyToStack:t=>{t.add(WRe(e),GRe),t.addRelativeTo(HRe(e),URe)}}),qRe=class extends Vee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=lt.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function JRe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&De.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var YRe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},XRe=e=>({applyToStack:t=>{t.add(JRe(e),YRe)}}),q=`ref`,J=`argv`,y6=`backend`,b6=`authSchemes`,x6=`disableDoubleEncoding`,S6=`signingName`,C6=`signingRegion`,w6=`signingRegionSet`,Y=-1,X=!0,T6=!1,E6=`isSet`,D6=`booleanEquals`,Z=`stringEquals`,O6=`coalesce`,k6=`substring`,A6=``,j6=`aws.partition`,M6=`partitionResult`,N6=`accessPointSuffix`,P6=`regionPrefix`,F6=e=>`outpostId_ssa_`+e+A6,I6=`hardwareType`,L6=`ite`,R6=`isValidHostLabel`,z6=`sigv4`,B6=`aws.isVirtualHostableS3Bucket`,V6=`url`,H6=`getAttr`,U6=`bucketArn`,W6=`--`,G6=`arnType`,K6=`accesspoint`,q6=e=>`accessPointName_ssa_`+e+A6,J6=`s3-object-lambda`,Y6=`s3-outposts`,X6=`bucketPartition`,Z6=`us-east-1`,Q6=`outpostType`,$6=`name`,e8=`s3`,t8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,n8=`{url#scheme}://{url#authority}{url#path}`,r8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,i8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,a8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,o8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,s8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",c8=`sigv4a`,l8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,u8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,d8=`https://s3.{partitionResult#dnsSuffix}`,f8={[q]:`UseFIPS`},p8={[q]:`UseDualStack`},m8={[q]:`Bucket`},h8={fn:H6,[J]:[{[q]:M6},$6]},g8={[q]:V6},_8={[q]:`Region`},v8={[q]:U6},y8={[q]:G6},b8={[q]:`accessPointName_ssa_1`},x8={fn:H6,[J]:[v8,`region`]},S8={[q]:I6},C8={fn:H6,[J]:[v8,`service`]},w8={fn:H6,[J]:[v8,`accountId`]},T8={[y6]:`S3Express`,[b6]:[{[x6]:!0,[$6]:`{_s3e_auth}`,[S6]:`s3express`,[C6]:`{Region}`}]},E8={[y6]:`S3Express`,[b6]:[{[x6]:!0,[$6]:z6,[S6]:`s3express`,[C6]:`{Region}`}]},D8={[b6]:[{[x6]:!0,[$6]:c8,[S6]:Y6,[w6]:[`*`]},{[x6]:!0,[$6]:z6,[S6]:Y6,[C6]:`{Region}`}]},O8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:Z6}]},k8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:`{Region}`}]},A8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:J6,[C6]:`{bucketArn#region}`}]},j8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:`{bucketArn#region}`}]},M8={[b6]:[{[x6]:!0,[$6]:c8,[S6]:Y6,[w6]:[`*`]},{[x6]:!0,[$6]:z6,[S6]:Y6,[C6]:`{bucketArn#region}`}]},N8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:J6,[C6]:`{Region}`}]},P8=[_8],F8=[{[q]:`Endpoint`}],I8=[m8],L8=[m8,0,7,!0],R8=[v8,`resourceId[1]`],ZRe=[`*`],z8={conditions:[[E6,P8],[D6,[{[q]:`Accelerate`},X]],[D6,[f8,X]],[D6,[p8,X]],[E6,F8],[E6,I8],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,0,6,X]},A6]},`--x-s3`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:L8},A6]},`--xa-s3`]],[j6,P8,M6],[k6,L8,N6],[Z,[{[q]:N6},`--op-s3`]],[k6,[m8,8,12,X],P6],[k6,[m8,32,49,X],F6(2)],[k6,[m8,49,50,X],I6],[D6,[{[q]:`ForcePathStyle`},X]],[Z,[h8,`aws-cn`]],[L6,[p8,`.dualstack`,A6],`_s3e_ds`],[R6,[{[q]:F6(2)},T6]],[L6,[f8,`-fips`,A6],`_s3e_fips`],[L6,[{fn:O6,[J]:[{[q]:`DisableS3ExpressSessionAuth`},T6]},z6,`sigv4-s3express`],`_s3e_auth`],[B6,[m8,T6]],[`parseURL`,F8,V6],[D6,[{fn:O6,[J]:[{[q]:`UseS3ExpressControlEndpoint`},T6]},X]],[B6,[m8,X]],[Z,[{fn:H6,[J]:[g8,`scheme`]},`http`]],[R6,[_8,T6]],[`aws.parseArn`,I8,U6],[H6,[{fn:`split`,[J]:[m8,W6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,0,4,T6]},A6]},`arn:`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,16,18,X]},A6]},W6]],[D6,[{fn:H6,[J]:[g8,`isIp`]},X]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,21,23,X]},A6]},W6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,27,29,X]},A6]},W6]],[Z,[{[q]:P6},`beta`]],[`uriEncode`,I8,`uri_encoded_bucket`],[R6,[_8,X]],[D6,[{fn:O6,[J]:[{[q]:`UseObjectLambdaEndpoint`},T6]},X]],[H6,[v8,`resourceId[0]`],G6],[Z,[y8,A6]],[Z,[y8,K6]],[H6,R8,q6(1)],[Z,[b8,A6]],[Z,[x8,A6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,14,16,X]},A6]},W6]],[Z,[S8,`e`]],[Z,[S8,`o`]],[Z,[_8,`aws-global`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,19,21,X]},A6]},W6]],[Z,[C8,J6]],[D6,[{fn:O6,[J]:[{[q]:`DisableAccessPoints`},T6]},X]],[Z,[C8,Y6]],[j6,[x8],X6],[R6,[b8,X]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,26,28,X]},A6]},W6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,15,17,X]},A6]},W6]],[H6,[v8,`resourceId[4]`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,20,22,X]},A6]},W6]],[D6,[{[q]:`UseGlobalEndpoint`},X]],[Z,[_8,Z6]],[H6,R8,F6(1)],[D6,[{fn:O6,[J]:[{[q]:`UseArnRegion`},X]},X]],[R6,[{[q]:F6(1)},T6]],[H6,[v8,`resourceId[2]`],Q6],[Z,[_8,x8]],[Z,[{fn:H6,[J]:[{[q]:X6},$6]},h8]],[D6,[{[q]:`DisableMultiRegionAccessPoints`},X]],[R6,[x8,X]],[Z,[{fn:H6,[J]:[v8,`partition`]},h8]],[Z,[w8,A6]],[Z,[C8,e8]],[R6,[w8,T6]],[H6,[v8,`resourceId[3]`],q6(2)],[R6,[b8,T6]],[Z,[{[q]:Q6},K6]],[R6,[{[q]:q6(2)},T6]]],results:[[Y],[Y,`Accelerate cannot be used with FIPS`],[Y,`Cannot set dual-stack in combination with a custom endpoint.`],[Y,`A custom endpoint cannot be combined with FIPS`],[Y,`A custom endpoint cannot be combined with S3 Accelerate`],[Y,`Partition does not support FIPS`],[Y,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,T8],[t8,T8],[Y,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,E8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,T8],[Y,`Unrecognized S3Express bucket name format.`],[n8,T8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,E8],[Y,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,D8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,D8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,D8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,D8],[Y,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[Y,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[Y,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[Y,"Custom endpoint `{Endpoint}` was not a valid URI"],[Y,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[r8,O8],[t8,O8],[r8,k8],[t8,k8],[i8,O8],[i8,k8],[a8,O8],[a8,k8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,k8],[Y,`Invalid region: region was not a valid DNS name.`],[Y,`S3 Object Lambda does not support Dual-stack`],[Y,`S3 Object Lambda does not support S3 Accelerate`],[Y,`Access points are not supported for this operation`],[Y,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[Y,`Invalid ARN: Missing account id`],[o8(1),A8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,A8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,A8],[Y,s8(1)],[Y,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[Y,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[Y,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[Y,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[Y,`Invalid ARN: bucket ARN is missing a region`],[Y,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[Y,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[Y,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[o8(1),j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[Y,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[Y,`S3 MRAP does not support dual-stack`],[Y,`S3 MRAP does not support FIPS`],[Y,`S3 MRAP does not support S3 Accelerate`],[Y,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[b6]:[{[x6]:X,name:c8,[S6]:e8,[w6]:ZRe}]}],[Y,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[Y,`Invalid Access Point Name`],[Y,`S3 Outposts does not support Dual-stack`],[Y,`S3 Outposts does not support FIPS`],[Y,`S3 Outposts does not support S3 Accelerate`],[Y,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,M8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[Y,s8(2)],[Y,"Expected an outpost type `accesspoint`, found {outpostType}"],[Y,`Invalid ARN: expected an access point name`],[Y,`Invalid ARN: Expected a 4-component resource`],[Y,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[Y,`Invalid ARN: The Outpost Id was not set`],[Y,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[Y,`Invalid ARN: No ARN type specified`],[Y,"Invalid ARN: `{Bucket}` was not a valid ARN"],[Y,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[l8,O8],[l8,k8],[u8,O8],[u8,k8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[Y,`Path-style addressing cannot be used with S3 Accelerate`],[n8,N8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,N8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[n8,O8],[n8,k8],[d8,O8],[d8,k8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,k8],[Y,`A region must be set when sending requests to S3.`]]},QRe=2,$Re=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),eze=Je.from($Re,QRe,z8.conditions,z8.results),tze=new et({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),B8=(e,t={})=>tze.get(e,()=>Ge(eze,{endpointParams:e,logger:t.logger}));rt.aws=fe;var nze=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=pe(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await qe(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function V8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function H8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var rze=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Me.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(B8,e=>{let t=[];switch(e.operation){default:t.push(V8(e)),t.push(H8(e))}return t},{"aws.auth#sigv4":V8,"aws.auth#sigv4a":H8}),ize=e=>{let t=we(ue(e));return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},aze=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),U8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},W8=class e extends dt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},oze=class e extends W8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sze=class e extends W8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cze=class e extends W8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lze=class e extends W8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uze=class e extends W8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dze=class e extends W8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fze=class e extends W8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pze=class e extends W8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},mze=class e extends W8{name=`NoSuchAnnotation`;$fault=`client`;constructor(t){super({name:`NoSuchAnnotation`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hze=class e extends W8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gze=class e extends W8{name=`InvalidPrefix`;$fault=`client`;constructor(t){super({name:`InvalidPrefix`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_ze=class e extends W8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vze=class e extends W8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yze=class e extends W8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bze=class e extends W8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xze=class e extends W8{name=`AnnotationLimitExceeded`;$fault=`client`;constructor(t){super({name:`AnnotationLimitExceeded`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sze=class e extends W8{name=`AnnotationNameTooLong`;$fault=`client`;constructor(t){super({name:`AnnotationNameTooLong`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cze=class e extends W8{name=`InvalidAnnotationName`;$fault=`client`;constructor(t){super({name:`InvalidAnnotationName`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wze=class e extends W8{name=`UnsupportedMediaType`;$fault=`client`;constructor(t){super({name:`UnsupportedMediaType`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tze=class e extends W8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Eze=class e extends W8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},G8=`ACL`,Dze=`AccessDenied`,Oze=`AbortDate`,K8=`AccessKeyId`,kze=`AnnotationLimitExceeded`,Aze=`AbortMultipartUpload`,jze=`AbortMultipartUploadOutput`,Mze=`AbortMultipartUploadRequest`,Nze=`AnnotationNameTooLong`,Pze=`AcceptRanges`,Fze=`AbortRuleId`,Ize=`AccessTier`,q8=`Bucket`,J8=`BucketArn`,Lze=`BucketAlreadyExists`,Rze=`BucketAlreadyOwnedByYou`,zze=`BypassGovernanceRetention`,Bze=`BucketInfo`,Y8=`BucketKeyEnabled`,Vze=`BucketNamespace`,X8=`BucketRegion`,Z8=`Body`,Q8=`Buckets`,$8=`ChecksumAlgorithm`,Hze=`CreateBucket`,e5=`CreateBucketConfiguration`,Uze=`CreateBucketOutput`,Wze=`CreateBucketRequest`,t5=`CacheControl`,n5=`ChecksumCRC32`,r5=`ChecksumCRC32C`,i5=`ChecksumCRC64NVME`,a5=`Cache-Control`,Gze=`CreationDate`,o5=`Content-Disposition`,s5=`ContentDisposition`,c5=`Content-Encoding`,l5=`ContentEncoding`,u5=`ContentLanguage`,d5=`Content-Language`,f5=`Content-Length`,p5=`ContentLength`,m5=`Content-MD5`,h5=`ChecksumMD5`,g5=`ContentMD5`,Kze=`CompletedMultipartUpload`,qze=`CompleteMultipartUploadOutput`,Jze=`CreateMultipartUploadOutput`,Yze=`CompleteMultipartUploadResult`,Xze=`CompleteMultipartUploadRequest`,Zze=`CreateMultipartUploadRequest`,_5=`CompleteMultipartUpload`,Qze=`CreateMultipartUpload`,$ze=`ChecksumMode`,eBe=`CommonPrefix`,tBe=`CommonPrefixList`,nBe=`CompletedPartList`,rBe=`CompletedPart`,iBe=`CommonPrefixes`,aBe=`ContentRange`,oBe=`Content-Range`,v5=`ChecksumSHA1`,y5=`ChecksumSHA256`,b5=`ChecksumSHA512`,sBe=`CreateSessionOutput`,cBe=`CreateSessionResult`,lBe=`CreateSessionRequest`,uBe=`CreateSession`,x5=`ChecksumType`,S5=`Content-Type`,C5=`ContentType`,w5=`ContinuationToken`,T5=`ChecksumXXHASH64`,E5=`ChecksumXXHASH3`,D5=`ChecksumXXHASH128`,dBe=`Contents`,O5=`Credentials`,k5=`DeleteMarker`,fBe=`DisplayName`,pBe=`DeleteObjectOutput`,mBe=`DeleteObjectRequest`,hBe=`DeleteObject`,gBe=`DataRedundancy`,A5=`Delimiter`,j5=`ExpectedBucketOwner`,M5=`ExpiresString`,N5=`ETag`,_Be=`EncryptionTypeMismatch`,P5=`EncodingType`,F5=`Expiration`,I5=`Expires`,vBe=`FetchOwner`,L5=`GrantFullControl`,yBe=`GetObject`,bBe=`GetObjectOutput`,xBe=`GetObjectRequest`,R5=`GrantRead`,z5=`GrantReadACP`,SBe=`GrantWrite`,B5=`GrantWriteACP`,CBe=`InvalidAnnotationName`,wBe=`ID`,V5=`IfMatch`,TBe=`IfMatchInitiatedTime`,EBe=`IfMatchLastModifiedTime`,DBe=`IfMatchSize`,OBe=`If-Modified-Since`,kBe=`IfModifiedSince`,ABe=`InitiateMultipartUploadResult`,H5=`If-Match`,U5=`IfNoneMatch`,W5=`If-None-Match`,jBe=`InvalidObjectState`,MBe=`InvalidPrefix`,NBe=`IdempotencyParameterMismatch`,PBe=`InvalidRequest`,FBe=`IsRestoreInProgress`,IBe=`IsTruncated`,LBe=`IfUnmodifiedSince`,RBe=`If-Unmodified-Since`,zBe=`InvalidWriteOffset`,G5=`Key`,BBe=`KeyCount`,K5=`Location`,VBe=`ListAllMyBucketsResult`,HBe=`ListBuckets`,UBe=`ListBucketsOutput`,WBe=`ListBucketsRequest`,GBe=`ListBucketResult`,KBe=`LocationConstraint`,qBe=`LocationInfo`,q5=`LastModified`,JBe=`Last-Modified`,YBe=`ListObjectsV2`,XBe=`ListObjectsV2Output`,ZBe=`ListObjectsV2Request`,J5=`Metadata`,QBe=`MaxBuckets`,$Be=`MFA`,Y5=`MaxKeys`,eVe=`MissingMeta`,tVe=`MpuObjectSize`,nVe=`MultipartUpload`,X5=`Name`,rVe=`NextContinuationToken`,iVe=`NotFound`,aVe=`NoSuchAnnotation`,oVe=`NoSuchBucket`,sVe=`NoSuchKey`,cVe=`NoSuchUpload`,Z5=`Owner`,lVe=`ObjectAlreadyInActiveTierError`,uVe=`ObjectLockEnabledForBucket`,Q5=`ObjectLockLegalHoldStatus`,$5=`ObjectLockMode`,e7=`ObjectLockRetainUntilDate`,dVe=`ObjectList`,fVe=`ObjectNotInActiveTierError`,pVe=`ObjectOwnership`,mVe=`OptionalObjectAttributes`,hVe=`Object`,t7=`Prefix`,gVe=`PartsCount`,n7=`PartNumber`,_Ve=`PutObject`,vVe=`PutObjectOutput`,yVe=`PutObjectRequest`,bVe=`PutObjectTagging`,xVe=`PutObjectTaggingOutput`,SVe=`PutObjectTaggingRequest`,CVe=`Parts`,wVe=`Part`,r7=`RequestCharged`,TVe=`ResponseCacheControl`,EVe=`ResponseContentDisposition`,DVe=`ResponseContentEncoding`,OVe=`ResponseContentLanguage`,kVe=`ResponseContentType`,AVe=`ResponseExpires`,jVe=`RestoreExpiryDate`,i7=`RequestPayer`,MVe=`ReplicationStatus`,a7=`RestoreStatus`,o7=`Range`,NVe=`Restore`,s7=`StartAfter`,c7=`SecretAccessKey`,PVe=`StreamingBlob`,l7=`StorageClass`,FVe=`SessionCredentialValue`,IVe=`SessionCredentials`,LVe=`SessionMode`,u7=`ServerSideEncryption`,d7=`SSECustomerAlgorithm`,f7=`SSECustomerKey`,p7=`SSECustomerKeyMD5`,m7=`SSEKMSEncryptionContext`,h7=`SSEKMSKeyId`,g7=`SessionToken`,_7=`Size`,RVe=`Tags`,zVe=`TagCount`,BVe=`TooManyParts`,v7=`TagSet`,y7=`Tag`,b7=`Tagging`,x7=`Type`,S7=`UploadId`,VVe=`UnsupportedMediaType`,HVe=`UploadPart`,UVe=`UploadPartOutput`,WVe=`UploadPartRequest`,GVe=`Value`,C7=`VersionId`,KVe=`WriteOffsetBytes`,w7=`WebsiteRedirectLocation`,qVe=`accept-ranges`,JVe=`bucket-region`,T7=`client`,E7=`continuation-token`,YVe=`delimiter`,D7=`error`,XVe=`encoding-type`,ZVe=`fetch-owner`,O7=`http`,k7=`httpChecksum`,A7=`httpError`,Q=`httpHeader`,j7=`httpPayload`,M7=`httpPrefixHeaders`,N7=`httpQuery`,QVe=`max-buckets`,$Ve=`max-keys`,P7=`prefix`,F7=`partNumber`,eHe=`response-cache-control`,tHe=`response-content-disposition`,nHe=`response-content-encoding`,rHe=`response-content-language`,iHe=`response-content-type`,aHe=`response-expires`,I7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,oHe=`start-after`,sHe=`streaming`,L7=`uploadId`,R7=`versionId`,z7=`xmlFlattened`,B7=`xmlName`,V7=`x-amz-acl`,cHe=`x-amz-abort-date`,lHe=`x-amz-abort-rule-id`,uHe=`x-amz-bucket-arn`,dHe=`x-amz-bypass-governance-retention`,fHe=`x-amz-bucket-namespace`,pHe=`x-amz-bucket-object-lock-enabled`,H7=`x-amz-checksum-algorithm`,U7=`x-amz-checksum-crc32`,W7=`x-amz-checksum-crc32c`,G7=`x-amz-checksum-crc64nvme`,K7=`x-amz-checksum-md5`,mHe=`x-amz-checksum-mode`,q7=`x-amz-checksum-sha1`,J7=`x-amz-checksum-sha256`,Y7=`x-amz-checksum-sha512`,hHe=`x-amz-create-session-mode`,X7=`x-amz-checksum-type`,Z7=`x-amz-checksum-xxhash64`,Q7=`x-amz-checksum-xxhash3`,$7=`x-amz-checksum-xxhash128`,e9=`x-amz-delete-marker`,t9=`x-amz-expiration`,n9=`x-amz-expected-bucket-owner`,r9=`x-amz-grant-full-control`,i9=`x-amz-grant-read`,a9=`x-amz-grant-read-acp`,gHe=`x-amz-grant-write`,o9=`x-amz-grant-write-acp`,_He=`x-amz-if-match-initiated-time`,vHe=`x-amz-if-match-last-modified-time`,yHe=`x-amz-if-match-size`,s9=`x-amz-meta-`,bHe=`x-amz-mfa`,xHe=`x-amz-missing-meta`,SHe=`x-amz-mp-object-size`,CHe=`x-amz-mp-parts-count`,c9=`x-amz-object-lock-legal-hold`,l9=`x-amz-object-lock-mode`,u9=`x-amz-object-lock-retain-until-date`,wHe=`x-amz-object-ownership`,THe=`x-amz-optional-object-attributes`,EHe=`x-amz-object-size`,DHe=`x-amz-restore`,d9=`x-amz-request-charged`,f9=`x-amz-request-payer`,OHe=`x-amz-replication-status`,p9=`x-amz-storage-class`,m9=`x-amz-sdk-checksum-algorithm`,h9=`x-amz-server-side-encryption`,g9=`x-amz-server-side-encryption-aws-kms-key-id`,_9=`x-amz-server-side-encryption-bucket-key-enabled`,v9=`x-amz-server-side-encryption-context`,y9=`x-amz-server-side-encryption-customer-algorithm`,b9=`x-amz-server-side-encryption-customer-key`,x9=`x-amz-server-side-encryption-customer-key-MD5`,S9=`x-amz-tagging`,kHe=`x-amz-tagging-count`,C9=`x-amz-version-id`,AHe=`x-amz-write-offset-bytes`,w9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,T9=ce.for(I7),jHe=[-3,I7,`S3ServiceException`,0,[],[]];T9.registerError(jHe,W8);var E9=ce.for($),MHe=[-3,$,Dze,{[D7]:T7,[A7]:403},[],[]];E9.registerError(MHe,sze);var NHe=[-3,$,kze,{[D7]:T7,[A7]:400},[],[]];E9.registerError(NHe,xze);var PHe=[-3,$,Nze,{[D7]:T7,[A7]:400},[],[]];E9.registerError(PHe,Sze);var FHe=[-3,$,Lze,{[D7]:T7,[A7]:409},[],[]];E9.registerError(FHe,lze);var IHe=[-3,$,Rze,{[D7]:T7,[A7]:409},[],[]];E9.registerError(IHe,uze);var LHe=[-3,$,_Be,{[D7]:T7,[A7]:400},[],[]];E9.registerError(LHe,_ze);var RHe=[-3,$,NBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(RHe,Tze);var zHe=[-3,$,CBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(zHe,Cze);var BHe=[-3,$,jBe,{[D7]:T7,[A7]:403},[l7,Ize],[0,0]];E9.registerError(BHe,pze);var VHe=[-3,$,MBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(VHe,gze);var HHe=[-3,$,PBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(HHe,vze);var UHe=[-3,$,zBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(UHe,yze);var WHe=[-3,$,aVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(WHe,mze);var GHe=[-3,$,oVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(GHe,dze);var KHe=[-3,$,sVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(KHe,fze);var qHe=[-3,$,cVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(qHe,oze);var JHe=[-3,$,iVe,{[D7]:T7},[],[]];E9.registerError(JHe,hze);var YHe=[-3,$,lVe,{[D7]:T7,[A7]:403},[],[]];E9.registerError(YHe,Eze);var XHe=[-3,$,fVe,{[D7]:T7,[A7]:403},[],[]];E9.registerError(XHe,cze);var ZHe=[-3,$,BVe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(ZHe,bze);var QHe=[-3,$,VVe,{[D7]:T7,[A7]:415},[],[]];E9.registerError(QHe,wze);var $He=[T9,E9],D9=[0,$,FVe,8,0],O9=[0,$,f7,8,0],k9=[0,$,m7,8,0],A9=[0,$,h7,8,0],j9=[0,$,PVe,{[sHe]:1},42],eUe=[3,$,jze,0,[r7],[[0,{[Q]:d9}]]],tUe=[3,$,Mze,0,[q8,G5,S7,i7,j5,TBe],[[0,1],[0,1],[0,{[N7]:L7}],[0,{[Q]:f9}],[0,{[Q]:n9}],[6,{[Q]:_He}]],3],nUe=[3,$,q8,0,[X5,Gze,X8,J8],[0,4,0,0]],rUe=[3,$,Bze,0,[gBe,x7],[0,0]],iUe=[3,$,eBe,0,[t7],[0]],aUe=[3,$,Kze,0,[CVe],[[()=>RUe,{[z7]:1,[B7]:wVe}]]],oUe=[3,$,rBe,0,[N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,n7],[0,0,0,0,0,0,0,0,0,0,0,1]],sUe=[3,$,qze,{[B7]:Yze},[K5,q8,G5,F5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,u7,C7,h7,Y8,r7],[0,0,0,[0,{[Q]:t9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Q]:h9}],[0,{[Q]:C9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:d9}]]],cUe=[3,$,Xze,0,[q8,G5,S7,nVe,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,tVe,i7,j5,V5,U5,d7,f7,p7],[[0,1],[0,1],[0,{[N7]:L7}],[()=>aUe,{[j7]:1,[B7]:_5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[1,{[Q]:SHe}],[0,{[Q]:f9}],[0,{[Q]:n9}],[0,{[Q]:H5}],[0,{[Q]:W5}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}]],3],lUe=[3,$,e5,0,[KBe,K5,q8,RVe],[0,()=>wUe,()=>rUe,[()=>N9,0]]],uUe=[3,$,Uze,0,[K5,J8],[[0,{[Q]:K5}],[0,{[Q]:uHe}]]],dUe=[3,$,Wze,0,[q8,G8,e5,L5,R5,z5,SBe,B5,uVe,pVe,Vze],[[0,1],[0,{[Q]:V7}],[()=>lUe,{[j7]:1,[B7]:e5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:gHe}],[0,{[Q]:o9}],[2,{[Q]:pHe}],[0,{[Q]:wHe}],[0,{[Q]:fHe}]],1],fUe=[3,$,Jze,{[B7]:ABe},[Oze,Fze,q8,G5,S7,u7,d7,p7,h7,m7,Y8,r7,$8,x5],[[4,{[Q]:cHe}],[0,{[Q]:lHe}],[0,{[B7]:q8}],0,0,[0,{[Q]:h9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:d9}],[0,{[Q]:H7}],[0,{[Q]:X7}]]],pUe=[3,$,Zze,0,[q8,G5,G8,t5,s5,l5,u5,C5,I5,L5,R5,z5,B5,J5,u7,l7,w7,d7,f7,p7,h7,m7,Y8,i7,b7,$5,e7,Q5,j5,$8,x5],[[0,1],[0,1],[0,{[Q]:V7}],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[0,{[Q]:S5}],[4,{[Q]:I5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[128,{[M7]:s9}],[0,{[Q]:h9}],[0,{[Q]:p9}],[0,{[Q]:w9}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:f9}],[0,{[Q]:S9}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}],[0,{[Q]:n9}],[0,{[Q]:H7}],[0,{[Q]:X7}]],2],mUe=[3,$,sBe,{[B7]:cBe},[O5,u7,h7,m7,Y8],[[()=>jUe,{[B7]:O5}],[0,{[Q]:h9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}]],1],hUe=[3,$,lBe,0,[q8,LVe,u7,h7,m7,Y8],[[0,1],[0,{[Q]:hHe}],[0,{[Q]:h9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}]],1],gUe=[3,$,pBe,0,[k5,C7,r7],[[2,{[Q]:e9}],[0,{[Q]:C9}],[0,{[Q]:d9}]]],_Ue=[3,$,mBe,0,[q8,G5,$Be,C7,i7,zze,j5,V5,EBe,DBe],[[0,1],[0,1],[0,{[Q]:bHe}],[0,{[N7]:R7}],[0,{[Q]:f9}],[2,{[Q]:dHe}],[0,{[Q]:n9}],[0,{[Q]:H5}],[6,{[Q]:vHe}],[1,{[Q]:yHe}]],2],vUe=[3,$,bBe,0,[Z8,k5,Pze,F5,NVe,q5,p5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,eVe,C7,t5,s5,l5,u5,aBe,C5,I5,M5,w7,u7,J5,d7,p7,h7,Y8,l7,r7,MVe,gVe,zVe,$5,e7,Q5],[[()=>j9,16],[2,{[Q]:e9}],[0,{[Q]:qVe}],[0,{[Q]:t9}],[0,{[Q]:DHe}],[4,{[Q]:JBe}],[1,{[Q]:f5}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[1,{[Q]:xHe}],[0,{[Q]:C9}],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[0,{[Q]:oBe}],[0,{[Q]:S5}],[4,{[Q]:I5}],[0,{[Q]:M5}],[0,{[Q]:w9}],[0,{[Q]:h9}],[128,{[M7]:s9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:p9}],[0,{[Q]:d9}],[0,{[Q]:OHe}],[1,{[Q]:CHe}],[1,{[Q]:kHe}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}]]],yUe=[3,$,xBe,0,[q8,G5,V5,kBe,U5,LBe,o7,TVe,EVe,DVe,OVe,kVe,AVe,C7,d7,f7,p7,i7,n7,j5,$ze],[[0,1],[0,1],[0,{[Q]:H5}],[4,{[Q]:OBe}],[0,{[Q]:W5}],[4,{[Q]:RBe}],[0,{[Q]:o7}],[0,{[N7]:eHe}],[0,{[N7]:tHe}],[0,{[N7]:nHe}],[0,{[N7]:rHe}],[0,{[N7]:iHe}],[6,{[N7]:aHe}],[0,{[N7]:R7}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[0,{[Q]:f9}],[1,{[N7]:F7}],[0,{[Q]:n9}],[0,{[Q]:mHe}]],2],bUe=[3,$,UBe,{[B7]:VBe},[Q8,Z5,w5,t7],[[()=>IUe,0],()=>M9,0,0]],xUe=[3,$,WBe,0,[QBe,w5,t7,X8],[[1,{[N7]:QVe}],[0,{[N7]:E7}],[0,{[N7]:P7}],[0,{[N7]:JVe}]]],SUe=[3,$,XBe,{[B7]:GBe},[IBe,dBe,X5,t7,A5,Y5,iBe,P5,BBe,w5,rVe,s7,r7],[2,[()=>zUe,{[z7]:1}],0,0,0,1,[()=>LUe,{[z7]:1}],0,1,0,0,0,[0,{[Q]:d9}]]],CUe=[3,$,ZBe,0,[q8,A5,P5,Y5,t7,w5,vBe,s7,i7,j5,mVe],[[0,1],[0,{[N7]:YVe}],[0,{[N7]:XVe}],[1,{[N7]:$Ve}],[0,{[N7]:P7}],[0,{[N7]:E7}],[2,{[N7]:ZVe}],[0,{[N7]:oHe}],[0,{[Q]:f9}],[0,{[Q]:n9}],[64,{[Q]:THe}]],1],wUe=[3,$,qBe,0,[x7,X5],[0,0]],TUe=[3,$,hVe,0,[G5,q5,N5,$8,x5,_7,l7,Z5,a7],[0,4,0,[64,{[z7]:1}],0,1,0,()=>M9,()=>AUe]],M9=[3,$,Z5,0,[fBe,wBe],[0,0]],EUe=[3,$,vVe,0,[F5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,u7,C7,d7,p7,h7,m7,Y8,_7,r7],[[0,{[Q]:t9}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[0,{[Q]:h9}],[0,{[Q]:C9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[1,{[Q]:EHe}],[0,{[Q]:d9}]]],DUe=[3,$,yVe,0,[q8,G5,G8,Z8,t5,s5,l5,u5,p5,g5,C5,$8,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,I5,V5,U5,L5,R5,z5,B5,KVe,J5,u7,l7,w7,d7,f7,p7,h7,m7,Y8,i7,b7,$5,e7,Q5,j5],[[0,1],[0,1],[0,{[Q]:V7}],[()=>j9,16],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[1,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:S5}],[0,{[Q]:m9}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[4,{[Q]:I5}],[0,{[Q]:H5}],[0,{[Q]:W5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[1,{[Q]:AHe}],[128,{[M7]:s9}],[0,{[Q]:h9}],[0,{[Q]:p9}],[0,{[Q]:w9}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:f9}],[0,{[Q]:S9}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}],[0,{[Q]:n9}]],2],OUe=[3,$,xVe,0,[C7],[[0,{[Q]:C9}]]],kUe=[3,$,SVe,0,[q8,G5,b7,C7,g5,$8,j5,i7],[[0,1],[0,1],[()=>NUe,{[j7]:1,[B7]:b7}],[0,{[N7]:R7}],[0,{[Q]:m5}],[0,{[Q]:m9}],[0,{[Q]:n9}],[0,{[Q]:f9}]],3],AUe=[3,$,a7,0,[FBe,jVe],[2,4]],jUe=[3,$,IVe,0,[K8,c7,g7,F5],[[0,{[B7]:K8}],[()=>D9,{[B7]:c7}],[()=>D9,{[B7]:g7}],[4,{[B7]:F5}]],4],MUe=[3,$,y7,0,[G5,GVe],[0,0],2],NUe=[3,$,b7,0,[v7],[[()=>N9,0]],1],PUe=[3,$,UVe,0,[u7,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,d7,p7,h7,Y8,r7],[[0,{[Q]:h9}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:d9}]]],FUe=[3,$,WVe,0,[q8,G5,n7,S7,Z8,p5,g5,$8,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,d7,f7,p7,i7,j5],[[0,1],[0,1],[1,{[N7]:F7}],[0,{[N7]:L7}],[()=>j9,16],[1,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:m9}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[0,{[Q]:f9}],[0,{[Q]:n9}]],4],IUe=[1,$,Q8,0,[()=>nUe,{[B7]:q8}]],LUe=[1,$,tBe,0,()=>iUe],RUe=[1,$,nBe,0,()=>oUe],zUe=[1,$,dVe,0,[()=>TUe,0]],N9=[1,$,v7,0,[()=>MUe,{[B7]:y7}]],BUe=[9,$,Aze,{[O7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>tUe,()=>eUe],VUe=[9,$,_5,{[O7]:[`POST`,`/{Key+}`,200]},()=>cUe,()=>sUe],HUe=[9,$,Hze,{[O7]:[`PUT`,`/`,200]},()=>dUe,()=>uUe],UUe=[9,$,Qze,{[O7]:[`POST`,`/{Key+}?uploads`,200]},()=>pUe,()=>fUe],WUe=[9,$,uBe,{[O7]:[`GET`,`/?session`,200]},()=>hUe,()=>mUe],GUe=[9,$,hBe,{[O7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>_Ue,()=>gUe],KUe=[9,$,yBe,{[k7]:`-`,[O7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>yUe,()=>vUe],qUe=[9,$,HBe,{[O7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>xUe,()=>bUe],JUe=[9,$,YBe,{[O7]:[`GET`,`/?list-type=2`,200]},()=>CUe,()=>SUe],YUe=[9,$,_Ve,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>DUe,()=>EUe],XUe=[9,$,bVe,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?tagging`,200]},()=>kUe,()=>OUe],ZUe=[9,$,HVe,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>FUe,()=>PUe],QUe=class extends je.classBuilder().ep({...U8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[nee(n,e.getEndpointParameterInstructions()),v6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(WUe).build(){},$Ue={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:browser":`yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`yarn g:vitest watch -c vitest.config.browser.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/middleware-flexible-checksums":`^3.974.32`,"@aws-sdk/middleware-sdk-s3":`^3.972.53`,"@aws-sdk/signature-v4-multi-region":`^3.996.35`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1072.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function P9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var F9={name:`SHA-1`},I9={name:`HMAC`,hash:F9},eWe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),tWe={};function L9(){return typeof window<`u`?window:typeof self<`u`?self:tWe}var nWe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){L9().crypto.subtle.importKey(`raw`,R9(e),I9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!P9(e)){var t=R9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return L9().crypto.subtle.sign(I9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):P9(this.toHash)?Promise.resolve(eWe):Promise.resolve().then(function(){return L9().crypto.subtle.digest(F9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function R9(e){return typeof e==`string`?lee(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var rWe=function(){function e(e){if(iee(L9()))this.hash=new nWe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(fee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function iWe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},oWe=[1732584193,4023233417,2562383102,271733878],sWe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(cWe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=lWe(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=B9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=B9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=B9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=B9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=B9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=B9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=B9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=B9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=B9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=B9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=B9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=B9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=B9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=B9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=B9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=B9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=V9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=V9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=V9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=V9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=V9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=V9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=V9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=V9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=V9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=V9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=V9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=V9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=V9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=V9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=V9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=V9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=H9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=H9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=H9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=H9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=H9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=H9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=H9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=H9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=H9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=H9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=H9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=H9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=H9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=H9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=H9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=H9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=U9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=U9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=U9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=U9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=U9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=U9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=U9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=U9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=U9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=U9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=U9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=U9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=U9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=U9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=U9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=U9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(oWe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function z9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function B9(e,t,n,r,i,a,o){return z9(t&n|~t&r,e,t,i,a,o)}function V9(e,t,n,r,i,a,o){return z9(t&r|n&~r,e,t,i,a,o)}function H9(e,t,n,r,i,a,o){return z9(t^n^r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return z9(n^(t|~r),e,t,i,a,o)}function cWe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function lWe(e){return typeof e==`string`?ht(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var uWe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??bt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??B8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??dee,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??rze,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Qe}],logger:e?.logger??new ze,protocol:e?.protocol??qRe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:$He,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??xt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??Me,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ze,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??ht,utf8Encoder:e?.utf8Encoder??vt}),dWe=e=>{let t=Se(e),n=()=>t().then(Ve),r=uWe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??wt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:$Ue.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??mee,maxAttempts:e?.maxAttempts??3,md5:e?.md5??sWe,region:e?.region??$e(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha1:e?.sha1??rWe,sha256:e?.sha256??se,streamCollector:e?.streamCollector??ut,streamHasher:e?.streamHasher??aWe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},fWe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},pWe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),mWe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),ie(e),fWe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),pt(n),We(n),pWe(n))},hWe=class extends Te{config;constructor(...[e]){let t=dWe(e||{});super(t),this.initConfig=t;let n=mWe(ERe(ize(pee(Ue(ve(Ee(Le(vRe(ke(aze(t))))))))),{session:[()=>this,QUe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:nze,identityProviderConfigProvider:async e=>new mt({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(oe(this.config)),this.middlewareStack.use(KRe(this.config)),this.middlewareStack.use(XRe(this.config)),this.middlewareStack.use(CRe(this.config)),this.middlewareStack.use(jRe(this.config)),this.middlewareStack.use(IRe(this.config))}destroy(){super.destroy()}},W9=`ap-southeast-2`,G9=`${window.location.protocol}//localhost:9999`,gWe=`${window.location.protocol}//localhost:8443`,K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function _We(){if(!K9){let e=at();if(!e)throw Error(`AWS credentials not configured`);K9=new nj({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),K9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return K9}function vWe(){if(!q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);q9=new jSe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function yWe(){if(!J9){let e=at();if(!e)throw Error(`AWS credentials not configured`);J9=new lMe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function bWe(){if(!Y9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Y9=new Fte({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function xWe(){if(!X9){let e=at();if(!e)throw Error(`AWS credentials not configured`);X9=new fRe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function SWe(){if(!Q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Q9=new YL({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function CWe(){if(!$9){let e=at();if(!e)throw Error(`AWS credentials not configured`);$9=new Eme({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function wWe(){if(!Z9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Z9=new hWe({endpoint:gWe,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Z9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Z9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function TWe(){K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{rRe as $,Qk as $n,Ote as $r,CSe as $t,PLe as A,RL as An,kA as Ar,rMe as At,WLe as B,zk as Bn,zA as Br,uSe as Bt,g6 as C,jL as Cn,SA as Cr,Xje as Ct,jLe as D,FL as Dn,EA as Dr,eMe as Dt,mRe as E,PL as En,TA as Er,$je as Et,zLe as F,UL as Fn,PA as Fr,aSe as Ft,YLe as G,Wk as Gn,WA as Gr,hSe as Gt,KLe as H,Vk as Hn,VA as Hr,fSe as Ht,BLe as I,Zj as In,FA as Ir,oSe as It,QLe as J,qk as Jn,qA as Jr,vSe as Jt,XLe as K,Gk as Kn,GA as Kr,gSe as Kt,VLe as L,nM as Ln,IA as Lr,sSe as Lt,ILe as M,BL as Mn,jA as Mr,nSe as Mt,LLe as N,VL as Nn,MA as Nr,rSe as Nt,MLe as O,IL as On,DA as Or,tMe as Ot,RLe as P,HL as Pn,NA as Pr,iSe as Pt,nRe as Q,Zk as Qn,Vte as Qr,SSe as Qt,HLe as R,lj as Rn,LA as Rr,cSe as Rt,v6 as S,tR as Sn,bA as Sr,Yje as St,h6 as T,NL as Tn,wA as Tr,Qje as Tt,qLe as U,Hk as Un,HA as Ur,pSe as Ut,GLe as V,Bk as Vn,BA as Vr,dSe as Vt,JLe as W,Uk as Wn,UA as Wr,mSe as Wt,eRe as X,Yk as Xn,YA as Xr,bSe as Xt,$Le as Y,Jk as Yn,JA as Yr,ySe as Yt,tRe as Z,Xk as Zn,XA as Zr,xSe as Zt,JUe as _,gme as _n,gA as _r,Wje as _t,CWe as a,ime as an,iA as ar,Mje as at,ZUe as b,yme as bn,yA as br,qje as bt,xWe as c,sme as cn,sA as cr,Fje as ct,VUe as d,ume as dn,uA as dr,Rje as dt,kte as ei,wSe as en,$k as er,iRe as et,HUe as f,dme as fn,dA as fr,zje as ft,qUe as g,hme as gn,hA as gr,Uje as gt,KUe as h,mme as hn,mA as hr,Hje as ht,SWe as i,XQ as in,rA as ir,jje as it,FLe as j,zL as jn,AA as jr,LSe as jt,NLe as k,LL as kn,OA as kr,nMe as kt,wWe as l,cme as ln,cA as lr,Ije as lt,GUe as m,pme as mn,pA as mr,Vje as mt,bWe as n,It as ni,Mme as nn,tA as nr,oRe as nt,vWe as o,ame as on,aA as or,Nje as ot,UUe as p,fme as pn,fA as pr,Bje as pt,ZLe as q,Kk as qn,KA as qr,_Se as qt,_We as r,Et as ri,rme as rn,nA as rr,hMe as rt,yWe as s,ome as sn,oA as sr,Pje as st,TWe as t,qee as ti,TSe as tn,eA as tr,aRe as tt,BUe as u,lme as un,lA as ur,Lje as ut,YUe as v,_me as vn,_A as vr,Gje as vt,_Re as w,ML as wn,CA as wr,Zje as wt,U8 as x,bme as xn,xA as xr,Jje as xt,XUe as y,vme as yn,vA as yr,Kje as yt,ULe as z,Rk as zn,RA as zr,lSe as zt}; \ No newline at end of file +import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{B as i,E as a,R as o,V as s,W as c,j as l,k as ee,l as te,o as ne,t as re}from"./useStore.js";import{$ as ie,A as ae,B as oe,C as se,Ct as ce,Dt as le,E as ue,Et as de,F as fe,Ft as pe,G as me,H as he,J as ge,K as _e,L as ve,M as ye,Mt as be,N as xe,Nt as Se,O as Ce,Ot as we,P as Te,Pt as Ee,Q as De,R as Oe,S as ke,St as Ae,T as je,Tt as eee,U as tee,V as Me,W as Ne,X as Pe,Y as Fe,Z as Ie,_ as Le,_t as Re,b as ze,bt as Be,ct as Ve,dt as He,et as Ue,ft as We,g as Ge,gt as Ke,ht as qe,it as Je,j as Ye,jt as Xe,k as Ze,kt as Qe,lt as $e,mt as et,nt as tt,ot as nt,q as rt,r as it,rt as at,st as ot,tt as nee,ut as st,v as ct,vt as lt,w as ut,wt as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt}from"./auth.js";import{A as ree,C as iee,D as aee,F as _t,I as vt,M as oee,N as yt,O as bt,P as xt,S as St,c as Ct,f as wt,j as see,k as Tt,p as cee,s as lee,u as Et,v as Dt,x as Ot}from"./tslib.es6.js";import{n as uee,r as dee}from"./index.browser.js";var fee=`Error preloading route! ☝️`,pee=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{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=pee()})),At=n(r(),1);t();var mee=n(kt(),1);function hee(e,t){let n=c(),r=i(t),{activeProps:ie,inactiveProps:ae,activeOptions:oe,to:se,preload:ce,preloadDelay:le,preloadIntentProximity:ue,hashScrollIntoView:de,replace:fe,startTransition:pe,resetScroll:me,viewTransition:he,children:ge,target:_e,disabled:ve,style:ye,className:be,onClick:xe,onBlur:Se,onFocus:Ce,onMouseEnter:we,onMouseLeave:Te,onTouchStart:Ee,ignoreBlocker:De,params:Oe,search:ke,hash:Ae,state:je,mask:eee,reloadDocument:tee,unsafeRelative:Me,from:Ne,_fromLocation:Pe,...Fe}=e,Ie=o(),Le=At.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Re=re(n.stores.location,e=>e,(e,t)=>e.href===t.href),ze=At.useMemo(()=>{let e={_fromLocation:Re,...Le};return n.buildLocation(e)},[n,Re,Le]),Be=ze.maskedLocation?ze.maskedLocation.publicHref:ze.publicHref,Ve=ze.maskedLocation?ze.maskedLocation.external:ze.external,He=At.useMemo(()=>Ft(Be,Ve,n.history,ve),[ve,Ve,Be,n.history]),Ue=At.useMemo(()=>{if(He?.external)return l(He.href,n.protocolAllowlist)?void 0:He.href;if(!It(se)&&!(typeof se!=`string`||se.indexOf(`:`)===-1))try{return new URL(se),l(se,n.protocolAllowlist)?void 0:se}catch{}},[se,He,n.protocolAllowlist]),We=At.useMemo(()=>{if(Ue)return!1;if(oe?.exact){if(!ne(Re.pathname,ze.pathname,n.basepath))return!1}else{let e=te(Re.pathname,n.basepath),t=te(ze.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(oe?.includeSearch??!0)&&!a(Re.search,ze.search,{partial:!oe?.exact,ignoreUndefined:!oe?.explicitUndefined})?!1:oe?.includeHash?Ie&&Re.hash===ze.hash:!0},[oe?.exact,oe?.explicitUndefined,oe?.includeHash,oe?.includeSearch,Re,Ue,Ie,ze.hash,ze.pathname,ze.search,n.basepath]),Ge=We?ee(ie,{})??gee:jt,Ke=We?jt:ee(ae,{})??jt,qe=[be,Ge.className,Ke.className].filter(Boolean).join(` `),Je=(ye||Ge.style||Ke.style)&&{...ye,...Ge.style,...Ke.style},[Ye,Xe]=At.useState(!1),Ze=At.useRef(!1),Qe=e.reloadDocument||Ue?!1:ce??n.options.defaultPreload,$e=le??n.options.defaultPreloadDelay??0,et=At.useCallback(()=>{n.preloadRoute({...Le,_builtLocation:ze}).catch(e=>{console.warn(e),console.warn(fee)})},[n,Le,ze]);s(r,At.useCallback(e=>{e?.isIntersecting&&et()},[et]),Nt,{disabled:!!ve||Qe!==`viewport`}),At.useEffect(()=>{Ze.current||!ve&&Qe===`render`&&(et(),Ze.current=!0)},[ve,et,Qe]);let tt=e=>{let t=e.currentTarget.getAttribute(`target`),r=_e===void 0?t:_e;if(!ve&&!Rt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,mee.flushSync)(()=>{Xe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Xe(!1)});n.navigate({...Le,replace:fe,resetScroll:me,hashScrollIntoView:de,startTransition:pe,viewTransition:he,ignoreBlocker:De})}};if(Ue)return{...Fe,ref:r,href:Ue,...ge&&{children:ge},..._e&&{target:_e},...ve&&{disabled:ve},...ye&&{style:ye},...be&&{className:be},...xe&&{onClick:xe},...Se&&{onBlur:Se},...Ce&&{onFocus:Ce},...we&&{onMouseEnter:we},...Te&&{onMouseLeave:Te},...Ee&&{onTouchStart:Ee}};let nt=e=>{if(ve||Qe!==`intent`)return;if(!$e){et();return}let t=e.currentTarget;if(Mt.has(t))return;let n=setTimeout(()=>{Mt.delete(t),et()},$e);Mt.set(t,n)},rt=e=>{ve||Qe!==`intent`||et()},it=e=>{if(ve||!Qe||!$e)return;let t=e.currentTarget,n=Mt.get(t);n&&(clearTimeout(n),Mt.delete(t))};return{...Fe,...Ge,...Ke,href:He?.href,ref:r,onClick:Pt([xe,tt]),onBlur:Pt([Se,it]),onFocus:Pt([Ce,nt]),onMouseEnter:Pt([we,nt]),onMouseLeave:Pt([Te,it]),onTouchStart:Pt([Ee,rt]),disabled:!!ve,target:_e,...Je&&{style:Je},...qe&&{className:qe},...ve&&_ee,...We&&vee,...Ie&&Ye&&yee}}var jt={},gee={className:`active`},_ee={role:`link`,"aria-disabled":!0},vee={"data-status":`active`,"aria-current":`page`},yee={"data-transitioning":`transitioning`},Mt=new WeakMap,Nt={rootMargin:`100px`},Pt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Ft(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function It(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Lt=At.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=hee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return At.createElement(`a`,t,o)}return At.createElement(n,a,o)});function Rt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var zt=class extends We{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=dt.of(e?.input),l=[],ee=[],te=!1,ne,re=new Ee({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(re,s),this.setHostPrefix(re,e,r);let t=eee(e.traits);if(t.http){re.method=t.http[0];let[e,n]=t.http[1].split(`?`);re.path==`/`?re.path=e:re.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(re.path.includes(`{${e}+}`)||re.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();re.path.includes(`{${e}+}`)?re.path=re.path.replace(`{${e}+}`,n.split(`/`).map(qe).join(`/`)):re.path.includes(`{${e}}`)&&(re.path=re.path.replace(`{${e}}`,qe(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return re.headers=o,re.query=a,re.body=ne,re}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=dt.of(e.output),a={};if(n.statusCode>=300){let i=await Ke(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await Ke(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await Ke(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=dt.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=wt(n.body);else if(n.body){let i=await Ke(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?iee(o,`,`,2):St(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Bt=class extends et{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new $e(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=dt.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??yt;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??_t;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Vt=class extends et{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=dt.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(st(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=Tt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??xt)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:aee(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=bt.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??xt)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Et():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Ht=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Vt(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=dt.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function Ut(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new Ot(e,`bigDecimal`):BigInt(e)}return t}var bee=(e,t)=>Ke(e,t).then(e=>(t?.utf8Encoder??yt)(e)),xee=(e,t)=>bee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),Wt=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Gt=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},See=(e,t)=>Kt(e,t,[`header`,`code`,`type`]),Cee=(e,t,n=!1)=>Kt(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),Kt=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=Wt(e??{},`x-amzn-errortype`);if(n!==void 0)return Gt(e[n]);break;case`code`:let r=Wt(t??{},`code`);if(r&&t[r]!==void 0)return Gt(t[r]);break;case`type`:if(t?.__type!==void 0)return Gt(t.__type);break}},wee=class extends mt{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,Ut):await xee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=dt.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new ct(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return vt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?bt.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(st(r,this.settings)){case 5:return see(t);case 6:return oee(t);case 7:return ree(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof Ot)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new Ot(e.string,e.type):new Ot(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof Ot?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},Tee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof Ot){let e=`${`Νnv`+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},Eee=class extends mt{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=dt.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Tee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=dt.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=dt.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??xt)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(st(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return Tt(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof Ot&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Et();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?bt.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??xt)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof Ot?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},qt=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Eee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new wee(this.settings);return e.setSerdeContext(this.serdeContext),e}},Dee=class extends He{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new qt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new ze(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(le(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=Cee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=dt.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},re=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=re.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},Jt=class extends Dee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},Oee=class extends zt{serializer;deserializer;codec;mixin=new ze;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new qt(n),this.serializer=new Ht(this.codec.createSerializer(),n),this.deserializer=new Bt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=dt.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=See(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=dt.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},kee=/[&<>"]/g,Aee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function jee(e){return e.replace(kee,e=>Aee[e])}var Mee=/[&"'<>\r\n\u0085\u2028]/g,Nee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function Pee(e){return e.replace(Mee,e=>Nee[e])}var Yt=class{value;constructor(e){this.value=e}toString(){return Pee(``+this.value)}},Xt=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new Yt(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${jee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Fee=class extends Ge{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Iee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Lee=class extends mt{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=dt.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??vt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Xt.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=Xt.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=Xt.of(e);if(typeof n!=`string`)if(t instanceof Xt||t instanceof Yt)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=Xt.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=Xt.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[re,ie]=this.getXmlnsAttribute(e,r),ae=(e,t,n)=>{let r=Xt.of(s,t),[i,a]=this.getXmlnsAttribute(o,ie);a&&r.addAttribute(i,a),e.addChildNode(r);let l=Xt.of(ee);c.isListSchema()?this.writeList(c,n,l,ie):c.isMapSchema()?this.writeMap(c,n,l,ie,!0):c.isStructSchema()?l=this.writeStruct(c,n,ie):this.writeSimpleInto(c,n,l,ie),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=Xt.of(a.xmlName??e.getMemberName());ae(t,r,i),n.addChildNode(t)}}else{let r;i||(r=Xt.of(a.xmlName??e.getMemberName()),ie&&r.addAttribute(re,ie),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=Xt.of(`entry`);ae(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=dt.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??xt)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(st(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=Tt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=Tt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof Ot?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Et():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=dt.of(e),o=new Yt(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Ree=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Lee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Le(this.settings);return e.setSerdeContext(this.serdeContext),e}},zee=class extends zt{codec;serializer;deserializer;mixin=new ze;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Ree(t),this.serializer=new Ht(this.codec.createSerializer(),t),this.deserializer=new Bt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Iee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=dt.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Bee=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Vee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Hee=e=>{let t=[];switch(e.operation){default:t.push(Vee(e))}return t},Uee=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Wee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),Gee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Kee={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},Zt=`ref`,Qt=-1,$t=!0,en=`isSet`,tn=`PartitionResult`,nn=`booleanEquals`,rn=`getAttr`,an={[Zt]:`Endpoint`},on={[Zt]:tn},sn={},cn=[{[Zt]:`Region`}],ln={conditions:[[en,[an]],[en,cn],[`aws.partition`,cn,tn],[nn,[{[Zt]:`UseFIPS`},$t]],[nn,[{[Zt]:`UseDualStack`},$t]],[nn,[{fn:rn,argv:[on,`supportsDualStack`]},$t]],[nn,[{fn:rn,argv:[on,`supportsFIPS`]},$t]],[`stringEquals`,[{fn:rn,argv:[on,`name`]},`aws-us-gov`]]],results:[[Qt],[Qt,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Qt,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[an,sn],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,sn],[Qt,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,sn],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,sn],[Qt,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,sn],[Qt,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,sn],[Qt,`Invalid Configuration: Missing Region`]]},qee=2,Jee=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Yee=he.from(Jee,qee,ln.conditions,ln.results),Xee=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Zee=(e,t={})=>Xee.get(e,()=>gt(Yee,{endpointParams:e,logger:t.logger}));oe.aws=fe;var un=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Qee=class e extends un{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$ee=class e extends un{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ete=class e extends un{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tte=class e extends un{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nte=class e extends un{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rte=class e extends un{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ite=class e extends un{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},ate=class e extends un{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dn=class e extends un{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fn=class e extends un{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pn=class e extends un{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mn=class e extends un{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hn=class e extends un{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gn=class e extends un{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_n=class e extends un{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vn=class e extends un{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yn=`AccessDeniedException`,bn=`Certificate`,xn=`CreatedAt`,Sn=`CertificateArn`,Cn=`CertificateChain`,wn=`ConflictException`,Tn=`CertificateSummary`,En=`CertificateSummaryList`,Dn=`CertificateStatuses`,On=`DomainName`,kn=`Exported`,An=`ExtendedKeyUsages`,jn=`ExportOption`,Mn=`Filters`,Nn=`HasAdditionalSubjectAlternativeNames`,Pn=`ImportedAt`,Fn=`InvalidArgsException`,In=`InvalidArnException`,Ln=`IssuedAt`,Rn=`ImportCertificate`,zn=`ImportCertificateRequest`,Bn=`ImportCertificateResponse`,Vn=`InvalidDomainValidationOptionsException`,Hn=`InvalidParameterException`,Un=`InvalidStateException`,Wn=`InvalidTagException`,Gn=`InUse`,Kn=`Includes`,qn=`Key`,Jn=`KeyAlgorithm`,Yn=`KeyUsages`,Xn=`ListCertificates`,Zn=`ListCertificatesRequest`,Qn=`ListCertificatesResponse`,$n=`LimitExceededException`,er=`Message`,tr=`ManagedBy`,nr=`MaxItems`,rr=`NotAfter`,ir=`NotBefore`,ar=`NextToken`,or=`PrivateKey`,sr=`PrivateKeyBlob`,cr=`RevokedAt`,lr=`RenewalEligibility`,ur=`RequestInProgressException`,dr=`ResourceInUseException`,fr=`ResourceNotFoundException`,pr=`Status`,mr=`SubjectAlternativeNameSummaries`,hr=`SortBy`,gr=`SortOrder`,_r=`Type`,vr=`ThrottlingException`,yr=`TagList`,br=`TooManyTagsException`,xr=`TagPolicyException`,Sr=`ThrottlingReason`,Cr=`ThrottlingReasonList`,wr=`Tags`,Tr=`Tag`,Er=`Value`,Dr=`ValidationException`,Or=`awsQueryError`,kr=`client`,Ar=`error`,jr=`extendedKeyUsage`,Mr=`exportOption`,Nr=`httpError`,Pr=`keyTypes`,Fr=`keyUsage`,Ir=`message`,Lr=`managedBy`,Rr=`reason`,zr=`resource`,Br=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,Vr=`throttlingReasons`,u=`com.amazonaws.acm`,Hr=ce.for(Br),Ur=[-3,Br,`ACMServiceException`,0,[],[]];Hr.registerError(Ur,un);var Wr=ce.for(u),Gr=[-3,u,yn,{[Or]:[`AccessDenied`,403],[Ar]:kr,[Nr]:403},[er],[0]];Wr.registerError(Gr,Qee);var Kr=[-3,u,wn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Kr,dn);var qr=[-3,u,Fn,{[Ar]:kr},[Ir],[0]];Wr.registerError(qr,hn);var Jr=[-3,u,In,{[Ar]:kr},[Ir],[0]];Wr.registerError(Jr,$ee);var Yr=[-3,u,Vn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Yr,_n);var Xr=[-3,u,Hn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Xr,ete);var Zr=[-3,u,Un,{[Ar]:kr},[Ir],[0]];Wr.registerError(Zr,vn);var Qr=[-3,u,Wn,{[Ar]:kr},[Ir],[0]];Wr.registerError(Qr,tte);var $r=[-3,u,$n,{[Ar]:kr},[Ir],[0]];Wr.registerError($r,mn);var ote=[-3,u,ur,{[Ar]:kr},[Ir],[0]];Wr.registerError(ote,pn);var ste=[-3,u,dr,{[Ar]:kr},[Ir],[0]];Wr.registerError(ste,fn);var cte=[-3,u,fr,{[Ar]:kr},[Ir],[0]];Wr.registerError(cte,nte);var lte=[-3,u,xr,{[Ar]:kr},[Ir],[0]];Wr.registerError(lte,rte);var ute=[-3,u,vr,{[Or]:[`Throttling`,400],[Ar]:kr,[Nr]:400},[Ir,Vr],[0,()=>Tte]];Wr.registerError(ute,ite);var dte=[-3,u,br,{[Ar]:kr},[Ir],[0]];Wr.registerError(dte,ate);var fte=[-3,u,Dr,{[Or]:[`ValidationError`,400],[Ar]:kr,[Nr]:400},[Ir],[0]];Wr.registerError(fte,gn);var pte=[Hr,Wr],mte=[0,u,sr,8,21],hte=[3,u,Tn,0,[Sn,On,mr,Nn,pr,_r,Jn,Yn,An,jn,Gn,kn,lr,ir,rr,xn,Ln,Pn,cr,tr],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],gte=[3,u,Mn,0,[jr,Fr,Pr,Mr,Lr],[64,64,64,0,0]],_te=[3,u,zn,0,[bn,or,Sn,Cn,wr],[21,[()=>mte,0],0,21,()=>wte],2],vte=[3,u,Bn,0,[Sn],[0]],yte=[3,u,Zn,0,[Dn,Kn,ar,nr,hr,gr],[64,()=>gte,0,1,0,0]],bte=[3,u,Qn,0,[ar,En],[0,()=>Cte]],xte=[3,u,Tr,0,[qn,Er],[0,0],1],Ste=[3,u,Sr,0,[Rr,zr],[0,0]],Cte=[1,u,En,0,()=>hte],wte=[1,u,yr,0,()=>xte],Tte=[1,u,Cr,0,()=>Ste],Ete=[9,u,Rn,0,()=>_te,()=>vte],Dte=[9,u,Xn,0,()=>yte,()=>bte],Ote=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Zee,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Hee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Jt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:pte,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),kte=e=>{let t=Ye(e),n=()=>t().then(pt),r=Ote(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:Kee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Ate=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},jte=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Mte=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),Ate(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),jte(n))},Nte=class extends we{config;constructor(...[e]){let t=kte(e||{});super(t),this.initConfig=t;let n=Mte(Uee(Oe(Ue(ye(at(_e(Wee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:Bee,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},Pte=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Fte(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Ite=e=>{let t=[];switch(e.operation){default:t.push(Fte(e))}return t},Lte=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Rte=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),zte={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Bte={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/middleware-sdk-ec2":`^3.972.37`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},ei=`ref`,ti=-1,ni=!0,ri=`isSet`,ii=`PartitionResult`,ai=`booleanEquals`,oi=`getAttr`,si={[ei]:`Endpoint`},ci={[ei]:ii},li={},ui=[{[ei]:`Region`}],di={conditions:[[ri,[si]],[ri,ui],[`aws.partition`,ui,ii],[ai,[{[ei]:`UseFIPS`},ni]],[ai,[{[ei]:`UseDualStack`},ni]],[ai,[{fn:oi,argv:[ci,`supportsDualStack`]},ni]],[ai,[{fn:oi,argv:[ci,`supportsFIPS`]},ni]],[`stringEquals`,[{fn:oi,argv:[ci,`name`]},`aws-us-gov`]]],results:[[ti],[ti,`Invalid Configuration: FIPS and custom endpoint are not supported`],[ti,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[si,li],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,li],[ti,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,li],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,li],[ti,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,li],[ti,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,li],[ti,`Invalid Configuration: Missing Region`]]},Vte=2,Hte=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Ute=he.from(Hte,Vte,di.conditions,di.results),Wte=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Gte=(e,t={})=>Wte.get(e,()=>gt(Ute,{endpointParams:e,logger:t.logger}));oe.aws=fe;var Kte=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},fi=`Address`,qte=`AllocateAddressRequest`,Jte=`AllocateAddressResult`,Yte=`AssociateAddressRequest`,Xte=`AssociateAddressResult`,Zte=`AllAvailabilityZones`,Qte=`AllocateAddress`,$te=`ApplianceArn`,ene=`AssociateAddress`,tne=`AttachedAppliances`,nne=`AttributeBooleanValue`,rne=`AssociateCarrierIpAddress`,ine=`AdditionalFlexibleNetworkInterfaces`,ane=`AvailableIpAddressCount`,pi=`AssignIpv6AddressOnCreation`,one=`AttachInternetGateway`,sne=`AttachInternetGatewayRequest`,cne=`AssociateIamInstanceProfile`,lne=`AssociateIamInstanceProfileRequest`,une=`AssociateIamInstanceProfileResult`,dne=`AllocationIdList`,fne=`AssociationIdList`,mi=`AdditionalInfo`,hi=`AllocationId`,gi=`AllocationIds`,_i=`AssociationId`,pne=`AssociationIds`,vi=`AttachmentId`,mne=`AmiLaunchIndex`,hne=`AttachmentLimitType`,gne=`AddressList`,yi=`AvailabilityMode`,_ne=`AssociatePublicIpAddress`,vne=`AmazonProvidedIpv6CidrBlock`,yne=`AutoProvisionZones`,bne=`AutoRecoverySupported`,xne=`AssociateRouteTableRequest`,Sne=`AssociateRouteTableResult`,Cne=`AssociateRouteTable`,wne=`AllowReassociation`,Tne=`AllRegions`,bi=`AssociatedResource`,xi=`AutoRecovery`,Si=`AssociationState`,Ene=`AuthorizeSecurityGroupEgress`,Dne=`AuthorizeSecurityGroupEgressRequest`,One=`AuthorizeSecurityGroupEgressResult`,kne=`AuthorizeSecurityGroupIngressRequest`,Ane=`AuthorizeSecurityGroupIngressResult`,jne=`AuthorizeSecurityGroupIngress`,Mne=`AutoScalingIps`,Ci=`AmdSevSnp`,Nne=`AttachmentState`,Pne=`ArchitectureTypeList`,wi=`AttachTime`,Fne=`AttachVolumeRequest`,Ine=`AttributeValue`,Lne=`AttachVolume`,Ti=`AvailabilityZone`,Ei=`AvailabilityZoneAddress`,Di=`AvailabilityZoneAddresses`,Rne=`AvailabilityZoneGeography`,zne=`AvailabilityZoneGeographyList`,Oi=`AvailabilityZoneId`,Bne=`AvailabilityZoneList`,Vne=`AvailabilityZoneMessage`,Hne=`AvailabilityZoneMessageList`,Une=`AvailabilityZoneSubGeography`,Wne=`AvailabilityZoneSubGeographyList`,Gne=`AvailabilityZones`,ki=`Accelerators`,Kne=`Addresses`,qne=`Affinity`,Ai=`Arn`,ji=`Architecture`,Jne=`Associations`,Mi=`Association`,Yne=`Attribute`,Ni=`Attachment`,Pi=`Attachments`,Xne=`BlobAttributeValue`,Zne=`BaselineBandwidthInGbps`,Fi=`BaselineBandwidthInMbps`,Ii=`BlockDeviceMapping`,Qne=`BlockDeviceMappingList`,$ne=`BlockDeviceMappingRequestList`,Li=`BlockDeviceMappings`,ere=`BlockDurationMinutes`,Ri=`BaselineIops`,zi=`BootMode`,tre=`BootModeTypeList`,nre=`BareMetal`,Bi=`BlockPublicAccessStates`,rre=`BurstablePerformanceSupported`,Vi=`BaselineThroughputInMBps`,Hi=`BandwidthWeighting`,ire=`BandwidthWeightingTypeList`,are=`BandwidthWeightings`,Ui=`CidrBlock`,ore=`CidrBlockAssociationSet`,sre=`CapacityBlockId`,cre=`CidrBlockState`,lre=`CoreCountList`,Wi=`CoreCount`,ure=`CpuCredits`,Gi=`CompletionDurationMinutes`,dre=`CreationDate`,Ki=`CarrierGatewayId`,fre=`CurrentGeneration`,qi=`CarrierIp`,pre=`CurrentInstanceBootMode`,mre=`CreateInternetGateway`,hre=`CreateInternetGatewayRequest`,gre=`CreateInternetGatewayResult`,_re=`CreateImageRequest`,vre=`CreateImageResult`,Ji=`CidrIp`,Yi=`CidrIpv6`,Xi=`CidrIpv4`,yre=`CoreInfo`,bre=`CreateImage`,xre=`CreateKeyPair`,Sre=`CreateKeyPairRequest`,Zi=`CoreNetworkArn`,Cre=`CreateNatGateway`,wre=`CreateNatGatewayRequest`,Tre=`CreateNatGatewayResult`,Qi=`CpuOptions`,$i=`CustomerOwnedIp`,ea=`CustomerOwnedIpv4Pool`,Ere=`CpuOptionsRequest`,Dre=`CreatePlacementGroup`,Ore=`CreatePlacementGroupRequest`,kre=`CreatePlacementGroupResult`,ta=`CapacityReservationId`,na=`CapacityReservationPreference`,Are=`CreateRouteRequest`,ra=`CapacityReservationResourceGroupArn`,jre=`CreateRouteResult`,Mre=`CapacityReservationSpecificationResponse`,ia=`CapacityReservationSpecification`,aa=`CapacityReservationTarget`,Nre=`CapacityReservationTargetResponse`,Pre=`CreateRouteTableRequest`,Fre=`CreateRouteTableResult`,Ire=`CreateRouteTable`,Lre=`CreateRoute`,Rre=`CreateSecurityGroup`,zre=`CreateSecurityGroupRequest`,Bre=`CreateSecurityGroupResult`,Vre=`CopySnapshotRequest`,Hre=`CopySnapshotRequestPSU`,Ure=`CopySnapshotResult`,Wre=`CreateSnapshotRequest`,Gre=`CreateSubnetRequest`,Kre=`CreateSubnetResult`,qre=`CreditSpecificationRequest`,Jre=`CopySnapshot`,Yre=`CreditSpecification`,Xre=`CreateSnapshot`,Zre=`CreateSubnet`,oa=`CurrentState`,sa=`ClientToken`,ca=`ConnectionTrackingConfiguration`,la=`ConnectionTrackingSpecification`,ua=`ConnectionTrackingSpecificationRequest`,da=`ConnectionTrackingSpecificationResponse`,fa=`CompletionTime`,pa=`ConnectivityType`,ma=`CreateTime`,ha=`CreateVolumeRequest`,ga=`CreateVpcRequest`,_a=`CreateVpcResult`,va=`CreateVolume`,ya=`CreateVpc`,ba=`Code`,xa=`Configured`,Sa=`Count`,Ca=`DescribeAddressesRequest`,wa=`DescribeAddressesResult`,Ta=`DisassociateAddressRequest`,Ea=`DisableApiStop`,Da=`DisableApiTermination`,Oa=`DestinationAvailabilityZone`,ka=`DescribeAvailabilityZonesRequest`,Aa=`DescribeAvailabilityZonesResult`,ja=`DescribeAvailabilityZones`,Ma=`DescribeAddresses`,Na=`DisassociateAddress`,Pa=`DestinationCidrBlock`,Fa=`DefaultConnectionTrackingConfiguration`,Ia=`DefaultCores`,La=`DataEncryptionKeyId`,Ra=`DefaultEnaQueueCountPerInterface`,za=`DefaultForAz`,Ba=`DedicatedHostsSupported`,Va=`DeviceIndex`,Ha=`DestinationIpv6CidrBlock`,Ua=`DeleteInternetGateway`,Wa=`DeleteInternetGatewayRequest`,Ga=`DescribeInternetGatewaysRequest`,Ka=`DescribeInternetGatewaysResult`,qa=`DetachInternetGatewayRequest`,Ja=`DescribeInternetGateways`,Ya=`DetachInternetGateway`,Xa=`DisassociateIamInstanceProfile`,Za=`DescribeIamInstanceProfileAssociations`,Qa=`DescribeIamInstanceProfileAssociationsRequest`,$a=`DescribeIamInstanceProfileAssociationsResult`,eo=`DisassociateIamInstanceProfileRequest`,to=`DisassociateIamInstanceProfileResult`,no=`DiskInfoList`,ro=`DescribeImagesRequest`,io=`DescribeImagesResult`,ao=`DescribeInstancesRequest`,oo=`DescribeInstancesResult`,so=`DescribeInstanceTypesRequest`,co=`DescribeInstanceTypesResult`,lo=`DescribeInstanceTypes`,uo=`DescribeImages`,fo=`DescribeInstances`,po=`DiskInfo`,mo=`DeleteKeyPair`,ho=`DeleteKeyPairRequest`,go=`DeleteKeyPairResult`,_o=`DescribeKeyPairsRequest`,vo=`DescribeKeyPairsResult`,yo=`DescribeKeyPairs`,bo=`DisableLniAtDeviceIndex`,xo=`DeviceName`,So=`DefaultNetworkCardIndex`,Co=`DeleteNatGateway`,wo=`DeleteNatGatewayRequest`,To=`DeleteNatGatewayResult`,Eo=`DescribeNatGatewaysRequest`,Do=`DescribeNatGatewaysResult`,Oo=`DescribeNatGateways`,ko=`DestinationOutpostArn`,Ao=`DhcpOptionsId`,jo=`DeleteOnTermination`,Mo=`DeletePlacementGroup`,No=`DeletePlacementGroupRequest`,Po=`DescribePlacementGroupsRequest`,Fo=`DescribePlacementGroupsResult`,Io=`DescribePlacementGroups`,Lo=`DestinationPrefixListId`,Ro=`DeregistrationProtection`,d=`DryRun`,zo=`DeleteRouteRequest`,Bo=`DescribeRegionsRequest`,Vo=`DescribeRegionsResult`,Ho=`DeleteRouteTable`,Uo=`DeleteRouteTableRequest`,Wo=`DescribeRouteTablesRequest`,Go=`DescribeRouteTablesResult`,Ko=`DisassociateRouteTableRequest`,qo=`DescribeRouteTables`,Jo=`DisassociateRouteTable`,Yo=`DestinationRegion`,Xo=`DeleteRoute`,Zo=`DescribeRegions`,Qo=`DeleteSecurityGroup`,$o=`DeleteSecurityGroupRequest`,es=`DeleteSecurityGroupResult`,ts=`DescribeSecurityGroupsRequest`,ns=`DescribeSecurityGroupsResult`,rs=`DescribeSecurityGroups`,is=`DeleteSnapshotRequest`,as=`DeleteSubnetRequest`,os=`DescribeSnapshotsRequest`,ss=`DescribeSnapshotsResult`,cs=`DescribeSubnetsRequest`,ls=`DescribeSubnetsResult`,us=`DeleteSnapshot`,ds=`DeleteSubnet`,fs=`DescribeSnapshots`,ps=`DescribeSubnets`,ms=`DefaultTcpEstablishedTimeout`,hs=`DefaultThreadsPerCore`,gs=`DeprecationTime`,_s=`DeleteTime`,vs=`DefaultUdpStreamTimeout`,ys=`DefaultUdpTimeout`,bs=`DefaultVCpus`,xs=`DeleteVolumeRequest`,Ss=`DeleteVpcRequest`,Cs=`DescribeVolumesRequest`,ws=`DescribeVolumesResult`,Ts=`DescribeVpcsRequest`,Es=`DescribeVpcsResult`,Ds=`DetachVolumeRequest`,Os=`DeleteVolume`,ks=`DeleteVpc`,As=`DescribeVolumes`,js=`DescribeVpcs`,Ms=`DetachVolume`,Ns=`Description`,Ps=`Device`,Fs=`Disks`,Is=`Domain`,Ls=`EbsBlockDevice`,Rs=`ExecutableByStringList`,zs=`ExecutableBy`,Bs=`EbsCardIndex`,Vs=`EbsCardInfoList`,Hs=`EbsCardInfo`,Us=`EbsCards`,Ws=`EncryptionControl`,Gs=`EnableDns64`,Ks=`ElasticFileSystem`,qs=`ElasticFileSystemExclusion`,Js=`ElasticGpuAssociation`,Ys=`ElasticGpuAssociationId`,Xs=`ElasticGpuAssociationList`,Zs=`ElasticGpuAssociationState`,Qs=`ElasticGpuAssociationTime`,$s=`ElasticGpuAssociations`,ec=`ElasticGpuId`,tc=`ElasticGpuSpecification`,nc=`ElasticGpuSpecifications`,rc=`ElasticInferenceAccelerator`,ic=`ElasticInferenceAcceleratorAssociation`,ac=`ElasticInferenceAcceleratorAssociationId`,oc=`ElasticInferenceAcceleratorAssociationList`,sc=`ElasticInferenceAcceleratorAssociationState`,cc=`ElasticInferenceAcceleratorAssociationTime`,lc=`ElasticInferenceAcceleratorArn`,uc=`ElasticInferenceAcceleratorAssociations`,dc=`ElasticInferenceAccelerators`,fc=`EbsInstanceBlockDevice`,pc=`EbsInstanceBlockDeviceSpecification`,mc=`EncryptionInTransitSupported`,hc=`EbsInfo`,gc=`EfaInfo`,_c=`EnableLniAtDeviceIndex`,vc=`EbsOptimized`,yc=`EbsOptimizedInfo`,bc=`EgressOnlyInternetGateway`,xc=`EgressOnlyInternetGatewayExclusion`,Sc=`EgressOnlyInternetGatewayId`,Cc=`EnclaveOptionsRequest`,wc=`EbsOptimizedSupport`,Tc=`EnclaveOptions`,Ec=`EnablePrimaryIpv6`,Dc=`EnaQueueCount`,Oc=`EnableResourceNameDnsAAAARecord`,kc=`EnableResourceNameDnsAAAARecordOnLaunch`,Ac=`EnableResourceNameDnsARecord`,jc=`EnableResourceNameDnsARecordOnLaunch`,Mc=`EnaSrdEnabled`,Nc=`EnaSrdSpecification`,Pc=`EnaSrdSpecificationRequest`,Fc=`EnaSrdSupported`,Ic=`EnaSrdUdpEnabled`,Lc=`EnaSrdUdpSpecification`,Rc=`EnaSrdUdpSpecificationRequest`,zc=`EfaSupported`,Bc=`EncryptionSupport`,Vc=`EnaSupport`,Hc=`EndTime`,Uc=`ExecutableUsers`,Wc=`Ebs`,Gc=`Enabled`,Kc=`Encrypted`,qc=`Endpoint`,Jc=`Force`,Yc=`FailureCode`,Xc=`FpgaDeviceInfo`,Zc=`FpgaDeviceInfoList`,Qc=`FpgaDeviceMemoryInfo`,$c=`FlexibleEnaQueuesSupport`,el=`FpgaInfo`,tl=`FilterList`,nl=`FailureMessage`,rl=`FromPort`,il=`FastRestored`,al=`FullSnapshotSizeInBytes`,ol=`FreeTierEligible`,sl=`Filters`,cl=`Filter`,ll=`Fpgas`,ul=`Groups`,dl=`GroupArn`,fl=`GetConsoleOutput`,pl=`GetConsoleOutputRequest`,ml=`GetConsoleOutputResult`,hl=`GroupDescription`,gl=`GpuDeviceInfo`,_l=`GpuDeviceInfoList`,vl=`GpuDeviceMemoryInfo`,yl=`GatewayId`,bl=`GroupIdentifierList`,xl=`GroupIdStringList`,Sl=`GpuInfo`,Cl=`GroupId`,wl=`GroupIds`,Tl=`GroupIdentifier`,El=`GroupLongName`,Dl=`GroupName`,Ol=`GroupNameStringList`,kl=`GroupNames`,Al=`GroupOwnerId`,jl=`GpuPartitionSize`,Ml=`Geography`,Nl=`Gpus`,Pl=`HiddenByDefault`,Fl=`HttpEndpoint`,Il=`HostId`,Ll=`HibernationOptions`,Rl=`HibernationOptionsRequest`,zl=`HttpProtocolIpv6`,Bl=`HttpPutResponseHopLimit`,Vl=`HostResourceGroupArn`,Hl=`HibernationSupported`,Ul=`HttpTokens`,Wl=`HostnameType`,Gl=`Hibernate`,Kl=`Hypervisor`,ql=`Id`,Jl=`Ipv6Addresses`,Yl=`Ipv6AddressAttribute`,Xl=`Ipv6AddressCount`,Zl=`InstanceAttachmentEnaSrdSpecification`,Ql=`InstanceAttachmentEnaSrdUdpSpecification`,$l=`InferenceAcceleratorInfo`,eu=`Ipv4AddressesPerInterface`,tu=`Ipv6AddressesPerInterface`,nu=`Ipv4AddressesPerSecondaryInterface`,ru=`ImageAllowed`,iu=`IpAddress`,au=`Ipv6Address`,ou=`InstanceBlockDeviceMapping`,su=`InstanceBlockDeviceMappingList`,cu=`InstanceBlockDeviceMappingSpecification`,lu=`InstanceBlockDeviceMappingSpecificationList`,uu=`Ipv6CidrBlock`,du=`Ipv6CidrBlockAssociationSet`,fu=`Ipv6CidrBlockNetworkBorderGroup`,pu=`Ipv6CidrBlockState`,mu=`IncludeDeprecated`,hu=`InferenceDeviceInfo`,gu=`InferenceDeviceInfoList`,_u=`InferenceDeviceMemoryInfo`,vu=`IncludeDisabled`,yu=`IsDefault`,bu=`IsEgress`,xu=`InternetGateway`,Su=`InternetGatewayAttachment`,Cu=`InternetGatewayAttachmentList`,wu=`InternetGatewayBlockMode`,Tu=`InternetGatewayExclusion`,Eu=`InternetGatewayId`,Du=`InternetGatewayIdList`,Ou=`InternetGatewayIds`,ku=`InternetGatewayList`,Au=`InternetGateways`,ju=`InstanceId`,Mu=`InstanceIpv6Address`,Nu=`InstanceIpv6AddressList`,Pu=`InstanceInterruptionBehavior`,Fu=`IamInstanceProfile`,Iu=`IamInstanceProfileAssociation`,Lu=`IamInstanceProfileAssociationSet`,Ru=`IamInstanceProfileAssociations`,zu=`Ipv6IpamPoolId`,Bu=`Ipv4IpamPoolId`,Vu=`InstanceIpv4PrefixList`,Hu=`InstanceIpv6PrefixList`,Uu=`IamInstanceProfileSpecification`,Wu=`InstanceIpv4Prefix`,Gu=`InstanceIpv6Prefix`,Ku=`InstanceInitiatedShutdownBehavior`,qu=`ImageIdStringList`,Ju=`InstanceIdStringList`,Yu=`ImageId`,Xu=`ImageIds`,Zu=`InstanceIds`,Qu=`ImportKeyPair`,$u=`ImportKeyPairRequest`,ed=`ImportKeyPairResult`,td=`ImageLocation`,nd=`ImageList`,rd=`InstanceLifecycle`,id=`InstanceList`,ad=`IpList`,od=`InstanceMaintenanceOptions`,sd=`InstanceMaintenanceOptionsRequest`,cd=`InstanceMarketOptionsRequest`,ld=`InstanceMetadataOptionsRequest`,ud=`InstanceMetadataOptionsResponse`,dd=`InstanceMarketOptions`,fd=`IncludeManagedResources`,pd=`InstanceMetadataTags`,md=`Ipv6Native`,hd=`InstanceNetworkInterface`,gd=`InstanceNetworkInterfaceAssociation`,_d=`InstanceNetworkInterfaceAttachment`,vd=`InstanceNetworkInterfaceList`,yd=`InstanceNetworkInterfaceSpecification`,bd=`InstanceNetworkInterfaceSpecificationList`,xd=`Ipv6NetmaskLength`,Sd=`Ipv4NetmaskLength`,Cd=`InstanceNetworkPerformanceOptions`,wd=`InstanceNetworkPerformanceOptionsRequest`,Td=`ImageOwnerAlias`,Ed=`IpOwnerId`,Dd=`InstanceOwnerId`,Od=`InstanceOwningService`,kd=`Ipv6PrefixCount`,Ad=`Ipv4PrefixCount`,jd=`IpPermissionsEgress`,Md=`IpamPoolId`,Nd=`InstancePrivateIpAddress`,Pd=`InstancePrivateIpAddressList`,Fd=`IsPrimaryIpv6`,Id=`IncludePublicKey`,Ld=`IpPermissionList`,Rd=`Ipv4PrefixList`,zd=`Ipv6PrefixList`,Bd=`Ipv4PrefixSpecificationRequest`,Vd=`Ipv6PrefixSpecificationRequest`,Hd=`Ipv6Prefixes`,Ud=`IpPermissions`,Wd=`IpPermission`,Gd=`IpProtocol`,Kd=`Ipv6Prefix`,qd=`Ipv6Pool`,Jd=`Ipv4Prefixes`,Yd=`Ipv4Prefix`,Xd=`IsPrimary`,Zd=`IpRangeList`,Qd=`Ipv6RangeList`,$d=`IpRanges`,ef=`IpRange`,tf=`Ipv6Ranges`,nf=`Ipv6Range`,rf=`InstanceStateChange`,af=`InstanceStateChangeList`,of=`InstanceSecondaryInterfaceAttachment`,Qre=`InstanceSecondaryInterfaceList`,$re=`InstanceSecondaryInterfacePrivateIpAddress`,eie=`InstanceSecondaryInterfacePrivateIpAddressList`,tie=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,nie=`InstanceSecondaryInterfacePrivateIpAddressRequest`,rie=`InstanceSecondaryInterfaceSpecificationListRequest`,iie=`InstanceSecondaryInterfaceSpecificationRequest`,aie=`InstanceSecondaryInterface`,sf=`InstanceStorageInfo`,oie=`InstanceStorageSupported`,sie=`ImdsSupport`,cie=`InstanceState`,cf=`IpSource`,lie=`Ipv6Supported`,lf=`InstanceType`,uie=`InstanceTypeInfoList`,die=`InstanceTypeInfo`,fie=`ImageType`,uf=`InstanceTenancy`,df=`InstanceTypes`,ff=`InterfaceType`,pie=`IncludeUnsupportedInRegion`,mie=`ImageWatermarks`,hie=`ImageWatermarkList`,gie=`ImageWatermark`,_ie=`Images`,vie=`Image`,yie=`Instance`,bie=`Instances`,pf=`Iops`,xie=`Key`,Sie=`KeyFormat`,mf=`KeyFingerprint`,hf=`KernelId`,gf=`KmsKeyId`,Cie=`KeyMaterial`,_f=`KeyName`,wie=`KeyNameStringList`,Tie=`KeyNames`,Eie=`KeyPairs`,vf=`KeyPairId`,Die=`KeyPairIdStringList`,Oie=`KeyPairIds`,kie=`KeyPairInfo`,Aie=`KeyPairList`,jie=`KeyPair`,yf=`KeyType`,Mie=`Kernel`,bf=`LicenseConfigurationArn`,Nie=`LicenseConfigurationRequest`,Pie=`LicenseConfiguration`,Fie=`LambdaExclusion`,Iie=`LogicalGpuCount`,xf=`LocalGatewayId`,Sf=`LinkedGroupId`,Lie=`LicenseList`,Rie=`LastLaunchedTime`,zie=`LicenseSpecifications`,Bie=`LicenseSpecificationListRequest`,Vie=`LicenseSpecification`,Hie=`LaunchTemplate`,Uie=`LaunchTemplateId`,Wie=`LaunchTemplateName`,Gie=`LaunchTemplateSpecification`,Kie=`LaunchTime`,qie=`Latest`,Jie=`Lambda`,Yie=`Licenses`,Xie=`Location`,Cf=`MultiAttachEnabled`,wf=`MediaAcceleratorInfo`,Tf=`MacAddress`,Ef=`MaximumBandwidthInMbps`,Df=`MapCustomerOwnedIpOnLaunch`,Zie=`MaxCount`,Qie=`MinCount`,$ie=`MediaDeviceInfo`,eae=`MediaDeviceInfoList`,tae=`MediaDeviceMemoryInfo`,nae=`MaximumEbsAttachments`,rae=`MaximumEbsCards`,iae=`MaximumEfaInterfaces`,aae=`MaximumEnaQueueCount`,oae=`MaximumEnaQueueCountPerInterface`,Of=`MaximumIops`,sae=`ModifyInstanceAttributeRequest`,cae=`ModifyInstanceAttributeValue`,lae=`ModifyInstanceAttribute`,kf=`MemoryInfo`,uae=`MaximumNetworkCards`,Af=`MaximumNetworkInterfaces`,jf=`MetadataOptions`,Mf=`MaintenanceOptions`,Nf=`MapPublicIpOnLaunch`,dae=`MaxPrice`,Pf=`MaxResults`,fae=`ModifySubnetAttributeRequest`,pae=`ModifySubnetAttribute`,mae=`MaximumSecondaryNetworkInterfaces`,Ff=`ModificationState`,hae=`MarketType`,If=`MaximumThroughputInMBps`,gae=`ModifyVolumeRequest`,_ae=`ModifyVolumeResult`,vae=`ModifyVolume`,yae=`Main`,Lf=`Manufacturer`,bae=`Managed`,Rf=`Message`,xae=`Messages`,zf=`Mode`,Bf=`Monitoring`,Vf=`Name`,Hf=`NetworkBorderGroup`,Sae=`NetworkCards`,Uf=`NetworkCardIndex`,Cae=`NetworkCardInfoList`,wae=`NetworkCardInfo`,Wf=`NoDevice`,Tae=`NeuronDeviceCoreInfo`,Eae=`NeuronDeviceInfo`,Dae=`NeuronDeviceInfoList`,Oae=`NeuronDeviceMemoryInfo`,kae=`NeuronDevices`,Aae=`NitroEnclavesSupport`,Gf=`NatGateway`,jae=`NatGatewayAddresses`,Mae=`NatGatewayAttachedAppliance`,Nae=`NatGatewayAttachedApplianceList`,Pae=`NatGatewayAddressList`,Fae=`NatGatewayAddress`,Iae=`NatGatewayExclusion`,Kf=`NatGatewayId`,Lae=`NatGatewayIdStringList`,Rae=`NatGatewayIds`,zae=`NatGatewayList`,Bae=`NatGateways`,qf=`NetworkInterfaceId`,Vae=`NetworkInterfaceOwnerId`,Jf=`NetworkInterfaces`,Yf=`NetworkInfo`,Xf=`NeuronInfo`,Zf=`NetworkPerformanceOptions`,Qf=`NetworkPerformance`,Hae=`NoReboot`,$f=`NvmeSupport`,ep=`NitroTpmInfo`,Uae=`NitroTpmSupport`,Wae=`NitroTpmSupportedVersionsList`,tp=`NextToken`,np=`NestedVirtualization`,Gae=`Origin`,rp=`OutpostArn`,Kae=`OwnerAlias`,ip=`OwnerId`,ap=`OptInStatus`,qae=`OriginalIops`,Jae=`OwnerIds`,Yae=`OriginalMultiAttachEnabled`,op=`OdbNetworkArn`,Xae=`OperatorRequest`,Zae=`OperatorResponse`,Qae=`OwnerStringList`,$ae=`OriginalSize`,eoe=`OriginalThroughput`,toe=`OriginalVolumeType`,sp=`Operator`,noe=`Output`,roe=`Owners`,cp=`Owner`,lp=`Principal`,up=`ProvisionedBandwidth`,ioe=`PeakBandwidthInGbps`,aoe=`ProductCodeId`,ooe=`ProductCodeList`,soe=`ProductCodeType`,dp=`PartitionCount`,coe=`ProductCode`,fp=`ProductCodes`,loe=`PrivateDnsHostnameTypeOnLaunch`,pp=`PrivateDnsName`,mp=`PrivateDnsNameOptions`,hp=`PrivateDnsNameOptionsOnLaunch`,uoe=`PrivateDnsNameOptionsRequest`,doe=`PrivateDnsNameOptionsResponse`,gp=`PublicDnsName`,_p=`PlatformDetails`,vp=`PlacementGroup`,yp=`PlacementGroupInfo`,foe=`PlacementGroupIdStringList`,poe=`PlacementGroupList`,moe=`PlacementGroupStrategyList`,hoe=`PlacementGroups`,bp=`PublicIp`,goe=`PrivateIpAddressCount`,_oe=`PrivateIpAddressSpecification`,voe=`PrivateIpAddressSpecificationList`,xp=`PrivateIpAddress`,Sp=`PrivateIpAddresses`,yoe=`PublicIpAddress`,Cp=`PublicIpv4Pool`,boe=`PublicIpStringList`,xoe=`PrimaryIpv6`,Soe=`PrivateIp`,wp=`ProcessorInfo`,Coe=`PublicIps`,woe=`PublicKey`,Toe=`PublicKeyMaterial`,Tp=`PrefixListId`,Eoe=`PrefixListIdList`,Doe=`PrefixListIds`,Ooe=`PartitionNumber`,Ep=`PeeringStatus`,koe=`PhcSupport`,Aoe=`PreviousState`,joe=`ProvisionTime`,Moe=`PresignedUrl`,Noe=`PropagatingVgw`,Poe=`PropagatingVgwList`,Foe=`PropagatingVgws`,Ioe=`ParentZoneId`,Loe=`ParentZoneName`,Dp=`Platform`,Op=`Placement`,kp=`Primary`,Ap=`Progress`,Roe=`Provisioned`,zoe=`Public`,jp=`Return`,Boe=`ReleaseAddressRequest`,Voe=`ReleaseAddress`,Hoe=`RestorableByUserIds`,Uoe=`RestorableBy`,Mp=`RootDeviceName`,Np=`RootDeviceType`,Woe=`RootDeviceTypeList`,Goe=`RestoreExpiryTime`,Koe=`ResourceExclusions`,qoe=`RegionGeography`,Joe=`ReferencedGroupId`,Yoe=`ReferencedGroupInfo`,Xoe=`RegionGeographyList`,Zoe=`RunInstancesMonitoringEnabled`,Qoe=`RebootInstancesRequest`,$oe=`RunInstancesRequest`,ese=`RunInstancesUserData`,Pp=`RamdiskId`,tse=`ReservationId`,nse=`RebootInstances`,rse=`RequesterId`,ise=`RunInstances`,ase=`RegionList`,ose=`ReservationList`,sse=`RouteList`,cse=`RebootMigrationSupport`,lse=`RebootMigration`,Fp=`RegionName`,use=`RegionNameStringList`,dse=`RegionNames`,fse=`ReferencedSecurityGroup`,pse=`RevokeSecurityGroupEgress`,mse=`RevokeSecurityGroupEgressRequest`,hse=`RevokeSecurityGroupEgressResult`,gse=`RevokeSecurityGroupIngressRequest`,_se=`RevokeSecurityGroupIngressResult`,vse=`RevokeSecurityGroupIngress`,yse=`RevokedSecurityGroupRule`,bse=`RevokedSecurityGroupRuleList`,Ip=`RevokedSecurityGroupRules`,xse=`RouteTableAssociation`,Sse=`RouteTableAssociationId`,Cse=`RouteTableAssociationList`,wse=`RouteTableAssociationState`,Lp=`RouteTableId`,Tse=`RouteTableIdStringList`,Ese=`RouteTableIds`,Dse=`RouteTableList`,Ose=`ResourceType`,kse=`RequestTime`,Rp=`RouteTable`,Ase=`RouteTables`,jse=`Ramdisk`,Mse=`Regions`,Nse=`Region`,Pse=`Requested`,Fse=`Reservations`,Ise=`Reservation`,Lse=`Route`,Rse=`Routes`,zse=`SecondaryAllocationIds`,Bse=`SecondaryAllocationId`,Vse=`SupportedAdditionalProcessorFeatureList`,Hse=`SubnetArn`,Use=`SupportedArchitectures`,Wse=`SupportedBootModes`,Gse=`SubnetCidrBlockState`,Kse=`SustainedClockSpeedInGhz`,zp=`SourceDestCheck`,qse=`SpreadDomain`,Jse=`SupportedFeatures`,Yse=`SubGeography`,Bp=`SecurityGroupArn`,Vp=`SecurityGroupId`,Xse=`SecurityGroupIdStringList`,Zse=`SecurityGroupIds`,Qse=`SecurityGroupList`,Hp=`SecurityGroupRules`,$se=`SecurityGroupRuleArn`,Up=`SecurityGroupRuleIds`,ece=`SecurityGroupRuleIdList`,Wp=`SecurityGroupRuleId`,tce=`SecurityGroupRuleList`,nce=`SecurityGroupRule`,rce=`SecurityGroupStringList`,Gp=`SecurityGroups`,Kp=`SecurityGroup`,ice=`SubnetIds`,ace=`SubnetIpv6CidrBlockAssociation`,oce=`SubnetIpv6CidrBlockAssociationSet`,sce=`SourceImageCreationTime`,cce=`SizeInGB`,qp=`SourceImageId`,lce=`SecondaryInterfaceId`,uce=`SourceInstanceId`,Jp=`SizeInMiB`,dce=`SpotInstanceRequestId`,Yp=`SourceImageRegion`,fce=`StartInstancesRequest`,pce=`StartInstancesResult`,mce=`StopInstancesRequest`,hce=`StopInstancesResult`,gce=`SupportedInRegion`,_ce=`SnapshotIdStringList`,vce=`SubnetIdStringList`,yce=`SpotInstanceType`,Xp=`SecondaryInterfaces`,bce=`SecondaryInterface`,Zp=`SnapshotId`,xce=`SnapshotIds`,Sce=`StartingInstances`,Cce=`StartInstances`,wce=`StoppingInstances`,Tce=`StopInstances`,Qp=`SubnetId`,Ece=`SnapshotLocation`,Dce=`SnapshotList`,$p=`SpreadLevel`,Oce=`SubnetList`,kce=`ServiceManaged`,Ace=`SpotMarketOptions`,em=`StatusMessage`,tm=`StateMessage`,jce=`SecondaryNetworkId`,nm=`SriovNetSupport`,Mce=`SecondaryNetworkSupported`,Nce=`SpotOptions`,rm=`SkipOsShutdown`,Pce=`SecondaryPrivateIpAddresses`,im=`SecondaryPrivateIpAddressCount`,Fce=`SecondaryPrivateIpAddress`,Ice=`SupportedRootDeviceTypes`,Lce=`SourceRegion`,am=`StateReason`,om=`SourceSecurityGroupName`,sm=`SourceSecurityGroupOwnerId`,Rce=`SourceSnapshotId`,cm=`SecondarySubnetId`,zce=`SupportedStrategies`,lm=`StartTime`,Bce=`StateTransitionReason`,um=`SseType`,Vce=`StorageTier`,Hce=`SupportedUsageClasses`,Uce=`SensitiveUserData`,Wce=`SourceVolumeId`,Gce=`SupportedVirtualizationTypes`,Kce=`SupportedVersions`,dm=`Size`,qce=`Snapshots`,Jce=`Snapshot`,fm=`State`,pm=`Status`,mm=`Strategy`,hm=`Subnet`,Yce=`Subnets`,gm=`Tags`,_m=`TcpEstablishedTimeout`,Xce=`TotalFpgaMemoryInMiB`,vm=`TransitGatewayId`,Zce=`TotalGpuMemoryInMiB`,Qce=`TerminateInstances`,$ce=`TotalInferenceMemoryInMiB`,ele=`TerminateInstancesRequest`,tle=`TerminateInstancesResult`,nle=`TargetIops`,rle=`TerminatingInstances`,ile=`TagList`,ale=`TargetMultiAttachEnabled`,ole=`TotalMediaMemoryInMiB`,sle=`TotalNeuronDeviceMemoryInMiB`,ym=`ToPort`,bm=`ThreadsPerCore`,cle=`ThreadsPerCoreList`,xm=`TagSpecifications`,lle=`TotalSizeInGB`,ule=`TagSpecificationList`,Sm=`TagSpecification`,dle=`TargetSize`,Cm=`TpmSupport`,fle=`TargetThroughput`,ple=`TransferType`,mle=`TargetVolumeType`,wm=`Tag`,hle=`Tenancy`,Tm=`Throughput`,Em=`Timestamp`,Dm=`Type`,gle=`UsageClassTypeList`,Om=`UserData`,km=`UserId`,_le=`UserIdGroupPairs`,vle=`UserIdGroupPairList`,yle=`UserIdGroupPair`,Am=`UnknownIpPermissions`,jm=`UsageOperation`,ble=`UsageOperationUpdateTime`,Mm=`UdpStreamTimeout`,Nm=`UdpTimeout`,Pm=`Value`,xle=`VolumeAttachmentList`,Sle=`VolumeAttachment`,Cle=`VpcCidrBlockAssociation`,wle=`VpcCidrBlockAssociationSet`,Tle=`VpcCidrBlockState`,Fm=`VCpuInfo`,Ele=`ValidCores`,Im=`VpcEncryptionControl`,Dle=`VpcEncryptionControlConfiguration`,Ole=`VpcEncryptionControlExclusion`,kle=`VpcEncryptionControlExclusions`,Ale=`VpcEncryptionControlId`,Lm=`VpcEndpointId`,Rm=`VpcId`,jle=`VpcIpv6CidrBlockAssociation`,Mle=`VpcIpv6CidrBlockAssociationSet`,zm=`VolumeInitializationRate`,Nle=`VolumeIdStringList`,Ple=`VpcIdStringList`,Bm=`VolumeId`,Fle=`VolumeIds`,Ile=`VpcIds`,Lle=`VpcLattice`,Rle=`VpcLatticeExclusion`,zle=`VolumeList`,Ble=`VpcList`,Vm=`VolumeModification`,Hm=`VirtualName`,Vle=`VolumeOwnerId`,Um=`VpcPeeringConnectionId`,Hle=`VpcPeeringExclusion`,Ule=`VirtualPrivateGateway`,Wle=`VirtualPrivateGatewayExclusion`,Gle=`VpcPeering`,Kle=`ValueStringList`,Wm=`VolumeSize`,Gm=`VolumeType`,qle=`VirtualizationTypeList`,Jle=`ValidThreadsPerCore`,Km=`VirtualizationType`,Yle=`ValidUntil`,Xle=`Values`,qm=`Version`,Zle=`Volumes`,Qle=`Volume`,Jm=`Vpc`,$le=`Vpcs`,eue=`WatermarkCreationTime`,tue=`WatermarkKey`,nue=`WorkloadsList`,rue=`Workloads`,Ym=`ZoneId`,iue=`ZoneIdStringList`,aue=`ZoneIds`,Xm=`ZoneName`,oue=`ZoneNameStringList`,sue=`ZoneNames`,cue=`ZoneType`,lue=`attachedApplianceSet`,uue=`applianceArn`,due=`additionalFlexibleNetworkInterfaces`,Zm=`allocationId`,fue=`availableIpAddressCount`,pue=`assignIpv6AddressOnCreation`,Qm=`additionalInfo`,$m=`associationId`,eh=`attachmentId`,mue=`amiLaunchIndex`,hue=`attachmentLimitType`,gue=`availabilityMode`,_ue=`associatePublicIpAddress`,vue=`amazonProvidedIpv6CidrBlock`,yue=`autoProvisionZones`,bue=`autoRecoverySupported`,xue=`allowReassociation`,th=`associatedResource`,Sue=`autoRecovery`,nh=`associationState`,Cue=`autoScalingIps`,wue=`amdSevSnp`,Tue=`addressesSet`,Eue=`associationSet`,rh=`attachmentSet`,Due=`attachmentState`,ih=`attachTime`,ah=`availabilityZone`,oh=`availabilityZoneId`,Oue=`availabilityZoneInfo`,sh=`accelerators`,kue=`affinity`,ch=`arn`,lh=`architecture`,uh=`association`,dh=`attachment`,Aue=`attribute`,jue=`baselineBandwidthInGbps`,fh=`baselineBandwidthInMbps`,ph=`blockDeviceMapping`,mh=`baselineIops`,hh=`bootMode`,Mue=`bareMetal`,gh=`blockPublicAccessStates`,Nue=`burstablePerformanceSupported`,_h=`baselineThroughputInMBps`,Pue=`bandwidthWeighting`,Fue=`bandwidthWeightings`,vh=`cidrBlock`,Iue=`cidrBlockAssociationSet`,Lue=`capacityBlockId`,Rue=`cidrBlockState`,zue=`coreCount`,Bue=`completionDurationMinutes`,Vue=`creationDate`,Hue=`carrierGatewayId`,Uue=`currentGeneration`,yh=`carrierIp`,Wue=`currentInstanceBootMode`,bh=`cidrIp`,xh=`cidrIpv6`,Sh=`cidrIpv4`,Gue=`coreInfo`,Kue=`coreNetworkArn`,que=`cpuOptions`,Ch=`customerOwnedIp`,wh=`customerOwnedIpv4Pool`,Th=`capacityReservationId`,Jue=`capacityReservationPreference`,Yue=`capacityReservationResourceGroupArn`,Xue=`capacityReservationSpecification`,Zue=`capacityReservationTarget`,Que=`currentState`,Eh=`clientToken`,Dh=`connectionTrackingConfiguration`,$ue=`completionTime`,ede=`connectivityType`,Oh=`createTime`,kh=`code`,tde=`configured`,Ah=`count`,jh=`disableApiTermination`,Mh=`destinationCidrBlock`,nde=`defaultCores`,rde=`dataEncryptionKeyId`,ide=`defaultEnaQueueCountPerInterface`,ade=`defaultForAz`,ode=`dedicatedHostsSupported`,Nh=`deviceIndex`,Ph=`destinationIpv6CidrBlock`,Fh=`deviceName`,sde=`defaultNetworkCardIndex`,cde=`dnsName`,lde=`dhcpOptionsId`,Ih=`deleteOnTermination`,ude=`destinationPrefixListId`,dde=`deregistrationProtection`,f=`dryRun`,fde=`destinationRegion`,pde=`defaultTcpEstablishedTimeout`,mde=`defaultThreadsPerCore`,hde=`deprecationTime`,gde=`deleteTime`,_de=`defaultUdpStreamTimeout`,vde=`defaultUdpTimeout`,yde=`defaultVCpus`,Lh=`description`,bde=`device`,xde=`disks`,Rh=`domain`,zh=`ebsCardIndex`,Sde=`ebsCardSet`,Cde=`encryptionControl`,wde=`enableDns64`,Tde=`elasticFileSystem`,Ede=`elasticGpuAssociationId`,Dde=`elasticGpuAssociationState`,Ode=`elasticGpuAssociationSet`,kde=`elasticGpuAssociationTime`,Ade=`elasticGpuId`,jde=`elasticInferenceAcceleratorArn`,Mde=`elasticInferenceAcceleratorAssociationId`,Nde=`elasticInferenceAcceleratorAssociationState`,Pde=`elasticInferenceAcceleratorAssociationSet`,Fde=`elasticInferenceAcceleratorAssociationTime`,Ide=`encryptionInTransitSupported`,Lde=`ebsInfo`,Rde=`efaInfo`,zde=`enableLniAtDeviceIndex`,Bh=`ebsOptimized`,Bde=`ebsOptimizedInfo`,Vde=`egressOnlyInternetGateway`,Vh=`egressOnlyInternetGatewayId`,Hde=`ebsOptimizedSupport`,Ude=`enclaveOptions`,Wde=`enaQueueCount`,p=`ec2QueryName`,Hh=`enableResourceNameDnsAAAARecord`,Uh=`enableResourceNameDnsARecord`,Gde=`enaSrdEnabled`,Kde=`enaSrdSpecification`,qde=`enaSrdSupported`,Jde=`enaSrdUdpEnabled`,Yde=`enaSrdUdpSpecification`,Xde=`efaSupported`,Wh=`encryptionSupport`,Gh=`enaSupport`,Zde=`endTime`,Kh=`ebs`,qh=`enabled`,Jh=`encrypted`,Yh=`failureCode`,Qde=`flexibleEnaQueuesSupport`,$de=`fpgaInfo`,Xh=`failureMessage`,Zh=`fromPort`,efe=`fastRestored`,tfe=`fullSnapshotSizeInBytes`,Qh=`freeTierEligible`,nfe=`force`,rfe=`fpgas`,ife=`groupArn`,afe=`groupDescription`,$h=`gatewayId`,ofe=`gpuInfo`,eg=`groupId`,sfe=`groupLongName`,tg=`groupName`,cfe=`groupOwnerId`,lfe=`gpuPartitionSize`,ng=`geographySet`,rg=`groupSet`,ig=`gpus`,ag=`groups`,og=`hypervisor`,sg=`hiddenByDefault`,cg=`httpEndpoint`,lg=`hostId`,ug=`hibernationOptions`,dg=`httpProtocolIpv6`,fg=`httpPutResponseHopLimit`,pg=`hostResourceGroupArn`,mg=`hibernationSupported`,hg=`httpTokens`,gg=`hostnameType`,_g=`id`,vg=`ipv6AddressAttribute`,yg=`ipv6AddressCount`,bg=`inferenceAcceleratorInfo`,xg=`ipv4AddressesPerInterface`,Sg=`ipv6AddressesPerInterface`,Cg=`ipv4AddressesPerSecondaryInterface`,wg=`ipv6AddressesSet`,Tg=`imageAllowed`,Eg=`ipAddress`,Dg=`ipv6Address`,Og=`ipv6CidrBlock`,kg=`ipv6CidrBlockAssociationSet`,Ag=`ipv6CidrBlockState`,jg=`isDefault`,Mg=`isEgress`,Ng=`internetGateway`,Pg=`internetGatewayBlockMode`,Fg=`internetGatewayId`,Ig=`internetGatewaySet`,Lg=`instanceId`,Rg=`iamInstanceProfile`,zg=`iamInstanceProfileAssociation`,Bg=`iamInstanceProfileAssociationSet`,Vg=`instanceInitiatedShutdownBehavior`,Hg=`imageId`,Ug=`imageLocation`,Wg=`instanceLifecycle`,Gg=`instanceMetadataTags`,Kg=`ipv6Native`,qg=`imageOwnerAlias`,Jg=`imageOwnerId`,Yg=`instanceOwnerId`,Xg=`ipOwnerId`,Zg=`instanceOwningService`,Qg=`ipPermissionsEgress`,$g=`isPrimaryIpv6`,e_=`ipv4PrefixSet`,t_=`ipv6PrefixSet`,n_=`ipProtocol`,r_=`ipPermissions`,i_=`ipv4Prefix`,a_=`ipv6Pool`,o_=`ipv6Prefix`,s_=`isPublic`,c_=`isPrimary`,l_=`ipRanges`,u_=`ipv6Ranges`,d_=`instanceStorageInfo`,f_=`instanceStorageSupported`,p_=`imagesSet`,m_=`imageState`,h_=`imdsSupport`,g_=`instancesSet`,__=`instanceState`,v_=`ipSource`,y_=`ipv6Supported`,b_=`instanceType`,x_=`instanceTypeSet`,S_=`idempotencyToken`,C_=`imageType`,w_=`instanceTenancy`,T_=`interfaceType`,E_=`imageWatermarkSet`,D_=`iops`,m=`item`,O_=`key`,k_=`keyFingerprint`,A_=`kernelId`,j_=`kmsKeyId`,M_=`keyMaterial`,N_=`keyName`,P_=`keyPairId`,F_=`keySet`,I_=`keyType`,L_=`kernel`,R_=`licenseConfigurationArn`,z_=`logicalGpuCount`,B_=`localGatewayId`,V_=`linkedGroupId`,H_=`lastLaunchedTime`,U_=`licenseSet`,W_=`launchTime`,G_=`lambda`,K_=`multiAttachEnabled`,q_=`mediaAcceleratorInfo`,J_=`macAddress`,Y_=`maximumBandwidthInMbps`,X_=`mapCustomerOwnedIpOnLaunch`,Z_=`maximumEbsAttachments`,Q_=`maximumEbsCards`,$_=`maximumEfaInterfaces`,ev=`maximumEnaQueueCount`,tv=`maximumEnaQueueCountPerInterface`,nv=`maximumIops`,rv=`memoryInfo`,iv=`maximumNetworkCards`,av=`maximumNetworkInterfaces`,ov=`metadataOptions`,sv=`maintenanceOptions`,cv=`mapPublicIpOnLaunch`,lv=`maxResults`,uv=`messageSet`,dv=`maximumSecondaryNetworkInterfaces`,fv=`modificationState`,pv=`maximumThroughputInMBps`,mv=`main`,hv=`manufacturer`,gv=`managed`,_v=`message`,vv=`monitoring`,yv=`mode`,bv=`name`,xv=`networkBorderGroup`,Sv=`networkCards`,Cv=`networkCardIndex`,wv=`noDevice`,Tv=`neuronDevices`,Ev=`nitroEnclavesSupport`,Dv=`natGateway`,Ov=`natGatewayAddressSet`,kv=`natGatewayId`,Av=`natGatewaySet`,jv=`networkInterfaceId`,Mv=`networkInterfaceOwnerId`,Nv=`networkInterfaceSet`,Pv=`networkInterface`,Fv=`networkInfo`,Iv=`neuronInfo`,Lv=`networkPerformanceOptions`,Rv=`networkPerformance`,zv=`noReboot`,Bv=`nvmeSupport`,Vv=`nitroTpmInfo`,Hv=`nitroTpmSupport`,Uv=`nextToken`,Wv=`nestedVirtualization`,Gv=`origin`,Kv=`outpostArn`,qv=`ownerAlias`,Jv=`ownerId`,Yv=`optInStatus`,Xv=`originalIops`,Zv=`originalMultiAttachEnabled`,Qv=`odbNetworkArn`,$v=`originalSize`,ey=`originalThroughput`,ty=`originalVolumeType`,ny=`operator`,ry=`output`,iy=`principal`,ay=`provisionedBandwidth`,oy=`peakBandwidthInGbps`,sy=`productCodes`,cy=`partitionCount`,ly=`productCode`,uy=`privateDnsNameOptions`,dy=`privateDnsNameOptionsOnLaunch`,fy=`privateDnsName`,py=`publicDnsName`,my=`platformDetails`,hy=`placementGroup`,gy=`placementGroupInfo`,_y=`placementGroupSet`,vy=`publicIp`,yy=`privateIpAddressesSet`,by=`privateIpAddressSet`,xy=`privateIpAddress`,Sy=`publicIpv4Pool`,Cy=`processorInfo`,wy=`privateIp`,Ty=`publicKey`,Ey=`publicKeyMaterial`,Dy=`prefixListId`,Oy=`prefixListIds`,ky=`partitionNumber`,Ay=`peeringStatus`,jy=`phcSupport`,My=`previousState`,Ny=`provisionTime`,Py=`presignedUrl`,Fy=`propagatingVgwSet`,Iy=`parentZoneId`,Ly=`parentZoneName`,Ry=`platform`,zy=`placement`,By=`primary`,Vy=`progress`,Hy=`provisioned`,Uy=`return`,Wy=`rootDeviceName`,Gy=`rootDeviceType`,Ky=`restoreExpiryTime`,qy=`regionEndpoint`,Jy=`resourceExclusions`,Yy=`referencedGroupId`,Xy=`referencedGroupInfo`,Zy=`reservationId`,Qy=`ramdiskId`,$y=`regionInfo`,eb=`requesterId`,tb=`rebootMigrationSupport`,nb=`rebootMigration`,rb=`regionName`,ib=`revokedSecurityGroupRuleSet`,ab=`reservationSet`,ob=`routeSet`,sb=`routeTableAssociationId`,cb=`routeTableId`,lb=`routeTableSet`,ub=`resourceType`,db=`requestTime`,fb=`routeTable`,pb=`ramdisk`,mb=`reason`,hb=`requested`,gb=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,_b=`supportedArchitectures`,vb=`subnetArn`,yb=`supportedBootModes`,bb=`sustainedClockSpeedInGhz`,xb=`sourceDestCheck`,Sb=`spreadDomain`,Cb=`supportedFeatures`,wb=`securityGroupArn`,Tb=`securityGroupInfo`,Eb=`securityGroupRuleArn`,Db=`securityGroupRuleId`,Ob=`securityGroupRuleSet`,kb=`subGeographySet`,Ab=`sourceImageCreationTime`,jb=`sizeInGB`,Mb=`sourceInstanceId`,Nb=`secondaryInterfaceId`,Pb=`sourceImageId`,Fb=`sizeInMiB`,Ib=`sourceImageRegion`,Lb=`spotInstanceRequestId`,Rb=`supportedInRegion`,zb=`secondaryInterfaceSet`,Bb=`snapshotId`,Vb=`subnetId`,Hb=`spreadLevel`,Ub=`serviceManaged`,Wb=`statusMessage`,Gb=`stateMessage`,Kb=`secondaryNetworkId`,qb=`secondaryNetworkSupported`,Jb=`sriovNetSupport`,Yb=`secondaryPrivateIpAddressCount`,Xb=`supportedRootDeviceTypes`,Zb=`stateReason`,Qb=`sourceSecurityGroupName`,$b=`sourceSecurityGroupOwnerId`,ex=`secondarySubnetId`,tx=`snapshotSet`,nx=`subnetSet`,rx=`supportedStrategies`,ix=`startTime`,ax=`sseType`,ox=`storageTier`,sx=`supportedUsageClasses`,cx=`sourceVolumeId`,lx=`supportedVirtualizationTypes`,ux=`supportedVersions`,dx=`size`,fx=`state`,px=`status`,mx=`strategy`,hx=`subnet`,gx=`tenancy`,_x=`tcpEstablishedTimeout`,vx=`totalFpgaMemoryInMiB`,yx=`transitGatewayId`,bx=`totalGpuMemoryInMiB`,xx=`totalInferenceMemoryInMiB`,Sx=`targetIops`,Cx=`targetMultiAttachEnabled`,wx=`totalMediaMemoryInMiB`,Tx=`totalNeuronDeviceMemoryInMiB`,Ex=`toPort`,Dx=`threadsPerCore`,Ox=`tagSet`,kx=`totalSizeInGB`,Ax=`targetSize`,jx=`tpmSupport`,Mx=`targetThroughput`,Nx=`transferType`,Px=`targetVolumeType`,Fx=`throughput`,Ix=`timestamp`,Lx=`type`,Rx=`userData`,zx=`userId`,Bx=`unknownIpPermissionSet`,Vx=`usageOperation`,Hx=`usageOperationUpdateTime`,Ux=`udpStreamTimeout`,Wx=`udpTimeout`,Gx=`value`,Kx=`vCpuInfo`,qx=`validCores`,Jx=`vpcEncryptionControlId`,Yx=`vpcEndpointId`,Xx=`vpcId`,Zx=`volumeInitializationRate`,Qx=`volumeId`,$x=`vpcLattice`,eS=`volumeModification`,tS=`virtualName`,nS=`volumeOwnerId`,rS=`vpcPeeringConnectionId`,iS=`virtualPrivateGateway`,aS=`vpcPeering`,oS=`volumeSet`,sS=`volumeSize`,cS=`vpcSet`,lS=`volumeType`,uS=`validThreadsPerCore`,dS=`virtualizationType`,fS=`version`,pS=`vpc`,mS=`watermarkCreationTime`,hS=`watermarkKey`,gS=`workloadSet`,h=`xmlName`,_S=`zoneId`,vS=`zoneName`,yS=`zoneState`,bS=`zoneType`,g=`com.amazonaws.ec2`,xS=ce.for(gb),SS=[-3,gb,`EC2ServiceException`,0,[],[]];xS.registerError(SS,Kte);var CS=[xS],wS=[0,g,Hre,8,0],TS=[0,g,cae,8,0],ES=[0,g,ese,8,0],DS=[0,g,Uce,8,0],OS=[3,g,fi,0,[hi,_i,Is,qf,Vae,xp,gm,Cp,Hf,$i,ea,qi,Qp,kce,ju,bp],[[0,{[p]:`AllocationId`,[h]:Zm}],[0,{[p]:`AssociationId`,[h]:$m}],[0,{[p]:`Domain`,[h]:Rh}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`NetworkInterfaceOwnerId`,[h]:Mv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`CustomerOwnedIp`,[h]:Ch}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:wh}],[0,{[p]:`CarrierIp`,[h]:yh}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`ServiceManaged`,[h]:Ub}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`PublicIp`,[h]:vy}]]],kS=[3,g,qte,0,[Is,fi,Cp,Hf,ea,xm,Md,d],[0,0,0,0,0,[()=>Sk,{[h]:Sm}],0,[2,{[p]:`DryRun`,[h]:f}]]],AS=[3,g,Jte,0,[hi,Cp,Hf,Is,$i,ea,qi,bp],[[0,{[p]:`AllocationId`,[h]:Zm}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`Domain`,[h]:Rh}],[0,{[p]:`CustomerOwnedIp`,[h]:Ch}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:wh}],[0,{[p]:`CarrierIp`,[h]:yh}],[0,{[p]:`PublicIp`,[h]:vy}]]],jS=[3,g,Yte,0,[hi,ju,bp,d,qf,xp,wne],[0,0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[2,{[p]:`AllowReassociation`,[h]:xue}]]],MS=[3,g,Xte,0,[_i],[[0,{[p]:`AssociationId`,[h]:$m}]]],NS=[3,g,lne,0,[Fu,ju],[[()=>cT,0],0],2],PS=[3,g,une,0,[Iu],[[()=>sT,{[p]:`IamInstanceProfileAssociation`,[h]:zg}]]],FS=[3,g,xne,0,[Lp,yl,Cp,d,Qp],[[0,{[p]:`RouteTableId`,[h]:cb}],0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SubnetId`,[h]:Vb}]],1],IS=[3,g,Sne,0,[_i,Si],[[0,{[p]:`AssociationId`,[h]:$m}],[()=>XE,{[p]:`AssociationState`,[h]:nh}]]],LS=[3,g,sne,0,[Eu,Rm,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`VpcId`,[h]:Xx}],[2,{[p]:`DryRun`,[h]:f}]],2],RS=[3,g,Fne,0,[Ps,ju,Bm,Bs,d],[0,0,0,1,[2,{[p]:`DryRun`,[h]:f}]],3],zS=[3,g,nne,0,[Pm],[[2,{[p]:`Value`,[h]:Gx}]]],BS=[3,g,Ine,0,[Pm],[[0,{[p]:`Value`,[h]:Gx}]]],VS=[3,g,Dne,0,[Cl,xm,d,om,sm,Gd,rl,ym,Ji,Ud],[[0,{[p]:`GroupId`,[h]:eg}],[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SourceSecurityGroupName`,[h]:Qb}],[0,{[p]:`SourceSecurityGroupOwnerId`,[h]:$b}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Zh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIp`,[h]:bh}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]],1],HS=[3,g,One,0,[jp,Hp],[[2,{[p]:`Return`,[h]:Uy}],[()=>pk,{[p]:`SecurityGroupRuleSet`,[h]:Ob}]]],US=[3,g,kne,0,[Ji,rl,Cl,Dl,Ud,Gd,om,sm,ym,xm,d],[0,1,0,0,[()=>DO,0],0,0,0,1,[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}]]],WS=[3,g,Ane,0,[jp,Hp],[[2,{[p]:`Return`,[h]:Uy}],[()=>pk,{[p]:`SecurityGroupRuleSet`,[h]:Ob}]]],GS=[3,g,Ti,0,[ap,xae,Fp,Xm,Ym,Dl,Hf,cue,Loe,Ioe,El,Ml,Yse,fm],[[0,{[p]:`OptInStatus`,[h]:Yv}],[()=>ID,{[p]:`MessageSet`,[h]:uv}],[0,{[p]:`RegionName`,[h]:rb}],[0,{[p]:`ZoneName`,[h]:vS}],[0,{[p]:`ZoneId`,[h]:_S}],[0,{[p]:`GroupName`,[h]:tg}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`ZoneType`,[h]:bS}],[0,{[p]:`ParentZoneName`,[h]:Ly}],[0,{[p]:`ParentZoneId`,[h]:Iy}],[0,{[p]:`GroupLongName`,[h]:sfe}],[()=>PD,{[p]:`GeographySet`,[h]:ng}],[()=>LD,{[p]:`SubGeographySet`,[h]:kb}],[0,{[p]:`ZoneState`,[h]:yS}]]],KS=[3,g,Ei,0,[Ti,Oi,gi],[0,0,[()=>AD,{[h]:hi}]]],qS=[3,g,Rne,0,[Vf],[[0,{[p]:`Name`,[h]:bv}]]],JS=[3,g,Vne,0,[Rf],[[0,{[p]:`Message`,[h]:_v}]]],YS=[3,g,Une,0,[Vf],[[0,{[p]:`Name`,[h]:bv}]]],XS=[3,g,Xne,0,[Pm],[[21,{[p]:`Value`,[h]:Gx}]]],ZS=[3,g,Ii,0,[Wc,Wf,xo,Hm],[[()=>Nw,{[p]:`Ebs`,[h]:Kh}],[0,{[p]:`NoDevice`,[h]:wv}],[0,{[p]:`DeviceName`,[h]:Fh}],[0,{[p]:`VirtualName`,[h]:tS}]]],QS=[3,g,Bi,0,[wu],[[0,{[p]:`InternetGatewayBlockMode`,[h]:Pg}]]],$S=[3,g,ia,0,[na,aa],[0,()=>tC]],eC=[3,g,Mre,0,[na,aa],[[0,{[p]:`CapacityReservationPreference`,[h]:Jue}],[()=>nC,{[p]:`CapacityReservationTarget`,[h]:Zue}]]],tC=[3,g,aa,0,[ta,ra],[0,0]],nC=[3,g,Nre,0,[ta,ra],[[0,{[p]:`CapacityReservationId`,[h]:Th}],[0,{[p]:`CapacityReservationResourceGroupArn`,[h]:Yue}]]],rC=[3,g,ua,0,[_m,Mm,Nm],[1,1,1]],iC=[3,g,da,0,[_m,Mm,Nm],[[1,{[p]:`TcpEstablishedTimeout`,[h]:_x}],[1,{[p]:`UdpStreamTimeout`,[h]:Ux}],[1,{[p]:`UdpTimeout`,[h]:Wx}]]],aC=[3,g,Vre,0,[Lce,Rce,Ns,ko,Yo,Kc,gf,Moe,xm,Gi,Oa,d],[0,0,0,0,[0,{[p]:`DestinationRegion`,[h]:fde}],[2,{[p]:`Encrypted`,[h]:Jh}],[0,{[p]:`KmsKeyId`,[h]:j_}],[()=>wS,{[p]:`PresignedUrl`,[h]:Py}],[()=>Sk,{[h]:Sm}],1,0,[2,{[p]:`DryRun`,[h]:f}]],2],oC=[3,g,Ure,0,[gm,Zp],[[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SnapshotId`,[h]:Bb}]]],sC=[3,g,Qi,0,[Wi,bm,Ci,np],[[1,{[p]:`CoreCount`,[h]:zue}],[1,{[p]:`ThreadsPerCore`,[h]:Dx}],[0,{[p]:`AmdSevSnp`,[h]:wue}],[0,{[p]:`NestedVirtualization`,[h]:Wv}]]],cC=[3,g,Ere,0,[Wi,bm,Ci,np],[1,1,0,0]],lC=[3,g,_re,0,[ju,Vf,xm,Ece,d,Ns,Hae,Li],[[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`Name`,[h]:bv}],[()=>Sk,{[h]:Sm}],0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`Description`,[h]:Lh}],[2,{[p]:`NoReboot`,[h]:zv}],[()=>BD,{[p]:`BlockDeviceMapping`,[h]:ph}]],2],uC=[3,g,vre,0,[Yu],[[0,{[p]:`ImageId`,[h]:Hg}]]],dC=[3,g,hre,0,[xm,d],[[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}]]],fC=[3,g,gre,0,[xu],[[()=>GT,{[p]:`InternetGateway`,[h]:Ng}]]],pC=[3,g,Sre,0,[_f,yf,xm,Sie,d],[0,0,[()=>Sk,{[h]:Sm}],0,[2,{[p]:`DryRun`,[h]:f}]],1],mC=[3,g,wre,0,[yi,hi,sa,d,Qp,Rm,Di,xm,pa,xp,zse,Pce,im],[0,0,[0,4],2,0,0,[()=>ND,{[h]:Ei}],[()=>Sk,{[h]:Sm}],0,0,[()=>AD,{[h]:Bse}],[()=>EO,{[h]:Fce}],1]],hC=[3,g,Tre,0,[sa,Gf],[[0,{[p]:`ClientToken`,[h]:Eh}],[()=>fE,{[p]:`NatGateway`,[h]:Dv}]]],gC=[3,g,Ore,0,[dp,xm,$p,Sf,sp,d,Dl,mm],[1,[()=>Sk,{[h]:Sm}],0,0,()=>SE,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`GroupName`,[h]:tg}],[0,{[p]:`Strategy`,[h]:mx}]]],_C=[3,g,kre,0,[vp],[[()=>TE,{[p]:`PlacementGroup`,[h]:hy}]]],vC=[3,g,Are,0,[Lp,Lo,Lm,vm,xf,Ki,Zi,op,d,Pa,yl,Ha,Sc,ju,qf,Um,Kf],[[0,{[p]:`RouteTableId`,[h]:cb}],0,0,0,0,0,0,0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`DestinationCidrBlock`,[h]:Mh}],[0,{[p]:`GatewayId`,[h]:$h}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Ph}],[0,{[p]:`EgressOnlyInternetGatewayId`,[h]:Vh}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`NatGatewayId`,[h]:kv}]],1],yC=[3,g,jre,0,[jp],[[2,{[p]:`Return`,[h]:Uy}]]],bC=[3,g,Pre,0,[Rm,xm,sa,d],[[0,{[p]:`VpcId`,[h]:Xx}],[()=>Sk,{[h]:Sm}],[0,4],[2,{[p]:`DryRun`,[h]:f}]],1],xC=[3,g,Fre,0,[Rp,sa],[[()=>JE,{[p]:`RouteTable`,[h]:fb}],[0,{[p]:`ClientToken`,[h]:Eh}]]],SC=[3,g,zre,0,[Ns,Dl,Rm,xm,d],[[0,{[h]:hl}],0,0,[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}]],2],CC=[3,g,Bre,0,[Cl,gm,Bp],[[0,{[p]:`GroupId`,[h]:eg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SecurityGroupArn`,[h]:wb}]]],wC=[3,g,Wre,0,[Bm,Ns,rp,xm,Xie,d],[0,0,0,[()=>Sk,{[h]:Sm}],0,[2,{[p]:`DryRun`,[h]:f}]],1],TC=[3,g,Gre,0,[Rm,xm,Ti,Oi,Ui,uu,rp,md,Bu,Sd,zu,xd,d],[0,[()=>Sk,{[h]:Sm}],0,0,0,0,0,2,0,1,0,1,[2,{[p]:`DryRun`,[h]:f}]],1],EC=[3,g,Kre,0,[hm],[[()=>cD,{[p]:`Subnet`,[h]:hx}]]],DC=[3,g,ha,0,[Ti,Oi,Kc,pf,gf,rp,dm,Zp,Gm,xm,Cf,Tm,sa,zm,sp,d],[0,0,[2,{[p]:`Encrypted`,[h]:Jh}],1,0,0,1,0,0,[()=>Sk,{[h]:Sm}],2,1,[0,4],1,()=>SE,[2,{[p]:`DryRun`,[h]:f}]]],OC=[3,g,ga,0,[Ui,qd,uu,Bu,Sd,zu,xd,fu,Im,xm,d,uf,vne],[0,0,0,0,1,0,1,0,()=>wD,[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`InstanceTenancy`,[h]:w_}],[2,{[p]:`AmazonProvidedIpv6CidrBlock`,[h]:vue}]]],kC=[3,g,_a,0,[Jm],[[()=>bD,{[p]:`Vpc`,[h]:pS}]]],AC=[3,g,qre,0,[ure],[0],1],jC=[3,g,Fa,0,[ms,ys,vs],[[1,{[p]:`DefaultTcpEstablishedTimeout`,[h]:pde}],[1,{[p]:`DefaultUdpTimeout`,[h]:vde}],[1,{[p]:`DefaultUdpStreamTimeout`,[h]:_de}]]],MC=[3,g,Wa,0,[Eu,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[2,{[p]:`DryRun`,[h]:f}]],1],NC=[3,g,ho,0,[_f,vf,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],PC=[3,g,go,0,[jp,vf],[[2,{[p]:`Return`,[h]:Uy}],[0,{[p]:`KeyPairId`,[h]:P_}]]],FC=[3,g,wo,0,[Kf,d],[[0,{[h]:Kf}],2],1],IC=[3,g,To,0,[Kf],[[0,{[p]:`NatGatewayId`,[h]:kv}]]],LC=[3,g,No,0,[Dl,d],[[0,{[p]:`GroupName`,[h]:tg}],[2,{[p]:`DryRun`,[h]:f}]],1],RC=[3,g,zo,0,[Lp,Lo,d,Pa,Ha],[[0,{[p]:`RouteTableId`,[h]:cb}],0,[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`DestinationCidrBlock`,[h]:Mh}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Ph}]],1],zC=[3,g,Uo,0,[Lp,d],[[0,{[p]:`RouteTableId`,[h]:cb}],[2,{[p]:`DryRun`,[h]:f}]],1],BC=[3,g,$o,0,[Cl,Dl,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],VC=[3,g,es,0,[jp,Cl],[[2,{[p]:`Return`,[h]:Uy}],[0,{[p]:`GroupId`,[h]:eg}]]],HC=[3,g,is,0,[Zp,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],UC=[3,g,as,0,[Qp,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],WC=[3,g,xs,0,[Bm,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],GC=[3,g,Ss,0,[Rm,d],[0,[2,{[p]:`DryRun`,[h]:f}]],1],KC=[3,g,Ca,0,[Coe,d,sl,gi],[[()=>$O,{[h]:bp}],[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}],[()=>AD,{[h]:hi}]]],qC=[3,g,wa,0,[Kne],[[()=>kD,{[p]:`AddressesSet`,[h]:Tue}]]],JC=[3,g,ka,0,[sue,aue,Zte,d,sl],[[()=>Lk,{[h]:Xm}],[()=>Ik,{[h]:Ym}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],YC=[3,g,Aa,0,[Gne],[[()=>FD,{[p]:`AvailabilityZoneInfo`,[h]:Oue}]]],XC=[3,g,Qa,0,[pne,sl,Pf,tp],[[()=>MD,{[h]:_i}],[()=>XD,{[h]:cl}],1,0]],ZC=[3,g,$a,0,[Ru,tp],[[()=>nO,{[p]:`IamInstanceProfileAssociationSet`,[h]:Bg}],[0,{[p]:`NextToken`,[h]:Uv}]]],QC=[3,g,ro,0,[Uc,Xu,roe,mu,vu,Pf,tp,d,sl],[[()=>YD,{[h]:zs}],[()=>rO,{[h]:Yu}],[()=>GO,{[h]:cp}],2,2,1,0,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],$C=[3,g,io,0,[tp,_ie],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>iO,{[p]:`ImagesSet`,[h]:p_}]]],ew=[3,g,ao,0,[Zu,fd,d,sl,tp,Pf],[[()=>lO,{[h]:ju}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}],[0,{[p]:`NextToken`,[h]:Uv}],[1,{[p]:`MaxResults`,[h]:lv}]]],tw=[3,g,oo,0,[tp,Fse],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>rk,{[p]:`ReservationSet`,[h]:ab}]]],nw=[3,g,so,0,[d,df,sl,Pf,tp,pie],[2,[64,{[h]:lf}],[()=>XD,{[h]:cl}],1,0,2]],rw=[3,g,co,0,[df,tp],[[()=>SO,{[p]:`InstanceTypeSet`,[h]:x_}],[0,{[p]:`NextToken`,[h]:Uv}]]],iw=[3,g,Ga,0,[tp,Pf,d,Ou,sl],[0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>wO,{[p]:`InternetGatewayId`,[h]:Fg}],[()=>XD,{[h]:cl}]]],aw=[3,g,Ka,0,[Au,tp],[[()=>TO,{[p]:`InternetGatewaySet`,[h]:Ig}],[0,{[p]:`NextToken`,[h]:Uv}]]],ow=[3,g,_o,0,[Tie,Oie,Id,d,sl],[[()=>MO,{[h]:_f}],[()=>NO,{[h]:vf}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],sw=[3,g,vo,0,[Eie],[[()=>PO,{[p]:`KeySet`,[h]:F_}]]],cw=[3,g,Eo,0,[d,cl,Pf,Rae,tp],[2,[()=>XD,0],1,[()=>BO,{[h]:Kf}],0]],lw=[3,g,Do,0,[Bae,tp],[[()=>VO,{[p]:`NatGatewaySet`,[h]:Av}],[0,{[p]:`NextToken`,[h]:Uv}]]],uw=[3,g,Po,0,[wl,d,kl,sl],[[()=>KO,{[h]:Cl}],[2,{[p]:`DryRun`,[h]:f}],[64,{[p]:`GroupName`,[h]:tg}],[()=>XD,{[h]:cl}]]],dw=[3,g,Fo,0,[hoe],[[()=>qO,{[p]:`PlacementGroupSet`,[h]:_y}]]],fw=[3,g,Bo,0,[dse,Tne,d,sl],[[()=>nk,{[h]:Fp}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],pw=[3,g,Vo,0,[Mse],[[()=>tk,{[p]:`RegionInfo`,[h]:$y}]]],mw=[3,g,Wo,0,[tp,Pf,d,Ese,sl],[0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>ck,{[h]:Lp}],[()=>XD,{[h]:cl}]]],hw=[3,g,Go,0,[Ase,tp],[[()=>lk,{[p]:`RouteTableSet`,[h]:lb}],[0,{[p]:`NextToken`,[h]:Uv}]]],gw=[3,g,ts,0,[wl,kl,tp,Pf,d,sl],[[()=>eO,{[h]:Cl}],[()=>tO,{[h]:Dl}],0,1,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],_w=[3,g,ns,0,[tp,Gp],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>dk,{[p]:`SecurityGroupInfo`,[h]:Tb}]]],vw=[3,g,os,0,[Pf,tp,Jae,Hoe,xce,d,sl],[1,0,[()=>GO,{[h]:cp}],[64,{[h]:Uoe}],[()=>hk,{[h]:Zp}],[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}]]],yw=[3,g,ss,0,[tp,qce],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>gk,{[p]:`SnapshotSet`,[h]:tx}]]],bw=[3,g,cs,0,[sl,ice,tp,Pf,d],[[()=>XD,{[h]:cl}],[()=>_k,{[h]:Qp}],0,1,[2,{[p]:`DryRun`,[h]:f}]]],xw=[3,g,ls,0,[tp,Yce],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>yk,{[p]:`SubnetSet`,[h]:nx}]]],Sw=[3,g,Cs,0,[Fle,fd,d,sl,tp,Pf],[[()=>kk,{[h]:Bm}],2,[2,{[p]:`DryRun`,[h]:f}],[()=>XD,{[h]:cl}],[0,{[p]:`NextToken`,[h]:Uv}],[1,{[p]:`MaxResults`,[h]:lv}]]],Cw=[3,g,ws,0,[tp,Zle],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>Ak,{[p]:`VolumeSet`,[h]:oS}]]],ww=[3,g,Ts,0,[sl,Ile,tp,Pf,d],[[()=>XD,{[h]:cl}],[()=>Mk,{[h]:Rm}],0,1,[2,{[p]:`DryRun`,[h]:f}]]],Tw=[3,g,Es,0,[tp,$le],[[0,{[p]:`NextToken`,[h]:Uv}],[()=>Pk,{[p]:`VpcSet`,[h]:cS}]]],Ew=[3,g,qa,0,[Eu,Rm,d],[[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`VpcId`,[h]:Xx}],[2,{[p]:`DryRun`,[h]:f}]],2],Dw=[3,g,Ds,0,[Bm,Ps,Jc,ju,d],[0,0,2,0,[2,{[p]:`DryRun`,[h]:f}]],1],Ow=[3,g,Ta,0,[_i,bp,d],[0,0,[2,{[p]:`DryRun`,[h]:f}]]],kw=[3,g,eo,0,[_i],[0],1],Aw=[3,g,to,0,[Iu],[[()=>sT,{[p]:`IamInstanceProfileAssociation`,[h]:zg}]]],jw=[3,g,Ko,0,[_i,d],[[0,{[p]:`AssociationId`,[h]:$m}],[2,{[p]:`DryRun`,[h]:f}]],1],Mw=[3,g,po,0,[cce,Sa,Dm],[[1,{[p]:`SizeInGB`,[h]:jb}],[1,{[p]:`Count`,[h]:Ah}],[0,{[p]:`Type`,[h]:Lx}]]],Nw=[3,g,Ls,0,[jo,pf,Zp,Wm,Gm,gf,Tm,rp,Ti,Kc,zm,Oi,Bs],[[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[1,{[p]:`Iops`,[h]:D_}],[0,{[p]:`SnapshotId`,[h]:Bb}],[1,{[p]:`VolumeSize`,[h]:sS}],[0,{[p]:`VolumeType`,[h]:lS}],[0,{[p]:`KmsKeyId`,[h]:j_}],[1,{[p]:`Throughput`,[h]:Fx}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`AvailabilityZone`,[h]:ah}],[2,{[p]:`Encrypted`,[h]:Jh}],1,0,1]],Pw=[3,g,Hs,0,[Bs,Fi,Vi,Ri,Ef,If,Of],[[1,{[p]:`EbsCardIndex`,[h]:zh}],[1,{[p]:`BaselineBandwidthInMbps`,[h]:fh}],[1,{[p]:`BaselineThroughputInMBps`,[h]:_h}],[1,{[p]:`BaselineIops`,[h]:mh}],[1,{[p]:`MaximumBandwidthInMbps`,[h]:Y_}],[1,{[p]:`MaximumThroughputInMBps`,[h]:pv}],[1,{[p]:`MaximumIops`,[h]:nv}]]],Fw=[3,g,hc,0,[wc,Bc,yc,$f,nae,hne,rae,Us],[[0,{[p]:`EbsOptimizedSupport`,[h]:Hde}],[0,{[p]:`EncryptionSupport`,[h]:Wh}],[()=>Rw,{[p]:`EbsOptimizedInfo`,[h]:Bde}],[0,{[p]:`NvmeSupport`,[h]:Bv}],[1,{[p]:`MaximumEbsAttachments`,[h]:Z_}],[0,{[p]:`AttachmentLimitType`,[h]:hue}],[1,{[p]:`MaximumEbsCards`,[h]:Q_}],[()=>WD,{[p]:`EbsCardSet`,[h]:Sde}]]],Iw=[3,g,fc,0,[wi,jo,pm,Bm,bi,Vle,sp,Bs],[[4,{[p]:`AttachTime`,[h]:ih}],[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`AssociatedResource`,[h]:th}],[0,{[p]:`VolumeOwnerId`,[h]:nS}],[()=>CE,{[p]:`Operator`,[h]:ny}],[1,{[p]:`EbsCardIndex`,[h]:zh}]]],Lw=[3,g,pc,0,[Bm,jo],[[0,{[p]:`VolumeId`,[h]:Qx}],[2,{[p]:`DeleteOnTermination`,[h]:Ih}]]],Rw=[3,g,yc,0,[Fi,Vi,Ri,Ef,If,Of],[[1,{[p]:`BaselineBandwidthInMbps`,[h]:fh}],[1,{[p]:`BaselineThroughputInMBps`,[h]:_h}],[1,{[p]:`BaselineIops`,[h]:mh}],[1,{[p]:`MaximumBandwidthInMbps`,[h]:Y_}],[1,{[p]:`MaximumThroughputInMBps`,[h]:pv}],[1,{[p]:`MaximumIops`,[h]:nv}]]],zw=[3,g,gc,0,[iae],[[1,{[p]:`MaximumEfaInterfaces`,[h]:$_}]]],Bw=[3,g,Js,0,[ec,Ys,Zs,Qs],[[0,{[p]:`ElasticGpuId`,[h]:Ade}],[0,{[p]:`ElasticGpuAssociationId`,[h]:Ede}],[0,{[p]:`ElasticGpuAssociationState`,[h]:Dde}],[0,{[p]:`ElasticGpuAssociationTime`,[h]:kde}]]],Vw=[3,g,tc,0,[Dm],[0],1],Hw=[3,g,rc,0,[Dm,Sa],[0,1],1],Uw=[3,g,ic,0,[lc,ac,sc,cc],[[0,{[p]:`ElasticInferenceAcceleratorArn`,[h]:jde}],[0,{[p]:`ElasticInferenceAcceleratorAssociationId`,[h]:Mde}],[0,{[p]:`ElasticInferenceAcceleratorAssociationState`,[h]:Nde}],[4,{[p]:`ElasticInferenceAcceleratorAssociationTime`,[h]:Fde}]]],Ww=[3,g,Pc,0,[Mc,Lc],[2,()=>Gw]],Gw=[3,g,Rc,0,[Ic],[2]],Kw=[3,g,Tc,0,[Gc],[[2,{[p]:`Enabled`,[h]:qh}]]],qw=[3,g,Cc,0,[Gc],[2]],Jw=[3,g,cl,0,[Vf,Xle],[0,[()=>Ek,{[h]:Pm}]]],Yw=[3,g,Xc,0,[Vf,Lf,Sa,kf],[[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[1,{[p]:`Count`,[h]:Ah}],[()=>Xw,{[p]:`MemoryInfo`,[h]:rv}]]],Xw=[3,g,Qc,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],Zw=[3,g,el,0,[ll,Xce],[[()=>ZD,{[p]:`Fpgas`,[h]:rfe}],[1,{[p]:`TotalFpgaMemoryInMiB`,[h]:vx}]]],Qw=[3,g,pl,0,[ju,qie,d],[0,2,[2,{[p]:`DryRun`,[h]:f}]],1],$w=[3,g,ml,0,[ju,Em,noe],[[0,{[p]:`InstanceId`,[h]:Lg}],[4,{[p]:`Timestamp`,[h]:Ix}],[0,{[p]:`Output`,[h]:ry}]]],eT=[3,g,gl,0,[Vf,Lf,Sa,Iie,jl,rue,kf],[[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[1,{[p]:`Count`,[h]:Ah}],[1,{[p]:`LogicalGpuCount`,[h]:z_}],[1,{[p]:`GpuPartitionSize`,[h]:lfe}],[()=>Fk,{[p]:`WorkloadSet`,[h]:gS}],[()=>tT,{[p]:`MemoryInfo`,[h]:rv}]]],tT=[3,g,vl,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],nT=[3,g,Sl,0,[Nl,Zce],[[()=>QD,{[p]:`Gpus`,[h]:ig}],[1,{[p]:`TotalGpuMemoryInMiB`,[h]:bx}]]],rT=[3,g,Tl,0,[Cl,Dl],[[0,{[p]:`GroupId`,[h]:eg}],[0,{[p]:`GroupName`,[h]:tg}]]],iT=[3,g,Ll,0,[xa],[[2,{[p]:`Configured`,[h]:tde}]]],aT=[3,g,Rl,0,[xa],[2]],oT=[3,g,Fu,0,[Ai,ql],[[0,{[p]:`Arn`,[h]:ch}],[0,{[p]:`Id`,[h]:_g}]]],sT=[3,g,Iu,0,[_i,ju,Fu,fm,Em],[[0,{[p]:`AssociationId`,[h]:$m}],[0,{[p]:`InstanceId`,[h]:Lg}],[()=>oT,{[p]:`IamInstanceProfile`,[h]:Rg}],[0,{[p]:`State`,[h]:fx}],[4,{[p]:`Timestamp`,[h]:Ix}]]],cT=[3,g,Uu,0,[Ai,Vf],[[0,{[p]:`Arn`,[h]:ch}],[0,{[p]:`Name`,[h]:bv}]]],lT=[3,g,vie,0,[_p,jm,Li,Ns,Vc,Kl,Td,Vf,Mp,Np,nm,am,gm,Km,zi,Cm,gs,sie,uce,Ro,Rie,ru,qp,Yp,ol,mie,Yu,td,fm,ip,dre,zoe,fp,ji,fie,hf,Pp,Dp],[[0,{[p]:`PlatformDetails`,[h]:my}],[0,{[p]:`UsageOperation`,[h]:Vx}],[()=>zD,{[p]:`BlockDeviceMapping`,[h]:ph}],[0,{[p]:`Description`,[h]:Lh}],[2,{[p]:`EnaSupport`,[h]:Gh}],[0,{[p]:`Hypervisor`,[h]:og}],[0,{[p]:`ImageOwnerAlias`,[h]:qg}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`RootDeviceName`,[h]:Wy}],[0,{[p]:`RootDeviceType`,[h]:Gy}],[0,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>aD,{[p]:`StateReason`,[h]:Zb}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VirtualizationType`,[h]:dS}],[0,{[p]:`BootMode`,[h]:hh}],[0,{[p]:`TpmSupport`,[h]:jx}],[0,{[p]:`DeprecationTime`,[h]:hde}],[0,{[p]:`ImdsSupport`,[h]:h_}],[0,{[p]:`SourceInstanceId`,[h]:Mb}],[0,{[p]:`DeregistrationProtection`,[h]:dde}],[0,{[p]:`LastLaunchedTime`,[h]:H_}],[2,{[p]:`ImageAllowed`,[h]:Tg}],[0,{[p]:`SourceImageId`,[h]:Pb}],[0,{[p]:`SourceImageRegion`,[h]:Ib}],[2,{[p]:`FreeTierEligible`,[h]:Qh}],[()=>aO,{[p]:`ImageWatermarkSet`,[h]:E_}],[0,{[p]:`ImageId`,[h]:Hg}],[0,{[p]:`ImageLocation`,[h]:Ug}],[0,{[p]:`ImageState`,[h]:m_}],[0,{[p]:`ImageOwnerId`,[h]:Jg}],[0,{[p]:`CreationDate`,[h]:Vue}],[2,{[p]:`IsPublic`,[h]:s_}],[()=>ZO,{[p]:`ProductCodes`,[h]:sy}],[0,{[p]:`Architecture`,[h]:lh}],[0,{[p]:`ImageType`,[h]:C_}],[0,{[p]:`KernelId`,[h]:A_}],[0,{[p]:`RamdiskId`,[h]:Qy}],[0,{[p]:`Platform`,[h]:Ry}]]],uT=[3,g,gie,0,[tue,Yp,qp,sce,eue],[[0,{[p]:`WatermarkKey`,[h]:hS}],[0,{[p]:`SourceImageRegion`,[h]:Ib}],[0,{[p]:`SourceImageId`,[h]:Pb}],[4,{[p]:`SourceImageCreationTime`,[h]:Ab}],[4,{[p]:`WatermarkCreationTime`,[h]:mS}]]],dT=[3,g,$u,0,[_f,Toe,xm,d],[[0,{[p]:`KeyName`,[h]:N_}],[21,{[p]:`PublicKeyMaterial`,[h]:Ey}],[()=>Sk,{[h]:Sm}],[2,{[p]:`DryRun`,[h]:f}]],2],fT=[3,g,ed,0,[mf,_f,vf,gm],[[0,{[p]:`KeyFingerprint`,[h]:k_}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyPairId`,[h]:P_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],pT=[3,g,$l,0,[ki,$ce],[[()=>oO,{[p]:`Accelerators`,[h]:sh}],[1,{[p]:`TotalInferenceMemoryInMiB`,[h]:xx}]]],mT=[3,g,hu,0,[Sa,Vf,Lf,kf],[[1,{[p]:`Count`,[h]:Ah}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[()=>hT,{[p]:`MemoryInfo`,[h]:rv}]]],hT=[3,g,_u,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],gT=[3,g,yie,0,[ji,Li,sa,vc,Vc,Kl,Fu,rd,$s,uc,Jf,rp,Mp,Np,Gp,zp,dce,nm,am,gm,Km,Qi,sre,ta,ia,Ll,Yie,jf,Tc,zi,_p,jm,ble,mp,au,Cm,Mf,pre,Zf,sp,Xp,ju,Yu,fm,pp,gp,Bce,_f,mne,fp,lf,Kie,Op,hf,Pp,Dp,Bf,Qp,Rm,xp,yoe],[[0,{[p]:`Architecture`,[h]:lh}],[()=>sO,{[p]:`BlockDeviceMapping`,[h]:ph}],[0,{[p]:`ClientToken`,[h]:Eh}],[2,{[p]:`EbsOptimized`,[h]:Bh}],[2,{[p]:`EnaSupport`,[h]:Gh}],[0,{[p]:`Hypervisor`,[h]:og}],[()=>oT,{[p]:`IamInstanceProfile`,[h]:Rg}],[0,{[p]:`InstanceLifecycle`,[h]:Wg}],[()=>GD,{[p]:`ElasticGpuAssociationSet`,[h]:Ode}],[()=>qD,{[p]:`ElasticInferenceAcceleratorAssociationSet`,[h]:Pde}],[()=>mO,{[p]:`NetworkInterfaceSet`,[h]:Nv}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`RootDeviceName`,[h]:Wy}],[0,{[p]:`RootDeviceType`,[h]:Gy}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`SpotInstanceRequestId`,[h]:Lb}],[0,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>aD,{[p]:`StateReason`,[h]:Zb}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VirtualizationType`,[h]:dS}],[()=>sC,{[p]:`CpuOptions`,[h]:que}],[0,{[p]:`CapacityBlockId`,[h]:Lue}],[0,{[p]:`CapacityReservationId`,[h]:Th}],[()=>eC,{[p]:`CapacityReservationSpecification`,[h]:Xue}],[()=>iT,{[p]:`HibernationOptions`,[h]:ug}],[()=>FO,{[p]:`LicenseSet`,[h]:U_}],[()=>OT,{[p]:`MetadataOptions`,[h]:ov}],[()=>Kw,{[p]:`EnclaveOptions`,[h]:Ude}],[0,{[p]:`BootMode`,[h]:hh}],[0,{[p]:`PlatformDetails`,[h]:my}],[0,{[p]:`UsageOperation`,[h]:Vx}],[4,{[p]:`UsageOperationUpdateTime`,[h]:Hx}],[()=>AE,{[p]:`PrivateDnsNameOptions`,[h]:uy}],[0,{[p]:`Ipv6Address`,[h]:Dg}],[0,{[p]:`TpmSupport`,[h]:jx}],[()=>wT,{[p]:`MaintenanceOptions`,[h]:sv}],[0,{[p]:`CurrentInstanceBootMode`,[h]:Wue}],[()=>NT,{[p]:`NetworkPerformanceOptions`,[h]:Lv}],[()=>CE,{[p]:`Operator`,[h]:ny}],[()=>_O,{[p]:`SecondaryInterfaceSet`,[h]:zb}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`ImageId`,[h]:Hg}],[()=>VT,{[p]:`InstanceState`,[h]:__}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`DnsName`,[h]:cde}],[0,{[p]:`Reason`,[h]:mb}],[0,{[p]:`KeyName`,[h]:N_}],[1,{[p]:`AmiLaunchIndex`,[h]:mue}],[()=>ZO,{[p]:`ProductCodes`,[h]:sy}],[0,{[p]:`InstanceType`,[h]:b_}],[4,{[p]:`LaunchTime`,[h]:W_}],[()=>wE,{[p]:`Placement`,[h]:zy}],[0,{[p]:`KernelId`,[h]:A_}],[0,{[p]:`RamdiskId`,[h]:Qy}],[0,{[p]:`Platform`,[h]:Ry}],[()=>dE,{[p]:`Monitoring`,[h]:vv}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[0,{[p]:`IpAddress`,[h]:Eg}]]],_T=[3,g,Zl,0,[Mc,Lc],[[2,{[p]:`EnaSrdEnabled`,[h]:Gde}],[()=>vT,{[p]:`EnaSrdUdpSpecification`,[h]:Yde}]]],vT=[3,g,Ql,0,[Ic],[[2,{[p]:`EnaSrdUdpEnabled`,[h]:Jde}]]],yT=[3,g,ou,0,[xo,Wc],[[0,{[p]:`DeviceName`,[h]:Fh}],[()=>Iw,{[p]:`Ebs`,[h]:Kh}]]],bT=[3,g,cu,0,[xo,Wc,Hm,Wf],[[0,{[p]:`DeviceName`,[h]:Fh}],[()=>Lw,{[p]:`Ebs`,[h]:Kh}],[0,{[p]:`VirtualName`,[h]:tS}],[0,{[p]:`NoDevice`,[h]:wv}]]],xT=[3,g,Wu,0,[Yd],[[0,{[p]:`Ipv4Prefix`,[h]:i_}]]],ST=[3,g,Mu,0,[au,Fd],[[0,{[p]:`Ipv6Address`,[h]:Dg}],[2,{[p]:`IsPrimaryIpv6`,[h]:$g}]]],CT=[3,g,Gu,0,[Kd],[[0,{[p]:`Ipv6Prefix`,[h]:o_}]]],wT=[3,g,od,0,[xi,lse],[[0,{[p]:`AutoRecovery`,[h]:Sue}],[0,{[p]:`RebootMigration`,[h]:nb}]]],TT=[3,g,sd,0,[xi],[0]],ET=[3,g,cd,0,[hae,Nce],[0,()=>nD]],DT=[3,g,ld,0,[Ul,Bl,Fl,zl,pd],[0,1,0,0,0]],OT=[3,g,ud,0,[fm,Ul,Bl,Fl,zl,pd],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`HttpTokens`,[h]:hg}],[1,{[p]:`HttpPutResponseHopLimit`,[h]:fg}],[0,{[p]:`HttpEndpoint`,[h]:cg}],[0,{[p]:`HttpProtocolIpv6`,[h]:dg}],[0,{[p]:`InstanceMetadataTags`,[h]:Gg}]]],kT=[3,g,hd,0,[Mi,Ni,Ns,ul,Jl,Tf,qf,ip,pp,xp,Sp,zp,pm,Qp,Rm,ff,Jd,Hd,ca,sp],[[()=>AT,{[p]:`Association`,[h]:uh}],[()=>jT,{[p]:`Attachment`,[h]:dh}],[0,{[p]:`Description`,[h]:Lh}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[()=>dO,{[p]:`Ipv6AddressesSet`,[h]:wg}],[0,{[p]:`MacAddress`,[h]:J_}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>gO,{[p]:`PrivateIpAddressesSet`,[h]:yy}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`InterfaceType`,[h]:T_}],[()=>uO,{[p]:`Ipv4PrefixSet`,[h]:e_}],[()=>fO,{[p]:`Ipv6PrefixSet`,[h]:t_}],[()=>iC,{[p]:`ConnectionTrackingConfiguration`,[h]:Dh}],[()=>CE,{[p]:`Operator`,[h]:ny}]]],AT=[3,g,gd,0,[qi,$i,Ed,gp,bp],[[0,{[p]:`CarrierIp`,[h]:yh}],[0,{[p]:`CustomerOwnedIp`,[h]:Ch}],[0,{[p]:`IpOwnerId`,[h]:Xg}],[0,{[p]:`PublicDnsName`,[h]:py}],[0,{[p]:`PublicIp`,[h]:vy}]]],jT=[3,g,_d,0,[wi,vi,jo,Va,pm,Uf,Nc,Dc],[[4,{[p]:`AttachTime`,[h]:ih}],[0,{[p]:`AttachmentId`,[h]:eh}],[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[1,{[p]:`DeviceIndex`,[h]:Nh}],[0,{[p]:`Status`,[h]:px}],[1,{[p]:`NetworkCardIndex`,[h]:Cv}],[()=>_T,{[p]:`EnaSrdSpecification`,[h]:Kde}],[1,{[p]:`EnaQueueCount`,[h]:Wde}]]],MT=[3,g,yd,0,[_ne,jo,Ns,Va,ul,Xl,Jl,qf,xp,Sp,im,Qp,rne,ff,Uf,Jd,Ad,Hd,kd,xoe,Nc,la,Dc],[[2,{[p]:`AssociatePublicIpAddress`,[h]:_ue}],[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[0,{[p]:`Description`,[h]:Lh}],[1,{[p]:`DeviceIndex`,[h]:Nh}],[()=>uk,{[h]:Vp}],[1,{[p]:`Ipv6AddressCount`,[h]:yg}],[()=>dO,{[p]:`Ipv6Addresses`,[h]:wg}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[()=>XO,{[p]:`PrivateIpAddresses`,[h]:yy}],[1,{[p]:`SecondaryPrivateIpAddressCount`,[h]:Yb}],[0,{[p]:`SubnetId`,[h]:Vb}],2,0,1,[()=>kO,{[h]:Yd}],1,[()=>AO,{[h]:Kd}],1,2,()=>Ww,()=>rC,1]],NT=[3,g,Cd,0,[Hi],[[0,{[p]:`BandwidthWeighting`,[h]:Pue}]]],PT=[3,g,wd,0,[Hi],[0]],FT=[3,g,Nd,0,[Mi,kp,pp,xp],[[()=>AT,{[p]:`Association`,[h]:uh}],[2,{[p]:`Primary`,[h]:By}],[0,{[p]:`PrivateDnsName`,[h]:fy}],[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],IT=[3,g,aie,0,[Ni,Tf,lce,ip,Sp,zp,pm,cm,jce,ff],[[()=>LT,{[p]:`Attachment`,[h]:dh}],[0,{[p]:`MacAddress`,[h]:J_}],[0,{[p]:`SecondaryInterfaceId`,[h]:Nb}],[0,{[p]:`OwnerId`,[h]:Jv}],[()=>vO,{[p]:`PrivateIpAddressSet`,[h]:by}],[2,{[p]:`SourceDestCheck`,[h]:xb}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`SecondarySubnetId`,[h]:ex}],[0,{[p]:`SecondaryNetworkId`,[h]:Kb}],[0,{[p]:`InterfaceType`,[h]:T_}]]],LT=[3,g,of,0,[wi,vi,jo,Va,pm,Uf],[[4,{[p]:`AttachTime`,[h]:ih}],[0,{[p]:`AttachmentId`,[h]:eh}],[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[1,{[p]:`DeviceIndex`,[h]:Nh}],[0,{[p]:`Status`,[h]:px}],[1,{[p]:`NetworkCardIndex`,[h]:Cv}]]],RT=[3,g,$re,0,[xp],[[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],zT=[3,g,nie,0,[xp],[0],1],BT=[3,g,iie,0,[jo,Va,Sp,goe,cm,ff,Uf],[2,1,[()=>yO,{[h]:xp}],1,0,0,1]],VT=[3,g,cie,0,[ba,Vf],[[1,{[p]:`Code`,[h]:kh}],[0,{[p]:`Name`,[h]:bv}]]],HT=[3,g,rf,0,[ju,oa,Aoe],[[0,{[p]:`InstanceId`,[h]:Lg}],[()=>VT,{[p]:`CurrentState`,[h]:Que}],[()=>VT,{[p]:`PreviousState`,[h]:My}]]],UT=[3,g,sf,0,[lle,Fs,$f,Bc],[[1,{[p]:`TotalSizeInGB`,[h]:kx}],[()=>UD,{[p]:`Disks`,[h]:xde}],[0,{[p]:`NvmeSupport`,[h]:Bv}],[0,{[p]:`EncryptionSupport`,[h]:Wh}]]],WT=[3,g,die,0,[lf,fre,ol,Hce,Ice,Gce,nre,Kl,wp,Fm,kf,oie,sf,hc,Yf,Sl,el,yp,$l,Hl,rre,Ba,bne,Wse,Aae,Uae,ep,wf,Xf,koe,cse,gce],[[0,{[p]:`InstanceType`,[h]:b_}],[2,{[p]:`CurrentGeneration`,[h]:Uue}],[2,{[p]:`FreeTierEligible`,[h]:Qh}],[()=>wk,{[p]:`SupportedUsageClasses`,[h]:sx}],[()=>ak,{[p]:`SupportedRootDeviceTypes`,[h]:Xb}],[()=>Dk,{[p]:`SupportedVirtualizationTypes`,[h]:lx}],[2,{[p]:`BareMetal`,[h]:Mue}],[0,{[p]:`Hypervisor`,[h]:og}],[()=>ME,{[p]:`ProcessorInfo`,[h]:Cy}],[()=>gD,{[p]:`VCpuInfo`,[h]:Kx}],[()=>oE,{[p]:`MemoryInfo`,[h]:rv}],[2,{[p]:`InstanceStorageSupported`,[h]:f_}],[()=>UT,{[p]:`InstanceStorageInfo`,[h]:d_}],[()=>Fw,{[p]:`EbsInfo`,[h]:Lde}],[()=>gE,{[p]:`NetworkInfo`,[h]:Fv}],[()=>nT,{[p]:`GpuInfo`,[h]:ofe}],[()=>Zw,{[p]:`FpgaInfo`,[h]:$de}],[()=>EE,{[p]:`PlacementGroupInfo`,[h]:gy}],[()=>pT,{[p]:`InferenceAcceleratorInfo`,[h]:bg}],[2,{[p]:`HibernationSupported`,[h]:mg}],[2,{[p]:`BurstablePerformanceSupported`,[h]:Nue}],[2,{[p]:`DedicatedHostsSupported`,[h]:ode}],[2,{[p]:`AutoRecoverySupported`,[h]:bue}],[()=>VD,{[p]:`SupportedBootModes`,[h]:yb}],[0,{[p]:`NitroEnclavesSupport`,[h]:Ev}],[0,{[p]:`NitroTpmSupport`,[h]:Hv}],[()=>xE,{[p]:`NitroTpmInfo`,[h]:Vv}],[()=>rE,{[p]:`MediaAcceleratorInfo`,[h]:q_}],[()=>bE,{[p]:`NeuronInfo`,[h]:Iv}],[0,{[p]:`PhcSupport`,[h]:jy}],[0,{[p]:`RebootMigrationSupport`,[h]:tb}],[2,{[p]:`SupportedInRegion`,[h]:Rb}]]],GT=[3,g,xu,0,[Pi,Eu,ip,gm],[[()=>CO,{[p]:`AttachmentSet`,[h]:rh}],[0,{[p]:`InternetGatewayId`,[h]:Fg}],[0,{[p]:`OwnerId`,[h]:Jv}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],KT=[3,g,Su,0,[fm,Rm],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcId`,[h]:Xx}]]],qT=[3,g,Wd,0,[Gd,rl,ym,_le,$d,tf,Doe],[[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Zh}],[1,{[p]:`ToPort`,[h]:Ex}],[()=>Tk,{[p]:`Groups`,[h]:ag}],[()=>OO,{[p]:`IpRanges`,[h]:l_}],[()=>jO,{[p]:`Ipv6Ranges`,[h]:u_}],[()=>YO,{[p]:`PrefixListIds`,[h]:Oy}]]],JT=[3,g,ef,0,[Ns,Ji],[[0,{[p]:`Description`,[h]:Lh}],[0,{[p]:`CidrIp`,[h]:bh}]]],YT=[3,g,Bd,0,[Yd],[0]],XT=[3,g,Vd,0,[Kd],[0]],ZT=[3,g,nf,0,[Ns,Yi],[[0,{[p]:`Description`,[h]:Lh}],[0,{[p]:`CidrIpv6`,[h]:xh}]]],QT=[3,g,jie,0,[vf,gm,_f,mf,Cie],[[0,{[p]:`KeyPairId`,[h]:P_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyFingerprint`,[h]:k_}],[()=>DS,{[p]:`KeyMaterial`,[h]:M_}]]],$T=[3,g,kie,0,[vf,yf,gm,woe,ma,_f,mf],[[0,{[p]:`KeyPairId`,[h]:P_}],[0,{[p]:`KeyType`,[h]:I_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`PublicKey`,[h]:Ty}],[4,{[p]:`CreateTime`,[h]:Oh}],[0,{[p]:`KeyName`,[h]:N_}],[0,{[p]:`KeyFingerprint`,[h]:k_}]]],eE=[3,g,Gie,0,[Uie,Wie,qm],[0,0,0]],tE=[3,g,Pie,0,[bf],[[0,{[p]:`LicenseConfigurationArn`,[h]:R_}]]],nE=[3,g,Nie,0,[bf],[0]],rE=[3,g,wf,0,[ki,ole],[[()=>LO,{[p]:`Accelerators`,[h]:sh}],[1,{[p]:`TotalMediaMemoryInMiB`,[h]:wx}]]],iE=[3,g,$ie,0,[Sa,Vf,Lf,kf],[[1,{[p]:`Count`,[h]:Ah}],[0,{[p]:`Name`,[h]:bv}],[0,{[p]:`Manufacturer`,[h]:hv}],[()=>aE,{[p]:`MemoryInfo`,[h]:rv}]]],aE=[3,g,tae,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],oE=[3,g,kf,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],sE=[3,g,sae,0,[ju,zp,Tc,Ea,d,Yne,Pm,Li,Da,lf,Mie,jse,Om,Ku,ul,vc,nm,Vc],[[0,{[p]:`InstanceId`,[h]:Lg}],[()=>zS,0],()=>qw,[()=>zS,0],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`Attribute`,[h]:Aue}],[()=>TS,{[p]:`Value`,[h]:Gx}],[()=>cO,{[p]:`BlockDeviceMapping`,[h]:ph}],[()=>zS,{[p]:`DisableApiTermination`,[h]:jh}],[()=>BS,{[p]:`InstanceType`,[h]:b_}],[()=>BS,{[p]:`Kernel`,[h]:L_}],[()=>BS,{[p]:`Ramdisk`,[h]:pb}],[()=>XS,{[p]:`UserData`,[h]:Rx}],[()=>BS,{[p]:`InstanceInitiatedShutdownBehavior`,[h]:Vg}],[()=>eO,{[h]:Cl}],[()=>zS,{[p]:`EbsOptimized`,[h]:Bh}],[()=>BS,{[p]:`SriovNetSupport`,[h]:Jb}],[()=>zS,{[p]:`EnaSupport`,[h]:Gh}]],1],cE=[3,g,fae,0,[Qp,pi,Nf,Df,ea,Gs,loe,jc,kc,_c,bo],[[0,{[p]:`SubnetId`,[h]:Vb}],[()=>zS,0],[()=>zS,0],[()=>zS,0],0,[()=>zS,0],0,[()=>zS,0],[()=>zS,0],1,[()=>zS,0]],1],lE=[3,g,gae,0,[Bm,d,dm,Gm,pf,Tm,Cf],[0,2,1,0,1,1,2],1],uE=[3,g,_ae,0,[Vm],[[()=>yD,{[p]:`VolumeModification`,[h]:eS}]]],dE=[3,g,Bf,0,[fm],[[0,{[p]:`State`,[h]:fx}]]],fE=[3,g,Gf,0,[ma,_s,Yc,nl,jae,Kf,up,fm,Qp,Rm,gm,pa,yi,Mne,yne,tne,Lp],[[4,{[p]:`CreateTime`,[h]:Oh}],[4,{[p]:`DeleteTime`,[h]:gde}],[0,{[p]:`FailureCode`,[h]:Yh}],[0,{[p]:`FailureMessage`,[h]:Xh}],[()=>RO,{[p]:`NatGatewayAddressSet`,[h]:Ov}],[0,{[p]:`NatGatewayId`,[h]:kv}],[()=>FE,{[p]:`ProvisionedBandwidth`,[h]:ay}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`VpcId`,[h]:Xx}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`ConnectivityType`,[h]:ede}],[0,{[p]:`AvailabilityMode`,[h]:gue}],[0,{[p]:`AutoScalingIps`,[h]:Cue}],[0,{[p]:`AutoProvisionZones`,[h]:yue}],[()=>zO,{[p]:`AttachedApplianceSet`,[h]:lue}],[0,{[p]:`RouteTableId`,[h]:cb}]]],pE=[3,g,Fae,0,[hi,qf,Soe,bp,_i,Xd,nl,pm,Ti,Oi],[[0,{[p]:`AllocationId`,[h]:Zm}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`PrivateIp`,[h]:wy}],[0,{[p]:`PublicIp`,[h]:vy}],[0,{[p]:`AssociationId`,[h]:$m}],[2,{[p]:`IsPrimary`,[h]:c_}],[0,{[p]:`FailureMessage`,[h]:Xh}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`AvailabilityZone`,[h]:ah}],[0,{[p]:`AvailabilityZoneId`,[h]:oh}]]],mE=[3,g,Mae,0,[Dm,$te,Lm,Nne,Ff,Yc,nl],[[0,{[p]:`Type`,[h]:Lx}],[0,{[p]:`ApplianceArn`,[h]:uue}],[0,{[p]:`VpcEndpointId`,[h]:Yx}],[0,{[p]:`AttachmentState`,[h]:Due}],[0,{[p]:`ModificationState`,[h]:fv}],[0,{[p]:`FailureCode`,[h]:Yh}],[0,{[p]:`FailureMessage`,[h]:Xh}]]],hE=[3,g,wae,0,[Uf,Qf,Af,ine,Zne,ioe,Ra,aae,oae],[[1,{[p]:`NetworkCardIndex`,[h]:Cv}],[0,{[p]:`NetworkPerformance`,[h]:Rv}],[1,{[p]:`MaximumNetworkInterfaces`,[h]:av}],[1,{[p]:`AdditionalFlexibleNetworkInterfaces`,[h]:due}],[1,{[p]:`BaselineBandwidthInGbps`,[h]:jue}],[1,{[p]:`PeakBandwidthInGbps`,[h]:oy}],[1,{[p]:`DefaultEnaQueueCountPerInterface`,[h]:ide}],[1,{[p]:`MaximumEnaQueueCount`,[h]:ev}],[1,{[p]:`MaximumEnaQueueCountPerInterface`,[h]:tv}]]],gE=[3,g,Yf,0,[Qf,Af,uae,So,Sae,eu,tu,lie,Vc,zc,gc,mc,Fc,are,$c,ca,Mce,mae,nu],[[0,{[p]:`NetworkPerformance`,[h]:Rv}],[1,{[p]:`MaximumNetworkInterfaces`,[h]:av}],[1,{[p]:`MaximumNetworkCards`,[h]:iv}],[1,{[p]:`DefaultNetworkCardIndex`,[h]:sde}],[()=>HO,{[p]:`NetworkCards`,[h]:Sv}],[1,{[p]:`Ipv4AddressesPerInterface`,[h]:xg}],[1,{[p]:`Ipv6AddressesPerInterface`,[h]:Sg}],[2,{[p]:`Ipv6Supported`,[h]:y_}],[0,{[p]:`EnaSupport`,[h]:Gh}],[2,{[p]:`EfaSupported`,[h]:Xde}],[()=>zw,{[p]:`EfaInfo`,[h]:Rde}],[2,{[p]:`EncryptionInTransitSupported`,[h]:Ide}],[2,{[p]:`EnaSrdSupported`,[h]:qde}],[()=>RD,{[p]:`BandwidthWeightings`,[h]:Fue}],[0,{[p]:`FlexibleEnaQueuesSupport`,[h]:Qde}],[()=>jC,{[p]:`ConnectionTrackingConfiguration`,[h]:Dh}],[2,{[p]:`SecondaryNetworkSupported`,[h]:qb}],[1,{[p]:`MaximumSecondaryNetworkInterfaces`,[h]:dv}],[1,{[p]:`Ipv4AddressesPerSecondaryInterface`,[h]:Cg}]]],_E=[3,g,Tae,0,[Sa,qm],[[1,{[p]:`Count`,[h]:Ah}],[1,{[p]:`Version`,[h]:fS}]]],vE=[3,g,Eae,0,[Sa,Vf,yre,kf],[[1,{[p]:`Count`,[h]:Ah}],[0,{[p]:`Name`,[h]:bv}],[()=>_E,{[p]:`CoreInfo`,[h]:Gue}],[()=>yE,{[p]:`MemoryInfo`,[h]:rv}]]],yE=[3,g,Oae,0,[Jp],[[1,{[p]:`SizeInMiB`,[h]:Fb}]]],bE=[3,g,Xf,0,[kae,sle],[[()=>UO,{[p]:`NeuronDevices`,[h]:Tv}],[1,{[p]:`TotalNeuronDeviceMemoryInMiB`,[h]:Tx}]]],xE=[3,g,ep,0,[Kce],[[()=>WO,{[p]:`SupportedVersions`,[h]:ux}]]],SE=[3,g,Xae,0,[lp],[0]],CE=[3,g,Zae,0,[bae,lp,Pl],[[2,{[p]:`Managed`,[h]:gv}],[0,{[p]:`Principal`,[h]:iy}],[2,{[p]:`HiddenByDefault`,[h]:sg}]]],wE=[3,g,Op,0,[Oi,qne,Dl,Ooe,Il,hle,qse,Vl,Cl,Ti],[[0,{[p]:`AvailabilityZoneId`,[h]:oh}],[0,{[p]:`Affinity`,[h]:kue}],[0,{[p]:`GroupName`,[h]:tg}],[1,{[p]:`PartitionNumber`,[h]:ky}],[0,{[p]:`HostId`,[h]:lg}],[0,{[p]:`Tenancy`,[h]:gx}],[0,{[p]:`SpreadDomain`,[h]:Sb}],[0,{[p]:`HostResourceGroupArn`,[h]:pg}],[0,{[p]:`GroupId`,[h]:eg}],[0,{[p]:`AvailabilityZone`,[h]:ah}]]],TE=[3,g,vp,0,[Dl,fm,mm,dp,Cl,gm,dl,$p,Sf,sp],[[0,{[p]:`GroupName`,[h]:tg}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`Strategy`,[h]:mx}],[1,{[p]:`PartitionCount`,[h]:cy}],[0,{[p]:`GroupId`,[h]:eg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`GroupArn`,[h]:ife}],[0,{[p]:`SpreadLevel`,[h]:Hb}],[0,{[p]:`LinkedGroupId`,[h]:V_}],[()=>CE,{[p]:`Operator`,[h]:ny}]]],EE=[3,g,yp,0,[zce],[[()=>JO,{[p]:`SupportedStrategies`,[h]:rx}]]],DE=[3,g,Tp,0,[Ns,Tp],[[0,{[p]:`Description`,[h]:Lh}],[0,{[p]:`PrefixListId`,[h]:Dy}]]],OE=[3,g,hp,0,[Wl,Ac,Oc],[[0,{[p]:`HostnameType`,[h]:gg}],[2,{[p]:`EnableResourceNameDnsARecord`,[h]:Uh}],[2,{[p]:`EnableResourceNameDnsAAAARecord`,[h]:Hh}]]],kE=[3,g,uoe,0,[Wl,Ac,Oc],[0,2,2]],AE=[3,g,doe,0,[Wl,Ac,Oc],[[0,{[p]:`HostnameType`,[h]:gg}],[2,{[p]:`EnableResourceNameDnsARecord`,[h]:Uh}],[2,{[p]:`EnableResourceNameDnsAAAARecord`,[h]:Hh}]]],jE=[3,g,_oe,0,[kp,xp],[[2,{[p]:`Primary`,[h]:By}],[0,{[p]:`PrivateIpAddress`,[h]:xy}]]],ME=[3,g,wp,0,[Use,Kse,Jse,Lf],[[()=>jD,{[p]:`SupportedArchitectures`,[h]:_b}],[1,{[p]:`SustainedClockSpeedInGhz`,[h]:bb}],[()=>bk,{[p]:`SupportedFeatures`,[h]:Cb}],[0,{[p]:`Manufacturer`,[h]:hv}]]],NE=[3,g,coe,0,[aoe,soe],[[0,{[p]:`ProductCode`,[h]:ly}],[0,{[p]:`Type`,[h]:Lx}]]],PE=[3,g,Noe,0,[yl],[[0,{[p]:`GatewayId`,[h]:$h}]]],FE=[3,g,up,0,[joe,Roe,kse,Pse,pm],[[4,{[p]:`ProvisionTime`,[h]:Ny}],[0,{[p]:`Provisioned`,[h]:Hy}],[4,{[p]:`RequestTime`,[h]:db}],[0,{[p]:`Requested`,[h]:hb}],[0,{[p]:`Status`,[h]:px}]]],IE=[3,g,Qoe,0,[Zu,d],[[()=>lO,{[h]:ju}],[2,{[p]:`DryRun`,[h]:f}]],1],LE=[3,g,fse,0,[Cl,Ep,km,Rm,Um],[[0,{[p]:`GroupId`,[h]:eg}],[0,{[p]:`PeeringStatus`,[h]:Ay}],[0,{[p]:`UserId`,[h]:zx}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}]]],RE=[3,g,Nse,0,[ap,Ml,Fp,qc],[[0,{[p]:`OptInStatus`,[h]:Yv}],[()=>ek,{[p]:`GeographySet`,[h]:ng}],[0,{[p]:`RegionName`,[h]:rb}],[0,{[p]:`RegionEndpoint`,[h]:qy}]]],zE=[3,g,qoe,0,[Vf],[[0,{[p]:`Name`,[h]:bv}]]],BE=[3,g,Boe,0,[hi,bp,Hf,d],[0,0,0,[2,{[p]:`DryRun`,[h]:f}]]],VE=[3,g,Ise,0,[tse,ip,rse,ul,bie],[[0,{[p]:`ReservationId`,[h]:Zy}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`RequesterId`,[h]:eb}],[()=>$D,{[p]:`GroupSet`,[h]:rg}],[()=>pO,{[p]:`InstancesSet`,[h]:g_}]]],HE=[3,g,yse,0,[Wp,Cl,bu,Gd,rl,ym,Xi,Yi,Tp,Joe,Ns],[[0,{[p]:`SecurityGroupRuleId`,[h]:Db}],[0,{[p]:`GroupId`,[h]:eg}],[2,{[p]:`IsEgress`,[h]:Mg}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Zh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIpv4`,[h]:Sh}],[0,{[p]:`CidrIpv6`,[h]:xh}],[0,{[p]:`PrefixListId`,[h]:Dy}],[0,{[p]:`ReferencedGroupId`,[h]:Yy}],[0,{[p]:`Description`,[h]:Lh}]]],UE=[3,g,mse,0,[Cl,Up,d,om,sm,Gd,rl,ym,Ji,Ud],[[0,{[p]:`GroupId`,[h]:eg}],[()=>fk,{[h]:Wp}],[2,{[p]:`DryRun`,[h]:f}],[0,{[p]:`SourceSecurityGroupName`,[h]:Qb}],[0,{[p]:`SourceSecurityGroupOwnerId`,[h]:$b}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Zh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIp`,[h]:bh}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]],1],WE=[3,g,hse,0,[jp,Am,Ip],[[2,{[p]:`Return`,[h]:Uy}],[()=>DO,{[p]:`UnknownIpPermissionSet`,[h]:Bx}],[()=>ik,{[p]:`RevokedSecurityGroupRuleSet`,[h]:ib}]]],GE=[3,g,gse,0,[Ji,rl,Cl,Dl,Ud,Gd,om,sm,ym,Up,d],[0,1,0,0,[()=>DO,0],0,0,0,1,[()=>fk,{[h]:Wp}],[2,{[p]:`DryRun`,[h]:f}]]],KE=[3,g,_se,0,[jp,Am,Ip],[[2,{[p]:`Return`,[h]:Uy}],[()=>DO,{[p]:`UnknownIpPermissionSet`,[h]:Bx}],[()=>ik,{[p]:`RevokedSecurityGroupRuleSet`,[h]:ib}]]],qE=[3,g,Lse,0,[Pa,Ha,Lo,Sc,yl,ju,Dd,Kf,vm,xf,Ki,qf,Gae,fm,Um,Zi,op,iu],[[0,{[p]:`DestinationCidrBlock`,[h]:Mh}],[0,{[p]:`DestinationIpv6CidrBlock`,[h]:Ph}],[0,{[p]:`DestinationPrefixListId`,[h]:ude}],[0,{[p]:`EgressOnlyInternetGatewayId`,[h]:Vh}],[0,{[p]:`GatewayId`,[h]:$h}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`InstanceOwnerId`,[h]:Yg}],[0,{[p]:`NatGatewayId`,[h]:kv}],[0,{[p]:`TransitGatewayId`,[h]:yx}],[0,{[p]:`LocalGatewayId`,[h]:B_}],[0,{[p]:`CarrierGatewayId`,[h]:Hue}],[0,{[p]:`NetworkInterfaceId`,[h]:jv}],[0,{[p]:`Origin`,[h]:Gv}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`CoreNetworkArn`,[h]:Kue}],[0,{[p]:`OdbNetworkArn`,[h]:Qv}],[0,{[p]:`IpAddress`,[h]:Eg}]]],JE=[3,g,Rp,0,[Jne,Foe,Lp,Rse,gm,Rm,ip],[[()=>sk,{[p]:`AssociationSet`,[h]:Eue}],[()=>QO,{[p]:`PropagatingVgwSet`,[h]:Fy}],[0,{[p]:`RouteTableId`,[h]:cb}],[()=>ok,{[p]:`RouteSet`,[h]:ob}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`OwnerId`,[h]:Jv}]]],YE=[3,g,xse,0,[yae,Sse,Lp,Qp,yl,Cp,Si],[[2,{[p]:`Main`,[h]:mv}],[0,{[p]:`RouteTableAssociationId`,[h]:sb}],[0,{[p]:`RouteTableId`,[h]:cb}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`GatewayId`,[h]:$h}],[0,{[p]:`PublicIpv4Pool`,[h]:Sy}],[()=>XE,{[p]:`AssociationState`,[h]:nh}]]],XE=[3,g,wse,0,[fm,em],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],ZE=[3,g,Zoe,0,[Gc],[[2,{[p]:`Enabled`,[h]:qh}]],1],QE=[3,g,$oe,0,[Zie,Qie,Li,Yu,lf,Xl,Jl,hf,_f,Bf,Op,Pp,Zse,Gp,Qp,Om,tc,dc,xm,Hie,dd,Yre,Qi,ia,Ll,zie,jf,Tc,mp,Mf,Ea,Ec,Zf,sp,Xp,d,Da,Ku,xp,sa,mi,Jf,Fu,vc],[1,1,[()=>BD,{[h]:Ii}],0,0,1,[()=>dO,{[h]:au}],0,0,[()=>ZE,0],[()=>wE,0],0,[()=>uk,{[h]:Vp}],[()=>mk,{[h]:Kp}],0,[()=>ES,0],[()=>KD,0],[()=>JD,{[h]:rc}],[()=>Sk,{[h]:Sm}],()=>eE,()=>ET,()=>AC,()=>cC,()=>$S,()=>aT,[()=>IO,{[h]:Vie}],()=>DT,()=>qw,()=>kE,()=>TT,2,2,()=>PT,()=>SE,[()=>bO,{[h]:bce}],[2,{[p]:`DryRun`,[h]:f}],[2,{[p]:`DisableApiTermination`,[h]:jh}],[0,{[p]:`InstanceInitiatedShutdownBehavior`,[h]:Vg}],[0,{[p]:`PrivateIpAddress`,[h]:xy}],[0,{[p]:`ClientToken`,[S_]:1,[h]:Eh}],[0,{[p]:`AdditionalInfo`,[h]:Qm}],[()=>hO,{[p]:`NetworkInterface`,[h]:Pv}],[()=>cT,{[p]:`IamInstanceProfile`,[h]:Rg}],[2,{[p]:`EbsOptimized`,[h]:Bh}]],2],$E=[3,g,Kp,0,[Cl,jd,gm,Rm,Bp,ip,Dl,Ns,Ud],[[0,{[p]:`GroupId`,[h]:eg}],[()=>DO,{[p]:`IpPermissionsEgress`,[h]:Qg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`SecurityGroupArn`,[h]:wb}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`GroupName`,[h]:tg}],[0,{[p]:`GroupDescription`,[h]:afe}],[()=>DO,{[p]:`IpPermissions`,[h]:r_}]]],eD=[3,g,nce,0,[Wp,Cl,Al,bu,Gd,rl,ym,Xi,Yi,Tp,Yoe,Ns,gm,$se],[[0,{[p]:`SecurityGroupRuleId`,[h]:Db}],[0,{[p]:`GroupId`,[h]:eg}],[0,{[p]:`GroupOwnerId`,[h]:cfe}],[2,{[p]:`IsEgress`,[h]:Mg}],[0,{[p]:`IpProtocol`,[h]:n_}],[1,{[p]:`FromPort`,[h]:Zh}],[1,{[p]:`ToPort`,[h]:Ex}],[0,{[p]:`CidrIpv4`,[h]:Sh}],[0,{[p]:`CidrIpv6`,[h]:xh}],[0,{[p]:`PrefixListId`,[h]:Dy}],[()=>LE,{[p]:`ReferencedGroupInfo`,[h]:Xy}],[0,{[p]:`Description`,[h]:Lh}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SecurityGroupRuleArn`,[h]:Eb}]]],tD=[3,g,Jce,0,[Kae,rp,gm,Vce,Goe,um,Ti,ple,Gi,fa,al,Zp,Bm,fm,tm,lm,Ap,ip,Ns,Wm,Kc,gf,La],[[0,{[p]:`OwnerAlias`,[h]:qv}],[0,{[p]:`OutpostArn`,[h]:Kv}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`StorageTier`,[h]:ox}],[4,{[p]:`RestoreExpiryTime`,[h]:Ky}],[0,{[p]:`SseType`,[h]:ax}],[0,{[p]:`AvailabilityZone`,[h]:ah}],[0,{[p]:`TransferType`,[h]:Nx}],[1,{[p]:`CompletionDurationMinutes`,[h]:Bue}],[4,{[p]:`CompletionTime`,[h]:$ue}],[1,{[p]:`FullSnapshotSizeInBytes`,[h]:tfe}],[0,{[p]:`SnapshotId`,[h]:Bb}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`Status`,[h]:px}],[0,{[p]:`StatusMessage`,[h]:Wb}],[4,{[p]:`StartTime`,[h]:ix}],[0,{[p]:`Progress`,[h]:Vy}],[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`Description`,[h]:Lh}],[1,{[p]:`VolumeSize`,[h]:sS}],[2,{[p]:`Encrypted`,[h]:Jh}],[0,{[p]:`KmsKeyId`,[h]:j_}],[0,{[p]:`DataEncryptionKeyId`,[h]:rde}]]],nD=[3,g,Ace,0,[dae,yce,ere,Yle,Pu],[0,0,1,4,0]],rD=[3,g,fce,0,[Zu,mi,d],[[()=>lO,{[h]:ju}],[0,{[p]:`AdditionalInfo`,[h]:Qm}],[2,{[p]:`DryRun`,[h]:f}]],1],iD=[3,g,pce,0,[Sce],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],aD=[3,g,am,0,[ba,Rf],[[0,{[p]:`Code`,[h]:kh}],[0,{[p]:`Message`,[h]:_v}]]],oD=[3,g,mce,0,[Zu,Gl,rm,d,Jc],[[()=>lO,{[h]:ju}],2,2,[2,{[p]:`DryRun`,[h]:f}],[2,{[p]:`Force`,[h]:nfe}]],1],sD=[3,g,hce,0,[wce],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],cD=[3,g,hm,0,[Oi,_c,Df,ea,ip,pi,du,gm,Hse,rp,Gs,md,hp,Bi,Dm,Qp,fm,Rm,Ui,ane,Ti,za,Nf],[[0,{[p]:`AvailabilityZoneId`,[h]:oh}],[1,{[p]:`EnableLniAtDeviceIndex`,[h]:zde}],[2,{[p]:`MapCustomerOwnedIpOnLaunch`,[h]:X_}],[0,{[p]:`CustomerOwnedIpv4Pool`,[h]:wh}],[0,{[p]:`OwnerId`,[h]:Jv}],[2,{[p]:`AssignIpv6AddressOnCreation`,[h]:pue}],[()=>vk,{[p]:`Ipv6CidrBlockAssociationSet`,[h]:kg}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`SubnetArn`,[h]:vb}],[0,{[p]:`OutpostArn`,[h]:Kv}],[2,{[p]:`EnableDns64`,[h]:wde}],[2,{[p]:`Ipv6Native`,[h]:Kg}],[()=>OE,{[p]:`PrivateDnsNameOptionsOnLaunch`,[h]:dy}],[()=>QS,{[p]:`BlockPublicAccessStates`,[h]:gh}],[0,{[p]:`Type`,[h]:Lx}],[0,{[p]:`SubnetId`,[h]:Vb}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`CidrBlock`,[h]:vh}],[1,{[p]:`AvailableIpAddressCount`,[h]:fue}],[0,{[p]:`AvailabilityZone`,[h]:ah}],[2,{[p]:`DefaultForAz`,[h]:ade}],[2,{[p]:`MapPublicIpOnLaunch`,[h]:cv}]]],lD=[3,g,Gse,0,[fm,em],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],uD=[3,g,ace,0,[_i,uu,pu,Yl,cf],[[0,{[p]:`AssociationId`,[h]:$m}],[0,{[p]:`Ipv6CidrBlock`,[h]:Og}],[()=>lD,{[p]:`Ipv6CidrBlockState`,[h]:Ag}],[0,{[p]:`Ipv6AddressAttribute`,[h]:vg}],[0,{[p]:`IpSource`,[h]:v_}]]],dD=[3,g,wm,0,[xie,Pm],[[0,{[p]:`Key`,[h]:O_}],[0,{[p]:`Value`,[h]:Gx}]]],fD=[3,g,Sm,0,[Ose,gm],[[0,{[p]:`ResourceType`,[h]:ub}],[()=>xk,{[h]:wm}]]],pD=[3,g,ele,0,[Zu,Jc,rm,d],[[()=>lO,{[h]:ju}],2,2,[2,{[p]:`DryRun`,[h]:f}]],1],mD=[3,g,tle,0,[rle],[[()=>xO,{[p]:`InstancesSet`,[h]:g_}]]],hD=[3,g,yle,0,[Ns,km,Dl,Cl,Rm,Um,Ep],[[0,{[p]:`Description`,[h]:Lh}],[0,{[p]:`UserId`,[h]:zx}],[0,{[p]:`GroupName`,[h]:tg}],[0,{[p]:`GroupId`,[h]:eg}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcPeeringConnectionId`,[h]:rS}],[0,{[p]:`PeeringStatus`,[h]:Ay}]]],gD=[3,g,Fm,0,[bs,Ia,hs,Ele,Jle],[[1,{[p]:`DefaultVCpus`,[h]:yde}],[1,{[p]:`DefaultCores`,[h]:nde}],[1,{[p]:`DefaultThreadsPerCore`,[h]:mde}],[()=>HD,{[p]:`ValidCores`,[h]:qx}],[()=>Ck,{[p]:`ValidThreadsPerCore`,[h]:uS}]]],_D=[3,g,Qle,0,[Oi,rp,Wce,pf,gm,Gm,il,Cf,Tm,um,sp,zm,Bm,dm,Zp,Ti,fm,ma,Pi,Kc,gf],[[0,{[p]:`AvailabilityZoneId`,[h]:oh}],[0,{[p]:`OutpostArn`,[h]:Kv}],[0,{[p]:`SourceVolumeId`,[h]:cx}],[1,{[p]:`Iops`,[h]:D_}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[0,{[p]:`VolumeType`,[h]:lS}],[2,{[p]:`FastRestored`,[h]:efe}],[2,{[p]:`MultiAttachEnabled`,[h]:K_}],[1,{[p]:`Throughput`,[h]:Fx}],[0,{[p]:`SseType`,[h]:ax}],[()=>CE,{[p]:`Operator`,[h]:ny}],[1,{[p]:`VolumeInitializationRate`,[h]:Zx}],[0,{[p]:`VolumeId`,[h]:Qx}],[1,{[p]:`Size`,[h]:dx}],[0,{[p]:`SnapshotId`,[h]:Bb}],[0,{[p]:`AvailabilityZone`,[h]:ah}],[0,{[p]:`Status`,[h]:px}],[4,{[p]:`CreateTime`,[h]:Oh}],[()=>Ok,{[p]:`AttachmentSet`,[h]:rh}],[2,{[p]:`Encrypted`,[h]:Jh}],[0,{[p]:`KmsKeyId`,[h]:j_}]]],vD=[3,g,Sle,0,[jo,bi,Od,Bs,Bm,ju,Ps,fm,wi],[[2,{[p]:`DeleteOnTermination`,[h]:Ih}],[0,{[p]:`AssociatedResource`,[h]:th}],[0,{[p]:`InstanceOwningService`,[h]:Zg}],[1,{[p]:`EbsCardIndex`,[h]:zh}],[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`InstanceId`,[h]:Lg}],[0,{[p]:`Device`,[h]:bde}],[0,{[p]:`Status`,[h]:px}],[4,{[p]:`AttachTime`,[h]:ih}]]],yD=[3,g,Vm,0,[Bm,Ff,em,dle,nle,mle,fle,ale,$ae,qae,toe,eoe,Yae,Ap,lm,Hc],[[0,{[p]:`VolumeId`,[h]:Qx}],[0,{[p]:`ModificationState`,[h]:fv}],[0,{[p]:`StatusMessage`,[h]:Wb}],[1,{[p]:`TargetSize`,[h]:Ax}],[1,{[p]:`TargetIops`,[h]:Sx}],[0,{[p]:`TargetVolumeType`,[h]:Px}],[1,{[p]:`TargetThroughput`,[h]:Mx}],[2,{[p]:`TargetMultiAttachEnabled`,[h]:Cx}],[1,{[p]:`OriginalSize`,[h]:$v}],[1,{[p]:`OriginalIops`,[h]:Xv}],[0,{[p]:`OriginalVolumeType`,[h]:ty}],[1,{[p]:`OriginalThroughput`,[h]:ey}],[2,{[p]:`OriginalMultiAttachEnabled`,[h]:Zv}],[1,{[p]:`Progress`,[h]:Vy}],[4,{[p]:`StartTime`,[h]:ix}],[4,{[p]:`EndTime`,[h]:Zde}]]],bD=[3,g,Jm,0,[ip,uf,du,ore,yu,Ws,gm,Bi,Rm,fm,Ui,Ao],[[0,{[p]:`OwnerId`,[h]:Jv}],[0,{[p]:`InstanceTenancy`,[h]:w_}],[()=>Nk,{[p]:`Ipv6CidrBlockAssociationSet`,[h]:kg}],[()=>jk,{[p]:`CidrBlockAssociationSet`,[h]:Iue}],[2,{[p]:`IsDefault`,[h]:jg}],[()=>CD,{[p]:`EncryptionControl`,[h]:Cde}],[()=>xk,{[p]:`TagSet`,[h]:Ox}],[()=>QS,{[p]:`BlockPublicAccessStates`,[h]:gh}],[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`CidrBlock`,[h]:vh}],[0,{[p]:`DhcpOptionsId`,[h]:lde}]]],xD=[3,g,Cle,0,[_i,Ui,cre],[[0,{[p]:`AssociationId`,[h]:$m}],[0,{[p]:`CidrBlock`,[h]:vh}],[()=>SD,{[p]:`CidrBlockState`,[h]:Rue}]]],SD=[3,g,Tle,0,[fm,em],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StatusMessage`,[h]:Wb}]]],CD=[3,g,Im,0,[Rm,Ale,zf,fm,tm,Koe,gm],[[0,{[p]:`VpcId`,[h]:Xx}],[0,{[p]:`VpcEncryptionControlId`,[h]:Jx}],[0,{[p]:`Mode`,[h]:yv}],[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StateMessage`,[h]:Gb}],[()=>ED,{[p]:`ResourceExclusions`,[h]:Jy}],[()=>xk,{[p]:`TagSet`,[h]:Ox}]]],wD=[3,g,Dle,0,[zf,Tu,xc,Iae,Wle,Hle,Fie,Rle,qs],[0,0,0,0,0,0,0,0,0],1],TD=[3,g,Ole,0,[fm,tm],[[0,{[p]:`State`,[h]:fx}],[0,{[p]:`StateMessage`,[h]:Gb}]]],ED=[3,g,kle,0,[xu,bc,Gf,Ule,Gle,Jie,Lle,Ks],[[()=>TD,{[p]:`InternetGateway`,[h]:Ng}],[()=>TD,{[p]:`EgressOnlyInternetGateway`,[h]:Vde}],[()=>TD,{[p]:`NatGateway`,[h]:Dv}],[()=>TD,{[p]:`VirtualPrivateGateway`,[h]:iS}],[()=>TD,{[p]:`VpcPeering`,[h]:aS}],[()=>TD,{[p]:`Lambda`,[h]:G_}],[()=>TD,{[p]:`VpcLattice`,[h]:$x}],[()=>TD,{[p]:`ElasticFileSystem`,[h]:Tde}]]],DD=[3,g,jle,0,[_i,uu,pu,Hf,qd,Yl,cf],[[0,{[p]:`AssociationId`,[h]:$m}],[0,{[p]:`Ipv6CidrBlock`,[h]:Og}],[()=>SD,{[p]:`Ipv6CidrBlockState`,[h]:Ag}],[0,{[p]:`NetworkBorderGroup`,[h]:xv}],[0,{[p]:`Ipv6Pool`,[h]:a_}],[0,{[p]:`Ipv6AddressAttribute`,[h]:vg}],[0,{[p]:`IpSource`,[h]:v_}]]],OD=`unit`,kD=[1,g,gne,0,[()=>OS,{[h]:m}]],AD=[1,g,dne,0,[0,{[h]:hi}]],jD=[1,g,Pne,0,[0,{[h]:m}]],MD=[1,g,fne,0,[0,{[h]:_i}]],ND=[1,g,Di,0,[()=>KS,{[h]:Ei}]],PD=[1,g,zne,0,[()=>qS,{[h]:m}]],FD=[1,g,Bne,0,[()=>GS,{[h]:m}]],ID=[1,g,Hne,0,[()=>JS,{[h]:m}]],LD=[1,g,Wne,0,[()=>YS,{[h]:m}]],RD=[1,g,ire,0,[0,{[h]:m}]],zD=[1,g,Qne,0,[()=>ZS,{[h]:m}]],BD=[1,g,$ne,0,[()=>ZS,{[h]:Ii}]],VD=[1,g,tre,0,[0,{[h]:m}]],HD=[1,g,lre,0,[1,{[h]:m}]],UD=[1,g,no,0,[()=>Mw,{[h]:m}]],WD=[1,g,Vs,0,[()=>Pw,{[h]:m}]],GD=[1,g,Xs,0,[()=>Bw,{[h]:m}]],KD=[1,g,nc,0,[()=>Vw,{[h]:m}]],qD=[1,g,oc,0,[()=>Uw,{[h]:m}]],JD=[1,g,dc,0,[()=>Hw,{[h]:m}]],YD=[1,g,Rs,0,[0,{[h]:zs}]],XD=[1,g,tl,0,[()=>Jw,{[h]:cl}]],ZD=[1,g,Zc,0,[()=>Yw,{[h]:m}]],QD=[1,g,_l,0,[()=>eT,{[h]:m}]],$D=[1,g,bl,0,[()=>rT,{[h]:m}]],eO=[1,g,xl,0,[0,{[h]:eg}]],tO=[1,g,Ol,0,[0,{[h]:Dl}]],nO=[1,g,Lu,0,[()=>sT,{[h]:m}]],rO=[1,g,qu,0,[0,{[h]:Yu}]],iO=[1,g,nd,0,[()=>lT,{[h]:m}]],aO=[1,g,hie,0,[()=>uT,{[h]:m}]],oO=[1,g,gu,0,[()=>mT,0]],sO=[1,g,su,0,[()=>yT,{[h]:m}]],cO=[1,g,lu,0,[()=>bT,{[h]:m}]],lO=[1,g,Ju,0,[0,{[h]:ju}]],uO=[1,g,Vu,0,[()=>xT,{[h]:m}]],dO=[1,g,Nu,0,[()=>ST,{[h]:m}]],fO=[1,g,Hu,0,[()=>CT,{[h]:m}]],pO=[1,g,id,0,[()=>gT,{[h]:m}]],mO=[1,g,vd,0,[()=>kT,{[h]:m}]],hO=[1,g,bd,0,[()=>MT,{[h]:m}]],gO=[1,g,Pd,0,[()=>FT,{[h]:m}]],_O=[1,g,Qre,0,[()=>IT,{[h]:m}]],vO=[1,g,eie,0,[()=>RT,{[h]:m}]],yO=[1,g,tie,0,[()=>zT,{[h]:m}]],bO=[1,g,rie,0,[()=>BT,{[h]:m}]],xO=[1,g,af,0,[()=>HT,{[h]:m}]],SO=[1,g,uie,0,[()=>WT,{[h]:m}]],CO=[1,g,Cu,0,[()=>KT,{[h]:m}]],wO=[1,g,Du,0,[0,{[h]:m}]],TO=[1,g,ku,0,[()=>GT,{[h]:m}]],EO=[1,g,ad,0,[0,{[h]:m}]],DO=[1,g,Ld,0,[()=>qT,{[h]:m}]],OO=[1,g,Zd,0,[()=>JT,{[h]:m}]],kO=[1,g,Rd,0,[()=>YT,{[h]:m}]],AO=[1,g,zd,0,[()=>XT,{[h]:m}]],jO=[1,g,Qd,0,[()=>ZT,{[h]:m}]],MO=[1,g,wie,0,[0,{[h]:_f}]],NO=[1,g,Die,0,[0,{[h]:vf}]],PO=[1,g,Aie,0,[()=>$T,{[h]:m}]],FO=[1,g,Lie,0,[()=>tE,{[h]:m}]],IO=[1,g,Bie,0,[()=>nE,{[h]:m}]],LO=[1,g,eae,0,[()=>iE,{[h]:m}]],RO=[1,g,Pae,0,[()=>pE,{[h]:m}]],zO=[1,g,Nae,0,[()=>mE,{[h]:m}]],BO=[1,g,Lae,0,[0,{[h]:m}]],VO=[1,g,zae,0,[()=>fE,{[h]:m}]],HO=[1,g,Cae,0,[()=>hE,{[h]:m}]],UO=[1,g,Dae,0,[()=>vE,{[h]:m}]],WO=[1,g,Wae,0,[0,{[h]:m}]],GO=[1,g,Qae,0,[0,{[h]:cp}]],KO=[1,g,foe,0,[0,{[h]:Cl}]],qO=[1,g,poe,0,[()=>TE,{[h]:m}]],JO=[1,g,moe,0,[0,{[h]:m}]],YO=[1,g,Eoe,0,[()=>DE,{[h]:m}]],XO=[1,g,voe,0,[()=>jE,{[h]:m}]],ZO=[1,g,ooe,0,[()=>NE,{[h]:m}]],QO=[1,g,Poe,0,[()=>PE,{[h]:m}]],$O=[1,g,boe,0,[0,{[h]:bp}]],ek=[1,g,Xoe,0,[()=>zE,{[h]:m}]],tk=[1,g,ase,0,[()=>RE,{[h]:m}]],nk=[1,g,use,0,[0,{[h]:Fp}]],rk=[1,g,ose,0,[()=>VE,{[h]:m}]],ik=[1,g,bse,0,[()=>HE,{[h]:m}]],ak=[1,g,Woe,0,[0,{[h]:m}]],ok=[1,g,sse,0,[()=>qE,{[h]:m}]],sk=[1,g,Cse,0,[()=>YE,{[h]:m}]],ck=[1,g,Tse,0,[0,{[h]:m}]],lk=[1,g,Dse,0,[()=>JE,{[h]:m}]],uk=[1,g,Xse,0,[0,{[h]:Vp}]],dk=[1,g,Qse,0,[()=>$E,{[h]:m}]],fk=[1,g,ece,0,[0,{[h]:m}]],pk=[1,g,tce,0,[()=>eD,{[h]:m}]],mk=[1,g,rce,0,[0,{[h]:Kp}]],hk=[1,g,_ce,0,[0,{[h]:Zp}]],gk=[1,g,Dce,0,[()=>tD,{[h]:m}]],_k=[1,g,vce,0,[0,{[h]:Qp}]],vk=[1,g,oce,0,[()=>uD,{[h]:m}]],yk=[1,g,Oce,0,[()=>cD,{[h]:m}]],bk=[1,g,Vse,0,[0,{[h]:m}]],xk=[1,g,ile,0,[()=>dD,{[h]:m}]],Sk=[1,g,ule,0,[()=>fD,{[h]:m}]],Ck=[1,g,cle,0,[1,{[h]:m}]],wk=[1,g,gle,0,[0,{[h]:m}]],Tk=[1,g,vle,0,[()=>hD,{[h]:m}]],Ek=[1,g,Kle,0,[0,{[h]:m}]],Dk=[1,g,qle,0,[0,{[h]:m}]],Ok=[1,g,xle,0,[()=>vD,{[h]:m}]],kk=[1,g,Nle,0,[0,{[h]:Bm}]],Ak=[1,g,zle,0,[()=>_D,{[h]:m}]],jk=[1,g,wle,0,[()=>xD,{[h]:m}]],Mk=[1,g,Ple,0,[0,{[h]:Rm}]],Nk=[1,g,Mle,0,[()=>DD,{[h]:m}]],Pk=[1,g,Ble,0,[()=>bD,{[h]:m}]],Fk=[1,g,nue,0,[0,{[h]:m}]],Ik=[1,g,iue,0,[0,{[h]:Ym}]],Lk=[1,g,oue,0,[0,{[h]:Xm}]],Rk=[9,g,Qte,0,()=>kS,()=>AS],zk=[9,g,ene,0,()=>jS,()=>MS],Bk=[9,g,cne,0,()=>NS,()=>PS],Vk=[9,g,Cne,0,()=>FS,()=>IS],Hk=[9,g,one,0,()=>LS,()=>OD],Uk=[9,g,Lne,0,()=>RS,()=>vD],Wk=[9,g,Ene,0,()=>VS,()=>HS],Gk=[9,g,jne,0,()=>US,()=>WS],Kk=[9,g,Jre,0,()=>aC,()=>oC],qk=[9,g,bre,0,()=>lC,()=>uC],Jk=[9,g,mre,0,()=>dC,()=>fC],Yk=[9,g,xre,0,()=>pC,()=>QT],Xk=[9,g,Cre,0,()=>mC,()=>hC],Zk=[9,g,Dre,0,()=>gC,()=>_C],Qk=[9,g,Lre,0,()=>vC,()=>yC],$k=[9,g,Ire,0,()=>bC,()=>xC],eA=[9,g,Rre,0,()=>SC,()=>CC],tA=[9,g,Xre,0,()=>wC,()=>tD],nA=[9,g,Zre,0,()=>TC,()=>EC],rA=[9,g,va,0,()=>DC,()=>_D],iA=[9,g,ya,0,()=>OC,()=>kC],aA=[9,g,Ua,0,()=>MC,()=>OD],oA=[9,g,mo,0,()=>NC,()=>PC],sA=[9,g,Co,0,()=>FC,()=>IC],cA=[9,g,Mo,0,()=>LC,()=>OD],lA=[9,g,Xo,0,()=>RC,()=>OD],uA=[9,g,Ho,0,()=>zC,()=>OD],dA=[9,g,Qo,0,()=>BC,()=>VC],fA=[9,g,us,0,()=>HC,()=>OD],pA=[9,g,ds,0,()=>UC,()=>OD],mA=[9,g,Os,0,()=>WC,()=>OD],hA=[9,g,ks,0,()=>GC,()=>OD],gA=[9,g,Ma,0,()=>KC,()=>qC],_A=[9,g,ja,0,()=>JC,()=>YC],vA=[9,g,Za,0,()=>XC,()=>ZC],yA=[9,g,uo,0,()=>QC,()=>$C],bA=[9,g,fo,0,()=>ew,()=>tw],xA=[9,g,lo,0,()=>nw,()=>rw],SA=[9,g,Ja,0,()=>iw,()=>aw],CA=[9,g,yo,0,()=>ow,()=>sw],wA=[9,g,Oo,0,()=>cw,()=>lw],TA=[9,g,Io,0,()=>uw,()=>dw],EA=[9,g,Zo,0,()=>fw,()=>pw],DA=[9,g,qo,0,()=>mw,()=>hw],OA=[9,g,rs,0,()=>gw,()=>_w],kA=[9,g,fs,0,()=>vw,()=>yw],AA=[9,g,ps,0,()=>bw,()=>xw],jA=[9,g,As,0,()=>Sw,()=>Cw],MA=[9,g,js,0,()=>ww,()=>Tw],NA=[9,g,Ya,0,()=>Ew,()=>OD],PA=[9,g,Ms,0,()=>Dw,()=>vD],FA=[9,g,Na,0,()=>Ow,()=>OD],IA=[9,g,Xa,0,()=>kw,()=>Aw],LA=[9,g,Jo,0,()=>jw,()=>OD],RA=[9,g,fl,0,()=>Qw,()=>$w],zA=[9,g,Qu,0,()=>dT,()=>fT],BA=[9,g,lae,0,()=>sE,()=>OD],VA=[9,g,pae,0,()=>cE,()=>OD],HA=[9,g,vae,0,()=>lE,()=>uE],UA=[9,g,nse,0,()=>IE,()=>OD],WA=[9,g,Voe,0,()=>BE,()=>OD],GA=[9,g,pse,0,()=>UE,()=>WE],KA=[9,g,vse,0,()=>GE,()=>KE],qA=[9,g,ise,0,()=>QE,()=>VE],JA=[9,g,Cce,0,()=>rD,()=>iD],YA=[9,g,Tce,0,()=>oD,()=>sD],XA=[9,g,Qce,0,()=>pD,()=>mD],ZA=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Gte,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ite,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Fee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:CS,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),QA=e=>{let t=Ye(e),n=()=>t().then(pt),r=ZA(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:Bte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},$A=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ej=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),tj=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),$A(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),ej(n))},nj=class extends we{config;constructor(...[e]){let t=QA(e||{});super(t),this.initConfig=t;let n=tj(Lte(Oe(Ue(ye(at(_e(Rte(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:Pte,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},rj=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,ij=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function aj(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var oj=e=>{let t=[];switch(e.operation){default:t.push(aj(e))}return t},sj=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},cj=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),lj={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},uj={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},dj=`ref`,fj=-1,pj=!0,mj=`isSet`,hj=`PartitionResult`,gj=`stringEquals`,_j=`booleanEquals`,vj=`getAttr`,yj={[dj]:`Endpoint`},bj={fn:vj,argv:[{[dj]:hj},`name`]},xj={[dj]:hj},Sj={},Cj=[{[dj]:`Region`}],wj={conditions:[[mj,[yj]],[mj,Cj],[`aws.partition`,Cj,hj],[gj,[bj,`aws-eusc`]],[gj,[bj,`aws-iso-f`]],[gj,[bj,`aws-iso-e`]],[gj,[bj,`aws-iso-b`]],[gj,[bj,`aws-iso`]],[gj,[bj,`aws-cn`]],[gj,[bj,`aws-us-gov`]],[gj,[bj,`aws`]],[_j,[{[dj]:`UseFIPS`},pj]],[_j,[{fn:vj,argv:[xj,`supportsFIPS`]},pj]],[_j,[{[dj]:`UseDualStack`},pj]],[_j,[{fn:vj,argv:[xj,`supportsDualStack`]},pj]]],results:[[fj],[fj,`Invalid Configuration: FIPS and custom endpoint are not supported`],[fj,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[yj,Sj],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,Sj],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,Sj],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[fj,`FIPS and DualStack are enabled, but this partition does not support one or both`],[fj,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,Sj],[fj,`DualStack is enabled but this partition does not support DualStack`],[fj,`Invalid Configuration: Missing Region`]]},Tj=2,Ej=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),Dj=he.from(Ej,Tj,wj.conditions,wj.results),Oj=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),kj=(e,t={})=>Oj.get(e,()=>gt(Dj,{endpointParams:e,logger:t.logger}));oe.aws=fe;var _=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Aj=class e extends _{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jj=class e extends _{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Mj=class e extends _{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nj=class e extends _{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pj=class e extends _{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fj=class e extends _{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ij=class e extends _{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lj=class e extends _{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rj=class e extends _{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},zj=class e extends _{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bj=class e extends _{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vj=class e extends _{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hj=class e extends _{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Uj=class e extends _{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wj=class e extends _{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gj=class e extends _{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kj=class e extends _{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qj=class e extends _{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jj=class e extends _{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yj=class e extends _{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xj=class e extends _{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zj=class e extends _{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qj=class e extends _{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$j=class e extends _{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eM=class e extends _{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tM=class e extends _{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nM=class e extends _{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rM=class e extends _{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iM=class e extends _{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aM=class e extends _{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oM=class e extends _{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sM=class e extends _{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cM=class e extends _{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lM=class e extends _{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uM=class e extends _{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dM=class e extends _{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fM=class e extends _{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pM=class e extends _{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mM=class e extends _{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hM=class e extends _{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gM=class e extends _{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_M=class e extends _{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vM=class e extends _{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yM=class e extends _{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bM=class e extends _{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xM=class e extends _{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SM=class e extends _{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},CM=`BlockedByOrganizationPolicyException`,wM=`BatchDeleteImage`,TM=`BatchDeleteImageRequest`,EM=`BatchDeleteImageResponse`,DM=`CreateRepository`,OM=`CreateRepositoryRequest`,kM=`CreateRepositoryResponse`,AM=`DescribeImages`,jM=`DescribeImagesFilter`,MM=`DescribeImagesRequest`,NM=`DescribeImagesResponse`,PM=`DeleteLifecyclePolicy`,FM=`DeleteLifecyclePolicyRequest`,IM=`DeleteLifecyclePolicyResponse`,LM=`DeleteRepository`,RM=`DeleteRepositoryPolicyRequest`,zM=`DeleteRepositoryPolicyResponse`,BM=`DeleteRepositoryPolicy`,VM=`DeleteRepositoryRequest`,HM=`DeleteRepositoryResponse`,UM=`DescribeRepositoriesRequest`,WM=`DescribeRepositoriesResponse`,GM=`DescribeRepositories`,KM=`ExclusionAlreadyExistsException`,qM=`EncryptionConfiguration`,JM=`ExclusionNotFoundException`,YM=`EmptyUploadException`,XM=`GetLifecyclePolicy`,ZM=`GetLifecyclePolicyPreview`,QM=`GetLifecyclePolicyPreviewRequest`,$M=`GetLifecyclePolicyPreviewResponse`,eN=`GetLifecyclePolicyRequest`,tN=`GetLifecyclePolicyResponse`,nN=`GetRepositoryPolicyRequest`,rN=`GetRepositoryPolicyResponse`,iN=`GetRepositoryPolicy`,aN=`ImageArchivedException`,oN=`ImageAlreadyExistsException`,sN=`ImageDetail`,cN=`ImageDigestDoesNotMatchException`,lN=`ImageDetailList`,uN=`ImageFailure`,dN=`ImageFailureList`,fN=`ImageIdentifier`,pN=`ImageIdentifierList`,mN=`InvalidLayerException`,hN=`InvalidLayerPartException`,gN=`ImageNotFoundException`,_N=`InvalidParameterException`,vN=`ImageScanningConfiguration`,yN=`ImageStorageClassUpdateNotSupportedException`,bN=`ImageScanFindingsSummary`,xN=`ImageScanStatus`,SN=`ImageTagAlreadyExistsException`,CN=`ImageTagMutabilityExclusionFilter`,wN=`ImageTagMutabilityExclusionFilters`,TN=`InvalidTagParameterException`,EN=`Key`,DN=`KmsException`,ON=`LayerAlreadyExistsException`,kN=`LimitExceededException`,AN=`LayerInaccessibleException`,jN=`LayersNotFoundException`,MN=`LifecyclePolicyNotFoundException`,NN=`LifecyclePolicyPreviewFilter`,PN=`LifecyclePolicyPreviewInProgressException`,FN=`LifecyclePolicyPreviewNotFoundException`,IN=`LifecyclePolicyPreviewResult`,LN=`LifecyclePolicyPreviewResultList`,RN=`LifecyclePolicyPreviewSummary`,zN=`LifecyclePolicyRuleAction`,BN=`LayerPartTooSmallException`,VN=`PutImageTagMutability`,HN=`PutImageTagMutabilityRequest`,UN=`PutImageTagMutabilityResponse`,WN=`PutLifecyclePolicy`,GN=`PutLifecyclePolicyRequest`,KN=`PutLifecyclePolicyResponse`,qN=`PullThroughCacheRuleAlreadyExistsException`,JN=`PullThroughCacheRuleNotFoundException`,YN=`RepositoryAlreadyExistsException`,XN=`ReferencedImagesNotFoundException`,ZN=`RepositoryList`,QN=`RepositoryNotEmptyException`,$N=`RepositoryNotFoundException`,eP=`RegistryPolicyNotFoundException`,tP=`RepositoryPolicyNotFoundException`,nP=`Repository`,rP=`SigningConfigurationNotFoundException`,iP=`ServerException`,aP=`ScanNotFoundException`,oP=`SecretNotFoundException`,sP=`SetRepositoryPolicy`,cP=`SetRepositoryPolicyRequest`,lP=`SetRepositoryPolicyResponse`,uP=`Tag`,dP=`TemplateAlreadyExistsException`,fP=`TransitioningImageTotalCount`,pP=`TransitioningImageTotalCounts`,mP=`TagList`,hP=`TooManyTagsException`,gP=`TemplateNotFoundException`,_P=`UnsupportedImageTypeException`,vP=`UploadNotFoundException`,yP=`UnableToAccessSecretException`,bP=`UnableToDecryptSecretValueException`,xP=`UnableToGetUpstreamImageException`,SP=`UnableToGetUpstreamLayerException`,CP=`UnableToListUpstreamImageReferrersException`,wP=`UnsupportedUpstreamRegistryException`,TP=`Value`,EP=`ValidationException`,DP=`artifactMediaType`,OP=`appliedRulePriority`,kP=`action`,v=`client`,AP=`createdAt`,jP=`description`,y=`error`,MP=`encryptionConfiguration`,NP=`expiringImageTotalCount`,PP=`encryptionType`,FP=`failures`,IP=`failureCode`,LP=`failureReason`,RP=`findingSeverityCounts`,zP=`filterType`,BP=`filter`,VP=`force`,HP=`httpError`,UP=`imageDetails`,WP=`imageDigest`,GP=`imageIds`,KP=`imageId`,qP=`imageManifestMediaType`,JP=`imagePushedAt`,YP=`imageStatus`,XP=`imageScanningConfiguration`,ZP=`imageScanCompletedAt`,QP=`imageScanFindingsSummary`,$P=`imageSizeInBytes`,eF=`imageScanStatus`,tF=`imageTags`,nF=`imageTotalCount`,rF=`imageTagMutability`,iF=`imageTagMutabilityExclusionFilters`,aF=`imageTag`,oF=`kmsError`,sF=`kmsKey`,cF=`lastArchivedAt`,lF=`lastActivatedAt`,uF=`lastEvaluatedAt`,dF=`lifecyclePolicyText`,fF=`lastRecordedPullTime`,pF=`lastValidByteReceived`,b=`message`,mF=`maxResults`,hF=`nextToken`,gF=`previewResults`,_F=`policyText`,vF=`repositoryArn`,yF=`registryId`,bF=`repositoryName`,xF=`repositoryNames`,SF=`repositoryUri`,CF=`repository`,wF=`repositories`,TF=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,EF=`storageClass`,DF=`subjectManifestDigest`,OF=`scanOnPush`,kF=`server`,AF=`status`,jF=`summary`,MF=`tags`,NF=`transitioningImageTotalCounts`,PF=`tagStatus`,FF=`targetStorageClass`,IF=`type`,LF=`uploadId`,RF=`vulnerabilitySourceUpdatedAt`,x=`com.amazonaws.ecr`,zF=ce.for(TF),BF=[-3,TF,`ECRServiceException`,0,[],[]];zF.registerError(BF,_);var S=ce.for(x),VF=[-3,x,CM,{[y]:v},[b],[0]];S.registerError(VF,gM);var HF=[-3,x,YM,{[y]:v},[b],[0]];S.registerError(HF,Ij);var UF=[-3,x,KM,{[y]:v},[b],[0]];S.registerError(UF,_M);var WF=[-3,x,JM,{[y]:v},[b],[0]];S.registerError(WF,iM);var GF=[-3,x,oN,{[y]:v},[b],[0]];S.registerError(GF,fM);var KF=[-3,x,aN,{[y]:v},[b],[0]];S.registerError(KF,vM);var qF=[-3,x,cN,{[y]:v},[b],[0]];S.registerError(qF,pM);var JF=[-3,x,gN,{[y]:v},[b],[0]];S.registerError(JF,aM);var YF=[-3,x,yN,{[y]:v},[b],[0]];S.registerError(YF,xM);var XF=[-3,x,SN,{[y]:v},[b],[0]];S.registerError(XF,mM);var ZF=[-3,x,mN,{[y]:v},[b],[0]];S.registerError(ZF,Lj);var QF=[-3,x,hN,{[y]:v},[yF,bF,LF,pF,b],[0,0,0,1,0]];S.registerError(QF,SM);var $F=[-3,x,_N,{[y]:v},[b],[0]];S.registerError($F,Aj);var eI=[-3,x,TN,{[y]:v},[b],[0]];S.registerError(eI,qj);var tI=[-3,x,DN,{[y]:v},[b,oF],[0,0]];S.registerError(tI,Rj);var nI=[-3,x,ON,{[y]:v},[b],[0]];S.registerError(nI,zj);var rI=[-3,x,AN,{[y]:v},[b],[0]];S.registerError(rI,sM);var iI=[-3,x,BN,{[y]:v},[b],[0]];S.registerError(iI,Bj);var aI=[-3,x,jN,{[y]:v},[b],[0]];S.registerError(aI,cM);var oI=[-3,x,MN,{[y]:v},[b],[0]];S.registerError(oI,Zj);var sI=[-3,x,PN,{[y]:v},[b],[0]];S.registerError(sI,bM);var cI=[-3,x,FN,{[y]:v},[b],[0]];S.registerError(cI,uM);var lI=[-3,x,kN,{[y]:v},[b],[0]];S.registerError(lI,Nj);var uI=[-3,x,qN,{[y]:v},[b],[0]];S.registerError(uI,Hj);var dI=[-3,x,JN,{[y]:v},[b],[0]];S.registerError(dI,Qj);var fI=[-3,x,XN,{[y]:v},[b],[0]];S.registerError(fI,hM);var pI=[-3,x,eP,{[y]:v},[b],[0]];S.registerError(pI,$j);var mI=[-3,x,YN,{[y]:v},[b],[0]];S.registerError(mI,Jj);var hI=[-3,x,QN,{[y]:v},[b],[0]];S.registerError(hI,eM);var gI=[-3,x,$N,{[y]:v},[b],[0]];S.registerError(gI,jj);var _I=[-3,x,tP,{[y]:v},[b],[0]];S.registerError(_I,nM);var vI=[-3,x,aP,{[y]:v},[b],[0]];S.registerError(vI,oM);var yI=[-3,x,oP,{[y]:v},[b],[0]];S.registerError(yI,Uj);var bI=[-3,x,iP,{[y]:kF},[b],[0]];S.registerError(bI,Mj);var xI=[-3,x,rP,{[y]:v},[b],[0]];S.registerError(xI,rM);var SI=[-3,x,dP,{[y]:v},[b],[0]];S.registerError(SI,Xj);var CI=[-3,x,gP,{[y]:v},[b],[0]];S.registerError(CI,tM);var wI=[-3,x,hP,{[y]:v},[b],[0]];S.registerError(wI,Yj);var TI=[-3,x,yP,{[y]:v},[b],[0]];S.registerError(TI,Wj);var EI=[-3,x,bP,{[y]:v},[b],[0]];S.registerError(EI,Gj);var DI=[-3,x,xP,{[y]:v},[b],[0]];S.registerError(DI,Pj);var OI=[-3,x,SP,{[y]:v},[b],[0]];S.registerError(OI,lM);var kI=[-3,x,CP,{[y]:v},[b],[0]];S.registerError(kI,dM);var AI=[-3,x,_P,{[y]:v},[b],[0]];S.registerError(AI,yM);var jI=[-3,x,wP,{[y]:v},[b],[0]];S.registerError(jI,Kj);var MI=[-3,x,vP,{[y]:v},[b],[0]];S.registerError(MI,Vj);var NI=[-3,x,EP,{[y]:v,[HP]:400},[b],[0]];S.registerError(NI,Fj);var PI=[zF,S],FI=[3,x,TM,0,[bF,GP,yF],[0,()=>TL,0],2],II=[3,x,EM,0,[GP,FP],[()=>TL,()=>wL]],LI=[3,x,OM,0,[bF,yF,MF,rF,iF,XP,MP],[0,0,()=>kL,0,()=>EL,()=>sL,()=>XI],1],RI=[3,x,kM,0,[CF],[()=>vL]],zI=[3,x,FM,0,[bF,yF],[0,0],1],BI=[3,x,IM,0,[yF,bF,dF,uF],[0,0,0,4]],VI=[3,x,RM,0,[bF,yF],[0,0],1],HI=[3,x,zM,0,[yF,bF,_F],[0,0,0]],UI=[3,x,VM,0,[bF,yF,VP],[0,0,2],1],WI=[3,x,HM,0,[CF],[()=>vL]],GI=[3,x,jM,0,[PF,YP],[0,0]],KI=[3,x,MM,0,[bF,yF,GP,hF,mF,BP],[0,0,()=>TL,0,1,()=>GI],1],qI=[3,x,NM,0,[UP,hF],[()=>CL,0]],JI=[3,x,UM,0,[yF,xF,hF,mF],[0,64,0,1]],YI=[3,x,WM,0,[wF,hF],[()=>OL,0]],XI=[3,x,qM,0,[PP,sF],[0,0],1],ZI=[3,x,QM,0,[bF,yF,GP,hF,mF,BP],[0,0,()=>TL,0,1,()=>uL],1],QI=[3,x,$M,0,[yF,bF,dF,AF,hF,gF,jF],[0,0,0,0,0,()=>DL,()=>fL]],$I=[3,x,eN,0,[bF,yF],[0,0],1],eL=[3,x,tN,0,[yF,bF,dF,uF],[0,0,0,4]],tL=[3,x,nN,0,[bF,yF],[0,0],1],nL=[3,x,rN,0,[yF,bF,_F],[0,0,0]],rL=[3,x,sN,0,[yF,bF,WP,tF,$P,JP,eF,QP,qP,DP,fF,DF,YP,cF,lF],[0,0,0,64,1,4,()=>cL,()=>oL,0,0,4,0,0,4,4]],iL=[3,x,uN,0,[KP,IP,LP],[()=>aL,0,0]],aL=[3,x,fN,0,[WP,aF],[0,0]],oL=[3,x,bN,0,[ZP,RF,RP],[4,4,129]],sL=[3,x,vN,0,[OF],[2]],cL=[3,x,xN,0,[AF,jP],[0,0]],lL=[3,x,CN,0,[zP,BP],[0,0],2],uL=[3,x,NN,0,[PF],[0]],dL=[3,x,IN,0,[tF,WP,JP,kP,OP,EF],[64,0,4,()=>pL,1,0]],fL=[3,x,RN,0,[NP,NF],[1,()=>AL]],pL=[3,x,zN,0,[IF,FF],[0,0]],mL=[3,x,HN,0,[bF,rF,yF,iF],[0,0,0,()=>EL],2],hL=[3,x,UN,0,[yF,bF,rF,iF],[0,0,0,()=>EL]],gL=[3,x,GN,0,[bF,dF,yF],[0,0,0],2],_L=[3,x,KN,0,[yF,bF,dF],[0,0,0]],vL=[3,x,nP,0,[vF,yF,bF,SF,AP,rF,iF,XP,MP],[0,0,0,0,4,0,()=>EL,()=>sL,()=>XI]],yL=[3,x,cP,0,[bF,_F,yF,VP],[0,0,0,2],2],bL=[3,x,lP,0,[yF,bF,_F],[0,0,0]],xL=[3,x,uP,0,[EN,TP],[0,0],2],SL=[3,x,fP,0,[FF,nF],[0,1]],CL=[1,x,lN,0,()=>rL],wL=[1,x,dN,0,()=>iL],TL=[1,x,pN,0,()=>aL],EL=[1,x,wN,0,()=>lL],DL=[1,x,LN,0,()=>dL],OL=[1,x,ZN,0,()=>vL],kL=[1,x,mP,0,()=>xL],AL=[1,x,pP,0,()=>SL],jL=[9,x,wM,0,()=>FI,()=>II],ML=[9,x,DM,0,()=>LI,()=>RI],NL=[9,x,PM,0,()=>zI,()=>BI],PL=[9,x,LM,0,()=>UI,()=>WI],FL=[9,x,BM,0,()=>VI,()=>HI],IL=[9,x,AM,0,()=>KI,()=>qI],LL=[9,x,GM,0,()=>JI,()=>YI],RL=[9,x,XM,0,()=>$I,()=>eL],zL=[9,x,ZM,0,()=>ZI,()=>QI],BL=[9,x,iN,0,()=>tL,()=>nL],VL=[9,x,VN,0,()=>mL,()=>hL],HL=[9,x,WN,0,()=>gL,()=>_L],UL=[9,x,sP,0,()=>yL,()=>bL],WL=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??kj,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??oj,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Jt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:PI,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),GL=e=>{let t=Ye(e),n=()=>t().then(pt),r=WL(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:uj.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},KL=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},qL=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),JL=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),KL(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),qL(n))},YL=class extends we{config;constructor(...[e]){let t=GL(e||{});super(t),this.initConfig=t;let n=JL(sj(Oe(Ue(ye(at(_e(cj(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:ij,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},XL=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ZL(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecs`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var QL=e=>{let t=[];switch(e.operation){default:t.push(ZL(e))}return t},$L=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},eR=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecs`}),tR={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},nR={name:`@aws-sdk/client-ecs`,description:`AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecs`}},rR=`ref`,iR=-1,aR=!0,oR=`isSet`,sR=`PartitionResult`,cR=`booleanEquals`,lR=`getAttr`,uR={[rR]:`Endpoint`},dR={[rR]:sR},fR={},pR=[{[rR]:`Region`}],mR={conditions:[[oR,[uR]],[oR,pR],[`aws.partition`,pR,sR],[cR,[{[rR]:`UseFIPS`},aR]],[cR,[{[rR]:`UseDualStack`},aR]],[cR,[{fn:lR,argv:[dR,`supportsDualStack`]},aR]],[cR,[{fn:lR,argv:[dR,`supportsFIPS`]},aR]]],results:[[iR],[iR,`Invalid Configuration: FIPS and custom endpoint are not supported`],[iR,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[uR,fR],[`https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,fR],[iR,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}`,fR],[iR,`FIPS is enabled but this partition does not support FIPS`],[`https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}`,fR],[iR,`DualStack is enabled but this partition does not support DualStack`],[`https://ecs.{Region}.{PartitionResult#dnsSuffix}`,fR],[iR,`Invalid Configuration: Missing Region`]]},hR=2,gR=new Int32Array([-1,1,-1,0,12,3,1,4,100000011,2,5,100000011,3,8,6,4,7,100000010,5,100000008,100000009,4,10,9,6,100000006,100000007,5,11,100000005,6,100000004,100000005,3,100000001,13,4,100000002,100000003]),_R=he.from(gR,hR,mR.conditions,mR.results),vR=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),yR=(e,t={})=>vR.get(e,()=>gt(_R,{endpointParams:e,logger:t.logger}));oe.aws=fe;var C=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},bR=class e extends C{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xR=class e extends C{name=`ClientException`;$fault=`client`;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SR=class e extends C{name=`ClusterNotFoundException`;$fault=`client`;constructor(t){super({name:`ClusterNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CR=class e extends C{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wR=class e extends C{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TR=class e extends C{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},ER=class e extends C{name=`UnsupportedFeatureException`;$fault=`client`;constructor(t){super({name:`UnsupportedFeatureException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DR=class e extends C{name=`UpdateInProgressException`;$fault=`client`;constructor(t){super({name:`UpdateInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OR=class e extends C{name=`NamespaceNotFoundException`;$fault=`client`;constructor(t){super({name:`NamespaceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kR=class e extends C{name=`ClusterContainsCapacityProviderException`;$fault=`client`;constructor(t){super({name:`ClusterContainsCapacityProviderException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AR=class e extends C{name=`ClusterContainsContainerInstancesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsContainerInstancesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jR=class e extends C{name=`ClusterContainsServicesException`;$fault=`client`;constructor(t){super({name:`ClusterContainsServicesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MR=class e extends C{name=`ClusterContainsTasksException`;$fault=`client`;constructor(t){super({name:`ClusterContainsTasksException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NR=class e extends C{name=`TargetNotConnectedException`;$fault=`client`;constructor(t){super({name:`TargetNotConnectedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PR=class e extends C{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FR=class e extends C{name=`TargetNotFoundException`;$fault=`client`;constructor(t){super({name:`TargetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IR=class e extends C{name=`ServiceNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LR=class e extends C{name=`AttributeLimitExceededException`;$fault=`client`;constructor(t){super({name:`AttributeLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RR=class e extends C{name=`MissingVersionException`;$fault=`client`;constructor(t){super({name:`MissingVersionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zR=class e extends C{name=`NoUpdateAvailableException`;$fault=`client`;constructor(t){super({name:`NoUpdateAvailableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BR=class e extends C{name=`ServiceDeploymentNotFoundException`;$fault=`client`;constructor(t){super({name:`ServiceDeploymentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VR=class e extends C{name=`PlatformUnknownException`;$fault=`client`;constructor(t){super({name:`PlatformUnknownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HR=class e extends C{name=`DaemonNotActiveException`;$fault=`client`;constructor(t){super({name:`DaemonNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UR=class e extends C{name=`DaemonNotFoundException`;$fault=`client`;constructor(t){super({name:`DaemonNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WR=class e extends C{name=`PlatformTaskDefinitionIncompatibilityException`;$fault=`client`;constructor(t){super({name:`PlatformTaskDefinitionIncompatibilityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GR=class e extends C{name=`ServiceNotActiveException`;$fault=`client`;constructor(t){super({name:`ServiceNotActiveException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KR=class e extends C{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qR=class e extends C{name=`ConflictException`;$fault=`client`;resourceIds;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.resourceIds=t.resourceIds}},JR=class e extends C{name=`TaskSetNotFoundException`;$fault=`client`;constructor(t){super({name:`TaskSetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YR=class e extends C{name=`BlockedException`;$fault=`client`;constructor(t){super({name:`BlockedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XR=`Attachment`,ZR=`AdvancedConfiguration`,QR=`AttachmentDetails`,$R=`AccessDeniedException`,ez=`AttributeLimitExceededException`,tz=`AwsVpcConfiguration`,nz=`Attribute`,rz=`Attachments`,iz=`Attributes`,az=`BlockedException`,oz=`Cluster`,sz=`CanaryConfiguration`,cz=`ClusterContainsContainerInstancesException`,lz=`ClusterContainsCapacityProviderException`,uz=`CreateClusterRequest`,dz=`CreateClusterResponse`,fz=`ClusterContainsServicesException`,pz=`ClusterContainsTasksException`,mz=`ClusterConfiguration`,hz=`CreateCluster`,gz=`ContainerDefinition`,_z=`ContainerDependency`,vz=`ContainerDefinitions`,yz=`ContainerDependencies`,bz=`ClientException`,xz=`ConflictException`,Sz=`ContainerInstanceHealthStatus`,Cz=`ContainerInstance`,wz=`ContainerInstances`,Tz=`ClusterNotFoundException`,Ez=`ContainerOverride`,Dz=`ContainerOverrides`,Oz=`CapacityProviderStrategy`,kz=`CapacityProviderStrategyItem`,Az=`ContainerRestartPolicy`,jz=`ClusterSetting`,Mz=`ClusterServiceConnectDefaults`,Nz=`ClusterServiceConnectDefaultsRequest`,Pz=`CreateServiceRequest`,Fz=`CreateServiceResponse`,Iz=`ClusterSettings`,Lz=`CreateService`,Rz=`Clusters`,zz=`Container`,Bz=`Containers`,Vz=`Deployment`,Hz=`DeploymentAlarms`,Uz=`DeploymentConfiguration`,Wz=`DeploymentCircuitBreaker`,Gz=`DeregisterContainerInstanceRequest`,Kz=`DeregisterContainerInstanceResponse`,qz=`DescribeContainerInstancesRequest`,Jz=`DescribeContainerInstancesResponse`,Yz=`DeregisterContainerInstance`,Xz=`DescribeContainerInstances`,Zz=`DeleteClusterRequest`,Qz=`DeleteClusterResponse`,$z=`DescribeClustersRequest`,eB=`DescribeClustersResponse`,tB=`DeploymentController`,nB=`DeleteCluster`,rB=`DescribeClusters`,iB=`DeploymentEphemeralStorage`,aB=`DevicesList`,oB=`DeploymentLifecycleHook`,sB=`DeploymentLifecycleHookList`,cB=`DeploymentLifecycleHookTimeoutConfiguration`,lB=`DaemonNotActiveException`,uB=`DaemonNotFoundException`,dB=`DescribeServicesRequest`,fB=`DescribeServicesResponse`,pB=`DescribeServices`,mB=`DescribeTasks`,hB=`DeregisterTaskDefinitionRequest`,gB=`DeregisterTaskDefinitionResponse`,_B=`DescribeTaskDefinitionRequest`,vB=`DescribeTaskDefinitionResponse`,yB=`DeregisterTaskDefinition`,bB=`DescribeTaskDefinition`,xB=`DescribeTasksRequest`,SB=`DescribeTasksResponse`,CB=`DockerVolumeConfiguration`,wB=`Device`,TB=`Deployments`,EB=`EBSTagSpecification`,DB=`EBSTagSpecifications`,OB=`ExecuteCommandConfiguration`,kB=`ExecuteCommandLogConfiguration`,AB=`EnvironmentFile`,jB=`EFSAuthorizationConfig`,MB=`EFSVolumeConfiguration`,NB=`EnvironmentFiles`,PB=`EphemeralStorage`,FB=`EnvironmentVariables`,IB=`Failure`,LB=`FirelensConfiguration`,RB=`FSxWindowsFileServerAuthorizationConfig`,zB=`FSxWindowsFileServerVolumeConfiguration`,BB=`Failures`,VB=`HealthCheck`,HB=`HostEntry`,UB=`HostEntryList`,WB=`HostVolumeProperties`,GB=`InferenceAccelerator`,KB=`InferenceAcceleratorOverride`,qB=`InferenceAcceleratorOverrides`,JB=`InferenceAccelerators`,YB=`InstanceHealthCheckResult`,XB=`InstanceHealthCheckResultList`,ZB=`InvalidParameterException`,QB=`KernelCapabilities`,$B=`KeyValuePair`,eV=`LoadBalancer`,tV=`LoadBalancers`,nV=`LinearConfiguration`,rV=`ListContainerInstances`,iV=`ListContainerInstancesRequest`,aV=`ListContainerInstancesResponse`,oV=`ListClustersRequest`,sV=`ListClustersResponse`,cV=`ListClusters`,lV=`LogConfiguration`,uV=`LimitExceededException`,dV=`LinuxParameters`,fV=`ListServices`,pV=`ListServicesRequest`,mV=`ListServicesResponse`,hV=`ListTasks`,gV=`ListTaskDefinitions`,_V=`ListTaskDefinitionsRequest`,vV=`ListTaskDefinitionsResponse`,yV=`ListTasksRequest`,bV=`ListTasksResponse`,xV=`ManagedAgent`,SV=`ManagedAgents`,CV=`MetricConfigurationList`,wV=`MetricConfiguration`,TV=`MonitoringConfiguration`,EV=`MountPoint`,DV=`MountPointList`,OV=`ManagedStorageConfiguration`,kV=`MissingVersionException`,AV=`NetworkBinding`,jV=`NetworkBindings`,MV=`NetworkConfiguration`,NV=`NetworkInterface`,PV=`NetworkInterfaces`,FV=`NamespaceNotFoundException`,IV=`NoUpdateAvailableException`,LV=`PlacementConstraint`,RV=`ProxyConfigurationProperties`,zV=`PlacementConstraints`,BV=`ProxyConfiguration`,VV=`PortMapping`,HV=`PortMappingList`,UV=`PlacementStrategy`,WV=`PlacementStrategies`,GV=`PlatformTaskDefinitionIncompatibilityException`,KV=`PlatformUnknownException`,qV=`Resource`,JV=`RequiresAttributes`,YV=`RepositoryCredentials`,XV=`ResourceInUseException`,ZV=`ResourceNotFoundException`,QV=`RuntimePlatform`,$V=`ResourceRequirement`,eH=`ResourceRequirements`,tH=`RunTask`,nH=`RegisterTaskDefinition`,rH=`RegisterTaskDefinitionRequest`,iH=`RegisterTaskDefinitionResponse`,aH=`RunTaskRequest`,oH=`RunTaskResponse`,sH=`Resources`,cH=`Scale`,lH=`SystemControl`,uH=`ServiceConnectAccessLogConfiguration`,dH=`ServiceConnectConfiguration`,fH=`ServiceConnectClientAlias`,pH=`ServiceConnectClientAliasList`,mH=`ServiceCurrentRevisionSummary`,hH=`ServiceCurrentRevisionSummaryList`,gH=`ServiceConnectService`,_H=`ServiceConnectServiceList`,vH=`ServiceConnectServiceResource`,yH=`ServiceConnectServiceResourceList`,bH=`ServiceConnectTlsConfiguration`,xH=`ServiceConnectTlsCertificateAuthority`,SH=`ServiceConnectTestTrafficHeaderMatchRules`,CH=`ServiceConnectTestTrafficHeaderRules`,wH=`ServiceConnectTestTrafficRules`,TH=`SystemControls`,EH=`ServiceDeploymentNotFoundException`,DH=`ServerException`,OH=`ServiceEvent`,kH=`ServiceEvents`,AH=`S3FilesVolumeConfiguration`,jH=`SecretList`,MH=`ServiceManagedEBSVolumeConfiguration`,NH=`ServiceNotActiveException`,PH=`ServiceNotFoundException`,FH=`ServiceRegistry`,IH=`ServiceRegistries`,LH=`StopTaskRequest`,RH=`StopTaskResponse`,zH=`StopTask`,BH=`ServiceVolumeConfiguration`,VH=`ServiceVolumeConfigurations`,HH=`Secret`,UH=`Service`,WH=`Services`,GH=`Statistics`,KH=`Tag`,qH=`TimeoutConfiguration`,JH=`TaskDefinition`,YH=`TaskDefinitionPlacementConstraint`,XH=`TaskDefinitionPlacementConstraints`,ZH=`TaskEphemeralStorage`,QH=`TmpfsList`,$H=`TaskManagedEBSVolumeConfiguration`,eU=`TaskManagedEBSVolumeTerminationPolicy`,tU=`TargetNotConnectedException`,nU=`TargetNotFoundException`,rU=`TaskOverride`,iU=`TaskSet`,aU=`TaskSetNotFoundException`,oU=`TaskSets`,sU=`TaskVolumeConfiguration`,cU=`TaskVolumeConfigurations`,lU=`Task`,uU=`Tags`,dU=`Tasks`,fU=`Tmpfs`,pU=`Ulimit`,mU=`UpdateContainerInstancesState`,hU=`UpdateContainerInstancesStateRequest`,gU=`UpdateContainerInstancesStateResponse`,_U=`UnsupportedFeatureException`,vU=`UpdateInProgressException`,yU=`UlimitList`,bU=`Volume`,xU=`VolumeFrom`,SU=`VolumeFromList`,CU=`VersionInfo`,wU=`VolumeList`,TU=`VpcLatticeConfiguration`,EU=`VpcLatticeConfigurations`,DU=`attachments`,OU=`agentConnected`,kU=`advancedConfiguration`,AU=`authorizationConfig`,jU=`awsvpcConfiguration`,MU=`agentHash`,NU=`attachmentId`,PU=`accessLogConfiguration`,FU=`alarmNames`,IU=`appProtocol`,LU=`accessPointArn`,RU=`awsPcaAuthorityArn`,zU=`assignPublicIp`,BU=`accessPointId`,VU=`activeServicesCount`,HU=`attachmentsStatus`,UU=`alternateTargetGroupArn`,WU=`agentUpdateStatus`,GU=`agentVersion`,KU=`availabilityZone`,qU=`availabilityZoneRebalancing`,JU=`action`,YU=`add`,XU=`alarms`,ZU=`arn`,QU=`attributes`,$U=`autoprovision`,eW=`base`,tW=`bindIP`,nW=`bakeTimeInMinutes`,w=`client`,rW=`clusterArn`,iW=`configuredAtLaunch`,aW=`clusterArns`,oW=`clientAliases`,sW=`containerArn`,cW=`connectivityAt`,lW=`cpuArchitecture`,uW=`createdAt`,dW=`canaryBakeTimeInMinutes`,fW=`createdBy`,pW=`canaryConfiguration`,mW=`containerDefinitions`,hW=`computedDesiredCount`,gW=`containerInstanceArn`,_W=`containerInstanceArns`,vW=`containerInstance`,yW=`containerInstances`,bW=`clusterName`,xW=`containerName`,SW=`containerOverrides`,CW=`canaryPercent`,wW=`capacityProviderName`,TW=`containerPortRange`,EW=`capacityProviderStrategy`,DW=`capacityProvider`,OW=`capacityProviders`,kW=`containerPath`,AW=`containerPort`,jW=`credentialsParameter`,MW=`credentialSpecs`,NW=`currentServiceDeployment`,PW=`currentServiceRevisions`,FW=`clientToken`,IW=`cloudWatchEncryptionEnabled`,LW=`cloudWatchLogGroupName`,RW=`capabilities`,zW=`cluster`,BW=`clusters`,VW=`configuration`,HW=`command`,UW=`compatibilities`,WW=`condition`,GW=`connectivity`,KW=`containers`,qW=`count`,JW=`cpu`,YW=`details`,XW=`deregisteredAt`,ZW=`discoveryArn`,QW=`deploymentConfiguration`,$W=`deploymentCircuitBreaker`,eG=`defaultCapacityProviderStrategy`,tG=`desiredCount`,nG=`deploymentController`,rG=`dockerLabels`,iG=`disableNetworking`,aG=`daemonName`,oG=`deviceName`,sG=`discoveryName`,cG=`dnsName`,lG=`dependsOn`,uG=`deleteOnTermination`,dG=`driverOpts`,fG=`deleteRequestedAt`,pG=`dnsServers`,mG=`dnsSearchDomains`,hG=`dockerSecurityOptions`,gG=`desiredStatus`,_G=`deviceType`,vG=`doubleValue`,yG=`dockerVolumeConfiguration`,bG=`dockerVersion`,xG=`devices`,SG=`deployments`,CG=`detail`,wG=`domain`,TG=`driver`,EG=`drop`,T=`error`,DG=`exitCode`,OG=`executeCommandConfiguration`,kG=`enableExecuteCommand`,AG=`enableECSManagedTags`,jG=`environmentFiles`,MG=`enableFaultInjection`,NG=`extraHosts`,PG=`externalId`,FG=`ec2InstanceId`,IG=`entryPoint`,LG=`executionRoleArn`,RG=`executionStoppedAt`,zG=`ephemeralStorage`,BG=`efsVolumeConfiguration`,VG=`environment`,HG=`enabled`,UG=`enable`,WG=`encrypted`,GG=`essential`,KG=`events`,qG=`expression`,JG=`exact`,YG=`family`,XG=`firelensConfiguration`,ZG=`fargateEphemeralStorage`,QG=`fargateEphemeralStorageKmsKeyId`,$G=`familyPrefix`,eK=`fileSystemArn`,tK=`fileSystemId`,nK=`failedTasks`,rK=`filesystemType`,iK=`fsxWindowsFileServerVolumeConfiguration`,aK=`failures`,oK=`filter`,sK=`field`,cK=`force`,lK=`format`,uK=`group`,dK=`gpuIds`,fK=`hostname`,pK=`healthCheck`,mK=`healthCheckGracePeriodSeconds`,hK=`hookDetails`,gK=`httpError`,_K=`hardLimit`,vK=`hostPath`,yK=`hostPortRange`,bK=`hostPort`,xK=`healthStatus`,SK=`hookTargetArn`,CK=`header`,wK=`host`,TK=`id`,EK=`ipAddress`,DK=`inferenceAcceleratorOverrides`,OK=`inferenceAccelerators`,kK=`ipv6Address`,AK=`issuerCertificateAuthority`,jK=`imageDigest`,MK=`ignoredExitCodes`,NK=`ipcMode`,PK=`initProcessEnabled`,FK=`ingressPortOverride`,IK=`includeQueryParameters`,LK=`idleTimeoutSeconds`,RK=`integerValue`,zK=`iam`,BK=`image`,VK=`interactive`,HK=`include`,UK=`interval`,WK=`iops`,GK=`key`,KK=`kmsKey`,qK=`kmsKeyId`,JK=`links`,YK=`loadBalancers`,XK=`loadBalancerName`,ZK=`logConfiguration`,QK=`linearConfiguration`,$K=`logDriver`,eq=`lifecycleHooks`,tq=`linuxParameters`,nq=`lastStatus`,rq=`lastStartedAt`,iq=`lastStatusChange`,aq=`lifecycleStages`,oq=`launchType`,sq=`lastUpdated`,cq=`longValue`,lq=`labels`,uq=`logging`,E=`message`,dq=`managedAgents`,fq=`metricConfigurations`,pq=`managedEBSVolume`,mq=`minimumHealthyPercent`,hq=`metricNames`,gq=`mountOptions`,_q=`mountPoints`,vq=`maximumPercent`,yq=`memoryReservation`,bq=`maxResults`,xq=`managedStorageConfiguration`,Sq=`maxSwap`,Cq=`memory`,wq=`monitoring`,Tq=`name`,Eq=`networkBindings`,Dq=`networkConfiguration`,Oq=`neuronDeviceIds`,kq=`networkInterfaces`,Aq=`networkMode`,jq=`nextToken`,Mq=`namespace`,Nq=`options`,Pq=`overallStatus`,Fq=`operatingSystemFamily`,Iq=`overrides`,Lq=`privileged`,Rq=`pendingCount`,zq=`placementConstraints`,Bq=`proxyConfiguration`,Vq=`platformFamily`,Hq=`privateIpv4Address`,Uq=`productionListenerRule`,Wq=`portMappings`,Gq=`pidMode`,Kq=`portName`,qq=`perRequestTimeoutSeconds`,Jq=`placementStrategy`,Yq=`pullStartedAt`,Xq=`pullStoppedAt`,Zq=`pseudoTerminal`,Qq=`pendingTasksCount`,$q=`pendingTaskCount`,eJ=`propagateTags`,tJ=`platformVersion`,nJ=`permissions`,rJ=`port`,iJ=`protocol`,aJ=`properties`,oJ=`reason`,sJ=`roleArn`,cJ=`restartAttemptPeriod`,lJ=`registeredAt`,uJ=`registryArn`,dJ=`requiresAttributes`,fJ=`registeredBy`,pJ=`repositoryCredentials`,mJ=`registeredContainerInstancesCount`,hJ=`requiresCompatibilities`,gJ=`runningCount`,_J=`rootDirectory`,vJ=`resourceIds`,yJ=`referenceId`,bJ=`runtimeId`,xJ=`resourceManagementType`,SJ=`readOnly`,CJ=`restartPolicy`,wJ=`runtimePlatform`,TJ=`resourceRequirements`,EJ=`readonlyRootFilesystem`,DJ=`remainingResources`,OJ=`registeredResources`,kJ=`rolloutState`,AJ=`rolloutStateReason`,jJ=`resolutionSeconds`,MJ=`resourceType`,NJ=`runningTasksCount`,PJ=`requestedTaskCount`,FJ=`runningTaskCount`,IJ=`revision`,LJ=`retries`,RJ=`role`,zJ=`rollback`,BJ=`smithy.ts.sdk.synthetic.com.amazonaws.ecs`,VJ=`startedAt`,HJ=`serviceArn`,UJ=`serviceArns`,WJ=`stoppedAt`,GJ=`stoppingAt`,KJ=`startedBy`,qJ=`s3BucketName`,JJ=`stepBakeTimeInMinutes`,YJ=`systemControls`,XJ=`serviceConnectConfiguration`,ZJ=`serviceConnectDefaults`,QJ=`serviceConnectResources`,$J=`sourceContainer`,eY=`stopCode`,tY=`s3EncryptionEnabled`,nY=`securityGroups`,rY=`sizeInGiB`,iY=`snapshotId`,aY=`s3KeyPrefix`,oY=`softLimit`,sY=`sharedMemorySize`,cY=`serviceName`,lY=`secretOptions`,uY=`startPeriod`,dY=`sourcePath`,fY=`stepPercent`,pY=`statusReason`,mY=`serviceRegistries`,hY=`stoppedReason`,gY=`schedulingStrategy`,_Y=`stabilityStatusAt`,vY=`stringSetValue`,yY=`stabilityStatus`,bY=`startTimeout`,xY=`stopTimeout`,SY=`sourceVolume`,CY=`s3filesVolumeConfiguration`,wY=`scale`,TY=`scope`,EY=`server`,DY=`secrets`,OY=`service`,kY=`services`,AY=`settings`,jY=`size`,MY=`sort`,NY=`status`,PY=`statistics`,FY=`strategy`,IY=`subnets`,LY=`swappiness`,RY=`type`,zY=`taskArn`,BY=`taskArns`,VY=`timeoutConfiguration`,HY=`taskDefinition`,UY=`taskDefinitionArn`,WY=`taskDefinitionArns`,GY=`transitEncryptionPort`,KY=`transitEncryption`,qY=`targetGroupArn`,JY=`targetId`,YY=`timeoutInMinutes`,XY=`testListenerRule`,ZY=`terminationPolicy`,QY=`taskRoleArn`,$Y=`taskSetArn`,eX=`taskSets`,tX=`tagSpecifications`,nX=`targetType`,rX=`testTrafficRules`,iX=`tags`,aX=`tasks`,oX=`task`,sX=`throughput`,cX=`timeout`,lX=`tls`,uX=`tmpfs`,dX=`user`,fX=`updatedAt`,pX=`ulimits`,mX=`unit`,hX=`value`,gX=`versionConsistency`,_X=`volumeConfigurations`,vX=`volumesFrom`,yX=`valueFrom`,bX=`versionInfo`,xX=`volumeInitializationRate`,SX=`vpcLatticeConfigurations`,CX=`volumeType`,wX=`version`,TX=`volumes`,EX=`weight`,DX=`workingDirectory`,D=`com.amazonaws.ecs`,OX=ce.for(BJ),kX=[-3,BJ,`ECSServiceException`,0,[],[]];OX.registerError(kX,C);var O=ce.for(D),AX=[-3,D,$R,{[T]:w,[gK]:403},[E],[0]];O.registerError(AX,bR);var jX=[-3,D,ez,{[T]:w},[E],[0]];O.registerError(jX,LR);var MX=[-3,D,az,{[T]:w},[E],[0]];O.registerError(MX,YR);var NX=[-3,D,bz,{[T]:w},[E],[0]];O.registerError(NX,xR);var PX=[-3,D,lz,{[T]:w},[E],[0]];O.registerError(PX,kR);var FX=[-3,D,cz,{[T]:w},[E],[0]];O.registerError(FX,AR);var IX=[-3,D,fz,{[T]:w},[E],[0]];O.registerError(IX,jR);var LX=[-3,D,pz,{[T]:w},[E],[0]];O.registerError(LX,MR);var RX=[-3,D,Tz,{[T]:w},[E],[0]];O.registerError(RX,SR);var zX=[-3,D,xz,{[T]:w},[vJ,E],[64,0]];O.registerError(zX,qR);var BX=[-3,D,lB,{[T]:w},[E],[0]];O.registerError(BX,HR);var VX=[-3,D,uB,{[T]:w},[E],[0]];O.registerError(VX,UR);var HX=[-3,D,ZB,{[T]:w},[E],[0]];O.registerError(HX,CR);var UX=[-3,D,uV,{[T]:w},[E],[0]];O.registerError(UX,wR);var WX=[-3,D,kV,{[T]:w},[E],[0]];O.registerError(WX,RR);var GX=[-3,D,FV,{[T]:w},[E],[0]];O.registerError(GX,OR);var KX=[-3,D,IV,{[T]:w},[E],[0]];O.registerError(KX,zR);var qX=[-3,D,GV,{[T]:w},[E],[0]];O.registerError(qX,WR);var JX=[-3,D,KV,{[T]:w},[E],[0]];O.registerError(JX,VR);var YX=[-3,D,XV,{[T]:w},[E],[0]];O.registerError(YX,PR);var XX=[-3,D,ZV,{[T]:w},[E],[0]];O.registerError(XX,KR);var ZX=[-3,D,DH,{[T]:EY},[E],[0]];O.registerError(ZX,TR);var QX=[-3,D,EH,{[T]:w},[E],[0]];O.registerError(QX,BR);var $X=[-3,D,NH,{[T]:w},[E],[0]];O.registerError($X,GR);var eZ=[-3,D,PH,{[T]:w},[E],[0]];O.registerError(eZ,IR);var tZ=[-3,D,tU,{[T]:w},[E],[0]];O.registerError(tZ,NR);var nZ=[-3,D,nU,{[T]:w},[E],[0]];O.registerError(nZ,FR);var rZ=[-3,D,aU,{[T]:w},[E],[0]];O.registerError(rZ,JR);var iZ=[-3,D,_U,{[T]:w},[E],[0]];O.registerError(iZ,ER);var aZ=[-3,D,vU,{[T]:w},[E],[0]];O.registerError(aZ,DR);var oZ=[OX,O],sZ=[3,D,ZR,0,[UU,Uq,XY,sJ],[0,0,0,0]],cZ=[3,D,XR,0,[TK,RY,NY,YW],[0,0,0,()=>Tpe]],lZ=[3,D,nz,0,[Tq,hX,nX,JY],[0,0,0,0],1],uZ=[3,D,tz,0,[IY,nY,zU],[64,64,0],1],dZ=[3,D,sz,0,[CW,dW],[1,1]],fZ=[3,D,kz,0,[DW,EX,eW],[0,1,1],1],pZ=[3,D,oz,0,[rW,bW,VW,NY,mJ,NJ,Qq,VU,PY,iX,AY,OW,eG,DU,HU,ZJ],[0,0,()=>mZ,0,1,1,1,1,()=>Xpe,()=>GQ,()=>kQ,64,()=>OQ,()=>EQ,0,()=>hZ]],mZ=[3,D,mz,0,[OG,xq],[()=>oQ,()=>Dfe]],hZ=[3,D,Mz,0,[Mq],[0]],gZ=[3,D,Nz,0,[Mq],[0],1],_Z=[3,D,jz,0,[Tq,hX],[0,0]],vZ=[3,D,zz,0,[sW,zY,Tq,BK,jK,bJ,nq,DG,oJ,Eq,kq,xK,dq,JW,Cq,yq,dK,Oq],[0,0,0,0,0,0,0,1,0,()=>zpe,()=>Bpe,0,()=>Ipe,0,0,0,64,64]],yZ=[3,D,gz,0,[Tq,BK,pJ,JW,Cq,yq,JK,Wq,GG,CJ,IG,HW,VG,jG,_q,vX,tq,DY,lG,bY,xY,gX,fK,dX,DX,iG,Lq,EJ,pG,mG,NG,hG,VK,Zq,rG,pX,ZK,pK,YJ,TJ,XG,MW],[0,0,[()=>Rfe,0],1,1,1,64,()=>Vpe,2,()=>wZ,64,64,[()=>PQ,0],()=>NQ,()=>Rpe,()=>nme,()=>mfe,()=>HQ,()=>Dpe,1,1,0,0,0,0,2,2,2,64,64,()=>Npe,64,2,2,128,()=>tme,()=>_Q,()=>fQ,()=>Zpe,()=>BQ,()=>lQ,64]],bZ=[3,D,_z,0,[xW,WW],[0,0],2],xZ=[3,D,Cz,0,[gW,FG,wW,wX,bX,DJ,OJ,NY,pY,OU,NJ,Qq,WU,QU,lJ,DU,iX,xK],[0,0,0,1,()=>xpe,()=>VQ,()=>VQ,0,0,2,1,1,0,()=>DQ,4,()=>EQ,()=>GQ,()=>SZ]],SZ=[3,D,Sz,0,[Pq,YW],[0,()=>Fpe]],CZ=[3,D,Ez,0,[Tq,HW,VG,jG,JW,Cq,yq,TJ],[0,64,[()=>PQ,0],()=>NQ,1,1,1,()=>BQ]],wZ=[3,D,Az,0,[HG,MK,cJ],[2,65,1],1],TZ=[3,D,uz,0,[bW,iX,AY,VW,OW,eG,ZJ],[0,()=>GQ,()=>kQ,()=>mZ,64,()=>OQ,()=>gZ]],EZ=[3,D,dz,0,[zW],[()=>pZ]],DZ=[3,D,Pz,0,[cY,zW,HY,qU,YK,mY,tG,FW,oq,EW,tJ,RJ,QW,zq,Jq,Dq,mK,gY,nG,iX,AG,eJ,kG,XJ,_X,SX,wq],[0,0,0,0,()=>LQ,()=>UQ,1,0,0,()=>OQ,0,0,()=>PZ,()=>RQ,()=>zQ,()=>vQ,1,0,()=>FZ,()=>GQ,2,0,2,()=>SQ,()=>WQ,()=>YQ,()=>kfe],1],OZ=[3,D,Fz,0,[OY],[()=>xQ]],kZ=[3,D,Zz,0,[zW],[0],1],AZ=[3,D,Qz,0,[zW],[()=>pZ]],jZ=[3,D,Vz,0,[TK,NY,HY,tG,Rq,gJ,nK,uW,fX,EW,oq,tJ,Vq,Dq,kJ,AJ,XJ,QJ,_X,ZG,SX],[0,0,0,1,1,1,1,4,4,()=>OQ,0,0,0,()=>vQ,0,0,()=>SQ,()=>Kpe,()=>WQ,()=>IZ,()=>YQ]],MZ=[3,D,Hz,0,[FU,zJ,UG],[64,2,2],3],NZ=[3,D,Wz,0,[UG,zJ],[2,2],2],PZ=[3,D,Uz,0,[$W,vq,mq,XU,FY,nW,eq,QK,pW],[()=>NZ,1,1,()=>MZ,0,1,()=>Ape,()=>pfe,()=>dZ]],FZ=[3,D,tB,0,[RY],[0],1],IZ=[3,D,iB,0,[qK],[0]],LZ=[3,D,oB,0,[nX,SK,sJ,aq,hK,VY],[0,0,0,64,15,()=>RZ]],RZ=[3,D,cB,0,[YY,JU],[1,0]],zZ=[3,D,Gz,0,[vW,zW,cK],[0,0,2],1],BZ=[3,D,Kz,0,[vW],[()=>xZ]],VZ=[3,D,hB,0,[HY],[0],1],HZ=[3,D,gB,0,[HY],[[()=>wQ,0]]],UZ=[3,D,$z,0,[BW,HK],[64,64]],WZ=[3,D,eB,0,[BW,aK],[()=>Epe,()=>FQ]],GZ=[3,D,qz,0,[yW,zW,HK],[64,0,64],1],KZ=[3,D,Jz,0,[yW,aK],[()=>jQ,()=>FQ]],qZ=[3,D,dB,0,[kY,zW,HK],[64,0,64],1],JZ=[3,D,fB,0,[kY,aK],[()=>Ype,()=>FQ]],YZ=[3,D,_B,0,[HY,HK],[0,64],1],XZ=[3,D,vB,0,[HY,iX],[[()=>wQ,0],()=>GQ]],ZZ=[3,D,xB,0,[aX,zW,HK],[64,0,64],1],QZ=[3,D,SB,0,[aX,aK],[[()=>qQ,0],()=>FQ]],$Z=[3,D,wB,0,[vK,kW,nJ],[0,0,64],1],eQ=[3,D,CB,0,[TY,$U,TG,dG,lq],[0,2,0,128,128]],tQ=[3,D,EB,0,[MJ,iX,eJ],[0,()=>GQ,0],1],nQ=[3,D,jB,0,[BU,zK],[0,0]],rQ=[3,D,MB,0,[tK,_J,KY,GY,AU],[0,0,0,1,()=>nQ],1],iQ=[3,D,AB,0,[hX,RY],[0,0],2],aQ=[3,D,PB,0,[rY],[1],1],oQ=[3,D,OB,0,[qK,uq,ZK],[0,0,()=>sQ]],sQ=[3,D,kB,0,[LW,IW,qJ,tY,aY],[0,2,0,2,0]],cQ=[3,D,IB,0,[ZU,oJ,CG],[0,0,0]],lQ=[3,D,LB,0,[RY,Nq],[0,128],1],uQ=[3,D,RB,0,[jW,wG],[0,0],2],dQ=[3,D,zB,0,[tK,_J,AU],[0,0,()=>uQ],3],fQ=[3,D,VB,0,[HW,UK,cX,LJ,uY],[64,1,1,1,1],1],pQ=[3,D,HB,0,[fK,EK],[0,0],2],mQ=[3,D,WB,0,[dY],[0]],hQ=[3,D,GB,0,[oG,_G],[0,0],2],ufe=[3,D,KB,0,[oG,_G],[0,0]],dfe=[3,D,YB,0,[RY,NY,pY,sq,iq],[0,0,0,4,4]],ffe=[3,D,QB,0,[YU,EG],[64,64]],gQ=[3,D,$B,0,[Tq,hX],[0,0]],pfe=[3,D,nV,0,[fY,JJ],[1,1]],mfe=[3,D,dV,0,[RW,xG,PK,sY,uX,Sq,LY],[()=>ffe,()=>Mpe,2,1,()=>eme,1,1]],hfe=[3,D,oV,0,[jq,bq],[0,1]],gfe=[3,D,sV,0,[aW,jq],[64,0]],_fe=[3,D,iV,0,[zW,oK,jq,bq,NY],[0,0,0,1,0]],vfe=[3,D,aV,0,[_W,jq],[64,0]],yfe=[3,D,pV,0,[zW,jq,bq,oq,gY,xJ],[0,0,1,0,0,0]],bfe=[3,D,mV,0,[UJ,jq],[64,0]],xfe=[3,D,_V,0,[$G,NY,MY,jq,bq],[0,0,0,0,1]],Sfe=[3,D,vV,0,[WY,jq],[64,0]],Cfe=[3,D,yV,0,[zW,vW,YG,jq,bq,KJ,cY,gG,oq,aG],[0,0,0,0,1,0,0,0,0,0]],wfe=[3,D,bV,0,[BY,jq],[64,0]],Tfe=[3,D,eV,0,[qY,XK,xW,AW,kU],[0,0,0,1,()=>sZ]],_Q=[3,D,lV,0,[$K,Nq,lY],[0,128,()=>HQ],1],Efe=[3,D,xV,0,[rq,Tq,oJ,nq],[4,0,0,0]],Dfe=[3,D,OV,0,[qK,QG],[0,0]],Ofe=[3,D,wV,0,[hq,jJ],[64,1],2],kfe=[3,D,TV,0,[fq],[()=>Lpe]],Afe=[3,D,EV,0,[SY,kW,SJ],[0,0,2]],jfe=[3,D,AV,0,[tW,AW,bK,iJ,TW,yK],[0,1,1,0,0,0]],vQ=[3,D,MV,0,[jU],[()=>uZ]],Mfe=[3,D,NV,0,[NU,Hq,kK],[0,0,0]],Nfe=[3,D,LV,0,[RY,qG],[0,0]],Pfe=[3,D,UV,0,[RY,sK],[0,0]],Ffe=[3,D,VV,0,[AW,bK,iJ,Tq,IU,TW],[1,1,0,0,0,0]],yQ=[3,D,BV,0,[xW,RY,aJ],[0,0,()=>Hpe],1],Ife=[3,D,rH,0,[YG,mW,QY,LG,Aq,TX,zq,hJ,JW,Cq,iX,Gq,NK,Bq,OK,zG,wJ,MG],[0,[()=>AQ,0],0,0,0,()=>JQ,()=>KQ,64,0,0,()=>GQ,0,0,()=>yQ,()=>IQ,()=>aQ,()=>bQ,2],2],Lfe=[3,D,iH,0,[HY,iX],[[()=>wQ,0],()=>GQ]],Rfe=[3,D,YV,8,[jW],[0],1],zfe=[3,D,qV,0,[Tq,RY,vG,cq,RK,vY],[0,0,1,1,1,64]],Bfe=[3,D,$V,0,[hX,RY],[0,0],2],Vfe=[3,D,aH,0,[HY,EW,zW,qW,AG,kG,uK,oq,Dq,Iq,zq,Jq,tJ,eJ,yJ,KJ,iX,FW,_X],[0,()=>OQ,0,1,2,2,0,0,()=>vQ,[()=>TQ,0],()=>RQ,()=>zQ,0,0,0,0,()=>GQ,[0,4],()=>$pe],1],Hfe=[3,D,oH,0,[aX,aK],[[()=>qQ,0],()=>FQ]],bQ=[3,D,QV,0,[lW,Fq],[0,0]],Ufe=[3,D,AH,0,[eK,_J,GY,LU],[0,0,1,0],1],Wfe=[3,D,cH,0,[hX,mX],[1,0]],Gfe=[3,D,HH,0,[Tq,yX],[0,0],2],xQ=[3,D,UH,0,[HJ,cY,rW,YK,mY,NY,tG,gJ,Rq,oq,EW,tJ,Vq,HY,QW,eX,SG,sJ,KG,uW,NW,PW,zq,Jq,Dq,mK,gY,nG,iX,fW,AG,eJ,kG,qU,xJ],[0,0,0,()=>LQ,()=>UQ,0,1,1,1,0,()=>OQ,0,0,0,()=>PZ,()=>Qpe,()=>jpe,0,()=>Jpe,4,0,()=>qpe,()=>RQ,()=>zQ,()=>vQ,1,0,()=>FZ,()=>GQ,0,2,0,2,0,0]],Kfe=[3,D,uH,0,[lK,IK],[0,0],1],qfe=[3,D,fH,0,[rJ,cG,rX],[1,0,()=>Qfe],1],SQ=[3,D,dH,0,[HG,Mq,kY,ZK,PU],[2,0,()=>Gpe,()=>_Q,()=>Kfe],1],Jfe=[3,D,gH,0,[Kq,sG,oW,FK,cX,lX],[0,0,()=>Wpe,1,()=>gpe,()=>epe],1],Yfe=[3,D,vH,0,[sG,ZW],[0,0]],Xfe=[3,D,SH,0,[JG],[0],1],Zfe=[3,D,CH,0,[Tq,hX],[0,()=>Xfe],1],Qfe=[3,D,wH,0,[CK],[()=>Zfe],1],$fe=[3,D,xH,0,[RU],[0]],epe=[3,D,bH,0,[AK,KK,sJ],[()=>$fe,0,0],1],tpe=[3,D,mH,0,[ZU,PJ,FJ,$q],[0,1,1,1]],npe=[3,D,OH,0,[TK,uW,E],[0,4,0]],rpe=[3,D,MH,0,[sJ,WG,qK,CX,rY,iY,xX,WK,sX,tX,rK],[0,2,0,0,1,0,1,1,1,()=>MQ,0],1],ipe=[3,D,FH,0,[uJ,rJ,xW,AW],[0,1,0,1]],ape=[3,D,BH,0,[Tq,pq],[0,()=>rpe],1],ope=[3,D,LH,0,[oX,zW,oJ],[0,0,0],1],spe=[3,D,RH,0,[oX],[[()=>CQ,0]]],cpe=[3,D,lH,0,[Mq,hX],[0,0]],lpe=[3,D,KH,0,[GK,hX],[0,0]],CQ=[3,D,lU,0,[DU,QU,KU,wW,rW,GW,cW,gW,KW,JW,uW,gG,kG,RG,uK,xK,OK,nq,oq,Cq,Iq,tJ,Vq,Yq,Xq,VJ,KJ,eY,WJ,hY,GJ,iX,zY,UY,wX,zG,ZG],[()=>EQ,()=>DQ,0,0,0,0,4,0,()=>kpe,0,4,0,2,4,0,0,()=>IQ,0,0,0,[()=>TQ,0],0,0,4,4,4,0,0,4,0,4,()=>GQ,0,0,1,()=>aQ,()=>dpe]],wQ=[3,D,JH,0,[UY,mW,YG,QY,LG,Aq,IJ,TX,NY,dJ,zq,UW,wJ,hJ,JW,Cq,OK,Gq,NK,Bq,lJ,XW,fG,fJ,zG,MG],[0,[()=>AQ,0],0,0,0,0,1,()=>JQ,0,()=>Upe,()=>KQ,64,()=>bQ,64,0,0,()=>IQ,0,0,()=>yQ,4,4,4,0,()=>aQ,2]],upe=[3,D,YH,0,[RY,qG],[0,0]],dpe=[3,D,ZH,0,[rY,qK],[1,0]],fpe=[3,D,$H,0,[sJ,WG,qK,CX,rY,iY,xX,WK,sX,tX,ZY,rK],[0,2,0,0,1,0,1,1,1,()=>MQ,()=>ppe,0],1],ppe=[3,D,eU,0,[uG],[2],1],TQ=[3,D,rU,0,[SW,JW,DK,LG,Cq,QY,zG],[[()=>Ope,0],0,()=>Ppe,0,0,0,()=>aQ]],mpe=[3,D,iU,0,[TK,$Y,HJ,rW,KJ,PG,NY,HY,hW,Rq,gJ,uW,fX,oq,EW,tJ,Vq,Dq,YK,mY,wY,yY,_Y,iX,ZG],[0,0,0,0,0,0,0,0,1,1,1,4,4,0,()=>OQ,0,0,()=>vQ,()=>LQ,()=>UQ,()=>Wfe,0,4,()=>GQ,()=>IZ]],hpe=[3,D,sU,0,[Tq,pq],[0,()=>fpe],1],gpe=[3,D,qH,0,[LK,qq],[1,1]],_pe=[3,D,fU,0,[kW,jY,gq],[0,1,64],2],vpe=[3,D,pU,0,[Tq,oY,_K],[0,1,1],3],ype=[3,D,hU,0,[yW,NY,zW],[64,0,0],2],bpe=[3,D,gU,0,[yW,aK],[()=>jQ,()=>FQ]],xpe=[3,D,CU,0,[GU,MU,bG],[0,0,0]],Spe=[3,D,bU,0,[Tq,wK,yG,BG,CY,iK,iW],[0,()=>mQ,()=>eQ,()=>rQ,()=>Ufe,()=>dQ,2]],Cpe=[3,D,xU,0,[$J,SJ],[0,2]],wpe=[3,D,TU,0,[sJ,qY,Kq],[0,0,0],3],Tpe=[1,D,QR,0,()=>gQ],EQ=[1,D,rz,0,()=>cZ],DQ=[1,D,iz,0,()=>lZ],OQ=[1,D,Oz,0,()=>fZ],Epe=[1,D,Rz,0,()=>pZ],kQ=[1,D,Iz,0,()=>_Z],AQ=[1,D,vz,0,[()=>yZ,0]],Dpe=[1,D,yz,0,()=>bZ],jQ=[1,D,wz,0,()=>xZ],Ope=[1,D,Dz,0,[()=>CZ,0]],kpe=[1,D,Bz,0,()=>vZ],Ape=[1,D,sB,0,()=>LZ],jpe=[1,D,TB,0,()=>jZ],Mpe=[1,D,aB,0,()=>$Z],MQ=[1,D,DB,0,()=>tQ],NQ=[1,D,NB,0,()=>iQ],PQ=[1,D,FB,8,()=>gQ],FQ=[1,D,BB,0,()=>cQ],Npe=[1,D,UB,0,()=>pQ],Ppe=[1,D,qB,0,()=>ufe],IQ=[1,D,JB,0,()=>hQ],Fpe=[1,D,XB,0,()=>dfe],LQ=[1,D,tV,0,()=>Tfe],Ipe=[1,D,SV,0,()=>Efe],Lpe=[1,D,CV,0,()=>Ofe],Rpe=[1,D,DV,0,()=>Afe],zpe=[1,D,jV,0,()=>jfe],Bpe=[1,D,PV,0,()=>Mfe],RQ=[1,D,zV,0,()=>Nfe],zQ=[1,D,WV,0,()=>Pfe],Vpe=[1,D,HV,0,()=>Ffe],Hpe=[1,D,RV,0,()=>gQ],Upe=[1,D,JV,0,()=>lZ],BQ=[1,D,eH,0,()=>Bfe],VQ=[1,D,sH,0,()=>zfe],HQ=[1,D,jH,0,()=>Gfe],Wpe=[1,D,pH,0,()=>qfe],Gpe=[1,D,_H,0,()=>Jfe],Kpe=[1,D,yH,0,()=>Yfe],qpe=[1,D,hH,0,()=>tpe],Jpe=[1,D,kH,0,()=>npe],UQ=[1,D,IH,0,()=>ipe],Ype=[1,D,WH,0,()=>xQ],WQ=[1,D,VH,0,()=>ape],Xpe=[1,D,GH,0,()=>gQ],Zpe=[1,D,TH,0,()=>cpe],GQ=[1,D,uU,0,()=>lpe],KQ=[1,D,XH,0,()=>upe],qQ=[1,D,dU,0,[()=>CQ,0]],Qpe=[1,D,oU,0,()=>mpe],$pe=[1,D,cU,0,()=>hpe],eme=[1,D,QH,0,()=>_pe],tme=[1,D,yU,0,()=>vpe],nme=[1,D,SU,0,()=>Cpe],JQ=[1,D,wU,0,()=>Spe],YQ=[1,D,EU,0,()=>wpe],rme=[9,D,hz,0,()=>TZ,()=>EZ],XQ=[9,D,Lz,0,()=>DZ,()=>OZ],ime=[9,D,nB,2,()=>kZ,()=>AZ],ame=[9,D,Yz,0,()=>zZ,()=>BZ],ome=[9,D,yB,0,()=>VZ,()=>HZ],sme=[9,D,rB,0,()=>UZ,()=>WZ],cme=[9,D,Xz,0,()=>GZ,()=>KZ],lme=[9,D,pB,0,()=>qZ,()=>JZ],ume=[9,D,bB,0,()=>YZ,()=>XZ],dme=[9,D,mB,0,()=>ZZ,()=>QZ],fme=[9,D,cV,0,()=>hfe,()=>gfe],pme=[9,D,rV,0,()=>_fe,()=>vfe],mme=[9,D,fV,0,()=>yfe,()=>bfe],hme=[9,D,gV,0,()=>xfe,()=>Sfe],gme=[9,D,hV,0,()=>Cfe,()=>wfe],_me=[9,D,nH,0,()=>Ife,()=>Lfe],vme=[9,D,tH,0,()=>Vfe,()=>Hfe],yme=[9,D,zH,0,()=>ope,()=>spe],bme=[9,D,mU,0,()=>ype,()=>bpe],xme=e=>({apiVersion:`2014-11-13`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??yR,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??QL,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Jt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecs`,errorTypeRegistries:oZ,xmlNamespace:`http://ecs.amazonaws.com/doc/2014-11-13/`,version:`2014-11-13`,serviceTarget:`AmazonEC2ContainerServiceV20141113`},serviceId:e?.serviceId??`ECS`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),Sme=e=>{let t=Ye(e),n=()=>t().then(pt),r=xme(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:nR.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Cme=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wme=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tme=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),Cme(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),wme(n))},Eme=class extends we{config;constructor(...[e]){let t=Sme(e||{});super(t),this.initConfig=t;let n=Tme($L(Oe(Ue(ye(at(_e(eR(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:XL,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},Dme=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ome(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var kme=e=>{let t=[];switch(e.operation){default:t.push(Ome(e))}return t},Ame=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},jme=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),Mme={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Nme={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},ZQ=`ref`,QQ=-1,$Q=!0,e$=`isSet`,t$=`PartitionResult`,n$=`booleanEquals`,r$=`getAttr`,i$=`stringEquals`,a$={[ZQ]:`Endpoint`},o$={[ZQ]:t$},s$={fn:r$,argv:[o$,`name`]},c$={},l$=[{[ZQ]:`Region`}],u$={conditions:[[e$,[a$]],[e$,l$],[`aws.partition`,l$,t$],[n$,[{[ZQ]:`UseFIPS`},$Q]],[n$,[{[ZQ]:`UseDualStack`},$Q]],[n$,[{fn:r$,argv:[o$,`supportsDualStack`]},$Q]],[n$,[{fn:r$,argv:[o$,`supportsFIPS`]},$Q]],[i$,[s$,`aws`]],[i$,[s$,`aws-us-gov`]]],results:[[QQ],[QQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[QQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[a$,c$],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,c$],[QQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,c$],[`https://eks.{Region}.amazonaws.com`,c$],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,c$],[QQ,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,c$],[QQ,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,c$],[QQ,`Invalid Configuration: Missing Region`]]},Pme=2,Fme=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),Ime=he.from(Fme,Pme,u$.conditions,u$.results),Lme=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Rme=(e,t={})=>Lme.get(e,()=>gt(Ime,{endpointParams:e,logger:t.logger}));oe.aws=fe;var d$=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},zme=class e extends d${name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bme=class e extends d${name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Vme=class e extends d${name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Hme=class e extends d${name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Ume=class e extends d${name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Wme=class e extends d${name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},Gme=class e extends d${name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},Kme=class e extends d${name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},qme=class e extends d${name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},Jme=class e extends d${name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Yme=class e extends d${name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},Xme=class e extends d${name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zme=class e extends d${name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qme=class e extends d${name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$me=class e extends d${name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},ehe=`Addon`,the=`AssociatedAccessPolicy`,nhe=`AssociatedAccessPoliciesList`,rhe=`AssociateAccessPolicyRequest`,ihe=`AssociateAccessPolicyResponse`,ahe=`AssociateAccessPolicy`,ohe=`AccessConfigResponse`,she=`AccessDeniedException`,che=`AccessEntry`,lhe=`AddonHealth`,uhe=`AddonInfo`,dhe=`AddonIssueList`,fhe=`AddonIssue`,phe=`AddonNamespaceConfigRequest`,mhe=`AddonNamespaceConfigResponse`,hhe=`AccessPolicy`,ghe=`AddonPodIdentityAssociations`,_he=`AddonPodIdentityAssociationsList`,vhe=`AccessPoliciesList`,yhe=`AccessScope`,bhe=`AutoScalingGroup`,xhe=`AutoScalingGroupList`,She=`AddonVersionInfo`,Che=`AddonVersionInfoList`,whe=`Addons`,The=`BadRequestException`,Ehe=`BlockStorage`,Dhe=`CreateAddon`,Ohe=`CreateAccessConfigRequest`,khe=`CreateAccessEntry`,Ahe=`CreateAccessEntryRequest`,jhe=`CreateAccessEntryResponse`,Mhe=`CreateAddonRequest`,Nhe=`CreateAddonResponse`,Phe=`ComputeConfigRequest`,Fhe=`ComputeConfigResponse`,Ihe=`ConnectorConfigResponse`,Lhe=`CreateClusterRequest`,Rhe=`CreateClusterResponse`,zhe=`CreateCluster`,Bhe=`ClientException`,Vhe=`ClusterHealth`,Hhe=`ClusterIssueList`,Uhe=`ClusterIssue`,Whe=`CreateNodegroup`,Ghe=`CreateNodegroupRequest`,Khe=`CreateNodegroupResponse`,qhe=`ControlPlanePlacementRequest`,Jhe=`ControlPlanePlacementResponse`,Yhe=`ControlPlaneScalingConfig`,Xhe=`Certificate`,Zhe=`Cluster`,Qhe=`Compatibility`,$he=`Compatibilities`,ege=`DeleteAddon`,tge=`DeleteAccessEntry`,nge=`DeleteAccessEntryRequest`,rge=`DeleteAccessEntryResponse`,ige=`DescribeAccessEntryRequest`,age=`DescribeAccessEntryResponse`,oge=`DescribeAccessEntry`,sge=`DisassociateAccessPolicy`,cge=`DisassociateAccessPolicyRequest`,lge=`DisassociateAccessPolicyResponse`,uge=`DeleteAddonRequest`,dge=`DeleteAddonResponse`,fge=`DescribeAddonRequest`,pge=`DescribeAddonResponse`,mge=`DescribeAddonVersions`,hge=`DescribeAddonVersionsRequest`,gge=`DescribeAddonVersionsResponse`,_ge=`DescribeAddon`,vge=`DeleteClusterRequest`,yge=`DeleteClusterResponse`,bge=`DescribeClusterRequest`,xge=`DescribeClusterResponse`,Sge=`DeleteCluster`,Cge=`DescribeCluster`,wge=`DeleteNodegroup`,Tge=`DeleteNodegroupRequest`,Ege=`DeleteNodegroupResponse`,Dge=`DescribeNodegroupRequest`,Oge=`DescribeNodegroupResponse`,kge=`DescribeNodegroup`,Age=`EncryptionConfig`,jge=`EncryptionConfigList`,Mge=`ErrorDetail`,Nge=`ErrorDetails`,Pge=`ElasticLoadBalancing`,Fge=`EtcdPlacementRequest`,Ige=`EtcdPlacementResponse`,Lge=`Identity`,Rge=`IssueList`,zge=`InvalidParameterException`,Bge=`InvalidRequestException`,Vge=`InvalidStateException`,Hge=`Issue`,Uge=`KubernetesNetworkConfigRequest`,Wge=`KubernetesNetworkConfigResponse`,Gge=`ListAddons`,Kge=`ListAssociatedAccessPolicies`,qge=`ListAssociatedAccessPoliciesRequest`,Jge=`ListAssociatedAccessPoliciesResponse`,Yge=`ListAccessEntries`,Xge=`ListAccessEntriesRequest`,Zge=`ListAccessEntriesResponse`,Qge=`ListAccessPolicies`,$ge=`ListAccessPoliciesRequest`,e_e=`ListAccessPoliciesResponse`,t_e=`ListAddonsRequest`,n_e=`ListAddonsResponse`,r_e=`ListClustersRequest`,i_e=`ListClustersResponse`,a_e=`ListClusters`,o_e=`ListNodegroups`,s_e=`ListNodegroupsRequest`,c_e=`ListNodegroupsResponse`,l_e=`LogSetup`,u_e=`LogSetups`,d_e=`LaunchTemplateSpecification`,f_e=`Logging`,p_e=`MarketplaceInformation`,m_e=`Nodegroup`,h_e=`NotFoundException`,g_e=`NodegroupHealth`,__e=`NodegroupResources`,v_e=`NodeRepairConfig`,y_e=`NodeRepairConfigOverrides`,b_e=`NodeRepairConfigOverridesList`,x_e=`NodegroupScalingConfig`,S_e=`NodegroupUpdateConfig`,C_e=`OutpostConfigRequest`,w_e=`OutpostConfigResponse`,T_e=`OIDC`,E_e=`Provider`,D_e=`RemoteAccessConfig`,O_e=`ResourceInUseException`,k_e=`ResourceLimitExceededException`,A_e=`RemoteNetworkConfigRequest`,j_e=`RemoteNetworkConfigResponse`,M_e=`ResourceNotFoundException`,N_e=`RemoteNodeNetwork`,P_e=`RemoteNodeNetworkList`,F_e=`ResourcePropagationDelayException`,I_e=`RemotePodNetwork`,L_e=`RemotePodNetworkList`,R_e=`StorageConfigRequest`,z_e=`StorageConfigResponse`,B_e=`ServerException`,V_e=`ServiceUnavailableException`,H_e=`Taint`,U_e=`ThrottlingException`,W_e=`Update`,G_e=`UpdateAddon`,K_e=`UpdateAddonRequest`,q_e=`UpdateAddonResponse`,J_e=`UnsupportedAvailabilityZoneException`,Y_e=`UpdateLabelsPayload`,X_e=`UpdateNodegroupConfig`,Z_e=`UpdateNodegroupConfigRequest`,Q_e=`UpdateNodegroupConfigResponse`,$_e=`UpdateNodegroupVersion`,eve=`UpdateNodegroupVersionRequest`,tve=`UpdateNodegroupVersionResponse`,nve=`UpdateParam`,rve=`UpgradePolicyRequest`,ive=`UpgradePolicyResponse`,ave=`UpdateParams`,ove=`UpdateTaintsPayload`,sve=`VpcConfigRequest`,cve=`VpcConfigResponse`,lve=`WarmPoolConfig`,uve=`ZonalShiftConfigRequest`,dve=`ZonalShiftConfigResponse`,f$=`arn`,fve=`addonArn`,pve=`associatedAccessPolicy`,mve=`associatedAccessPolicies`,hve=`associatedAt`,p$=`accessConfig`,gve=`activationCode`,_ve=`activationExpiry`,vve=`accessEntryArn`,m$=`accessEntry`,yve=`accessEntries`,bve=`activationId`,h$=`authenticationMode`,g$=`addonName`,xve=`addOrUpdateLabels`,Sve=`addOrUpdateTaints`,Cve=`accessPolicies`,_$=`associatedPolicyArn`,v$=`accessScope`,wve=`autoScalingGroups`,y$=`amiType`,b$=`addonVersion`,Tve=`addonVersions`,x$=`addon`,S$=`addons`,Eve=`architecture`,C$=`bootstrapClusterCreatorAdminPermissions`,w$=`blockStorage`,Dve=`bootstrapSelfManagedAddons`,T$=`client`,E$=`createdAt`,Ove=`certificateAuthority`,kve=`connectorConfig`,D$=`computeConfig`,Ave=`clusterLogging`,k=`clusterName`,O$=`controlPlaneEgressMode`,k$=`controlPlaneInstanceType`,A$=`controlPlanePlacement`,j$=`controlPlaneScalingConfig`,M$=`clientRequestToken`,jve=`clusterSecurityGroupId`,Mve=`computeTypes`,N$=`capacityType`,P$=`configurationValues`,Nve=`clusterVersion`,F$=`cidrs`,I$=`cluster`,Pve=`clusters`,L$=`code`,Fve=`compatibilities`,Ive=`data`,Lve=`defaultNamespace`,R$=`deletionProtection`,z$=`diskSize`,Rve=`desiredSize`,zve=`defaultVersion`,B$=`error`,V$=`encryptionConfig`,Bve=`errorCode`,H$=`etcdInstanceType`,U$=`elasticLoadBalancing`,Vve=`errorMessage`,W$=`etcdPlacement`,G$=`endpointPublicAccess`,K$=`endpointPrivateAccess`,Hve=`ec2SshKey`,Uve=`effect`,q$=`enabled`,Wve=`endpoint`,Gve=`errors`,J$=`fargateProfileName`,Kve=`force`,Y$=`groupName`,X$=`health`,Z$=`httpError`,Q$=`httpQuery`,$$=`http`,e1=`issues`,t1=`ipFamily`,n1=`instanceTypes`,r1=`id`,qve=`identity`,i1=`include`,Jve=`issuer`,Yve=`key`,Xve=`keyArn`,a1=`kubernetesGroups`,o1=`kubernetesNetworkConfig`,s1=`kubernetesVersion`,c1=`logging`,l1=`launchTemplate`,u1=`labels`,d1=`message`,f1=`modifiedAt`,Zve=`maxGroupPreparedCapacity`,p1=`marketplaceInformation`,Qve=`maxParallelNodesRepairedCount`,$ve=`maxParallelNodesRepairedPercentage`,m1=`maxResults`,eye=`minRepairWaitTimeMins`,h1=`minSize`,tye=`maxSize`,nye=`maxUnavailable`,rye=`maxUnhealthyNodeThresholdCount`,iye=`maxUnhealthyNodeThresholdPercentage`,aye=`maxUnavailablePercentage`,g1=`name`,oye=`nodegroupArn`,_1=`namespaceConfig`,sye=`nodeMonitoringCondition`,v1=`nodegroupName`,y1=`nodePools`,b1=`nodeRole`,x1=`nodeRoleArn`,S1=`nodeRepairConfig`,cye=`nodeRepairConfigOverrides`,C1=`nextToken`,lye=`nodeUnhealthyReason`,uye=`namespaces`,w1=`namespace`,T1=`nodegroup`,dye=`nodegroups`,E1=`owner`,D1=`outpostArns`,O1=`outpostConfig`,fye=`oidc`,k1=`owners`,A1=`publisher`,j1=`principalArn`,M1=`publicAccessCidrs`,N1=`policyArn`,pye=`productId`,P1=`podIdentityAssociations`,mye=`poolState`,hye=`productUrl`,gye=`platformVersion`,_ye=`platformVersions`,vye=`params`,F1=`provider`,I1=`preserve`,L1=`publishers`,R1=`roleArn`,yye=`remoteAccessSecurityGroup`,z1=`remoteAccess`,bye=`repairAction`,xye=`requiresConfiguration`,B1=`resolveConflicts`,V1=`resourceIds`,Sye=`requiresIamPermissions`,Cye=`removeLabels`,H1=`remoteNetworkConfig`,U1=`remoteNodeNetworks`,wye=`reuseOnScaleIn`,W1=`remotePodNetworks`,Tye=`removeTaints`,G1=`releaseVersion`,K1=`resourcesVpcConfig`,q1=`resources`,J1=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,Eye=`serviceAccount`,Y1=`serviceAccountRoleArn`,X1=`storageConfig`,Z1=`scalingConfig`,Q1=`securityGroupIds`,$1=`subscriptionId`,e0=`serviceIpv4Cidr`,Dye=`serviceIpv6Cidr`,t0=`subnetIds`,n0=`spreadLevel`,Oye=`sourceSecurityGroups`,r0=`supportType`,i0=`server`,a0=`status`,o0=`subnets`,s0=`tags`,kye=`taintsList`,c0=`taints`,Aye=`tier`,l0=`type`,u0=`types`,d0=`username`,f0=`updateConfig`,p0=`upgradePolicy`,jye=`updateStrategy`,m0=`update`,h0=`version`,Mye=`vpcId`,Nye=`validZones`,g0=`value`,_0=`warmPoolConfig`,v0=`zonalShiftConfig`,A=`com.amazonaws.eks`,y0=ce.for(J1),Pye=[-3,J1,`EKSServiceException`,0,[],[]];y0.registerError(Pye,d$);var b0=ce.for(A),Fye=[-3,A,she,{[B$]:T$,[Z$]:403},[d1],[0]];b0.registerError(Fye,zme);var Iye=[-3,A,The,{[B$]:T$,[Z$]:400},[d1],[0]];b0.registerError(Iye,Xme);var Lye=[-3,A,Bhe,{[B$]:T$,[Z$]:400},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(Lye,Wme);var Rye=[-3,A,zge,{[B$]:T$,[Z$]:400},[k,v1,J$,g$,$1,d1],[0,0,0,0,0,0]];b0.registerError(Rye,Bme);var zye=[-3,A,Bge,{[B$]:T$,[Z$]:400},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(zye,Vme);var Bye=[-3,A,Vge,{[B$]:T$,[Z$]:400},[k,d1],[0,0]];b0.registerError(Bye,$me);var Vye=[-3,A,h_e,{[B$]:T$,[Z$]:404},[d1],[0]];b0.registerError(Vye,Zme);var Hye=[-3,A,O_e,{[B$]:T$,[Z$]:409},[k,v1,g$,d1],[0,0,0,0]];b0.registerError(Hye,Gme);var Uye=[-3,A,k_e,{[B$]:T$,[Z$]:400},[k,v1,$1,d1],[0,0,0,0]];b0.registerError(Uye,qme);var Wye=[-3,A,M_e,{[B$]:T$,[Z$]:404},[k,v1,J$,g$,$1,d1],[0,0,0,0,0,0]];b0.registerError(Wye,Hme);var Gye=[-3,A,F_e,{[B$]:T$,[Z$]:428},[d1],[0]];b0.registerError(Gye,Qme);var Kye=[-3,A,B_e,{[B$]:i0,[Z$]:500},[k,v1,g$,$1,d1],[0,0,0,0,0]];b0.registerError(Kye,Ume);var qye=[-3,A,V_e,{[B$]:i0,[Z$]:503},[d1],[0]];b0.registerError(qye,Jme);var Jye=[-3,A,U_e,{[B$]:T$,[Z$]:429},[k,d1],[0,0]];b0.registerError(Jye,Kme);var Yye=[-3,A,J_e,{[B$]:T$,[Z$]:400},[d1,k,v1,Nye],[0,0,0,64]];b0.registerError(Yye,Yme);var Xye=[y0,b0],Zye=[3,A,ohe,0,[C$,h$],[2,0]],x0=[3,A,che,0,[k,j1,a1,vve,E$,f1,s0,d0,l0],[0,0,64,0,4,4,128,0,0]],Qye=[3,A,hhe,0,[g1,f$],[0,0]],S0=[3,A,yhe,0,[l0,uye],[0,64]],C0=[3,A,ehe,0,[g$,k,a0,b$,X$,fve,E$,f1,Y1,s0,A1,E1,p1,P$,P1,_1],[0,0,0,0,()=>$ye,0,4,4,0,128,0,0,()=>j0,0,64,()=>rbe]],$ye=[3,A,lhe,0,[e1],[()=>Wxe]],ebe=[3,A,uhe,0,[g$,l0,Tve,A1,E1,p1,Lve],[0,0,()=>Kxe,0,0,()=>j0,0]],tbe=[3,A,fhe,0,[L$,d1,V1],[0,0,64]],nbe=[3,A,phe,0,[w1],[0]],rbe=[3,A,mhe,0,[w1],[0]],ibe=[3,A,ghe,0,[Eye,R1],[0,0],2],abe=[3,A,She,0,[b$,Eve,Mve,Fve,xye,Sye],[0,64,64,()=>Xxe,2,2]],obe=[3,A,rhe,0,[k,j1,N1,v$],[[0,1],[0,1],0,()=>S0],4],sbe=[3,A,ihe,0,[k,j1,pve],[0,0,()=>w0]],w0=[3,A,the,0,[N1,v$,hve,f1],[0,()=>S0,4,4]],cbe=[3,A,bhe,0,[g1],[0]],T0=[3,A,Ehe,0,[q$],[2]],lbe=[3,A,Xhe,0,[Ive],[0]],E0=[3,A,Zhe,0,[g1,f$,E$,h0,Wve,R1,K1,o1,c1,qve,a0,Ove,M$,gye,s0,V$,kve,r1,X$,O1,p$,p0,v0,H1,D$,X1,R$,j$],[0,0,4,0,0,0,()=>Bxe,()=>exe,()=>A0,()=>Zbe,0,()=>lbe,0,0,128,()=>B0,()=>hbe,0,()=>ube,()=>yxe,()=>Zye,()=>Rxe,()=>Hxe,()=>Sxe,()=>mbe,()=>Exe,2,()=>D0]],ube=[3,A,Vhe,0,[e1],[()=>Yxe]],dbe=[3,A,Uhe,0,[L$,d1,V1],[0,0,64]],fbe=[3,A,Qhe,0,[Nve,_ye,zve],[0,64,2]],pbe=[3,A,Phe,0,[q$,y1,x1],[2,64,0]],mbe=[3,A,Fhe,0,[q$,y1,x1],[2,64,0]],hbe=[3,A,Ihe,0,[bve,gve,_ve,F1,R1],[0,0,4,0,0]],gbe=[3,A,qhe,0,[Y$,n0],[0,0]],_be=[3,A,Jhe,0,[Y$,n0],[0,0]],D0=[3,A,Yhe,0,[Aye],[0]],vbe=[3,A,Ohe,0,[C$,h$],[2,0]],ybe=[3,A,Ahe,0,[k,j1,a1,s0,M$,d0,l0],[[0,1],0,64,128,[0,4],0,0],2],bbe=[3,A,jhe,0,[m$],[()=>x0]],xbe=[3,A,Mhe,0,[k,g$,b$,Y1,B1,M$,s0,P$,P1,_1],[[0,1],0,0,0,0,[0,4],128,0,()=>z0,()=>nbe],2],Sbe=[3,A,Nhe,0,[x$],[()=>C0]],Cbe=[3,A,Lhe,0,[g1,R1,K1,h0,o1,c1,M$,s0,V$,O1,p$,Dve,p0,v0,H1,D$,X1,R$,j$],[0,0,()=>zxe,0,()=>$be,()=>A0,[0,4],128,()=>B0,()=>vxe,()=>vbe,2,()=>Lxe,()=>Vxe,()=>xxe,()=>pbe,()=>Txe,2,()=>D0],3],wbe=[3,A,Rhe,0,[I$],[()=>E0]],Tbe=[3,A,Ghe,0,[k,v1,o0,b1,Z1,z$,n1,y$,z1,u1,c0,s0,M$,l1,f0,S1,N$,h0,G1,_0],[[0,1],0,64,0,()=>N0,1,64,0,()=>I0,128,()=>U0,128,[0,4],()=>k0,()=>P0,()=>F0,0,0,0,()=>R0],4],Ebe=[3,A,Khe,0,[T1],[()=>M0]],Dbe=[3,A,nge,0,[k,j1],[[0,1],[0,1]],2],Obe=[3,A,rge,0,[],[]],kbe=[3,A,uge,0,[k,g$,I1],[[0,1],[0,1],[2,{[Q$]:I1}]],2],Abe=[3,A,dge,0,[x$],[()=>C0]],jbe=[3,A,vge,0,[g1],[[0,1]],1],Mbe=[3,A,yge,0,[I$],[()=>E0]],Nbe=[3,A,Tge,0,[k,v1],[[0,1],[0,1]],2],Pbe=[3,A,Ege,0,[T1],[()=>M0]],Fbe=[3,A,ige,0,[k,j1],[[0,1],[0,1]],2],Ibe=[3,A,age,0,[m$],[()=>x0]],Lbe=[3,A,fge,0,[k,g$],[[0,1],[0,1]],2],Rbe=[3,A,pge,0,[x$],[()=>C0]],zbe=[3,A,hge,0,[s1,m1,C1,g$,u0,L1,k1],[[0,{[Q$]:s1}],[1,{[Q$]:m1}],[0,{[Q$]:C1}],[0,{[Q$]:g$}],[64,{[Q$]:u0}],[64,{[Q$]:L1}],[64,{[Q$]:k1}]]],Bbe=[3,A,gge,0,[S$,C1],[()=>Gxe,0]],Vbe=[3,A,bge,0,[g1],[[0,1]],1],Hbe=[3,A,xge,0,[I$],[()=>E0]],Ube=[3,A,Dge,0,[k,v1],[[0,1],[0,1]],2],Wbe=[3,A,Oge,0,[T1],[()=>M0]],Gbe=[3,A,cge,0,[k,j1,N1],[[0,1],[0,1],[0,1]],3],Kbe=[3,A,lge,0,[],[]],O0=[3,A,Pge,0,[q$],[2]],qbe=[3,A,Age,0,[q1,F1],[64,()=>bxe]],Jbe=[3,A,Mge,0,[Bve,Vve,V1],[0,0,64]],Ybe=[3,A,Fge,0,[n0],[0]],Xbe=[3,A,Ige,0,[n0],[0]],Zbe=[3,A,Lge,0,[fye],[()=>_xe]],Qbe=[3,A,Hge,0,[L$,d1,V1],[0,0,64]],$be=[3,A,Uge,0,[e0,t1,U$],[0,0,()=>O0]],exe=[3,A,Wge,0,[e0,Dye,t1,U$],[0,0,0,()=>O0]],k0=[3,A,d_e,0,[g1,h0,r1],[0,0,0]],txe=[3,A,Xge,0,[k,_$,m1,C1],[[0,1],[0,{[Q$]:_$}],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],nxe=[3,A,Zge,0,[yve,C1],[64,0]],rxe=[3,A,$ge,0,[m1,C1],[[1,{[Q$]:m1}],[0,{[Q$]:C1}]]],ixe=[3,A,e_e,0,[Cve,C1],[()=>Uxe,0]],axe=[3,A,t_e,0,[k,m1,C1],[[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],oxe=[3,A,n_e,0,[S$,C1],[64,0]],sxe=[3,A,qge,0,[k,j1,m1,C1],[[0,1],[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],2],cxe=[3,A,Jge,0,[k,j1,C1,mve],[0,0,0,()=>qxe]],lxe=[3,A,r_e,0,[m1,C1,i1],[[1,{[Q$]:m1}],[0,{[Q$]:C1}],[64,{[Q$]:i1}]]],uxe=[3,A,i_e,0,[Pve,C1],[64,0]],dxe=[3,A,s_e,0,[k,m1,C1],[[0,1],[1,{[Q$]:m1}],[0,{[Q$]:C1}]],1],fxe=[3,A,c_e,0,[dye,C1],[64,0]],A0=[3,A,f_e,0,[Ave],[()=>$xe]],pxe=[3,A,l_e,0,[u0,q$],[64,2]],j0=[3,A,p_e,0,[pye,hye],[0,0]],M0=[3,A,m_e,0,[v1,oye,k,h0,G1,E$,f1,a0,N$,Z1,n1,o0,z1,y$,b1,u1,c0,q1,z$,X$,f0,S1,l1,s0,_0],[0,0,0,0,0,4,4,0,0,()=>N0,64,64,()=>I0,0,0,128,()=>U0,()=>hxe,1,()=>mxe,()=>P0,()=>F0,()=>k0,128,()=>R0]],mxe=[3,A,g_e,0,[e1],[()=>Qxe]],hxe=[3,A,__e,0,[wve,yye],[()=>Jxe,0]],N0=[3,A,x_e,0,[h1,tye,Rve],[1,1,1]],P0=[3,A,S_e,0,[nye,aye,jye],[1,1,0]],F0=[3,A,v_e,0,[q$,rye,iye,Qve,$ve,cye],[2,1,1,1,1,()=>eSe]],gxe=[3,A,y_e,0,[sye,lye,eye,bye],[0,0,1,0]],_xe=[3,A,T_e,0,[Jve],[0]],vxe=[3,A,C_e,0,[D1,k$,A$,H$,W$],[64,0,()=>gbe,0,()=>Ybe],2],yxe=[3,A,w_e,0,[D1,k$,A$,H$,W$],[64,0,()=>_be,0,()=>Xbe],2],bxe=[3,A,E_e,0,[Xve],[0]],I0=[3,A,D_e,0,[Hve,Oye],[0,64]],xxe=[3,A,A_e,0,[U1,W1],[()=>V0,()=>H0]],Sxe=[3,A,j_e,0,[U1,W1],[()=>V0,()=>H0]],Cxe=[3,A,N_e,0,[F$],[64]],wxe=[3,A,I_e,0,[F$],[64]],Txe=[3,A,R_e,0,[w$],[()=>T0]],Exe=[3,A,z_e,0,[w$],[()=>T0]],Dxe=[3,A,H_e,0,[Yve,g0,Uve],[0,0,0]],L0=[3,A,W_e,0,[r1,a0,l0,vye,E$,Gve],[0,0,0,()=>tSe,4,()=>Zxe]],Oxe=[3,A,K_e,0,[k,g$,b$,Y1,B1,M$,P$,P1],[[0,1],[0,1],0,0,0,[0,4],0,()=>z0],2],kxe=[3,A,q_e,0,[m0],[()=>L0]],Axe=[3,A,Y_e,0,[xve,Cye],[128,64]],jxe=[3,A,Z_e,0,[k,v1,u1,c0,Z1,f0,S1,_0,M$],[[0,1],[0,1],()=>Axe,()=>Ixe,()=>N0,()=>P0,()=>F0,()=>R0,[0,4]],2],Mxe=[3,A,Q_e,0,[m0],[()=>L0]],Nxe=[3,A,eve,0,[k,v1,h0,G1,l1,Kve,M$],[[0,1],[0,1],0,0,()=>k0,2,[0,4]],2],Pxe=[3,A,tve,0,[m0],[()=>L0]],Fxe=[3,A,nve,0,[l0,g0],[0,0]],Ixe=[3,A,ove,0,[Sve,Tye],[()=>U0,()=>U0]],Lxe=[3,A,rve,0,[r0],[0]],Rxe=[3,A,ive,0,[r0],[0]],zxe=[3,A,sve,0,[t0,Q1,G$,K$,M1,O$],[64,64,2,2,64,0]],Bxe=[3,A,cve,0,[t0,Q1,jve,Mye,G$,K$,M1,O$],[64,64,0,0,2,2,64,0]],R0=[3,A,lve,0,[q$,h1,Zve,mye,wye],[2,1,1,0,2]],Vxe=[3,A,uve,0,[q$],[2]],Hxe=[3,A,dve,0,[q$],[2]],Uxe=[1,A,vhe,0,()=>Qye],Wxe=[1,A,dhe,0,()=>tbe],z0=[1,A,_he,0,()=>ibe],Gxe=[1,A,whe,0,()=>ebe],Kxe=[1,A,Che,0,()=>abe],qxe=[1,A,nhe,0,()=>w0],Jxe=[1,A,xhe,0,()=>cbe],Yxe=[1,A,Hhe,0,()=>dbe],Xxe=[1,A,$he,0,()=>fbe],B0=[1,A,jge,0,()=>qbe],Zxe=[1,A,Nge,0,()=>Jbe],Qxe=[1,A,Rge,0,()=>Qbe],$xe=[1,A,u_e,0,()=>pxe],eSe=[1,A,b_e,0,()=>gxe],V0=[1,A,P_e,0,()=>Cxe],H0=[1,A,L_e,0,()=>wxe],U0=[1,A,kye,0,()=>Dxe],tSe=[1,A,ave,0,()=>Fxe],nSe=[9,A,ahe,{[$$]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>obe,()=>sbe],rSe=[9,A,khe,{[$$]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>ybe,()=>bbe],iSe=[9,A,Dhe,{[$$]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>xbe,()=>Sbe],aSe=[9,A,zhe,{[$$]:[`POST`,`/clusters`,200]},()=>Cbe,()=>wbe],oSe=[9,A,Whe,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>Tbe,()=>Ebe],sSe=[9,A,tge,{[$$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Dbe,()=>Obe],cSe=[9,A,ege,{[$$]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>kbe,()=>Abe],lSe=[9,A,Sge,{[$$]:[`DELETE`,`/clusters/{name}`,200]},()=>jbe,()=>Mbe],uSe=[9,A,wge,{[$$]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Nbe,()=>Pbe],dSe=[9,A,oge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>Fbe,()=>Ibe],fSe=[9,A,_ge,{[$$]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>Lbe,()=>Rbe],pSe=[9,A,mge,{[$$]:[`GET`,`/addons/supported-versions`,200]},()=>zbe,()=>Bbe],mSe=[9,A,Cge,{[$$]:[`GET`,`/clusters/{name}`,200]},()=>Vbe,()=>Hbe],hSe=[9,A,kge,{[$$]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>Ube,()=>Wbe],gSe=[9,A,sge,{[$$]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>Gbe,()=>Kbe],_Se=[9,A,Yge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>txe,()=>nxe],vSe=[9,A,Qge,{[$$]:[`GET`,`/access-policies`,200]},()=>rxe,()=>ixe],ySe=[9,A,Gge,{[$$]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>axe,()=>oxe],bSe=[9,A,Kge,{[$$]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>sxe,()=>cxe],xSe=[9,A,a_e,{[$$]:[`GET`,`/clusters`,200]},()=>lxe,()=>uxe],SSe=[9,A,o_e,{[$$]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>dxe,()=>fxe],CSe=[9,A,G_e,{[$$]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>Oxe,()=>kxe],wSe=[9,A,X_e,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>jxe,()=>Mxe],TSe=[9,A,$_e,{[$$]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>Nxe,()=>Pxe],ESe=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Rme,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??kme,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Oee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:Xye,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),DSe=e=>{let t=Ye(e),n=()=>t().then(pt),r=ESe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:Nme.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},OSe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},kSe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ASe=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),OSe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),kSe(n))},jSe=class extends we{config;constructor(...[e]){let t=DSe(e||{});super(t),this.initConfig=t;let n=ASe(Ame(Oe(Ue(ye(at(_e(jme(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:Dme,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},MSe=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function NSe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var PSe=e=>{let t=[];switch(e.operation){default:t.push(NSe(e))}return t},FSe=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},ISe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),LSe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},RSe={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},W0=`ref`,G0=-1,K0=!0,q0=`isSet`,J0=`PartitionResult`,Y0=`booleanEquals`,X0=`getAttr`,Z0={[W0]:`Endpoint`},Q0={[W0]:J0},$0={},e2=[{[W0]:`Region`}],t2={conditions:[[q0,[Z0]],[q0,e2],[`aws.partition`,e2,J0],[Y0,[{[W0]:`UseFIPS`},K0]],[Y0,[{[W0]:`UseDualStack`},K0]],[Y0,[{fn:X0,argv:[Q0,`supportsDualStack`]},K0]],[Y0,[{fn:X0,argv:[Q0,`supportsFIPS`]},K0]],[`stringEquals`,[{fn:X0,argv:[Q0,`name`]},`aws-us-gov`]]],results:[[G0],[G0,`Invalid Configuration: FIPS and custom endpoint are not supported`],[G0,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Z0,$0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,$0],[G0,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,$0],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,$0],[G0,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,$0],[G0,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,$0],[G0,`Invalid Configuration: Missing Region`]]},zSe=2,BSe=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),VSe=he.from(BSe,zSe,t2.conditions,t2.results),HSe=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),USe=(e,t={})=>HSe.get(e,()=>gt(VSe,{endpointParams:e,logger:t.logger}));oe.aws=fe;var j=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},WSe=class e extends j{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GSe=class e extends j{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KSe=class e extends j{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qSe=class e extends j{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JSe=class e extends j{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YSe=class e extends j{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XSe=class e extends j{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZSe=class e extends j{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QSe=class e extends j{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Se=class e extends j{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},eCe=class e extends j{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},tCe=class e extends j{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},nCe=class e extends j{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},rCe=class e extends j{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},iCe=class e extends j{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},aCe=class e extends j{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},oCe=class e extends j{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},sCe=class e extends j{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},cCe=class e extends j{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},lCe=class e extends j{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},uCe=class e extends j{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dCe=class e extends j{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fCe=class e extends j{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pCe=class e extends j{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},mCe=class e extends j{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},hCe=class e extends j{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gCe=class e extends j{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_Ce=class e extends j{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vCe=class e extends j{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yCe=class e extends j{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},bCe=class e extends j{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},xCe=class e extends j{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},SCe=class e extends j{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},CCe=class e extends j{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},wCe=class e extends j{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},TCe=class e extends j{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ECe=class e extends j{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},DCe=class e extends j{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},OCe=class e extends j{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},kCe=class e extends j{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ACe=class e extends j{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},jCe=class e extends j{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},MCe=class e extends j{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},NCe=class e extends j{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},PCe=class e extends j{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FCe=class e extends j{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ICe=class e extends j{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LCe=class e extends j{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RCe=class e extends j{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zCe=class e extends j{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BCe=class e extends j{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VCe=class e extends j{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HCe=class e extends j{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UCe=class e extends j{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WCe=class e extends j{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GCe=class e extends j{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KCe=`Action`,qCe=`AdditionalClaims`,JCe=`AuthenticateCognitoActionConfig`,YCe=`AuthenticateCognitoConfig`,n2=`AnomalyDetection`,XCe=`AuthorizationEndpoint`,r2=`AllocationId`,ZCe=`AllocationIdNotFoundException`,QCe=`ALPNPolicyNotSupportedException`,i2=`AdministrativeOverride`,$Ce=`AuthenticateOidcActionConfig`,ewe=`AuthenticateOidcConfig`,a2=`AlpnPolicy`,o2=`AuthenticationRequestExtraParams`,twe=`AddTags`,nwe=`AddTagsInput`,rwe=`AddTagsOutput`,iwe=`AdvertiseTrustStoreCaNames`,s2=`AvailabilityZone`,awe=`AvailabilityZoneNotSupportedException`,c2=`AvailabilityZones`,l2=`Actions`,u2=`Attributes`,d2=`Certificates`,owe=`CertificateArn`,swe=`CaCertificatesBundleNotFoundException`,cwe=`CapacityDecreaseRequestsLimitExceededException`,lwe=`CanonicalHostedZoneId`,uwe=`ClientId`,dwe=`CertificateList`,fwe=`CreateLoadBalancer`,pwe=`CreateLoadBalancerInput`,mwe=`CreateLoadBalancerOutput`,hwe=`CreateListenerInput`,gwe=`CreateListenerOutput`,_we=`CreateListener`,vwe=`CertificateNotFoundException`,f2=`CustomerOwnedIpv4Pool`,ywe=`CreateRule`,bwe=`CreateRuleInput`,xwe=`CreateRuleOutput`,Swe=`CapacityReservationPendingException`,Cwe=`ClientSecret`,wwe=`ContentType`,Twe=`CreateTargetGroup`,Ewe=`CreateTargetGroupInput`,Dwe=`CreateTargetGroupOutput`,Owe=`CreatedTime`,kwe=`CapacityUnitsLimitExceededException`,Awe=`Certificate`,jwe=`Cipher`,p2=`Ciphers`,Mwe=`Code`,m2=`Conditions`,h2=`Description`,g2=`DefaultActions`,Nwe=`DeleteAssociationSameAccountException`,Pwe=`DeleteListener`,Fwe=`DeleteLoadBalancer`,Iwe=`DescribeLoadBalancerAttributes`,Lwe=`DescribeLoadBalancerAttributesInput`,Rwe=`DescribeLoadBalancerAttributesOutput`,zwe=`DeleteLoadBalancerInput`,Bwe=`DescribeLoadBalancersInput`,Vwe=`DuplicateLoadBalancerNameException`,Hwe=`DeleteLoadBalancerOutput`,Uwe=`DescribeLoadBalancersOutput`,Wwe=`DescribeLoadBalancers`,Gwe=`DuplicateListenerException`,Kwe=`DeleteListenerInput`,qwe=`DescribeListenersInput`,Jwe=`DeleteListenerOutput`,Ywe=`DescribeListenersOutput`,Xwe=`DescribeListeners`,Zwe=`DNSName`,Qwe=`DeleteRule`,$we=`DeleteRuleInput`,eTe=`DescribeRulesInput`,tTe=`DeleteRuleOutput`,nTe=`DescribeRulesOutput`,rTe=`DescribeRules`,iTe=`DurationSeconds`,aTe=`DescribeSSLPolicies`,oTe=`DescribeSSLPoliciesInput`,sTe=`DescribeSSLPoliciesOutput`,cTe=`DeregisterTargets`,lTe=`DeleteTargetGroup`,uTe=`DescribeTargetGroupAttributes`,dTe=`DescribeTargetGroupAttributesInput`,fTe=`DescribeTargetGroupAttributesOutput`,pTe=`DeleteTargetGroupInput`,mTe=`DescribeTargetGroupsInput`,hTe=`DuplicateTargetGroupNameException`,gTe=`DeleteTargetGroupOutput`,_Te=`DescribeTargetGroupsOutput`,vTe=`DescribeTargetGroups`,yTe=`DescribeTargetHealth`,bTe=`DescribeTargetHealthInput`,xTe=`DescribeTargetHealthOutput`,STe=`DeregisterTargetsInput`,CTe=`DescribeTagsInput`,wTe=`DuplicateTagKeysException`,TTe=`DeregisterTargetsOutput`,ETe=`DescribeTagsOutput`,DTe=`DuplicateTrustStoreNameException`,OTe=`DescribeTags`,kTe=`Enabled`,_2=`EnablePrefixForIpv6SourceNat`,v2=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,ATe=`Format`,jTe=`ForwardActionConfig`,MTe=`ForwardConfig`,NTe=`FixedResponseActionConfig`,PTe=`FixedResponseConfig`,FTe=`Field`,ITe=`GrpcCode`,LTe=`Host`,RTe=`HttpCode`,y2=`HealthCheckEnabled`,b2=`HealthCheckIntervalSeconds`,x2=`HealthCheckProtocol`,S2=`HealthCheckPort`,C2=`HealthCheckPath`,w2=`HealthCheckTimeoutSeconds`,zTe=`HostHeaderConfig`,BTe=`HostHeaderConditionConfig`,VTe=`HttpHeaderConditionConfig`,HTe=`HttpHeaderConfig`,UTe=`HttpHeaderName`,T2=`HostHeaderRewriteConfig`,WTe=`HttpRequestMethodConfig`,GTe=`HttpRequestMethodConditionConfig`,E2=`HealthyThresholdCount`,KTe=`HealthUnavailableException`,D2=`Issuer`,qTe=`IpAddress`,O2=`IpAddressType`,JTe=`InvalidCaCertificatesBundleException`,YTe=`IgnoreClientCertificateExpiry`,XTe=`InsufficientCapacityException`,ZTe=`InvalidConfigurationRequestException`,k2=`IsDefault`,QTe=`Ipv4IpamPoolId`,$Te=`InvalidLoadBalancerActionException`,A2=`IpamPools`,j2=`IPv6Address`,eEe=`IncompatibleProtocolsException`,tEe=`InvalidRevocationContentException`,nEe=`InvalidSchemeException`,rEe=`InvalidSubnetException`,iEe=`InvalidSecurityGroupException`,aEe=`InvalidTargetException`,oEe=`Id`,sEe=`Include`,cEe=`JwksEndpoint`,lEe=`JwtValidationActionAdditionalClaim`,uEe=`JwtValidationActionAdditionalClaims`,dEe=`JwtValidationActionConfig`,fEe=`JwtValidationConfig`,M2=`Key`,N2=`Listeners`,P2=`ListenerArn`,pEe=`ListenerArns`,F2=`LoadBalancers`,I2=`LoadBalancerAddresses`,L2=`LoadBalancerArn`,R2=`LoadBalancerArns`,mEe=`LoadBalancerAddress`,hEe=`LoadBalancerAttribute`,gEe=`LoadBalancerAttributes`,_Ee=`LoadBalancerName`,vEe=`LoadBalancerNotFoundException`,yEe=`LoadBalancerState`,bEe=`LoadBalancerType`,xEe=`LoadBalancer`,SEe=`ListenerNotFoundException`,CEe=`Listener`,M=`Message`,z2=`MutualAuthentication`,wEe=`MutualAuthenticationAttributes`,TEe=`MessageBody`,EEe=`MitigationInEffect`,DEe=`ModifyListener`,OEe=`ModifyLoadBalancerAttributes`,kEe=`ModifyLoadBalancerAttributesInput`,AEe=`ModifyLoadBalancerAttributesOutput`,jEe=`ModifyListenerInput`,MEe=`ModifyListenerOutput`,NEe=`ModifyRule`,PEe=`ModifyRuleInput`,FEe=`ModifyRuleOutput`,IEe=`ModifyTargetGroupAttributes`,LEe=`ModifyTargetGroupAttributesInput`,REe=`ModifyTargetGroupAttributesOutput`,B2=`Matcher`,V2=`Marker`,zEe=`Mode`,H2=`Name`,U2=`NextMarker`,W2=`Names`,BEe=`Order`,VEe=`OutpostId`,HEe=`OperationNotPermittedException`,G2=`OnUnauthenticatedRequest`,K2=`Priority`,q2=`PrivateIPv4Address`,UEe=`PriorityInUseException`,WEe=`PathPatternConfig`,GEe=`PathPatternConditionConfig`,KEe=`PriorRequestNotCompleteException`,J2=`PageSize`,Y2=`ProtocolVersion`,qEe=`Path`,X2=`Port`,Z2=`Protocol`,JEe=`Query`,YEe=`QueryStringConfig`,XEe=`QueryStringConditionConfig`,ZEe=`QuicServerId`,QEe=`QueryStringKeyValuePair`,$Ee=`QueryStringKeyValuePairList`,Q2=`Reason`,$2=`ResourceArns`,eDe=`RedirectActionConfig`,tDe=`ResourceArn`,e4=`RuleArn`,nDe=`RuleArns`,rDe=`RedirectConfig`,iDe=`RewriteConfigList`,aDe=`RuleConditionList`,oDe=`RevocationContentNotFoundException`,sDe=`RewriteConfig`,cDe=`RuleCondition`,lDe=`RevocationIdNotFoundException`,uDe=`ResourceInUseException`,dDe=`ResourceNotFoundException`,fDe=`RuleNotFoundException`,pDe=`RegisterTargetsInput`,mDe=`RemoveTagsInput`,hDe=`RuleTransformList`,gDe=`RegisterTargetsOutput`,_De=`RemoveTagsOutput`,vDe=`ResetTransforms`,yDe=`RegisterTargets`,bDe=`RemoveTags`,xDe=`RuleTransform`,t4=`RegexValues`,SDe=`Result`,CDe=`Regex`,wDe=`Replace`,n4=`Rewrites`,r4=`Rules`,TDe=`Rule`,i4=`State`,a4=`StatusCode`,o4=`SessionCookieName`,s4=`SecurityGroups`,EDe=`SecurityGroupIds`,c4=`SubnetId`,DDe=`SourceIpConfig`,ODe=`SourceIpConditionConfig`,kDe=`SupportedLoadBalancerTypes`,l4=`SubnetMappings`,ADe=`SubnetMapping`,jDe=`SubnetNotFoundException`,MDe=`SourceNatIpv6Prefixes`,NDe=`SourceNatIpv6Prefix`,u4=`SslPolicy`,d4=`SslPolicies`,PDe=`SslProtocols`,FDe=`SetSubnets`,IDe=`SetSecurityGroups`,LDe=`SetSecurityGroupsInput`,RDe=`SetSecurityGroupsOutput`,zDe=`SetSubnetsInput`,BDe=`SSLPolicyNotFoundException`,VDe=`SetSubnetsOutput`,f4=`SessionTimeout`,p4=`Scope`,m4=`Scheme`,h4=`Subnets`,g4=`Type`,_4=`TargetControlPort`,v4=`TagDescriptions`,HDe=`TagDescription`,UDe=`TargetDescription`,WDe=`TargetDescriptions`,GDe=`TokenEndpoint`,y4=`TargetGroups`,b4=`TargetGroupArn`,KDe=`TargetGroupAssociationLimitException`,qDe=`TargetGroupArns`,JDe=`TargetGroupAttribute`,YDe=`TargetGroupAttributes`,XDe=`TargetGroupList`,ZDe=`TargetGroupName`,QDe=`TargetGroupNotFoundException`,x4=`TargetGroupStickinessConfig`,$De=`TargetGroupTuple`,eOe=`TargetGroup`,S4=`TargetHealth`,C4=`TargetHealthDescriptions`,tOe=`TargetHealthDescription`,nOe=`TagKeys`,rOe=`TagList`,iOe=`TooManyActionsException`,aOe=`TooManyCertificatesException`,oOe=`TooManyLoadBalancersException`,sOe=`TooManyListenersException`,cOe=`TooManyRulesException`,lOe=`TooManyRegistrationsForTargetIdException`,uOe=`TooManyTagsException`,dOe=`TooManyTargetsException`,fOe=`TooManyTargetGroupsException`,pOe=`TooManyTrustStoresException`,mOe=`TooManyTrustStoreRevocationEntriesException`,hOe=`TooManyUniqueTargetGroupsPerLoadBalancerException`,gOe=`TrustStoreArn`,_Oe=`TrustStoreAssociationNotFoundException`,vOe=`TrustStoreAssociationStatus`,yOe=`TrustStoreInUseException`,bOe=`TrustStoreNotFoundException`,xOe=`TrustStoreNotReadyException`,w4=`TargetType`,T4=`Tags`,SOe=`Tag`,E4=`Targets`,COe=`Target`,D4=`Transforms`,wOe=`UseExistingClientSecret`,TOe=`UserInfoEndpoint`,EOe=`UserPoolArn`,DOe=`UserPoolClientId`,OOe=`UserPoolDomain`,kOe=`UnsupportedProtocolException`,O4=`UrlRewriteConfig`,k4=`UnhealthyThresholdCount`,A4=`Values`,j4=`VpcId`,M4=`Value`,AOe=`Weight`,jOe=`ZoneName`,N=`awsQueryError`,P=`client`,F=`error`,I=`httpError`,N4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,P4=`server`,L=`com.amazonaws.elasticloadbalancingv2`,F4=ce.for(N4),MOe=[-3,N4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];F4.registerError(MOe,j);var R=ce.for(L),NOe=[-3,L,ZCe,{[N]:[`AllocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(NOe,nCe);var POe=[-3,L,QCe,{[N]:[`ALPNPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(POe,rCe);var FOe=[-3,L,awe,{[N]:[`AvailabilityZoneNotSupported`,400],[F]:P,[I]:400},[M],[0]];R.registerError(FOe,iCe);var IOe=[-3,L,swe,{[N]:[`CaCertificatesBundleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(IOe,aCe);var LOe=[-3,L,cwe,{[N]:[`CapacityDecreaseRequestLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(LOe,oCe);var ROe=[-3,L,Swe,{[N]:[`CapacityReservationPending`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ROe,sCe);var zOe=[-3,L,kwe,{[N]:[`CapacityUnitsLimitExceeded`,400],[F]:P,[I]:400},[M],[0]];R.registerError(zOe,cCe);var BOe=[-3,L,vwe,{[N]:[`CertificateNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(BOe,WSe);var VOe=[-3,L,Nwe,{[N]:[`DeleteAssociationSameAccount`,400],[F]:P,[I]:400},[M],[0]];R.registerError(VOe,LCe);var HOe=[-3,L,Gwe,{[N]:[`DuplicateListener`,400],[F]:P,[I]:400},[M],[0]];R.registerError(HOe,lCe);var UOe=[-3,L,Vwe,{[N]:[`DuplicateLoadBalancerName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(UOe,SCe);var WOe=[-3,L,wTe,{[N]:[`DuplicateTagKeys`,400],[F]:P,[I]:400},[M],[0]];R.registerError(WOe,qSe);var GOe=[-3,L,hTe,{[N]:[`DuplicateTargetGroupName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(GOe,NCe);var KOe=[-3,L,DTe,{[N]:[`DuplicateTrustStoreName`,400],[F]:P,[I]:400},[M],[0]];R.registerError(KOe,PCe);var qOe=[-3,L,KTe,{[N]:[`HealthUnavailable`,500],[F]:P4,[I]:500},[M],[0]];R.registerError(qOe,VCe);var JOe=[-3,L,eEe,{[N]:[`IncompatibleProtocols`,400],[F]:P,[I]:400},[M],[0]];R.registerError(JOe,uCe);var YOe=[-3,L,XTe,{[N]:[`InsufficientCapacity`,500],[F]:P4,[I]:500},[M],[0]];R.registerError(YOe,WCe);var XOe=[-3,L,JTe,{[N]:[`InvalidCaCertificatesBundle`,400],[F]:P,[I]:400},[M],[0]];R.registerError(XOe,FCe);var ZOe=[-3,L,ZTe,{[N]:[`InvalidConfigurationRequest`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ZOe,dCe);var QOe=[-3,L,$Te,{[N]:[`InvalidLoadBalancerAction`,400],[F]:P,[I]:400},[M],[0]];R.registerError(QOe,fCe);var $Oe=[-3,L,tEe,{[N]:[`InvalidRevocationContent`,400],[F]:P,[I]:400},[M],[0]];R.registerError($Oe,$Se);var eke=[-3,L,nEe,{[N]:[`InvalidScheme`,400],[F]:P,[I]:400},[M],[0]];R.registerError(eke,CCe);var tke=[-3,L,iEe,{[N]:[`InvalidSecurityGroup`,400],[F]:P,[I]:400},[M],[0]];R.registerError(tke,wCe);var nke=[-3,L,rEe,{[N]:[`InvalidSubnet`,400],[F]:P,[I]:400},[M],[0]];R.registerError(nke,TCe);var rke=[-3,L,aEe,{[N]:[`InvalidTarget`,400],[F]:P,[I]:400},[M],[0]];R.registerError(rke,BCe);var ike=[-3,L,SEe,{[N]:[`ListenerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ike,GSe);var ake=[-3,L,vEe,{[N]:[`LoadBalancerNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ake,JSe);var oke=[-3,L,HEe,{[N]:[`OperationNotPermitted`,400],[F]:P,[I]:400},[M],[0]];R.registerError(oke,ECe);var ske=[-3,L,UEe,{[N]:[`PriorityInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(ske,ACe);var cke=[-3,L,KEe,{[N]:[`PriorRequestNotComplete`,429],[F]:P,[I]:429},[M],[0]];R.registerError(cke,GCe);var lke=[-3,L,uDe,{[N]:[`ResourceInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(lke,DCe);var uke=[-3,L,dDe,{[N]:[`ResourceNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(uke,UCe);var dke=[-3,L,oDe,{[N]:[`RevocationContentNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(dke,eCe);var fke=[-3,L,lDe,{[N]:[`RevocationIdNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(fke,HCe);var pke=[-3,L,fDe,{[N]:[`RuleNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(pke,YSe);var mke=[-3,L,BDe,{[N]:[`SSLPolicyNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(mke,pCe);var hke=[-3,L,jDe,{[N]:[`SubnetNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(hke,OCe);var gke=[-3,L,KDe,{[N]:[`TargetGroupAssociationLimit`,400],[F]:P,[I]:400},[M],[0]];R.registerError(gke,mCe);var _ke=[-3,L,QDe,{[N]:[`TargetGroupNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(_ke,XSe);var vke=[-3,L,iOe,{[N]:[`TooManyActions`,400],[F]:P,[I]:400},[M],[0]];R.registerError(vke,hCe);var yke=[-3,L,aOe,{[N]:[`TooManyCertificates`,400],[F]:P,[I]:400},[M],[0]];R.registerError(yke,KSe);var bke=[-3,L,sOe,{[N]:[`TooManyListeners`,400],[F]:P,[I]:400},[M],[0]];R.registerError(bke,gCe);var xke=[-3,L,oOe,{[N]:[`TooManyLoadBalancers`,400],[F]:P,[I]:400},[M],[0]];R.registerError(xke,kCe);var Ske=[-3,L,lOe,{[N]:[`TooManyRegistrationsForTargetId`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Ske,_Ce);var Cke=[-3,L,cOe,{[N]:[`TooManyRules`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Cke,jCe);var wke=[-3,L,uOe,{[N]:[`TooManyTags`,400],[F]:P,[I]:400},[M],[0]];R.registerError(wke,ZSe);var Tke=[-3,L,fOe,{[N]:[`TooManyTargetGroups`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Tke,MCe);var Eke=[-3,L,dOe,{[N]:[`TooManyTargets`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Eke,vCe);var Dke=[-3,L,mOe,{[N]:[`TooManyTrustStoreRevocationEntries`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Dke,tCe);var Oke=[-3,L,pOe,{[N]:[`TooManyTrustStores`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Oke,ICe);var kke=[-3,L,hOe,{[N]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[F]:P,[I]:400},[M],[0]];R.registerError(kke,yCe);var Ake=[-3,L,_Oe,{[N]:[`AssociationNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Ake,RCe);var jke=[-3,L,yOe,{[N]:[`TrustStoreInUse`,400],[F]:P,[I]:400},[M],[0]];R.registerError(jke,zCe);var Mke=[-3,L,bOe,{[N]:[`TrustStoreNotFound`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Mke,QSe);var Nke=[-3,L,xOe,{[N]:[`TrustStoreNotReady`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Nke,bCe);var Pke=[-3,L,kOe,{[N]:[`UnsupportedProtocol`,400],[F]:P,[I]:400},[M],[0]];R.registerError(Pke,xCe);var Fke=[F4,R],Ike=[3,L,KCe,0,[g4,b4,ewe,YCe,BEe,rDe,PTe,MTe,fEe],[0,0,()=>Hke,()=>Vke,1,()=>QAe,()=>OAe,()=>kAe,()=>FAe],1],Lke=[3,L,nwe,0,[$2,T4],[64,()=>Z4],2],Rke=[3,L,rwe,0,[],[]],zke=[3,L,i2,0,[i4,Q2,h2],[0,0,0]],Bke=[3,L,n2,0,[SDe,EEe],[0,0]],Vke=[3,L,JCe,0,[EOe,DOe,OOe,o4,p4,f4,o2,G2],[0,0,0,0,0,1,128,0],3],Hke=[3,L,$Ce,0,[D2,XCe,GDe,TOe,uwe,Cwe,o4,p4,f4,o2,G2,wOe],[0,0,0,0,0,0,0,0,1,128,0,2],5],Uke=[3,L,s2,0,[jOe,c4,VEe,I2,MDe],[0,0,0,()=>Tje,64]],Wke=[3,L,Awe,0,[owe,k2],[0,2]],Gke=[3,L,jwe,0,[H2,K2],[0,1]],Kke=[3,L,hwe,0,[L2,g2,Z2,X2,u4,d2,a2,T4,z2],[0,()=>B4,0,1,0,()=>H4,64,()=>Z4,()=>R4],2],qke=[3,L,gwe,0,[N2],[()=>U4]],Jke=[3,L,pwe,0,[H2,h4,l4,s4,m4,T4,g4,O2,f2,_2,A2],[0,64,()=>X4,64,0,()=>Z4,0,0,0,0,()=>I4],1],Yke=[3,L,mwe,0,[F2],[()=>G4]],Xke=[3,L,bwe,0,[P2,m2,K2,l2,T4,D4],[0,()=>q4,1,()=>B4,()=>Z4,()=>Y4],4],Zke=[3,L,xwe,0,[r4],[()=>J4]],Qke=[3,L,Ewe,0,[H2,Z2,Y2,X2,j4,x2,S2,y2,C2,b2,w2,E2,k4,B2,w4,T4,O2,_4],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>L4,0,()=>Z4,0,1],1],$ke=[3,L,Dwe,0,[y4],[()=>e3]],eAe=[3,L,Kwe,0,[P2],[0],1],tAe=[3,L,Jwe,0,[],[]],nAe=[3,L,zwe,0,[L2],[0],1],rAe=[3,L,Hwe,0,[],[]],iAe=[3,L,$we,0,[e4],[0],1],aAe=[3,L,tTe,0,[],[]],oAe=[3,L,pTe,0,[b4],[0],1],sAe=[3,L,gTe,0,[],[]],cAe=[3,L,STe,0,[b4,E4],[0,()=>Q4],2],lAe=[3,L,TTe,0,[],[]],uAe=[3,L,qwe,0,[L2,pEe,V2,J2],[0,64,0,1]],dAe=[3,L,Ywe,0,[N2,U2],[()=>U4,0]],fAe=[3,L,Lwe,0,[L2],[0],1],pAe=[3,L,Rwe,0,[u2],[()=>W4]],mAe=[3,L,Bwe,0,[R2,W2,V2,J2],[64,64,0,1]],hAe=[3,L,Uwe,0,[F2,U2],[()=>G4,0]],gAe=[3,L,eTe,0,[P2,nDe,V2,J2],[0,64,0,1]],_Ae=[3,L,nTe,0,[r4,U2],[()=>J4,0]],vAe=[3,L,oTe,0,[W2,V2,J2,bEe],[64,0,1,0]],yAe=[3,L,sTe,0,[d4,U2],[()=>Dje,0]],bAe=[3,L,CTe,0,[$2],[64],1],xAe=[3,L,ETe,0,[v4],[()=>Oje]],SAe=[3,L,dTe,0,[b4],[0],1],CAe=[3,L,fTe,0,[u2],[()=>$4]],wAe=[3,L,mTe,0,[L2,qDe,W2,V2,J2],[0,64,64,0,1]],TAe=[3,L,_Te,0,[y4,U2],[()=>e3,0]],EAe=[3,L,bTe,0,[b4,E4,sEe],[0,()=>Q4,64],1],DAe=[3,L,xTe,0,[C4],[()=>Aje]],OAe=[3,L,NTe,0,[a4,TEe,wwe],[0,0,0],1],kAe=[3,L,jTe,0,[y4,x4],[()=>kje,()=>vje]],AAe=[3,L,BTe,0,[A4,t4],[64,64]],jAe=[3,L,T2,0,[n4],[()=>K4]],MAe=[3,L,VTe,0,[UTe,A4,t4],[0,64,64]],NAe=[3,L,GTe,0,[A4],[64]],I4=[3,L,A2,0,[QTe],[0]],PAe=[3,L,lEe,0,[ATe,H2,A4],[0,0,64],3],FAe=[3,L,dEe,0,[cEe,D2,qCe],[0,0,()=>wje],2],IAe=[3,L,CEe,0,[P2,L2,X2,Z2,d2,u4,g2,a2,z2],[0,0,1,0,()=>H4,0,()=>B4,64,()=>R4]],LAe=[3,L,xEe,0,[L2,Zwe,lwe,Owe,_Ee,m4,j4,i4,g4,c2,s4,O2,f2,v2,_2,A2],[0,0,0,4,0,0,0,()=>BAe,0,()=>V4,64,0,0,0,0,()=>I4]],RAe=[3,L,mEe,0,[qTe,r2,q2,j2],[0,0,0,0]],zAe=[3,L,hEe,0,[M2,M4],[0,0]],BAe=[3,L,yEe,0,[Mwe,Q2],[0,0]],L4=[3,L,B2,0,[RTe,ITe],[0,0]],VAe=[3,L,jEe,0,[P2,X2,Z2,u4,d2,g2,a2,z2],[0,1,0,0,()=>H4,()=>B4,64,()=>R4],1],HAe=[3,L,MEe,0,[N2],[()=>U4]],UAe=[3,L,kEe,0,[L2,u2],[0,()=>W4],2],WAe=[3,L,AEe,0,[u2],[()=>W4]],GAe=[3,L,PEe,0,[e4,m2,l2,D4,vDe],[0,()=>q4,()=>B4,()=>Y4,2],1],KAe=[3,L,FEe,0,[r4],[()=>J4]],qAe=[3,L,LEe,0,[b4,u2],[0,()=>$4],2],JAe=[3,L,REe,0,[u2],[()=>$4]],R4=[3,L,wEe,0,[zEe,gOe,YTe,vOe,iwe],[0,0,2,0,0]],YAe=[3,L,GEe,0,[A4,t4],[64,64]],XAe=[3,L,XEe,0,[A4],[()=>Eje]],ZAe=[3,L,QEe,0,[M2,M4],[0,0]],QAe=[3,L,eDe,0,[a4,Z2,X2,LTe,qEe,JEe],[0,0,0,0,0,0],1],$Ae=[3,L,pDe,0,[b4,E4],[0,()=>Q4],2],eje=[3,L,gDe,0,[],[]],tje=[3,L,mDe,0,[$2,nOe],[64,64],2],nje=[3,L,_De,0,[],[]],rje=[3,L,sDe,0,[CDe,wDe],[0,0],2],ije=[3,L,TDe,0,[e4,K2,m2,l2,k2,D4],[0,0,()=>q4,()=>B4,2,()=>Y4]],aje=[3,L,cDe,0,[FTe,A4,zTe,WEe,HTe,YEe,WTe,DDe,t4],[0,64,()=>AAe,()=>YAe,()=>MAe,()=>XAe,()=>NAe,()=>dje,64]],oje=[3,L,xDe,0,[g4,T2,O4],[0,()=>jAe,()=>Sje],1],sje=[3,L,LDe,0,[L2,s4,v2],[0,64,0],2],cje=[3,L,RDe,0,[EDe,v2],[64,0]],lje=[3,L,zDe,0,[L2,h4,l4,O2,_2],[0,64,()=>X4,0,0],1],uje=[3,L,VDe,0,[c2,O2,_2],[()=>V4,0,0]],dje=[3,L,ODe,0,[A4],[64]],fje=[3,L,u4,0,[PDe,p2,H2,kDe],[64,()=>Cje,0,64]],pje=[3,L,ADe,0,[c4,r2,q2,j2,NDe],[0,0,0,0,0]],mje=[3,L,SOe,0,[M2,M4],[0,0],1],hje=[3,L,HDe,0,[tDe,T4],[0,()=>Z4]],z4=[3,L,UDe,0,[oEe,X2,s2,ZEe],[0,1,0,0],1],gje=[3,L,eOe,0,[b4,ZDe,Z2,X2,j4,x2,S2,y2,b2,w2,E2,k4,C2,B2,R2,w4,Y2,O2,_4],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>L4,64,0,0,0,1]],_je=[3,L,JDe,0,[M2,M4],[0,0]],vje=[3,L,x4,0,[kTe,iTe],[2,1]],yje=[3,L,$De,0,[b4,AOe],[0,1]],bje=[3,L,S4,0,[i4,Q2,h2],[0,0,0]],xje=[3,L,tOe,0,[COe,S2,S4,n2,i2],[()=>z4,0,()=>bje,()=>Bke,()=>zke]],Sje=[3,L,O4,0,[n4],[()=>K4]],B4=[1,L,l2,0,()=>Ike],V4=[1,L,c2,0,()=>Uke],H4=[1,L,dwe,0,()=>Wke],Cje=[1,L,p2,0,()=>Gke],wje=[1,L,uEe,0,()=>PAe],U4=[1,L,N2,0,()=>IAe],Tje=[1,L,I2,0,()=>RAe],W4=[1,L,gEe,0,()=>zAe],G4=[1,L,F2,0,()=>LAe],Eje=[1,L,$Ee,0,()=>ZAe],K4=[1,L,iDe,0,()=>rje],q4=[1,L,aDe,0,()=>aje],J4=[1,L,r4,0,()=>ije],Y4=[1,L,hDe,0,()=>oje],Dje=[1,L,d4,0,()=>fje],X4=[1,L,l4,0,()=>pje],Oje=[1,L,v4,0,()=>hje],Z4=[1,L,rOe,0,()=>mje],Q4=[1,L,WDe,0,()=>z4],$4=[1,L,YDe,0,()=>_je],kje=[1,L,XDe,0,()=>yje],e3=[1,L,y4,0,()=>gje],Aje=[1,L,C4,0,()=>xje],jje=[9,L,twe,0,()=>Lke,()=>Rke],Mje=[9,L,_we,0,()=>Kke,()=>qke],Nje=[9,L,fwe,0,()=>Jke,()=>Yke],Pje=[9,L,ywe,0,()=>Xke,()=>Zke],Fje=[9,L,Twe,0,()=>Qke,()=>$ke],Ije=[9,L,Pwe,0,()=>eAe,()=>tAe],Lje=[9,L,Fwe,0,()=>nAe,()=>rAe],Rje=[9,L,Qwe,0,()=>iAe,()=>aAe],zje=[9,L,lTe,0,()=>oAe,()=>sAe],Bje=[9,L,cTe,0,()=>cAe,()=>lAe],Vje=[9,L,Xwe,0,()=>uAe,()=>dAe],Hje=[9,L,Iwe,0,()=>fAe,()=>pAe],Uje=[9,L,Wwe,0,()=>mAe,()=>hAe],Wje=[9,L,rTe,0,()=>gAe,()=>_Ae],Gje=[9,L,aTe,0,()=>vAe,()=>yAe],Kje=[9,L,OTe,0,()=>bAe,()=>xAe],qje=[9,L,uTe,0,()=>SAe,()=>CAe],Jje=[9,L,vTe,0,()=>wAe,()=>TAe],Yje=[9,L,yTe,0,()=>EAe,()=>DAe],Xje=[9,L,DEe,0,()=>VAe,()=>HAe],Zje=[9,L,OEe,0,()=>UAe,()=>WAe],Qje=[9,L,NEe,0,()=>GAe,()=>KAe],$je=[9,L,IEe,0,()=>qAe,()=>JAe],eMe=[9,L,yDe,0,()=>$Ae,()=>eje],tMe=[9,L,bDe,0,()=>tje,()=>nje],nMe=[9,L,IDe,0,()=>sje,()=>cje],rMe=[9,L,FDe,0,()=>lje,()=>uje],iMe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??USe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??PSe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Ge,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:Fke,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),aMe=e=>{let t=Ye(e),n=()=>t().then(pt),r=iMe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:RSe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},oMe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},sMe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cMe=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),oMe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),sMe(n))},lMe=class extends we{config;constructor(...[e]){let t=aMe(e||{});super(t),this.initConfig=t;let n=cMe(FSe(Oe(Ue(ye(at(_e(ISe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:MSe,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},uMe=async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dMe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var fMe=e=>{let t=[];switch(e.operation){default:t.push(dMe(e))}return t},pMe=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},mMe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),hMe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},gMe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},t3=`ref`,n3=`authSchemes`,r3=`name`,i3=`signingRegion`,a3=-1,o3=!0,s3=`isSet`,c3=`PartitionResult`,l3=`booleanEquals`,u3=`stringEquals`,d3=`getAttr`,f3=`sigv4`,p3={[t3]:`Endpoint`},m3={fn:d3,argv:[{[t3]:c3},`name`]},h3={[t3]:c3},g3={[n3]:[{[r3]:f3,[i3]:`us-east-1`}]},_3={[n3]:[{[r3]:f3,[i3]:`cn-north-1`}]},v3={[n3]:[{[r3]:f3,[i3]:`us-gov-west-1`}]},y3={[n3]:[{[r3]:f3,[i3]:`us-iso-east-1`}]},b3={[n3]:[{[r3]:f3,[i3]:`us-isob-east-1`}]},x3={[n3]:[{[r3]:f3,[i3]:`{PartitionResult#implicitGlobalRegion}`}]},S3=[{[t3]:`Region`}],C3={conditions:[[s3,[p3]],[s3,S3],[`aws.partition`,S3,c3],[l3,[{[t3]:`UseFIPS`},o3]],[l3,[{[t3]:`UseDualStack`},o3]],[u3,[m3,`aws`]],[u3,[m3,`aws-cn`]],[u3,[m3,`aws-us-gov`]],[l3,[{fn:d3,argv:[h3,`supportsDualStack`]},o3]],[u3,[m3,`aws-iso`]],[u3,[m3,`aws-iso-b`]],[l3,[{fn:d3,argv:[h3,`supportsFIPS`]},o3]],[u3,[m3,`aws-iso-e`]],[u3,[m3,`aws-iso-f`]],[u3,[m3,`aws-eusc`]]],results:[[a3],[a3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[a3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[p3,{}],[`https://iam.global.api.aws`,g3],[`https://iam-fips.global.api.aws`,g3],[`https://iam.global.api.amazonwebservices.com.cn`,_3],[`https://iam.cn-north-1.amazonaws.com.cn`,_3],[`https://iam.us-gov.api.aws`,v3],[`https://iam.us-gov.amazonaws.com`,v3],[`https://iam.us-iso-east-1.c2s.ic.gov`,y3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,y3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,b3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,b3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[n3]:[{[r3]:f3,[i3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[n3]:[{[r3]:f3,[i3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[n3]:[{[r3]:f3,[i3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,x3],[a3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,x3],[a3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,x3],[a3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,x3],[a3,`Invalid Configuration: Missing Region`]]},_Me=2,vMe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),yMe=he.from(vMe,_Me,C3.conditions,C3.results),bMe=new Me({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),xMe=(e,t={})=>bMe.get(e,()=>gt(yMe,{endpointParams:e,logger:t.logger}));oe.aws=fe;var z=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},SMe=class e extends z{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CMe=class e extends z{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wMe=class e extends z{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},TMe=class e extends z{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},EMe=class e extends z{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DMe=class e extends z{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OMe=class e extends z{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kMe=class e extends z{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AMe=class e extends z{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jMe=class e extends z{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MMe=class e extends z{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NMe=class e extends z{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PMe=class e extends z{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FMe=class e extends z{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},IMe=class e extends z{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LMe=class e extends z{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RMe=class e extends z{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zMe=class e extends z{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BMe=class e extends z{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VMe=class e extends z{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HMe=class e extends z{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UMe=class e extends z{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WMe=class e extends z{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},GMe=class e extends z{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},KMe=class e extends z{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qMe=class e extends z{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},JMe=class e extends z{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},YMe=class e extends z{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XMe=class e extends z{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZMe=class e extends z{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},QMe=class e extends z{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$Me=class e extends z{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eNe=class e extends z{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tNe=class e extends z{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nNe=class e extends z{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},w3=`Arn`,rNe=`AttachmentCount`,T3=`AccessKey`,E3=`AccessKeyId`,D3=`AccessKeyMetadata`,iNe=`AccountNotManagementOrDelegatedAdministratorException`,aNe=`AttachedPolicy`,oNe=`AttachedPermissionsBoundary`,O3=`AttachedPolicies`,sNe=`AttachRolePolicy`,k3=`AssumeRolePolicyDocument`,cNe=`AttachRolePolicyRequest`,lNe=`AddRoleToInstanceProfile`,uNe=`AddRoleToInstanceProfileRequest`,dNe=`AttachUserPolicy`,fNe=`AttachUserPolicyRequest`,pNe=`CreateAccessKey`,mNe=`CreateAccessKeyRequest`,hNe=`CreateAccessKeyResponse`,A3=`CreateDate`,gNe=`CallerIsNotManagementAccountException`,_Ne=`CreateInstanceProfile`,vNe=`CreateInstanceProfileRequest`,yNe=`CreateInstanceProfileResponse`,bNe=`ConcurrentModificationException`,xNe=`CreatePolicyRequest`,SNe=`CreatePolicyResponse`,CNe=`CreatePolicy`,wNe=`CreateRole`,TNe=`CredentialReportExpiredException`,ENe=`CredentialReportNotPresentException`,DNe=`CredentialReportNotReadyException`,ONe=`CreateRoleRequest`,kNe=`CreateRoleResponse`,ANe=`CreateUser`,jNe=`CreateUserRequest`,MNe=`CreateUserResponse`,j3=`Description`,NNe=`DeleteAccessKey`,PNe=`DeleteAccessKeyRequest`,FNe=`DeleteConflictException`,INe=`DuplicateCertificateException`,LNe=`DeleteInstanceProfile`,RNe=`DeleteInstanceProfileRequest`,zNe=`DeletePolicyRequest`,BNe=`DeletePolicy`,VNe=`DetachRolePolicyRequest`,HNe=`DetachRolePolicy`,UNe=`DeleteRoleRequest`,WNe=`DeleteRole`,GNe=`DuplicateSSHPublicKeyException`,KNe=`DeleteUser`,qNe=`DetachUserPolicyRequest`,JNe=`DetachUserPolicy`,YNe=`DeleteUserRequest`,XNe=`DefaultVersionId`,ZNe=`Document`,QNe=`EntityAlreadyExistsException`,$Ne=`EntityTemporarilyUnmodifiableException`,ePe=`FeatureDisabledException`,tPe=`FeatureEnabledException`,nPe=`GetInstanceProfile`,rPe=`GetInstanceProfileRequest`,iPe=`GetInstanceProfileResponse`,aPe=`GetPolicy`,oPe=`GetPolicyRequest`,sPe=`GetPolicyResponse`,cPe=`GetPolicyVersion`,lPe=`GetPolicyVersionRequest`,uPe=`GetPolicyVersionResponse`,dPe=`GetRole`,fPe=`GetRoleRequest`,pPe=`GetRoleResponse`,mPe=`GetUser`,hPe=`GetUserRequest`,gPe=`GetUserResponse`,_Pe=`IsAttachable`,vPe=`InvalidAuthenticationCodeException`,yPe=`InvalidCertificateException`,bPe=`IsDefaultVersion`,xPe=`InvalidInputException`,M3=`InstanceProfile`,SPe=`InstanceProfileId`,CPe=`InvalidPublicKeyException`,N3=`InstanceProfileName`,P3=`InstanceProfiles`,F3=`IsTruncated`,wPe=`InvalidUserTypeException`,TPe=`Key`,EPe=`KeyPairMismatchException`,DPe=`ListAccessKeys`,OPe=`ListAccessKeysRequest`,kPe=`ListAccessKeysResponse`,APe=`ListAttachedRolePolicies`,jPe=`ListAttachedRolePoliciesRequest`,MPe=`ListAttachedRolePoliciesResponse`,NPe=`ListAttachedUserPolicies`,PPe=`ListAttachedUserPoliciesRequest`,FPe=`ListAttachedUserPoliciesResponse`,IPe=`LimitExceededException`,LPe=`ListInstanceProfiles`,RPe=`ListInstanceProfilesForRole`,zPe=`ListInstanceProfilesForRoleRequest`,BPe=`ListInstanceProfilesForRoleResponse`,VPe=`ListInstanceProfilesRequest`,HPe=`ListInstanceProfilesResponse`,UPe=`ListPoliciesRequest`,WPe=`ListPoliciesResponse`,GPe=`ListPolicies`,KPe=`ListRoles`,qPe=`ListRolesRequest`,JPe=`ListRolesResponse`,YPe=`ListUsers`,XPe=`LastUsedDate`,ZPe=`ListUsersRequest`,QPe=`ListUsersResponse`,I3=`Message`,$Pe=`MalformedCertificateException`,L3=`MaxItems`,eFe=`MalformedPolicyDocumentException`,R3=`MaxSessionDuration`,z3=`Marker`,tFe=`NoSuchEntityException`,nFe=`OnlyAttached`,rFe=`OpenIdIdpCommunicationErrorException`,iFe=`OrganizationNotFoundException`,aFe=`OrganizationNotInAllFeaturesModeException`,B3=`PolicyArn`,V3=`PermissionsBoundary`,oFe=`PermissionsBoundaryArn`,sFe=`PermissionsBoundaryType`,cFe=`PermissionsBoundaryUsageCount`,lFe=`PolicyDocument`,uFe=`PolicyEvaluationException`,dFe=`PolicyId`,fFe=`PasswordLastUsed`,H3=`PolicyName`,pFe=`PolicyNotAttachableException`,mFe=`PasswordPolicyViolationException`,U3=`PathPrefix`,hFe=`PolicyUsageFilter`,W3=`PolicyVersion`,G3=`Path`,K3=`Policy`,gFe=`Policies`,_Fe=`Region`,vFe=`ReportGenerationLimitExceededException`,yFe=`RoleId`,q3=`RoleLastUsed`,J3=`RoleName`,bFe=`RemoveRoleFromInstanceProfile`,xFe=`RemoveRoleFromInstanceProfileRequest`,Y3=`Role`,X3=`Roles`,Z3=`Status`,SFe=`SecretAccessKey`,CFe=`ServiceAccessNotEnabledException`,wFe=`ServiceFailureException`,TFe=`ServiceNotSupportedException`,EFe=`Scope`,Q3=`Tags`,DFe=`Tag`,OFe=`UpdateAccessKey`,kFe=`UpdateAccessKeyRequest`,AFe=`UpdateDate`,jFe=`UnmodifiableEntityException`,MFe=`UserId`,$3=`UserName`,NFe=`UnrecognizedPublicKeyEncodingException`,e6=`User`,PFe=`Users`,t6=`VersionId`,FFe=`Value`,IFe=`accessKeyMetadataListType`,LFe=`accessKeySecretType`,RFe=`attachedPoliciesListType`,B=`awsQueryError`,V=`client`,H=`error`,U=`httpError`,zFe=`instanceProfileListType`,W=`message`,BFe=`policyListType`,VFe=`roleListType`,n6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,r6=`server`,HFe=`tagListType`,UFe=`userListType`,G=`com.amazonaws.iam`,i6=ce.for(n6),WFe=[-3,n6,`IAMServiceException`,0,[],[]];i6.registerError(WFe,z);var K=ce.for(G),GFe=[-3,G,iNe,{[H]:V,[U]:400},[I3],[0]];K.registerError(GFe,TMe);var KFe=[-3,G,gNe,{[H]:V,[U]:400},[I3],[0]];K.registerError(KFe,UMe);var qFe=[-3,G,bNe,{[B]:[`ConcurrentModification`,409],[H]:V,[U]:409},[W],[0]];K.registerError(qFe,SMe);var JFe=[-3,G,TNe,{[B]:[`ReportExpired`,410],[H]:V,[U]:410},[W],[0]];K.registerError(JFe,KMe);var YFe=[-3,G,ENe,{[B]:[`ReportNotPresent`,410],[H]:V,[U]:410},[W],[0]];K.registerError(YFe,qMe);var XFe=[-3,G,DNe,{[B]:[`ReportInProgress`,404],[H]:V,[U]:404},[W],[0]];K.registerError(XFe,JMe);var ZFe=[-3,G,FNe,{[B]:[`DeleteConflict`,409],[H]:V,[U]:409},[W],[0]];K.registerError(ZFe,LMe);var QFe=[-3,G,INe,{[B]:[`DuplicateCertificate`,409],[H]:V,[U]:409},[W],[0]];K.registerError(QFe,$Me);var $Fe=[-3,G,GNe,{[B]:[`DuplicateSSHPublicKey`,400],[H]:V,[U]:400},[W],[0]];K.registerError($Fe,tNe);var eIe=[-3,G,QNe,{[B]:[`EntityAlreadyExists`,409],[H]:V,[U]:409},[W],[0]];K.registerError(eIe,OMe);var tIe=[-3,G,$Ne,{[B]:[`EntityTemporarilyUnmodifiable`,409],[H]:V,[U]:409},[W],[0]];K.registerError(tIe,jMe);var nIe=[-3,G,ePe,{[B]:[`FeatureDisabled`,404],[H]:V,[U]:404},[W],[0]];K.registerError(nIe,VMe);var rIe=[-3,G,tPe,{[B]:[`FeatureEnabled`,409],[H]:V,[U]:409},[W],[0]];K.registerError(rIe,WMe);var iIe=[-3,G,vPe,{[B]:[`InvalidAuthenticationCode`,403],[H]:V,[U]:403},[W],[0]];K.registerError(iIe,HMe);var aIe=[-3,G,yPe,{[B]:[`InvalidCertificate`,400],[H]:V,[U]:400},[W],[0]];K.registerError(aIe,eNe);var oIe=[-3,G,xPe,{[B]:[`InvalidInput`,400],[H]:V,[U]:400},[W],[0]];K.registerError(oIe,EMe);var sIe=[-3,G,CPe,{[B]:[`InvalidPublicKey`,400],[H]:V,[U]:400},[W],[0]];K.registerError(sIe,nNe);var cIe=[-3,G,wPe,{[B]:[`InvalidUserType`,400],[H]:V,[U]:400},[W],[0]];K.registerError(cIe,MMe);var lIe=[-3,G,EPe,{[B]:[`KeyPairMismatch`,400],[H]:V,[U]:400},[W],[0]];K.registerError(lIe,ZMe);var uIe=[-3,G,IPe,{[B]:[`LimitExceeded`,409],[H]:V,[U]:409},[W],[0]];K.registerError(uIe,DMe);var dIe=[-3,G,$Pe,{[B]:[`MalformedCertificate`,400],[H]:V,[U]:400},[W],[0]];K.registerError(dIe,QMe);var fIe=[-3,G,eFe,{[B]:[`MalformedPolicyDocument`,400],[H]:V,[U]:400},[W],[0]];K.registerError(fIe,FMe);var pIe=[-3,G,tFe,{[B]:[`NoSuchEntity`,404],[H]:V,[U]:404},[W],[0]];K.registerError(pIe,CMe);var mIe=[-3,G,rFe,{[B]:[`OpenIdIdpCommunicationError`,400],[H]:V,[U]:400},[W],[0]];K.registerError(mIe,PMe);var hIe=[-3,G,iFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(hIe,RMe);var gIe=[-3,G,aFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(gIe,zMe);var _Ie=[-3,G,mFe,{[B]:[`PasswordPolicyViolation`,400],[H]:V,[U]:400},[W],[0]];K.registerError(_Ie,NMe);var vIe=[-3,G,uFe,{[B]:[`PolicyEvaluation`,500],[H]:r6,[U]:500},[W],[0]];K.registerError(vIe,XMe);var yIe=[-3,G,pFe,{[B]:[`PolicyNotAttachable`,400],[H]:V,[U]:400},[W],[0]];K.registerError(yIe,AMe);var bIe=[-3,G,vFe,{[B]:[`ReportGenerationLimitExceeded`,409],[H]:V,[U]:409},[W],[0]];K.registerError(bIe,GMe);var xIe=[-3,G,CFe,{[H]:V,[U]:400},[I3],[0]];K.registerError(xIe,BMe);var SIe=[-3,G,wFe,{[B]:[`ServiceFailure`,500],[H]:r6,[U]:500},[W],[0]];K.registerError(SIe,wMe);var CIe=[-3,G,TFe,{[B]:[`NotSupportedService`,404],[H]:V,[U]:404},[W],[0]];K.registerError(CIe,IMe);var wIe=[-3,G,jFe,{[B]:[`UnmodifiableEntity`,400],[H]:V,[U]:400},[W],[0]];K.registerError(wIe,kMe);var TIe=[-3,G,NFe,{[B]:[`UnrecognizedPublicKeyEncoding`,400],[H]:V,[U]:400},[W],[0]];K.registerError(TIe,YMe);var EIe=[i6,K],DIe=[0,G,LFe,8,0],OIe=[3,G,T3,0,[$3,E3,Z3,SFe,A3],[0,0,0,[()=>DIe,0],4],4],kIe=[3,G,D3,0,[$3,E3,Z3,A3],[0,0,0,4]],AIe=[3,G,uNe,0,[N3,J3],[0,0],2],a6=[3,G,oNe,0,[sFe,oFe],[0,0]],jIe=[3,G,aNe,0,[H3,B3],[0,0]],MIe=[3,G,cNe,0,[J3,B3],[0,0],2],NIe=[3,G,fNe,0,[$3,B3],[0,0],2],PIe=[3,G,mNe,0,[$3],[0]],FIe=[3,G,hNe,0,[T3],[[()=>OIe,0]],1],IIe=[3,G,vNe,0,[N3,G3,Q3],[0,0,()=>m6],1],LIe=[3,G,yNe,0,[M3],[()=>o6],1],RIe=[3,G,xNe,0,[H3,lFe,G3,j3,Q3],[0,0,0,0,()=>m6],2],zIe=[3,G,SNe,0,[K3],[()=>s6]],BIe=[3,G,ONe,0,[J3,k3,G3,j3,R3,V3,Q3],[0,0,0,0,1,0,()=>m6],2],VIe=[3,G,kNe,0,[Y3],[()=>c6],1],HIe=[3,G,jNe,0,[$3,G3,V3,Q3],[0,0,0,()=>m6],1],UIe=[3,G,MNe,0,[e6],[()=>l6]],WIe=[3,G,PNe,0,[E3,$3],[0,0],1],GIe=[3,G,RNe,0,[N3],[0],1],KIe=[3,G,zNe,0,[B3],[0],1],qIe=[3,G,UNe,0,[J3],[0],1],JIe=[3,G,YNe,0,[$3],[0],1],YIe=[3,G,VNe,0,[J3,B3],[0,0],2],XIe=[3,G,qNe,0,[$3,B3],[0,0],2],ZIe=[3,G,rPe,0,[N3],[0],1],QIe=[3,G,iPe,0,[M3],[()=>o6],1],$Ie=[3,G,oPe,0,[B3],[0],1],eLe=[3,G,sPe,0,[K3],[()=>s6]],tLe=[3,G,lPe,0,[B3,t6],[0,0],2],nLe=[3,G,uPe,0,[W3],[()=>CLe]],rLe=[3,G,fPe,0,[J3],[0],1],iLe=[3,G,pPe,0,[Y3],[()=>c6],1],aLe=[3,G,hPe,0,[$3],[0]],oLe=[3,G,gPe,0,[e6],[()=>l6],1],o6=[3,G,M3,0,[G3,N3,SPe,w3,A3,X3,Q3],[0,0,0,0,4,()=>p6,()=>m6],6],sLe=[3,G,OPe,0,[$3,z3,L3],[0,0,1]],cLe=[3,G,kPe,0,[D3,F3,z3],[()=>OLe,2,0],1],lLe=[3,G,jPe,0,[J3,U3,z3,L3],[0,0,0,1],1],uLe=[3,G,MPe,0,[O3,F3,z3],[()=>d6,2,0]],dLe=[3,G,PPe,0,[$3,U3,z3,L3],[0,0,0,1],1],fLe=[3,G,FPe,0,[O3,F3,z3],[()=>d6,2,0]],pLe=[3,G,zPe,0,[J3,z3,L3],[0,0,1],1],mLe=[3,G,BPe,0,[P3,F3,z3],[()=>f6,2,0],1],hLe=[3,G,VPe,0,[U3,z3,L3],[0,0,1]],gLe=[3,G,HPe,0,[P3,F3,z3],[()=>f6,2,0],1],_Le=[3,G,UPe,0,[EFe,nFe,U3,hFe,z3,L3],[0,2,0,0,0,1]],vLe=[3,G,WPe,0,[gFe,F3,z3],[()=>kLe,2,0]],yLe=[3,G,qPe,0,[U3,z3,L3],[0,0,1]],bLe=[3,G,JPe,0,[X3,F3,z3],[()=>p6,2,0],1],xLe=[3,G,ZPe,0,[U3,z3,L3],[0,0,1]],SLe=[3,G,QPe,0,[PFe,F3,z3],[()=>ALe,2,0],1],s6=[3,G,K3,0,[H3,dFe,w3,G3,XNe,rNe,cFe,_Pe,j3,A3,AFe,Q3],[0,0,0,0,0,1,1,2,0,4,4,()=>m6]],CLe=[3,G,W3,0,[ZNe,t6,bPe,A3],[0,0,2,4]],wLe=[3,G,xFe,0,[N3,J3],[0,0],2],c6=[3,G,Y3,0,[G3,J3,yFe,w3,A3,k3,j3,R3,V3,Q3,q3],[0,0,0,0,4,0,0,1,()=>a6,()=>m6,()=>TLe],5],TLe=[3,G,q3,0,[XPe,_Fe],[4,0]],ELe=[3,G,DFe,0,[TPe,FFe],[0,0],2],DLe=[3,G,kFe,0,[E3,Z3,$3],[0,0,0],2],l6=[3,G,e6,0,[G3,$3,MFe,w3,A3,fFe,V3,Q3],[0,0,0,0,4,4,()=>a6,()=>m6],5],u6=`unit`,OLe=[1,G,IFe,0,()=>kIe],d6=[1,G,RFe,0,()=>jIe],f6=[1,G,zFe,0,()=>o6],kLe=[1,G,BFe,0,()=>s6],p6=[1,G,VFe,0,()=>c6],m6=[1,G,HFe,0,()=>ELe],ALe=[1,G,UFe,0,()=>l6],jLe=[9,G,lNe,0,()=>AIe,()=>u6],MLe=[9,G,sNe,0,()=>MIe,()=>u6],NLe=[9,G,dNe,0,()=>NIe,()=>u6],PLe=[9,G,pNe,0,()=>PIe,()=>FIe],FLe=[9,G,_Ne,0,()=>IIe,()=>LIe],ILe=[9,G,CNe,0,()=>RIe,()=>zIe],LLe=[9,G,wNe,0,()=>BIe,()=>VIe],RLe=[9,G,ANe,0,()=>HIe,()=>UIe],zLe=[9,G,NNe,0,()=>WIe,()=>u6],BLe=[9,G,LNe,0,()=>GIe,()=>u6],VLe=[9,G,BNe,0,()=>KIe,()=>u6],HLe=[9,G,WNe,0,()=>qIe,()=>u6],ULe=[9,G,KNe,0,()=>JIe,()=>u6],WLe=[9,G,HNe,0,()=>YIe,()=>u6],GLe=[9,G,JNe,0,()=>XIe,()=>u6],KLe=[9,G,nPe,0,()=>ZIe,()=>QIe],qLe=[9,G,aPe,0,()=>$Ie,()=>eLe],JLe=[9,G,cPe,0,()=>tLe,()=>nLe],YLe=[9,G,dPe,0,()=>rLe,()=>iLe],XLe=[9,G,mPe,0,()=>aLe,()=>oLe],ZLe=[9,G,DPe,0,()=>sLe,()=>cLe],QLe=[9,G,APe,0,()=>lLe,()=>uLe],$Le=[9,G,NPe,0,()=>dLe,()=>fLe],eRe=[9,G,LPe,0,()=>hLe,()=>gLe],tRe=[9,G,RPe,0,()=>pLe,()=>mLe],nRe=[9,G,GPe,0,()=>_Le,()=>vLe],rRe=[9,G,KPe,0,()=>yLe,()=>bLe],iRe=[9,G,YPe,0,()=>xLe,()=>SLe],aRe=[9,G,bFe,0,()=>wLe,()=>u6],oRe=[9,G,OFe,0,()=>DLe,()=>u6],sRe=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??xMe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??fMe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Re,protocol:e?.protocol??Ge,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:EIe,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Xe,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),cRe=e=>{let t=Ye(e),n=()=>t().then(pt),r=sRe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:gMe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},lRe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},uRe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dRe=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),lRe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),uRe(n))},fRe=class extends we{config;constructor(...[e]){let t=cRe(e||{});super(t),this.initConfig=t;let n=dRe(pMe(Oe(Ue(ye(at(_e(mMe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:uMe,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ge(this.config))}destroy(){super.destroy()}},h6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},pRe=h6.WHEN_SUPPORTED,mRe={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},hRe=h6.WHEN_SUPPORTED,g6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(g6||={});var gRe;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(gRe||={});var _Re=g6.CRC32,vRe=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:be(t??pRe),responseChecksumValidation:be(n??hRe),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},yRe=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},bRe={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function xRe(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var SRe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},CRe=e=>({applyToStack:t=>{t.add(xRe(e),SRe),t.addRelativeTo(yRe(e),bRe)}}),wRe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new _6(Promise.resolve(e)))})),t)):i.set(r,new _6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},ERe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new TRe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},DRe=`sigv4-s3express`,ORe=`x-amz-s3session-token`,kRe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===DRe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(nee(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,Ee.isInstance(r.request)&&i.sessionToken&&(r.request.headers[ORe]=i.sessionToken)}}}return t(r)},ARe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},jRe=e=>({applyToStack:t=>{t.add(kRe(e),ARe)}}),MRe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},NRe=e=>e=>{throw e},PRe=(e,t)=>{},FRe=e=>(t,n)=>async r=>{if(!Ee.isInstance(r.request))return t(r);let i=pe(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await MRe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||NRe)(a));return(s.successHandler||PRe)(l.response,a),l},IRe=e=>({applyToStack:t=>{t.addRelativeTo(FRe(e),Fe)}});function LRe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var RRe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},zRe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Se.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await BRe(s,e);if(a.body=LRe(c),c.length===0&&RRe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},BRe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),VRe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},v6=e=>({applyToStack:t=>{t.addRelativeTo(zRe(e),VRe)}});function HRe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var URe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function WRe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!rj(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var GRe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},KRe=e=>({applyToStack:t=>{t.add(WRe(e),GRe),t.addRelativeTo(HRe(e),URe)}}),qRe=class extends zee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function JRe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&Ee.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var YRe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},XRe=e=>({applyToStack:t=>{t.add(JRe(e),YRe)}}),q=`ref`,J=`argv`,y6=`backend`,b6=`authSchemes`,x6=`disableDoubleEncoding`,S6=`signingName`,C6=`signingRegion`,w6=`signingRegionSet`,Y=-1,X=!0,T6=!1,E6=`isSet`,D6=`booleanEquals`,Z=`stringEquals`,O6=`coalesce`,k6=`substring`,A6=``,j6=`aws.partition`,M6=`partitionResult`,N6=`accessPointSuffix`,P6=`regionPrefix`,F6=e=>`outpostId_ssa_`+e+A6,I6=`hardwareType`,L6=`ite`,R6=`isValidHostLabel`,z6=`sigv4`,B6=`aws.isVirtualHostableS3Bucket`,V6=`url`,H6=`getAttr`,U6=`bucketArn`,W6=`--`,G6=`arnType`,K6=`accesspoint`,q6=e=>`accessPointName_ssa_`+e+A6,J6=`s3-object-lambda`,Y6=`s3-outposts`,X6=`bucketPartition`,Z6=`us-east-1`,Q6=`outpostType`,$6=`name`,e8=`s3`,t8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,n8=`{url#scheme}://{url#authority}{url#path}`,r8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,i8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,a8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,o8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,s8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",c8=`sigv4a`,l8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,u8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,d8=`https://s3.{partitionResult#dnsSuffix}`,f8={[q]:`UseFIPS`},p8={[q]:`UseDualStack`},m8={[q]:`Bucket`},h8={fn:H6,[J]:[{[q]:M6},$6]},g8={[q]:V6},_8={[q]:`Region`},v8={[q]:U6},y8={[q]:G6},b8={[q]:`accessPointName_ssa_1`},x8={fn:H6,[J]:[v8,`region`]},S8={[q]:I6},C8={fn:H6,[J]:[v8,`service`]},w8={fn:H6,[J]:[v8,`accountId`]},T8={[y6]:`S3Express`,[b6]:[{[x6]:!0,[$6]:`{_s3e_auth}`,[S6]:`s3express`,[C6]:`{Region}`}]},E8={[y6]:`S3Express`,[b6]:[{[x6]:!0,[$6]:z6,[S6]:`s3express`,[C6]:`{Region}`}]},D8={[b6]:[{[x6]:!0,[$6]:c8,[S6]:Y6,[w6]:[`*`]},{[x6]:!0,[$6]:z6,[S6]:Y6,[C6]:`{Region}`}]},O8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:Z6}]},k8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:`{Region}`}]},A8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:J6,[C6]:`{bucketArn#region}`}]},j8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:e8,[C6]:`{bucketArn#region}`}]},M8={[b6]:[{[x6]:!0,[$6]:c8,[S6]:Y6,[w6]:[`*`]},{[x6]:!0,[$6]:z6,[S6]:Y6,[C6]:`{bucketArn#region}`}]},N8={[b6]:[{[x6]:!0,[$6]:z6,[S6]:J6,[C6]:`{Region}`}]},P8=[_8],F8=[{[q]:`Endpoint`}],I8=[m8],L8=[m8,0,7,!0],R8=[v8,`resourceId[1]`],ZRe=[`*`],z8={conditions:[[E6,P8],[D6,[{[q]:`Accelerate`},X]],[D6,[f8,X]],[D6,[p8,X]],[E6,F8],[E6,I8],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,0,6,X]},A6]},`--x-s3`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:L8},A6]},`--xa-s3`]],[j6,P8,M6],[k6,L8,N6],[Z,[{[q]:N6},`--op-s3`]],[k6,[m8,8,12,X],P6],[k6,[m8,32,49,X],F6(2)],[k6,[m8,49,50,X],I6],[D6,[{[q]:`ForcePathStyle`},X]],[Z,[h8,`aws-cn`]],[L6,[p8,`.dualstack`,A6],`_s3e_ds`],[R6,[{[q]:F6(2)},T6]],[L6,[f8,`-fips`,A6],`_s3e_fips`],[L6,[{fn:O6,[J]:[{[q]:`DisableS3ExpressSessionAuth`},T6]},z6,`sigv4-s3express`],`_s3e_auth`],[B6,[m8,T6]],[`parseURL`,F8,V6],[D6,[{fn:O6,[J]:[{[q]:`UseS3ExpressControlEndpoint`},T6]},X]],[B6,[m8,X]],[Z,[{fn:H6,[J]:[g8,`scheme`]},`http`]],[R6,[_8,T6]],[`aws.parseArn`,I8,U6],[H6,[{fn:`split`,[J]:[m8,W6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,0,4,T6]},A6]},`arn:`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,16,18,X]},A6]},W6]],[D6,[{fn:H6,[J]:[g8,`isIp`]},X]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,21,23,X]},A6]},W6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,27,29,X]},A6]},W6]],[Z,[{[q]:P6},`beta`]],[`uriEncode`,I8,`uri_encoded_bucket`],[R6,[_8,X]],[D6,[{fn:O6,[J]:[{[q]:`UseObjectLambdaEndpoint`},T6]},X]],[H6,[v8,`resourceId[0]`],G6],[Z,[y8,A6]],[Z,[y8,K6]],[H6,R8,q6(1)],[Z,[b8,A6]],[Z,[x8,A6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,14,16,X]},A6]},W6]],[Z,[S8,`e`]],[Z,[S8,`o`]],[Z,[_8,`aws-global`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,19,21,X]},A6]},W6]],[Z,[C8,J6]],[D6,[{fn:O6,[J]:[{[q]:`DisableAccessPoints`},T6]},X]],[Z,[C8,Y6]],[j6,[x8],X6],[R6,[b8,X]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,26,28,X]},A6]},W6]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,15,17,X]},A6]},W6]],[H6,[v8,`resourceId[4]`]],[Z,[{fn:O6,[J]:[{fn:k6,[J]:[m8,20,22,X]},A6]},W6]],[D6,[{[q]:`UseGlobalEndpoint`},X]],[Z,[_8,Z6]],[H6,R8,F6(1)],[D6,[{fn:O6,[J]:[{[q]:`UseArnRegion`},X]},X]],[R6,[{[q]:F6(1)},T6]],[H6,[v8,`resourceId[2]`],Q6],[Z,[_8,x8]],[Z,[{fn:H6,[J]:[{[q]:X6},$6]},h8]],[D6,[{[q]:`DisableMultiRegionAccessPoints`},X]],[R6,[x8,X]],[Z,[{fn:H6,[J]:[v8,`partition`]},h8]],[Z,[w8,A6]],[Z,[C8,e8]],[R6,[w8,T6]],[H6,[v8,`resourceId[3]`],q6(2)],[R6,[b8,T6]],[Z,[{[q]:Q6},K6]],[R6,[{[q]:q6(2)},T6]]],results:[[Y],[Y,`Accelerate cannot be used with FIPS`],[Y,`Cannot set dual-stack in combination with a custom endpoint.`],[Y,`A custom endpoint cannot be combined with FIPS`],[Y,`A custom endpoint cannot be combined with S3 Accelerate`],[Y,`Partition does not support FIPS`],[Y,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,T8],[t8,T8],[Y,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,E8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,T8],[Y,`Unrecognized S3Express bucket name format.`],[n8,T8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,E8],[Y,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,D8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,D8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,D8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,D8],[Y,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[Y,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[Y,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[Y,"Custom endpoint `{Endpoint}` was not a valid URI"],[Y,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[r8,O8],[t8,O8],[r8,k8],[t8,k8],[i8,O8],[i8,k8],[a8,O8],[a8,k8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,k8],[Y,`Invalid region: region was not a valid DNS name.`],[Y,`S3 Object Lambda does not support Dual-stack`],[Y,`S3 Object Lambda does not support S3 Accelerate`],[Y,`Access points are not supported for this operation`],[Y,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[Y,`Invalid ARN: Missing account id`],[o8(1),A8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,A8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,A8],[Y,s8(1)],[Y,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[Y,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[Y,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[Y,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[Y,`Invalid ARN: bucket ARN is missing a region`],[Y,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[Y,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[Y,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[o8(1),j8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,j8],[Y,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[Y,`S3 MRAP does not support dual-stack`],[Y,`S3 MRAP does not support FIPS`],[Y,`S3 MRAP does not support S3 Accelerate`],[Y,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[b6]:[{[x6]:X,name:c8,[S6]:e8,[w6]:ZRe}]}],[Y,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[Y,`Invalid Access Point Name`],[Y,`S3 Outposts does not support Dual-stack`],[Y,`S3 Outposts does not support FIPS`],[Y,`S3 Outposts does not support S3 Accelerate`],[Y,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,M8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[Y,s8(2)],[Y,"Expected an outpost type `accesspoint`, found {outpostType}"],[Y,`Invalid ARN: expected an access point name`],[Y,`Invalid ARN: Expected a 4-component resource`],[Y,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[Y,`Invalid ARN: The Outpost Id was not set`],[Y,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[Y,`Invalid ARN: No ARN type specified`],[Y,"Invalid ARN: `{Bucket}` was not a valid ARN"],[Y,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[l8,O8],[l8,k8],[u8,O8],[u8,k8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,k8],[Y,`Path-style addressing cannot be used with S3 Accelerate`],[n8,N8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,N8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,N8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,O8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,k8],[n8,O8],[n8,k8],[d8,O8],[d8,k8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,k8],[Y,`A region must be set when sending requests to S3.`]]},QRe=2,$Re=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),eze=he.from($Re,QRe,z8.conditions,z8.results),tze=new Me({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),B8=(e,t={})=>tze.get(e,()=>gt(eze,{endpointParams:e,logger:t.logger}));oe.aws=fe;var nze=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=pe(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await tee(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:pe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function V8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function H8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var rze=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(je.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(B8,e=>{let t=[];switch(e.operation){default:t.push(V8(e)),t.push(H8(e))}return t},{"aws.auth#sigv4":V8,"aws.auth#sigv4a":H8}),ize=e=>{let t=Ce(ue(e));return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},aze=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),U8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},W8=class e extends Be{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},oze=class e extends W8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sze=class e extends W8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cze=class e extends W8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lze=class e extends W8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uze=class e extends W8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dze=class e extends W8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fze=class e extends W8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pze=class e extends W8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},mze=class e extends W8{name=`NoSuchAnnotation`;$fault=`client`;constructor(t){super({name:`NoSuchAnnotation`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hze=class e extends W8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gze=class e extends W8{name=`InvalidPrefix`;$fault=`client`;constructor(t){super({name:`InvalidPrefix`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_ze=class e extends W8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vze=class e extends W8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yze=class e extends W8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bze=class e extends W8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xze=class e extends W8{name=`AnnotationLimitExceeded`;$fault=`client`;constructor(t){super({name:`AnnotationLimitExceeded`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sze=class e extends W8{name=`AnnotationNameTooLong`;$fault=`client`;constructor(t){super({name:`AnnotationNameTooLong`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cze=class e extends W8{name=`InvalidAnnotationName`;$fault=`client`;constructor(t){super({name:`InvalidAnnotationName`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wze=class e extends W8{name=`UnsupportedMediaType`;$fault=`client`;constructor(t){super({name:`UnsupportedMediaType`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tze=class e extends W8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Eze=class e extends W8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},G8=`ACL`,Dze=`AccessDenied`,Oze=`AbortDate`,K8=`AccessKeyId`,kze=`AnnotationLimitExceeded`,Aze=`AbortMultipartUpload`,jze=`AbortMultipartUploadOutput`,Mze=`AbortMultipartUploadRequest`,Nze=`AnnotationNameTooLong`,Pze=`AcceptRanges`,Fze=`AbortRuleId`,Ize=`AccessTier`,q8=`Bucket`,J8=`BucketArn`,Lze=`BucketAlreadyExists`,Rze=`BucketAlreadyOwnedByYou`,zze=`BypassGovernanceRetention`,Bze=`BucketInfo`,Y8=`BucketKeyEnabled`,Vze=`BucketNamespace`,X8=`BucketRegion`,Z8=`Body`,Q8=`Buckets`,$8=`ChecksumAlgorithm`,Hze=`CreateBucket`,e5=`CreateBucketConfiguration`,Uze=`CreateBucketOutput`,Wze=`CreateBucketRequest`,t5=`CacheControl`,n5=`ChecksumCRC32`,r5=`ChecksumCRC32C`,i5=`ChecksumCRC64NVME`,a5=`Cache-Control`,Gze=`CreationDate`,o5=`Content-Disposition`,s5=`ContentDisposition`,c5=`Content-Encoding`,l5=`ContentEncoding`,u5=`ContentLanguage`,d5=`Content-Language`,f5=`Content-Length`,p5=`ContentLength`,m5=`Content-MD5`,h5=`ChecksumMD5`,g5=`ContentMD5`,Kze=`CompletedMultipartUpload`,qze=`CompleteMultipartUploadOutput`,Jze=`CreateMultipartUploadOutput`,Yze=`CompleteMultipartUploadResult`,Xze=`CompleteMultipartUploadRequest`,Zze=`CreateMultipartUploadRequest`,_5=`CompleteMultipartUpload`,Qze=`CreateMultipartUpload`,$ze=`ChecksumMode`,eBe=`CommonPrefix`,tBe=`CommonPrefixList`,nBe=`CompletedPartList`,rBe=`CompletedPart`,iBe=`CommonPrefixes`,aBe=`ContentRange`,oBe=`Content-Range`,v5=`ChecksumSHA1`,y5=`ChecksumSHA256`,b5=`ChecksumSHA512`,sBe=`CreateSessionOutput`,cBe=`CreateSessionResult`,lBe=`CreateSessionRequest`,uBe=`CreateSession`,x5=`ChecksumType`,S5=`Content-Type`,C5=`ContentType`,w5=`ContinuationToken`,T5=`ChecksumXXHASH64`,E5=`ChecksumXXHASH3`,D5=`ChecksumXXHASH128`,dBe=`Contents`,O5=`Credentials`,k5=`DeleteMarker`,fBe=`DisplayName`,pBe=`DeleteObjectOutput`,mBe=`DeleteObjectRequest`,hBe=`DeleteObject`,gBe=`DataRedundancy`,A5=`Delimiter`,j5=`ExpectedBucketOwner`,M5=`ExpiresString`,N5=`ETag`,_Be=`EncryptionTypeMismatch`,P5=`EncodingType`,F5=`Expiration`,I5=`Expires`,vBe=`FetchOwner`,L5=`GrantFullControl`,yBe=`GetObject`,bBe=`GetObjectOutput`,xBe=`GetObjectRequest`,R5=`GrantRead`,z5=`GrantReadACP`,SBe=`GrantWrite`,B5=`GrantWriteACP`,CBe=`InvalidAnnotationName`,wBe=`ID`,V5=`IfMatch`,TBe=`IfMatchInitiatedTime`,EBe=`IfMatchLastModifiedTime`,DBe=`IfMatchSize`,OBe=`If-Modified-Since`,kBe=`IfModifiedSince`,ABe=`InitiateMultipartUploadResult`,H5=`If-Match`,U5=`IfNoneMatch`,W5=`If-None-Match`,jBe=`InvalidObjectState`,MBe=`InvalidPrefix`,NBe=`IdempotencyParameterMismatch`,PBe=`InvalidRequest`,FBe=`IsRestoreInProgress`,IBe=`IsTruncated`,LBe=`IfUnmodifiedSince`,RBe=`If-Unmodified-Since`,zBe=`InvalidWriteOffset`,G5=`Key`,BBe=`KeyCount`,K5=`Location`,VBe=`ListAllMyBucketsResult`,HBe=`ListBuckets`,UBe=`ListBucketsOutput`,WBe=`ListBucketsRequest`,GBe=`ListBucketResult`,KBe=`LocationConstraint`,qBe=`LocationInfo`,q5=`LastModified`,JBe=`Last-Modified`,YBe=`ListObjectsV2`,XBe=`ListObjectsV2Output`,ZBe=`ListObjectsV2Request`,J5=`Metadata`,QBe=`MaxBuckets`,$Be=`MFA`,Y5=`MaxKeys`,eVe=`MissingMeta`,tVe=`MpuObjectSize`,nVe=`MultipartUpload`,X5=`Name`,rVe=`NextContinuationToken`,iVe=`NotFound`,aVe=`NoSuchAnnotation`,oVe=`NoSuchBucket`,sVe=`NoSuchKey`,cVe=`NoSuchUpload`,Z5=`Owner`,lVe=`ObjectAlreadyInActiveTierError`,uVe=`ObjectLockEnabledForBucket`,Q5=`ObjectLockLegalHoldStatus`,$5=`ObjectLockMode`,e7=`ObjectLockRetainUntilDate`,dVe=`ObjectList`,fVe=`ObjectNotInActiveTierError`,pVe=`ObjectOwnership`,mVe=`OptionalObjectAttributes`,hVe=`Object`,t7=`Prefix`,gVe=`PartsCount`,n7=`PartNumber`,_Ve=`PutObject`,vVe=`PutObjectOutput`,yVe=`PutObjectRequest`,bVe=`PutObjectTagging`,xVe=`PutObjectTaggingOutput`,SVe=`PutObjectTaggingRequest`,CVe=`Parts`,wVe=`Part`,r7=`RequestCharged`,TVe=`ResponseCacheControl`,EVe=`ResponseContentDisposition`,DVe=`ResponseContentEncoding`,OVe=`ResponseContentLanguage`,kVe=`ResponseContentType`,AVe=`ResponseExpires`,jVe=`RestoreExpiryDate`,i7=`RequestPayer`,MVe=`ReplicationStatus`,a7=`RestoreStatus`,o7=`Range`,NVe=`Restore`,s7=`StartAfter`,c7=`SecretAccessKey`,PVe=`StreamingBlob`,l7=`StorageClass`,FVe=`SessionCredentialValue`,IVe=`SessionCredentials`,LVe=`SessionMode`,u7=`ServerSideEncryption`,d7=`SSECustomerAlgorithm`,f7=`SSECustomerKey`,p7=`SSECustomerKeyMD5`,m7=`SSEKMSEncryptionContext`,h7=`SSEKMSKeyId`,g7=`SessionToken`,_7=`Size`,RVe=`Tags`,zVe=`TagCount`,BVe=`TooManyParts`,v7=`TagSet`,y7=`Tag`,b7=`Tagging`,x7=`Type`,S7=`UploadId`,VVe=`UnsupportedMediaType`,HVe=`UploadPart`,UVe=`UploadPartOutput`,WVe=`UploadPartRequest`,GVe=`Value`,C7=`VersionId`,KVe=`WriteOffsetBytes`,w7=`WebsiteRedirectLocation`,qVe=`accept-ranges`,JVe=`bucket-region`,T7=`client`,E7=`continuation-token`,YVe=`delimiter`,D7=`error`,XVe=`encoding-type`,ZVe=`fetch-owner`,O7=`http`,k7=`httpChecksum`,A7=`httpError`,Q=`httpHeader`,j7=`httpPayload`,M7=`httpPrefixHeaders`,N7=`httpQuery`,QVe=`max-buckets`,$Ve=`max-keys`,P7=`prefix`,F7=`partNumber`,eHe=`response-cache-control`,tHe=`response-content-disposition`,nHe=`response-content-encoding`,rHe=`response-content-language`,iHe=`response-content-type`,aHe=`response-expires`,I7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,oHe=`start-after`,sHe=`streaming`,L7=`uploadId`,R7=`versionId`,z7=`xmlFlattened`,B7=`xmlName`,V7=`x-amz-acl`,cHe=`x-amz-abort-date`,lHe=`x-amz-abort-rule-id`,uHe=`x-amz-bucket-arn`,dHe=`x-amz-bypass-governance-retention`,fHe=`x-amz-bucket-namespace`,pHe=`x-amz-bucket-object-lock-enabled`,H7=`x-amz-checksum-algorithm`,U7=`x-amz-checksum-crc32`,W7=`x-amz-checksum-crc32c`,G7=`x-amz-checksum-crc64nvme`,K7=`x-amz-checksum-md5`,mHe=`x-amz-checksum-mode`,q7=`x-amz-checksum-sha1`,J7=`x-amz-checksum-sha256`,Y7=`x-amz-checksum-sha512`,hHe=`x-amz-create-session-mode`,X7=`x-amz-checksum-type`,Z7=`x-amz-checksum-xxhash64`,Q7=`x-amz-checksum-xxhash3`,$7=`x-amz-checksum-xxhash128`,e9=`x-amz-delete-marker`,t9=`x-amz-expiration`,n9=`x-amz-expected-bucket-owner`,r9=`x-amz-grant-full-control`,i9=`x-amz-grant-read`,a9=`x-amz-grant-read-acp`,gHe=`x-amz-grant-write`,o9=`x-amz-grant-write-acp`,_He=`x-amz-if-match-initiated-time`,vHe=`x-amz-if-match-last-modified-time`,yHe=`x-amz-if-match-size`,s9=`x-amz-meta-`,bHe=`x-amz-mfa`,xHe=`x-amz-missing-meta`,SHe=`x-amz-mp-object-size`,CHe=`x-amz-mp-parts-count`,c9=`x-amz-object-lock-legal-hold`,l9=`x-amz-object-lock-mode`,u9=`x-amz-object-lock-retain-until-date`,wHe=`x-amz-object-ownership`,THe=`x-amz-optional-object-attributes`,EHe=`x-amz-object-size`,DHe=`x-amz-restore`,d9=`x-amz-request-charged`,f9=`x-amz-request-payer`,OHe=`x-amz-replication-status`,p9=`x-amz-storage-class`,m9=`x-amz-sdk-checksum-algorithm`,h9=`x-amz-server-side-encryption`,g9=`x-amz-server-side-encryption-aws-kms-key-id`,_9=`x-amz-server-side-encryption-bucket-key-enabled`,v9=`x-amz-server-side-encryption-context`,y9=`x-amz-server-side-encryption-customer-algorithm`,b9=`x-amz-server-side-encryption-customer-key`,x9=`x-amz-server-side-encryption-customer-key-MD5`,S9=`x-amz-tagging`,kHe=`x-amz-tagging-count`,C9=`x-amz-version-id`,AHe=`x-amz-write-offset-bytes`,w9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,T9=ce.for(I7),jHe=[-3,I7,`S3ServiceException`,0,[],[]];T9.registerError(jHe,W8);var E9=ce.for($),MHe=[-3,$,Dze,{[D7]:T7,[A7]:403},[],[]];E9.registerError(MHe,sze);var NHe=[-3,$,kze,{[D7]:T7,[A7]:400},[],[]];E9.registerError(NHe,xze);var PHe=[-3,$,Nze,{[D7]:T7,[A7]:400},[],[]];E9.registerError(PHe,Sze);var FHe=[-3,$,Lze,{[D7]:T7,[A7]:409},[],[]];E9.registerError(FHe,lze);var IHe=[-3,$,Rze,{[D7]:T7,[A7]:409},[],[]];E9.registerError(IHe,uze);var LHe=[-3,$,_Be,{[D7]:T7,[A7]:400},[],[]];E9.registerError(LHe,_ze);var RHe=[-3,$,NBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(RHe,Tze);var zHe=[-3,$,CBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(zHe,Cze);var BHe=[-3,$,jBe,{[D7]:T7,[A7]:403},[l7,Ize],[0,0]];E9.registerError(BHe,pze);var VHe=[-3,$,MBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(VHe,gze);var HHe=[-3,$,PBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(HHe,vze);var UHe=[-3,$,zBe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(UHe,yze);var WHe=[-3,$,aVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(WHe,mze);var GHe=[-3,$,oVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(GHe,dze);var KHe=[-3,$,sVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(KHe,fze);var qHe=[-3,$,cVe,{[D7]:T7,[A7]:404},[],[]];E9.registerError(qHe,oze);var JHe=[-3,$,iVe,{[D7]:T7},[],[]];E9.registerError(JHe,hze);var YHe=[-3,$,lVe,{[D7]:T7,[A7]:403},[],[]];E9.registerError(YHe,Eze);var XHe=[-3,$,fVe,{[D7]:T7,[A7]:403},[],[]];E9.registerError(XHe,cze);var ZHe=[-3,$,BVe,{[D7]:T7,[A7]:400},[],[]];E9.registerError(ZHe,bze);var QHe=[-3,$,VVe,{[D7]:T7,[A7]:415},[],[]];E9.registerError(QHe,wze);var $He=[T9,E9],D9=[0,$,FVe,8,0],O9=[0,$,f7,8,0],k9=[0,$,m7,8,0],A9=[0,$,h7,8,0],j9=[0,$,PVe,{[sHe]:1},42],eUe=[3,$,jze,0,[r7],[[0,{[Q]:d9}]]],tUe=[3,$,Mze,0,[q8,G5,S7,i7,j5,TBe],[[0,1],[0,1],[0,{[N7]:L7}],[0,{[Q]:f9}],[0,{[Q]:n9}],[6,{[Q]:_He}]],3],nUe=[3,$,q8,0,[X5,Gze,X8,J8],[0,4,0,0]],rUe=[3,$,Bze,0,[gBe,x7],[0,0]],iUe=[3,$,eBe,0,[t7],[0]],aUe=[3,$,Kze,0,[CVe],[[()=>RUe,{[z7]:1,[B7]:wVe}]]],oUe=[3,$,rBe,0,[N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,n7],[0,0,0,0,0,0,0,0,0,0,0,1]],sUe=[3,$,qze,{[B7]:Yze},[K5,q8,G5,F5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,u7,C7,h7,Y8,r7],[0,0,0,[0,{[Q]:t9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Q]:h9}],[0,{[Q]:C9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:d9}]]],cUe=[3,$,Xze,0,[q8,G5,S7,nVe,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,tVe,i7,j5,V5,U5,d7,f7,p7],[[0,1],[0,1],[0,{[N7]:L7}],[()=>aUe,{[j7]:1,[B7]:_5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[1,{[Q]:SHe}],[0,{[Q]:f9}],[0,{[Q]:n9}],[0,{[Q]:H5}],[0,{[Q]:W5}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}]],3],lUe=[3,$,e5,0,[KBe,K5,q8,RVe],[0,()=>wUe,()=>rUe,[()=>N9,0]]],uUe=[3,$,Uze,0,[K5,J8],[[0,{[Q]:K5}],[0,{[Q]:uHe}]]],dUe=[3,$,Wze,0,[q8,G8,e5,L5,R5,z5,SBe,B5,uVe,pVe,Vze],[[0,1],[0,{[Q]:V7}],[()=>lUe,{[j7]:1,[B7]:e5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:gHe}],[0,{[Q]:o9}],[2,{[Q]:pHe}],[0,{[Q]:wHe}],[0,{[Q]:fHe}]],1],fUe=[3,$,Jze,{[B7]:ABe},[Oze,Fze,q8,G5,S7,u7,d7,p7,h7,m7,Y8,r7,$8,x5],[[4,{[Q]:cHe}],[0,{[Q]:lHe}],[0,{[B7]:q8}],0,0,[0,{[Q]:h9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:d9}],[0,{[Q]:H7}],[0,{[Q]:X7}]]],pUe=[3,$,Zze,0,[q8,G5,G8,t5,s5,l5,u5,C5,I5,L5,R5,z5,B5,J5,u7,l7,w7,d7,f7,p7,h7,m7,Y8,i7,b7,$5,e7,Q5,j5,$8,x5],[[0,1],[0,1],[0,{[Q]:V7}],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[0,{[Q]:S5}],[4,{[Q]:I5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[128,{[M7]:s9}],[0,{[Q]:h9}],[0,{[Q]:p9}],[0,{[Q]:w9}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:f9}],[0,{[Q]:S9}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}],[0,{[Q]:n9}],[0,{[Q]:H7}],[0,{[Q]:X7}]],2],mUe=[3,$,sBe,{[B7]:cBe},[O5,u7,h7,m7,Y8],[[()=>jUe,{[B7]:O5}],[0,{[Q]:h9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}]],1],hUe=[3,$,lBe,0,[q8,LVe,u7,h7,m7,Y8],[[0,1],[0,{[Q]:hHe}],[0,{[Q]:h9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}]],1],gUe=[3,$,pBe,0,[k5,C7,r7],[[2,{[Q]:e9}],[0,{[Q]:C9}],[0,{[Q]:d9}]]],_Ue=[3,$,mBe,0,[q8,G5,$Be,C7,i7,zze,j5,V5,EBe,DBe],[[0,1],[0,1],[0,{[Q]:bHe}],[0,{[N7]:R7}],[0,{[Q]:f9}],[2,{[Q]:dHe}],[0,{[Q]:n9}],[0,{[Q]:H5}],[6,{[Q]:vHe}],[1,{[Q]:yHe}]],2],vUe=[3,$,bBe,0,[Z8,k5,Pze,F5,NVe,q5,p5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,eVe,C7,t5,s5,l5,u5,aBe,C5,I5,M5,w7,u7,J5,d7,p7,h7,Y8,l7,r7,MVe,gVe,zVe,$5,e7,Q5],[[()=>j9,16],[2,{[Q]:e9}],[0,{[Q]:qVe}],[0,{[Q]:t9}],[0,{[Q]:DHe}],[4,{[Q]:JBe}],[1,{[Q]:f5}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[1,{[Q]:xHe}],[0,{[Q]:C9}],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[0,{[Q]:oBe}],[0,{[Q]:S5}],[4,{[Q]:I5}],[0,{[Q]:M5}],[0,{[Q]:w9}],[0,{[Q]:h9}],[128,{[M7]:s9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:p9}],[0,{[Q]:d9}],[0,{[Q]:OHe}],[1,{[Q]:CHe}],[1,{[Q]:kHe}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}]]],yUe=[3,$,xBe,0,[q8,G5,V5,kBe,U5,LBe,o7,TVe,EVe,DVe,OVe,kVe,AVe,C7,d7,f7,p7,i7,n7,j5,$ze],[[0,1],[0,1],[0,{[Q]:H5}],[4,{[Q]:OBe}],[0,{[Q]:W5}],[4,{[Q]:RBe}],[0,{[Q]:o7}],[0,{[N7]:eHe}],[0,{[N7]:tHe}],[0,{[N7]:nHe}],[0,{[N7]:rHe}],[0,{[N7]:iHe}],[6,{[N7]:aHe}],[0,{[N7]:R7}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[0,{[Q]:f9}],[1,{[N7]:F7}],[0,{[Q]:n9}],[0,{[Q]:mHe}]],2],bUe=[3,$,UBe,{[B7]:VBe},[Q8,Z5,w5,t7],[[()=>IUe,0],()=>M9,0,0]],xUe=[3,$,WBe,0,[QBe,w5,t7,X8],[[1,{[N7]:QVe}],[0,{[N7]:E7}],[0,{[N7]:P7}],[0,{[N7]:JVe}]]],SUe=[3,$,XBe,{[B7]:GBe},[IBe,dBe,X5,t7,A5,Y5,iBe,P5,BBe,w5,rVe,s7,r7],[2,[()=>zUe,{[z7]:1}],0,0,0,1,[()=>LUe,{[z7]:1}],0,1,0,0,0,[0,{[Q]:d9}]]],CUe=[3,$,ZBe,0,[q8,A5,P5,Y5,t7,w5,vBe,s7,i7,j5,mVe],[[0,1],[0,{[N7]:YVe}],[0,{[N7]:XVe}],[1,{[N7]:$Ve}],[0,{[N7]:P7}],[0,{[N7]:E7}],[2,{[N7]:ZVe}],[0,{[N7]:oHe}],[0,{[Q]:f9}],[0,{[Q]:n9}],[64,{[Q]:THe}]],1],wUe=[3,$,qBe,0,[x7,X5],[0,0]],TUe=[3,$,hVe,0,[G5,q5,N5,$8,x5,_7,l7,Z5,a7],[0,4,0,[64,{[z7]:1}],0,1,0,()=>M9,()=>AUe]],M9=[3,$,Z5,0,[fBe,wBe],[0,0]],EUe=[3,$,vVe,0,[F5,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,x5,u7,C7,d7,p7,h7,m7,Y8,_7,r7],[[0,{[Q]:t9}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:X7}],[0,{[Q]:h9}],[0,{[Q]:C9}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[1,{[Q]:EHe}],[0,{[Q]:d9}]]],DUe=[3,$,yVe,0,[q8,G5,G8,Z8,t5,s5,l5,u5,p5,g5,C5,$8,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,I5,V5,U5,L5,R5,z5,B5,KVe,J5,u7,l7,w7,d7,f7,p7,h7,m7,Y8,i7,b7,$5,e7,Q5,j5],[[0,1],[0,1],[0,{[Q]:V7}],[()=>j9,16],[0,{[Q]:a5}],[0,{[Q]:o5}],[0,{[Q]:c5}],[0,{[Q]:d5}],[1,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:S5}],[0,{[Q]:m9}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[4,{[Q]:I5}],[0,{[Q]:H5}],[0,{[Q]:W5}],[0,{[Q]:r9}],[0,{[Q]:i9}],[0,{[Q]:a9}],[0,{[Q]:o9}],[1,{[Q]:AHe}],[128,{[M7]:s9}],[0,{[Q]:h9}],[0,{[Q]:p9}],[0,{[Q]:w9}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[()=>k9,{[Q]:v9}],[2,{[Q]:_9}],[0,{[Q]:f9}],[0,{[Q]:S9}],[0,{[Q]:l9}],[5,{[Q]:u9}],[0,{[Q]:c9}],[0,{[Q]:n9}]],2],OUe=[3,$,xVe,0,[C7],[[0,{[Q]:C9}]]],kUe=[3,$,SVe,0,[q8,G5,b7,C7,g5,$8,j5,i7],[[0,1],[0,1],[()=>NUe,{[j7]:1,[B7]:b7}],[0,{[N7]:R7}],[0,{[Q]:m5}],[0,{[Q]:m9}],[0,{[Q]:n9}],[0,{[Q]:f9}]],3],AUe=[3,$,a7,0,[FBe,jVe],[2,4]],jUe=[3,$,IVe,0,[K8,c7,g7,F5],[[0,{[B7]:K8}],[()=>D9,{[B7]:c7}],[()=>D9,{[B7]:g7}],[4,{[B7]:F5}]],4],MUe=[3,$,y7,0,[G5,GVe],[0,0],2],NUe=[3,$,b7,0,[v7],[[()=>N9,0]],1],PUe=[3,$,UVe,0,[u7,N5,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,d7,p7,h7,Y8,r7],[[0,{[Q]:h9}],[0,{[Q]:N5}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:y9}],[0,{[Q]:x9}],[()=>A9,{[Q]:g9}],[2,{[Q]:_9}],[0,{[Q]:d9}]]],FUe=[3,$,WVe,0,[q8,G5,n7,S7,Z8,p5,g5,$8,n5,r5,i5,v5,y5,b5,h5,T5,E5,D5,d7,f7,p7,i7,j5],[[0,1],[0,1],[1,{[N7]:F7}],[0,{[N7]:L7}],[()=>j9,16],[1,{[Q]:f5}],[0,{[Q]:m5}],[0,{[Q]:m9}],[0,{[Q]:U7}],[0,{[Q]:W7}],[0,{[Q]:G7}],[0,{[Q]:q7}],[0,{[Q]:J7}],[0,{[Q]:Y7}],[0,{[Q]:K7}],[0,{[Q]:Z7}],[0,{[Q]:Q7}],[0,{[Q]:$7}],[0,{[Q]:y9}],[()=>O9,{[Q]:b9}],[0,{[Q]:x9}],[0,{[Q]:f9}],[0,{[Q]:n9}]],4],IUe=[1,$,Q8,0,[()=>nUe,{[B7]:q8}]],LUe=[1,$,tBe,0,()=>iUe],RUe=[1,$,nBe,0,()=>oUe],zUe=[1,$,dVe,0,[()=>TUe,0]],N9=[1,$,v7,0,[()=>MUe,{[B7]:y7}]],BUe=[9,$,Aze,{[O7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>tUe,()=>eUe],VUe=[9,$,_5,{[O7]:[`POST`,`/{Key+}`,200]},()=>cUe,()=>sUe],HUe=[9,$,Hze,{[O7]:[`PUT`,`/`,200]},()=>dUe,()=>uUe],UUe=[9,$,Qze,{[O7]:[`POST`,`/{Key+}?uploads`,200]},()=>pUe,()=>fUe],WUe=[9,$,uBe,{[O7]:[`GET`,`/?session`,200]},()=>hUe,()=>mUe],GUe=[9,$,hBe,{[O7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>_Ue,()=>gUe],KUe=[9,$,yBe,{[k7]:`-`,[O7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>yUe,()=>vUe],qUe=[9,$,HBe,{[O7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>xUe,()=>bUe],JUe=[9,$,YBe,{[O7]:[`GET`,`/?list-type=2`,200]},()=>CUe,()=>SUe],YUe=[9,$,_Ve,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>DUe,()=>EUe],XUe=[9,$,bVe,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?tagging`,200]},()=>kUe,()=>OUe],ZUe=[9,$,HVe,{[k7]:`-`,[O7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>FUe,()=>PUe],QUe=class extends Ae.classBuilder().ep({...U8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[ve(n,e.getEndpointParameterInstructions()),v6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(WUe).build(){},$Ue={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:browser":`yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`yarn g:vitest watch -c vitest.config.browser.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/middleware-flexible-checksums":`^3.974.33`,"@aws-sdk/middleware-sdk-s3":`^3.972.54`,"@aws-sdk/signature-v4-multi-region":`^3.996.35`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1075.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function P9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var F9={name:`SHA-1`},I9={name:`HMAC`,hash:F9},eWe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),tWe={};function L9(){return typeof window<`u`?window:typeof self<`u`?self:tWe}var nWe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){L9().crypto.subtle.importKey(`raw`,R9(e),I9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!P9(e)){var t=R9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return L9().crypto.subtle.sign(I9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):P9(this.toHash)?Promise.resolve(eWe):Promise.resolve().then(function(){return L9().crypto.subtle.digest(F9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function R9(e){return typeof e==`string`?Ct(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var rWe=function(){function e(e){if(ut(L9()))this.hash=new nWe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(lee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function iWe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},oWe=[1732584193,4023233417,2562383102,271733878],sWe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(cWe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=lWe(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=B9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=B9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=B9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=B9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=B9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=B9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=B9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=B9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=B9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=B9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=B9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=B9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=B9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=B9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=B9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=B9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=V9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=V9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=V9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=V9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=V9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=V9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=V9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=V9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=V9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=V9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=V9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=V9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=V9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=V9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=V9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=V9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=H9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=H9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=H9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=H9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=H9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=H9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=H9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=H9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=H9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=H9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=H9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=H9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=H9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=H9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=H9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=H9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=U9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=U9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=U9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=U9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=U9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=U9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=U9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=U9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=U9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=U9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=U9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=U9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=U9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=U9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=U9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=U9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(oWe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function z9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function B9(e,t,n,r,i,a,o){return z9(t&n|~t&r,e,t,i,a,o)}function V9(e,t,n,r,i,a,o){return z9(t&r|n&~r,e,t,i,a,o)}function H9(e,t,n,r,i,a,o){return z9(t^n^r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return z9(n^(t|~r),e,t,i,a,o)}function cWe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function lWe(e){return typeof e==`string`?_t(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var uWe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??vt,base64Encoder:e?.base64Encoder??xt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??B8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??cee,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??rze,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Ze}],logger:e?.logger??new Re,protocol:e?.protocol??qRe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:$He,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??wt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??je,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Xe,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??_t,utf8Encoder:e?.utf8Encoder??yt}),dWe=e=>{let t=Ye(e),n=()=>t().then(pt),r=uWe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ne({serviceId:r.serviceId,clientVersion:$Ue.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??dee,maxAttempts:e?.maxAttempts??3,md5:e?.md5??sWe,region:e?.region??Qe(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Je),sha1:e?.sha1??rWe,sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,streamHasher:e?.streamHasher??aWe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},fWe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},pWe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),mWe=(e,t)=>{let n=Object.assign(xe(e),lt(e),ot(e),fWe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Te(n),ht(n),Ve(n),pWe(n))},hWe=class extends we{config;constructor(...[e]){let t=dWe(e||{});super(t),this.initConfig=t;let n=mWe(ERe(ize(uee(Oe(Ue(ye(at(vRe(_e(aze(t))))))))),{session:[()=>this,QUe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config,{httpAuthSchemeParametersProvider:nze,identityProviderConfigProvider:async e=>new rt({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(KRe(this.config)),this.middlewareStack.use(XRe(this.config)),this.middlewareStack.use(CRe(this.config)),this.middlewareStack.use(jRe(this.config)),this.middlewareStack.use(IRe(this.config))}destroy(){super.destroy()}},W9=`ap-southeast-2`,G9=`${window.location.protocol}//localhost:9999`,gWe=`${window.location.protocol}//localhost:8443`,K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function _We(){if(!K9){let e=it();if(!e)throw Error(`AWS credentials not configured`);K9=new nj({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),K9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return K9}function vWe(){if(!q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);q9=new jSe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function yWe(){if(!J9){let e=it();if(!e)throw Error(`AWS credentials not configured`);J9=new lMe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function bWe(){if(!Y9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Y9=new Nte({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function xWe(){if(!X9){let e=it();if(!e)throw Error(`AWS credentials not configured`);X9=new fRe({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function SWe(){if(!Q9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Q9=new YL({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function CWe(){if(!$9){let e=it();if(!e)throw Error(`AWS credentials not configured`);$9=new Eme({endpoint:G9,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function wWe(){if(!Z9){let e=it();if(!e)throw Error(`AWS credentials not configured`);Z9=new hWe({endpoint:gWe,region:W9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Z9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Z9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function TWe(){K9=null,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{rRe as $,Qk as $n,Ete as $r,CSe as $t,PLe as A,RL as An,kA as Ar,rMe as At,WLe as B,zk as Bn,zA as Br,uSe as Bt,g6 as C,jL as Cn,SA as Cr,Xje as Ct,jLe as D,FL as Dn,EA as Dr,eMe as Dt,mRe as E,PL as En,TA as Er,$je as Et,zLe as F,UL as Fn,PA as Fr,aSe as Ft,YLe as G,Wk as Gn,WA as Gr,hSe as Gt,KLe as H,Vk as Hn,VA as Hr,fSe as Ht,BLe as I,Zj as In,FA as Ir,oSe as It,QLe as J,qk as Jn,qA as Jr,vSe as Jt,XLe as K,Gk as Kn,GA as Kr,gSe as Kt,VLe as L,nM as Ln,IA as Lr,sSe as Lt,ILe as M,BL as Mn,jA as Mr,nSe as Mt,LLe as N,VL as Nn,MA as Nr,rSe as Nt,MLe as O,IL as On,DA as Or,tMe as Ot,RLe as P,HL as Pn,NA as Pr,iSe as Pt,nRe as Q,Zk as Qn,zte as Qr,SSe as Qt,HLe as R,lj as Rn,LA as Rr,cSe as Rt,v6 as S,tR as Sn,bA as Sr,Yje as St,h6 as T,NL as Tn,wA as Tr,Qje as Tt,qLe as U,Hk as Un,HA as Ur,pSe as Ut,GLe as V,Bk as Vn,BA as Vr,dSe as Vt,JLe as W,Uk as Wn,UA as Wr,mSe as Wt,eRe as X,Yk as Xn,YA as Xr,bSe as Xt,$Le as Y,Jk as Yn,JA as Yr,ySe as Yt,tRe as Z,Xk as Zn,XA as Zr,xSe as Zt,JUe as _,gme as _n,gA as _r,Wje as _t,CWe as a,ime as an,iA as ar,Mje as at,ZUe as b,yme as bn,yA as br,qje as bt,xWe as c,sme as cn,sA as cr,Fje as ct,VUe as d,ume as dn,uA as dr,Rje as dt,Dte as ei,wSe as en,$k as er,iRe as et,HUe as f,dme as fn,dA as fr,zje as ft,qUe as g,hme as gn,hA as gr,Uje as gt,KUe as h,mme as hn,mA as hr,Hje as ht,SWe as i,XQ as in,rA as ir,jje as it,FLe as j,zL as jn,AA as jr,LSe as jt,NLe as k,LL as kn,OA as kr,nMe as kt,wWe as l,cme as ln,cA as lr,Ije as lt,GUe as m,pme as mn,pA as mr,Vje as mt,bWe as n,Lt as ni,Mme as nn,tA as nr,oRe as nt,vWe as o,ame as on,aA as or,Nje as ot,UUe as p,fme as pn,fA as pr,Bje as pt,ZLe as q,Kk as qn,KA as qr,_Se as qt,_We as r,kt as ri,rme as rn,nA as rr,hMe as rt,yWe as s,ome as sn,oA as sr,Pje as st,TWe as t,Gee as ti,TSe as tn,eA as tr,aRe as tt,BUe as u,lme as un,lA as ur,Lje as ut,YUe as v,_me as vn,_A as vr,Gje as vt,_Re as w,ML as wn,CA as wr,Zje as wt,U8 as x,bme as xn,xA as xr,Jje as xt,XUe as y,vme as yn,vA as yr,Kje as yt,ULe as z,Rk as zn,RA as zr,lSe as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js index b40ac94d4..ef2fae294 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{ni as n}from"./awsClient.js";import{Yr as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{ni as n}from"./awsClient.js";import{Br as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/badge.js b/spinifex/services/spinifexui/frontend/dist/assets/badge.js index bc4ab9f22..3e2a64f08 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/badge.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/badge.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Lt as r}from"./auth.js";import{Xr as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{f as t,t as n}from"./dist.js";import{Lt as r}from"./auth.js";import{Vr as i}from"./index.js";var a=e(),o=n(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium whitespace-nowrap transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s(e){let n=(0,a.c)(13),s,c,l,u,d;if(n[0]!==e){let{className:a,variant:f,render:p,...m}=e;s=p,d=f===void 0?`default`:f,u=i,c=`span`,l=t({className:r(o({className:a,variant:d}))},m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u,n[5]=d}else s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];let f;n[6]===d?f=n[7]:(f={slot:`badge`,variant:d},n[6]=d,n[7]=f);let p;return n[8]!==s||n[9]!==c||n[10]!==l||n[11]!==f?(p={defaultTagName:c,props:l,render:s,state:f},n[8]=s,n[9]=c,n[10]=l,n[11]=f,n[12]=p):p=n[12],u(p)}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js index bd0fd3a59..59feedd38 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{$r as a,n as o,ti as s}from"./awsClient.js";import{St as c,ut as l}from"./auth.js";import{$r as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends c.classBuilder().ep(s).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(a).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=u(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await o().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{$r as a,n as o,ti as s}from"./awsClient.js";import{L as c,St as l}from"./auth.js";import{Ur as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends l.classBuilder().ep(s).m(function(e,t,n,r){return[c(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(a).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=u(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await o().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/check.js b/spinifex/services/spinifexui/frontend/dist/assets/check.js index 350032fb7..217a4fc88 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/check.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/check.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js index 2113ea584..06404a041 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-down.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js index 02a177639..2405d6ef4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/chevron-right.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js index 01d239fb5..8debb333d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/cli-command-panel.js @@ -1,3 +1,3 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Lt as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{Yr as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Lt as i}from"./auth.js";import{t as a}from"./check.js";import{t as o}from"./chevron-down.js";import{t as s}from"./copy.js";import{t as c}from"./button.js";import{Br as l}from"./index.js";import{t as u}from"./use-copy-to-clipboard.js";var d=l(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),f=r(),p=t(n(),1),m=e(),h={bin:`text-tactical-cyan font-semibold`,flag:`text-tactical-amber`,value:`text-foreground`,comment:`text-muted-foreground italic`,variable:`text-tactical-green font-semibold`};function g(e){return e.map(e=>e.parts.map(e=>e.value).join(``)).join(` `)}function _(e){let t=(0,f.c)(18),{commands:n}=e,[r,l]=(0,p.useState)(!1),{copied:h,copy:_}=u();if(n.length===0)return null;let b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>l(y),t[0]=b):b=t[0];let x,S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,m.jsx)(d,{className:`size-3.5`}),S=(0,m.jsx)(`span`,{children:`AWS CLI`}),t[1]=x,t[2]=S):(x=t[1],S=t[2]);let C=r&&`rotate-180`,w;t[3]===C?w=t[4]:(w=i(`ml-auto size-3.5 transition-transform`,C),t[3]=C,t[4]=w);let T;t[5]===w?T=t[6]:(T=(0,m.jsx)(o,{className:w}),t[5]=w,t[6]=T);let E;t[7]!==r||t[8]!==T?(E=(0,m.jsxs)(`button`,{type:`button`,onClick:b,className:`flex w-full items-center gap-2 px-3 py-2 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,"aria-expanded":r,children:[x,S,T]}),t[7]=r,t[8]=T,t[9]=E):E=t[9];let D;t[10]!==n||t[11]!==h||t[12]!==_||t[13]!==r?(D=r&&(0,m.jsxs)(`div`,{className:`border-t border-border`,children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-3 py-1.5`,children:[(0,m.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:n.length>1?`${n.length} commands`:`command`}),(0,m.jsxs)(c,{type:`button`,variant:`ghost`,size:`xs`,onClick:async()=>await _(g(n)),children:[h?(0,m.jsx)(a,{className:`size-2.5`}):(0,m.jsx)(s,{className:`size-2.5`}),h?`Copied`:`Copy`]})]}),(0,m.jsx)(`div`,{className:`overflow-x-auto p-3`,children:n.map((e,t)=>(0,m.jsxs)(`div`,{children:[n.length>1&&(0,m.jsx)(`div`,{className:`mb-1 text-[0.625rem] font-medium text-muted-foreground`,children:e.label}),(0,m.jsx)(`pre`,{className:`font-mono text-xs/relaxed`,children:(0,m.jsx)(`code`,{children:e.parts.map(v)})}),t{let t=!a,n=h(m,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return T.useMemo(()=>({disabled:i,handleTrigger:b,mounted:s,open:a,panelId:v,setMounted:c,setOpen:o,setPanelIdState:g,transitionStatus:l}),[i,b,s,a,v,c,o,g,l])}var D=T.createContext(void 0);function O(){let e=T.useContext(D);if(e===void 0)throw Error(s(15));return e}var k=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=v.startingStyle]=`startingStyle`,e[e.endingStyle=v.endingStyle]=`endingStyle`,e}({}),A=function(e){return e.panelOpen=`data-panel-open`,e}({}),j={[k.open]:``},M={[k.closed]:``},N={open(e){return e?{[A.panelOpen]:``}:null}},P={open(e){return e?j:M},...b},F=e(),I=T.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,f=d(s),p=E({open:c,defaultOpen:i,onOpenChange:f,disabled:o}),m=T.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=T.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:u,stateAttributesMapping:P});return(0,F.jsx)(D.Provider,{value:h,children:g})}),L={...N,...b},R=T.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=O(),{className:c,disabled:l=s,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=u({disabled:l,focusableWhenDisabled:!0,native:f});return a(`button`,e,{state:o,ref:[t,g],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,h],stateAttributesMapping:L})}),z={height:void 0,width:void 0};function B(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:a,mounted:o,onOpenChange:s,open:c,setMounted:u,setOpen:f,transitionStatus:m}=e,_=T.useRef(null),v=T.useRef(null),[y,b]=T.useState(z),E=T.useRef(z),D=T.useRef(!1),O=T.useRef(c),A=T.useRef(!1),[j,M]=T.useState(!1),N=T.useRef(null),P=i(t,_),F=S({mounted:o,open:c}),I=C(_,!1,!1),L=!c&&!o,R=j?`idle`:m,B=c&&(O.current||A.current),U=!c&&o&&v.current===`css-animation`&&y.height===void 0&&y.width===void 0?E.current:y,K=n&&L&&v.current!==`css-animation`,q=d((e,t=!0)=>{t&&(E.current=e),b(e)}),J=d(()=>{N.current?.(),N.current=null}),Y=d(e=>{J(),N.current=()=>{N.current=null,e()}}),X=d(()=>{c&&o&&v.current===`css-animation`&&(A.current=!0)});l(()=>{!j||m===`starting`||M(!1)},[j,m]),T.useEffect(()=>()=>{X(),J()},[X,J]),l(()=>{let e=_.current;if(!e)return;!c&&N.current&&J();let t=H(e,B);if(v.current=t,c&&m===`idle`&&O.current&&t===`css-animation`){E.current=V(e);return}if(c&&m===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(V(e)),M(!0);return}if(t===`css-transition`){let t=G(e);return q(V(e)),n?(Y(W(e,`transition-duration`,`0s`)),M(!0),t):t}if(t===`css-animation`){if(q(V(e)),!n){W(e,`animation-name`,`none`)();return}let t=W(e,`animation-name`,`none`),r=W(e,`animation-duration`,`0s`);t(),Y(r),M(!0);return}}if(!c&&o&&(m===`idle`||m===`starting`)){if(O.current=!1,A.current=!1,t===`none`){q(z,!1),u(!1);return}q(V(e));return}if(m!==`ending`)return;if(t===`none`){u(!1);return}let n=V(e);if(!((n.height??0)>0||(n.width??0)>0)){u(!1);return}q(n),t===`css-animation`&&W(e,`animation-name`,`none`)()},[o,c,J,q,u,Y,B,m]),x({enabled:c&&o&&R===`idle`,open:!0,ref:_,onComplete(){c&&q(z,!1)}}),T.useEffect(()=>{if(c||!o||R!==`ending`||!_.current)return;let e=new AbortController,t=-1;function n(){F.current.open||(u(!1),q(z,!1))}return t=w.request(()=>{e.signal.aborted||I(n,e.signal)}),()=>{w.cancel(t),e.abort()}},[F,o,c,R,I,q,u]),l(()=>{let e=_.current;!e||!n||!L||e.setAttribute(`hidden`,`until-found`)},[L,n]),T.useEffect(function(){let e=_.current;if(!e)return;function t(e){let t=h(p,e);s(!0,t),!t.isCanceled&&(D.current=!0,f(!0))}return g(e,`beforematch`,t)},[s,f]);let Z=a||n||o||c;return{height:U.height,props:{...K?{[k.startingStyle]:``}:void 0,hidden:L,id:r},ref:P,shouldPreventOpenAnimation:B,shouldRender:Z,transitionStatus:R,width:U.width}}function V(e){return{height:e.scrollHeight,width:e.scrollWidth}}function H(e,t=!1){let n=c(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&U(n.animationDuration),i=U(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function U(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function W(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function G(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=w.request(n);return()=>{w.cancel(r),n()}}var K=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),q=T.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:s,id:c,style:u,...d}=e,{mounted:f,onOpenChange:p,open:m,panelId:h,setMounted:g,setPanelIdState:_,setOpen:v,state:y,transitionStatus:b}=O(),x=r??!1,S=i??!1;l(()=>{if(c)return _(c),()=>{_(void 0)}},[c,_]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:D,transitionStatus:k,width:A}=B({externalRef:t,hiddenUntilFound:x,id:h,keepMounted:S,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:v,transitionStatus:b}),j={...y,transitionStatus:k},M=o(u,j),N=a(`div`,{...e,style:void 0},{state:j,ref:T,props:[w,{style:{[K.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[K.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},d,M?{style:M}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:P});return D?N:null}),J=r();function Y(e){let t=(0,J.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,F.jsx)(I,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function X(e){let t=(0,J.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,F.jsx)(R,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function Z(e){let t=(0,J.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,F.jsx)(q,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{Z as n,X as r,Y as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,n as a,r as o,u as s}from"./dist.js";import{_ as c,o as l,r as u,s as d}from"./button.js";import{S as f,f as p,g as m,t as h}from"./createBaseUIEventDetails.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./useValueAsRef.js";import{rr as w}from"./index.js";var T=t(n(),1);function E(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=w({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=x(a,!0,!0),u=f(),[p,g]=T.useState(),_=p??u,v=d(e=>{let t=!a,n=h(m,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return T.useMemo(()=>({disabled:i,handleTrigger:v,mounted:s,open:a,panelId:_,setMounted:c,setOpen:o,setPanelIdState:g,transitionStatus:l}),[i,v,s,a,_,c,o,g,l])}var D=T.createContext(void 0);function O(){let e=T.useContext(D);if(e===void 0)throw Error(s(15));return e}var k=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=b.startingStyle]=`startingStyle`,e[e.endingStyle=b.endingStyle]=`endingStyle`,e}({}),A=function(e){return e.panelOpen=`data-panel-open`,e}({}),j={[k.open]:``},M={[k.closed]:``},N={open(e){return e?{[A.panelOpen]:``}:null}},P={open(e){return e?j:M},...S},F=e(),I=T.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,f=d(s),p=E({open:c,defaultOpen:i,onOpenChange:f,disabled:o}),m=T.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),h=T.useMemo(()=>({...p,onOpenChange:f,state:m}),[p,f,m]),g=a(`div`,e,{state:m,ref:t,props:u,stateAttributesMapping:P});return(0,F.jsx)(D.Provider,{value:h,children:g})}),L={...N,...S},R=T.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:s}=O(),{className:c,disabled:l=s,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=u({disabled:l,focusableWhenDisabled:!0,native:f});return a(`button`,e,{state:o,ref:[t,g],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,h],stateAttributesMapping:L})}),z={height:void 0,width:void 0};function B(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:a,mounted:o,onOpenChange:s,open:c,setMounted:u,setOpen:f,transitionStatus:m}=e,b=T.useRef(null),x=T.useRef(null),[S,w]=T.useState(z),E=T.useRef(z),D=T.useRef(!1),O=T.useRef(c),A=T.useRef(!1),[j,M]=T.useState(!1),N=T.useRef(null),P=i(t,b),F=C({mounted:o,open:c}),I=g(b,!1,!1),L=!c&&!o,R=j?`idle`:m,B=c&&(O.current||A.current),U=!c&&o&&x.current===`css-animation`&&S.height===void 0&&S.width===void 0?E.current:S,K=n&&L&&x.current!==`css-animation`,q=d((e,t=!0)=>{t&&(E.current=e),w(e)}),J=d(()=>{N.current?.(),N.current=null}),Y=d(e=>{J(),N.current=()=>{N.current=null,e()}}),X=d(()=>{c&&o&&x.current===`css-animation`&&(A.current=!0)});l(()=>{!j||m===`starting`||M(!1)},[j,m]),T.useEffect(()=>()=>{X(),J()},[X,J]),l(()=>{let e=b.current;if(!e)return;!c&&N.current&&J();let t=H(e,B);if(x.current=t,c&&m===`idle`&&O.current&&t===`css-animation`){E.current=V(e);return}if(c&&m===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(V(e)),M(!0);return}if(t===`css-transition`){let t=G(e);return q(V(e)),n?(Y(W(e,`transition-duration`,`0s`)),M(!0),t):t}if(t===`css-animation`){if(q(V(e)),!n){W(e,`animation-name`,`none`)();return}let t=W(e,`animation-name`,`none`),r=W(e,`animation-duration`,`0s`);t(),Y(r),M(!0);return}}if(!c&&o&&(m===`idle`||m===`starting`)){if(O.current=!1,A.current=!1,t===`none`){q(z,!1),u(!1);return}q(V(e));return}if(m!==`ending`)return;if(t===`none`){u(!1);return}let n=V(e);if(!((n.height??0)>0||(n.width??0)>0)){u(!1);return}q(n),t===`css-animation`&&W(e,`animation-name`,`none`)()},[o,c,J,q,u,Y,B,m]),_({enabled:c&&o&&R===`idle`,open:!0,ref:b,onComplete(){c&&q(z,!1)}}),T.useEffect(()=>{if(c||!o||R!==`ending`||!b.current)return;let e=new AbortController,t=-1;function n(){F.current.open||(u(!1),q(z,!1))}return t=v.request(()=>{e.signal.aborted||I(n,e.signal)}),()=>{v.cancel(t),e.abort()}},[F,o,c,R,I,q,u]),l(()=>{let e=b.current;!e||!n||!L||e.setAttribute(`hidden`,`until-found`)},[L,n]),T.useEffect(function(){let e=b.current;if(!e)return;function t(e){let t=h(p,e);s(!0,t),!t.isCanceled&&(D.current=!0,f(!0))}return y(e,`beforematch`,t)},[s,f]);let Z=a||n||o||c;return{height:U.height,props:{...K?{[k.startingStyle]:``}:void 0,hidden:L,id:r},ref:P,shouldPreventOpenAnimation:B,shouldRender:Z,transitionStatus:R,width:U.width}}function V(e){return{height:e.scrollHeight,width:e.scrollWidth}}function H(e,t=!1){let n=c(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&U(n.animationDuration),i=U(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function U(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function W(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function G(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=v.request(n);return()=>{v.cancel(r),n()}}var K=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),q=T.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:s,id:c,style:u,...d}=e,{mounted:f,onOpenChange:p,open:m,panelId:h,setMounted:g,setPanelIdState:_,setOpen:v,state:y,transitionStatus:b}=O(),x=r??!1,S=i??!1;l(()=>{if(c)return _(c),()=>{_(void 0)}},[c,_]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:D,transitionStatus:k,width:A}=B({externalRef:t,hiddenUntilFound:x,id:h,keepMounted:S,mounted:f,onOpenChange:p,open:m,setMounted:g,setOpen:v,transitionStatus:b}),j={...y,transitionStatus:k},M=o(u,j),N=a(`div`,{...e,style:void 0},{state:j,ref:T,props:[w,{style:{[K.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[K.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},d,M?{style:M}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:P});return D?N:null}),J=r();function Y(e){let t=(0,J.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,F.jsx)(I,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function X(e){let t=(0,J.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,F.jsx)(R,{"data-slot":`collapsible-trigger`,...n}),t[2]=n,t[3]=r),r}function Z(e){let t=(0,J.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,F.jsx)(q,{"data-slot":`collapsible-content`,...n}),t[2]=n,t[3]=r),r}export{Z as n,X as r,Y as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/copy.js b/spinifex/services/spinifexui/frontend/dist/assets/copy.js index 54cd16fca..6df89ef7a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/copy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/copy.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js index 02f2aed54..70a8f022b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-bucket.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{f as n,u as r}from"./auth.js";import{t as i}from"./back-link.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./s3.js";import{Qr as s,nr as c}from"./index.js";import{a as l,i as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=t(),y=r({bucketName:n().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=e();function x(){let e=(0,v.c)(44),t=s(),n=o(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={resolver:d(y)},e[0]=r):r=e[0];let{handleSubmit:x,register:C,control:w,formState:T}=u(r),{errors:E,isSubmitting:D}=T,O;e[1]===w?O=e[2]:(O={control:w},e[1]=w,e[2]=O);let k=l(O),A;e[3]===k?A=e[4]:(A=e=>e?k[e]:void 0,e[3]=k,e[4]=A);let j=A,M;e[5]!==n||e[6]!==t?(M=async e=>{await n.mutateAsync(e),t({to:`/s3/ls`})},e[5]=n,e[6]=t,e[7]=M):M=e[7];let N=M,P,F;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(i,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),e[8]=P,e[9]=F):(P=e[8],F=e[9]);let I;e[10]===n.error?I=e[11]:(I=n.error&&(0,b.jsx)(f,{error:n.error,msg:`Failed to create bucket`}),e[10]=n.error,e[11]=I);let L;e[12]!==x||e[13]!==N?(L=x(N),e[12]=x,e[13]=N,e[14]=L):L=e[14];let R;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[15]=R):R=e[15];let z=!!E.bucketName,B;e[16]===C?B=e[17]:(B=C(`bucketName`),e[16]=C,e[17]=B);let V;e[18]!==z||e[19]!==B?(V=(0,b.jsx)(c,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),e[18]=z,e[19]=B,e[20]=V):V=e[20];let H;e[21]===E.bucketName?H=e[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),e[21]=E.bucketName,e[22]=H);let U;e[23]!==V||e[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),e[23]=V,e[24]=H,e[25]=U):U=e[25];let W;e[26]===j?W=e[27]:(W=S(j),e[26]=j,e[27]=W);let G;e[28]===W?G=e[29]:(G=(0,b.jsx)(a,{commands:W}),e[28]=W,e[29]=G);let K;e[30]===t?K=e[31]:(K=async()=>await t({to:`/s3/ls`}),e[30]=t,e[31]=K);let q;e[32]!==n.isPending||e[33]!==D||e[34]!==K?(q=(0,b.jsx)(p,{isPending:n.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[32]=n.isPending,e[33]=D,e[34]=K,e[35]=q):q=e[35];let J;e[36]!==U||e[37]!==G||e[38]!==q||e[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),e[36]=U,e[37]=G,e[38]=q,e[39]=L,e[40]=J):J=e[40];let Y;return e[41]!==J||e[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),e[41]=J,e[42]=I,e[43]=Y):Y=e[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{f as r,u as i}from"./auth.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./back-link.js";import{t as s}from"./s3.js";import{er as c}from"./index.js";import{a as l,i as u,t as d}from"./zod.js";import{t as f}from"./error-banner.js";import{t as p}from"./form-actions.js";import{t as m}from"./page-heading.js";import{a as h,r as g,t as _}from"./field.js";var v=t(),y=i({bucketName:r().min(3,`Bucket name must be at least 3 characters`).max(63,`Bucket name must be at most 63 characters`).regex(/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/,`Must start and end with a lowercase letter or number`).regex(/^[a-z0-9.-]+$/,`Only lowercase letters, numbers, hyphens, and periods allowed`).refine(e=>!e.includes(`..`),`Must not contain consecutive periods`).refine(e=>!(e.includes(`.-`)||e.includes(`-.`)),`Must not contain adjacent period and hyphen`)}),b=e();function x(){let e=(0,v.c)(44),t=n(),r=s(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={resolver:d(y)},e[0]=i):i=e[0];let{handleSubmit:x,register:C,control:w,formState:T}=u(i),{errors:E,isSubmitting:D}=T,O;e[1]===w?O=e[2]:(O={control:w},e[1]=w,e[2]=O);let k=l(O),A;e[3]===k?A=e[4]:(A=e=>e?k[e]:void 0,e[3]=k,e[4]=A);let j=A,M;e[5]!==r||e[6]!==t?(M=async e=>{await r.mutateAsync(e),t({to:`/s3/ls`})},e[5]=r,e[6]=t,e[7]=M):M=e[7];let N=M,P,F;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(o,{to:`/s3/ls`,children:`Back to buckets`}),F=(0,b.jsx)(m,{title:`Create Bucket`}),e[8]=P,e[9]=F):(P=e[8],F=e[9]);let I;e[10]===r.error?I=e[11]:(I=r.error&&(0,b.jsx)(f,{error:r.error,msg:`Failed to create bucket`}),e[10]=r.error,e[11]=I);let L;e[12]!==x||e[13]!==N?(L=x(N),e[12]=x,e[13]=N,e[14]=L):L=e[14];let R;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,b.jsx)(h,{children:(0,b.jsx)(`label`,{htmlFor:`bucketName`,children:`Bucket Name`})}),e[15]=R):R=e[15];let z=!!E.bucketName,B;e[16]===C?B=e[17]:(B=C(`bucketName`),e[16]=C,e[17]=B);let V;e[18]!==z||e[19]!==B?(V=(0,b.jsx)(c,{"aria-invalid":z,id:`bucketName`,placeholder:`my-bucket`,type:`text`,...B}),e[18]=z,e[19]=B,e[20]=V):V=e[20];let H;e[21]===E.bucketName?H=e[22]:(H=(0,b.jsx)(g,{errors:[E.bucketName]}),e[21]=E.bucketName,e[22]=H);let U;e[23]!==V||e[24]!==H?(U=(0,b.jsxs)(_,{children:[R,V,H]}),e[23]=V,e[24]=H,e[25]=U):U=e[25];let W;e[26]===j?W=e[27]:(W=S(j),e[26]=j,e[27]=W);let G;e[28]===W?G=e[29]:(G=(0,b.jsx)(a,{commands:W}),e[28]=W,e[29]=G);let K;e[30]===t?K=e[31]:(K=async()=>await t({to:`/s3/ls`}),e[30]=t,e[31]=K);let q;e[32]!==r.isPending||e[33]!==D||e[34]!==K?(q=(0,b.jsx)(p,{isPending:r.isPending,isSubmitting:D,onCancel:K,pendingLabel:`Creating…`,submitLabel:`Create Bucket`}),e[32]=r.isPending,e[33]=D,e[34]=K,e[35]=q):q=e[35];let J;e[36]!==U||e[37]!==G||e[38]!==q||e[39]!==L?(J=(0,b.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:L,children:[U,G,q]}),e[36]=U,e[37]=G,e[38]=q,e[39]=L,e[40]=J):J=e[40];let Y;return e[41]!==J||e[42]!==I?(Y=(0,b.jsxs)(b.Fragment,{children:[P,F,I,J]}),e[41]=J,e[42]=I,e[43]=Y):Y=e[43],Y}function S(e){let t=e(`bucketName`);return[{label:`Create Bucket`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws s3api create-bucket`},{type:`flag`,value:` --bucket`},{type:`value`,value:` ${(typeof t==`string`?t:``)||``}`}]}]}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js b/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js index d318b4625..db190400f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-cluster.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./check.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./copy.js";import{t as m}from"./rotate-cw.js";import{t as h}from"./triangle-alert.js";import{t as g}from"./button.js";import{a as _,d as v,g as y,o as b,t as x}from"./eks.js";import{n as S,s as C}from"./iam.js";import{$r as w,Qr as T,Zt as E,jt as D,nr as O,tn as k,xt as A}from"./index.js";import{i as ee,n as j,t as te}from"./zod.js";import{t as M}from"./use-copy-to-clipboard.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as N}from"./page-heading.js";import{a as P,r as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as W}from"./alert-dialog.js";import{n as ie}from"./system-managed.js";import{t as G}from"./policy-document-viewer.js";var K=t(n(),1),q=e();function J(e){return`${e.trim()||`cluster`}-eks-cluster-role`}function ae({clusterName:e,open:t,onOpenChange:n,onCreated:r}){let i=C(),a=S(),[o,s]=(0,K.useState)(J(e)),[c,l]=(0,K.useState)(null);(0,K.useEffect)(()=>{t&&(s(J(e)),l(null))},[t,e]);let u=i.isPending||a.isPending;function d(e){e||l(null),n(e)}async function f(){l(null);let e=o.trim();try{let t=await i.mutateAsync({roleName:e,assumeRolePolicyDocument:_});await a.mutateAsync({roleName:e,policyArn:x});let o=t.Role?.Arn;if(!o){l(`Role was created but no ARN was returned.`);return}r(o),n(!1)}catch(e){l(e instanceof Error?e.message:`Failed to create role.`)}}return(0,q.jsx)(W,{onOpenChange:d,open:t,children:(0,q.jsxs)(R,{className:`max-w-lg sm:max-w-lg`,children:[(0,q.jsxs)(U,{children:[(0,q.jsx)(z,{children:`Create cluster IAM role`}),(0,q.jsx)(L,{children:`Creates an IAM role trusted by the EKS control plane and attaches the AmazonEKSClusterPolicy managed policy.`})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`eks-role-name`,children:`Role name`})}),(0,q.jsx)(O,{id:`eks-role-name`,onChange:e=>s(e.target.value),placeholder:`my-cluster-eks-cluster-role`,value:o})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Trust policy (JSON)`}),(0,q.jsx)(G,{document:_})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Attached managed policy`}),(0,q.jsx)(`code`,{className:`block rounded-md border bg-muted p-2 font-mono text-sm break-all`,children:x}),(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Grants the EKS control plane the permissions it needs to manage the cluster.`})]}),c&&(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:c}),(0,q.jsxs)(V,{children:[(0,q.jsx)(H,{children:`Cancel`}),(0,q.jsx)(B,{disabled:u||!o.trim(),onClick:f,children:u?`Creating…`:`Create role`})]})]})})}var Y=r(),X=`spx admin images import --name spinifex-eks-node`;function oe(e){let t=(0,Y.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=M(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(h,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`EKS system image not found`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`EKS clusters boot a Spinifex-managed node image (K3s) that is not shipped with the platform. Import it before creating a cluster.`})]}),t[1]=c):c=t[1];let l,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,q.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),u=(0,q.jsx)(`span`,{className:`flex-1 text-foreground`,children:X}),t[2]=l,t[3]=u):(l=t[2],u=t[3]);let d;t[4]===a?d=t[5]:(d=()=>void a(X),t[4]=a,t[5]=d);let f;t[6]===i?f=t[7]:(f=i?(0,q.jsx)(s,{className:`size-3.5 text-tactical-green`}):(0,q.jsx)(p,{className:`size-3.5`}),t[6]=i,t[7]=f);let _;t[8]!==d||t[9]!==f?(_=(0,q.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[l,u,(0,q.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:d,type:`button`,children:f})]}),t[8]=d,t[9]=f,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,q.jsx)(m,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,q.jsxs)(g,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==_?(S=(0,q.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,q.jsxs)(`div`,{className:`space-y-4`,children:[c,_,v,x]})]})}),t[18]=x,t[19]=_,t[20]=S):S=t[20],S}function se(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function Z(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function Q(){let e=T(),t=w(),[n,r]=(0,K.useState)(!1),[a,s]=(0,K.useState)(!1),{data:p}=i(k),{data:m}=i(E),{data:h}=i(A),{data:_}=i(D),x=y(),S=(_.Images??[]).some(ie),C=async()=>{r(!0);try{await t.invalidateQueries({queryKey:D.queryKey})}finally{r(!1)}},M=p.Vpcs??[],L=m.Subnets??[],R=h.Roles??[],{control:z,formState:{errors:B,isSubmitting:V},handleSubmit:H,register:U,setValue:W,watch:G}=ee({resolver:te(v),defaultValues:{name:``,version:b[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),J=G(`vpcId`),Y=G(`subnetIds`),X=G(`endpointPublicAccess`),Q=G(`publicAccessCidrs`),$=L.filter(e=>e.VpcId===J),ce=(e=``)=>{W(`vpcId`,e??``,{shouldValidate:!0}),W(`subnetIds`,[])},le=e=>{W(`subnetIds`,Y.includes(e)?Y.filter(t=>t!==e):[...Y,e],{shouldValidate:!0})},ue=(e,t)=>{let n=[...Q];n[e]=t,W(`publicAccessCidrs`,n,{shouldValidate:!0})},de=()=>W(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),fe=e=>W(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0}),pe=G(`name`),me=async e=>{await t.invalidateQueries({queryKey:A.queryKey}),W(`roleArn`,e,{shouldValidate:!0})};return S?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(N,{subtitle:`EKS`,title:`Create Cluster`}),x.error&&(0,q.jsx)(ne,{error:x.error,msg:`Failed to create cluster`}),(0,q.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:H(async t=>{await x.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,q.jsx)(O,{"aria-invalid":!!B.name,id:`cluster-name`,placeholder:`my-cluster`,...U(`name`)}),(0,q.jsx)(F,{errors:[B.name]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,q.jsx)(j,{control:z,name:`version`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{className:`w-full`,id:`cluster-version`,children:(0,q.jsx)(c,{placeholder:`Select version`})}),(0,q.jsx)(u,{children:b.map(e=>(0,q.jsx)(l,{value:e,children:e},e))})]})}),(0,q.jsx)(F,{errors:[B.version]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(j,{control:z,name:`roleArn`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!B.roleArn,className:`w-full`,id:`cluster-role`,children:(0,q.jsx)(c,{placeholder:`Select role`})}),(0,q.jsx)(u,{children:R.map(e=>(0,q.jsx)(l,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,q.jsx)(g,{onClick:()=>s(!0),type:`button`,variant:`outline`,children:`Create role`})]}),(0,q.jsx)(F,{errors:[B.roleArn]})]}),(0,q.jsx)(ae,{clusterName:pe,onCreated:me,onOpenChange:s,open:a}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,q.jsx)(j,{control:z,name:`vpcId`,render:({field:e})=>(0,q.jsxs)(f,{onValueChange:e=>ce(e),value:e.value,children:[(0,q.jsx)(d,{"aria-invalid":!!B.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,q.jsx)(c,{placeholder:`Select VPC`})}),(0,q.jsx)(u,{children:M.map(e=>(0,q.jsx)(l,{value:e.VpcId??``,children:se(e)},e.VpcId))})]})}),(0,q.jsx)(F,{errors:[B.vpcId]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Subnets (select at least 1)`}),$.length===0?(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,q.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Subnet ${Z(e)}`,checked:Y.includes(e.SubnetId??``),onChange:()=>le(e.SubnetId??``),type:`checkbox`}),(0,q.jsx)(`span`,{className:`font-mono`,children:Z(e)})]},e.SubnetId))}),(0,q.jsx)(F,{errors:[B.subnetIds]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Endpoint access`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,q.jsx)(j,{control:z,name:`endpointPublicAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,q.jsx)(j,{control:z,name:`endpointPrivateAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,q.jsx)(F,{errors:[B.endpointPublicAccess]}),X&&(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(O,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>ue(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,q.jsx)(g,{onClick:()=>fe(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,q.jsx)(g,{onClick:de,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,q.jsx)(F,{errors:[B.publicAccessCidrs]})]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Access`}),(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,q.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,q.jsx)(j,{control:z,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,q.jsx)(re,{isPending:x.isPending,isSubmitting:V,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(N,{subtitle:`EKS`,title:`Create Cluster`}),(0,q.jsx)(oe,{isRechecking:n,onRecheck:C})]})}var $=Q;export{$ as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{Ut as o}from"./auth.js";import{t as s}from"./triangle-alert.js";import{t as c}from"./back-link.js";import{t as l}from"./check.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./copy.js";import{t as g}from"./rotate-cw.js";import{t as _}from"./button.js";import{a as v,d as y,g as b,o as x,t as S}from"./eks.js";import{n as C,s as w}from"./iam.js";import{Ur as T,Zt as E,er as D,jt as O,tn as ee,xt as k}from"./index.js";import{i as A,n as j,t as te}from"./zod.js";import{t as M}from"./use-copy-to-clipboard.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as N}from"./page-heading.js";import{a as P,r as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as W}from"./alert-dialog.js";import{n as ie}from"./system-managed.js";import{t as G}from"./policy-document-viewer.js";var K=t(n(),1),q=e();function J(e){return`${e.trim()||`cluster`}-eks-cluster-role`}function ae({clusterName:e,open:t,onOpenChange:n,onCreated:r}){let i=w(),a=C(),[o,s]=(0,K.useState)(J(e)),[c,l]=(0,K.useState)(null);(0,K.useEffect)(()=>{t&&(s(J(e)),l(null))},[t,e]);let u=i.isPending||a.isPending;function d(e){e||l(null),n(e)}async function f(){l(null);let e=o.trim();try{let t=await i.mutateAsync({roleName:e,assumeRolePolicyDocument:v});await a.mutateAsync({roleName:e,policyArn:S});let o=t.Role?.Arn;if(!o){l(`Role was created but no ARN was returned.`);return}r(o),n(!1)}catch(e){l(e instanceof Error?e.message:`Failed to create role.`)}}return(0,q.jsx)(W,{onOpenChange:d,open:t,children:(0,q.jsxs)(R,{className:`max-w-lg sm:max-w-lg`,children:[(0,q.jsxs)(U,{children:[(0,q.jsx)(z,{children:`Create cluster IAM role`}),(0,q.jsx)(L,{children:`Creates an IAM role trusted by the EKS control plane and attaches the AmazonEKSClusterPolicy managed policy.`})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`eks-role-name`,children:`Role name`})}),(0,q.jsx)(D,{id:`eks-role-name`,onChange:e=>s(e.target.value),placeholder:`my-cluster-eks-cluster-role`,value:o})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Trust policy (JSON)`}),(0,q.jsx)(G,{document:v})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Attached managed policy`}),(0,q.jsx)(`code`,{className:`block rounded-md border bg-muted p-2 font-mono text-sm break-all`,children:S}),(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Grants the EKS control plane the permissions it needs to manage the cluster.`})]}),c&&(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:c}),(0,q.jsxs)(V,{children:[(0,q.jsx)(H,{children:`Cancel`}),(0,q.jsx)(B,{disabled:u||!o.trim(),onClick:f,children:u?`Creating…`:`Create role`})]})]})})}var Y=r(),X=`spx admin images import --name spinifex-eks-node`;function oe(e){let t=(0,Y.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=M(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(s,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`EKS system image not found`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`EKS clusters boot a Spinifex-managed node image (K3s) that is not shipped with the platform. Import it before creating a cluster.`})]}),t[1]=c):c=t[1];let u,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,q.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),d=(0,q.jsx)(`span`,{className:`flex-1 text-foreground`,children:X}),t[2]=u,t[3]=d):(u=t[2],d=t[3]);let f;t[4]===a?f=t[5]:(f=()=>void a(X),t[4]=a,t[5]=f);let p;t[6]===i?p=t[7]:(p=i?(0,q.jsx)(l,{className:`size-3.5 text-tactical-green`}):(0,q.jsx)(h,{className:`size-3.5`}),t[6]=i,t[7]=p);let m;t[8]!==f||t[9]!==p?(m=(0,q.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[u,d,(0,q.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:f,type:`button`,children:p})]}),t[8]=f,t[9]=p,t[10]=m):m=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=v):v=t[11];let y=n?`size-4 animate-spin`:`size-4`,b;t[12]===y?b=t[13]:(b=(0,q.jsx)(g,{className:y}),t[12]=y,t[13]=b);let x;t[14]!==n||t[15]!==r||t[16]!==b?(x=(0,q.jsxs)(_,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[b,`Recheck`]}),t[14]=n,t[15]=r,t[16]=b,t[17]=x):x=t[17];let S;return t[18]!==x||t[19]!==m?(S=(0,q.jsx)(`div`,{className:`max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,q.jsxs)(`div`,{className:`space-y-4`,children:[c,m,v,x]})]})}),t[18]=x,t[19]=m,t[20]=S):S=t[20],S}function se(e){let t=o(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function Z(e){let t=o(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function Q(){let e=a(),t=T(),[n,r]=(0,K.useState)(!1),[o,s]=(0,K.useState)(!1),{data:l}=i(ee),{data:h}=i(E),{data:g}=i(k),{data:v}=i(O),S=b(),C=(v.Images??[]).some(ie),w=async()=>{r(!0);try{await t.invalidateQueries({queryKey:O.queryKey})}finally{r(!1)}},M=l.Vpcs??[],L=h.Subnets??[],R=g.Roles??[],{control:z,formState:{errors:B,isSubmitting:V},handleSubmit:H,register:U,setValue:W,watch:G}=A({resolver:te(y),defaultValues:{name:``,version:x[0],roleArn:``,vpcId:``,subnetIds:[],bootstrapClusterCreatorAdminPermissions:!0,endpointPublicAccess:!0,endpointPrivateAccess:!1,publicAccessCidrs:[`0.0.0.0/0`]}}),J=G(`vpcId`),Y=G(`subnetIds`),X=G(`endpointPublicAccess`),Q=G(`publicAccessCidrs`),$=L.filter(e=>e.VpcId===J),ce=(e=``)=>{W(`vpcId`,e??``,{shouldValidate:!0}),W(`subnetIds`,[])},le=e=>{W(`subnetIds`,Y.includes(e)?Y.filter(t=>t!==e):[...Y,e],{shouldValidate:!0})},ue=(e,t)=>{let n=[...Q];n[e]=t,W(`publicAccessCidrs`,n,{shouldValidate:!0})},de=()=>W(`publicAccessCidrs`,[...Q,``],{shouldValidate:!0}),fe=e=>W(`publicAccessCidrs`,Q.filter((t,n)=>n!==e),{shouldValidate:!0}),pe=G(`name`),me=async e=>{await t.invalidateQueries({queryKey:k.queryKey}),W(`roleArn`,e,{shouldValidate:!0})};return C?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(N,{subtitle:`EKS`,title:`Create Cluster`}),S.error&&(0,q.jsx)(ne,{error:S.error,msg:`Failed to create cluster`}),(0,q.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:H(async t=>{await S.mutateAsync(t),await e({to:`/eks/list-clusters/$clusterName`,params:{clusterName:t.name}})}),children:[(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-name`,children:`Name`})}),(0,q.jsx)(D,{"aria-invalid":!!B.name,id:`cluster-name`,placeholder:`my-cluster`,...U(`name`)}),(0,q.jsx)(F,{errors:[B.name]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-version`,children:`Kubernetes version`})}),(0,q.jsx)(j,{control:z,name:`version`,render:({field:e})=>(0,q.jsxs)(m,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(p,{className:`w-full`,id:`cluster-version`,children:(0,q.jsx)(u,{placeholder:`Select version`})}),(0,q.jsx)(f,{children:x.map(e=>(0,q.jsx)(d,{value:e,children:e},e))})]})}),(0,q.jsx)(F,{errors:[B.version]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-role`,children:`Cluster IAM role`})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(j,{control:z,name:`roleArn`,render:({field:e})=>(0,q.jsxs)(m,{onValueChange:e.onChange,value:e.value,children:[(0,q.jsx)(p,{"aria-invalid":!!B.roleArn,className:`w-full`,id:`cluster-role`,children:(0,q.jsx)(u,{placeholder:`Select role`})}),(0,q.jsx)(f,{children:R.map(e=>(0,q.jsx)(d,{value:e.Arn??``,children:e.RoleName},e.Arn))})]})}),(0,q.jsx)(_,{onClick:()=>s(!0),type:`button`,variant:`outline`,children:`Create role`})]}),(0,q.jsx)(F,{errors:[B.roleArn]})]}),(0,q.jsx)(ae,{clusterName:pe,onCreated:me,onOpenChange:s,open:o}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:(0,q.jsx)(`label`,{htmlFor:`cluster-vpc`,children:`VPC`})}),(0,q.jsx)(j,{control:z,name:`vpcId`,render:({field:e})=>(0,q.jsxs)(m,{onValueChange:e=>ce(e),value:e.value,children:[(0,q.jsx)(p,{"aria-invalid":!!B.vpcId,className:`w-full`,id:`cluster-vpc`,children:(0,q.jsx)(u,{placeholder:`Select VPC`})}),(0,q.jsx)(f,{children:M.map(e=>(0,q.jsx)(d,{value:e.VpcId??``,children:se(e)},e.VpcId))})]})}),(0,q.jsx)(F,{errors:[B.vpcId]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Subnets (select at least 1)`}),$.length===0?(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,q.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Subnet ${Z(e)}`,checked:Y.includes(e.SubnetId??``),onChange:()=>le(e.SubnetId??``),type:`checkbox`}),(0,q.jsx)(`span`,{className:`font-mono`,children:Z(e)})]},e.SubnetId))}),(0,q.jsx)(F,{errors:[B.subnetIds]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Endpoint access`}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Public access exposes the API server on an internet-facing endpoint; private access keeps it reachable only from within the VPC. At least one must be enabled.`}),(0,q.jsx)(j,{control:z,name:`endpointPublicAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable public access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Public`]})}),(0,q.jsx)(j,{control:z,name:`endpointPrivateAccess`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Enable private access`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Private`]})}),(0,q.jsx)(F,{errors:[B.endpointPublicAccess]}),X&&(0,q.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Public access source ranges (CIDR). Defaults to`,` `,(0,q.jsx)(`span`,{className:`font-mono`,children:`0.0.0.0/0`}),`.`]}),Q.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(D,{"aria-label":`Public access CIDR ${t+1}`,className:`font-mono`,onChange:e=>ue(t,e.target.value),placeholder:`203.0.113.0/24`,value:e}),(0,q.jsx)(_,{onClick:()=>fe(t),size:`sm`,type:`button`,variant:`ghost`,children:`Remove`})]},t)),(0,q.jsx)(_,{onClick:de,size:`sm`,type:`button`,variant:`outline`,children:`Add CIDR`}),(0,q.jsx)(F,{errors:[B.publicAccessCidrs]})]})]}),(0,q.jsxs)(I,{children:[(0,q.jsx)(P,{children:`Access`}),(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Authentication mode is `,(0,q.jsx)(`span`,{className:`font-mono`,children:`API`}),` (IAM access entries). The legacy aws-auth ConfigMap is not supported.`]}),(0,q.jsx)(j,{control:z,name:`bootstrapClusterCreatorAdminPermissions`,render:({field:e})=>(0,q.jsxs)(`label`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,q.jsx)(`input`,{"aria-label":`Grant the cluster creator admin permissions`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Grant the cluster creator admin permissions`]})})]}),(0,q.jsx)(re,{isPending:S.isPending,isSubmitting:V,onCancel:async()=>await e({to:`/eks/list-clusters`}),pendingLabel:`Creating…`,submitLabel:`Create Cluster`})]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),(0,q.jsx)(N,{subtitle:`EKS`,title:`Create Cluster`}),(0,q.jsx)(oe,{isRechecking:n,onRecheck:w})]})}var $=Q;export{$ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js index b78e75366..556c24fdf 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-instance-profile.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{a as i}from"./iam.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=a(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},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]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-instance-profiles`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,v.jsx)(f,{title:`Create Instance Profile`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create instance profile`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),e[15]=L):L=e[15];let R=!!T.instanceProfileName,z;e[16]===S?z=e[17]:(z=S(`instanceProfileName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.instanceProfileName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.instanceProfileName]}),e[21]=T.instanceProfileName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{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,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-instance-profiles`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{a}from"./iam.js";import{er as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{n as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=n(),y=a(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},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]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-instance-profiles`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(i,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),P=(0,v.jsx)(f,{title:`Create Instance Profile`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create instance profile`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`instanceProfileName`,children:`Instance Profile Name`})}),e[15]=L):L=e[15];let R=!!T.instanceProfileName,z;e[16]===S?z=e[17]:(z=S(`instanceProfileName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`instanceProfileName`,placeholder:`my-instance-profile...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.instanceProfileName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.instanceProfileName]}),e[21]=T.instanceProfileName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{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,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-instance-profiles`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Instance Profile`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`instanceProfileName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-instance-profile`},{type:`flag`,value:` --instance-profile-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create Instance Profile`,parts:a}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js index 0ab69660e..ea3343e0b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-internet-gateway.js @@ -1,2 +1,2 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{f as i}from"./ec2.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=a(),v=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(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)(n,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{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)(u,{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)(o,{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)(r,{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)(d,{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.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{f as a}from"./ec2.js";import{er as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,t as m}from"./field.js";import{a as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(36),t=n(),v=a(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(h),defaultValues:{name:``}},e[0]=b):b=e[0];let{control:x,handleSubmit:S,register:C,formState:w}=c(b),{isSubmitting:T}=w,E;e[1]===x?E=e[2]:(E={control:x},e[1]=x,e[2]=E);let D=s(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)(i,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),j=(0,_.jsx)(f,{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)(u,{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)(o,{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)(r,{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)(d,{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.js b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js index bf066f070..d914f1d36 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-key-pair.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./check.js";import{t as o}from"./download.js";import{t as s}from"./cli-command-panel.js";import{t as c}from"./triangle-alert.js";import{t as l}from"./button.js";import{p as u}from"./ec2.js";import{Qr as d,nr as f}from"./index.js";import{a as p,i as m,t as h}from"./zod.js";import{t as g}from"./use-copy-to-clipboard.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as ee,c as w,i as T,l as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";var j=t(n()),M=r(),N=e();function P(e){let t=(0,M.c)(38),{open:n,keyName:r,keyMaterial:i}=e,s=d(),{copied:u,copy:f}=g(),p;t[0]!==i||t[1]!==r?(p=()=>{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]=p):p=t[2];let m=p,h;t[3]===s?h=t[4]:(h=()=>{s({to:`/ec2/describe-key-pairs`})},t[3]=s,t[4]=h);let _=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(w,{children:(0,N.jsx)(c,{className:`text-destructive`})}),y=(0,N.jsx)(E,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===r?b=t[8]:(b=(0,N.jsxs)(k,{children:[v,y,(0,N.jsxs)(ee,{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]=b);let x=`Private key material for ${r}`,S;t[9]!==i||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,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]=x,t[11]=S):S=t[11];let C;t[12]!==f||t[13]!==i?(C=async()=>await f(i),t[12]=f,t[13]=i,t[14]=C):C=t[14];let j;t[15]===u?j=t[16]:(j=u?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(a,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=u,t[16]=j);let P;t[17]!==C||t[18]!==j?(P=(0,N.jsx)(l,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:j}),t[17]=C,t[18]=j,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(o,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(l,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===_?z=t[30]:(z=(0,N.jsx)(D,{children:(0,N.jsx)(O,{onClick:_,children:`Close and Continue`})}),t[29]=_,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(T,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==n||t[36]!==B?(V=(0,N.jsx)(A,{open:n,children:B}),t[35]=n,t[36]=B,t[37]=V):V=t[37],V}function F(){let e=(0,M.c)(46),t=d(),n=u(),[r,a]=(0,j.useState)(null),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:h(C)},e[0]=o):o=e[0];let{handleSubmit:c,register:l,control:g,formState:ee}=m(o),{errors:w,isSubmitting:T}=ee,E;e[1]===g?E=e[2]:(E={control:g},e[1]=g,e[2]=E);let D=p(E),O;e[3]===D?O=e[4]:(O=e=>e?D[e]:void 0,e[3]=D,e[4]=O);let k=O,A;e[5]===n?A=e[6]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&a({keyName:e.keyName,material:t.KeyMaterial})},e[5]=n,e[6]=A);let F=A,L,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),e[7]=L,e[8]=R):(L=e[7],R=e[8]);let z;e[9]===n.error?z=e[10]:(z=n.error&&(0,N.jsx)(_,{error:n.error,msg:`Failed to create key pair`}),e[9]=n.error,e[10]=z);let B;e[11]!==c||e[12]!==F?(B=c(F),e[11]=c,e[12]=F,e[13]=B):B=e[13];let V;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[14]=V):V=e[14];let H=!!w.keyName,U;e[15]===l?U=e[16]:(U=l(`keyName`),e[15]=l,e[16]=U);let W;e[17]!==H||e[18]!==U?(W=(0,N.jsx)(f,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),e[17]=H,e[18]=U,e[19]=W):W=e[19];let G;e[20]===w.keyName?G=e[21]:(G=(0,N.jsx)(x,{errors:[w.keyName]}),e[20]=w.keyName,e[21]=G);let K;e[22]!==W||e[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),e[22]=W,e[23]=G,e[24]=K):K=e[24];let q;e[25]===k?q=e[26]:(q=I(k),e[25]=k,e[26]=q);let J;e[27]===q?J=e[28]:(J=(0,N.jsx)(s,{commands:q}),e[27]=q,e[28]=J);let Y;e[29]===t?Y=e[30]:(Y=async()=>await t({to:`/ec2/describe-key-pairs`}),e[29]=t,e[30]=Y);let X;e[31]!==n.isPending||e[32]!==T||e[33]!==Y?(X=(0,N.jsx)(v,{isPending:n.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[31]=n.isPending,e[32]=T,e[33]=Y,e[34]=X):X=e[34];let Z;e[35]!==K||e[36]!==J||e[37]!==X||e[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),e[35]=K,e[36]=J,e[37]=X,e[38]=B,e[39]=Z):Z=e[39];let Q;e[40]===r?Q=e[41]:(Q=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[40]=r,e[41]=Q);let $;return e[42]!==Z||e[43]!==Q||e[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),e[42]=Z,e[43]=Q,e[44]=z,e[45]=$):$=e[45],$}function I(e){let t=e(`keyName`);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:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useNavigate.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./triangle-alert.js";import{t as s}from"./back-link.js";import{t as c}from"./check.js";import{t as l}from"./download.js";import{t as u}from"./button.js";import{p as d}from"./ec2.js";import{er as f}from"./index.js";import{a as p,i as m,t as h}from"./zod.js";import{t as g}from"./use-copy-to-clipboard.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{o as C}from"./ec22.js";import{a as ee,c as w,i as T,l as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";var j=t(n()),M=r(),N=e();function P(e){let t=(0,M.c)(38),{open:n,keyName:r,keyMaterial:a}=e,s=i(),{copied:d,copy:f}=g(),p;t[0]!==a||t[1]!==r?(p=()=>{let e=new Blob([a],{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]=a,t[1]=r,t[2]=p):p=t[2];let m=p,h;t[3]===s?h=t[4]:(h=()=>{s({to:`/ec2/describe-key-pairs`})},t[3]=s,t[4]=h);let _=h,v,y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(w,{children:(0,N.jsx)(o,{className:`text-destructive`})}),y=(0,N.jsx)(E,{children:`Save Your Private Key`}),t[5]=v,t[6]=y):(v=t[5],y=t[6]);let b;t[7]===r?b=t[8]:(b=(0,N.jsxs)(k,{children:[v,y,(0,N.jsxs)(ee,{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]=b);let x=`Private key material for ${r}`,S;t[9]!==a||t[10]!==x?(S=(0,N.jsx)(`textarea`,{"aria-label":x,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:a}),t[9]=a,t[10]=x,t[11]=S):S=t[11];let C;t[12]!==f||t[13]!==a?(C=async()=>await f(a),t[12]=f,t[13]=a,t[14]=C):C=t[14];let j;t[15]===d?j=t[16]:(j=d?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=d,t[16]=j);let P;t[17]!==C||t[18]!==j?(P=(0,N.jsx)(u,{className:`flex-1`,onClick:C,type:`button`,variant:`outline`,children:j}),t[17]=C,t[18]=j,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[20]=F):F=t[20];let I;t[21]===m?I=t[22]:(I=(0,N.jsxs)(u,{className:`flex-1`,onClick:m,type:`button`,variant:`outline`,children:[F,`Download .pem File`]}),t[21]=m,t[22]=I);let L;t[23]!==P||t[24]!==I?(L=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[P,I]}),t[23]=P,t[24]=I,t[25]=L):L=t[25];let R;t[26]!==L||t[27]!==S?(R=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[S,L]}),t[26]=L,t[27]=S,t[28]=R):R=t[28];let z;t[29]===_?z=t[30]:(z=(0,N.jsx)(D,{children:(0,N.jsx)(O,{onClick:_,children:`Close and Continue`})}),t[29]=_,t[30]=z);let B;t[31]!==R||t[32]!==z||t[33]!==b?(B=(0,N.jsxs)(T,{className:`max-w-2xl`,children:[b,R,z]}),t[31]=R,t[32]=z,t[33]=b,t[34]=B):B=t[34];let V;return t[35]!==n||t[36]!==B?(V=(0,N.jsx)(A,{open:n,children:B}),t[35]=n,t[36]=B,t[37]=V):V=t[37],V}function F(){let e=(0,M.c)(46),t=i(),n=d(),[r,o]=(0,j.useState)(null),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={resolver:h(C)},e[0]=c):c=e[0];let{handleSubmit:l,register:u,control:g,formState:ee}=m(c),{errors:w,isSubmitting:T}=ee,E;e[1]===g?E=e[2]:(E={control:g},e[1]=g,e[2]=E);let D=p(E),O;e[3]===D?O=e[4]:(O=e=>e?D[e]:void 0,e[3]=D,e[4]=O);let k=O,A;e[5]===n?A=e[6]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&o({keyName:e.keyName,material:t.KeyMaterial})},e[5]=n,e[6]=A);let F=A,L,R;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,N.jsx)(s,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),R=(0,N.jsx)(y,{title:`Create Key Pair`}),e[7]=L,e[8]=R):(L=e[7],R=e[8]);let z;e[9]===n.error?z=e[10]:(z=n.error&&(0,N.jsx)(_,{error:n.error,msg:`Failed to create key pair`}),e[9]=n.error,e[10]=z);let B;e[11]!==l||e[12]!==F?(B=l(F),e[11]=l,e[12]=F,e[13]=B):B=e[13];let V;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(b,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[14]=V):V=e[14];let H=!!w.keyName,U;e[15]===u?U=e[16]:(U=u(`keyName`),e[15]=u,e[16]=U);let W;e[17]!==H||e[18]!==U?(W=(0,N.jsx)(f,{"aria-invalid":H,id:`keyName`,placeholder:`my-key-pair…`,...U}),e[17]=H,e[18]=U,e[19]=W):W=e[19];let G;e[20]===w.keyName?G=e[21]:(G=(0,N.jsx)(x,{errors:[w.keyName]}),e[20]=w.keyName,e[21]=G);let K;e[22]!==W||e[23]!==G?(K=(0,N.jsxs)(S,{children:[V,W,G]}),e[22]=W,e[23]=G,e[24]=K):K=e[24];let q;e[25]===k?q=e[26]:(q=I(k),e[25]=k,e[26]=q);let J;e[27]===q?J=e[28]:(J=(0,N.jsx)(a,{commands:q}),e[27]=q,e[28]=J);let Y;e[29]===t?Y=e[30]:(Y=async()=>await t({to:`/ec2/describe-key-pairs`}),e[29]=t,e[30]=Y);let X;e[31]!==n.isPending||e[32]!==T||e[33]!==Y?(X=(0,N.jsx)(v,{isPending:n.isPending,isSubmitting:T,onCancel:Y,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[31]=n.isPending,e[32]=T,e[33]=Y,e[34]=X):X=e[34];let Z;e[35]!==K||e[36]!==J||e[37]!==X||e[38]!==B?(Z=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:B,children:[K,J,X]}),e[35]=K,e[36]=J,e[37]=X,e[38]=B,e[39]=Z):Z=e[39];let Q;e[40]===r?Q=e[41]:(Q=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[40]=r,e[41]=Q);let $;return e[42]!==Z||e[43]!==Q||e[44]!==z?($=(0,N.jsxs)(N.Fragment,{children:[L,R,z,Z,Q]}),e[42]=Z,e[43]=Q,e[44]=z,e[45]=$):$=e[45],$}function I(e){let t=e(`keyName`);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:` ${(typeof t==`string`?t:``)||``}`}]}]}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js index 359b9836f..0d20afc4c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-load-balancer.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./trash-2.js";import{t as m}from"./button.js";import{t as h}from"./certificate-import-dialog.js";import{n as g}from"./elbv2.js";import{H as _,Qr as v,X as y,Zt as b,et as x,nr as S,qt as ee,tn as te}from"./index.js";import{i as C,n as w,t as T}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as E,r as D,t as O}from"./field.js";import{t as ae}from"./target-group-form.js";import{a as oe,c as se,o as ce,r as le,s as k,t as ue}from"./elbv22.js";var A=t(n(),1),j=e();function de(e){let t=i(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function M(e){let t=i(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function fe(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function pe(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function N(){let e=v(),{data:t}=r(te),{data:n}=r(b),{data:i}=r(ee),{data:N}=r(x),{data:P}=r(_),{data:he}=r(y),F=g(),[I,L]=(0,A.useState)(null),[ge,R]=(0,A.useState)(!1),z=t.Vpcs??[],_e=n.Subnets??[],ve=i.SecurityGroups??[],ye=N.TargetGroups??[],B=P.CertificateSummaryList??[],be=he.SslPolicies??[],xe=C({resolver:T(le),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:z[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),V=C({resolver:T(oe),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:z[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:Se,register:H,watch:U,control:W,setValue:G,getValues:K,formState:{errors:q,isSubmitting:Ce}}=xe,J=U(`vpcId`),we=U(`subnetIds`),Te=U(`securityGroupIds`),Y=U(`type`),X=U(`listener.protocol`),Z=U(`listener.targetGroupMode`),Ee=U(`tags`),Q=Y===`network`,De=k(X),Oe=se(Y),ke=Q?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],Ae=_e.filter(e=>e.VpcId===J),je=ve.filter(e=>e.VpcId===J),Me=ye.filter(e=>e.VpcId===J),Ne=e=>{let t=fe(e);V.setValue(`protocol`,t),V.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{G(`type`,e);let t=ce(e);G(`listener.protocol`,t),G(`listener.port`,80),G(`listener.certificateArn`,void 0),G(`listener.sslPolicy`,void 0),e===`network`&&G(`securityGroupIds`,[]),Ne(t)},Fe=e=>{G(`listener.protocol`,e);let t=K(`listener.port`);k(e)?(t===80&&G(`listener.port`,443),e===`HTTPS`&&!K(`listener.sslPolicy`)&&G(`listener.sslPolicy`,ue)):(t===443&&G(`listener.port`,80),G(`listener.certificateArn`,void 0),G(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;G(`vpcId`,t,{shouldValidate:!0}),G(`subnetIds`,[],{shouldValidate:!0}),G(`securityGroupIds`,[]),G(`listener.existingTargetGroupArn`,``),V.setValue(`vpcId`,t)},Le=e=>{let t=K(`subnetIds`);G(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Re=e=>{let t=K(`securityGroupIds`);G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ze=async t=>{L(null);let n;if(t.listener.targetGroupMode===`new`){if(!await V.trigger())return;n=V.getValues()}let r=await F.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});L(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=pe(Ae);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(a,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,j.jsx)(ie,{title:`Create Load Balancer`}),F.error&&(0,j.jsx)(ne,{error:F.error,msg:`Failed to create load balancer`}),I?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,I.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:I.error.message}),I.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:I.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Se(ze),children:[(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,j.jsx)(S,{"aria-invalid":!!q.name,id:`lb-name`,placeholder:`my-load-balancer`,...H(`name`)}),(0,j.jsx)(D,{errors:[q.name]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Type`}),(0,j.jsx)(w,{control:W,name:`type`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Scheme`}),(0,j.jsx)(w,{control:W,name:`scheme`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,j.jsx)(w,{control:W,name:`vpcId`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,j.jsx)(o,{placeholder:`Select VPC`})}),(0,j.jsx)(c,{children:z.map(e=>(0,j.jsx)(s,{value:e.VpcId??``,children:de(e)},e.VpcId))})]})}),(0,j.jsx)(D,{errors:[q.vpcId]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Subnets (select at least 1)`}),$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,j.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,j.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Subnet ${M(e)}`,checked:we.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,j.jsx)(`span`,{className:`font-mono`,children:M(e)})]},e.SubnetId))})]},e.az))}),(0,j.jsx)(D,{errors:[q.subnetIds]})]}),!Q&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Security groups`}),je.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:je.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Te.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Tags`}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[Ee.map((e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(S,{placeholder:`Key`,...H(`tags.${t}.key`)}),(0,j.jsx)(S,{placeholder:`Value`,...H(`tags.${t}.value`)}),(0,j.jsx)(m,{onClick:()=>G(`tags`,K(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,j.jsx)(p,{className:`size-3.5`})})]},t)),(0,j.jsxs)(m,{onClick:()=>G(`tags`,[...K(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,j.jsx)(d,{className:`size-3.5`}),`Add tag`]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,j.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,j.jsx)(w,{control:W,name:`listener.protocol`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,j.jsx)(l,{className:`w-full`,id:`listener-protocol`,children:(0,j.jsx)(o,{})}),(0,j.jsx)(c,{children:Oe.map(e=>(0,j.jsx)(s,{value:e,children:e},e))})]})})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,j.jsx)(S,{"aria-invalid":!!q.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...H(`listener.port`,{valueAsNumber:!0})}),(0,j.jsx)(D,{errors:[q.listener?.port]})]}),De&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,j.jsx)(w,{control:W,name:`listener.certificateArn`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,j.jsx)(o,{placeholder:`Select certificate`})}),(0,j.jsx)(c,{children:B.map(e=>(0,j.jsx)(s,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,j.jsx)(D,{errors:[q.listener?.certificateArn]}),(0,j.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[B.length===0&&(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,j.jsx)(m,{className:`ml-auto`,onClick:()=>R(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),X===`HTTPS`&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,j.jsx)(w,{control:W,name:`listener.sslPolicy`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,j.jsx)(l,{className:`w-full`,id:`listener-ssl-policy`,children:(0,j.jsx)(o,{})}),(0,j.jsx)(c,{children:be.map(e=>(0,j.jsx)(s,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:`Default target group`}),(0,j.jsx)(w,{control:W,name:`listener.targetGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Z===`existing`&&(0,j.jsxs)(O,{children:[(0,j.jsx)(E,{children:(0,j.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,j.jsx)(w,{control:W,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,j.jsxs)(u,{onValueChange:e.onChange,value:e.value??``,children:[(0,j.jsx)(l,{"aria-invalid":!!q.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,j.jsx)(o,{placeholder:`Select target group`})}),(0,j.jsx)(c,{children:Me.map(e=>(0,j.jsxs)(s,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,j.jsx)(D,{errors:[q.listener?.existingTargetGroupArn]}),Me.length===0&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Z===`new`&&(0,j.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,j.jsx)(ae,{allowedProtocols:ke,form:V,vpcs:z})})]}),(0,j.jsx)(h,{onImported:e=>G(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:R,open:ge}),(0,j.jsx)(f,{commands:me(U,V.watch)}),(0,j.jsx)(re,{isPending:F.isPending,isSubmitting:Ce,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function me(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),h=n(`listener.existingTargetGroupArn`),g=[],_={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{Ut as a}from"./auth.js";import{t as o}from"./cli-command-panel.js";import{t as s}from"./back-link.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./plus.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{t as g}from"./certificate-import-dialog.js";import{n as _}from"./elbv2.js";import{H as v,X as y,Zt as b,er as x,et as ee,qt as te,tn as ne}from"./index.js";import{i as S,n as C,t as re}from"./zod.js";import{t as ie}from"./error-banner.js";import{t as ae}from"./form-actions.js";import{t as oe}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as se}from"./target-group-form.js";import{a as ce,c as le,o as ue,r as de,s as D,t as fe}from"./elbv22.js";var O=t(n(),1),k=e();function pe(e){let t=a(e.Tags);return t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`}function A(e){let t=a(e.Tags);return`${t?`${e.SubnetId} (${t})`:e.SubnetId} · ${e.CidrBlock}`}function me(e){return e===`TLS`||e===`TCP`?`TCP`:e===`UDP`?`UDP`:e===`TCP_UDP`?`TCP_UDP`:`HTTP`}function he(e){let t=new Map;for(let n of e){let e=n.AvailabilityZone??`unknown`,r=t.get(e)??[];r.push(n),t.set(e,r)}return[...t.entries()].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>({az:e,subnets:t}))}function j(){let e=i(),{data:t}=r(ne),{data:n}=r(b),{data:a}=r(te),{data:j}=r(ee),{data:M}=r(v),{data:_e}=r(y),N=_(),[P,F]=(0,O.useState)(null),[ve,I]=(0,O.useState)(!1),L=t.Vpcs??[],ye=n.Subnets??[],be=a.SecurityGroups??[],xe=j.TargetGroups??[],R=M.CertificateSummaryList??[],Se=_e.SslPolicies??[],Ce=S({resolver:re(de),defaultValues:{name:``,type:`application`,scheme:`internet-facing`,vpcId:L[0]?.VpcId??``,subnetIds:[],securityGroupIds:[],tags:[],listener:{protocol:`HTTP`,port:80,targetGroupMode:`new`,existingTargetGroupArn:``,certificateArn:void 0,sslPolicy:void 0}}}),z=S({resolver:re(ce),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:L[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:we,register:B,watch:V,control:H,setValue:U,getValues:W,formState:{errors:G,isSubmitting:Te}}=Ce,K=V(`vpcId`),Ee=V(`subnetIds`),De=V(`securityGroupIds`),q=V(`type`),J=V(`listener.protocol`),Y=V(`listener.targetGroupMode`),Oe=V(`tags`),X=q===`network`,ke=D(J),Ae=le(q),je=X?[`TCP`,`UDP`,`TLS`,`TCP_UDP`]:[`HTTP`,`HTTPS`],Me=ye.filter(e=>e.VpcId===K),Z=be.filter(e=>e.VpcId===K),Q=xe.filter(e=>e.VpcId===K),Ne=e=>{let t=me(e);z.setValue(`protocol`,t),z.setValue(`healthCheck.protocol`,t===`HTTP`?`HTTP`:`TCP`)},Pe=e=>{U(`type`,e);let t=ue(e);U(`listener.protocol`,t),U(`listener.port`,80),U(`listener.certificateArn`,void 0),U(`listener.sslPolicy`,void 0),e===`network`&&U(`securityGroupIds`,[]),Ne(t)},Fe=e=>{U(`listener.protocol`,e);let t=W(`listener.port`);D(e)?(t===80&&U(`listener.port`,443),e===`HTTPS`&&!W(`listener.sslPolicy`)&&U(`listener.sslPolicy`,fe)):(t===443&&U(`listener.port`,80),U(`listener.certificateArn`,void 0),U(`listener.sslPolicy`,void 0)),Ne(e)},Ie=(e=``)=>{let t=e??``;U(`vpcId`,t,{shouldValidate:!0}),U(`subnetIds`,[],{shouldValidate:!0}),U(`securityGroupIds`,[]),U(`listener.existingTargetGroupArn`,``),z.setValue(`vpcId`,t)},Le=e=>{let t=W(`subnetIds`);U(`subnetIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})},Re=e=>{let t=W(`securityGroupIds`);U(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e])},ze=async t=>{F(null);let n;if(t.listener.targetGroupMode===`new`){if(!await z.trigger())return;n=z.getValues()}let r=await N.mutateAsync({lb:{name:t.name,type:t.type,scheme:t.scheme,vpcId:t.vpcId,subnetIds:t.subnetIds,securityGroupIds:t.securityGroupIds,tags:t.tags},listener:{protocol:t.listener.protocol,port:t.listener.port,targetGroupMode:t.listener.targetGroupMode,existingTargetGroupArn:t.listener.existingTargetGroupArn,certificateArn:t.listener.certificateArn,sslPolicy:t.listener.sslPolicy,newTargetGroup:n}});F(r),!r.error&&r.loadBalancerArn&&e({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(r.loadBalancerArn)}})},$=he(Me);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(s,{to:`/ec2/describe-load-balancers`,children:`Back to load balancers`}),(0,k.jsx)(oe,{title:`Create Load Balancer`}),N.error&&(0,k.jsx)(ie,{error:N.error,msg:`Failed to create load balancer`}),P?.error&&(0,k.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,k.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,P.failedStep]}),(0,k.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:P.error.message}),P.created.length>0&&(0,k.jsxs)(`div`,{className:`mt-3`,children:[(0,k.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources (clean up manually if needed):`}),(0,k.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:P.created.map((e,t)=>(0,k.jsxs)(`li`,{children:[e.type,`: `,e.id??`(created)`]},t))})]})]}),(0,k.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:we(ze),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`lb-name`,children:`Name`})}),(0,k.jsx)(x,{"aria-invalid":!!G.name,id:`lb-name`,placeholder:`my-load-balancer`,...B(`name`)}),(0,k.jsx)(T,{errors:[G.name]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Type`}),(0,k.jsx)(C,{control:H,name:`type`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Application Load Balancer`,checked:e.value===`application`,name:`lb-type`,onChange:()=>Pe(`application`),type:`radio`}),`Application (ALB)`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Network Load Balancer`,checked:e.value===`network`,name:`lb-type`,onChange:()=>Pe(`network`),type:`radio`}),`Network (NLB)`]})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Scheme`}),(0,k.jsx)(C,{control:H,name:`scheme`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Internet-facing`,checked:e.value===`internet-facing`,name:`scheme`,onChange:()=>e.onChange(`internet-facing`),type:`radio`}),`Internet-facing`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Internal`,checked:e.value===`internal`,name:`scheme`,onChange:()=>e.onChange(`internal`),type:`radio`}),`Internal`]})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`lb-vpc`,children:`VPC`})}),(0,k.jsx)(C,{control:H,name:`vpcId`,render:({field:e})=>(0,k.jsxs)(f,{onValueChange:e=>Ie(e),value:e.value??``,children:[(0,k.jsx)(d,{"aria-invalid":!!G.vpcId,className:`w-full`,id:`lb-vpc`,children:(0,k.jsx)(c,{placeholder:`Select VPC`})}),(0,k.jsx)(u,{children:L.map(e=>(0,k.jsx)(l,{value:e.VpcId??``,children:pe(e)},e.VpcId))})]})}),(0,k.jsx)(T,{errors:[G.vpcId]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Subnets (select at least 1)`}),$.length===0?(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the selected VPC.`}):(0,k.jsx)(`div`,{className:`space-y-3`,children:$.map(e=>(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:e.az}),(0,k.jsx)(`div`,{className:`space-y-1`,children:e.subnets.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Subnet ${A(e)}`,checked:Ee.includes(e.SubnetId??``),onChange:()=>Le(e.SubnetId??``),type:`checkbox`}),(0,k.jsx)(`span`,{className:`font-mono`,children:A(e)})]},e.SubnetId))})]},e.az))}),(0,k.jsx)(T,{errors:[G.subnetIds]})]}),!X&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Security groups`}),Z.length===0?(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the selected VPC.`}):(0,k.jsx)(`div`,{className:`space-y-1`,children:Z.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:De.includes(e.GroupId??``),onChange:()=>Re(e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Tags`}),(0,k.jsxs)(`div`,{className:`space-y-2`,children:[Oe.map((e,t)=>(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,k.jsx)(x,{placeholder:`Key`,...B(`tags.${t}.key`)}),(0,k.jsx)(x,{placeholder:`Value`,...B(`tags.${t}.value`)}),(0,k.jsx)(h,{onClick:()=>U(`tags`,W(`tags`).filter((e,n)=>n!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,k.jsx)(m,{className:`size-3.5`})})]},t)),(0,k.jsxs)(h,{onClick:()=>U(`tags`,[...W(`tags`),{key:``,value:``}]),size:`sm`,type:`button`,variant:`outline`,children:[(0,k.jsx)(p,{className:`size-3.5`}),`Add tag`]})]})]}),(0,k.jsxs)(`div`,{className:`space-y-4 rounded-md border bg-card p-4`,children:[(0,k.jsx)(`h2`,{className:`text-sm font-semibold`,children:`First listener & default target group`}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-protocol`,children:`Protocol`})}),(0,k.jsx)(C,{control:H,name:`listener.protocol`,render:({field:e})=>(0,k.jsxs)(f,{onValueChange:e=>{e&&Fe(e)},value:e.value,children:[(0,k.jsx)(d,{className:`w-full`,id:`listener-protocol`,children:(0,k.jsx)(c,{})}),(0,k.jsx)(u,{children:Ae.map(e=>(0,k.jsx)(l,{value:e,children:e},e))})]})})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-port`,children:`Port`})}),(0,k.jsx)(x,{"aria-invalid":!!G.listener?.port,id:`listener-port`,inputMode:`numeric`,type:`number`,...B(`listener.port`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[G.listener?.port]})]}),ke&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-certificate`,children:`Certificate`})}),(0,k.jsx)(C,{control:H,name:`listener.certificateArn`,render:({field:e})=>(0,k.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,k.jsx)(d,{"aria-invalid":!!G.listener?.certificateArn,className:`w-full`,id:`listener-certificate`,children:(0,k.jsx)(c,{placeholder:`Select certificate`})}),(0,k.jsx)(u,{children:R.map(e=>(0,k.jsx)(l,{value:e.CertificateArn??``,children:e.DomainName??e.CertificateArn?.split(`/`).pop()},e.CertificateArn))})]})}),(0,k.jsx)(T,{errors:[G.listener?.certificateArn]}),(0,k.jsxs)(`div`,{className:`mt-1 flex items-center justify-between`,children:[R.length===0&&(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No certificates imported yet.`}),(0,k.jsx)(h,{className:`ml-auto`,onClick:()=>I(!0),size:`sm`,type:`button`,variant:`ghost`,children:`Import certificate…`})]})]}),J===`HTTPS`&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`listener-ssl-policy`,children:`Security policy`})}),(0,k.jsx)(C,{control:H,name:`listener.sslPolicy`,render:({field:e})=>(0,k.jsxs)(f,{onValueChange:e.onChange,value:e.value??`ELBSecurityPolicy-2016-08`,children:[(0,k.jsx)(d,{className:`w-full`,id:`listener-ssl-policy`,children:(0,k.jsx)(c,{})}),(0,k.jsx)(u,{children:Se.map(e=>(0,k.jsx)(l,{value:e.Name??``,children:e.Name},e.Name))})]})})]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:`Default target group`}),(0,k.jsx)(C,{control:H,name:`listener.targetGroupMode`,render:({field:e})=>(0,k.jsxs)(`div`,{className:`flex gap-4`,children:[(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Create new target group`,checked:e.value===`new`,name:`tg-mode`,onChange:()=>e.onChange(`new`),type:`radio`}),`Create new`]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{"aria-label":`Use existing target group`,checked:e.value===`existing`,name:`tg-mode`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Use existing`]})]})})]}),Y===`existing`&&(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`tg-existing`,children:`Target group`})}),(0,k.jsx)(C,{control:H,name:`listener.existingTargetGroupArn`,render:({field:e})=>(0,k.jsxs)(f,{onValueChange:e.onChange,value:e.value??``,children:[(0,k.jsx)(d,{"aria-invalid":!!G.listener?.existingTargetGroupArn,className:`w-full`,id:`tg-existing`,children:(0,k.jsx)(c,{placeholder:`Select target group`})}),(0,k.jsx)(u,{children:Q.map(e=>(0,k.jsxs)(l,{value:e.TargetGroupArn??``,children:[e.TargetGroupName,` · `,e.Protocol,`:`,e.Port]},e.TargetGroupArn))})]})}),(0,k.jsx)(T,{errors:[G.listener?.existingTargetGroupArn]}),Q.length===0&&(0,k.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`No target groups in this VPC. Choose “Create new” instead.`})]}),Y===`new`&&(0,k.jsx)(`div`,{className:`space-y-4 border-l-2 border-muted pl-4`,children:(0,k.jsx)(se,{allowedProtocols:je,form:z,vpcs:L})})]}),(0,k.jsx)(g,{onImported:e=>U(`listener.certificateArn`,e,{shouldValidate:!0}),onOpenChange:I,open:ve}),(0,k.jsx)(o,{commands:ge(V,z.watch)}),(0,k.jsx)(ae,{isPending:N.isPending,isSubmitting:Te,onCancel:async()=>await e({to:`/ec2/describe-load-balancers`}),pendingLabel:`Creating…`,submitLabel:`Create Load Balancer`})]})]})}function ge(e,t){let n=t=>{let n=e(t);return typeof n==`string`?n:``},r=t=>{let n=e(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]},i=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},a=n(`name`)||``,o=n(`type`)||`application`,s=n(`scheme`)||`internet-facing`,c=r(`subnetIds`),l=r(`securityGroupIds`),u=n(`listener.protocol`)||`HTTP`,d=i(`listener.port`)??80,f=n(`listener.certificateArn`),p=n(`listener.sslPolicy`),m=n(`listener.targetGroupMode`),h=n(`listener.existingTargetGroupArn`),g=[],_={type:`comment`,value:o===`network`?`# Create NLB with listener and default target group `:`# Create ALB with listener and default target group @@ -18,4 +18,4 @@ import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./use --port`},{type:`value`,value:` ${d}`}];return(u===`HTTPS`||u===`TLS`)&&f&&(x.push({type:`flag`,value:` \\ --certificates`},{type:`value`,value:` CertificateArn=${f}`}),u===`HTTPS`&&p&&x.push({type:`flag`,value:` \\ --ssl-policy`},{type:`value`,value:` ${p}`})),x.push({type:`flag`,value:` \\ - --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),g.push({label:`Create Listener`,parts:x}),g}var P=N;export{P as component}; \ No newline at end of file + --default-actions`},{type:`value`,value:` Type=forward,TargetGroupArn="$TG_ARN"`}),g.push({label:`Create Listener`,parts:x}),g}var M=j;export{M as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js index 05eb25b82..3da6f01c3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{ni as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as c,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{m as re}from"./ec2.js";import{Dt as ie,Qr as ae,Zt as oe,nr as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ae(),{data:i}=n(oe),{data:s}=n(ie),f=re(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=ce(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.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[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(se,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ee,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(ue,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ee,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(ne,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),i=typeof r==`string`?r:``,a=e(`name`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{ni as ee}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./back-link.js";import{c as te,i as s,n as ne,s as re,t as ie}from"./select.js";import{m as ae}from"./ec2.js";import{Dt as oe,Zt as se,er as ce}from"./index.js";import{a as le,i as ue,n as c,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=r(),{data:i}=n(se),{data:s}=n(oe),f=ae(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=ue(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=le(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.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[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(ce,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(ie,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(re,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(te,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ne,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(c,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(c,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(ie,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(re,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(te,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ne,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(ee,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(a,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),ee=typeof r==`string`?r:``,i=e(`name`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --allocation-id`},{type:`value`,value:` ${i||``}`}];return o.trim()&&s.push({type:`flag`,value:` \\ - --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${o.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:s}]}export{f as component}; \ No newline at end of file + --allocation-id`},{type:`value`,value:` ${ee||``}`}];return a.trim()&&o.push({type:`flag`,value:` \\ + --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${a.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:o}]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js index ae3036599..44bc18587 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-placement-group.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as ee,t as o}from"./select.js";import{t as te}from"./cli-command-panel.js";import{h as ne}from"./ec2.js";import{Qr as s,nr as c}from"./index.js";import{a as l,i as u,n as d,t as f}from"./zod.js";import{t as p}from"./error-banner.js";import{t as m}from"./form-actions.js";import{t as h}from"./page-heading.js";import{a as g,r as _,t as v}from"./field.js";import{c as re}from"./ec22.js";var ie=t(),y=e();function b(){let e=(0,ie.c)(56),t=s(),b=ne(),x;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:f(re),defaultValues:{groupName:``,strategy:`spread`}},e[0]=x):x=e[0];let{control:S,handleSubmit:C,register:w,formState:oe}=u(x),{errors:T,isSubmitting:E}=oe,D;e[1]===S?D=e[2]:(D={control:S},e[1]=S,e[2]=D);let O=l(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==b||e[6]!==t?(j=async e=>{t({to:`/ec2/describe-placement-groups/$id`,params:{id:(await b.mutateAsync(e)).PlacementGroup?.GroupId??``}})},e[5]=b,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(n,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(h,{title:`Create Placement Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===b.error?F=e[11]:(F=b.error&&(0,y.jsx)(p,{error:b.error,msg:`Failed to create placement group`}),e[10]=b.error,e[11]=F);let I;e[12]!==C||e[13]!==M?(I=C(M),e[12]=C,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(g,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===w?z=e[17]:(z=w(`groupName`),e[16]=w,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,y.jsx)(c,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,y.jsx)(_,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,y.jsxs)(v,{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,y.jsx)(g,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[26]=U):U=e[26];let W;e[27]===T.strategy?W=e[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(o,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(ee,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(r,{})}),(0,y.jsxs)(a,{children:[(0,y.jsx)(i,{value:`spread`,children:`spread`}),(0,y.jsx)(i,{value:`cluster`,children:`cluster`})]})]})},e[27]=T.strategy,e[28]=W);let G;e[29]!==S||e[30]!==W?(G=(0,y.jsx)(d,{control:S,name:`strategy`,render:W}),e[29]=S,e[30]=W,e[31]=G):G=e[31];let K;e[32]===T.strategy?K=e[33]:(K=(0,y.jsx)(_,{errors:[T.strategy]}),e[32]=T.strategy,e[33]=K);let q;e[34]!==G||e[35]!==K?(q=(0,y.jsxs)(v,{children:[U,G,K]}),e[34]=G,e[35]=K,e[36]=q):q=e[36];let J;e[37]===A?J=e[38]:(J=ae(A),e[37]=A,e[38]=J);let Y;e[39]===J?Y=e[40]:(Y=(0,y.jsx)(te,{commands:J}),e[39]=J,e[40]=Y);let X;e[41]===t?X=e[42]:(X=async()=>await t({to:`/ec2/describe-placement-groups`}),e[41]=t,e[42]=X);let Z;e[43]!==b.isPending||e[44]!==E||e[45]!==X?(Z=(0,y.jsx)(m,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[43]=b.isPending,e[44]=E,e[45]=X,e[46]=Z):Z=e[46];let Q;e[47]!==H||e[48]!==q||e[49]!==Y||e[50]!==Z||e[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[47]=H,e[48]=q,e[49]=Y,e[50]=Z,e[51]=I,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),e[53]=Q,e[54]=F,e[55]=$):$=e[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;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.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{c as ee,i as a,n as o,s as te,t as ne}from"./select.js";import{h as s}from"./ec2.js";import{er as c}from"./index.js";import{a as l,i as u,n as d,t as f}from"./zod.js";import{t as p}from"./error-banner.js";import{t as m}from"./form-actions.js";import{t as h}from"./page-heading.js";import{a as g,r as _,t as v}from"./field.js";import{c as re}from"./ec22.js";var ie=t(),y=e();function b(){let e=(0,ie.c)(56),t=n(),b=s(),x;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={resolver:f(re),defaultValues:{groupName:``,strategy:`spread`}},e[0]=x):x=e[0];let{control:S,handleSubmit:C,register:w,formState:oe}=u(x),{errors:T,isSubmitting:E}=oe,D;e[1]===S?D=e[2]:(D={control:S},e[1]=S,e[2]=D);let O=l(D),k;e[3]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==b||e[6]!==t?(j=async e=>{t({to:`/ec2/describe-placement-groups/$id`,params:{id:(await b.mutateAsync(e)).PlacementGroup?.GroupId??``}})},e[5]=b,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,y.jsx)(i,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),P=(0,y.jsx)(h,{title:`Create Placement Group`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===b.error?F=e[11]:(F=b.error&&(0,y.jsx)(p,{error:b.error,msg:`Failed to create placement group`}),e[10]=b.error,e[11]=F);let I;e[12]!==C||e[13]!==M?(I=C(M),e[12]=C,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(g,{children:(0,y.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[15]=L):L=e[15];let R=!!T.groupName,z;e[16]===w?z=e[17]:(z=w(`groupName`),e[16]=w,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,y.jsx)(c,{"aria-invalid":R,id:`groupName`,placeholder:`my-placement-group`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.groupName?V=e[22]:(V=(0,y.jsx)(_,{errors:[T.groupName]}),e[21]=T.groupName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,y.jsxs)(v,{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,y.jsx)(g,{children:(0,y.jsx)(`label`,{htmlFor:`strategy`,children:`Strategy`})}),e[26]=U):U=e[26];let W;e[27]===T.strategy?W=e[28]:(W=e=>{let{field:t}=e;return(0,y.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,y.jsx)(te,{"aria-invalid":!!T.strategy,className:`w-full`,id:`strategy`,children:(0,y.jsx)(ee,{})}),(0,y.jsxs)(o,{children:[(0,y.jsx)(a,{value:`spread`,children:`spread`}),(0,y.jsx)(a,{value:`cluster`,children:`cluster`})]})]})},e[27]=T.strategy,e[28]=W);let G;e[29]!==S||e[30]!==W?(G=(0,y.jsx)(d,{control:S,name:`strategy`,render:W}),e[29]=S,e[30]=W,e[31]=G):G=e[31];let K;e[32]===T.strategy?K=e[33]:(K=(0,y.jsx)(_,{errors:[T.strategy]}),e[32]=T.strategy,e[33]=K);let q;e[34]!==G||e[35]!==K?(q=(0,y.jsxs)(v,{children:[U,G,K]}),e[34]=G,e[35]=K,e[36]=q):q=e[36];let J;e[37]===A?J=e[38]:(J=ae(A),e[37]=A,e[38]=J);let Y;e[39]===J?Y=e[40]:(Y=(0,y.jsx)(r,{commands:J}),e[39]=J,e[40]=Y);let X;e[41]===t?X=e[42]:(X=async()=>await t({to:`/ec2/describe-placement-groups`}),e[41]=t,e[42]=X);let Z;e[43]!==b.isPending||e[44]!==E||e[45]!==X?(Z=(0,y.jsx)(m,{isPending:b.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Placement Group`}),e[43]=b.isPending,e[44]=E,e[45]=X,e[46]=Z):Z=e[46];let Q;e[47]!==H||e[48]!==q||e[49]!==Y||e[50]!==Z||e[51]!==I?(Q=(0,y.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[47]=H,e[48]=q,e[49]=Y,e[50]=Z,e[51]=I,e[52]=Q):Q=e[52];let $;return e[53]!==Q||e[54]!==F?($=(0,y.jsxs)(y.Fragment,{children:[N,P,F,Q]}),e[53]=Q,e[54]=F,e[55]=$):$=e[55],$}function x(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function ae(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`strategy`),i=typeof r==`string`?r:``;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:` ${n?x(n):``}`},{type:`flag`,value:` \\ --strategy`},{type:`value`,value:` ${i||`spread`}`}]}]}export{b as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js index b30796d4f..55f3c3473 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-policy.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{o as i}from"./iam.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{r as oe}from"./iam2.js";var se=t(),f=e(),p=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let e=(0,se.c)(67),t=a(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{policyDocument:p}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-policies`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,f.jsx)(n,{to:`/iam/list-policies`,children:`Back to policies`}),k=(0,f.jsx)(ie,{title:`Create Policy`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,f.jsx)(ne,{error:m.error,msg:`Failed to create policy`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[15]=M):M=e[15];let N=!!b.policyName,P;e[16]===v?P=e[17]:(P=v(`policyName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,f.jsx)(o,{"aria-invalid":N,id:`policyName`,placeholder:`my-policy...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.policyName?I=e[22]:(I=(0,f.jsx)(u,{errors:[b.policyName]}),e[21]=b.policyName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,f.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,f.jsx)(o,{id:`description`,placeholder:`A brief description of this policy...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,f.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.policyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,f.jsx)(ae,{error:!!b.policyDocument,id:`policyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.policyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,f.jsx)(ee,{control:y,name:`policyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.policyDocument?K=e[43]:(K=(0,f.jsx)(u,{errors:[b.policyDocument]}),e[42]=b.policyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,f.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-policies`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,f.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,f.jsxs)(f.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{o as a}from"./iam.js";import{er as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{r as oe}from"./iam2.js";var se=t(),f=e(),p=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Action:`*`,Resource:`*`}]},null,2);function m(){let e=(0,se.c)(67),t=n(),m=a(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{policyDocument:p}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-policies`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,f.jsx)(i,{to:`/iam/list-policies`,children:`Back to policies`}),k=(0,f.jsx)(ie,{title:`Create Policy`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,f.jsx)(ne,{error:m.error,msg:`Failed to create policy`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyName`,children:`Policy Name`})}),e[15]=M):M=e[15];let N=!!b.policyName,P;e[16]===v?P=e[17]:(P=v(`policyName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,f.jsx)(o,{"aria-invalid":N,id:`policyName`,placeholder:`my-policy...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.policyName?I=e[22]:(I=(0,f.jsx)(u,{errors:[b.policyName]}),e[21]=b.policyName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,f.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,f.jsx)(o,{id:`description`,placeholder:`A brief description of this policy...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,f.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,f.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,f.jsx)(l,{children:(0,f.jsx)(`label`,{htmlFor:`policyDocument`,children:`Policy Document (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.policyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,f.jsx)(ae,{error:!!b.policyDocument,id:`policyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.policyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,f.jsx)(ee,{control:y,name:`policyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.policyDocument?K=e[43]:(K=(0,f.jsx)(u,{errors:[b.policyDocument]}),e[42]=b.policyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,f.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,f.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-policies`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,f.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Policy`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,f.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,f.jsxs)(f.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`policyName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`policyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-policy`},{type:`flag`,value:` \\ --policy-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Policy`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js index 733a2af32..531ef6f8a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-role.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-role.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{s as i}from"./iam.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{i as oe,t as se}from"./iam2.js";var f=t(),p=e();function m(){let e=(0,f.c)(67),t=a(),m=i(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{assumeRolePolicyDocument:se}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-roles`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(n,{to:`/iam/list-roles`,children:`Back to roles`}),k=(0,p.jsx)(ie,{title:`Create Role`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,p.jsx)(ne,{error:m.error,msg:`Failed to create role`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),e[15]=M):M=e[15];let N=!!b.roleName,P;e[16]===v?P=e[17]:(P=v(`roleName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,p.jsx)(o,{"aria-invalid":N,id:`roleName`,placeholder:`my-role...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.roleName?I=e[22]:(I=(0,p.jsx)(u,{errors:[b.roleName]}),e[21]=b.roleName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,p.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,p.jsx)(o,{id:`description`,placeholder:`A brief description of this role...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,p.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.assumeRolePolicyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,p.jsx)(ae,{error:!!b.assumeRolePolicyDocument,id:`assumeRolePolicyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.assumeRolePolicyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,p.jsx)(ee,{control:y,name:`assumeRolePolicyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.assumeRolePolicyDocument?K=e[43]:(K=(0,p.jsx)(u,{errors:[b.assumeRolePolicyDocument]}),e[42]=b.assumeRolePolicyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,p.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,p.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-roles`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,p.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,p.jsxs)(p.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{s as a}from"./iam.js";import{er as o}from"./index.js";import{a as s,i as c,n as ee,t as te}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as ie}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{t as ae}from"./json-editor.js";import{i as oe,t as se}from"./iam2.js";var f=t(),p=e();function m(){let e=(0,f.c)(67),t=n(),m=a(),g;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={resolver:te(oe),defaultValues:{assumeRolePolicyDocument:se}},e[0]=g):g=e[0];let{handleSubmit:_,register:v,control:y,formState:ce}=c(g),{errors:b,isSubmitting:x}=ce,S;e[1]===y?S=e[2]:(S={control:y},e[1]=y,e[2]=S);let C=s(S),w;e[3]===C?w=e[4]:(w=e=>e?C[e]:void 0,e[3]=C,e[4]=w);let T=w,E;e[5]!==m||e[6]!==t?(E=async e=>{await m.mutateAsync(e),t({to:`/iam/list-roles`})},e[5]=m,e[6]=t,e[7]=E):E=e[7];let D=E,O,k;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,p.jsx)(i,{to:`/iam/list-roles`,children:`Back to roles`}),k=(0,p.jsx)(ie,{title:`Create Role`}),e[8]=O,e[9]=k):(O=e[8],k=e[9]);let A;e[10]===m.error?A=e[11]:(A=m.error&&(0,p.jsx)(ne,{error:m.error,msg:`Failed to create role`}),e[10]=m.error,e[11]=A);let j;e[12]!==_||e[13]!==D?(j=_(D),e[12]=_,e[13]=D,e[14]=j):j=e[14];let M;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`roleName`,children:`Role Name`})}),e[15]=M):M=e[15];let N=!!b.roleName,P;e[16]===v?P=e[17]:(P=v(`roleName`),e[16]=v,e[17]=P);let F;e[18]!==N||e[19]!==P?(F=(0,p.jsx)(o,{"aria-invalid":N,id:`roleName`,placeholder:`my-role...`,...P}),e[18]=N,e[19]=P,e[20]=F):F=e[20];let I;e[21]===b.roleName?I=e[22]:(I=(0,p.jsx)(u,{errors:[b.roleName]}),e[21]=b.roleName,e[22]=I);let L;e[23]!==F||e[24]!==I?(L=(0,p.jsxs)(d,{children:[M,F,I]}),e[23]=F,e[24]=I,e[25]=L):L=e[25];let R;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[26]=R):R=e[26];let z;e[27]===v?z=e[28]:(z=v(`description`),e[27]=v,e[28]=z);let B;e[29]===z?B=e[30]:(B=(0,p.jsx)(o,{id:`description`,placeholder:`A brief description of this role...`,...z}),e[29]=z,e[30]=B);let V;e[31]===b.description?V=e[32]:(V=(0,p.jsx)(u,{errors:[b.description]}),e[31]=b.description,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(d,{children:[R,B,V]}),e[33]=B,e[34]=V,e[35]=H):H=e[35];let U;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,p.jsx)(l,{children:(0,p.jsx)(`label`,{htmlFor:`assumeRolePolicyDocument`,children:`Trust Policy (JSON)`})}),e[36]=U):U=e[36];let W;e[37]===b.assumeRolePolicyDocument?W=e[38]:(W=e=>{let{field:t}=e,{onBlur:n,onChange:r,ref:i,value:a}=t;return(0,p.jsx)(ae,{error:!!b.assumeRolePolicyDocument,id:`assumeRolePolicyDocument`,onBlur:n,onChange:r,ref:i,rows:15,value:a})},e[37]=b.assumeRolePolicyDocument,e[38]=W);let G;e[39]!==y||e[40]!==W?(G=(0,p.jsx)(ee,{control:y,name:`assumeRolePolicyDocument`,render:W}),e[39]=y,e[40]=W,e[41]=G):G=e[41];let K;e[42]===b.assumeRolePolicyDocument?K=e[43]:(K=(0,p.jsx)(u,{errors:[b.assumeRolePolicyDocument]}),e[42]=b.assumeRolePolicyDocument,e[43]=K);let q;e[44]!==G||e[45]!==K?(q=(0,p.jsxs)(d,{children:[U,G,K]}),e[44]=G,e[45]=K,e[46]=q):q=e[46];let J;e[47]===T?J=e[48]:(J=h(T),e[47]=T,e[48]=J);let Y;e[49]===J?Y=e[50]:(Y=(0,p.jsx)(r,{commands:J}),e[49]=J,e[50]=Y);let X;e[51]===t?X=e[52]:(X=async()=>await t({to:`/iam/list-roles`}),e[51]=t,e[52]=X);let Z;e[53]!==m.isPending||e[54]!==x||e[55]!==X?(Z=(0,p.jsx)(re,{isPending:m.isPending,isSubmitting:x,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create Role`}),e[53]=m.isPending,e[54]=x,e[55]=X,e[56]=Z):Z=e[56];let Q;e[57]!==L||e[58]!==H||e[59]!==q||e[60]!==Y||e[61]!==Z||e[62]!==j?(Q=(0,p.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:j,children:[L,H,q,Y,Z]}),e[57]=L,e[58]=H,e[59]=q,e[60]=Y,e[61]=Z,e[62]=j,e[63]=Q):Q=e[63];let $;return e[64]!==Q||e[65]!==A?($=(0,p.jsxs)(p.Fragment,{children:[O,k,A,Q]}),e[64]=Q,e[65]=A,e[66]=$):$=e[66],$}function h(e){let t=e(`roleName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`assumeRolePolicyDocument`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-role`},{type:`flag`,value:` \\ --role-name`},{type:`value`,value:` ${n||``}`}];return i&&s.push({type:`flag`,value:` \\ --description`},{type:`value`,value:` "${i}"`}),s.push({type:`flag`,value:` \\ --assume-role-policy-document`},{type:`value`,value:` '${o||``}'`}),[{label:`Create Role`,parts:s}]}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js index e83f98360..bd6d9351b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-route-table.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ut as r}from"./auth.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{_ as u}from"./ec2.js";import{Qr as d,nr as f,tn as p}from"./index.js";import{i as m,n as h,t as g}from"./zod.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=d(),{data:r}=n(p),o=u(),E;e[0]===r.Vpcs?E=e[1]:(E=r.Vpcs??[],e[0]=r.Vpcs,e[1]=E);let O=E,k;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(k={resolver:g(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=m(k),{errors:P,isSubmitting:F}=N,I;e[3]!==o||e[4]!==t?(I=async e=>{let n=(await o.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]=o,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)(i,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z=(0,T.jsx)(y,{title:`Create Route Table`}),e[6]=R,e[7]=z):(R=e[6],z=e[7]);let B;e[8]===o.error?B=e[9]:(B=o.error&&(0,T.jsx)(_,{error:o.error,msg:`Failed to create Route Table`}),e[8]=o.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)(b,{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)(f,{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)(b,{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)(l,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,T.jsx)(c,{"aria-invalid":!!P.vpcId,className:`w-full`,id:`vpcId`,children:(0,T.jsx)(a,{placeholder:`Select a VPC`})}),(0,T.jsx)(s,{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)(h,{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)(x,{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]!==o.isPending||e[33]!==F||e[34]!==X?(Z=(0,T.jsx)(v,{isPending:o.isPending,isSubmitting:F,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Route Table`}),e[32]=o.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=r(e.Tags);return(0,T.jsx)(o,{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.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{_ as d}from"./ec2.js";import{er as f,tn as p}from"./index.js";import{i as m,n as h,t as g}from"./zod.js";import{t as _}from"./error-banner.js";import{t as v}from"./form-actions.js";import{t as y}from"./page-heading.js";import{a as b,r as x,t as S}from"./field.js";import{u as C}from"./ec22.js";var w=t(),T=e();function E(){let e=(0,w.c)(44),t=r(),{data:i}=n(p),s=d(),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:g(C),defaultValues:{vpcId:``,name:``}},e[2]=k):k=e[2];let{control:A,handleSubmit:j,register:M,formState:N}=m(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)(y,{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)(_,{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)(b,{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)(f,{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)(b,{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)(h,{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)(x,{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)(v,{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.js b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js index c2c82a281..a8f1b96c8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-security-group.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ut as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s as te,t as ne}from"./select.js";import{t as re}from"./cli-command-panel.js";import{v as ie}from"./ec2.js";import{Qr as ae,nr as oe,tn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as s,r as c,t as l}from"./field.js";import{d as he}from"./ec22.js";var ge=t(),u=e();function d(){let e=(0,ge.c)(73),t=ae(),{data:r}=n(se),a=ie(),d;e[0]===r.Vpcs?d=e[1]:(d=r.Vpcs??[],e[0]=r.Vpcs,e[1]=d);let f=d,p;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=de(he),e[2]=p):p=e[2];let m=f[0]?.VpcId??``,h;e[3]===m?h=e[4]:(h={resolver:p,defaultValues:{groupName:``,description:``,vpcId:m}},e[3]=m,e[4]=h);let{control:g,handleSubmit:_,register:v,formState:ye}=le(h),{errors:y,isSubmitting:b}=ye,x;e[5]===g?x=e[6]:(x={control:g},e[5]=g,e[6]=x);let S=ce(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==a||e[10]!==t?(T=async e=>{let n=(await a.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=a,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(ee,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,u.jsx)(me,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===a.error?k=e[15]:(k=a.error&&(0,u.jsx)(fe,{error:a.error,msg:`Failed to create security group`}),e[14]=a.error,e[15]=k);let A;e[16]!==_||e[17]!==E?(A=_(E),e[16]=_,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!y.groupName,N;e[20]===v?N=e[21]:(N=v(`groupName`),e[20]=v,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,u.jsx)(oe,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===y.groupName?F=e[26]:(F=(0,u.jsx)(c,{errors:[y.groupName]}),e[25]=y.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,u.jsxs)(l,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!y.description,z;e[31]===v?z=e[32]:(z=v(`description`),e[31]=v,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,u.jsx)(oe,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===y.description?V=e[37]:(V=(0,u.jsx)(c,{errors:[y.description]}),e[36]=y.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,u.jsxs)(l,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(s,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==y.vpcId||e[43]!==f?(W=e=>{let{field:t}=e;return(0,u.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(te,{"aria-invalid":!!y.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:f.map(_e)})]})},e[42]=y.vpcId,e[43]=f,e[44]=W):W=e[44];let G;e[45]!==g||e[46]!==W?(G=(0,u.jsx)(ue,{control:g,name:`vpcId`,render:W}),e[45]=g,e[46]=W,e[47]=G):G=e[47];let K;e[48]===y.vpcId?K=e[49]:(K=(0,u.jsx)(c,{errors:[y.vpcId]}),e[48]=y.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,u.jsxs)(l,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=ve(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(re,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==a.isPending||e[60]!==b||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:a.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=a.isPending,e[60]=b,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function _e(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ve(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),ee=typeof r==`string`?r:``,i=e(`vpcId`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{Ut as i}from"./auth.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as ee,s as te,t as ne}from"./select.js";import{v as re}from"./ec2.js";import{er as ie,tn as ae}from"./index.js";import{a as oe,i as se,n as ce,t as le}from"./zod.js";import{t as ue}from"./error-banner.js";import{t as de}from"./form-actions.js";import{t as fe}from"./page-heading.js";import{a as l,r as pe,t as me}from"./field.js";import{d as he}from"./ec22.js";var ge=t(),u=e();function d(){let e=(0,ge.c)(73),t=r(),{data:i}=n(ae),c=re(),d;e[0]===i.Vpcs?d=e[1]:(d=i.Vpcs??[],e[0]=i.Vpcs,e[1]=d);let f=d,p;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=le(he),e[2]=p):p=e[2];let m=f[0]?.VpcId??``,h;e[3]===m?h=e[4]:(h={resolver:p,defaultValues:{groupName:``,description:``,vpcId:m}},e[3]=m,e[4]=h);let{control:g,handleSubmit:_,register:v,formState:ye}=se(h),{errors:y,isSubmitting:b}=ye,x;e[5]===g?x=e[6]:(x={control:g},e[5]=g,e[6]=x);let S=oe(x),C;e[7]===S?C=e[8]:(C=e=>e?S[e]:void 0,e[7]=S,e[8]=C);let w=C,T;e[9]!==c||e[10]!==t?(T=async e=>{let n=(await c.mutateAsync(e)).GroupId;t(n?{to:`/ec2/describe-security-groups/$id`,params:{id:n}}:{to:`/ec2/describe-security-groups`})},e[9]=c,e[10]=t,e[11]=T):T=e[11];let E=T,D,O;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,u.jsx)(o,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),O=(0,u.jsx)(fe,{title:`Create Security Group`}),e[12]=D,e[13]=O):(D=e[12],O=e[13]);let k;e[14]===c.error?k=e[15]:(k=c.error&&(0,u.jsx)(ue,{error:c.error,msg:`Failed to create security group`}),e[14]=c.error,e[15]=k);let A;e[16]!==_||e[17]!==E?(A=_(E),e[16]=_,e[17]=E,e[18]=A):A=e[18];let j;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,u.jsx)(l,{children:(0,u.jsx)(`label`,{htmlFor:`groupName`,children:`Group Name`})}),e[19]=j):j=e[19];let M=!!y.groupName,N;e[20]===v?N=e[21]:(N=v(`groupName`),e[20]=v,e[21]=N);let P;e[22]!==M||e[23]!==N?(P=(0,u.jsx)(ie,{"aria-invalid":M,id:`groupName`,placeholder:`my-security-group`,...N}),e[22]=M,e[23]=N,e[24]=P):P=e[24];let F;e[25]===y.groupName?F=e[26]:(F=(0,u.jsx)(pe,{errors:[y.groupName]}),e[25]=y.groupName,e[26]=F);let I;e[27]!==P||e[28]!==F?(I=(0,u.jsxs)(me,{children:[j,P,F]}),e[27]=P,e[28]=F,e[29]=I):I=e[29];let L;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,u.jsx)(l,{children:(0,u.jsx)(`label`,{htmlFor:`description`,children:`Description`})}),e[30]=L):L=e[30];let R=!!y.description,z;e[31]===v?z=e[32]:(z=v(`description`),e[31]=v,e[32]=z);let B;e[33]!==R||e[34]!==z?(B=(0,u.jsx)(ie,{"aria-invalid":R,id:`description`,placeholder:`My security group description`,...z}),e[33]=R,e[34]=z,e[35]=B):B=e[35];let V;e[36]===y.description?V=e[37]:(V=(0,u.jsx)(pe,{errors:[y.description]}),e[36]=y.description,e[37]=V);let H;e[38]!==B||e[39]!==V?(H=(0,u.jsxs)(me,{children:[L,B,V]}),e[38]=B,e[39]=V,e[40]=H):H=e[40];let U;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(l,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[41]=U):U=e[41];let W;e[42]!==y.vpcId||e[43]!==f?(W=e=>{let{field:t}=e;return(0,u.jsxs)(ne,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(te,{"aria-invalid":!!y.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(s,{})}),(0,u.jsx)(ee,{children:f.map(_e)})]})},e[42]=y.vpcId,e[43]=f,e[44]=W):W=e[44];let G;e[45]!==g||e[46]!==W?(G=(0,u.jsx)(ce,{control:g,name:`vpcId`,render:W}),e[45]=g,e[46]=W,e[47]=G):G=e[47];let K;e[48]===y.vpcId?K=e[49]:(K=(0,u.jsx)(pe,{errors:[y.vpcId]}),e[48]=y.vpcId,e[49]=K);let q;e[50]!==G||e[51]!==K?(q=(0,u.jsxs)(me,{children:[U,G,K]}),e[50]=G,e[51]=K,e[52]=q):q=e[52];let J;e[53]===w?J=e[54]:(J=ve(w),e[53]=w,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(a,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-security-groups`}),e[57]=t,e[58]=X);let Z;e[59]!==c.isPending||e[60]!==b||e[61]!==X?(Z=(0,u.jsx)(de,{isPending:c.isPending,isSubmitting:b,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Security Group`}),e[59]=c.isPending,e[60]=b,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==A||e[64]!==I||e[65]!==H||e[66]!==q||e[67]!==Y||e[68]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:A,children:[I,H,q,Y,Z]}),e[63]=A,e[64]=I,e[65]=H,e[66]=q,e[67]=Y,e[68]=Z,e[69]=Q):Q=e[69];let $;return e[70]!==k||e[71]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[D,O,k,Q]}),e[70]=k,e[71]=Q,e[72]=$):$=e[72],$}function _e(e){let t=i(e.Tags);return(0,u.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function ve(e){let t=e(`groupName`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=e(`vpcId`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ --group-name`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` "${ee||``}"`}];return a&&o.push({type:`flag`,value:` \\ - --vpc-id`},{type:`value`,value:` ${a}`}),[{label:`Create Security Group`,parts:o}]}export{d as component}; \ No newline at end of file + --description`},{type:`value`,value:` "${i||``}"`}];return o&&s.push({type:`flag`,value:` \\ + --vpc-id`},{type:`value`,value:` ${o}`}),[{label:`Create Security Group`,parts:s}]}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-service.js b/spinifex/services/spinifexui/frontend/dist/assets/create-service.js index d6d5f91c9..737cbcbad 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-service.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-service.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{n as u}from"./ecs.js";import{Qr as d,W as f,Zt as p,ct as m,et as h,lt as g,nr as _,qt as v}from"./index.js";import{i as y,n as b,t as x}from"./zod.js";import{t as S}from"./error-banner.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{n as O}from"./ecs2.js";var k=t(),A=e();function j(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function M({cluster:e}){let t=d(),f=u(),{data:k}=r(g),{data:M}=r(p),{data:N}=r(v),{data:P}=r(h),F=M.Subnets??[],I=N.SecurityGroups??[],L=P.TargetGroups??[],{control:R,handleSubmit:z,register:B,watch:V,setValue:H,getValues:U,formState:{errors:W,isSubmitting:G}}=y({resolver:x(O),defaultValues:{cluster:e,serviceName:``,taskDefinition:``,desiredCount:1,subnets:[],securityGroups:[],assignPublicIp:!1,targetGroupArn:``,loadBalancerContainerName:``,loadBalancerContainerPort:``}}),{data:K}=n(m(V(`taskDefinition`))),q=K?.networkMode===`awsvpc`,J=V(`subnets`),Y=V(`securityGroups`),X=(e,t)=>{let n=U(e);H(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function Z(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}async function Q(e){await f.mutateAsync({...e,awsvpc:q}),Z()}let $=q&&J.length===0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,A.jsx)(w,{subtitle:`Cluster: ${e}`,title:`Create Service`}),f.isError&&(0,A.jsx)(S,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to create service.`}),(0,A.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:z(Q),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`serviceName`,children:`Service name`})}),(0,A.jsx)(_,{id:`serviceName`,placeholder:`api`,...B(`serviceName`)}),(0,A.jsx)(E,{errors:[W.serviceName]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,A.jsx)(b,{control:R,name:`taskDefinition`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,A.jsx)(a,{placeholder:`Select a task definition`})}),(0,A.jsx)(s,{children:k.map(e=>{let t=j(e);return(0,A.jsx)(o,{value:t,children:t},e)})})]})}),(0,A.jsx)(E,{errors:[W.taskDefinition]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`desiredCount`,children:`Desired count`})}),(0,A.jsx)(_,{id:`desiredCount`,type:`number`,...B(`desiredCount`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[W.desiredCount]})]}),q&&(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:F.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:J.includes(e.SubnetId??``),onChange:()=>X(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:I.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:Y.includes(e.GroupId??``),onChange:()=>X(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,A.jsx)(`input`,{type:`checkbox`,...B(`assignPublicIp`)}),(0,A.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`font-semibold`,children:`Load balancer (optional)`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`targetGroupArn`,children:`Target group`})}),(0,A.jsx)(b,{control:R,name:`targetGroupArn`,render:({field:e})=>(0,A.jsxs)(l,{onValueChange:t=>e.onChange(t===`none`?``:t),value:e.value===``?`none`:e.value,children:[(0,A.jsx)(c,{className:`w-full`,id:`targetGroupArn`,children:(0,A.jsx)(a,{})}),(0,A.jsxs)(s,{children:[(0,A.jsx)(o,{value:`none`,children:`none`}),L.map(e=>(0,A.jsx)(o,{value:e.TargetGroupArn??``,children:e.TargetGroupName},e.TargetGroupArn))]})]})})]}),(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerName`,children:`Container name`})}),(0,A.jsx)(_,{id:`lbContainerName`,placeholder:`app`,...B(`loadBalancerContainerName`)})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerPort`,children:`Container port`})}),(0,A.jsx)(_,{id:`lbContainerPort`,placeholder:`80`,type:`number`,...B(`loadBalancerContainerPort`)})]})]})]}),(0,A.jsx)(C,{isPending:f.isPending||$,isSubmitting:G,onCancel:Z,pendingLabel:`Creating…`,submitLabel:`Create Service`})]})]})}function N(){let e=(0,k.c)(2),{cluster:t}=f.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,A.jsx)(M,{cluster:t}),e[0]=t,e[1]=n),n}export{N as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{n as d}from"./ecs.js";import{W as f,Zt as p,ct as m,er as h,et as g,lt as _,qt as v}from"./index.js";import{i as y,n as b,t as x}from"./zod.js";import{t as S}from"./error-banner.js";import{t as C}from"./form-actions.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{n as O}from"./ecs2.js";var k=t(),A=e();function j(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function M({cluster:e}){let t=i(),f=d(),{data:k}=r(_),{data:M}=r(p),{data:N}=r(v),{data:P}=r(g),F=M.Subnets??[],I=N.SecurityGroups??[],L=P.TargetGroups??[],{control:R,handleSubmit:z,register:B,watch:V,setValue:H,getValues:U,formState:{errors:W,isSubmitting:G}}=y({resolver:x(O),defaultValues:{cluster:e,serviceName:``,taskDefinition:``,desiredCount:1,subnets:[],securityGroups:[],assignPublicIp:!1,targetGroupArn:``,loadBalancerContainerName:``,loadBalancerContainerPort:``}}),{data:K}=n(m(V(`taskDefinition`))),q=K?.networkMode===`awsvpc`,J=V(`subnets`),Y=V(`securityGroups`),X=(e,t)=>{let n=U(e);H(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function Z(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}async function Q(e){await f.mutateAsync({...e,awsvpc:q}),Z()}let $=q&&J.length===0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(a,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,A.jsx)(w,{subtitle:`Cluster: ${e}`,title:`Create Service`}),f.isError&&(0,A.jsx)(S,{error:f.error instanceof Error?f.error:void 0,msg:`Failed to create service.`}),(0,A.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:z(Q),children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`serviceName`,children:`Service name`})}),(0,A.jsx)(h,{id:`serviceName`,placeholder:`api`,...B(`serviceName`)}),(0,A.jsx)(E,{errors:[W.serviceName]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,A.jsx)(b,{control:R,name:`taskDefinition`,render:({field:e})=>(0,A.jsxs)(u,{onValueChange:e.onChange,value:e.value,children:[(0,A.jsx)(l,{className:`w-full`,id:`taskDefinition`,children:(0,A.jsx)(o,{placeholder:`Select a task definition`})}),(0,A.jsx)(c,{children:k.map(e=>{let t=j(e);return(0,A.jsx)(s,{value:t,children:t},e)})})]})}),(0,A.jsx)(E,{errors:[W.taskDefinition]})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`desiredCount`,children:`Desired count`})}),(0,A.jsx)(h,{id:`desiredCount`,type:`number`,...B(`desiredCount`,{valueAsNumber:!0})}),(0,A.jsx)(E,{errors:[W.desiredCount]})]}),q&&(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:F.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:J.includes(e.SubnetId??``),onChange:()=>X(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,A.jsx)(`div`,{className:`mt-2 space-y-1`,children:I.map(e=>(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,A.jsx)(`input`,{checked:Y.includes(e.GroupId??``),onChange:()=>X(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,A.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,A.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,A.jsx)(`input`,{type:`checkbox`,...B(`assignPublicIp`)}),(0,A.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,A.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,A.jsx)(`h2`,{className:`font-semibold`,children:`Load balancer (optional)`}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`targetGroupArn`,children:`Target group`})}),(0,A.jsx)(b,{control:R,name:`targetGroupArn`,render:({field:e})=>(0,A.jsxs)(u,{onValueChange:t=>e.onChange(t===`none`?``:t),value:e.value===``?`none`:e.value,children:[(0,A.jsx)(l,{className:`w-full`,id:`targetGroupArn`,children:(0,A.jsx)(o,{})}),(0,A.jsxs)(c,{children:[(0,A.jsx)(s,{value:`none`,children:`none`}),L.map(e=>(0,A.jsx)(s,{value:e.TargetGroupArn??``,children:e.TargetGroupName},e.TargetGroupArn))]})]})})]}),(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerName`,children:`Container name`})}),(0,A.jsx)(h,{id:`lbContainerName`,placeholder:`app`,...B(`loadBalancerContainerName`)})]}),(0,A.jsxs)(D,{children:[(0,A.jsx)(T,{children:(0,A.jsx)(`label`,{htmlFor:`lbContainerPort`,children:`Container port`})}),(0,A.jsx)(h,{id:`lbContainerPort`,placeholder:`80`,type:`number`,...B(`loadBalancerContainerPort`)})]})]})]}),(0,A.jsx)(C,{isPending:f.isPending||$,isSubmitting:G,onCancel:Z,pendingLabel:`Creating…`,submitLabel:`Create Service`})]})]})}function N(){let e=(0,k.c)(2),{cluster:t}=f.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,A.jsx)(M,{cluster:t}),e[0]=t,e[1]=n),n}export{N as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js index d407daafb..5f3f59671 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-snapshot.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{y as ee}from"./ec2.js";import{$t as te,Qr as u,U as ne}from"./index.js";import{a as re,i as ie,n as ae,t as oe}from"./zod.js";import{t as se}from"./error-banner.js";import{t as ce}from"./form-actions.js";import{t as le}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{f as m}from"./ec22.js";import{t as ue}from"./textarea.js";var h=t(),g=e();function _(){let e=(0,h.c)(55),t=u(),{data:a}=n(te),_=ee(),v;e[0]===a.Volumes?v=e[1]:(v=a.Volumes??[],e[0]=a.Volumes,e[1]=v);let y=v,{volumeId:b}=ne.useSearch(),x=b??y[0]?.VolumeId??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=oe(m),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=ie(C),{errors:O,isSubmitting:k}=D,A;e[5]===w?A=e[6]:(A={control:w},e[5]=w,e[6]=A);let j=re(A),M;e[7]===j?M=e[8]:(M=e=>e?j[e]:void 0,e[7]=j,e[8]=M);let N=M,P;e[9]!==_||e[10]!==t?(P=async e=>{await _.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[9]=_,e[10]=t,e[11]=P):P=e[11];let F=P,I,L;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,g.jsx)(r,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,g.jsx)(le,{title:`Create Snapshot`}),e[12]=I,e[13]=L):(I=e[12],L=e[13]);let R;e[14]===_.error?R=e[15]:(R=_.error&&(0,g.jsx)(se,{error:_.error,msg:`Failed to create snapshot`}),e[14]=_.error,e[15]=R);let z;e[16]!==T||e[17]!==F?(z=T(F),e[16]=T,e[17]=F,e[18]=z):z=e[18];let B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[19]=B):B=e[19];let V;e[20]!==O.volumeId||e[21]!==y?(V=e=>{let{field:t}=e;return(0,g.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(s,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:y.map(de)})]})},e[20]=O.volumeId,e[21]=y,e[22]=V):V=e[22];let H;e[23]!==w||e[24]!==V?(H=(0,g.jsx)(ae,{control:w,name:`volumeId`,render:V}),e[23]=w,e[24]=V,e[25]=H):H=e[25];let U;e[26]===O.volumeId?U=e[27]:(U=(0,g.jsx)(f,{errors:[O.volumeId]}),e[26]=O.volumeId,e[27]=U);let W;e[28]!==H||e[29]!==U?(W=(0,g.jsxs)(p,{children:[B,H,U]}),e[28]=H,e[29]=U,e[30]=W):W=e[30];let G;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,g.jsx)(d,{children:(0,g.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[31]=G):G=e[31];let K;e[32]===E?K=e[33]:(K=E(`description`),e[32]=E,e[33]=K);let q;e[34]===K?q=e[35]:(q=(0,g.jsxs)(p,{children:[G,(0,g.jsx)(ue,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[34]=K,e[35]=q);let J;e[36]===N?J=e[37]:(J=fe(N),e[36]=N,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,g.jsx)(l,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/ec2/describe-snapshots`}),e[40]=t,e[41]=X);let Z;e[42]!==_.isPending||e[43]!==k||e[44]!==X?(Z=(0,g.jsx)(ce,{isPending:_.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[42]=_.isPending,e[43]=k,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==z||e[47]!==W||e[48]!==q||e[49]!==Y||e[50]!==Z?(Q=(0,g.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[46]=z,e[47]=W,e[48]=q,e[49]=Y,e[50]=Z,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==R?($=(0,g.jsxs)(g.Fragment,{children:[I,L,R,Q]}),e[52]=Q,e[53]=R,e[54]=$):$=e[54],$}function de(e){return(0,g.jsxs)(a,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function fe(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as ee,t as te}from"./select.js";import{y as ne}from"./ec2.js";import{$t as re,U as ie}from"./index.js";import{a as ae,i as oe,n as se,t as ce}from"./zod.js";import{t as le}from"./error-banner.js";import{t as ue}from"./form-actions.js";import{t as l}from"./page-heading.js";import{a as u,r as d,t as f}from"./field.js";import{f as de}from"./ec22.js";import{t as p}from"./textarea.js";var m=t(),h=e();function g(){let e=(0,m.c)(55),t=r(),{data:s}=n(re),g=ne(),v;e[0]===s.Volumes?v=e[1]:(v=s.Volumes??[],e[0]=s.Volumes,e[1]=v);let y=v,{volumeId:b}=ie.useSearch(),x=b??y[0]?.VolumeId??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=ce(de),e[2]=S):S=e[2];let C;e[3]===x?C=e[4]:(C={resolver:S,defaultValues:{volumeId:x,description:``}},e[3]=x,e[4]=C);let{control:w,handleSubmit:T,register:E,formState:D}=oe(C),{errors:O,isSubmitting:k}=D,A;e[5]===w?A=e[6]:(A={control:w},e[5]=w,e[6]=A);let j=ae(A),M;e[7]===j?M=e[8]:(M=e=>e?j[e]:void 0,e[7]=j,e[8]=M);let N=M,P;e[9]!==g||e[10]!==t?(P=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-snapshots`})},e[9]=g,e[10]=t,e[11]=P):P=e[11];let F=P,I,L;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(a,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L=(0,h.jsx)(l,{title:`Create Snapshot`}),e[12]=I,e[13]=L):(I=e[12],L=e[13]);let R;e[14]===g.error?R=e[15]:(R=g.error&&(0,h.jsx)(le,{error:g.error,msg:`Failed to create snapshot`}),e[14]=g.error,e[15]=R);let z;e[16]!==T||e[17]!==F?(z=T(F),e[16]=T,e[17]=F,e[18]=z):z=e[18];let B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,h.jsx)(u,{children:(0,h.jsx)(`label`,{htmlFor:`volumeId`,children:`Volume`})}),e[19]=B):B=e[19];let V;e[20]!==O.volumeId||e[21]!==y?(V=e=>{let{field:t}=e;return(0,h.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,h.jsx)(ee,{"aria-invalid":!!O.volumeId,className:`w-full`,id:`volumeId`,children:(0,h.jsx)(o,{})}),(0,h.jsx)(c,{children:y.map(fe)})]})},e[20]=O.volumeId,e[21]=y,e[22]=V):V=e[22];let H;e[23]!==w||e[24]!==V?(H=(0,h.jsx)(se,{control:w,name:`volumeId`,render:V}),e[23]=w,e[24]=V,e[25]=H):H=e[25];let U;e[26]===O.volumeId?U=e[27]:(U=(0,h.jsx)(d,{errors:[O.volumeId]}),e[26]=O.volumeId,e[27]=U);let W;e[28]!==H||e[29]!==U?(W=(0,h.jsxs)(f,{children:[B,H,U]}),e[28]=H,e[29]=U,e[30]=W):W=e[30];let G;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,h.jsx)(u,{children:(0,h.jsx)(`label`,{htmlFor:`description`,children:`Description (optional)`})}),e[31]=G):G=e[31];let K;e[32]===E?K=e[33]:(K=E(`description`),e[32]=E,e[33]=K);let q;e[34]===K?q=e[35]:(q=(0,h.jsxs)(f,{children:[G,(0,h.jsx)(p,{id:`description`,placeholder:`Snapshot description`,...K})]}),e[34]=K,e[35]=q);let J;e[36]===N?J=e[37]:(J=_(N),e[36]=N,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,h.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-snapshots`}),e[40]=t,e[41]=X);let Z;e[42]!==g.isPending||e[43]!==k||e[44]!==X?(Z=(0,h.jsx)(ue,{isPending:g.isPending,isSubmitting:k,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Snapshot`}),e[42]=g.isPending,e[43]=k,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==z||e[47]!==W||e[48]!==q||e[49]!==Y||e[50]!==Z?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:z,children:[W,q,Y,Z]}),e[46]=z,e[47]=W,e[48]=q,e[49]=Y,e[50]=Z,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==R?($=(0,h.jsxs)(h.Fragment,{children:[I,L,R,Q]}),e[52]=Q,e[53]=R,e[54]=$):$=e[54],$}function fe(e){return(0,h.jsxs)(s,{value:e.VolumeId??``,children:[e.VolumeId,` (`,e.Size,` GiB)`]},e.VolumeId)}function _(e){let t=e(`volumeId`),n=typeof t==`string`?t:``,r=e(`description`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-snapshot`},{type:`flag`,value:` \\ --volume-id`},{type:`value`,value:` ${n||``}`}];return i&&a.push({type:`flag`,value:` \\ - --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{_ as component}; \ No newline at end of file + --description`},{type:`value`,value:` "${i}"`}),[{label:`Create Snapshot`,parts:a}]}export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js index 48028fc90..d2b2eee80 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-subnet.js @@ -1,6 +1,6 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ut as r}from"./auth.js";import{t as ee}from"./back-link.js";import{c as i,i as a,n as o,s,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{b as re}from"./ec2.js";import{Ot as ie,Qr as ae,nr as oe,tn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as c,r as he,t as l}from"./field.js";import{p as ge}from"./ec22.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(74),t=ae(),{data:r}=n(se),{data:d}=n(ie),f=re(),p;e[0]===r.Vpcs?p=e[1]:(p=r.Vpcs??[],e[0]=r.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`)?(_=de(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:x,register:S,formState:Se}=le(y),{errors:C,isSubmitting:w}=Se,T;e[7]===b?T=e[8]:(T={control:b},e[7]=b,e[8]=T);let E=ce(T),D;e[9]===E?D=e[10]:(D=e=>e?E[e]:void 0,e[9]=E,e[10]=D);let Ce=D,O;e[11]!==f||e[12]!==t?(O=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[11]=f,e[12]=t,e[13]=O):O=e[13];let we=O,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,u.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(me,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===f.error?j=e[17]:(j=f.error&&(0,u.jsx)(fe,{error:f.error,msg:`Failed to create subnet`}),e[16]=f.error,e[17]=j);let M;e[18]!==x||e[19]!==we?(M=x(we),e[18]=x,e[19]=we,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==C.vpcId||e[23]!==m?(P=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,u.jsx)(s,{"aria-invalid":!!C.vpcId,className:`w-full`,id:`vpcId`,children:(0,u.jsx)(i,{})}),(0,u.jsx)(o,{children:m.map(be)})]})},e[22]=C.vpcId,e[23]=m,e[24]=P):P=e[24];let F;e[25]!==b||e[26]!==P?(F=(0,u.jsx)(ue,{control:b,name:`vpcId`,render:P}),e[25]=b,e[26]=P,e[27]=F):F=e[27];let I;e[28]===C.vpcId?I=e[29]:(I=(0,u.jsx)(he,{errors:[C.vpcId]}),e[28]=C.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,u.jsxs)(l,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!C.cidrBlock,z;e[34]===S?z=e[35]:(z=S(`cidrBlock`),e[34]=S,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,u.jsx)(oe,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===C.cidrBlock?V=e[40]:(V=(0,u.jsx)(he,{errors:[C.cidrBlock]}),e[39]=C.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,u.jsxs)(l,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===g?W=e[46]:(W=e=>{let{field:t}=e;return(0,u.jsxs)(te,{onValueChange:e=>t.onChange(e===`none`?void 0:e),value:t.value??`none`,children:[(0,u.jsx)(s,{className:`w-full`,id:`availabilityZone`,children:(0,u.jsx)(i,{})}),(0,u.jsxs)(o,{children:[(0,u.jsx)(a,{value:`none`,children:`none`}),g.map(ye)]})]})},e[45]=g,e[46]=W);let G;e[47]!==b||e[48]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(ue,{control:b,name:`availabilityZone`,render:W})]}),e[47]=b,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===b?q=e[52]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(ue,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[51]=b,e[52]=q);let J;e[53]===Ce?J=e[54]:(J=xe(Ce),e[53]=Ce,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(ne,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==f.isPending||e[60]!==w||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:f.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=f.isPending,e[60]=w,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}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)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=r(e.Tags);return(0,u.jsx)(a,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),ee=typeof r==`string`?r:``,i=e(`availabilityZone`),a=typeof i==`string`?i:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{Ut as i}from"./auth.js";import{t as a}from"./cli-command-panel.js";import{t as ee}from"./back-link.js";import{c as o,i as s,n as te,s as ne,t as re}from"./select.js";import{b as ie}from"./ec2.js";import{Ot as ae,er as oe,tn as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as c,r as he,t as l}from"./field.js";import{p as ge}from"./ec22.js";var _e=t(),u=e();function d(){let e=(0,_e.c)(74),t=r(),{data:i}=n(se),{data:d}=n(ae),f=ie(),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`)?(_=de(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:x,register:Se,formState:Ce}=le(y),{errors:S,isSubmitting:we}=Ce,C;e[7]===b?C=e[8]:(C={control:b},e[7]=b,e[8]=C);let w=ce(C),T;e[9]===w?T=e[10]:(T=e=>e?w[e]:void 0,e[9]=w,e[10]=T);let E=T,D;e[11]!==f||e[12]!==t?(D=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[11]=f,e[12]=t,e[13]=D):D=e[13];let O=D,k,A;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,u.jsx)(ee,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),k=(0,u.jsx)(me,{title:`Create Subnet`}),e[14]=k,e[15]=A):(k=e[14],A=e[15]);let j;e[16]===f.error?j=e[17]:(j=f.error&&(0,u.jsx)(fe,{error:f.error,msg:`Failed to create subnet`}),e[16]=f.error,e[17]=j);let M;e[18]!==x||e[19]!==O?(M=x(O),e[18]=x,e[19]=O,e[20]=M):M=e[20];let N;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`vpcId`,children:`VPC`})}),e[21]=N):N=e[21];let P;e[22]!==S.vpcId||e[23]!==m?(P=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)(o,{})}),(0,u.jsx)(te,{children:m.map(be)})]})},e[22]=S.vpcId,e[23]=m,e[24]=P):P=e[24];let F;e[25]!==b||e[26]!==P?(F=(0,u.jsx)(ue,{control:b,name:`vpcId`,render:P}),e[25]=b,e[26]=P,e[27]=F):F=e[27];let I;e[28]===S.vpcId?I=e[29]:(I=(0,u.jsx)(he,{errors:[S.vpcId]}),e[28]=S.vpcId,e[29]=I);let L;e[30]!==F||e[31]!==I?(L=(0,u.jsxs)(l,{children:[N,F,I]}),e[30]=F,e[31]=I,e[32]=L):L=e[32];let R;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`cidrBlock`,children:`CIDR Block`})}),e[33]=R):R=e[33];let Te=!!S.cidrBlock,z;e[34]===Se?z=e[35]:(z=Se(`cidrBlock`),e[34]=Se,e[35]=z);let B;e[36]!==Te||e[37]!==z?(B=(0,u.jsx)(oe,{"aria-invalid":Te,id:`cidrBlock`,placeholder:`10.0.1.0/24`,...z}),e[36]=Te,e[37]=z,e[38]=B):B=e[38];let V;e[39]===S.cidrBlock?V=e[40]:(V=(0,u.jsx)(he,{errors:[S.cidrBlock]}),e[39]=S.cidrBlock,e[40]=V);let H;e[41]!==B||e[42]!==V?(H=(0,u.jsxs)(l,{children:[R,B,V]}),e[41]=B,e[42]=V,e[43]=H):H=e[43];let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.jsx)(c,{children:(0,u.jsx)(`label`,{htmlFor:`availabilityZone`,children:`Availability Zone (optional)`})}),e[44]=U):U=e[44];let W;e[45]===g?W=e[46]:(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)(o,{})}),(0,u.jsxs)(te,{children:[(0,u.jsx)(s,{value:`none`,children:`none`}),g.map(ye)]})]})},e[45]=g,e[46]=W);let G;e[47]!==b||e[48]!==W?(G=(0,u.jsxs)(l,{children:[U,(0,u.jsx)(ue,{control:b,name:`availabilityZone`,render:W})]}),e[47]=b,e[48]=W,e[49]=G):G=e[49];let K;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,u.jsx)(c,{children:`Auto-assign public IPv4`}),e[50]=K):K=e[50];let q;e[51]===b?q=e[52]:(q=(0,u.jsxs)(l,{children:[K,(0,u.jsx)(ue,{control:b,name:`mapPublicIpOnLaunch`,render:ve})]}),e[51]=b,e[52]=q);let J;e[53]===E?J=e[54]:(J=xe(E),e[53]=E,e[54]=J);let Y;e[55]===J?Y=e[56]:(Y=(0,u.jsx)(a,{commands:J}),e[55]=J,e[56]=Y);let X;e[57]===t?X=e[58]:(X=async()=>await t({to:`/ec2/describe-subnets`}),e[57]=t,e[58]=X);let Z;e[59]!==f.isPending||e[60]!==we||e[61]!==X?(Z=(0,u.jsx)(pe,{isPending:f.isPending,isSubmitting:we,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Subnet`}),e[59]=f.isPending,e[60]=we,e[61]=X,e[62]=Z):Z=e[62];let Q;e[63]!==M||e[64]!==L||e[65]!==H||e[66]!==G||e[67]!==q||e[68]!==Y||e[69]!==Z?(Q=(0,u.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:M,children:[L,H,G,q,Y,Z]}),e[63]=M,e[64]=L,e[65]=H,e[66]=G,e[67]=q,e[68]=Y,e[69]=Z,e[70]=Q):Q=e[70];let $;return e[71]!==j||e[72]!==Q?($=(0,u.jsxs)(u.Fragment,{children:[A,k,j,Q]}),e[71]=j,e[72]=Q,e[73]=$):$=e[73],$}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)(s,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function be(e){let t=i(e.Tags);return(0,u.jsx)(s,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function xe(e){let t=e(`vpcId`),n=typeof t==`string`?t:``,r=e(`cidrBlock`),i=typeof r==`string`?r:``,a=e(`availabilityZone`),ee=typeof a==`string`?a:``,o=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-subnet`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ - --cidr-block`},{type:`value`,value:` ${ee||``}`}];a&&o.push({type:`flag`,value:` \\ - --availability-zone`},{type:`value`,value:` ${a}`});let s=[{label:`Create Subnet`,parts:o}];return e(`mapPublicIpOnLaunch`)===!0&&s.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ + --cidr-block`},{type:`value`,value:` ${i||``}`}];ee&&o.push({type:`flag`,value:` \\ + --availability-zone`},{type:`value`,value:` ${ee}`});let s=[{label:`Create Subnet`,parts:o}];return e(`mapPublicIpOnLaunch`)===!0&&s.push({label:`Enable auto-assign public IPv4`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 modify-subnet-attribute`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` `},{type:`flag`,value:` \\ --map-public-ip-on-launch`}]}),s}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js index 7f77db3b9..d9499c625 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-target-group.js @@ -1,4 +1,4 @@ -import{n as e}from"./compiler-runtime.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{i}from"./elbv2.js";import{Qr as a,tn as o}from"./index.js";import{i as s,t as c}from"./zod.js";import{t as l}from"./error-banner.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=e();function h(){let e=a(),{data:h}=t(o),_=i(),v=h.Vpcs??[],y=s({resolver:c(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(n,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(l,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async t=>{try{let n=(await _.mutateAsync(t)).TargetGroups?.[0]?.TargetGroupArn;e(n?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await e({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ +import{n as e}from"./compiler-runtime.js";import{t}from"./useSuspenseQuery.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{i as a}from"./elbv2.js";import{tn as o}from"./index.js";import{i as s,t as c}from"./zod.js";import{t as l}from"./error-banner.js";import{t as u}from"./form-actions.js";import{t as d}from"./page-heading.js";import{t as f}from"./target-group-form.js";import{a as p}from"./elbv22.js";var m=e();function h(){let e=n(),{data:h}=t(o),_=a(),v=h.Vpcs??[],y=s({resolver:c(p),defaultValues:{name:``,protocol:`HTTP`,port:80,vpcId:v[0]?.VpcId??``,healthCheck:{protocol:`HTTP`,path:`/`,port:`traffic-port`,intervalSeconds:30,timeoutSeconds:5,healthyThresholdCount:5,unhealthyThresholdCount:2,matcher:`200`},tags:[]}}),{handleSubmit:b,watch:x,formState:{isSubmitting:S}}=y;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i,{to:`/ec2/describe-target-groups`,children:`Back to target groups`}),(0,m.jsx)(d,{title:`Create Target Group`}),_.error&&(0,m.jsx)(l,{error:_.error,msg:`Failed to create target group`}),(0,m.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:b(async t=>{try{let n=(await _.mutateAsync(t)).TargetGroups?.[0]?.TargetGroupArn;e(n?{to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}:{to:`/ec2/describe-target-groups`})}catch{}}),children:[(0,m.jsx)(f,{form:y,vpcs:v}),(0,m.jsx)(r,{commands:g(x)}),(0,m.jsx)(u,{isPending:_.isPending,isSubmitting:S,onCancel:async()=>await e({to:`/ec2/describe-target-groups`}),pendingLabel:`Creating…`,submitLabel:`Create Target Group`})]})]})}function g(e){let t=t=>{let n=e(t);return typeof n==`string`?n:``},n=t=>{let n=e(t);return typeof n==`number`&&Number.isFinite(n)?n:void 0},r=t(`name`),i=t(`protocol`)||`HTTP`,a=n(`port`),o=t(`vpcId`),s=t(`healthCheck.protocol`)||`HTTP`,c=t(`healthCheck.path`)||`/`,l=t(`healthCheck.port`)||`traffic-port`,u=n(`healthCheck.intervalSeconds`),d=n(`healthCheck.timeoutSeconds`),f=n(`healthCheck.healthyThresholdCount`),p=n(`healthCheck.unhealthyThresholdCount`),m=t(`healthCheck.matcher`)||`200`,h=[{type:`bin`,value:`AWS_PROFILE=spinifex aws elbv2 create-target-group`},{type:`flag`,value:` \\ --name`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --protocol`},{type:`value`,value:` ${i}`},{type:`flag`,value:` \\ --port`},{type:`value`,value:` ${a??80}`},{type:`flag`,value:` \\ diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js index b5b347836..4fae071b3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-user.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-user.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{c as i}from"./iam.js";import{Qr as a,nr as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{a as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=a(),y=i(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},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]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-users`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(n,{to:`/iam/list-users`,children:`Back to users`}),P=(0,v.jsx)(f,{title:`Create User`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create user`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[15]=L):L=e[15];let R=!!T.userName,z;e[16]===S?z=e[17]:(z=S(`userName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.userName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.userName]}),e[21]=T.userName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{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,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-users`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{y as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as i}from"./back-link.js";import{c as a}from"./iam.js";import{er as o}from"./index.js";import{a as s,i as c,t as l}from"./zod.js";import{t as u}from"./error-banner.js";import{t as d}from"./form-actions.js";import{t as f}from"./page-heading.js";import{a as p,r as m,t as h}from"./field.js";import{a as g}from"./iam2.js";var _=t(),v=e();function y(){let e=(0,_.c)(55),t=n(),y=a(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:l(g)},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]===O?k=e[4]:(k=e=>e?O[e]:void 0,e[3]=O,e[4]=k);let A=k,j;e[5]!==y||e[6]!==t?(j=async e=>{await y.mutateAsync(e),t({to:`/iam/list-users`})},e[5]=y,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,v.jsx)(i,{to:`/iam/list-users`,children:`Back to users`}),P=(0,v.jsx)(f,{title:`Create User`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===y.error?F=e[11]:(F=y.error&&(0,v.jsx)(u,{error:y.error,msg:`Failed to create user`}),e[10]=y.error,e[11]=F);let I;e[12]!==x||e[13]!==M?(I=x(M),e[12]=x,e[13]=M,e[14]=I):I=e[14];let L;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`userName`,children:`User Name`})}),e[15]=L):L=e[15];let R=!!T.userName,z;e[16]===S?z=e[17]:(z=S(`userName`),e[16]=S,e[17]=z);let B;e[18]!==R||e[19]!==z?(B=(0,v.jsx)(o,{"aria-invalid":R,id:`userName`,placeholder:`my-user...`,...z}),e[18]=R,e[19]=z,e[20]=B):B=e[20];let V;e[21]===T.userName?V=e[22]:(V=(0,v.jsx)(m,{errors:[T.userName]}),e[21]=T.userName,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,v.jsxs)(h,{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,v.jsx)(p,{children:(0,v.jsx)(`label`,{htmlFor:`path`,children:`Path (optional)`})}),e[26]=U):U=e[26];let W;e[27]===S?W=e[28]:(W=S(`path`),e[27]=S,e[28]=W);let G;e[29]===W?G=e[30]:(G=(0,v.jsx)(o,{id:`path`,placeholder:`/`,...W}),e[29]=W,e[30]=G);let K;e[31]===T.path?K=e[32]:(K=(0,v.jsx)(m,{errors:[T.path]}),e[31]=T.path,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,v.jsxs)(h,{children:[U,G,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===A?J=e[37]:(J=ee(A),e[36]=A,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,v.jsx)(r,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>await t({to:`/iam/list-users`}),e[40]=t,e[41]=X);let Z;e[42]!==y.isPending||e[43]!==E||e[44]!==X?(Z=(0,v.jsx)(d,{isPending:y.isPending,isSubmitting:E,onCancel:X,pendingLabel:`Creating...`,submitLabel:`Create User`}),e[42]=y.isPending,e[43]=E,e[44]=X,e[45]=Z):Z=e[45];let Q;e[46]!==H||e[47]!==q||e[48]!==Y||e[49]!==Z||e[50]!==I?(Q=(0,v.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:I,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=I,e[51]=Q):Q=e[51];let $;return e[52]!==Q||e[53]!==F?($=(0,v.jsxs)(v.Fragment,{children:[N,P,F,Q]}),e[52]=Q,e[53]=F,e[54]=$):$=e[54],$}function ee(e){let t=e(`userName`),n=typeof t==`string`?t:``,r=e(`path`),i=typeof r==`string`?r:``,a=[{type:`bin`,value:`AWS_PROFILE=spinifex aws iam create-user`},{type:`flag`,value:` --user-name`},{type:`value`,value:` ${n||``}`}];return i&&i!==`/`&&a.push({type:`flag`,value:` --path`},{type:`value`,value:` ${i}`}),[{label:`Create User`,parts:a}]}export{y as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js index 7b9c1325c..734e77da4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-volume.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./back-link.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./cli-command-panel.js";import{x as u}from"./ec2.js";import{Ot as d,Qr as ee,nr as te}from"./index.js";import{i as ne,n as re,t as ie}from"./zod.js";import{t as ae}from"./error-banner.js";import{t as oe}from"./form-actions.js";import{t as se}from"./page-heading.js";import{a as f,r as p,t as m}from"./field.js";import{m as h}from"./ec22.js";var g=t(),_=e();function v(){let e=(0,g.c)(57),t=ee(),{data:a}=n(d),v=u(),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=ie(h),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}=ne(C),{errors:k,isSubmitting:A}=O,j;e[5]!==v||e[6]!==t?(j=async e=>{await v.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=v,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,_.jsx)(r,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,_.jsx)(se,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===v.error?F=e[11]:(F=v.error&&(0,_.jsx)(ae,{error:v.error,msg:`Failed to create volume`}),e[10]=v.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,_.jsx)(f,{children:(0,_.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,_.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,_.jsx)(p,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,_.jsxs)(m,{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,_.jsx)(f,{children:(0,_.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,_.jsxs)(c,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,_.jsx)(s,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,_.jsx)(i,{})}),(0,_.jsx)(o,{children:b.map(ce)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,_.jsx)(re,{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,_.jsx)(p,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,_.jsxs)(m,{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=le(D),e[38]=D,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,_.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]!==v.isPending||e[45]!==A||e[46]!==X?(Z=(0,_.jsx)(oe,{isPending:v.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=v.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,_.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,_.jsxs)(_.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function ce(e){return(0,_.jsx)(a,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function le(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;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.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{t as i}from"./cli-command-panel.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{x as ee}from"./ec2.js";import{Ot as te,er as ne}from"./index.js";import{i as re,n as ie,t as ae}from"./zod.js";import{t as oe}from"./error-banner.js";import{t as se}from"./form-actions.js";import{t as ce}from"./page-heading.js";import{a as d,r as f,t as p}from"./field.js";import{m}from"./ec22.js";var h=t(),g=e();function _(){let e=(0,h.c)(57),t=r(),{data:s}=n(te),_=ee(),y;e[0]===s.AvailabilityZones?y=e[1]:(y=s.AvailabilityZones??[],e[0]=s.AvailabilityZones,e[1]=y);let b=y,x=b[0]?.ZoneName??``,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=ae(m),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}=re(C),{errors:k,isSubmitting:A}=O,j;e[5]!==_||e[6]!==t?(j=async e=>{await _.mutateAsync(e),t({to:`/ec2/describe-volumes`})},e[5]=_,e[6]=t,e[7]=j):j=e[7];let M=j,N,P;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,g.jsx)(a,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),P=(0,g.jsx)(ce,{title:`Create Volume`}),e[8]=N,e[9]=P):(N=e[8],P=e[9]);let F;e[10]===_.error?F=e[11]:(F=_.error&&(0,g.jsx)(oe,{error:_.error,msg:`Failed to create volume`}),e[10]=_.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,g.jsx)(d,{children:(0,g.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,g.jsx)(ne,{"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,g.jsx)(f,{errors:[k.size]}),e[21]=k.size,e[22]=V);let H;e[23]!==B||e[24]!==V?(H=(0,g.jsxs)(p,{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,g.jsx)(d,{children:(0,g.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,g.jsxs)(u,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,g.jsx)(l,{"aria-invalid":!!k.availabilityZone,className:`w-full`,id:`availabilityZone`,children:(0,g.jsx)(o,{})}),(0,g.jsx)(c,{children:b.map(le)})]})},e[27]=b,e[28]=k.availabilityZone,e[29]=W):W=e[29];let G;e[30]!==w||e[31]!==W?(G=(0,g.jsx)(ie,{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,g.jsx)(f,{errors:[k.availabilityZone]}),e[33]=k.availabilityZone,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,g.jsxs)(p,{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,g.jsx)(i,{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]!==_.isPending||e[45]!==A||e[46]!==X?(Z=(0,g.jsx)(se,{isPending:_.isPending,isSubmitting:A,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Volume`}),e[44]=_.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,g.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,g.jsxs)(g.Fragment,{children:[N,P,F,Q]}),e[54]=Q,e[55]=F,e[56]=$):$=e[56],$}function le(e){return(0,g.jsx)(s,{value:e.ZoneName??``,children:e.ZoneName},e.ZoneName)}function v(e){let t=e(`size`),n=typeof t==`number`?t:0,r=e(`availabilityZone`),i=typeof r==`string`?r:``;return[{label:`Create Volume`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-volume`},{type:`flag`,value:` \\ --size`},{type:`value`,value:` ${n||1}`},{type:`flag`,value:` \\ - --availability-zone`},{type:`value`,value:` ${i||``}`}]}]}export{v as component}; \ No newline at end of file + --availability-zone`},{type:`value`,value:` ${i||``}`}]}]}export{_ as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js index 398bd2695..8ee99e0d0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-vpc.js @@ -1,4 +1,4 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./back-link.js";import{t as a}from"./chevron-down.js";import{t as o}from"./chevron-right.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./cli-command-panel.js";import{t as p}from"./button.js";import{C as m,S as h}from"./ec2.js";import{Qr as g,nr as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as D}from"./subnet-calculator.js";import{h as O}from"./ec22.js";var k=r(),A=t(n(),1),j=e();function M(e){let t=(0,k.c)(18),{form:n,type:r,count:i,defaults:s}=e,[c,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===c?d=t[1]:(d=()=>l(!c),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=c?(0,j.jsx)(a,{className:`size-3`}):(0,j.jsx)(o,{className:`size-3`}),t[2]=c,t[3]=f);let m;t[4]!==d||t[5]!==f||t[6]!==r?(m=(0,j.jsxs)(p,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,r,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=r,t[7]=m):m=t[7];let h;t[8]!==i||t[9]!==s||t[10]!==c||t[11]!==u||t[12]!==n||t[13]!==r?(h=c&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(_,{defaultValue:s[t],placeholder:s[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=s,t[10]=c,t[11]=u,t[12]=n,t[13]=r,t[14]=h):h=t[14];let g;return t[15]!==m||t[16]!==h?(g=(0,j.jsxs)(`div`,{className:`mt-2`,children:[m,h]}),t[15]=m,t[16]=h,t[17]=g):g=t[17],g}function N(e){let t=(0,k.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,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.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,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 P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.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,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.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,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.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,j.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,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.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 F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let e=g(),t=h(),n=m(),[r,a]=(0,A.useState)(null),o=v({resolver:b(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=o,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=D(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async r=>{if(a(null),r.mode===`vpc-only`){let n=r.autoGenerateNames&&r.namePrefix?`${r.namePrefix}-vpc`:r.namePrefix,i=(await t.mutateAsync({cidrBlock:r.cidrBlock,name:n||void 0})).Vpc?.VpcId;e(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let i=await n.mutateAsync(r);a(i),!i.error&&i.vpcId&&e({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),J(``)},X=t.error??n.error,Z=t.isPending||n.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(i,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(C,{title:`Create VPC`}),X&&(0,j.jsx)(x,{error:X,msg:`Failed to create VPC`}),r?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,r.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:r.error.message}),r.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:r.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Resources to create`}),(0,j.jsx)(y,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(_,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(y,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(_,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(T,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Tenancy`}),(0,j.jsx)(y,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(u,{id:`tenancy`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`default`,children:`default`}),(0,j.jsx)(c,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of public subnets`}),(0,j.jsx)(y,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:o,type:`public`})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of private subnets`}),(0,j.jsx)(y,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(p,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:o,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`NAT gateways`}),(0,j.jsx)(y,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(d,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(u,{id:`natGateway`,children:(0,j.jsx)(s,{})}),(0,j.jsxs)(l,{children:[(0,j.jsx)(c,{value:`none`,children:`None`}),(0,j.jsx)(c,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.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.`})]})]}),(0,j.jsx)(f,{commands:B(F,K)}),(0,j.jsx)(S,{isPending:Z,isSubmitting:V,onCancel:async()=>await e({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`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.js";import{t as i}from"./useNavigate.js";import{t as a}from"./cli-command-panel.js";import{t as o}from"./back-link.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{c as l,i as u,n as d,s as f,t as p}from"./select.js";import{t as m}from"./button.js";import{C as h,S as g}from"./ec2.js";import{er as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{t as D}from"./subnet-calculator.js";import{h as O}from"./ec22.js";var k=r(),A=t(n(),1),j=e();function M(e){let t=(0,k.c)(18),{form:n,type:r,count:i,defaults:a}=e,[o,l]=(0,A.useState)(!1),u=r===`public`?`publicSubnetCidrs`:`privateSubnetCidrs`;if(i===0)return null;let d;t[0]===o?d=t[1]:(d=()=>l(!o),t[0]=o,t[1]=d);let f;t[2]===o?f=t[3]:(f=o?(0,j.jsx)(s,{className:`size-3`}):(0,j.jsx)(c,{className:`size-3`}),t[2]=o,t[3]=f);let p;t[4]!==d||t[5]!==f||t[6]!==r?(p=(0,j.jsxs)(m,{className:`gap-1 px-0 text-xs text-muted-foreground`,onClick:d,type:`button`,variant:`link`,children:[f,`Customize `,r,` subnet CIDR blocks`]}),t[4]=d,t[5]=f,t[6]=r,t[7]=p):p=t[7];let h;t[8]!==i||t[9]!==a||t[10]!==o||t[11]!==u||t[12]!==n||t[13]!==r?(h=o&&(0,j.jsx)(`div`,{className:`mt-2 space-y-2`,children:Array.from({length:i},(e,t)=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`span`,{className:`w-32 text-xs text-muted-foreground`,children:[r===`public`?`Public`:`Private`,` subnet `,t+1]}),(0,j.jsx)(_,{defaultValue:a[t],placeholder:a[t],...n.register(`${u}.${t}`)})]},t))}),t[8]=i,t[9]=a,t[10]=o,t[11]=u,t[12]=n,t[13]=r,t[14]=h):h=t[14];let g;return t[15]!==p||t[16]!==h?(g=(0,j.jsxs)(`div`,{className:`mt-2`,children:[p,h]}),t[15]=p,t[16]=h,t[17]=g):g=t[17],g}function N(e){let t=(0,k.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,j.jsx)(`div`,{className:`font-medium`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,j.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,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 P(e){let t=(0,k.c)(14),{mode:n,vpcCidr:r,publicSubnets:i,privateSubnets:a,hasIgw:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.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,j.jsxs)(`div`,{className:`mb-3 text-xs font-medium`,children:[`VPC `,(0,j.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,j.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Subnets`}),i.map(I),a.map(F),i.length===0&&a.length===0&&(0,j.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`No subnets`})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Route Tables`}),i.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Public Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`0.0.0.0/0 → IGW`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`local`})]}),a.length>0&&(0,j.jsxs)(`div`,{className:`rounded-md border border-foreground/10 bg-background px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Private Route Table`}),(0,j.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:`local`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:`Network Connections`}),o&&(0,j.jsxs)(`div`,{className:`rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs`,children:[(0,j.jsx)(`div`,{className:`font-medium`,children:`Internet Gateway`}),(0,j.jsx)(`div`,{className:`text-muted-foreground`,children:`Attached to VPC`})]}),!o&&(0,j.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,j.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,j.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-4`,children:[s,(0,j.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 F(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`private`},e.cidr)}function I(e){return(0,j.jsx)(N,{cidr:e.cidr,label:e.label,variant:`public`},e.cidr)}var L=[0,1],R=[0,1,2];function z(){let e=i(),t=g(),n=h(),[r,s]=(0,A.useState)(null),c=v({resolver:b(O),defaultValues:{mode:`vpc-only`,namePrefix:``,autoGenerateNames:!0,cidrBlock:`10.0.0.0/16`,tenancy:`default`,natGateway:`none`,publicSubnetCount:1,privateSubnetCount:1,publicSubnetCidrs:[],privateSubnetCidrs:[],tags:[]}}),{handleSubmit:k,register:N,watch:F,control:I,formState:{errors:z,isSubmitting:V}}=c,H=F(`mode`),U=F(`cidrBlock`),W=F(`publicSubnetCount`),G=F(`privateSubnetCount`),K=D(U||`10.0.0.0/16`,H===`vpc-and-more`?W:0,H===`vpc-and-more`?G:0),[q,J]=(0,A.useState)(``),Y=async r=>{if(s(null),r.mode===`vpc-only`){let n=r.autoGenerateNames&&r.namePrefix?`${r.namePrefix}-vpc`:r.namePrefix,i=(await t.mutateAsync({cidrBlock:r.cidrBlock,name:n||void 0})).Vpc?.VpcId;e(i?{to:`/ec2/describe-vpcs/$id`,params:{id:i}}:{to:`/ec2/describe-vpcs`});return}J(`Creating VPC and resources...`);let i=await n.mutateAsync(r);s(i),!i.error&&i.vpcId&&e({to:`/ec2/describe-vpcs/$id`,params:{id:i.vpcId}}),J(``)},X=t.error??n.error,Z=t.isPending||n.isPending;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,j.jsx)(C,{title:`Create VPC`}),X&&(0,j.jsx)(x,{error:X,msg:`Failed to create VPC`}),r?.error&&(0,j.jsxs)(`div`,{className:`mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4`,children:[(0,j.jsxs)(`h2`,{className:`text-sm font-medium text-destructive`,children:[`Wizard failed: `,r.failedStep]}),(0,j.jsx)(`p`,{className:`mt-1 text-sm text-destructive`,children:r.error.message}),r.created.length>0&&(0,j.jsxs)(`div`,{className:`mt-3`,children:[(0,j.jsx)(`p`,{className:`text-xs font-medium text-destructive`,children:`Successfully created resources:`}),(0,j.jsx)(`ul`,{className:`mt-1 list-inside list-disc text-xs text-destructive`,children:r.created.map((e,t)=>(0,j.jsxs)(`li`,{children:[e.type,`: `,e.id]},t))})]})]}),q&&(0,j.jsx)(`div`,{className:`mb-4 max-w-4xl text-sm text-muted-foreground`,children:q}),(0,j.jsxs)(`div`,{className:`flex max-w-6xl gap-8`,children:[(0,j.jsxs)(`form`,{className:`min-w-0 flex-1 space-y-6`,onSubmit:k(Y),children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Resources to create`}),(0,j.jsx)(y,{control:I,name:`mode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC only`,checked:e.value===`vpc-only`,name:`mode`,onChange:()=>e.onChange(`vpc-only`),type:`radio`}),`VPC only`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`VPC and more`,checked:e.value===`vpc-and-more`,name:`mode`,onChange:()=>e.onChange(`vpc-and-more`),type:`radio`}),`VPC and more`]})]})})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`namePrefix`,children:`Name tag auto-generation`})}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(_,{id:`namePrefix`,placeholder:`project`,...N(`namePrefix`)}),(0,j.jsx)(y,{control:I,name:`autoGenerateNames`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex shrink-0 items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Auto-generate name tags`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Auto-generate`]})})]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:(0,j.jsx)(`label`,{htmlFor:`cidrBlock`,children:`IPv4 CIDR block`})}),(0,j.jsx)(_,{"aria-invalid":!!z.cidrBlock,id:`cidrBlock`,placeholder:`10.0.0.0/16`,...N(`cidrBlock`)}),(0,j.jsx)(T,{errors:[z.cidrBlock]})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Tenancy`}),(0,j.jsx)(y,{control:I,name:`tenancy`,render:({field:e})=>(0,j.jsxs)(p,{onValueChange:e.onChange,value:e.value,children:[(0,j.jsx)(f,{id:`tenancy`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[(0,j.jsx)(u,{value:`default`,children:`default`}),(0,j.jsx)(u,{value:`dedicated`,children:`dedicated`})]})]})})]}),H===`vpc-and-more`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of public subnets`}),(0,j.jsx)(y,{control:I,name:`publicSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:L.map(t=>(0,j.jsx)(m,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:W,defaults:K.publicSubnets.map(e=>e.cidr),form:c,type:`public`})]}),(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`Number of private subnets`}),(0,j.jsx)(y,{control:I,name:`privateSubnetCount`,render:({field:e})=>(0,j.jsx)(`div`,{className:`flex gap-1`,children:R.map(t=>(0,j.jsx)(m,{onClick:()=>e.onChange(t),size:`sm`,type:`button`,variant:e.value===t?`default`:`outline`,children:t},t))})}),(0,j.jsx)(M,{count:G,defaults:K.privateSubnets.map(e=>e.cidr),form:c,type:`private`})]}),W>0&&G>0&&(0,j.jsxs)(E,{children:[(0,j.jsx)(w,{children:`NAT gateways`}),(0,j.jsx)(y,{control:I,name:`natGateway`,render:({field:e})=>(0,j.jsxs)(p,{onValueChange:e.onChange,value:e.value??`none`,children:[(0,j.jsx)(f,{id:`natGateway`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[(0,j.jsx)(u,{value:`none`,children:`None`}),(0,j.jsx)(u,{value:`single`,children:`In 1 AZ`})]})]})}),(0,j.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.`})]})]}),(0,j.jsx)(a,{commands:B(F,K)}),(0,j.jsx)(S,{isPending:Z,isSubmitting:V,onCancel:async()=>await e({to:`/ec2/describe-vpcs`}),pendingLabel:`Creating…`,submitLabel:`Create VPC`})]}),(0,j.jsx)(`div`,{className:`hidden min-w-0 flex-1 lg:block`,children:(0,j.jsx)(P,{hasIgw:H===`vpc-and-more`&&W>0,mode:H,privateSubnets:K.privateSubnets,publicSubnets:K.publicSubnets,vpcCidr:U||`10.0.0.0/16`})})]})]})}function B(e,t){let n=e(`mode`),r=typeof n==`string`?n:``,i=e(`cidrBlock`),a=typeof i==`string`?i:``,o=e(`tenancy`),s=typeof o==`string`?o:``,c=e(`natGateway`),l=typeof c==`string`?c:``;if(r===`vpc-only`){let e=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-vpc`},{type:`flag`,value:` \\ --cidr-block`},{type:`value`,value:` ${a||`10.0.0.0/16`}`}];return s&&s!=="default"&&e.push({type:`flag`,value:` \\ --instance-tenancy`},{type:`value`,value:` ${s}`}),[{label:`Create VPC`,parts:e}]}let u=[],d=[...t.publicSubnets.map((e,t)=>({...e,name:`PUBLIC_SUBNET_${t+1}`})),...t.privateSubnets.map((e,t)=>({...e,name:`PRIVATE_SUBNET_${t+1}`}))];u.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/describe-load-balancers.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js index b5634c9f4..340902127 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{ni as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{Qr as o,Y as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{t as r}from"./useNavigate.js";import{ni as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./button.js";import{Y as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=r(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(o,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:a(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js index 4ecaa4d65..d0e26f48e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{ni as i}from"./awsClient.js";import{t as a}from"./button.js";import{Qr as o,et as s,tt as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=o(),{data:n}=r(s),c;e[0]===n.TargetGroups?c=e[1]:(c=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=c);let f=c,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(a,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=c(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let s,l;if(t[3]!==a?.TargetHealthDescriptions){s=a?.TargetHealthDescriptions??[];let e={};for(let t of s){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=s,t[5]=l}else s=t[4],l=t[5];let f=l,p;t[6]===s.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:s.length}),t[6]=s.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{ni as a}from"./awsClient.js";import{t as o}from"./button.js";import{et as s,tt as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=i(),{data:n}=r(s),c;e[0]===n.TargetGroups?c=e[1]:(c=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=c);let f=c,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(a,{to:`/ec2/create-target-group`,children:(0,d.jsx)(o,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(a,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=c(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let s,l;if(t[3]!==a?.TargetHealthDescriptions){s=a?.TargetHealthDescriptions??[];let e={};for(let t of s){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=s,t[5]=l}else s=t[4],l=t[5];let f=l,p;t[6]===s.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:s.length}),t[6]=s.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/download.js b/spinifex/services/spinifexui/frontend/dist/assets/download.js index 92bb22ff9..9c090a239 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/download.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/download.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index 654d1b293..e19195c06 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$n as n,Bn as r,Br as i,Fr as a,Gn as o,Gr as s,Hn as c,Hr as l,Ir as u,Jn as d,Jr as f,Kn as p,Kr as ee,Lr as m,Pr as te,Qn as ne,Qr as h,Rr as re,Un as ie,Ur as ae,Vn as oe,Vr as se,Wn as ce,Wr as le,Xn as ue,Xr as de,Yn as fe,Yr as pe,Zn as me,Zr as he,ar as ge,cr as _e,dr as ve,er as ye,fr as be,gr as xe,hr as Se,ir as g,lr as _,mr as v,nr as y,or as b,pr as x,qn as S,qr as C,r as w,rr as T,sr as E,tr as D,ur as O,zn as k,zr as A}from"./awsClient.js";import{At as j,D as Ce,Pt as M,St as N,Z as we,lt as Te,st as Ee,ut as P}from"./auth.js";import{$r as F,Rt as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(k).build(){},Oe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(r).build(){},ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(oe).build(){},R=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(c).build(){},z=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(ie).build(){},Ae=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(ce).build(){},je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(o).build(){},B=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(p).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?we(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await Te(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():j(i),o=new M({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Ce({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},M.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Ee(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(S).build(){},Re=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(d).build(){},V=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(fe).build(){},ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ue).build(){},H=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(me).build(){},Be=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(ne).build(){},U=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(n).build(){},W=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(ye).build(){},G=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(D).build(){},Ve=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(y).build(){},K=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(T).build(){},He=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(g).build(){},q=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(ge).build(){},Ue=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(b).build(){},We=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(E).build(){},Ge=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(_e).build(){},Ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(_).build(){},qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(O).build(){},Je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(ve).build(){},Ye=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(be).build(){},Xe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(x).build(){},Ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(v).build(){},Qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(Se).build(){},$e=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(xe).build(){},et=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(te).build(){},tt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(a).build(){},nt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(u).build(){},rt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(m).build(){},it=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(re).build(){},at=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(A).build(){},ot=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(i).build(){},st=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(se).build(){},J=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(l).build(){},ct=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(ae).build(){},lt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(le).build(){},ut=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(s).build(){},dt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(ee).build(){},ft=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(C).build(){},pt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(f).build(){},mt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(pe).build(){},ht=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(de).build(){},gt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(he).build(){},Y={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`,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_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`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await w().send(t)}function bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await w().send(t)}function St(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await w().send(t)}function wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await w().send(t)}function Et(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=w(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(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}function At(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),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 Mt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await w().send(n)}function Pt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await w().send(t)}function It(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await w().send(t)}function Rt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await w().send(t)}function Bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await w().send(t)}function Ht(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await w().send(t)}function Wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await w().send(t)}function Kt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await w().send(t)}function Jt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await w().send(t)}function Xt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await w().send(t)}function Qt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await w().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await w().send(t)}function nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await w().send(t)}function an(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await w().send(t)}function sn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await w().send(t)}function ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=w(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await w().send(t)}function pn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await w().send(t)}function hn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await w().send(t)}function _n(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await w().send(t)}function yn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await w().send(t)}function xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Cn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({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 Tn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function kn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await w().send(t)}function jn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await w().send(t)}function Nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function Fn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function Ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await w().send(t)}function zn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await w().send(t)}function Vn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await w().send(t)}function Un(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await w().send(t)}function Gn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await w().send(t)}function qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await w().send(t)}function Q(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await w().send(t)}function Xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await w().send(t)}function Qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await w().send(t)}function er(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await w().send(t)}function nr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await w().send(t)}function ir(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await w().send(t)}function or(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await w().send(t)}function cr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await w().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=F();return t({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=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=await Promise.all(Array.from({length:e.publicSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:u[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:s}),await t.send(new J({SubnetId:s,MapPublicIpOnLaunch:{Value:!0}})),s}));a=`creating private subnets`;let p=await Promise.all(Array.from({length:e.privateSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:d[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:s}),s}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.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 z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(f.map(async e=>await t.send(new R({RouteTableId:l,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`,await Promise.all(p.map(async e=>await t.send(new R({RouteTableId:s,SubnetId:e})))),e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.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 H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.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 U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,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{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$n as n,Bn as r,Br as i,Fr as a,Gn as o,Gr as s,Hn as c,Hr as l,Ir as u,Jn as d,Jr as f,Kn as p,Kr as ee,Lr as m,Pr as te,Qn as ne,Qr as h,Rr as re,Un as ie,Ur as ae,Vn as oe,Vr as se,Wn as ce,Wr as le,Xn as ue,Xr as de,Yn as fe,Yr as pe,Zn as me,Zr as he,ar as ge,cr as _e,dr as ve,er as ye,fr as be,gr as xe,hr as Se,ir as g,lr as _,mr as v,nr as y,or as b,pr as x,qn as S,qr as C,r as w,rr as T,sr as E,tr as D,ur as O,zn as k,zr as A}from"./awsClient.js";import{At as j,D as Ce,I as we,L as M,Pt as N,St as P,at as Te,ht as Ee}from"./auth.js";import{Rt as F,Ur as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(k).build(){},Oe=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(r).build(){},ke=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(oe).build(){},R=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(c).build(){},z=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(ie).build(){},Ae=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(ce).build(){},je=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(o).build(){},B=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(p).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?Te(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await we(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():j(i),o=new N({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Ce({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},N.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Ee(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(S).build(){},Re=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(d).build(){},V=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(fe).build(){},ze=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(ue).build(){},H=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(me).build(){},Be=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(ne).build(){},U=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(n).build(){},W=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(ye).build(){},G=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(D).build(){},Ve=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(y).build(){},K=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(T).build(){},He=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(g).build(){},q=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(ge).build(){},Ue=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(b).build(){},We=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(E).build(){},Ge=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(_e).build(){},Ke=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(_).build(){},qe=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(O).build(){},Je=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(ve).build(){},Ye=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(be).build(){},Xe=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(x).build(){},Ze=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(v).build(){},Qe=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(Se).build(){},$e=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(xe).build(){},et=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(te).build(){},tt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(a).build(){},nt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(u).build(){},rt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(m).build(){},it=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(re).build(){},at=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(A).build(){},ot=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(i).build(){},st=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(se).build(){},J=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(l).build(){},ct=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(ae).build(){},lt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(le).build(){},ut=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(s).build(){},dt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(ee).build(){},ft=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(C).build(){},pt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(f).build(){},mt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(pe).build(){},ht=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(de).build(){},gt=class extends P.classBuilder().ep(h).m(function(e,t,n,r){return[M(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(he).build(){},Y={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`,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_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`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await w().send(t)}function bt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await w().send(t)}function St(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await w().send(t)}function wt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await w().send(t)}function Et(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=w(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(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}function At(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),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 Mt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await w().send(n)}function Pt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(F)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await w().send(t)}function It(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await w().send(t)}function Rt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await w().send(t)}function Bt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await w().send(t)}function Ht(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await w().send(t)}function Wt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await w().send(t)}function Kt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await w().send(t)}function Jt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await w().send(t)}function Xt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await w().send(t)}function Qt(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await w().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await w().send(t)}function nn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await w().send(t)}function an(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await w().send(t)}function sn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await w().send(t)}function ln(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=w(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await w().send(t)}function pn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await w().send(t)}function hn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await w().send(t)}function _n(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await w().send(t)}function yn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await w().send(t)}function xn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await w().send(t)}function Cn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({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 Tn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function Dn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await w().send(t)}function kn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await w().send(t)}function jn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await w().send(t)}function Nn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function Fn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await w().send(t)}function Ln(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await w().send(t)}function zn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await w().send(t)}function Vn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await w().send(t)}function Un(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await w().send(t)}function Gn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await w().send(t)}function qn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await w().send(t)}function Q(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await w().send(t)}function Xn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await w().send(t)}function Qn(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await w().send(t)}function er(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await w().send(t)}function nr(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await w().send(t)}function ir(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await w().send(t)}function or(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await w().send(t)}function cr(){let e=(0,X.c)(2),n=I(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await w().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=I();return t({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=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=await Promise.all(Array.from({length:e.publicSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-public-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:u[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Public subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Public Subnet`,id:s}),await t.send(new J({SubnetId:s,MapPublicIpOnLaunch:{Value:!0}})),s}));a=`creating private subnets`;let p=await Promise.all(Array.from({length:e.privateSubnetCount},async(e,a)=>{let o=r?`${r}-subnet-private-${a+1}`:void 0,s=(await t.send(new K({VpcId:c,CidrBlock:d[a],TagSpecifications:$(Y.subnet,o,i)}))).Subnet?.SubnetId;if(!s)throw Error(`Private subnet ${a+1} was created but no subnet ID was returned`);return n.push({type:`Private Subnet`,id:s}),s}));if(e.publicSubnetCount>0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.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 z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`,await Promise.all(f.map(async e=>await t.send(new R({RouteTableId:l,SubnetId:e}))))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);if(n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`,await Promise.all(p.map(async e=>await t.send(new R({RouteTableId:s,SubnetId:e})))),e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.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 H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.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 U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,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{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js index ce8e77663..a1b90ae25 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Cn as n,Dn as r,En as i,Fn as a,Nn as o,Pn as s,Rn as c,Tn as l,i as u,jn as d,wn as f}from"./awsClient.js";import{St as p,ut as m}from"./auth.js";import{$r as h}from"./index.js";var g=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`BatchDeleteImage`,{}).n(`ECRClient`,`BatchDeleteImageCommand`).sc(n).build(){},_=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`CreateRepository`,{}).n(`ECRClient`,`CreateRepositoryCommand`).sc(f).build(){},v=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteLifecyclePolicy`,{}).n(`ECRClient`,`DeleteLifecyclePolicyCommand`).sc(l).build(){},y=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepository`,{}).n(`ECRClient`,`DeleteRepositoryCommand`).sc(i).build(){},b=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepositoryPolicy`,{}).n(`ECRClient`,`DeleteRepositoryPolicyCommand`).sc(r).build(){},x=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetLifecyclePolicyPreview`,{}).n(`ECRClient`,`GetLifecyclePolicyPreviewCommand`).sc(d).build(){},S=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`PutImageTagMutability`,{}).n(`ECRClient`,`PutImageTagMutabilityCommand`).sc(o).build(){},C=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`PutLifecyclePolicy`,{}).n(`ECRClient`,`PutLifecyclePolicyCommand`).sc(s).build(){},w=class extends p.classBuilder().ep(c).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`SetRepositoryPolicy`,{}).n(`ECRClient`,`SetRepositoryPolicyCommand`).sc(a).build(){},T=e();function E(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new _({repositoryName:e});return await u().send(t)}function O(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new y({repositoryName:e,force:!0});return await u().send(t)}function A(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new g({repositoryName:e.repositoryName,imageIds:e.imageIds});return await u().send(t)}function M(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:N,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function N(e){let t=new w({repositoryName:e.repositoryName,policyText:e.policyText});return await u().send(t)}function P(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function F(e){let t=new S({repositoryName:e.repositoryName,imageTagMutability:e.imageTagMutability});return await u().send(t)}function I(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:L,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function L(e){let t=new b({repositoryName:e});return await u().send(t)}function R(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new C({repositoryName:e.repositoryName,lifecyclePolicyText:e.lifecyclePolicyText});return await u().send(t)}function B(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new v({repositoryName:e});return await u().send(t)}function H(){let e=(0,T.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:U},e[0]=n):n=e[0],t(n)}async function U(e){let t=new x({repositoryName:e});return await u().send(t)}export{I as a,R as c,O as i,M as l,E as n,H as o,B as r,P as s,A as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Cn as n,Dn as r,En as i,Fn as a,Nn as o,Pn as s,Rn as c,Tn as l,i as u,jn as d,wn as f}from"./awsClient.js";import{L as p,St as m}from"./auth.js";import{Ur as h}from"./index.js";var g=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`BatchDeleteImage`,{}).n(`ECRClient`,`BatchDeleteImageCommand`).sc(n).build(){},_=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`CreateRepository`,{}).n(`ECRClient`,`CreateRepositoryCommand`).sc(f).build(){},v=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteLifecyclePolicy`,{}).n(`ECRClient`,`DeleteLifecyclePolicyCommand`).sc(l).build(){},y=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepository`,{}).n(`ECRClient`,`DeleteRepositoryCommand`).sc(i).build(){},b=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepositoryPolicy`,{}).n(`ECRClient`,`DeleteRepositoryPolicyCommand`).sc(r).build(){},x=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetLifecyclePolicyPreview`,{}).n(`ECRClient`,`GetLifecyclePolicyPreviewCommand`).sc(d).build(){},S=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`PutImageTagMutability`,{}).n(`ECRClient`,`PutImageTagMutabilityCommand`).sc(o).build(){},C=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`PutLifecyclePolicy`,{}).n(`ECRClient`,`PutLifecyclePolicyCommand`).sc(s).build(){},w=class extends m.classBuilder().ep(c).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`SetRepositoryPolicy`,{}).n(`ECRClient`,`SetRepositoryPolicyCommand`).sc(a).build(){},T=e();function E(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new _({repositoryName:e});return await u().send(t)}function O(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new y({repositoryName:e,force:!0});return await u().send(t)}function A(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new g({repositoryName:e.repositoryName,imageIds:e.imageIds});return await u().send(t)}function M(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:N,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function N(e){let t=new w({repositoryName:e.repositoryName,policyText:e.policyText});return await u().send(t)}function P(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function F(e){let t=new S({repositoryName:e.repositoryName,imageTagMutability:e.imageTagMutability});return await u().send(t)}function I(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:L,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function L(e){let t=new b({repositoryName:e});return await u().send(t)}function R(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new C({repositoryName:e.repositoryName,lifecyclePolicyText:e.lifecyclePolicyText});return await u().send(t)}function B(){let e=(0,T.c)(2),n=h(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`lifecycle`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new v({repositoryName:e});return await u().send(t)}function H(){let e=(0,T.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:U},e[0]=n):n=e[0],t(n)}async function U(e){let t=new x({repositoryName:e});return await u().send(t)}export{I as a,R as c,O as i,M as l,E as n,H as o,B as r,P as s,A as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecs.js b/spinifex/services/spinifexui/frontend/dist/assets/ecs.js index c24cdc6aa..afeb9554c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecs.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Sn as n,a as r,an as i,bn as a,in as o,on as s,rn as c,sn as l,vn as u,xn as d,yn as f}from"./awsClient.js";import{C as p,D as m,Pt as h,St as g,r as _,ut as v}from"./auth.js";import{$r as y,ot as b}from"./index.js";var x=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`CreateCluster`,{}).n(`ECSClient`,`CreateClusterCommand`).sc(c).build(){},S=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`CreateService`,{}).n(`ECSClient`,`CreateServiceCommand`).sc(o).build(){},C=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeleteCluster`,{}).n(`ECSClient`,`DeleteClusterCommand`).sc(i).build(){},w=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeregisterContainerInstance`,{}).n(`ECSClient`,`DeregisterContainerInstanceCommand`).sc(s).build(){},T=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeregisterTaskDefinition`,{}).n(`ECSClient`,`DeregisterTaskDefinitionCommand`).sc(l).build(){},E=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`RegisterTaskDefinition`,{}).n(`ECSClient`,`RegisterTaskDefinitionCommand`).sc(u).build(){},D=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`RunTask`,{}).n(`ECSClient`,`RunTaskCommand`).sc(f).build(){},O=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`StopTask`,{}).n(`ECSClient`,`StopTaskCommand`).sc(a).build(){},k=class extends g.classBuilder().ep(n).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`UpdateContainerInstancesState`,{}).n(`ECSClient`,`UpdateContainerInstancesStateCommand`).sc(d).build(){},A=e(),j=`ap-southeast-2`,M=9999,N=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;function P(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`){if(`message`in t&&typeof t.message==`string`)return t.message;if(`Message`in t&&typeof t.Message==`string`)return t.Message}}catch{}return null}async function ee(e){let t=_();if(!t)throw Error(`Not authenticated`);let n=window.location.protocol.replace(`:`,``),r=JSON.stringify(e),i=new h({method:`POST`,protocol:n,hostname:`localhost`,port:M,path:`/`,headers:{host:`localhost:${M}`,"content-type":`application/x-amz-json-1.1`,"x-amz-target":N},body:r}),a=await new m({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:j,service:`ecs`,sha256:p}).sign(i),o={};for(let[e,t]of Object.entries(a.headers))typeof t==`string`&&(o[e]=t);let s=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,c=await fetch(s,{method:`POST`,headers:o,body:r});if(!c.ok){let e=await c.text().catch(()=>``),t=P(e)??e;throw Error(`ProvisionCapacity failed: ${c.status}${t?` - ${t}`:``}`)}return await c.json()}function F(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:I,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function I(e){let t=new x({clusterName:e});return await r().send(t)}function L(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function R(e){let t=new C({cluster:e});return await r().send(t)}function z(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new O({cluster:e.cluster,task:e.task});return await r().send(t)}function V(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new T({taskDefinition:e});return await r().send(t)}function U(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new k({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await r().send(t)}function G(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new w({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await r().send(t)}function q(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t={name:e.containerName,image:e.image,essential:e.essential,cpu:e.containerCpu?Number(e.containerCpu):void 0,memory:e.containerMemory?Number(e.containerMemory):void 0,portMappings:e.portMappings.length>0?e.portMappings.map(Y):void 0},n=new E({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await r().send(n)}function Y(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function X(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:b(t.Cluster).queryKey})}},e[0]=n,e[1]=r),t(r)}async function Z(e){return await ee(e)}function Q(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let t=new D({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0}),n=await r().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let e=n.failures[0];throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function te(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new S({cluster:e.cluster,serviceName:e.serviceName,taskDefinition:e.taskDefinition,desiredCount:e.desiredCount,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0,loadBalancers:e.targetGroupArn?[{targetGroupArn:e.targetGroupArn,containerName:e.loadBalancerContainerName||void 0,containerPort:e.loadBalancerContainerPort?Number(e.loadBalancerContainerPort):void 0}]:void 0});return await r().send(t)}export{V as a,Q as c,G as i,z as l,te as n,X as o,L as r,q as s,F as t,U as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{Sn as n,a as r,an as i,bn as a,in as o,on as s,rn as c,sn as l,vn as u,xn as d,yn as f}from"./awsClient.js";import{C as p,D as m,L as h,Pt as g,St as _,r as v}from"./auth.js";import{Ur as y,ot as b}from"./index.js";var x=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`CreateCluster`,{}).n(`ECSClient`,`CreateClusterCommand`).sc(c).build(){},S=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`CreateService`,{}).n(`ECSClient`,`CreateServiceCommand`).sc(o).build(){},C=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeleteCluster`,{}).n(`ECSClient`,`DeleteClusterCommand`).sc(i).build(){},w=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeregisterContainerInstance`,{}).n(`ECSClient`,`DeregisterContainerInstanceCommand`).sc(s).build(){},T=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DeregisterTaskDefinition`,{}).n(`ECSClient`,`DeregisterTaskDefinitionCommand`).sc(l).build(){},E=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`RegisterTaskDefinition`,{}).n(`ECSClient`,`RegisterTaskDefinitionCommand`).sc(u).build(){},D=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`RunTask`,{}).n(`ECSClient`,`RunTaskCommand`).sc(f).build(){},O=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`StopTask`,{}).n(`ECSClient`,`StopTaskCommand`).sc(a).build(){},k=class extends _.classBuilder().ep(n).m(function(e,t,n,r){return[h(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`UpdateContainerInstancesState`,{}).n(`ECSClient`,`UpdateContainerInstancesStateCommand`).sc(d).build(){},A=e(),j=`ap-southeast-2`,M=9999,N=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;function P(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`){if(`message`in t&&typeof t.message==`string`)return t.message;if(`Message`in t&&typeof t.Message==`string`)return t.Message}}catch{}return null}async function ee(e){let t=v();if(!t)throw Error(`Not authenticated`);let n=window.location.protocol.replace(`:`,``),r=JSON.stringify(e),i=new g({method:`POST`,protocol:n,hostname:`localhost`,port:M,path:`/`,headers:{host:`localhost:${M}`,"content-type":`application/x-amz-json-1.1`,"x-amz-target":N},body:r}),a=await new m({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:j,service:`ecs`,sha256:p}).sign(i),o={};for(let[e,t]of Object.entries(a.headers))typeof t==`string`&&(o[e]=t);let s=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,c=await fetch(s,{method:`POST`,headers:o,body:r});if(!c.ok){let e=await c.text().catch(()=>``),t=P(e)??e;throw Error(`ProvisionCapacity failed: ${c.status}${t?` - ${t}`:``}`)}return await c.json()}function F(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:I,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function I(e){let t=new x({clusterName:e});return await r().send(t)}function L(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:R,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function R(e){let t=new C({cluster:e});return await r().send(t)}function z(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new O({cluster:e.cluster,task:e.task});return await r().send(t)}function V(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new T({taskDefinition:e});return await r().send(t)}function U(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new k({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await r().send(t)}function G(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new w({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await r().send(t)}function q(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t={name:e.containerName,image:e.image,essential:e.essential,cpu:e.containerCpu?Number(e.containerCpu):void 0,memory:e.containerMemory?Number(e.containerMemory):void 0,portMappings:e.portMappings.length>0?e.portMappings.map(Y):void 0},n=new E({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await r().send(n)}function Y(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function X(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:b(t.Cluster).queryKey})}},e[0]=n,e[1]=r),t(r)}async function Z(e){return await ee(e)}function Q(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let t=new D({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0}),n=await r().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let e=n.failures[0];throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function te(){let e=(0,A.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new S({cluster:e.cluster,serviceName:e.serviceName,taskDefinition:e.taskDefinition,desiredCount:e.desiredCount,networkConfiguration:e.awsvpc?{awsvpcConfiguration:{subnets:e.subnets,securityGroups:e.securityGroups.length>0?e.securityGroups:void 0,assignPublicIp:e.assignPublicIp?`ENABLED`:`DISABLED`}}:void 0,loadBalancers:e.targetGroupArn?[{targetGroupArn:e.targetGroupArn,containerName:e.loadBalancerContainerName||void 0,containerPort:e.loadBalancerContainerPort?Number(e.loadBalancerContainerPort):void 0}]:void 0});return await r().send(t)}export{V as a,Q as c,G as i,z as l,te as n,X as o,L as r,q as s,F as t,U as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/eks.js b/spinifex/services/spinifexui/frontend/dist/assets/eks.js index 6faaed72d..2025d3122 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/eks.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/eks.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$t as n,Bt as r,Ft as i,It as a,Kt as ee,Lt as te,Mt as ne,Nt as re,Pt as o,Rt as s,en as c,nn as l,o as u,tn as d,zt as f}from"./awsClient.js";import{St as p,a as m,f as h,l as g,o as _,s as v,u as y,ut as b}from"./auth.js";import{$r as x}from"./index.js";import{i as S}from"./subnet-calculator.js";import{r as C}from"./json.js";var w=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`AssociateAccessPolicy`,{}).n(`EKSClient`,`AssociateAccessPolicyCommand`).sc(ne).build(){},T=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAccessEntry`,{}).n(`EKSClient`,`CreateAccessEntryCommand`).sc(re).build(){},E=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAddon`,{}).n(`EKSClient`,`CreateAddonCommand`).sc(o).build(){},D=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateCluster`,{}).n(`EKSClient`,`CreateClusterCommand`).sc(i).build(){},O=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateNodegroup`,{}).n(`EKSClient`,`CreateNodegroupCommand`).sc(a).build(){},k=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAccessEntry`,{}).n(`EKSClient`,`DeleteAccessEntryCommand`).sc(te).build(){},A=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAddon`,{}).n(`EKSClient`,`DeleteAddonCommand`).sc(s).build(){},j=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteCluster`,{}).n(`EKSClient`,`DeleteClusterCommand`).sc(f).build(){},M=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteNodegroup`,{}).n(`EKSClient`,`DeleteNodegroupCommand`).sc(r).build(){},N=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DisassociateAccessPolicy`,{}).n(`EKSClient`,`DisassociateAccessPolicyCommand`).sc(ee).build(){},P=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateAddon`,{}).n(`EKSClient`,`UpdateAddonCommand`).sc(n).build(){},F=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupConfig`,{}).n(`EKSClient`,`UpdateNodegroupConfigCommand`).sc(c).build(){},I=class extends p.classBuilder().ep(l).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupVersion`,{}).n(`EKSClient`,`UpdateNodegroupVersionCommand`).sc(d).build(){},L=e();function R(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await u().send(t)}function B(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await u().send(t)}function H(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await u().send(t)}function W(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await u().send(t)}function G(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await u().send(t)}function q(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await u().send(t)}function Y(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await u().send(t)}function oe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await u().send(t)}function ce(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await u().send(t)}function ue(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await u().send(t)}function fe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await u().send(t)}function me(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await u().send(t)}function ge(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await u().send(t)}var ve=[`1.32`,`1.31`,`1.30`],ye=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],X=[`AL2_x86_64`,`AL2_ARM_64`],Z=[`ON_DEMAND`,`SPOT`],be=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`eks.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),xe=`arn:aws:iam::aws:policy/AmazonEKSClusterPolicy`,Q=h().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),Se=y({name:Q,version:h().min(1,`Version is required`),roleArn:h().min(1,`Cluster IAM role is required`),vpcId:h().min(1,`VPC is required`),subnetIds:_(h()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:v(),endpointPublicAccess:v(),endpointPrivateAccess:v(),publicAccessCidrs:_(h())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>S(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),Ce=y({nodegroupName:Q,nodeRole:h().min(1,`Node IAM role is required`),subnetIds:_(h()).min(1,`At least 1 subnet is required`),instanceTypes:h().min(1,`At least 1 instance type is required`),amiType:m(X),capacityType:m(Z),diskSize:g().int().min(1),minSize:g().int().min(0),desiredSize:g().int().min(0),maxSize:g().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),$=C({label:`Configuration`,allowEmpty:!0}),we=y({addonName:h().min(1,`Add-on is required`),addonVersion:h().min(1,`Version is required`),serviceAccountRoleArn:h(),configurationValues:$});function Te(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Ee=y({principalArn:h().min(1,`Principal ARN is required`),kubernetesGroups:h()});export{W as C,ge as S,G as T,H as _,be as a,B as b,Te as c,Se as d,Ce as f,R as g,Y as h,Z as i,Ee as l,ue as m,ye as n,ve as o,me as p,X as r,$ as s,xe as t,we as u,fe as v,oe as w,q as x,ce as y}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{$t as n,Bt as r,Ft as i,It as a,Kt as ee,Lt as te,Mt as ne,Nt as re,Pt as o,Rt as s,en as c,nn as l,o as u,tn as d,zt as f}from"./awsClient.js";import{L as p,St as m,a as h,f as g,l as _,o as v,s as y,u as b}from"./auth.js";import{Ur as x}from"./index.js";import{i as S}from"./subnet-calculator.js";import{r as C}from"./json.js";var w=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`AssociateAccessPolicy`,{}).n(`EKSClient`,`AssociateAccessPolicyCommand`).sc(ne).build(){},T=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAccessEntry`,{}).n(`EKSClient`,`CreateAccessEntryCommand`).sc(re).build(){},E=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateAddon`,{}).n(`EKSClient`,`CreateAddonCommand`).sc(o).build(){},D=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateCluster`,{}).n(`EKSClient`,`CreateClusterCommand`).sc(i).build(){},O=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`CreateNodegroup`,{}).n(`EKSClient`,`CreateNodegroupCommand`).sc(a).build(){},k=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAccessEntry`,{}).n(`EKSClient`,`DeleteAccessEntryCommand`).sc(te).build(){},A=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteAddon`,{}).n(`EKSClient`,`DeleteAddonCommand`).sc(s).build(){},j=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteCluster`,{}).n(`EKSClient`,`DeleteClusterCommand`).sc(f).build(){},M=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DeleteNodegroup`,{}).n(`EKSClient`,`DeleteNodegroupCommand`).sc(r).build(){},N=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DisassociateAccessPolicy`,{}).n(`EKSClient`,`DisassociateAccessPolicyCommand`).sc(ee).build(){},P=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateAddon`,{}).n(`EKSClient`,`UpdateAddonCommand`).sc(n).build(){},F=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupConfig`,{}).n(`EKSClient`,`UpdateNodegroupConfigCommand`).sc(c).build(){},I=class extends m.classBuilder().ep(l).m(function(e,t,n,r){return[p(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`UpdateNodegroupVersion`,{}).n(`EKSClient`,`UpdateNodegroupVersionCommand`).sc(d).build(){},L=e();function R(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:z,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function z(e){let t=new D({name:e.name,version:e.version,roleArn:e.roleArn,resourcesVpcConfig:{subnetIds:e.subnetIds,endpointPublicAccess:e.endpointPublicAccess,endpointPrivateAccess:e.endpointPrivateAccess,publicAccessCidrs:e.endpointPublicAccess?e.publicAccessCidrs:void 0},accessConfig:{authenticationMode:`API`,bootstrapClusterCreatorAdminPermissions:e.bootstrapClusterCreatorAdminPermissions}});return await u().send(t)}function B(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:V,onSuccess:()=>{n.invalidateQueries({queryKey:[`eks`,`clusters`]})}},e[0]=n,e[1]=r),t(r)}async function V(e){let t=new j({name:e});return await u().send(t)}function H(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:U,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function U(e){let t=new O({clusterName:e.clusterName,nodegroupName:e.nodegroupName,nodeRole:e.nodeRole,subnets:e.subnetIds,instanceTypes:e.instanceTypes,amiType:e.amiType,capacityType:e.capacityType,diskSize:e.diskSize,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await u().send(t)}function W(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let t=new F({clusterName:e.clusterName,nodegroupName:e.nodegroupName,scalingConfig:{minSize:e.minSize,maxSize:e.maxSize,desiredSize:e.desiredSize}});return await u().send(t)}function G(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new I({clusterName:e.clusterName,nodegroupName:e.nodegroupName,version:e.version});return await u().send(t)}function q(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:J,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`nodegroups`]})}},e[0]=n,e[1]=r),t(r)}async function J(e){let t=new M({clusterName:e.clusterName,nodegroupName:e.nodegroupName});return await u().send(t)}function Y(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:ae,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function ae(e){let t=new E({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await u().send(t)}function oe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:se,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function se(e){let t=new P({clusterName:e.clusterName,addonName:e.addonName,addonVersion:e.addonVersion,serviceAccountRoleArn:e.serviceAccountRoleArn,configurationValues:e.configurationValues});return await u().send(t)}function ce(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:le,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`addons`]})}},e[0]=n,e[1]=r),t(r)}async function le(e){let t=new A({clusterName:e.clusterName,addonName:e.addonName});return await u().send(t)}function ue(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:de,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function de(e){let t=new T({clusterName:e.clusterName,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups,type:e.type});return await u().send(t)}function fe(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:pe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`]})}},e[0]=n,e[1]=r),t(r)}async function pe(e){let t=new k({clusterName:e.clusterName,principalArn:e.principalArn});return await u().send(t)}function me(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new w({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn,accessScope:{type:e.accessScopeType,namespaces:e.namespaces}});return await u().send(t)}function ge(){let e=(0,L.c)(2),n=x(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`eks`,`clusters`,t.clusterName,`access-entries`,t.principalArn,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new N({clusterName:e.clusterName,principalArn:e.principalArn,policyArn:e.policyArn});return await u().send(t)}var ve=[`1.32`,`1.31`,`1.30`],ye=[{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy`,name:`AmazonEKSClusterAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy`,name:`AmazonEKSAdminPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy`,name:`AmazonEKSEditPolicy`},{arn:`arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy`,name:`AmazonEKSViewPolicy`}],X=[`AL2_x86_64`,`AL2_ARM_64`],Z=[`ON_DEMAND`,`SPOT`],be=JSON.stringify({Version:`2012-10-17`,Statement:[{Effect:`Allow`,Principal:{Service:`eks.amazonaws.com`},Action:`sts:AssumeRole`}]},null,2),xe=`arn:aws:iam::aws:policy/AmazonEKSClusterPolicy`,Q=g().min(1,`Name is required`).max(100,`Name must be 100 characters or fewer`).regex(/^[0-9A-Za-z][A-Za-z0-9\-_]*$/,`Must start with a letter or digit and contain only letters, digits, hyphens, or underscores`),Se=b({name:Q,version:g().min(1,`Version is required`),roleArn:g().min(1,`Cluster IAM role is required`),vpcId:g().min(1,`VPC is required`),subnetIds:v(g()).min(1,`At least 1 subnet is required`),bootstrapClusterCreatorAdminPermissions:y(),endpointPublicAccess:y(),endpointPrivateAccess:y(),publicAccessCidrs:v(g())}).refine(e=>e.endpointPublicAccess||e.endpointPrivateAccess,{message:`Enable public access, private access, or both`,path:[`endpointPublicAccess`]}).refine(e=>!e.endpointPublicAccess||e.publicAccessCidrs.every(e=>S(e,0,32)),{message:`Each public access CIDR must be valid (e.g. 203.0.113.0/24)`,path:[`publicAccessCidrs`]}),Ce=b({nodegroupName:Q,nodeRole:g().min(1,`Node IAM role is required`),subnetIds:v(g()).min(1,`At least 1 subnet is required`),instanceTypes:g().min(1,`At least 1 instance type is required`),amiType:h(X),capacityType:h(Z),diskSize:_().int().min(1),minSize:_().int().min(0),desiredSize:_().int().min(0),maxSize:_().int().min(1)}).refine(e=>e.minSize<=e.desiredSize&&e.desiredSize<=e.maxSize,{message:`Sizes must satisfy min ≤ desired ≤ max`,path:[`desiredSize`]}),$=C({label:`Configuration`,allowEmpty:!0}),we=b({addonName:g().min(1,`Add-on is required`),addonVersion:g().min(1,`Version is required`),serviceAccountRoleArn:g(),configurationValues:$});function Te(e){switch(e??``){case`ACTIVE`:return`default`;case`CREATE_FAILED`:case`DELETE_FAILED`:case`UPDATE_FAILED`:case`DEGRADED`:return`destructive`;default:return`secondary`}}var Ee=b({principalArn:g().min(1,`Principal ARN is required`),kubernetesGroups:g()});export{W as C,ge as S,G as T,H as _,be as a,B as b,Te as c,Se as d,Ce as f,R as g,Y as h,Z as i,Ee as l,ue as m,ye as n,ve as o,me as p,X as r,$ as s,xe as t,we as u,fe as v,oe as w,q as x,ce as y}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js index 34dafe265..1bf4be1c8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/elbv2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{At as n,Ct as r,Dt as i,Et as a,Ot as o,Tt as s,at as c,ct as ee,dt as l,ft as u,it as d,jt as f,kt as p,lt as m,ot as te,pt as ne,s as h,st as re,ut as ie,wt as g}from"./awsClient.js";import{St as _,ut as v}from"./auth.js";import{$r as y}from"./index.js";var b=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`AddTags`,{}).n(`ElasticLoadBalancingV2Client`,`AddTagsCommand`).sc(d).build(){},x=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(c).build(){},S=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(te).build(){},C=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateRule`,{}).n(`ElasticLoadBalancingV2Client`,`CreateRuleCommand`).sc(re).build(){},w=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(ee).build(){},T=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(m).build(){},E=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(ie).build(){},D=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteRule`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteRuleCommand`).sc(l).build(){},O=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(u).build(){},k=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(ne).build(){},A=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyListener`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyListenerCommand`).sc(r).build(){},j=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(g).build(){},M=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyRule`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyRuleCommand`).sc(s).build(){},N=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(a).build(){},P=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(i).build(){},F=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RemoveTags`,{}).n(`ElasticLoadBalancingV2Client`,`RemoveTagsCommand`).sc(o).build(){},I=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSecurityGroups`,{}).n(`ElasticLoadBalancingV2Client`,`SetSecurityGroupsCommand`).sc(p).build(){},L=class extends _.classBuilder().ep(f).m(function(e,t,n,r){return[v(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSubnets`,{}).n(`ElasticLoadBalancingV2Client`,`SetSubnetsCommand`).sc(n).build(){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await h().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await h().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=h();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await h().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await h().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await h().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await h().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await h().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await h().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=h(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await h().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await h().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await h().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{At as n,Ct as r,Dt as i,Et as a,Ot as o,Tt as s,at as c,ct as ee,dt as l,ft as u,it as d,jt as f,kt as p,lt as m,ot as te,pt as ne,s as h,st as re,ut as ie,wt as g}from"./awsClient.js";import{L as _,St as v}from"./auth.js";import{Ur as y}from"./index.js";var b=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`AddTags`,{}).n(`ElasticLoadBalancingV2Client`,`AddTagsCommand`).sc(d).build(){},x=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateListener`,{}).n(`ElasticLoadBalancingV2Client`,`CreateListenerCommand`).sc(c).build(){},S=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`CreateLoadBalancerCommand`).sc(te).build(){},C=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateRule`,{}).n(`ElasticLoadBalancingV2Client`,`CreateRuleCommand`).sc(re).build(){},w=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`CreateTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`CreateTargetGroupCommand`).sc(ee).build(){},T=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteListener`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteListenerCommand`).sc(m).build(){},E=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteLoadBalancer`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteLoadBalancerCommand`).sc(ie).build(){},D=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteRule`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteRuleCommand`).sc(l).build(){},O=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeleteTargetGroup`,{}).n(`ElasticLoadBalancingV2Client`,`DeleteTargetGroupCommand`).sc(u).build(){},k=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DeregisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`DeregisterTargetsCommand`).sc(ne).build(){},A=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyListener`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyListenerCommand`).sc(r).build(){},j=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyLoadBalancerAttributesCommand`).sc(g).build(){},M=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyRule`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyRuleCommand`).sc(s).build(){},N=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`ModifyTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`ModifyTargetGroupAttributesCommand`).sc(a).build(){},P=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RegisterTargets`,{}).n(`ElasticLoadBalancingV2Client`,`RegisterTargetsCommand`).sc(i).build(){},F=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`RemoveTags`,{}).n(`ElasticLoadBalancingV2Client`,`RemoveTagsCommand`).sc(o).build(){},I=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSecurityGroups`,{}).n(`ElasticLoadBalancingV2Client`,`SetSecurityGroupsCommand`).sc(p).build(){},L=class extends v.classBuilder().ep(f).m(function(e,t,n,r){return[_(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`SetSubnets`,{}).n(`ElasticLoadBalancingV2Client`,`SetSubnetsCommand`).sc(n).build(){},R=e();function z(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:B,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`]})}},e[0]=n,e[1]=r),t(r)}async function B(e){let t=new E({LoadBalancerArn:e});return await h().send(t)}function V(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new j({LoadBalancerArn:e.loadBalancerArn,Attributes:e.attributes.map(U)});return await h().send(t)}function U(e){return{Key:e.key,Value:e.value}}function W(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:G,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`tags`]})}},e[0]=n,e[1]=r),t(r)}async function G(e){let t=new Set(e.tags.map(q)),n=e.initialKeys.filter(e=>!t.has(e)),r=h();e.tags.length>0&&await r.send(new b({ResourceArns:[e.resourceArn],Tags:e.tags.map(K)})),n.length>0&&await r.send(new F({ResourceArns:[e.resourceArn],TagKeys:n}))}function K(e){return{Key:e.key,Value:e.value}}function q(e){return e.key}function J(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let t=new I({LoadBalancerArn:e.loadBalancerArn,SecurityGroups:e.securityGroupIds});return await h().send(t)}function ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`loadBalancers`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let t=new L({LoadBalancerArn:e.loadBalancerArn,Subnets:e.subnetIds});return await h().send(t)}function se(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=e.tags.filter(ue).map(le),n=e.healthCheck.protocol===`HTTP`,r=new w({Name:e.name,Protocol:e.protocol,Port:e.port,VpcId:e.vpcId,TargetType:`instance`,HealthCheckProtocol:e.healthCheck.protocol,HealthCheckPath:n?e.healthCheck.path:void 0,HealthCheckPort:e.healthCheck.port,HealthCheckIntervalSeconds:e.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:e.healthCheck.timeoutSeconds,HealthyThresholdCount:e.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:e.healthCheck.unhealthyThresholdCount,Matcher:n?{HttpCode:e.healthCheck.matcher}:void 0,Tags:t.length>0?t:void 0});return await h().send(r)}function le(e){return{Key:e.key,Value:e.value}}function ue(e){return e.key.length>0}function de(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let t=new O({TargetGroupArn:e});return await h().send(t)}function pe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:me,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`attributes`]})}},e[0]=n,e[1]=r),t(r)}async function me(e){let t=new N({TargetGroupArn:e.targetGroupArn,Attributes:e.attributes.map(he)});return await h().send(t)}function he(e){return{Key:e.key,Value:e.value}}function X(e,t,n){return!(e===`HTTPS`||e===`TLS`)||!t?{}:{Certificates:[{CertificateArn:t}],SslPolicy:e===`HTTPS`?n:void 0}}function ge(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new x({LoadBalancerArn:e.loadBalancerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function ve(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let t=new T({ListenerArn:e});return await h().send(t)}function be(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.loadBalancerArn]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let t=[{Type:`forward`,TargetGroupArn:e.defaultTargetGroupArn}],n=new A({ListenerArn:e.listenerArn,Protocol:e.protocol,Port:e.port,DefaultActions:t,...X(e.protocol,e.certificateArn,e.sslPolicy)});return await h().send(n)}function Se(){let e=y();return t({mutationFn:async e=>{let t=h(),n=[],r=``;try{let i=e.listener.existingTargetGroupArn;if(e.listener.targetGroupMode===`new`){let a=e.listener.newTargetGroup;if(!a)throw Error(`internal error: new target group requested but no data supplied`);r=`creating target group`;let o=a.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),s=a.healthCheck.protocol===`HTTP`;if(i=(await t.send(new w({Name:a.name,Protocol:a.protocol,Port:a.port,VpcId:a.vpcId,TargetType:`instance`,HealthCheckProtocol:a.healthCheck.protocol,HealthCheckPath:s?a.healthCheck.path:void 0,HealthCheckPort:a.healthCheck.port,HealthCheckIntervalSeconds:a.healthCheck.intervalSeconds,HealthCheckTimeoutSeconds:a.healthCheck.timeoutSeconds,HealthyThresholdCount:a.healthCheck.healthyThresholdCount,UnhealthyThresholdCount:a.healthCheck.unhealthyThresholdCount,Matcher:s?{HttpCode:a.healthCheck.matcher}:void 0,Tags:o.length>0?o:void 0}))).TargetGroups?.[0]?.TargetGroupArn,!i)throw Error(`Target group was created but no ARN was returned by the API`);n.push({type:`Target Group`,id:i})}if(!i)throw Error(`Target group selection is required`);r=`creating load balancer`;let a=e.lb.tags.filter(e=>e.key.length>0).map(e=>({Key:e.key,Value:e.value})),o=(await t.send(new S({Name:e.lb.name,Scheme:e.lb.scheme,Type:e.lb.type,IpAddressType:`ipv4`,Subnets:e.lb.subnetIds,SecurityGroups:e.lb.securityGroupIds.length>0?e.lb.securityGroupIds:void 0,Tags:a.length>0?a:void 0}))).LoadBalancers?.[0]?.LoadBalancerArn;if(!o)throw Error(`Load balancer was created but no ARN was returned by the API`);return n.push({type:`Load Balancer`,id:o}),r=`creating listener`,await t.send(new x({LoadBalancerArn:o,Protocol:e.listener.protocol,Port:e.listener.port,DefaultActions:[{Type:`forward`,TargetGroupArn:i}],...X(e.listener.protocol,e.listener.certificateArn,e.listener.sslPolicy)})),n.push({type:`Listener`,id:void 0}),{loadBalancerArn:o,created:n}}catch(e){return{loadBalancerArn:void 0,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:r}}},onSettled:()=>{e.invalidateQueries({queryKey:[`elbv2`]})}})}function Z(e){return e.map(e=>({Id:e.id,Port:e.port}))}function Ce(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:we,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function we(e){let t=new P({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function Q(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:Te,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`targetGroups`,t.targetGroupArn,`health`]})}},e[0]=n,e[1]=r),t(r)}async function Te(e){let t=new k({TargetGroupArn:e.targetGroupArn,Targets:Z(e.targets)});return await h().send(t)}function $(e){return e.map(e=>{switch(e.field){case`host-header`:return{Field:e.field,HostHeaderConfig:{Values:e.values}};case`path-pattern`:return{Field:e.field,PathPatternConfig:{Values:e.values}};case`http-header`:return{Field:e.field,HttpHeaderConfig:{HttpHeaderName:e.httpHeaderName??``,Values:e.values}};case`http-request-method`:return{Field:e.field,HttpRequestMethodConfig:{Values:e.values}};case`source-ip`:return{Field:e.field,SourceIpConfig:{Values:e.values}};case`query-string`:return{Field:e.field,QueryStringConfig:{Values:(e.queryStringPairs??[]).map(e=>({Key:e.key&&e.key.length>0?e.key:void 0,Value:e.value}))}};default:return{Field:e.field,Values:e.values}}})}function Ee(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:De,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function De(e){let t=[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}],n=new C({ListenerArn:e.listenerArn,Priority:e.priority,Conditions:$(e.conditions),Actions:t});return await h().send(n)}function Oe(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:ke,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function ke(e){let t=new M({RuleArn:e.ruleArn,Conditions:e.conditions?$(e.conditions):void 0,Actions:e.forwardTargetGroupArn?[{Type:`forward`,TargetGroupArn:e.forwardTargetGroupArn}]:void 0});return await h().send(t)}function Ae(){let e=(0,R.c)(2),n=y(),r;return e[0]===n?r=e[1]:(r={mutationFn:je,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`elbv2`,`listeners`,t.listenerArn,`rules`]})}},e[0]=n,e[1]=r),t(r)}async function je(e){let t=new D({RuleArn:e.ruleArn});return await h().send(t)}export{W as _,ve as a,de as c,V as d,Oe as f,ae as g,J as h,se as i,Q as l,Ce as m,Se as n,z as o,pe as p,Ee as r,Ae as s,ge as t,be as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/iam.js b/spinifex/services/spinifexui/frontend/dist/assets/iam.js index 2d5544c9c..44641ce08 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/iam.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/iam.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{A as n,B as r,D as i,F as a,I as o,L as s,M as c,N as l,O as u,P as ee,R as d,V as f,c as p,j as m,k as h,nt as g,rt as _,tt as v,z as y}from"./awsClient.js";import{St as b,ut as x}from"./auth.js";import{$r as S}from"./index.js";var C=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(i).build(){},w=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(u).build(){},T=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(h).build(){},E=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(n).build(){},D=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(m).build(){},O=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(c).build(){},k=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(l).build(){},A=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(ee).build(){},j=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(a).build(){},M=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(o).build(){},N=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(s).build(){},P=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(d).build(){},F=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(y).build(){},I=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(r).build(){},L=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(f).build(){},R=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(v).build(){},z=class extends b.classBuilder().ep(_).m(function(e,t,n,r){return[x(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(g).build(){},B=e();function V(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await p().send(t)}function U(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new F({UserName:e});return await p().send(t)}function G(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new E({UserName:e});return await p().send(t)}function te(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function q(e){let{userName:t,accessKeyId:n}=e,r=new j({UserName:t,AccessKeyId:n});return await p().send(r)}function J(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let{userName:t,accessKeyId:n,status:r}=e,i=new z({UserName:t,AccessKeyId:n,Status:r});return await p().send(i)}function X(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await p().send(t)}function Q(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new N({PolicyArn:e});return await p().send(t)}function re(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let{userName:t,policyArn:n}=e,r=new T({UserName:t,PolicyArn:n});return await p().send(r)}function ae(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let{userName:t,policyArn:n}=e,r=new L({UserName:t,PolicyArn:n});return await p().send(r)}function se(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await p().send(t)}function le(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ue(e){let t=new P({RoleName:e});return await p().send(t)}function de(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let{roleName:t,policyArn:n}=e,r=new w({RoleName:t,PolicyArn:n});return await p().send(r)}function pe(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let{roleName:t,policyArn:n}=e,r=new I({RoleName:t,PolicyArn:n});return await p().send(r)}function me(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await p().send(t)}function ge(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await p().send(t)}function ve(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,r=new C({InstanceProfileName:t,RoleName:n});return await p().send(r)}function be(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,r=new R({InstanceProfileName:t,RoleName:n});return await p().send(r)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,G as i,te as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{A as n,B as r,D as i,F as a,I as o,L as s,M as c,N as l,O as u,P as ee,R as d,V as f,c as p,j as m,k as h,nt as g,rt as _,tt as v,z as y}from"./awsClient.js";import{L as b,St as x}from"./auth.js";import{Ur as S}from"./index.js";var C=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AddRoleToInstanceProfile`,{}).n(`IAMClient`,`AddRoleToInstanceProfileCommand`).sc(i).build(){},w=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachRolePolicy`,{}).n(`IAMClient`,`AttachRolePolicyCommand`).sc(u).build(){},T=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`AttachUserPolicy`,{}).n(`IAMClient`,`AttachUserPolicyCommand`).sc(h).build(){},E=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateAccessKey`,{}).n(`IAMClient`,`CreateAccessKeyCommand`).sc(n).build(){},D=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateInstanceProfile`,{}).n(`IAMClient`,`CreateInstanceProfileCommand`).sc(m).build(){},O=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreatePolicy`,{}).n(`IAMClient`,`CreatePolicyCommand`).sc(c).build(){},k=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateRole`,{}).n(`IAMClient`,`CreateRoleCommand`).sc(l).build(){},A=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`CreateUser`,{}).n(`IAMClient`,`CreateUserCommand`).sc(ee).build(){},j=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteAccessKey`,{}).n(`IAMClient`,`DeleteAccessKeyCommand`).sc(a).build(){},M=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteInstanceProfile`,{}).n(`IAMClient`,`DeleteInstanceProfileCommand`).sc(o).build(){},N=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeletePolicy`,{}).n(`IAMClient`,`DeletePolicyCommand`).sc(s).build(){},P=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteRole`,{}).n(`IAMClient`,`DeleteRoleCommand`).sc(d).build(){},F=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DeleteUser`,{}).n(`IAMClient`,`DeleteUserCommand`).sc(y).build(){},I=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachRolePolicy`,{}).n(`IAMClient`,`DetachRolePolicyCommand`).sc(r).build(){},L=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`DetachUserPolicy`,{}).n(`IAMClient`,`DetachUserPolicyCommand`).sc(f).build(){},R=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`RemoveRoleFromInstanceProfile`,{}).n(`IAMClient`,`RemoveRoleFromInstanceProfileCommand`).sc(v).build(){},z=class extends x.classBuilder().ep(_).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`UpdateAccessKey`,{}).n(`IAMClient`,`UpdateAccessKeyCommand`).sc(g).build(){},B=e();function V(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:H,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function H(e){let t=new A({UserName:e.userName,Path:e.path||void 0});return await p().send(t)}function U(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:W,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`users`]})}},e[0]=n,e[1]=r),t(r)}async function W(e){let t=new F({UserName:e});return await p().send(t)}function G(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:K,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function K(e){let t=new E({UserName:e});return await p().send(t)}function te(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:q,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function q(e){let{userName:t,accessKeyId:n}=e,r=new j({UserName:t,AccessKeyId:n});return await p().send(r)}function J(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Y,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`access-keys`]})}},e[0]=n,e[1]=r),t(r)}async function Y(e){let{userName:t,accessKeyId:n,status:r}=e,i=new z({UserName:t,AccessKeyId:n,Status:r});return await p().send(i)}function X(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:Z,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function Z(e){let t=new O({PolicyName:e.policyName,Description:e.description||void 0,PolicyDocument:e.policyDocument});return await p().send(t)}function Q(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ne,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`policies`]})}},e[0]=n,e[1]=r),t(r)}async function ne(e){let t=new N({PolicyArn:e});return await p().send(t)}function re(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ie,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function ie(e){let{userName:t,policyArn:n}=e,r=new T({UserName:t,PolicyArn:n});return await p().send(r)}function ae(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:oe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-user-policies`]})}},e[0]=n,e[1]=r),t(r)}async function oe(e){let{userName:t,policyArn:n}=e,r=new L({UserName:t,PolicyArn:n});return await p().send(r)}function se(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ce,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ce(e){let t=new k({RoleName:e.roleName,Path:e.path||void 0,Description:e.description||void 0,AssumeRolePolicyDocument:e.assumeRolePolicyDocument});return await p().send(t)}function le(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ue,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`roles`]})}},e[0]=n,e[1]=r),t(r)}async function ue(e){let t=new P({RoleName:e});return await p().send(t)}function de(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:fe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function fe(e){let{roleName:t,policyArn:n}=e,r=new w({RoleName:t,PolicyArn:n});return await p().send(r)}function pe(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:$,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`attached-role-policies`]})}},e[0]=n,e[1]=r),t(r)}async function $(e){let{roleName:t,policyArn:n}=e,r=new I({RoleName:t,PolicyArn:n});return await p().send(r)}function me(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:he,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function he(e){let t=new D({InstanceProfileName:e.instanceProfileName,Path:e.path||void 0});return await p().send(t)}function ge(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:_e,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function _e(e){let t=new M({InstanceProfileName:e});return await p().send(t)}function ve(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:ye,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function ye(e){let{instanceProfileName:t,roleName:n}=e,r=new C({InstanceProfileName:t,RoleName:n});return await p().send(r)}function be(){let e=(0,B.c)(2),n=S(),r;return e[0]===n?r=e[1]:(r={mutationFn:xe,onSuccess:()=>{n.invalidateQueries({queryKey:[`iam`,`instance-profiles`]})}},e[0]=n,e[1]=r),t(r)}async function xe(e){let{instanceProfileName:t,roleName:n}=e,r=new R({InstanceProfileName:t,RoleName:n});return await p().send(r)}export{J as _,me as a,V as c,Q as d,le as f,be as g,ae as h,G as i,te as l,pe as m,de as n,X as o,U as p,re as r,se as s,ve as t,ge as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js index 681203fef..6e3d6810e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/import-key-pair.js @@ -1,3 +1,3 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{t as r}from"./cli-command-panel.js";import{V as ee}from"./ec2.js";import{Qr as i,nr as te}from"./index.js";import{a,i as o,t as s}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{g as f}from"./ec22.js";import{t as p}from"./textarea.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=i(),g=ee(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:s(f)},e[0]=v):v=e[0];let{handleSubmit:y,register:b,control:x,formState:S}=o(v),{errors:C,isSubmitting:w}=S,T;e[1]===x?T=e[2]:(T={control:x},e[1]=x,e[2]=T);let E=a(T),D;e[3]===E?D=e[4]:(D=e=>e?E[e]:void 0,e[3]=E,e[4]=D);let O=D,k;e[5]!==g||e[6]!==t?(k=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[5]=g,e[6]=t,e[7]=k):k=e[7];let A=k,j,M;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(n,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,h.jsx)(c,{title:`Import Key Pair`}),e[8]=j,e[9]=M):(j=e[8],M=e[9]);let N;e[10]===g.error?N=e[11]:(N=g.error&&(0,h.jsx)(ne,{error:g.error,msg:`Failed to import key pair`}),e[10]=g.error,e[11]=N);let P;e[12]!==y||e[13]!==A?(P=y(A),e[12]=y,e[13]=A,e[14]=P):P=e[14];let F;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[15]=F):F=e[15];let I=!!C.keyName,L;e[16]===b?L=e[17]:(L=b(`keyName`),e[16]=b,e[17]=L);let R;e[18]!==I||e[19]!==L?(R=(0,h.jsx)(te,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[18]=I,e[19]=L,e[20]=R):R=e[20];let z;e[21]===C.keyName?z=e[22]:(z=(0,h.jsx)(u,{errors:[C.keyName]}),e[21]=C.keyName,e[22]=z);let B;e[23]!==R||e[24]!==z?(B=(0,h.jsxs)(d,{children:[F,R,z]}),e[23]=R,e[24]=z,e[25]=B):B=e[25];let V,H;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,h.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[26]=V,e[27]=H):(V=e[26],H=e[27]);let U=!!C.publicKeyMaterial,W;e[28]===b?W=e[29]:(W=b(`publicKeyMaterial`),e[28]=b,e[29]=W);let G;e[30]!==U||e[31]!==W?(G=(0,h.jsx)(p,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[30]=U,e[31]=W,e[32]=G):G=e[32];let K;e[33]===C.publicKeyMaterial?K=e[34]:(K=(0,h.jsx)(u,{errors:[C.publicKeyMaterial]}),e[33]=C.publicKeyMaterial,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(d,{children:[V,H,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===O?J=e[39]:(J=_(O),e[38]=O,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(r,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-key-pairs`}),e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==w||e[46]!==X?(Z=(0,h.jsx)(re,{isPending:g.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[44]=g.isPending,e[45]=w,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==B||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==P?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[48]=B,e[49]=q,e[50]=Y,e[51]=Z,e[52]=P,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==N?($=(0,h.jsxs)(h.Fragment,{children:[j,M,N,Q]}),e[54]=Q,e[55]=N,e[56]=$):$=e[56],$}function _(e){let t=e(`keyName`);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.js";import{t as n}from"./useNavigate.js";import{t as r}from"./cli-command-panel.js";import{t as ee}from"./back-link.js";import{V as i}from"./ec2.js";import{er as te}from"./index.js";import{a,i as o,t as s}from"./zod.js";import{t as ne}from"./error-banner.js";import{t as re}from"./form-actions.js";import{t as c}from"./page-heading.js";import{a as l,r as u,t as d}from"./field.js";import{g as f}from"./ec22.js";import{t as p}from"./textarea.js";var m=t(),h=e();function g(){let e=(0,m.c)(57),t=n(),g=i(),v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={resolver:s(f)},e[0]=v):v=e[0];let{handleSubmit:y,register:b,control:x,formState:S}=o(v),{errors:C,isSubmitting:w}=S,T;e[1]===x?T=e[2]:(T={control:x},e[1]=x,e[2]=T);let E=a(T),D;e[3]===E?D=e[4]:(D=e=>e?E[e]:void 0,e[3]=E,e[4]=D);let O=D,k;e[5]!==g||e[6]!==t?(k=async e=>{await g.mutateAsync(e),t({to:`/ec2/describe-key-pairs`})},e[5]=g,e[6]=t,e[7]=k):k=e[7];let A=k,j,M;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(ee,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),M=(0,h.jsx)(c,{title:`Import Key Pair`}),e[8]=j,e[9]=M):(j=e[8],M=e[9]);let N;e[10]===g.error?N=e[11]:(N=g.error&&(0,h.jsx)(ne,{error:g.error,msg:`Failed to import key pair`}),e[10]=g.error,e[11]=N);let P;e[12]!==y||e[13]!==A?(P=y(A),e[12]=y,e[13]=A,e[14]=P):P=e[14];let F;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[15]=F):F=e[15];let I=!!C.keyName,L;e[16]===b?L=e[17]:(L=b(`keyName`),e[16]=b,e[17]=L);let R;e[18]!==I||e[19]!==L?(R=(0,h.jsx)(te,{"aria-invalid":I,id:`keyName`,placeholder:`my-key-pair…`,...L}),e[18]=I,e[19]=L,e[20]=R):R=e[20];let z;e[21]===C.keyName?z=e[22]:(z=(0,h.jsx)(u,{errors:[C.keyName]}),e[21]=C.keyName,e[22]=z);let B;e[23]!==R||e[24]!==z?(B=(0,h.jsxs)(d,{children:[F,R,z]}),e[23]=R,e[24]=z,e[25]=B):B=e[25];let V,H;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,h.jsx)(l,{children:(0,h.jsx)(`label`,{htmlFor:`publicKeyMaterial`,children:`Public Key`})}),H=(0,h.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[26]=V,e[27]=H):(V=e[26],H=e[27]);let U=!!C.publicKeyMaterial,W;e[28]===b?W=e[29]:(W=b(`publicKeyMaterial`),e[28]=b,e[29]=W);let G;e[30]!==U||e[31]!==W?(G=(0,h.jsx)(p,{"aria-invalid":U,id:`publicKeyMaterial`,placeholder:`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…`,rows:8,...W}),e[30]=U,e[31]=W,e[32]=G):G=e[32];let K;e[33]===C.publicKeyMaterial?K=e[34]:(K=(0,h.jsx)(u,{errors:[C.publicKeyMaterial]}),e[33]=C.publicKeyMaterial,e[34]=K);let q;e[35]!==G||e[36]!==K?(q=(0,h.jsxs)(d,{children:[V,H,G,K]}),e[35]=G,e[36]=K,e[37]=q):q=e[37];let J;e[38]===O?J=e[39]:(J=_(O),e[38]=O,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,h.jsx)(r,{commands:J}),e[40]=J,e[41]=Y);let X;e[42]===t?X=e[43]:(X=async()=>await t({to:`/ec2/describe-key-pairs`}),e[42]=t,e[43]=X);let Z;e[44]!==g.isPending||e[45]!==w||e[46]!==X?(Z=(0,h.jsx)(re,{isPending:g.isPending,isSubmitting:w,onCancel:X,pendingLabel:`Importing…`,submitLabel:`Import Key Pair`}),e[44]=g.isPending,e[45]=w,e[46]=X,e[47]=Z):Z=e[47];let Q;e[48]!==B||e[49]!==q||e[50]!==Y||e[51]!==Z||e[52]!==P?(Q=(0,h.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:P,children:[B,q,Y,Z]}),e[48]=B,e[49]=q,e[50]=Y,e[51]=Z,e[52]=P,e[53]=Q):Q=e[53];let $;return e[54]!==Q||e[55]!==N?($=(0,h.jsxs)(h.Fragment,{children:[j,M,N,Q]}),e[54]=Q,e[55]=N,e[56]=$):$=e[56],$}function _(e){let t=e(`keyName`);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:` ${(typeof t==`string`?t:``)||``}`},{type:`flag`,value:` \\ --public-key-material`},{type:`value`,value:` fileb://path/to/key.pub`}]}]}export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index bec4eee3c..ce6a4c446 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,10 +1,10 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/auth.js","assets/tslib.es6.js","assets/awsClient.js","assets/index.browser.js","assets/useStore.js","assets/button.js","assets/dist.js","assets/collapsible.js","assets/createBaseUIEventDetails.js","assets/zod.js","assets/card.js","assets/field.js","assets/route.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/badge.js","assets/admin.js","assets/queryOptions.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/useMutation.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/error-banner.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/iam2.js","assets/json.js","assets/create-role.js","assets/json-editor.js","assets/textarea.js","assets/create-policy.js","assets/create-instance-profile.js","assets/create-cluster.js","assets/eks.js","assets/subnet-calculator.js","assets/alert-dialog.js","assets/select.js","assets/useCompositeListItem.js","assets/rotate-cw.js","assets/triangle-alert.js","assets/system-managed.js","assets/policy-document-viewer.js","assets/task-definitions.js","assets/ecs.js","assets/delete-confirmation-dialog.js","assets/ecs-section-nav.js","assets/run-task.js","assets/ecs2.js","assets/register-task-definition.js","assets/plus.js","assets/trash-2.js","assets/create-service.js","assets/create-vpc.js","assets/ec2.js","assets/ec22.js","assets/create-volume.js","assets/create-target-group.js","assets/elbv2.js","assets/target-group-form.js","assets/elbv22.js","assets/create-subnet.js","assets/create-snapshot.js","assets/create-security-group.js","assets/create-route-table.js","assets/create-placement-group.js","assets/create-nat-gateway.js","assets/create-load-balancer.js","assets/certificate-import-dialog.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/download.js","assets/create-internet-gateway.js","assets/run-instances.js","assets/allocate-address.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/list-users.js","assets/list-roles.js","assets/list-policies.js","assets/list-instance-profiles.js","assets/list-clusters2.js","assets/list-clusters.js","assets/list-repositories.js","assets/ecr.js","assets/describe-vpcs.js","assets/describe-volumes.js","assets/describe-target-groups.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-security-groups.js","assets/describe-route-tables.js","assets/describe-placement-groups.js","assets/describe-nat-gateways.js","assets/describe-load-balancers.js","assets/describe-key-pairs.js","assets/describe-internet-gateways.js","assets/describe-instances.js","assets/describe-images.js","assets/describe-addresses.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_roleName.js","assets/_policyArn.js","assets/_instanceProfileName.js","assets/_clusterName2.js","assets/tabs.js","assets/_clusterName.js","assets/_id17.js","assets/_id16.js","assets/_id15.js","assets/_id14.js","assets/_id13.js","assets/tags-editor.js","assets/_id12.js","assets/_id11.js","assets/_id10.js","assets/_id9.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/ami-details.js","assets/_id2.js","assets/_id.js","assets/_taskId.js","assets/_serviceName.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,B as s,C as c,D as l,E as u,F as d,G as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,l as P,m as te,n as ne,o as re,r as ie,s as ae,t as F,v as oe,w as se,x as I,y as ce,z as le}from"./useStore.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{$ as ge,An as _e,Ar as ve,Cr as ye,Dr as be,Er as xe,G as Se,Gt as Ce,H as we,Ht as Te,In as Ee,J as De,Jt as Oe,K as ke,Ln as Ae,Mn as je,Mr as Me,Nr as Ne,On as Pe,Or as Fe,Q as Ie,Qr as Le,Qt as Re,Rn as ze,S as Be,Sn as Ve,Sr as He,St as Ue,Tr as We,U as Ge,Ut as Ke,Vt as qe,W as Je,Wt as Ye,X as Xe,Xt as Ze,Y as Qe,Yt as $e,Z as et,Zt as tt,_ as nt,_n as rt,_r as it,_t as at,a as ot,br as st,bt as ct,c as lt,cn as ut,dn as dt,ei as ft,et as pt,fn as mt,g as ht,gn as gt,gt as _t,hn as vt,ht as yt,i as bt,jr as xt,jt as St,kn as Ct,kr as wt,l as Tt,ln as Et,mn as Dt,mt as Ot,n as kt,ni as L,nn as At,o as jt,pn as Mt,q as Nt,qt as Pt,r as Ft,ri as It,rt as Lt,s as Rt,t as zt,ti as Bt,un as Vt,vr as Ht,vt as Ut,wr as Wt,x as Gt,xr as Kt,xt as qt,yr as Jt,yt as Yt}from"./awsClient.js";import{a as Xt,c as Zt,f as Qt,l as $t,n as en,o as tn,s as nn,t as rn,u as an}from"./dist.js";import{$ as on,A as sn,B as cn,C as ln,Ct as un,D as dn,E as fn,Et as pn,F as mn,Ft as hn,G as gn,H as _n,I as vn,It as yn,J as bn,K as xn,L as Sn,Lt as Cn,M as wn,Mt as Tn,N as En,O as Dn,Ot as On,P as kn,Pt as An,Q as jn,R as Mn,Rt as Nn,S as Pn,St as R,T as Fn,U as In,W as Ln,X as Rn,Y as zn,_t as Bn,at as z,bt as Vn,dt as Hn,et as Un,ft as Wn,g as Gn,gt as Kn,ht as qn,j as Jn,jt as Yn,k as Xn,kt as Zn,mt as Qn,n as $n,pt as er,r as tr,ut as B,vt as nr,x as rr,xt as ir,yt as ar,z as or}from"./auth.js";import{C as sr,D as cr,E as lr,S as ur,T as dr,_ as fr,b as pr,d as mr,f as hr,g as gr,h as _r,l as vr,m as yr,n as br,o as V,p as xr,r as Sr,s as Cr,t as wr,u as Tr,v as Er,w as Dr,x as Or,y as H}from"./button.js";import{C as kr,S as Ar,a as jr,b as Mr,f as Nr,g as Pr,h as Fr,i as Ir,m as Lr,o as Rr,p as zr,r as Br,s as Vr,t as Hr,v as Ur,x as Wr,y as U}from"./createBaseUIEventDetails.js";import{F as Gr,I as Kr,N as qr,P as Jr,v as Yr}from"./tslib.es6.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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Xr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zr=new class extends Xr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Qr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$r=new class{#e=Qr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ei(e){setTimeout(e,0)}var ti=typeof window>`u`||`Deno`in globalThis;function ni(){}function ri(e,t){return typeof e==`function`?e(t):e}function ii(e){return typeof e==`number`&&e>=0&&e!==1/0}function ai(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oi(e,t){return typeof e==`function`?e(t):e}function si(e,t){return typeof e==`function`?e(t):e}function ci(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ui(o,t.options))return!1}else if(!fi(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function li(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(di(t.options.mutationKey)!==di(a))return!1}else if(!fi(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ui(e,t){return(t?.queryKeyHashFn||di)(e)}function di(e){return JSON.stringify(e,(e,t)=>_i(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function fi(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>fi(e[n],t[n])):!1}var pi=Object.prototype.hasOwnProperty;function mi(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=gi(e)&&gi(t);if(!r&&!(_i(e)&&_i(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{$r.setTimeout(t,e)})}function bi(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:mi(e,t)}function xi(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Si(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ci=Symbol();function wi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ci?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ti(e,t){return typeof e==`function`?e(...t):!!e}function Ei(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Di=(()=>{let e=()=>ti;return{isServer(){return e()},setIsServer(t){e=t}}})();function Oi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ki=ei;function Ai(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ki,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ji=Ai(),Mi=new class extends Xr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ni(e){return Math.min(1e3*2**e,3e4)}function Pi(e){return(e??`online`)===`online`?Mi.isOnline():!0}var Fi=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ii(e){let t=!1,n=0,r,i=Oi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Fi(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Zr.isFocused()&&(e.networkMode===`always`||Mi.isOnline())&&e.canRun(),u=()=>Pi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Di.isServer()?0:3),o=e.retryDelay??Ni,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Li=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ii(this.gcTime)&&(this.#e=$r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Di.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&($r.clearTimeout(this.#e),this.#e=void 0)}};function Ri(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ei(e,()=>t.signal,()=>n=!0)},u=wi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Si:xi;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Bi:zi,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:zi(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function zi(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Bi(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Vi=class extends Li{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Wi(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Wi(this.options);e.data!==void 0&&(this.setState(Ui(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=bi(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ni).catch(ni):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>si(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ci||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>oi(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ai(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=wi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ri(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ii({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Fi&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Fi){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Hi(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ui(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ji.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Hi(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ui(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Wi(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Gi=class extends Li{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ki(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ii({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ji.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ki(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var qi=class extends Xr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Gi({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=Ji(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=Ji(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=Ji(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ji(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ji.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=>li(t,e))}findAll(e={}){return this.getAll().filter(t=>li(e,t))}notify(e){ji.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ji.batch(()=>Promise.all(e.map(e=>e.continue().catch(ni))))}};function Ji(e){return e.options.scope?.id}var Yi=class extends Xr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ui(r,t),a=this.get(i);return a||(a=new Vi({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){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ji.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=>ci(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ci(e,t)):t}notify(e){ji.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ji.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ji.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Xi=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Yi,this.#t=e.mutationCache||new qi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Zr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Mi.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(oi(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=ri(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ji.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;ji.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ji.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ji.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ni).catch(ni)}invalidateQueries(e,t={}){return ji.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=ji.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(ni)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ni)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(oi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ni).catch(ni)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ni).catch(ni)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Mi.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(di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fi(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fi(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||=ui(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===Ci&&(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()}},W=n(r(),1),G=t(),Zi=W.createContext(void 0),Qi=e=>{let t=W.useContext(Zi);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},$i=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,G.jsx)(Zi.Provider,{value:e,children:t}));function ea(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function ta(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function na(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]=ta(r):Array.isArray(t)?t.push(ta(r)):n[e]=[t,ta(r)]}return n}var ra=aa(JSON.parse),ia=oa(JSON.stringify,JSON.parse);function aa(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=na(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function oa(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=ea(e,r);return t?`?${t}`:``}}var sa=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ca=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),la=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ua=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},da=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},fa=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:ua(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},pa=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ma=(e,t,n)=>{let r=ua(e,n);e.updateMatch(t,e=>({...e,context:r}))},ha=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,fa(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,fa(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},ga=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!la(e,t)&&(n.options.loader||n.options.beforeLoad||Da(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{sa(e)},i);r._nonReactive.pendingTimeout=t}},_a=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ga(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&fa(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},va=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&ha(e,n,o),s&&ha(e,n,s),ga(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...ua(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=la(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),ha(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{ha(e,n,t)}).then(b)}catch(t){u(),ha(e,n,t)}b(x)},ya=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>va(e,n,t,i),s=()=>{if(pa(e,n))return;let t=_a(e,n,i);return m(t)?t.then(o):o()};return a()},ba=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},xa=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=ua(e,r),d=la(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Sa=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Ea(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(xa(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;fa(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:ua(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:ua(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),fa(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,fa(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await Ea(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:ua(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),fa(e,r,t)}},Ca=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(xa(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Sa(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Sa(e,t,i,n,d):ma(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(pa(e,i)){if(!e.router.getMatch(i))return e.matches[n];ma(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=la(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&fa(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function wa(e){let t=e,n=[];ca(t.router)&&sa(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Ea(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ea(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ba(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=sa(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Ta(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Ea(e,t=Oa){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Oa?(()=>{if(e._componentsPromise===void 0){let t=Ta(e,Oa);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Ta(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Da(e){for(let t of Oa)if(e.options[t]?.preload)return!0;return!1}var Oa=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ka(e){return{input:({url:t})=>{for(let n of e)t=ja(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ma(e[n],t);return t}}}function Aa(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function ja(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 Ma(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 Na(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Pa(o,_.get())),x=r(()=>Pa(s,v.get())),S=r(()=>Pa(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){Fa(e,o,_,n,i)}function j(e){Fa(e,s,v,n,i)}function M(e){Fa(e,c,y,n,i)}return k}function Pa(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Fa(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var Ia=`__TSR_index`,La=`popstate`,Ra=`beforeunload`;function za(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=Ua(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[Ia];i=Ba(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[Ia];i=Ba(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),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[Ia]!==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}}function Ba(e,t){t||={};let n=Wa();return{...t,key:n,__TSR_key:n,[Ia]:e}}function Va(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=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Ua(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Wa();t.history.replaceState({[Ia]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Ua(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Ia]-l.state[Ia],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 n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=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=``},C=za({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ra,S,{capture:!0}),t.removeEventListener(La,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ra,S,{capture:!0}),t.addEventListener(La,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ha(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Ua(e,t){let n=Ha(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Wa();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||{[Ia]:0,key:a,__TSR_key:a}}}function Wa(){return(Math.random()+1).toString(36).substring(7)}function Ga(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Ka=new WeakMap,qa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Va()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Na(Xa(this.latestLocation),e),go(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(Aa({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ka(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state: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:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=ja(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Qa({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Za(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=$a({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=Ma(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.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.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Ua(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=ja(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Ka.set(this.latestLocation,t):Ka.delete(this.latestLocation);let n=this.latestLocation,r=Ga(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await wa({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ga(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Ea,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await wa({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ia,parseSearch:e.parseSearch??ra,protocolAllowlist:e.protocolAllowlist??u}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?to(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=y(t),i={...e.search};for(let e of t)try{Object.assign(i,Za(e.options.validateSearch,i))}catch{}let a=y(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{no(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Ja=class extends Error{},Ya=class extends Error{};function Xa(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Za(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Ja(`Async validation not supported`);if(n.issues)throw new Ja(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Qa({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function $a({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return eo(n)(e,t,r??!1)}function eo(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Za(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function to(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function no(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function ro(){try{return sessionStorage}catch{return}}var io=`tsr-scroll-restoration-v1_3`,ao=ro();function K(){try{return JSON.parse(ao?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function oo(){try{ao?.setItem(io,JSON.stringify(so))}catch{}}var so=K(),co=`data-scroll-restoration-id`,lo=e=>e.state.__TSR_key||e.href;function uo(e){let t=e.getAttribute(co);if(t)return`[${co}="${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 fo=!1,po=`window`;function mo(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function ho(e){let t=[];for(let n of e){if(n===po)continue;let e=mo(n);e&&t.push(e)}return t}function go(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||lo,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(fo||!r.restoring))if(e.target===document)o(po,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=so[e]||={};for(let[e,n]of a)e===po?t[po]=n:e.isConnected&&(t[uo(e)]=n)};n&&!r.restoration&&(r.restoration=!0,fo=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),oo()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=so[u];if(e){let t=so[l];for(let n in e){if(n===po){if(s)continue}else{let e=mo(n);if(!e||s&&o&&(c??=ho(o),c.includes(e)))continue}t||=so[l]={},t[n]??=e[n]}}}fo=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Ka.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?so[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===po){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=mo(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=ho(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{fo=!1}}))}function _o(e,t){if(e)return typeof e==`string`?e:e[t]}function vo(e){return e?.scriptFormat??`module`}function yo(e,t,n){let r=bo(t),i=_o(n,`script`)??r.crossOrigin;return{...vo(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function bo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function xo(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 So(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Co=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},wo=class extends Co{constructor(e){super(e)}};function To(e){let t=e.errorComponent??Do;return(0,G.jsx)(Eo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?W.createElement(t,{error:n,reset:r}):e.children})}var Eo=class extends W.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Do({error:e}){let[t,n]=W.useState(!1);return(0,G.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,G.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,G.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,G.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,G.jsx)(`div`,{children:(0,G.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,G.jsx)(`code`,{children:e.message}):null})}):null]})}var Oo=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Oo||{});function ko({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(!0)}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(!0)}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 Ao(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 jo=[],Mo=0,{link:No,unlink:Po,propagate:Fo,checkDirty:Io,shallowPropagate:Lo}=ko({update(e){return e._update()},notify(e){jo[zo++]=e,e.flags&=~Oo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Oo.Mutable|Oo.Dirty,Uo(e))}}),Ro=0,zo=0,Bo,Vo=0;function Ho(e){try{++Vo,e()}finally{--Vo||Wo()}}function Uo(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Po(n,e)}function Wo(){if(!(Vo>0)){for(;Ro{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Bo,o=t?.compare??Object.is;if(n)Bo=i,++Mo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Oo.Mutable|Oo.RecursedCheck);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{Bo=a,n&&(i.flags&=~Oo.RecursedCheck),Uo(i)}}};return n?(i.flags=Oo.Mutable|Oo.Dirty,i.get=function(){let e=i.flags;if(e&Oo.Dirty||e&Oo.Pending&&Io(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Lo(e)}}else e&Oo.Pending&&(i.flags=e&~Oo.Pending);return Bo!==void 0&&No(i,Bo,Mo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fo(e),Lo(e),Wo())}},i}function Ko(e){let t=()=>{let t=Bo;Bo=n,++Mo,n.depsTail=void 0,n.flags=Oo.Watching|Oo.RecursedCheck;try{return e()}finally{Bo=t,n.flags&=~Oo.RecursedCheck,Uo(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Oo.Watching|Oo.RecursedCheck,notify(){let e=this.flags;e&Oo.Dirty||e&Oo.Pending&&Io(this.deps,this)?t():this.flags=Oo.Watching},stop(){this.flags=Oo.None,this.depsTail=void 0,Uo(this)}};return t(),n}var qo={get(){},subscribe(){return{unsubscribe(){}}}};function Jo(e,t){let n=W.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function Yo(e){let t=M(),n=W.useContext(e.from?pe:de),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=Jo(e,t),a=F(r??qo,e=>e?i(e):qo);if(a!==qo)return a;(e.shouldThrow??!0)&&x()}function Xo(e){return Yo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Zo(e){let{select:t,...n}=e;return Yo({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Qo(e){return Yo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function $o(e){return Yo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function es(e){let t=M();return W.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ts(e){return Yo({...e,select:t=>e.select?e.select(t.context):t.context})}var ns=class extends Co{constructor(e){super(e),this.useMatch=e=>Yo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ts({...e,from:this.id}),this.useSearch=e=>$o({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Qo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Zo({...e,from:this.id}),this.useLoaderData=e=>Xo({...e,from:this.id}),this.useNavigate=()=>es({from:this.fullPath}),this.Link=W.forwardRef((e,t)=>(0,G.jsx)(L,{ref:t,from:this.fullPath,...e}))}};function rs(e){return new ns(e)}function is(){return e=>os(e)}var as=class extends wo{constructor(e){super(e),this.useMatch=e=>Yo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ts({...e,from:this.id}),this.useSearch=e=>$o({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Qo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Zo({...e,from:this.id}),this.useLoaderData=e=>Xo({...e,from:this.id}),this.useNavigate=()=>es({from:this.fullPath}),this.Link=W.forwardRef((e,t)=>(0,G.jsx)(L,{ref:t,from:this.fullPath,...e}))}};function os(e){return new as(e)}function q(e){return new ss(e,{silent:!0}).createRoute}var ss=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=rs(e);return t.isRoot=!1,t},this.silent=t?.silent}};function J(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return W.createElement(r,e)};return s.preload=o,s}function cs(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,G.jsx)(To,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function ls(){return(0,G.jsx)(`p`,{children:`Not Found`})}function us(e){return(0,G.jsx)(G.Fragment,{children:e.children})}function ds(e,t,n){return t.options.notFoundComponent?(0,G.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,G.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,G.jsx)(ls,{})}var fs=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,ps=(e,t)=>e[0]===t[0]&&e[1]===t[1],ms=W.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e,fs);return(0,G.jsx)(hs,{router:t,matchId:e,resetKey:r,matchState:W.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function hs({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,G.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?W.Suspense:us,f=s?To:us,p=l?cs:us;return(0,G.jsxs)(i.isRoot?i.options.shellComponent??us:us,{children:[(0,G.jsx)(de.Provider,{value:t,children:(0,G.jsx)(d,{fallback:o,children:(0,G.jsx)(f,{getResetKey:()=>n,errorComponent:s||Do,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,G.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return W.createElement(l,e)},children:u||r._displayPending?(0,G.jsx)(re,{fallback:o,children:(0,G.jsx)(_s,{matchId:t})}):(0,G.jsx)(_s,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(gs,{}),(e.options.scrollRestoration,null)]}):null]})}function gs(){let e=M(),t=W.useRef();return C(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Ga(e.stores.location.get(),r??n)}),t.current=n},[F(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var _s=W.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=W.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=W.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,G.jsx)(e,{},s):(0,G.jsx)(vs,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),ds(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),vs=W.memo(function(){let e=M(),t=W.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1],ps),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,G.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),ds(e,a,void 0);if(!i)return null;let s=(0,G.jsx)(ms,{matchId:i});return n===`__root__`?(0,G.jsx)(W.Suspense,{fallback:o,children:s}):s});function ys(){let e=M(),t=W.useRef({router:e,mounted:!1}),[n,r]=W.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),W.startTransition(()=>{e(),r(!1)})},W.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ga(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ga(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=Ga(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Ho(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function bs(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,G.jsx)(t,{}):null,r=(0,G.jsxs)(typeof document<`u`&&e.ssr?us:W.Suspense,{fallback:n,children:[(0,G.jsx)(ys,{}),(0,G.jsx)(xs,{})]});return e.options.InnerWrap?(0,G.jsx)(e.options.InnerWrap,{children:r}):r}function xs(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,G.jsx)(ms,{matchId:t}):null;return(0,G.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,G.jsx)(To,{getResetKey:()=>n,errorComponent:Do,onCatch:void 0,children:r})})}var Ss=e=>({createMutableStore:Go,createReadonlyStore:Go,batch:Ho}),Cs=e=>new ws(e),ws=class extends qa{constructor(e){super(e,Ss)}};function Ts({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,G.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,G.jsx)(e.options.Wrap,{children:r}):r}function Es({router:e,...t}){return(0,G.jsx)(Ts,{router:e,...t,children:(0,G.jsx)(bs,{})})}function Ds(e){let t=M();return F(t.stores.location,Jo(e,t))}function Os(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 ks(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,G.jsx)(As,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function As({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(W.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Os(n,e),document.head.appendChild(n),()=>n.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.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))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,Os(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var js=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=W.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=So(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:_o(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...yo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return xo(d,i),d.push(...c),xo(d,a),d.push(...s),xo(d,l),xo(d,u),d};function Ms(e){let t=js(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,W.createElement)(ks,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ns=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&&j(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&&j(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,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(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}}}})),Ps=e(((e,t)=>{t.exports=Ns()})),Fs=e((e=>{var t=Ps(),n=r(),i=It();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1i.map(i=>d[i]); +import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,C as s,D as c,E as l,F as u,G as d,H as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,U as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,m as P,n as te,p as ne,r as re,s as ie,t as F,u as I,v as ae,w as oe,x as L,y as se,z as ce}from"./useStore.js";import{t as le}from"./useNavigate.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{$ as ge,An as _e,Ar as ve,Cr as ye,Dr as be,Er as xe,G as Se,Gt as Ce,H as we,Ht as Te,In as Ee,J as De,Jt as Oe,K as ke,Ln as Ae,Mn as je,Mr as Me,Nr as Ne,On as Pe,Or as Fe,Q as Ie,Qr as Le,Qt as Re,Rn as ze,S as Be,Sn as Ve,Sr as He,St as Ue,Tr as We,U as Ge,Ut as Ke,Vt as qe,W as Je,Wt as Ye,X as Xe,Xt as Ze,Y as Qe,Yt as $e,Z as et,Zt as tt,_ as nt,_n as rt,_r as it,_t as at,a as ot,br as st,bt as ct,c as lt,cn as ut,dn as dt,ei as ft,et as pt,fn as mt,g as ht,gn as gt,gt as _t,hn as vt,ht as yt,i as bt,jr as xt,jt as St,kn as Ct,kr as wt,l as Tt,ln as Et,mn as Dt,mt as Ot,n as kt,ni as R,nn as At,o as jt,pn as Mt,q as Nt,qt as Pt,r as Ft,ri as It,rt as Lt,s as Rt,t as zt,ti as Bt,un as Vt,vr as Ht,vt as Ut,wr as Wt,x as Gt,xr as Kt,xt as qt,yr as Jt,yt as Yt}from"./awsClient.js";import{a as Xt,c as Zt,f as Qt,l as $t,n as en,o as tn,s as nn,t as rn,u as an}from"./dist.js";import{$ as on,A as sn,B as cn,C as ln,Ct as un,D as dn,E as fn,Et as pn,F as mn,Ft as hn,G as gn,H as _n,It as vn,J as yn,K as bn,L as z,Lt as xn,M as Sn,Mt as Cn,N as wn,O as Tn,Ot as En,P as Dn,Pt as On,Q as kn,R as An,Rt as jn,S as Mn,St as B,T as Nn,U as Pn,V as Fn,W as In,X as Ln,Z as Rn,_t as zn,bt as Bn,ct as Vn,et as Hn,g as Un,it as Wn,j as Gn,jt as Kn,k as qn,kt as Jn,n as Yn,nt as Xn,ot as Zn,pt as V,q as Qn,r as $n,rt as er,st as tr,vt as nr,x as rr,xt as ir,yt as ar,z as or}from"./auth.js";import{C as sr,D as cr,E as lr,S as ur,T as dr,_ as fr,b as pr,d as mr,f as hr,g as gr,h as _r,l as vr,m as yr,n as br,o as H,p as xr,r as Sr,s as Cr,t as wr,u as Tr,v as Er,w as Dr,x as Or,y as kr}from"./button.js";import{C as Ar,S as jr,a as Mr,b as Nr,f as Pr,g as Fr,h as Ir,i as Lr,m as Rr,o as zr,p as Br,r as Vr,s as Hr,t as Ur,v as Wr,x as Gr,y as U}from"./createBaseUIEventDetails.js";import{c as Kr,d as qr,i as Jr,l as Yr,n as W,o as Xr,r as Zr,s as Qr,t as $r,u as ei}from"./useValueAsRef.js";import{F as ti,I as ni,N as ri,P as ii,v as ai}from"./tslib.es6.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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var oi={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},si=new class{#e=oi;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ci(e){setTimeout(e,0)}var li=typeof window>`u`||`Deno`in globalThis;function ui(){}function di(e,t){return typeof e==`function`?e(t):e}function fi(e){return typeof e==`number`&&e>=0&&e!==1/0}function pi(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mi(e,t){return typeof e==`function`?e(t):e}function hi(e,t){return typeof e==`function`?e(t):e}function gi(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==vi(o,t.options))return!1}else if(!bi(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function _i(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(yi(t.options.mutationKey)!==yi(a))return!1}else if(!bi(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function vi(e,t){return(t?.queryKeyHashFn||yi)(e)}function yi(e){return JSON.stringify(e,(e,t)=>Ti(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function bi(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>bi(e[n],t[n])):!1}var xi=Object.prototype.hasOwnProperty;function Si(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=wi(e)&&wi(t);if(!r&&!(Ti(e)&&Ti(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{si.setTimeout(t,e)})}function Oi(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Si(e,t)}function ki(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ai(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ji=Symbol();function Mi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ji?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ni(e,t){return typeof e==`function`?e(...t):!!e}function Pi(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Fi=(()=>{let e=()=>li;return{isServer(){return e()},setIsServer(t){e=t}}})(),Ii=ci;function Li(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ii,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ri=Li(),zi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fi(this.gcTime)&&(this.#e=si.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(si.clearTimeout(this.#e),this.#e=void 0)}},Bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vi=new class extends Bi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Hi=new class extends Bi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ui(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function Wi(e){return Math.min(1e3*2**e,3e4)}function Gi(e){return(e??`online`)===`online`?Hi.isOnline():!0}var Ki=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function qi(e){let t=!1,n=0,r,i=Ui(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ki(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Vi.isFocused()&&(e.networkMode===`always`||Hi.isOnline())&&e.canRun(),u=()=>Gi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Fi.isServer()?0:3),o=e.retryDelay??Wi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Ji=class extends zi{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Yi(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=qi({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ri.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Yi(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Xi=class extends Bi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ji({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=Zi(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=Zi(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=Zi(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Zi(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ri.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=>_i(t,e))}findAll(e={}){return this.getAll().filter(t=>_i(e,t))}notify(e){Ri.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ri.batch(()=>Promise.all(e.map(e=>e.continue().catch(ui))))}};function Zi(e){return e.options.scope?.id}function Qi(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Pi(e,()=>t.signal,()=>n=!0)},u=Mi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ai:ki;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ea:$i,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:$i(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function $i(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ea(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ta=class extends zi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ia(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ia(this.options);e.data!==void 0&&(this.setState(ra(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Oi(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ui).catch(ui):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>hi(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ji||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>mi(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!pi(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Mi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Qi(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=qi({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ki&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ki){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...na(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ra(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ri.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function na(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ra(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ia(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var aa=class extends Bi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??vi(r,t),a=this.get(i);return a||(a=new ta({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){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ri.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=>gi(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>gi(e,t)):t}notify(e){Ri.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ri.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ri.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},oa=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new aa,this.#t=e.mutationCache||new Xi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Vi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Hi.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(mi(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=di(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ri.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;Ri.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ri.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ri.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ui).catch(ui)}invalidateQueries(e,t={}){return Ri.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=Ri.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(ui)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ui)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(mi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ui).catch(ui)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ui).catch(ui)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Hi.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(yi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{bi(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(yi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{bi(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||=vi(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===ji&&(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()}},G=n(r(),1),K=t(),sa=G.createContext(void 0),ca=e=>{let t=G.useContext(sa);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},la=({client:e,children:t})=>(G.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,K.jsx)(sa.Provider,{value:e,children:t}));function ua(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>da(o,_.get())),x=r(()=>da(s,v.get())),S=r(()=>da(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),O=E(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:j,setPending:M,setCached:ee};j(e.matches),a?.(A);function j(e){fa(e,o,_,n,i)}function M(e){fa(e,s,v,n,i)}function ee(e){fa(e,c,y,n,i)}return A}function da(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function fa(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}s(n.get(),a)||n.set(a)})}function pa(){try{return sessionStorage}catch{return}}var ma=`tsr-scroll-restoration-v1_3`,ha=pa();function ga(){try{return JSON.parse(ha?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function _a(){try{ha?.setItem(ma,JSON.stringify(va))}catch{}}var va=ga(),ya=`data-scroll-restoration-id`,ba=e=>e.state.__TSR_key||e.href;function xa(e){let t=e.getAttribute(ya);if(t)return`[${ya}="${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 Sa=!1,Ca=`window`;function wa(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ta(e){let t=[];for(let n of e){if(n===Ca)continue;let e=wa(n);e&&t.push(e)}return t}function Ea(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||ba,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(Sa||!r.restoring))if(e.target===document)o(Ca,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=va[e]||={};for(let[e,n]of a)e===Ca?t[Ca]=n:e.isConnected&&(t[xa(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Sa=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),_a()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=va[u];if(e){let t=va[l];for(let n in e){if(n===Ca){if(s)continue}else{let e=wa(n);if(!e||s&&o&&(c??=Ta(o),c.includes(e)))continue}t||=va[l]={},t[n]??=e[n]}}}Sa=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=go.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?va[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Ca){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=wa(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=Ta(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Sa=!1}}))}function Da(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Oa(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ka(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]=Oa(r):Array.isArray(t)?t.push(Oa(r)):n[e]=[t,Oa(r)]}return n}var Aa=Ma(JSON.parse),ja=Na(JSON.stringify,JSON.parse);function Ma(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ka(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Na(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Da(e,r);return t?`?${t}`:``}}var Pa=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Fa=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ia=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),La=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Ra=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},za=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:La(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ba=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Va=(e,t,n)=>{let r=La(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ha=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,za(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,za(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},Ua=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ia(e,t)&&(n.options.loader||n.options.beforeLoad||eo(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Pa(e)},i);r._nonReactive.pendingTimeout=t}},Wa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ua(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&za(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Ga=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=oe(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Ha(e,n,o),s&&Ha(e,n,s),Ua(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=oe();let f={...La(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,_=Ia(e,t),v={search:p,abortController:c,params:m,preload:_,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),Ha(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},b;try{if(b=r.options.beforeLoad(v),g(b))return u(),b.catch(t=>{Ha(e,n,t)}).then(y)}catch(t){u(),Ha(e,n,t)}y(b)},Ka=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Ga(e,n,t,i),s=()=>{if(Ba(e,n))return;let t=Wa(e,n,i);return g(t)?t.then(o):o()};return a()},qa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Ja=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=La(e,r),d=Ia(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ya=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{$a(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Ja(e,t,n,r,i)),l=!!s&&g(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;za(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:La(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:La(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),za(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,za(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await $a(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:La(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),za(e,r,t)}},Xa=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Ja(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Ya(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Ya(e,t,i,n,d):Va(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ba(e,i)){if(!e.router.getMatch(i))return e.matches[n];Va(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ia(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&za(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=oe(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Za(e){let t=e,n=[];Fa(t.router)&&Pa(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await $a(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await $a(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=qa(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Pa(t);if(g(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Qa(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function $a(e,t=to){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===to?(()=>{if(e._componentsPromise===void 0){let t=Qa(e,to);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Qa(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function eo(e){for(let t of to)if(e.options[t]?.preload)return!0;return!1}var to=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function no(e){return{input:({url:t})=>{for(let n of e)t=io(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=q(e[n],t);return t}}}function ro(e){let t=O(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=D([`/`,t,e.pathname]),e)}}function io(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 q(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}var ao=`__TSR_index`,oo=`popstate`,so=`beforeunload`;function co(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=po(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[ao];i=lo(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[ao];i=lo(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),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[ao]!==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}}function lo(e,t){t||={};let n=mo();return{...t,key:n,__TSR_key:n,[ao]:e}}function uo(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=e?.createHref??(e=>e),c=e?.parseLocation??(()=>po(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=mo();t.history.replaceState({[ao]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=po(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[ao]-l.state[ao],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 n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=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=``},C=co({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(so,S,{capture:!0}),t.removeEventListener(oo,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(so,S,{capture:!0}),t.addEventListener(oo,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function fo(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function po(e,t){let n=fo(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=mo();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||{[ao]:0,key:a,__TSR_key:a}}}function mo(){return(Math.random()+1).toString(36).substring(7)}function ho(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var go=new WeakMap,_o=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=uo()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=E(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ua(bo(this.latestLocation),e),Ea(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=O(o);t&&t!==`/`&&e.push(ro({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:no(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=se(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&ae(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state: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:x(e).path,external:!1,searchStr:o,search:u(t?.search,i),hash:x(r.slice(1)).path,state:p(t?.state,a)}}let o=new URL(i,this.origin),s=io(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:x(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:u(t?.search,c),hash:x(s.hash.slice(1)).path,state:p(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>I({base:e,to:t.includes(`//`)?M(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>So({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,s=r.search,l=Object.assign(Object.create(null),r.params),d=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),f=a?this.resolvePathWithBase(d,a):d,m=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?l:Object.assign(l,N(t.params,l)),h=this.routesByPath[ne(f)],g;if(h)g=this.getRouteBranch(h);else if(f.includes(`$`))g=[];else{let e=this.getMatchedRoutes(f);g=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&o(m))for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(m,t(m))}catch{}}let _=e.leaveParams?f:x(ie({path:f,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,xo(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Co({search:v,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=u(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?N(t.hash,n.hash):void 0,S=b?`#${b}`:``,C=t.state===!0?n.state:t.state?N(t.state,n.state):{};C=p(n.state,C);let w=`${_}${y}${S}`,T,E,D=!1;if(this.rewrite){let e=new URL(w,this.origin),t=q(this.rewrite,e);T=e.href.replace(e.origin,``),t.origin===this.origin?E=t.pathname+t.search+t.hash:(E=t.href,D=!0)}else T=c(w),E=T;return{publicHref:E,href:T,pathname:_,search:v,searchStr:y,state:C,hash:b??``,external:D,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=j(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,N(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=l(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=ne(this.latestLocation.href)===ne(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=oe(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.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.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=po(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=io(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ee(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?go.set(this.latestLocation,t):go.delete(this.latestLocation);let n=this.latestLocation,r=ho(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Za({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(ho(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ee(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=$a,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Za({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=w(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!l(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?l(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ja,parseSearch:e.parseSearch??Aa,protocolAllowlist:e.protocolAllowlist??b}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=P(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:ne(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?To(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=v(t),i={...e.search};for(let e of t)try{Object.assign(i,xo(e.options.validateSearch,i))}catch{}let a=v(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Eo(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},vo=class extends Error{},yo=class extends Error{};function bo(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function xo(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new vo(`Async validation not supported`);if(n.issues)throw new vo(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function So({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=ne(e),a,o=A(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Co({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return wo(n)(e,t,r??!1)}function wo(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=xo(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=N(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function To(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function Eo(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Do(e,t){if(e)return typeof e==`string`?e:e[t]}function Oo(e){return e?.scriptFormat??`module`}function ko(e,t,n){let r=Ao(t),i=Do(n,`script`)??r.crossOrigin;return{...Oo(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Ao(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function jo(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 Mo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var No=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||L();let r=n?fe:t?.path;r&&r!==`/`&&(r=k(r));let i=t?.id||r,a=n?fe:D([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=D([`/`,a]));let o=a===`__root__`?`/`:D([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=ne(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Po=class extends No{constructor(e){super(e)}},Fo=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Fo||{});function Io({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(!0)}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(!0)}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 Lo(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 Ro=[],zo=0,{link:Bo,unlink:Vo,propagate:Ho,checkDirty:Uo,shallowPropagate:Wo}=Io({update(e){return e._update()},notify(e){Ro[Ko++]=e,e.flags&=~Fo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Fo.Mutable|Fo.Dirty,Xo(e))}}),Go=0,Ko=0,qo,Jo=0;function Yo(e){try{++Jo,e()}finally{--Jo||Zo()}}function Xo(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Vo(n,e)}function Zo(){if(!(Jo>0)){for(;Go{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=qo,o=t?.compare??Object.is;if(n)qo=i,++zo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Fo.Mutable|Fo.RecursedCheck);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{qo=a,n&&(i.flags&=~Fo.RecursedCheck),Xo(i)}}};return n?(i.flags=Fo.Mutable|Fo.Dirty,i.get=function(){let e=i.flags;if(e&Fo.Dirty||e&Fo.Pending&&Uo(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Wo(e)}}else e&Fo.Pending&&(i.flags=e&~Fo.Pending);return qo!==void 0&&Bo(i,qo,zo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Ho(e),Wo(e),Zo())}},i}function $o(e){let t=()=>{let t=qo;qo=n,++zo,n.depsTail=void 0,n.flags=Fo.Watching|Fo.RecursedCheck;try{return e()}finally{qo=t,n.flags&=~Fo.RecursedCheck,Xo(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Fo.Watching|Fo.RecursedCheck,notify(){let e=this.flags;e&Fo.Dirty||e&Fo.Pending&&Uo(this.deps,this)?t():this.flags=Fo.Watching},stop(){this.flags=Fo.None,this.depsTail=void 0,Xo(this)}};return t(),n}var es={get(){},subscribe(){return{unsubscribe(){}}}};function ts(e,t){let n=G.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=p(n.current,i):i}}function ns(e){let t=C(),n=G.useContext(e.from?pe:de),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=ts(e,t),a=F(r??es,e=>e?i(e):es);if(a!==es)return a;(e.shouldThrow??!0)&&L()}function rs(e){return ns({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function is(e){let{select:t,...n}=e;return ns({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function as(e){return ns({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function os(e){return ns({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ss(e){return ns({...e,select:t=>e.select?e.select(t.context):t.context})}var cs=class extends No{constructor(e){super(e),this.useMatch=e=>ns({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ss({...e,from:this.id}),this.useSearch=e=>os({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>as({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>is({...e,from:this.id}),this.useLoaderData=e=>rs({...e,from:this.id}),this.useNavigate=()=>le({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,K.jsx)(R,{ref:t,from:this.fullPath,...e}))}};function ls(e){return new cs(e)}function us(){return e=>fs(e)}var ds=class extends Po{constructor(e){super(e),this.useMatch=e=>ns({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>ss({...e,from:this.id}),this.useSearch=e=>os({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>as({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>is({...e,from:this.id}),this.useLoaderData=e=>rs({...e,from:this.id}),this.useNavigate=()=>le({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,K.jsx)(R,{ref:t,from:this.fullPath,...e}))}};function fs(e){return new ds(e)}function J(e){return new ps(e,{silent:!0}).createRoute}var ps=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=ls(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Y(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,h(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(ce)ce(o());else throw o();return G.createElement(r,e)};return s.preload=o,s}function ms(e){let t=e.errorComponent??gs;return(0,K.jsx)(hs,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?G.createElement(t,{error:n,reset:r}):e.children})}var hs=class extends G.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function gs({error:e}){let[t,n]=G.useState(!1);return(0,K.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,K.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,K.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,K.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,K.jsx)(`div`,{children:(0,K.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,K.jsx)(`code`,{children:e.message}):null})}):null]})}function _s(e){let t=C(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,K.jsx)(ms,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function vs(){return(0,K.jsx)(`p`,{children:`Not Found`})}function ys(e){return(0,K.jsx)(K.Fragment,{children:e.children})}function bs(e,t,n){return t.options.notFoundComponent?(0,K.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,K.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,K.jsx)(vs,{})}var xs=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Ss=(e,t)=>e[0]===t[0]&&e[1]===t[1],Cs=G.memo(function({matchId:e}){let t=C(),n=t.stores.matchStores.get(e);n||L();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e,xs);return(0,K.jsx)(ws,{router:t,matchId:e,resetKey:r,matchState:G.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function ws({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,K.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?G.Suspense:ys,f=s?ms:ys,p=l?_s:ys;return(0,K.jsxs)(i.isRoot?i.options.shellComponent??ys:ys,{children:[(0,K.jsx)(de.Provider,{value:t,children:(0,K.jsx)(d,{fallback:o,children:(0,K.jsx)(f,{getResetKey:()=>n,errorComponent:s||gs,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,K.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return G.createElement(l,e)},children:u||r._displayPending?(0,K.jsx)(m,{fallback:o,children:(0,K.jsx)(Es,{matchId:t})}):(0,K.jsx)(Es,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ts,{}),(e.options.scrollRestoration,null)]}):null]})}function Ts(){let e=C(),t=G.useRef();return f(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...ho(e.stores.location.get(),r??n)}),t.current=n},[F(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Es=G.memo(function({matchId:e}){let t=C(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||L();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=G.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=G.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,K.jsx)(e,{},s):(0,K.jsx)(Ds,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=oe();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||L(),bs(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||L(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Ds=G.memo(function(){let e=C(),t=G.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1],Ss),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,K.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||L(),bs(e,a,void 0);if(!i)return null;let s=(0,K.jsx)(Cs,{matchId:i});return n===`__root__`?(0,K.jsx)(G.Suspense,{fallback:o,children:s}):s}),Os=e=>({createMutableStore:Qo,createReadonlyStore:Qo,batch:Yo}),ks=e=>new As(e),As=class extends _o{constructor(e){super(e,Os)}};function js(){let e=C(),t=G.useRef({router:e,mounted:!1}),[n,r]=G.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=S(i),s=i||n||a,c=S(s),l=i||a,u=S(l);return e.startTransition=e=>{r(!0),G.startTransition(()=>{e(),r(!1)})},G.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ne(e.latestLocation.publicHref)!==ne(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),f(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),f(()=>{o&&!i&&e.emit({type:`onLoad`,...ho(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),f(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...ho(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),f(()=>{if(c&&!s){let t=ho(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Yo(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ms(){let e=C(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,K.jsx)(t,{}):null,r=(0,K.jsxs)(typeof document<`u`&&e.ssr?ys:G.Suspense,{fallback:n,children:[(0,K.jsx)(js,{}),(0,K.jsx)(Ns,{})]});return e.options.InnerWrap?(0,K.jsx)(e.options.InnerWrap,{children:r}):r}function Ns(){let e=C(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,K.jsx)(Cs,{matchId:t}):null;return(0,K.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,K.jsx)(ms,{getResetKey:()=>n,errorComponent:gs,onCatch:void 0,children:r})})}function Ps({router:e,children:t,...n}){o(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,K.jsx)(d.Provider,{value:e,children:t});return e.options.Wrap?(0,K.jsx)(e.options.Wrap,{children:r}):r}function Fs({router:e,...t}){return(0,K.jsx)(Ps,{router:e,...t,children:(0,K.jsx)(Ms,{})})}function Is(e){let t=C();return F(t.stores.location,ts(e,t))}function Ls(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 Rs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,K.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,K.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,K.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,K.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,K.jsx)(zs,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function zs({attrs:e,children:t,preventScriptHoist:n}){C();let r=y(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(G.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ls(n,e),document.head.appendChild(n),()=>n.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.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))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,Ls(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,K.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,K.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,K.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Bs=e=>{let t=C(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),l),i=G.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:_(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),l),o=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Mo(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Do(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},l),s=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...ko(a,t,e),nonce:n}})})}),i},l),c=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),l),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),l),d=[];return jo(d,i),d.push(...s),jo(d,a),d.push(...o),jo(d,c),jo(d,u),d};function Vs(e){let t=Bs(e.assetCrossOrigin),n=C().options.ssr?.nonce;return(0,K.jsx)(K.Fragment,{children:t.map(e=>(0,G.createElement)(Rs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Hs=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&&j(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&&j(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,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(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,j(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}}}})),Us=e(((e,t)=>{t.exports=Hs()})),Ws=e((e=>{var t=Us(),n=r(),i=It();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function I(e,t){re++,ne[re]=e.current,e.current=t}var ae=ie(null),oe=ie(null),L=ie(null),se=ie(null);function ce(e,t){switch(I(L,t),I(oe,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}F(ae),I(ae,e)}function le(){F(ae),F(oe),F(L)}function ue(e){e.memoizedState!==null&&I(se,e);var t=ae.current,n=Wd(t,e.type);t!==n&&(I(oe,e),I(ae,n))}function de(e){oe.current===e&&(F(ae),F(oe)),se.current===e&&(F(se),ep._currentValue=te)}var fe,pe;function me(e){if(fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||``,pe=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{he=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function _e(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return me(`Activity`);default:return``}}function ve(e){try{var t=``,n=null;do t+=_e(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(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&261888;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 Ge(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=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(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 Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(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`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=hn(),mn=pn=fn=null,Qn=!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=V(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ft(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=Ft(e.document)}return t}function wr(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 Tr=ln&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,H=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;H||Er==null||Er!==Ft(r)||(r=Er,`selectionStart`in r&&wr(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}),Or&&br(Or,r)||(Or=r,r=Dd(Dr,`onSelect`),0>=o,i-=o,bi=1<<32-Le(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),ki&&Si(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),ki&&Si(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 ki&&Si(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(v.key===null?g:v.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)}),ki&&Si(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&xa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case g: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}else{n(e,r);break}else t(e,r);r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=xa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===x)return b(e,r,W(e,o),c);ka(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=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function Ra(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,$e(e,n)}}function za(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 Ba=!1;function Va(){if(Ba){var e=oa;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!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,m=f!==s.lane;if(m?(Ll&f)===f:(r&f)===f){f!==0&&f===aa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,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),Gl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,Os(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,la(c,r),pu(e)):Ds(e,t,r,pu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ys(e).queue;gs(e,i,t,te,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},pu())}function xs(){return Xi(ep)}function Ss(){return Eo().memoizedState}function Cs(){return Eo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ia(n);var r=La(t,e,n);r!==null&&(hu(r,t,n),Ra(r,t,n)),t={cache:ta()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Xr(e,t,n,r),n!==null&&(hu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,pu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(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,yr(s,o))return Yr(e,t,i,0),Il===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return hu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(a(479))}else t=Xr(e,n,r,2),t!==null&&hu(t,e,2)}function ks(e){var t=e.alternate;return e===K||t!==null&&t===K}function As(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ms={readContext:Xi,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ms.useEffectEvent=go;var Ns={readContext:Xi,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:as,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rs(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){rs(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){Ie(!0);try{n(t)}finally{Ie(!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=Ts.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Es.bind(null,K,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=gs.bind(null,K,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=K,i=To();if(ki){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Il===null)throw Error(a(349));Ll&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,as(Ro.bind(null,r,o,e),[e]),r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Il.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,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[ot]=t,o[st]=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(Id(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&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Di,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ni(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(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[ot]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(a(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ii(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[ot]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),i=!1}else i=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(no(t),t):(no(t),null)}return no(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),Ac(t,t.updateQueue),Mc(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Mc(t),null;case 10:return Wi(t.type),Mc(t),null;case 19:if(ae(ro),r=t.memoizedState,r===null)return Mc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)jc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return F(ro,ro.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>tu&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=io(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Mc(t),null}else 2*Te()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,jc(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)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=ro.current,F(ro,i?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(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&&ae(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(ea),Mc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Pc(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(ea),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(ro),null;case 4:return ue(),null;case 10:return Wi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&ae(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(ea),null;case 25:return null;default:return null}}function Fc(e,t){switch(Ti(t),t.tag){case 3:Wi(ea),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:ae(ro);break;case 10:Wi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&ae(da);break;case 24:Wi(ea)}}function Ic(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){Gu(t,t.return,e)}}function Lc(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){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Gu(e,e.return,t)}}}function zc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function Bc(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:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(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){Gu(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Gu(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Gu(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Bd=lp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(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,N.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,Fl&6)throw Error(a(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,ad(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{P.p=i,N.T=r,Vu(e,t)}}function Wu(e,t,n){t=fi(n,t),t=qs(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Xe(e,2),id(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=fi(n,e),n=Js(2),r=La(t,n,2),r!==null&&(Ys(n,r,t,e),Xe(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;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)||(Hl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Ll&n)===n&&(Wl===4||Wl===3&&(Ll&62914560)===Ll&&300>Te()-$l?!(Fl&2)&&Su(e,0):ql|=n,Yl===Ll&&(Yl=0)),id(e)}function Ju(e,t){t===0&&(t=Je()),e=Zr(e,t),e!==null&&(Xe(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(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),Ju(e,n)}function Zu(e,t){return xe(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;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-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Ll,a=Ge(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&qd()&&(e=rd);for(var t=Te(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}iu!==0&&iu!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(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&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=vt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);yt(c),Id(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,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=vt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(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`?(t=Mf(n.href),n=vt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,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=Mf(n.href);var o=vt(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(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,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`?(t=If(n),n=vt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+Rt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),yt(t),e.head.appendChild(t))}function If(e){return`[src="`+Rt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,yt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Id(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,zf(r,n.precedence,e));return t.instance}function zf(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 Gf(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 Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(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=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(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=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.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=Fs()}))(),1),Ls=i(),Rs=(0,W.createContext)(void 0);function zs(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function Bs(e){let t=(0,Ls.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=()=>zs(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,W.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,W.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,G.jsx)(Rs.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Vs(){let e=(0,W.useContext)(Rs);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function Hs(e){return en(e.defaultTagName??`div`,e,e)}var Us=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ws=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Gs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Ks=e=>{let t=Gs(e);return t.charAt(0).toUpperCase()+t.slice(1)},qs={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Js=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ys=(0,W.createContext)({}),Xs=()=>(0,W.useContext)(Ys),Zs=(0,W.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Xs()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,W.createElement)(`svg`,{ref:c,...qs,width:t??l??qs.width,height:t??l??qs.height,stroke:e??f,strokeWidth:m,className:Us(`lucide`,p,i),...!a&&!Js(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,W.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Y=(e,t)=>{let n=(0,W.forwardRef)(({className:n,...r},i)=>(0,W.createElement)(Zs,{ref:i,iconNode:t,className:Us(`lucide-${Ws(Ks(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Ks(e),n},Qs=Y(`activity`,[[`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`}]]),$s=Y(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),ec=Y(`boxes`,[[`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`}]]),tc=Y(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),nc=Y(`circle-alert`,[[`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`}]]),rc=Y(`container`,[[`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`}]]),ic=Y(`crosshair`,[[`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`}]]),ac=Y(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),oc=Y(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),sc=Y(`house`,[[`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`}]]),cc=Y(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),lc=Y(`image`,[[`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`}]]),uc=Y(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),dc=Y(`layers`,[[`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`}]]),fc=Y(`layout-grid`,[[`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`}]]),pc=Y(`log-out`,[[`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`}]]),mc=Y(`map-pin`,[[`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`}]]),hc=Y(`moon`,[[`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`}]]),gc=Y(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),_c=Y(`package`,[[`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`}]]),vc=Y(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),yc=Y(`route`,[[`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`}]]),bc=Y(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),xc=Y(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Sc=Y(`shield-check`,[[`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`}]]),Cc=Y(`shield`,[[`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`}]]),wc=Y(`sun`,[[`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`}]]),Tc=Y(`user-cog`,[[`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`}]]),Ec=Y(`users`,[[`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`}]]),Dc=Y(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),Oc=Y(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),kc=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Ac={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},jc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Mc={disabled:!1,...jc},Nc={valid(e){return e===null?null:e?{[kc.valid]:``}:{[kc.invalid]:``}}},Pc={invalid:void 0,name:void 0,validityData:{state:Ac,errors:[],error:``,value:``,initialValue:null},setValidityData:tn,disabled:void 0,touched:jc.touched,setTouched:tn,dirty:jc.dirty,setDirty:tn,filled:jc.filled,setFilled:tn,focused:jc.focused,setFocused:tn,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Mc,markedDirtyRef:{current:!1},registerFieldControl:tn,validation:{getValidationProps:(e,t=Xt)=>t,inputRef:{current:null},registerInput:tn,commit:async()=>{},change:tn}},Fc=W.createContext(Pc);function Ic(e=!0){let t=W.useContext(Fc);if(t.setValidityData===tn&&!e)throw Error(an(28));return t}var Lc=W.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:tn,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Rc(){return W.useContext(Lc)}var zc=W.createContext({controlId:void 0,registerControlId:tn,labelId:void 0,setLabelId:tn,messageIds:[],setMessageIds:tn,getDescriptionProps:e=>e});function Bc(){return W.useContext(zc)}function Vc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Bc(),o=Ar(t),s=n?i:void 0,c=$t(()=>Symbol(`labelable-control`)),l=W.useRef(!1),u=W.useRef(t!=null),d=Cr(()=>{!l.current||a===tn||(l.current=!1,a(c.current,void 0))});return V(()=>{if(a===tn)return;let e;if(n){let n=r?.current;e=H(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),W.useEffect(()=>d,[d]),i??o}function Hc(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Uc,platform:Wc,maxTouchPoints:Gc}=Hc(),Kc=Uc.toLowerCase(),qc=Wc.toLowerCase(),Jc=/^i(os$|p)/.test(qc)||qc===`macintel`&&Gc>1,Yc=`android`,Xc=qc===Yc||Kc.includes(Yc),Zc=!Jc&&qc.startsWith(`mac`);qc.startsWith(`win`),!Xc&&/^(linux|chrome os)/.test(qc);var Qc=Zc||Jc,$c=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!$c&&Kc.includes(`firefox`),!$c&&Kc.includes(`chrom`);var el=Qc,tl=/jsdom|happydom/.test(Kc),nl=`data-base-ui-focusable`,rl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,il=`ArrowLeft`,al=`ArrowRight`,ol=`ArrowUp`,sl=`ArrowDown`;function cl(e,t){if(!H(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(U(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function ll(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function ul(e){return e.matches(`html,body`)}function dl(e){return pr(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function fl(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${rl}`)!=null}function pl(e){return e?e.getAttribute(`role`)===`combobox`&&dl(e):!1}function ml(e){if(!e||tl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function hl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function gl(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...gl(e,t.id,n)])}function _l(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function vl(e){e.preventDefault(),e.stopPropagation()}function yl(e){return`nativeEvent`in e}function bl(e){return e.pointerType===``&&e.isTrusted?!0:Xc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function xl(e){return tl?!1:!Xc&&e.width===0&&e.height===0||Xc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Sl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Cl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var wl=[`top`,`right`,`bottom`,`left`],Tl=Math.min,El=Math.max,Dl=Math.round,Ol=Math.floor,kl=e=>({x:e,y:e}),Al={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function jl(e,t,n){return El(e,Tl(t,n))}function Ml(e,t){return typeof e==`function`?e(t):e}function Nl(e){return e.split(`-`)[0]}function Pl(e){return e.split(`-`)[1]}function Fl(e){return e===`x`?`y`:`x`}function Il(e){return e===`y`?`height`:`width`}function X(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ll(e){return Fl(X(e))}function Rl(e,t,n){n===void 0&&(n=!1);let r=Pl(e),i=Ll(e),a=Il(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ql(o)),[o,ql(o)]}function zl(e){let t=ql(e);return[Bl(e),t,Bl(t)]}function Bl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Vl=[`left`,`right`],Hl=[`right`,`left`],Ul=[`top`,`bottom`],Wl=[`bottom`,`top`];function Gl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Hl:Vl:t?Vl:Hl;case`left`:case`right`:return t?Ul:Wl;default:return[]}}function Kl(e,t,n,r){let i=Pl(e),a=Gl(Nl(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Bl)))),a}function ql(e){let t=Nl(e);return Al[t]+e.slice(t.length)}function Jl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Jl(e)}function Xl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Zl(e,t){return t<0||t>=e.length}function Ql(e,t){return eu(e.current,{disabledIndices:t})}function $l(e,t){return eu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eu(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&tu(e,a,r));return a}function tu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?ru(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function nu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ru(e,t=e?vr(e):null){return!e||!e.isConnected||!t||nu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var iu=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function au(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Dr(n)?n.host:null}function ou(e){for(let t of Array.from(e.children))if(xr(t)===`summary`)return t;return null}function su(e,t){let n=ou(t);return!!n&&(e===n||U(n,e))}function cu(e){let t=e?xr(e):``;return e!=null&&e.matches(iu)&&(t!==`summary`||e.parentElement!=null&&xr(e.parentElement)===`details`&&ou(e.parentElement)===e)&&(t!==`details`||ou(e)==null)&&(t!==`input`||e.type!==`hidden`)}function lu(e){if(!cu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=au(t)){let n=t!==e,r=xr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&xr(t)===`details`&&!t.open&&!su(e,t)||t.hasAttribute(`hidden`)||!r&&!uu(t,n))return!1}return!0}function uu(e,t){let n=vr(e);return t?n.display!==`none`:ru(e,n)}function du(e){let t=e.tabIndex;if(t<0){let t=xr(e);if(t===`details`||t===`audio`||t===`video`||pr(e)&&e.isContentEditable)return 0}return t}function fu(e){if(xr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function pu(e,t){let n=fu(e);if(!n)return!0;let r=t.find(e=>{let t=fu(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=fu(e);return t?.name===n.name&&t.form===n.form})===n}function mu(e){if(pr(e)&&xr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return pr(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function hu(e,t){mu(e).forEach(e=>{cu(e)&&t.push(e),hu(e,t)})}function gu(e,t,n){mu(e).forEach(e=>{pr(e)&&e.matches(t)&&n.push(e),gu(e,t,n)})}function _u(e){return lu(e)&&du(e)>=0}function vu(e){let t=[];return hu(e,t),t.filter(lu)}function yu(e){let t=vu(e);return t.filter(e=>du(e)>=0&&pu(e,t))}function bu(e,t){let n=yu(e),r=n.length;if(r===0)return;let i=Ur(Wr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function xu(e){return bu(Wr(e).body,1)||e}function Su(e){return bu(Wr(e).body,-1)||e}function Cu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!U(n,r)}function wu(e){yu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Tu(e){let t=[];gu(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Eu=[];function Du(e){W.useEffect(e,Eu)}var Ou=0,ku=class e{static create(){return new e}currentId=Ou;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ou,t()},e)}isStarted(){return this.currentId!==Ou}clear=()=>{this.currentId!==Ou&&(clearTimeout(this.currentId),this.currentId=Ou)};disposeEffect=()=>this.clear};function Au(){let e=$t(ku.create).current;return Du(e.disposeEffect),e}var ju=null;globalThis.requestAnimationFrame;var Mu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Nu=class e{static create(){return new e}static request(e){return Mu.request(e)}static cancel(e){return Mu.cancel(e)}currentId=ju;request(e){this.cancel(),this.currentId=Mu.request(()=>{this.currentId=ju,e()})}cancel=()=>{this.currentId!==ju&&(Mu.cancel(this.currentId),this.currentId=ju)};disposeEffect=()=>this.cancel};function Pu(){let e=$t(Nu.create).current;return Du(e.disposeEffect),e}function Fu(e){return e==null?e:`current`in e?e.current:e}var Iu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Lu={[Iu.startingStyle]:``},Ru={[Iu.endingStyle]:``},zu={transitionStatus(e){return e===`starting`?Lu:e===`ending`?Ru:null}},Bu=n(It(),1);function Vu(e,t=!1,n=!0){let r=Pu();return Cr((i,a=null)=>{r.cancel();let o=Fu(e);if(o==null)return;let s=o,c=()=>{Bu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Iu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Hu(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=Cr(i),o=Vu(r,n,!1);W.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Uu(e,t=!1,n=!1){let[r,i]=W.useState(e&&t?`idle`:void 0),[a,o]=W.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),V(()=>{if(!e&&a&&r!==`ending`&&n){let e=Nu.request(()=>{i(`ending`)});return()=>{Nu.cancel(e)}}},[e,a,r,n]),V(()=>{if(!e||t)return;let n=Nu.request(()=>{i(void 0)});return()=>{Nu.cancel(n)}},[t,e]),V(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Nu.request(()=>{i(`idle`)});return()=>{Nu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function Wu({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=W.useRef(e!==void 0),[a,o]=W.useState(t);return[i?e:a,W.useCallback(e=>{i||o(e)},[])]}function Gu(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Ic(),s=W.useRef(null);s.current||=Symbol(),V(()=>{let c=s.current;if(!(!c||!i))return o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{o(c,void 0)}},[e,i,r,t,a,o,n])}var Ku=W.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=Ic(),{clearErrors:C}=Rc(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=Bc(),O=Vc({id:i});V(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let k=W.useRef(null);V(()=>{u&&k.current===Ur(Wr(k.current))&&y(!0)},[u,y]);let[A]=Wu({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,ee=Cr(()=>S.inputRef.current?.value);return Gu(S.inputRef,O,M,ee,!w,a),en(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:S.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Hr(Nr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``),e.nativeEvent.defaultPrevented||(C(T),S.change(t))},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},f,e=>S.getValidationProps(w,e)],stateAttributesMapping:Nc})}),qu=W.forwardRef(function(e,t){return(0,G.jsx)(Ku,{ref:t,...e})});function Ju(e){let t=(0,Ls.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=Cn(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(qu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Yu=W.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return en(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Xu(e){let t=(0,Ls.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=Cn(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,G.jsx)(Yu,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Zu=W.createContext(!1),Qu=W.createContext(void 0);function $u(e){let t=W.useContext(Qu);if(e===!1&&t===void 0)throw Error(an(27));return t}var ed=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Iu.startingStyle]=`startingStyle`,e[e.endingStyle=Iu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),td=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),nd={[td.popupOpen]:``},rd={[td.popupOpen]:``,[td.pressed]:``},id={[ed.open]:``},ad={[ed.closed]:``},od={[ed.anchorHidden]:``},sd={open(e){return e?nd:null}},cd={open(e){return e?rd:null}},ld={open(e){return e?id:ad},anchorHidden(e){return e?od:null}},ud={...ld,...zu},dd=W.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=$u(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return en(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:ud,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),fd=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=$u(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Sr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Hr(Br,e.nativeEvent))}return en(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),pd=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=$u(),c=Ar(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),en(`p`,e,{ref:t,props:[{id:c},o]})});function md(e,t){return t!=null&&!Sl(t)?0:typeof e==`function`?e():e}function hd(e,t,n){let r=md(e,n);return typeof r==`number`?r:r?.[t]}function gd(e){return typeof e==`function`?e():e}function _d(e,t){return t||e===`click`||e===`mousedown`}function vd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var yd=W.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ku,currentIdRef:{current:null},currentContextRef:{current:null}});function bd(e,t){e.current=t.current}function xd(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=W.useRef(n),a=W.useRef(n),o=W.useRef(null),s=W.useRef(null),c=Au();return V(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:hd(i.current,`open`),close:hd(n,`close`)}},[n,o,i,a]),(0,G.jsx)(yd.Provider,{value:W.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Sd(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}=W.useContext(yd),[f,p]=W.useState(!1),m=W.useRef(n),h=W.useRef(!1);return V(()=>{m.current=n},[n]),V(()=>()=>{h.current=!0},[]),V(()=>{function e(){h.current||p(!1),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]),V(()=>{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:hd(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Hr(Nr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),V(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,bd(o,c),d.clear()}},[l,a,o,i,c,d]),W.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Z(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Cd(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Ed={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Dd={...Ed,position:`fixed`,top:0,left:0},Od={...Ed,position:`absolute`},kd=W.forwardRef(function(e,t){let[n,r]=W.useState();V(()=>{el&&$c&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:Dd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Ad(e){return`data-base-ui-${e}`}var jd=0;function Md(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(jd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),tn;let o=requestAnimationFrame(a);return jd=o,()=>{jd===o&&(cancelAnimationFrame(o),jd=0)}}var Nd={inert:new WeakMap,"aria-hidden":new WeakMap},Pd=`data-base-ui-inert`,Fd={inert:new WeakSet,"aria-hidden":new WeakSet},Id=new WeakMap,Ld=0;function Rd(e){return Fd[e]}function zd(e){return e?Dr(e)?e.host:zd(e.parentNode):null}var Bd=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=zd(t);return e.contains(n)?n:null}).filter(e=>e!=null),Vd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Hd=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{xr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ud(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=Bd(t,e),l=i?Hd(t,Vd(c),new Set(c)):[],u=[],d=[];if(a){let e=Nd[a],n=Rd(a);s=n,o=e;let r=Bd(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);Hd(t,Vd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(Id.get(e)||0)+1;Id.set(e,t),d.push(e),t===1&&e.setAttribute(Pd,``)}),Ld+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(Id.get(e)||0)-1;Id.set(e,t),t||e.removeAttribute(Pd)}),--Ld,Ld||(Nd.inert=new WeakMap,Nd[`aria-hidden`]=new WeakMap,Fd.inert=new WeakSet,Fd[`aria-hidden`]=new WeakSet,Id=new WeakMap)}}function Wd(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Wr(e[0]).body;return Ud(e,a,n,r,{mark:i})}var Gd={style:{transition:`none`}},Kd={fallbackAxisSide:`none`},qd={fallbackAxisSide:`end`},Jd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Yd=W.createContext(null),Xd=()=>W.useContext(Yd),Zd=Ad(`portal`);function Qd(e={}){let{ref:t,container:n,componentProps:r=Xt,elementProps:i}=e,a=kr(),o=Xd()?.portalNode,[s,c]=W.useState(null),[l,u]=W.useState(null),d=Cr(e=>{e!==null&&u(e)}),f=W.useRef(null);V(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(ur(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=en(`div`,r,{ref:[t,d],props:[{id:a,[Zd]:``},i]});return{portalNode:l,portalSubtree:s&&p?Bu.createPortal(p,s):null}}var $d=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Qd({container:o,ref:t,componentProps:e,elementProps:c}),d=W.useRef(null),f=W.useRef(null),p=W.useRef(null),m=W.useRef(null),[h,g]=W.useState(null),_=W.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;W.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Cu(e)&&(e.type===`focusin`?_.current&&=(Tu(l),!1):(wu(l),_.current=!0))}return Cd(Z(l,`focusin`,e,!0),Z(l,`focusout`,e,!0))},[l,v]),V(()=>{!l||y!==!0||!_.current||(Tu(l),_.current=!1)},[y,l]);let x=W.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,G.jsxs)(W.Fragment,{children:[u,(0,G.jsxs)(Yd.Provider,{value:x,children:[b&&l&&(0,G.jsx)(kd,{"data-type":`outside`,ref:d,onFocus:e=>{Cu(e,l)?p.current?.focus():Su(h?h.domReference:null)?.focus()}}),b&&l&&(0,G.jsx)(`span`,{"aria-owns":l.id,style:Jd}),l&&Bu.createPortal(a,l),b&&l&&(0,G.jsx)(kd,{"data-type":`outside`,ref:f,onFocus:e=>{Cu(e,l)?m.current?.focus():(xu(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Hr(`focus-out`,e.nativeEvent)))}})]})]})});function ef(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var tf=W.createContext(null),nf=W.createContext(null),rf=()=>W.useContext(tf)?.id||null,af=e=>{let t=W.useContext(nf);return e??t};function of(e,t){let n=fr(Mr(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var sf=20,cf=[];function lf(){cf=cf.filter(e=>e.deref()?.isConnected)}function uf(e){lf(),e&&xr(e)!==`body`&&(cf.push(new WeakRef(e)),cf.length>sf&&(cf=cf.slice(-20)))}function df(){return lf(),cf[cf.length-1]?.deref()}function ff(e){return e?_u(e)?e:yu(e)[0]||e:null}function pf(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=vu(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return _u(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function mf(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=Cr(()=>b.current.floatingContext?.nodeId),S=i===!1,C=pl(_)&&S,w=wd(i),T=wd(a),E=wd(l),D=wd(g),O=af(p),k=Xd(),A=W.useRef(!1),j=W.useRef(!1),M=W.useRef(!1),ee=W.useRef(null),N=W.useRef(``),P=W.useRef(``),te=W.useRef(null),ne=W.useRef(null),re=Zt(te,f,k?.beforeInsideRef),ie=Zt(ne,k?.afterInsideRef),ae=Au(),F=Au(),oe=Pu(),se=k!=null,I=hl(v),ce=Cr((e=I)=>e?yu(e):[]),le=Cr(()=>m?.().filter(e=>e!=null)??[]);W.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&U(I,Ur(Wr(I)))&&ce().length===0&&!C&&vl(e)}return Z(Wr(I),`keydown`,e)},[r,I,s,C,ce]),W.useEffect(()=>{if(r||!g)return;let e=Wr(I);function t(){M.current=!1}function n(e){let t=Mr(e),n=le();M.current=!(U(v,t)||U(_,t)||U(k?.portalNode,t)||n.some(e=>e===t||U(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0,F.start(0,()=>{j.current=!1}))}function i(){P.current=`keyboard`}return Cd(Z(e,`pointerdown`,n,!0),Z(e,`pointerup`,t,!0),Z(e,`pointercancel`,t,!0),Z(e,`keydown`,i,!0),t)},[r,v,_,I,g,k,F,le]),W.useEffect(()=>{if(r||!c)return;let e=Wr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=Mr(e);_u(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Mr(t);s&&n==null&&i!=null&&U(v,i)&&uf(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(Ad(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,Fu(d),Fu(u)].includes(n),p=!(U(_,n)||U(v,n)||U(n,v)||U(k?.portalNode,n)||l.some(e=>e===n||U(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>U(e,n))||f||O&&(gl(O.nodesRef.current,a).find(e=>U(e.context?.elements.floating,n)||U(e.context?.elements.domReference,n))||_l(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,hl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&pf(I),o&&r!==_&&!ru(i)&&Ur(e)===e.body){if(pr(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;pr(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==df())&&(A.current=!0,h.setOpen(!1,Hr(Rr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=pr(_)?_:null;if(!(!v&&!l))return Cd(l&&Z(l,`focusout`,i),l&&Z(l,`pointerdown`,t),v&&Z(v,`focusin`,n),v&&Z(v,`focusout`,i),v&&k&&Z(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,b,ae,F,oe,u,d,le]),W.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Ad(`portal`)}]`)||[]),t=(O?_l(O.nodesRef.current,x()):[]).find(e=>pl(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Wd([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,Fu(d),Fu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Wd([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),V(()=>{if(!g||r||!pr(I))return;let e=Wr(I),t=Ur(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(E.current||``):n;if(r===void 0||r===!1||U(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():Fu(r),o||=a();let s=U(I,Ur(e));Md(o,{preventScroll:o===I,shouldFocus(){if(!D.current)return!1;if(s)return!0;let t=Ur(e);return!(t!==o&&U(I,t))}})})},[r,g,I,ce,w,E,D]),V(()=>{if(r||!I)return;let e=Wr(I),t=Ur(e),n=E.current==null;uf(t);function i(e){if(e.open||(N.current=of(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(bl(e.nativeEvent)||xl(e.nativeEvent))A.current=!1;else{let e=!1;Wr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,i);function a(){let e=T.current,r=typeof e==`function`?e(N.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=_?.isConnected?_:null,a=t?.isConnected&&xr(t)!==`body`?t:null,o=n?a||i:i||a;return o||=df()||null,typeof r==`boolean`?o:Fu(r)||o||null}return()=>{y.off(`openchange`,i);let t=Ur(e),n=le(),r=U(v,t)||n.some(e=>e===t||U(e,t))||O&&gl(O.nodesRef.current,x(),!1).some(e=>U(e.context?.elements.floating,t)),o=T.current,s=a();queueMicrotask(()=>{let n=ff(s),i=typeof o!=`boolean`;o&&!A.current&&pr(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,T,E,y,O,_,x,le]),V(()=>{if(!$c||g||!v)return;let e=Ur(Wr(v));!pr(e)||!dl(e)||U(v,e)&&e.blur()},[g,v]),V(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),V(()=>{if(!(r||!I))return pf(I),()=>{queueMicrotask(lf)}},[r,I]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,G.jsxs)(W.Fragment,{children:[ue&&(0,G.jsx)(kd,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();Md(e[e.length-1])}else k?.portalNode&&(A.current=!1,Cu(e,k.portalNode)?xu(_)?.focus():Fu(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,G.jsx)(kd,{"data-type":`inside`,ref:ie,onFocus:e=>{s?Md(ce()[0]):k?.portalNode&&(c&&(A.current=!0),Cu(e,k.portalNode)?Su(_)?.focus():Fu(u??k.afterOutsideRef)?.focus())}})]})}function hf(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 gf(e){return e!=null&&e.clientX!=null}function _f(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=W.useRef(!1),u=W.useRef(null),[d,f]=W.useState(),[p,m]=W.useState([]),h=Cr(e=>{i.set(`positionReference`,e)}),g=Cr((e,t,n)=>{l.current||c.current.openEvent&&!gf(c.current.openEvent)||i.set(`positionReference`,hf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=Cr(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Sl(d)?o:a;W.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=fr(o);function r(t){U(o,Mr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||gf(c.current.openEvent)?u.current=Z(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),W.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),W.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),W.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=W.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return W.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function vf(){return!1}function yf(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function bf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=vf,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=af(c),m=Cr(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=Cr(()=>a),{escapeKey:v,outsidePress:y}=yf(s),b=W.useRef(!1),x=W.useRef(!1),S=W.useRef(!1),C=W.useRef(!1),w=W.useRef(``),T=W.useRef(null),E=Au(),D=Au(),O=Cr(()=>{D.clear(),f.current.insideReactTree=!1}),k=Cr(e=>{let t=f.current.floatingContext?.nodeId;return(p?gl(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=Cr(e=>ll(e,l.select(`floatingElement`))||ll(e,l.select(`domReferenceElement`))),j=Cr(e=>{o()&&l.setOpen(!1,Hr(Pr,e.nativeEvent))}),M=Cr(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&k(`__escapeKeyBubbles`))return;let t=Hr(jr,yl(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=Cr(()=>{f.current.insideReactTree=!0,D.start(0,O)}),N=Cr(e=>{if(!u||!n||e.button!==0)return;let t=Mr(e.nativeEvent);U(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=Cr(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});W.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new ku,t=new ku;function i(){e.clear(),C.current=!0}function a(){e.start($c?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function D(e){let t=f.current.floatingContext?.nodeId,n=p&&gl(p.nodesRef.current,t).some(t=>ll(e,t.context?.elements.floating));return A(e)||n}function j(e){if(m(e)){e.type!==`click`&&!A(e)&&(t.clear(),S.current=!1),O();return}if(f.current.insideReactTree){O();return}let n=Mr(e),r=`[${Ad(`inert`)}]`,i=H(n)?n.getRootNode():null,a=Array.from((Dr(i)?i:Wr(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>U(e,n))))return;let s=H(n)?n:null;for(;s&&!Or(s);){let e=gr(s);if(Or(e)||!H(e))break;s=e}if(!(a.length&&H(n)&&!ul(n)&&!U(n,l.select(`floatingElement`))&&a.every(e=>!U(s,e)))){if(pr(n)&&!(`touches`in e)){let t=Or(n),r=vr(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!D(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||k(`__outsidePressBubbles`)||(l.setOpen(!1,Hr(zr,e)),O())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||A(e)||j(e)}function N(e){if(c()!==`sloppy`||!l.select(`open`)||!n||A(e))return;let t=e.touches[0];t&&(T.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=Mr(e);if(!n)return;let r=Z(n,e.type,()=>{t(e),r()})}function te(e){w.current=`touch`,P(e,N)}function ne(e){E.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&T.current&&!T.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):j(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!D(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,O())}}}function ie(e){if(c()!==`sloppy`||!T.current||A(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-T.current.startX),r=Math.abs(t.clientY-T.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(T.current.dismissOnTouchEnd=!0),i>10&&(j(e),E.clear(),T.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!T.current||A(e)||(T.current.dismissOnTouchEnd&&j(e),E.clear(),T.current=null)}function oe(e){P(e,F)}let se=Wr(d),I=Cd(r&&Cd(Z(se,`keydown`,M),Z(se,`compositionstart`,i),Z(se,`compositionend`,a)),g&&Cd(Z(se,`click`,ne,!0),Z(se,`pointerdown`,ne,!0),Z(se,`pointerup`,re,!0),Z(se,`pointercancel`,re,!0),Z(se,`mousedown`,ne,!0),Z(se,`mouseup`,re,!0),Z(se,`touchstart`,te,!0),Z(se,`touchmove`,ae,!0),Z(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,M,O,_,k,A,p,l,E]),W.useEffect(O,[h,O]);let te=W.useMemo(()=>({onKeyDown:M,onPointerDown:j,onClick:j}),[M,j]),ne=W.useMemo(()=>({onKeyDown:M,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),N(e)},onPointerDownCapture(e){ee(),N(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[M,ee,N,P]);return W.useMemo(()=>n?{reference:te,floating:ne,trigger:te}:{},[n,te,ne])}function xf(e,t,n){let{reference:r,floating:i}=e,a=X(t),o=Ll(t),s=Il(o),c=Nl(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Pl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Sf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ml(t,e),p=Yl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Xl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Xl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Cf=50,wf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Sf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=xf(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==X(t))||T.every(e=>X(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=X(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ef(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Df(e){return wl.some(t=>e[t]>=0)}var Of=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ml(e,t);switch(i){case`referenceHidden`:{let e=Ef(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Df(e)}}}case`escaped`:{let e=Ef(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Df(e)}}}default:return{}}}}},kf=new Set([`left`,`top`]);async function Af(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Nl(n),s=Pl(n),c=X(n)===`y`,l=kf.has(o)?-1:1,u=a&&c?-1:1,d=Ml(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var jf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Af(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Mf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ml(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=X(Nl(i)),p=Fl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=jl(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=jl(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ml(e,t),u={x:n,y:r},d=X(i),f=Fl(d),p=u[f],m=u[d],h=Ml(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=kf.has(Nl(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Pf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ml(e,t),u=await o.detectOverflow(t,l),d=Nl(i),f=Pl(i),p=X(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Tl(h-u[g],v),x=Tl(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=El(u.left,0),t=El(u.right,0),n=El(u.top,0),r=El(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:El(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:El(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ff(e){let t=vr(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Dl(n)!==a||Dl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function If(e){return H(e)?e:e.contextElement}function Lf(e){let t=If(e);if(!pr(t))return kl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ff(t),o=(a?Dl(n.width):n.width)/r,s=(a?Dl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Rf=kl(0);function zf(e){let t=fr(e);return!cr()||!t.visualViewport?Rf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fr(e)?!1:t}function Vf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=If(e),o=kl(1);t&&(r?H(r)&&(o=Lf(r)):o=Lf(e));let s=Bf(a,n,r)?zf(a):kl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=fr(a),t=r&&H(r)?fr(r):r,n=e,i=hr(n);for(;i&&r&&t!==n;){let e=Lf(i),t=i.getBoundingClientRect(),r=vr(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=fr(i),i=hr(n)}}return Xl({width:u,height:d,x:c,y:l})}function Hf(e,t){let n=yr(e).scrollLeft;return t?t.left+n:Vf(mr(e)).left+n}function Uf(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Hf(e,n),y:n.top+t.scrollTop}}function Wf(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=mr(r),s=t?lr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=kl(1),u=kl(0),d=pr(r);if((d||!d&&!a)&&((xr(r)!==`body`||sr(o))&&(c=yr(r)),d)){let e=Vf(r);l=Lf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Uf(o,c):kl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Gf(e){return Array.from(e.getClientRects())}function Kf(e){let t=mr(e),n=yr(e),r=e.ownerDocument.body,i=El(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=El(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Hf(e),s=-n.scrollTop;return vr(r).direction===`rtl`&&(o+=El(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var qf=25;function Jf(e,t){let n=fr(e),r=mr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=cr();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Hf(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=qf&&(a-=o)}else l<=qf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Yf(e,t){let n=Vf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pr(e)?Lf(e):kl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Xf(e,t,n){let r;if(t===`viewport`)r=Jf(e,n);else if(t===`document`)r=Kf(mr(e));else if(H(t))r=Yf(t,n);else{let n=zf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xl(r)}function Zf(e,t){let n=gr(e);return n===t||!H(n)||Or(n)?!1:vr(n).position===`fixed`||Zf(n,t)}function Qf(e,t){let n=t.get(e);if(n)return n;let r=_r(e,[],!1).filter(e=>H(e)&&xr(e)!==`body`),i=null,a=vr(e).position===`fixed`,o=a?gr(e):e;for(;H(o)&&!Or(o);){let t=vr(o),n=Er(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||sr(o)&&!n&&Zf(e,o))?r=r.filter(e=>e!==o):i=t,o=gr(o)}return t.set(e,r),r}function $f(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?lr(t)?[]:Qf(t,this._c):[].concat(n),r],o=Xf(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!cp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function up(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=If(e),u=i||a?[...l?_r(l):[],...t?_r(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?lp(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Vf(e):null;c&&g();function g(){let t=Vf(e);h&&!cp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var dp=jf,fp=Mf,pp=Tf,mp=Pf,hp=Of,gp=Nf,_p=(e,t,n)=>{let r=new Map,i={platform:sp,...n},a={...i.platform,_c:r};return wf(e,t,{...i,platform:a})},vp=typeof document<`u`?W.useLayoutEffect:function(){};function yp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!yp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function bp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xp(e,t){let n=bp(e);return Math.round(t*n)/n}function Sp(e){let t=W.useRef(e);return vp(()=>{t.current=e}),t}function Cp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=W.useState(r);yp(f,r)||p(r);let[m,h]=W.useState(null),[g,_]=W.useState(null),v=W.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=W.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=W.useRef(null),C=W.useRef(null),w=W.useRef(u),T=c!=null,E=Sp(c),D=Sp(i),O=Sp(l),k=W.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),_p(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!yp(w.current,t)&&(w.current=t,Bu.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);vp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=W.useRef(!1);vp(()=>(A.current=!0,()=>{A.current=!1}),[]),vp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=W.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=W.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=xp(M.floating,u.x),r=xp(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...bp(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var wp=(e,t)=>{let n=dp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tp=(e,t)=>{let n=fp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ep=(e,t)=>({fn:gp(e).fn,options:[e,t]}),Dp=(e,t)=>{let n=pp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Op=(e,t)=>{let n=mp(e);return{name:n.name,fn:n.fn,options:[e,t]}},kp=(e,t)=>{let n=hp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Ap(e){let t=W.useRef(!0);t.current&&(t.current=!1,e())}var Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(an(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},jp=[],Mp=void 0;function Np(){return Mp}function Pp(e){jp.push(e)}function Fp(e){let t=(t,n)=>{let r=$t(Lp).current,i;try{Mp=r;for(let e of jp)e.before(r);i=e(t,n);for(let e of jp)e.after(r);r.didInitialize=!0}finally{Mp=void 0}return i};return t.displayName=e.displayName||e.name,t}function Ip(e){return W.forwardRef(Fp(e))}function Lp(){return{didInitialize:!1}}var Rp=ie(),zp=ne(),Bp=nn(19)?Up:Wp;function Vp(e,t,n,r,i){return Bp(e,t,n,r,i)}function Hp(e,t,n,r,i){let a=W.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Rp.useSyncExternalStore)(e.subscribe,a,a)}Pp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Rp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Up(e,t,n,r,i){let a=Np();if(!a)return Hp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Wp(e,t,n,r,i){return(0,zp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Gp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Vp(this,e,t,n,r)}},Kp=class extends Gp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){W.useDebugValue(e);let n=this;V(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;V(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;V(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){W.useDebugValue(e);let n=this,r=t!==void 0;V(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return W.useDebugValue(e),Vp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){W.useDebugValue(e);let n=Cr(t??tn);this.context[e]=n}useStateSetter(e){let t=W.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},qp={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},Jp=class extends Kp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:ef(),nested:n,triggerElements:i},qp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Cl(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Yp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=W.useRef(null);r===void 0&&f.current===null&&(f.current=new Jp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),V(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};H(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Xp={tabIndex:-1,[nl]:``};function Zp(e){return t=>t===`touch`?e.current:!0}function Qp(e,t,n=!1){let r=kr(),i=rf()!=null,a=W.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Yp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function $p(e,t){let n=W.useRef(null),r=W.useRef(null);return W.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function em(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function tm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function nm(e,t,n,r={}){let i=n.reason,a=i===Fr,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=tm(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),em(i,t,n.trigger,c()),e.update(i)};a?Bu.flushSync(l):l()}function rm(e,t,n,r){Ap(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function im(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=$p(e,n),o=Cr(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return V(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function am(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);V(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=Hr(Nr);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function om(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Uu(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=Cr(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Hu({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function sm(e,t){e.useSyncedValues(t),V(()=>()=>{e.update({activeTriggerProps:Xt,inactiveTriggerProps:Xt,popupProps:Xt})},[e])}function cm(e,t){V(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),V(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var lm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function um(){return new Jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new lm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function dm(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:um(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Xt,inactiveTriggerProps:Xt,popupProps:Xt}}function fm(e,t,n=!1){return new Jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var pm=Q(e=>e.triggerIdProp??e.activeTriggerId),mm=Q(e=>e.openProp??e.open),hm=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function gm(e,t){return t!==void 0&&mm(e)&&pm(e)===t}function _m(e,t){return gm(e,t)?!0:t!==void 0&&mm(e)&&pm(e)==null&&e.triggerCount===1}var vm={open:mm,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:pm,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:hm,isTriggerActive:Q((e,t)=>t!==void 0&&pm(e)===t),isOpenedByTrigger:Q((e,t)=>gm(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&pm(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>_m(e,t)?hm(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function ym(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=kr(),a=rf()!=null,o=$t(()=>new Jp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new lm,floatingId:i,syncOnly:!1,nested:a})).current;return V(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=H(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function bm(e={}){let{nodeId:t,externalTree:n}=e,r=ym(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=W.useState(null),[f,p]=W.useState(void 0),[m,h]=W.useState(void 0),g=W.useRef(null),_=af(n),v=W.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=Cp({...e,elements:{...v,...u&&{reference:u}}}),b=H(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=W.useCallback(e=>{let t=H(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=W.useCallback(e=>{(H(e)||e===null)&&(g.current=e,p(e)),(H(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!H(e))&&y.refs.setReference(e)},[y.refs,p]),w=W.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=W.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=W.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=W.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return V(()=>{s&&(g.current=s)},[s]),V(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),W.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var xm=Zc&&$c;function Sm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=W.useRef(!1),c=W.useRef(null),l=W.useRef(!0),u=Au();W.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=fr(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&pr(e)&&e===Ur(Wr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Cd(Z(t,`blur`,r),xm&&Z(t,`keydown`,a,!0),xm&&Z(t,`pointerdown`,o,!0))},[i,n]),W.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);H(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=W.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=Mr(t.nativeEvent);if(H(a)){if(xm&&!t.relatedTarget){if(!l.current&&!dl(a))return}else if(!ml(a))return}let o=cl(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,Hr(Lr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Hr(Lr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=H(n)&&n.hasAttribute(Ad(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Ur(Wr(e));!n&&t===e||U(o.current.floatingContext?.refs.floating.current,t)||U(e,t)||a||cl(n??t,i.context.triggerElements)||i.setOpen(!1,Hr(Lr,r))})}}},[o,r,i,u]);return W.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Cm=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 ku,this.restTimeout=new ku,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},wm=new WeakMap;function Tm(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&wm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),wm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Em(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=wm.get(n);a&&a!==e&&Tm(a),Tm(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,wm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Dm(e){let t=e.context.dataRef.current,n=$t(()=>t.hoverInteractionState??Cm.create()).current;return t.hoverInteractionState||=n,Du(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Om(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=af(),d=rf(),f=Dm(a),p=Au(),m=Cr(()=>_d(l.current.openEvent?.type,f.interactedInside)),h=Cr(()=>vd(l.current.openEvent?.type)),g=Cr(()=>{Tm(f)});V(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),W.useEffect(()=>g,[g]),V(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&H(c)&&s){let e=c,t=s,n=Wr(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;return Em(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),W.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&gl(u.nodesRef.current,d).length>0)}function t(e){let t=hd(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Hr(Fr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Mr(e);if(!fl(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(cl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&H(o)&&gl(u.nodesRef.current,r,!1).some(e=>U(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,Hr(Fr,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Cd(y&&Z(y,`mouseenter`,c),y&&Z(y,`mouseleave`,_),y&&Z(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var km={current:null};function Am(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=km,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=af(l),v=Dm(m),y=W.useRef(!1),b=wd(i),x=wd(r),S=wd(o),C=wd(n),w=wd(p),T=wd(f),E=Cr(()=>_d(h.current.openEvent?.type,v.interactedInside)),D=Cr(()=>w.current?.()!==!1),O=Cr((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!U(e,t);if(!H(n))return!1;let i=n;return r.hasMatchingElement(e=>U(e,i))&&(!e||!U(e,i))}),k=Cr(()=>{v.handler&&=(Wr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=Cr(()=>{Tm(v)});return u&&(v.handleCloseOptions=b.current?.__options),W.useEffect(()=>k,[k]),W.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Fr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=hd(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Hr(Fr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Hr(Fr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!H(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Sl(v.pointerType))return;let t=gd(S.current),n=hd(x.current,`open`,v.pointerType),r=Mr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(H(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(U(e,r)){s=e;break}}H(i)&&H(o)&&!m.context.triggerElements.hasElement(i)&&U(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&H(s)&&H(o)&&U(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,Hr(Fr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,Hr(Fr,e,s))}):g&&D()&&m.setOpen(!0,Hr(Fr,e,s)))}function i(t){if(E()){A();return}k();let n=Wr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!cl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!U(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Cd(Z(t,`mousemove`,r,{once:!0}),Z(t,`mouseenter`,r),Z(t,`mouseleave`,i)):Cd(Z(t,`mouseenter`,r),Z(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),W.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!Sl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Em(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=gd(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,Hr(Fr,t,n))}v.pointerType===`touch`?Bu.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var jm=.1,Mm=jm*jm,Nm=.5;function Pm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Fm(e,t,n,r,i,a,o,s,c,l){let u=!1;return Pm(e,t,n,r,i,a)&&(u=!u),Pm(e,t,i,a,o,s)&&(u=!u),Pm(e,t,o,s,c,l)&&(u=!u),Pm(e,t,c,l,n,r)&&(u=!u),u}function Im(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Lm(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 Rm(e={}){let{blockPointerEvents:t=!1}=e,n=new ku,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*Mm;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,A=(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 j=!1;switch(c){case`top`:j=Lm(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Lm(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Lm(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Lm(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!Im(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Nm/2:Nm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Nm+1,o=C||T?S.bottom-Nm:S.top,s=C?T?S.bottom-Nm:S.top:S.bottom-Nm;M=Fm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Nm/2:Nm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Nm,o=C||T?S.top+Nm:S.bottom,s=C?T?S.top+Nm:S.bottom:S.top+Nm;M=Fm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Nm/2:Nm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Nm+1,o=w||E?S.right-Nm:S.left,s=w?E?S.right-Nm:S.left:S.right-Nm;M=Fm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Nm/2:Nm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Nm,o=w||E?S.left+Nm:S.right,s=w?E?S.left+Nm:S.right:S.left+Nm;M=Fm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var zm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Bm=function(e){return e[e.open=ed.open]=`open`,e[e.closed=ed.closed]=`closed`,e[e.startingStyle=ed.startingStyle]=`startingStyle`,e[e.endingStyle=ed.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Vm=W.createContext(void 0);function Hm(){let e=W.useContext(Vm);if(e===void 0)throw Error(an(26));return e}var Um=`ArrowUp`,Wm=`ArrowDown`,Gm=`ArrowLeft`,Km=`ArrowRight`,qm=`Home`,Jm=new Set([Gm,Km]),Ym=new Set([Gm,Km,qm,`End`]),Xm=new Set([Um,Wm]),Zm=new Set([Um,Wm,qm,`End`]),Qm=new Set([...Jm,...Xm]),$m=new Set([...Qm,qm,`End`]),eh=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function th(e){return pr(e)&&e.tagName===`INPUT`}function nh(e){return!!(th(e)&&e.selectionStart!=null||pr(e)&&e.tagName===`TEXTAREA`)}function rh(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=ih(e,t,`top`),r=ah(e),i=ah(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function ih(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function ah(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var oh={...ld,...zu,nestedDialogOpen(e){return e?{[Bm.nestedDialogOpen]:``}:null}},sh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=$u(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;Hm(),Hu({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?Zp(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=en(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Xp,hidden:!m,onKeyDown(e){$m.has(e.key)&&e.stopPropagation()},style:{[zm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:oh});return(0,G.jsx)(mf,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})});function ch(e){return nn(19)?e:e?`true`:void 0}var lh=W.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),uh=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=$u(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,G.jsx)(Vm.Provider,{value:n,children:(0,G.jsxs)($d,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(lh,{ref:i.context.internalBackdropRef,inert:ch(!s)}),e.children]})}):null}),dh={},fh={},ph=``;function mh(e){if(typeof document>`u`)return!1;let t=Wr(e);return fr(t).innerWidth-t.documentElement.clientWidth>0}function hh(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Wr(e),n=t.documentElement,r=t.body,i=sr(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function gh(e){let t=Wr(e),n=t.documentElement,r=t.body,i=sr(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function _h(e){let t=Wr(e),n=t.documentElement,r=t.body,i=fr(n),a=0,o=0,s=!1,c=Nu.create();if($c&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,dh={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ph=n.style.scrollBehavior,fh={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=sr(n)?n:r;if(s=hh(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,dh),Object.assign(r.style,fh),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=ph)}function d(){u(),c.request(l)}l();let f=Z(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var vh=new class{lockCount=0;restore=null;timeoutLock=ku.create();timeoutUnlock=ku.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Wr(e).documentElement,n=fr(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=tn;return}let r=Jc||!mh(e);this.restore=r?gh(e):_h(e)}};function yh(e=!0,t=null){V(()=>{if(e)return vh.acquire(t)},[e,t])}function bh(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);cm(t,r),am(t);let{forceUnmount:i}=om(r,t),a=W.useCallback(()=>{t.setOpen(!1,Hr(Vr))},[t]);W.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function xh({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=W.useState(0),[u,d]=W.useState(0),f=c===0,p=bf(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=Mr(t);return f&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||U(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:f});return yh(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),d(0)}),W.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,u+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,u,t]),sm(e,{activeTriggerProps:p.reference??Xt,inactiveTriggerProps:p.trigger??Xt,popupProps:p.floating??Xt,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var Sh={...vm,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},Ch=class e extends Kp{constructor(e,t,n=!1){let r=new lm,i=wh(e);i.floatingRootContext=fm(r,t,n),super(i,{popupRef:W.createRef(),backdropRef:W.createRef(),internalBackdropRef:W.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},Sh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};em(n,e,t.trigger),this.update(n)};static useStore(t,n){return Qp(t,(t,r)=>new e(n,t,r),!0).store}};function wh(e={}){return{...dm(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function Th(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=$u(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=Ch.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Ap(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);bh({store:b,actionsRef:l});let w=x||S,T=W.useMemo(()=>({store:b}),[b]);return(0,G.jsx)(Zu.Provider,{value:!1,children:(0,G.jsxs)(Qu.Provider,{value:T,children:[w&&(0,G.jsx)(xh,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}function Eh(e){return Th(e,W.useContext(Zu)?`drawer`:`dialog`)}var Dh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=$u(),c=Ar(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),en(`h2`,e,{ref:t,props:[{id:c},o]})});function Oh(e){let t=(0,Ls.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,G.jsx)(Eh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function kh(e){let t=(0,Ls.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,G.jsx)(uh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Ah(e){let t=(0,Ls.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=Cn(`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,G.jsx)(dd,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jh(e){let t=(0,Ls.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?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(Ah,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=Cn(`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,G.jsxs)(fd,{"data-slot":`sheet-close`,render:(0,G.jsx)(wr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,G.jsx)(Oc,{}),(0,G.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,G.jsxs)(kh,{children:[l,(0,G.jsxs)(sh,{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 Mh(e){let t=(0,Ls.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=Cn(`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,G.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Nh(e){let t=(0,Ls.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=Cn(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Dh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ph(e){let t=(0,Ls.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=Cn(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(pd,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Fh=W.createContext(void 0);function Ih(e){let t=W.useContext(Fh);if(t===void 0&&!e)throw Error(an(72));return t}var Lh={...vm,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},Rh=class e extends Kp{constructor(e,t,n=!1){let r=new lm,i={...zh(),...e};i.floatingRootContext=fm(r,t,n),super(i,{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},Lh)}setOpen=(e,t)=>{nm(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Hr(Pr,e))}static useStore(t,n){return Qp(t,(t,r)=>new e(n,t,r)).store}};function zh(){return{...dm(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Bh=Fp(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=Rh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});rm(p,r,n,d),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}),p.useSyncedValue(`disabled`,t),am(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=om(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=W.useRef(null);V(()=>{m&&t&&p.setOpen(!1,Hr(Ir))},[m,t,p]),V(()=>{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]),V(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=W.useCallback(()=>{p.setOpen(!1,Hr(Vr))},[p]);W.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,G.jsxs)(Fh.Provider,{value:p,children:[E&&(0,G.jsx)(Vh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function Vh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=bf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=_f(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return sm(e,{activeTriggerProps:W.useMemo(()=>Qt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:W.useMemo(()=>Qt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:W.useMemo(()=>Qt(Xp,a.floating,i.floating),[a.floating,i.floating])}),null}var Hh=W.createContext(void 0);function Uh(){return W.useContext(Hh)}var Wh=function(e){return e[e.popupOpen=td.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Gh=`data-base-ui-tooltip-trigger`;function Kh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=Sm(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=Kh(e),r=ie(n),i=y.current,a=i&&n&&U(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Hr(Fr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Sl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Hr(Fr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return en(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(Kh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.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,[Wh.triggerDisabled]:A?``:void 0,[Gh]:A?void 0:``},f],stateAttributesMapping:sd})}),Yh=W.createContext(void 0);function Xh(){let e=W.useContext(Yh);if(e===void 0)throw Error(an(70));return e}var Zh=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Qd({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(W.Fragment,{children:[l,c&&Bu.createPortal(n,c)]})}),Qh=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Ih().useState(`mounted`)||n?(0,G.jsx)(Yh.Provider,{value:n,children:(0,G.jsx)(Zh,{ref:t,...r})}):null}),$h=W.createContext(void 0);function eg(){let e=W.useContext($h);if(e===void 0)throw Error(an(71));return e}var tg=W.createContext(void 0);function ng(){return W.useContext(tg)?.direction??`ltr`}var rg=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Ml(e,t)||{};if(l==null)return{};let f=Yl(u),p={x:n,y:r},m=Ll(i),h=Il(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=jl(k,j,A),ee=!c.arrow&&Pl(i)!=null&&j!==M&&a.reference[h]/2-(j({...rg(e),options:[e,t]}),ag=kp().fn,og={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await ag(e)).data?.referenceHidden||a}}}},sg={sideX:`left`,sideY:`top`},cg={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=fr(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:sg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Wr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Nl(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:sg.sideX,g=f===`top`?`bottom`:sg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function lg(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function ug(e,t,n){let{rects:r,placement:i}=e;return{side:lg(t,Nl(i),n),align:Pl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function dg(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=W.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=Cr(D),k=D?O:t,A=wd(t),j=wd(h),M=ng()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=W.useRef(null),oe=wd(i),se=wd(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(wp(e=>{let t=ug(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:Dp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:Tp(e=>{let t=Wr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:Ep(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=X(Nl(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Op({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=fr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),ig(e=>({element:F.current||Wr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Nl(a),l=X(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(ug(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},og,y),V(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=W.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=bm({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>up(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||sg,De=Ce?n:`fixed`,Oe=W.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=W.useRef(null);V(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(fg(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),W.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&fg(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),W.useEffect(()=>{if(p&&h&&ge.reference&&ge.floating)return up(ge.reference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=Nl(xe),je=lg(r,Ae,M),Me=Pl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;V(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=W.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function fg(e){return e!=null&&`current`in e}function pg(e){return e===`starting`?Gd:Xt}function mg(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),en(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},pg(r),i],stateAttributesMapping:ld})}var hg=W.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=qd,style:g,..._}=e,v=Ih(),y=Xh(),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=dg({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:v.useState(`hasViewport`)?cg:void 0}),O=mg(e,W.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,G.jsx)($h.Provider,{value:D,children:O})}),gg={...ld,...zu},_g=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Ih(),{side:s,align:c}=eg(),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`);Hu({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Om(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return en(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,pg(d),a],stateAttributesMapping:gg})}),vg=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Ih(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=eg();return en(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:ld})}),yg=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=W.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=W.useMemo(()=>({open:t,close:n}),[t,n]);return(0,G.jsx)(Hh.Provider,{value:i,children:(0,G.jsx)(xd,{delay:a,timeoutMs:r,children:e.children})})};function bg(e){let t=(0,Ls.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,G.jsx)(yg,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function xg(e){let t=(0,Ls.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,G.jsx)(bg,{children:(0,G.jsx)(Bh,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function Sg(e){let t=(0,Ls.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,G.jsx)(Jh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Cg(e){let t=(0,Ls.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=Cn(`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,G.jsx)(vg,{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,G.jsxs)(_g,{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,G.jsx)(Qh,{children:(0,G.jsx)(hg,{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 wg=window.matchMedia(`(max-width: 767px)`);function Tg(e){return wg.addEventListener(`change`,e),()=>wg.removeEventListener(`change`,e)}function Eg(){return wg.matches}function Dg(){return(0,W.useSyncExternalStore)(Tg,Eg)}var Og=`sidebar_state`,kg=3600*24*7,Ag=`12rem`,jg=`16rem`,Mg=`3rem`,Ng=`b`,Pg=W.createContext(null);function Fg(){let e=W.useContext(Pg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ig(e){let t=(0,Ls.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?!0:c,u=Dg(),[d,f]=W.useState(!1),[p,m]=W.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=`${Og}=${t}; path=/; max-age=${kg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(Rg):_(Lg),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===Ng&&(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),W.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]===r?T=t[25]:(T=Cn(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":Ag,"--sidebar-width-icon":Mg,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,G.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,G.jsx)(Pg.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function Lg(e){return!e}function Rg(e){return!e}function zg(e){let t=(0,Ls.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}=Fg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=Cn(`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,G.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":jg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsxs)(Mh,{className:`sr-only`,children:[(0,G.jsx)(Nh,{children:`Sidebar`}),(0,G.jsx)(Ph,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,G.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,G.jsxs)(jh,{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,G.jsx)(Oh,{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]:(_=Cn(`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,G.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=Cn(`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,G.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,G.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,G.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 Bg(e){let t=(0,Ls.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}=Fg(),o;t[4]===n?o=t[5]:(o=Cn(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,G.jsx)(vc,{}),l=(0,G.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,G.jsxs)(wr,{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 Vg(e){let t=(0,Ls.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}=Fg(),a;t[3]===n?a=t[4]:(a=Cn(`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,G.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Hg(e){let t=(0,Ls.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=Cn(`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,G.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 Ug(e){let t=(0,Ls.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=Cn(`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,G.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 Wg(e){let t=(0,Ls.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=Cn(`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,G.jsx)(Xu,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Gg(e){let t=(0,Ls.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=Cn(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.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 Kg(e){let t=(0,Ls.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=Cn(`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,G.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 qg(e){let t=(0,Ls.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Hs,r=`div`,i=Qt({className:Cn(`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 Jg(e){let t=(0,Ls.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=Cn(`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,G.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 Yg(e){let t=(0,Ls.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=Cn(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.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 Xg=rn(`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 Zg(e){let t=(0,Ls.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Fg(),m=Qt({className:Cn(Xg({variant:u,size:d}),s)},c),h=o?Sg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=Hs(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,G.jsx)(Cg,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,G.jsxs)(xg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var Qg=class{async sign(e,t,n){return e}},$g=`ref`,e_=-1,t_=!0,n_=`isSet`,r_=`PartitionResult`,i_=`booleanEquals`,a_=`stringEquals`,o_=`getAttr`,s_=`us-east-1`,c_=`sigv4`,l_=`sts`,u_=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,d_={[$g]:`Endpoint`},f_={[$g]:`Region`},p_={[$g]:r_},m_={},h_=[f_],g_={conditions:[[n_,[d_]],[n_,h_],[`aws.partition`,h_,r_],[i_,[{[$g]:`UseFIPS`},t_]],[i_,[{[$g]:`UseDualStack`},t_]],[a_,[f_,`aws-global`]],[i_,[{[$g]:`UseGlobalEndpoint`},t_]],[a_,[f_,`eu-central-1`]],[i_,[{fn:o_,argv:[p_,`supportsDualStack`]},t_]],[i_,[{fn:o_,argv:[p_,`supportsFIPS`]},t_]],[a_,[f_,`ap-south-1`]],[a_,[f_,`eu-north-1`]],[a_,[f_,`eu-west-1`]],[a_,[f_,`eu-west-2`]],[a_,[f_,`eu-west-3`]],[a_,[f_,`sa-east-1`]],[a_,[f_,s_]],[a_,[f_,`us-east-2`]],[a_,[f_,`us-west-2`]],[a_,[f_,`us-west-1`]],[a_,[f_,`ca-central-1`]],[a_,[f_,`ap-southeast-1`]],[a_,[f_,`ap-northeast-1`]],[a_,[f_,`ap-southeast-2`]],[a_,[{fn:o_,argv:[p_,`name`]},`aws-us-gov`]]],results:[[e_],[`https://sts.amazonaws.com`,{authSchemes:[{name:c_,signingName:l_,signingRegion:s_}]}],[u_,{authSchemes:[{name:c_,signingName:l_,signingRegion:`{Region}`}]}],[e_,`Invalid Configuration: FIPS and custom endpoint are not supported`],[e_,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[d_,m_],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,m_],[e_,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,m_],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,m_],[e_,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,m_],[e_,`DualStack is enabled but this partition does not support DualStack`],[u_,m_],[e_,`Invalid Configuration: Missing Region`]]},__=2,v_=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),y_=qn.from(v_,__,g_.conditions,g_.results),b_=new Qn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),x_=(e,t={})=>b_.get(e,()=>Wn(y_,{endpointParams:e,logger:t.logger}));er.aws=mn;var S_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=hn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Kn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:hn(t).operation,region:await Tn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function C_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function w_(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function T_(e){return{schemeId:`smithy.api#noAuth`}}var E_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Fn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(x_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(T_(e)),t.push(w_(e));break;case`AssumeRoleWithWebIdentity`:t.push(T_(e)),t.push(w_(e));break;default:t.push(C_(e)),t.push(w_(e))}return t},{"aws.auth#sigv4":C_,"aws.auth#sigv4a":w_,"smithy.api#noAuth":T_}),D_=e=>{let t=Dn(fn(e));return Object.assign(t,{authSchemePreference:Tn(e.authSchemePreference??[])})},O_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),k_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},A_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1072.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.22`,"@aws-sdk/credential-provider-node":`^3.972.57`,"@aws-sdk/signature-v4-multi-region":`^3.996.35`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},j_=class e extends ir{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},M_=class e extends j_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},N_=class e extends j_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},P_=class e extends j_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},F_=class e extends j_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},I_=class e extends j_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},L_=class e extends j_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},R_=class e extends j_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},z_=class e extends j_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},B_=class e extends j_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},V_=class e extends j_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},H_=class e extends j_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},U_=class e extends j_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},W_=`Arn`,G_=`AccessKeyId`,K_=`Account`,q_=`Credentials`,J_=`DurationSeconds`,Y_=`Expiration`,X_=`ExpiredTokenException`,Z_=`ExpiredTradeInTokenException`,Q_=`GetCallerIdentity`,$_=`GetCallerIdentityRequest`,ev=`GetCallerIdentityResponse`,tv=`GetSessionToken`,nv=`GetSessionTokenRequest`,rv=`GetSessionTokenResponse`,iv=`InvalidAuthorizationMessageException`,av=`IDPCommunicationErrorException`,ov=`IDPRejectedClaimException`,sv=`InvalidIdentityTokenException`,cv=`JWTPayloadSizeExceededException`,lv=`MalformedPolicyDocumentException`,uv=`OutboundWebIdentityFederationDisabledException`,dv=`PackedPolicyTooLargeException`,fv=`RegionDisabledException`,pv=`SecretAccessKey`,mv=`SessionDurationEscalationException`,hv=`SerialNumber`,gv=`SessionToken`,_v=`TokenCode`,vv=`UserId`,yv=`accessKeySecretType`,bv=`awsQueryError`,xv=`client`,Sv=`error`,Cv=`httpError`,wv=`message`,Tv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Ev=`com.amazonaws.sts`,Dv=un.for(Tv),Ov=[-3,Tv,`STSServiceException`,0,[],[]];Dv.registerError(Ov,j_);var kv=un.for(Ev),Av=[-3,Ev,X_,{[bv]:[`ExpiredTokenException`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Av,M_);var jv=[-3,Ev,Z_,{[bv]:[`ExpiredTradeInTokenException`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(jv,B_);var Mv=[-3,Ev,av,{[bv]:[`IDPCommunicationError`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Mv,R_);var Nv=[-3,Ev,ov,{[bv]:[`IDPRejectedClaim`,403],[Sv]:xv,[Cv]:403},[wv],[0]];kv.registerError(Nv,I_);var Pv=[-3,Ev,iv,{[bv]:[`InvalidAuthorizationMessageException`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Pv,z_);var Fv=[-3,Ev,sv,{[bv]:[`InvalidIdentityToken`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Fv,L_);var Iv=[-3,Ev,cv,{[bv]:[`JWTPayloadSizeExceededException`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Iv,V_);var Lv=[-3,Ev,lv,{[bv]:[`MalformedPolicyDocument`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(Lv,N_);var Rv=[-3,Ev,uv,{[bv]:[`OutboundWebIdentityFederationDisabledException`,403],[Sv]:xv,[Cv]:403},[wv],[0]];kv.registerError(Rv,H_);var zv=[-3,Ev,dv,{[bv]:[`PackedPolicyTooLarge`,400],[Sv]:xv,[Cv]:400},[wv],[0]];kv.registerError(zv,P_);var Bv=[-3,Ev,fv,{[bv]:[`RegionDisabledException`,403],[Sv]:xv,[Cv]:403},[wv],[0]];kv.registerError(Bv,F_);var Vv=[-3,Ev,mv,{[bv]:[`SessionDurationEscalationException`,403],[Sv]:xv,[Cv]:403},[wv],[0]];kv.registerError(Vv,U_);var Hv=[Dv,kv],Uv=[0,Ev,yv,8,0],Wv=[3,Ev,q_,0,[G_,pv,gv,Y_],[0,[()=>Uv,0],0,4],4],Gv=[3,Ev,$_,0,[],[]],Kv=[3,Ev,ev,0,[vv,K_,W_],[0,0,0]],qv=[3,Ev,nv,0,[J_,hv,_v],[1,0,0]],Jv=[3,Ev,rv,0,[q_],[[()=>Wv,0]]],Yv=[9,Ev,Q_,0,()=>Gv,()=>Kv],Xv=[9,Ev,tv,0,()=>qv,()=>Jv],Zv=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Kr,base64Encoder:e?.base64Encoder??Jr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??x_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??E_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new sn},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Xn},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Qg}],logger:e?.logger??new Bn,protocol:e?.protocol??Gn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:Hv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Fn,urlParser:e?.urlParser??Yn,utf8Decoder:e?.utf8Decoder??Gr,utf8Encoder:e?.utf8Encoder??qr}),Qv=e=>{let t=En(e),n=()=>t().then(Vn),r=Zv(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Yr,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??vn({serviceId:r.serviceId,clientVersion:A_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Zn(`Region is missing`),requestHandler:Pn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Rn),sha256:e?.sha256??ln,streamCollector:e?.streamCollector??rr,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},$v=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ey=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ty=(e,t)=>{let n=Object.assign(Jn(e),nr(e),on(e),$v(e));return t.forEach(e=>e.configure(n)),Object.assign(e,wn(n),ar(n),Un(n),ey(n))},ny=class extends On{config;constructor(...[e]){let t=Qv(e||{});super(t),this.initConfig=t;let n=ty(D_(Hn(xn(kn(zn(Mn(O_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(pn(this.config)),this.middlewareStack.use(Sn(this.config)),this.middlewareStack.use(bn(this.config)),this.middlewareStack.use(jn(this.config)),this.middlewareStack.use(gn(this.config)),this.middlewareStack.use(Ln(this.config)),this.middlewareStack.use(In(this.config)),this.middlewareStack.use(_n(this.config,{httpAuthSchemeParametersProvider:S_,identityProviderConfigProvider:async e=>new or({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(cn(this.config))}destroy(){super.destroy()}},ry=class extends R.classBuilder().ep(k_).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(Yv).build(){},iy=class extends R.classBuilder().ep(k_).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(Xv).build(){},ay=`ap-southeast-2`,oy=9999,sy=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function cy(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function ly({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new An({method:`POST`,protocol:r,hostname:`localhost`,port:oy,path:`/`,headers:{host:`localhost:${oy}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new dn({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:ay,service:n,sha256:ln}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=cy(t,`Code`),r=cy(t,`Message`)??t;throw new sy(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var uy=`ap-southeast-2`,dy=`${window.location.protocol}//localhost:9999`,fy=43200;function py(e){e.middlewareStack.add(e=>async t=>(An.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function my(e){let t=new ny({endpoint:dy,region:uy,credentials:e});return py(t),t}function hy(){let e=tr();if(!e)throw Error(`AWS credentials not configured`);return my({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function gy(e){let t=(await my(e).send(new iy({DurationSeconds:fy}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var _y=`000000000001`;function vy(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var yy=(0,W.createContext)(void 0);function by({children:e}){let[t,n]=(0,W.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,W.useEffect)(()=>{async function e(){let e=tr();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await hy().send(new ry({})),r=t.Account??null,i=r===_y,a=null;if(i)try{a=await ly({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:vy(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,G.jsx)(yy,{value:t,children:e})}function xy(){let e=(0,W.useContext)(yy);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var Sy=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Cy(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&Sy.has(t)}var wy=class extends R.classBuilder().ep(Bt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(ft).build(){},Ty=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(it).build(){},Ey=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Ht).build(){},Dy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(Jt).build(){},Oy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(st).build(){},ky=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(He).build(){},Ay=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Kt).build(){},jy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(ye).build(){},My=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(Wt).build(){},Ny=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(We).build(){},Py=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(xe).build(){},Fy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(be).build(){},Iy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(Fe).build(){},Ly=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(wt).build(){},Ry=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(ve).build(){},zy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(xt).build(){},By=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(Me).build(){},Vy=class extends R.classBuilder().ep(Le).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(Ne).build(){},Hy=class extends R.classBuilder().ep(ze).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeImages`,{}).n(`ECRClient`,`DescribeImagesCommand`).sc(Pe).build(){},Uy=class extends R.classBuilder().ep(ze).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeRepositories`,{}).n(`ECRClient`,`DescribeRepositoriesCommand`).sc(Ct).build(){},Wy=class extends R.classBuilder().ep(ze).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetLifecyclePolicy`,{}).n(`ECRClient`,`GetLifecyclePolicyCommand`).sc(_e).build(){},Gy=class extends R.classBuilder().ep(ze).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetRepositoryPolicy`,{}).n(`ECRClient`,`GetRepositoryPolicyCommand`).sc(je).build(){},Ky=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeClusters`,{}).n(`ECSClient`,`DescribeClustersCommand`).sc(ut).build(){},qy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeContainerInstances`,{}).n(`ECSClient`,`DescribeContainerInstancesCommand`).sc(Et).build(){},Jy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeServices`,{}).n(`ECSClient`,`DescribeServicesCommand`).sc(Vt).build(){},Yy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeTaskDefinition`,{}).n(`ECSClient`,`DescribeTaskDefinitionCommand`).sc(dt).build(){},Xy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeTasks`,{}).n(`ECSClient`,`DescribeTasksCommand`).sc(mt).build(){},Zy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListClusters`,{}).n(`ECSClient`,`ListClustersCommand`).sc(Mt).build(){},Qy=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListContainerInstances`,{}).n(`ECSClient`,`ListContainerInstancesCommand`).sc(Dt).build(){},$y=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListServices`,{}).n(`ECSClient`,`ListServicesCommand`).sc(vt).build(){},eb=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListTaskDefinitions`,{}).n(`ECSClient`,`ListTaskDefinitionsCommand`).sc(gt).build(){},tb=class extends R.classBuilder().ep(Ve).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListTasks`,{}).n(`ECSClient`,`ListTasksCommand`).sc(rt).build(){},nb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(qe).build(){},rb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(Te).build(){},ib=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Ke).build(){},ab=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Ye).build(){},ob=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(Ce).build(){},sb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(Pt).build(){},cb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(Oe).build(){},lb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc($e).build(){},ub=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(Ze).build(){},db=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(tt).build(){},fb=class extends R.classBuilder().ep(At).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(Re).build(){},pb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(Ot).build(){},mb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(yt).build(){},hb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(_t).build(){},gb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(at).build(){},_b=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(Ut).build(){},vb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(Yt).build(){},yb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(ct).build(){},bb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(qt).build(){},xb=class extends R.classBuilder().ep(St).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(Ue).build(){},Sb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(we).build(){},Cb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(Ge).build(){},wb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Je).build(){},Tb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(Se).build(){},Eb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(ke).build(){},Db=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(Nt).build(){},Ob=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(De).build(){},kb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(Qe).build(){},Ab=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(Xe).build(){},jb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(et).build(){},Mb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(Ie).build(){},Nb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(ge).build(){},Pb=class extends R.classBuilder().ep(Lt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(pt).build(){},Fb=class extends R.classBuilder().ep(Gt).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions()),Be(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(ht).build(){},Ib=class extends R.classBuilder().ep({...Gt,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[B(n,e.getEndpointParameterInstructions()),Be(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(nt).build(){},Lb=!1;function Rb(e,t){Lb||!Cy(e)||(Lb=!0,$n(),zt(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function zb(){let e=new Xi({queryCache:new Yi({onError:t=>Rb(t,e)}),mutationCache:new qi({onError:t=>Rb(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Bb(){let e=(0,Ls.c)(8),{theme:t,setTheme:n}=Vs(),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,G.jsx)(wc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,G.jsx)(hc,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,G.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,G.jsxs)(wr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Vb(){let e=(0,Ls.c)(7),{isAdmin:t,license:n}=xy(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=Cn(`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,G.jsx)(Bg,{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,G.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:Cn(br({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Bb,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,G.jsxs)(`header`,{className:i,children:[a,(0,G.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function Hb(){let e=(0,Ls.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,G.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,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,G.jsx)(L,{to:`/`,children:(0,G.jsx)(wr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function Ub(){let e=(0,Ls.c)(210),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Wb},e[0]=t):t=e[0];let n=Ds(t),r=es(),i=Qi(),{isAdmin:a}=xy(),o;e[1]!==r||e[2]!==i?(o=function(){$n(),zt(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsxs)(Hg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,G.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,G.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(qg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(sc,{className:`size-4`}),f=(0,G.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/`,children:(0,G.jsxs)(Zg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/nodes`,children:(0,G.jsxs)(Zg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,G.jsx)(xc,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,G.jsxs)(Kg,{children:[l,(0,G.jsxs)(Jg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,G.jsx)(qg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,G.jsx)(xc,{className:`size-4`}),y=(0,G.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-instances`,children:(0,G.jsxs)(Zg,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,G.jsx)(lc,{className:`size-4`}),C=(0,G.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-images`,children:(0,G.jsxs)(Zg,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,G.jsx)(uc,{className:`size-4`}),D=(0,G.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-key-pairs`,children:(0,G.jsxs)(Zg,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,G.jsx)(mc,{className:`size-4`}),j=(0,G.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-addresses`,children:(0,G.jsxs)(Zg,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,G.jsx)(oc,{className:`size-4`}),P=(0,G.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-volumes`,children:(0,G.jsxs)(Zg,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,G.jsx)(tc,{className:`size-4`}),ie=(0,G.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-snapshots`,children:(0,G.jsxs)(Zg,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,G.jsx)(dc,{className:`size-4`}),se=(0,G.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-placement-groups`,children:(0,G.jsxs)(Zg,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,G.jsx)(Dc,{className:`size-4`}),ue=(0,G.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-load-balancers`,children:(0,G.jsxs)(Zg,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,G.jsx)(ic,{className:`size-4`}),me=(0,G.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-target-groups`,children:(0,G.jsxs)(Zg,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,G.jsxs)(Kg,{children:[g,(0,G.jsxs)(Jg,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,G.jsx)(qg,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,G.jsx)(gc,{className:`size-4`}),be=(0,G.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-vpcs`,children:(0,G.jsxs)(Zg,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,G.jsx)(fc,{className:`size-4`}),we=(0,G.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-subnets`,children:(0,G.jsxs)(Zg,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,G.jsx)(Sc,{className:`size-4`}),Oe=(0,G.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-security-groups`,children:(0,G.jsxs)(Zg,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,G.jsx)(yc,{className:`size-4`}),Me=(0,G.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-route-tables`,children:(0,G.jsxs)(Zg,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,G.jsx)(ac,{className:`size-4`}),Ie=(0,G.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-internet-gateways`,children:(0,G.jsxs)(Zg,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,G.jsx)(bc,{className:`size-4`}),Be=(0,G.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ec2/describe-nat-gateways`,children:(0,G.jsxs)(Zg,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,G.jsxs)(Kg,{children:[_e,(0,G.jsxs)(Jg,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,G.jsx)(qg,{children:`Containers`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,G.jsx)(ec,{className:`size-4`}),Ke=(0,G.jsx)(`span`,{children:`EKS`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/eks/list-clusters`,children:(0,G.jsxs)(Zg,{isActive:We,tooltip:`EKS clusters`,children:[Ge,Ke]})})}),e[130]=We,e[131]=qe);let Je;e[132]===n?Je=e[133]:(Je=n.startsWith(`/ecr/list-repositories`),e[132]=n,e[133]=Je);let Ye,Xe;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,G.jsx)(_c,{className:`size-4`}),Xe=(0,G.jsx)(`span`,{children:`ECR`}),e[134]=Ye,e[135]=Xe):(Ye=e[134],Xe=e[135]);let Ze;e[136]===Je?Ze=e[137]:(Ze=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ecr/list-repositories`,children:(0,G.jsxs)(Zg,{isActive:Je,tooltip:`ECR repositories`,children:[Ye,Xe]})})}),e[136]=Je,e[137]=Ze);let Qe;e[138]===n?Qe=e[139]:(Qe=n.startsWith(`/ecs/`),e[138]=n,e[139]=Qe);let $e,et;e[140]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,G.jsx)(rc,{className:`size-4`}),et=(0,G.jsx)(`span`,{children:`ECS`}),e[140]=$e,e[141]=et):($e=e[140],et=e[141]);let tt;e[142]===Qe?tt=e[143]:(tt=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/ecs/list-clusters`,children:(0,G.jsxs)(Zg,{isActive:Qe,tooltip:`ECS clusters`,children:[$e,et]})})}),e[142]=Qe,e[143]=tt);let nt;e[144]!==qe||e[145]!==Ze||e[146]!==tt?(nt=(0,G.jsxs)(Kg,{children:[Ue,(0,G.jsxs)(Jg,{children:[qe,Ze,tt]})]}),e[144]=qe,e[145]=Ze,e[146]=tt,e[147]=nt):nt=e[147];let rt;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(rt=(0,G.jsx)(qg,{children:`IAM`}),e[148]=rt):rt=e[148];let it;e[149]===n?it=e[150]:(it=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[149]=n,e[150]=it);let at,ot;e[151]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,G.jsx)(Ec,{className:`size-4`}),ot=(0,G.jsx)(`span`,{children:`Users`}),e[151]=at,e[152]=ot):(at=e[151],ot=e[152]);let st;e[153]===it?st=e[154]:(st=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/iam/list-users`,children:(0,G.jsxs)(Zg,{isActive:it,tooltip:`Users`,children:[at,ot]})})}),e[153]=it,e[154]=st);let ct;e[155]===n?ct=e[156]:(ct=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[155]=n,e[156]=ct);let lt,ut;e[157]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,G.jsx)(Cc,{className:`size-4`}),ut=(0,G.jsx)(`span`,{children:`Policies`}),e[157]=lt,e[158]=ut):(lt=e[157],ut=e[158]);let dt;e[159]===ct?dt=e[160]:(dt=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/iam/list-policies`,children:(0,G.jsxs)(Zg,{isActive:ct,tooltip:`Policies`,children:[lt,ut]})})}),e[159]=ct,e[160]=dt);let ft;e[161]===n?ft=e[162]:(ft=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[161]=n,e[162]=ft);let pt,mt;e[163]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,G.jsx)(Tc,{className:`size-4`}),mt=(0,G.jsx)(`span`,{children:`Roles`}),e[163]=pt,e[164]=mt):(pt=e[163],mt=e[164]);let ht;e[165]===ft?ht=e[166]:(ht=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/iam/list-roles`,children:(0,G.jsxs)(Zg,{isActive:ft,tooltip:`Roles`,children:[pt,mt]})})}),e[165]=ft,e[166]=ht);let gt;e[167]===n?gt=e[168]:(gt=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[167]=n,e[168]=gt);let _t,vt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,G.jsx)(cc,{className:`size-4`}),vt=(0,G.jsx)(`span`,{children:`Instance Profiles`}),e[169]=_t,e[170]=vt):(_t=e[169],vt=e[170]);let yt;e[171]===gt?yt=e[172]:(yt=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/iam/list-instance-profiles`,children:(0,G.jsxs)(Zg,{isActive:gt,tooltip:`Instance Profiles`,children:[_t,vt]})})}),e[171]=gt,e[172]=yt);let bt;e[173]!==ht||e[174]!==yt||e[175]!==st||e[176]!==dt?(bt=(0,G.jsxs)(Kg,{children:[rt,(0,G.jsxs)(Jg,{children:[st,dt,ht,yt]})]}),e[173]=ht,e[174]=yt,e[175]=st,e[176]=dt,e[177]=bt):bt=e[177];let xt;e[178]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,G.jsx)(qg,{children:`S3`}),e[178]=xt):xt=e[178];let St;e[179]===n?St=e[180]:(St=n.startsWith(`/s3/ls`),e[179]=n,e[180]=St);let Ct,wt;e[181]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,G.jsx)(xc,{className:`size-4`}),wt=(0,G.jsx)(`span`,{children:`Buckets`}),e[181]=Ct,e[182]=wt):(Ct=e[181],wt=e[182]);let Tt;e[183]===St?Tt=e[184]:(Tt=(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/s3/ls`,children:(0,G.jsxs)(Zg,{isActive:St,tooltip:`Buckets`,children:[Ct,wt]})})}),e[183]=St,e[184]=Tt);let Et;e[185]!==a||e[186]!==n?(Et=a&&(0,G.jsx)(Yg,{children:(0,G.jsx)(L,{to:`/s3/service-metrics`,children:(0,G.jsxs)(Zg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,G.jsx)(Qs,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Service Metrics`})]})})}),e[185]=a,e[186]=n,e[187]=Et):Et=e[187];let Dt;e[188]!==Tt||e[189]!==Et?(Dt=(0,G.jsxs)(Kg,{children:[xt,(0,G.jsxs)(Jg,{children:[Tt,Et]})]}),e[188]=Tt,e[189]=Et,e[190]=Dt):Dt=e[190];let Ot;e[191]===a?Ot=e[192]:(Ot=a&&(0,G.jsxs)(Kg,{children:[(0,G.jsx)(qg,{children:`Documentation`}),(0,G.jsx)(Jg,{children:(0,G.jsx)(Yg,{children:(0,G.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,G.jsxs)(Zg,{tooltip:`Documentation`,children:[(0,G.jsx)($s,{className:`size-4`}),(0,G.jsx)(`span`,{children:`Docs`})]})})})})]}),e[191]=a,e[192]=Ot);let kt;e[193]!==bt||e[194]!==Dt||e[195]!==Ot||e[196]!==ge||e[197]!==He||e[198]!==nt||e[199]!==h?(kt=(0,G.jsxs)(Gg,{children:[h,ge,He,nt,bt,Dt,Ot]}),e[193]=bt,e[194]=Dt,e[195]=Ot,e[196]=ge,e[197]=He,e[198]=nt,e[199]=h,e[200]=kt):kt=e[200];let At;e[201]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,G.jsx)(Wg,{className:`mx-0 w-full`}),e[201]=At):At=e[201];let jt,Mt;e[202]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,G.jsx)(pc,{className:`size-4`}),Mt=(0,G.jsx)(`span`,{children:`Sign out`}),e[202]=jt,e[203]=Mt):(jt=e[202],Mt=e[203]);let Nt;e[204]===s?Nt=e[205]:(Nt=(0,G.jsxs)(Ug,{children:[At,(0,G.jsx)(Jg,{children:(0,G.jsx)(Yg,{children:(0,G.jsxs)(Zg,{onClick:s,tooltip:`Sign out`,children:[jt,Mt]})})})]}),e[204]=s,e[205]=Nt);let Pt;e[206]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,G.jsx)(Vg,{}),e[206]=Pt):Pt=e[206];let Ft;return e[207]!==kt||e[208]!==Nt?(Ft=(0,G.jsxs)(zg,{collapsible:`icon`,children:[c,kt,Nt,Pt]}),e[207]=kt,e[208]=Nt,e[209]=Ft):Ft=e[209],Ft}function Wb(e){return e.pathname}function Gb(e){let t=(0,Ls.c)(18),{error:n,reset:r}=e,i=M(),a=Qi(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(Ub,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(Vb,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,G.jsx)(`div`,{className:`flex justify-center`,children:(0,G.jsx)(nc,{className:`size-12 text-destructive`})}),d=(0,G.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,G.jsx)(wr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,G.jsx)(L,{to:`/`,children:(0,G.jsx)(wr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,G.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,G.jsxs)(G.Fragment,{children:[c,(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,G.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,G.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var Kb=is()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ms,{}),(0,G.jsx)(Ub,{}),(0,G.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,G.jsx)(Vb,{}),(0,G.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,G.jsx)(vs,{})})]})]}),errorComponent:Gb,notFoundComponent:Hb}),qb=q(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(tr())throw me({to:`/`})},component:J(()=>z(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),Jb=q(`/_auth`)({beforeLoad:()=>{if(!tr())throw me({to:`/login`})},component:J(()=>z(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),Yb=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new Ey({});return await Ft().send(e)},staleTime:3e5}),Xb=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new ky({});return await Ft().send(e)},refetchInterval:5e3}),Zb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new ky({InstanceIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),Qb=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new Dy({Filters:[{Name:`instance-id`,Values:[e]}]});return await Ft().send(t)},refetchInterval:5e3}),$b=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Ay({Filters:[{Name:`capacity`,Values:[`true`]}]});return await Ft().send(e)},refetchInterval:5e3}),ex=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new Oy({});return await Ft().send(e)}}),tx=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new Oy({ImageIds:[e]});return await Ft().send(t)}}),nx=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new My({});return await Ft().send(e)}}),rx=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new My({KeyPairIds:[e]});return await Ft().send(t)}}),ix=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Fy({});return await Ft().send(e)},staleTime:3e5}),ax=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new zy({});return await Ft().send(e)}}),ox=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new zy({SubnetIds:[e]});return await Ft().send(t)}}),sx=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new Ry({});return await Ft().send(e)},refetchInterval:5e3}),cx=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new Ry({SnapshotIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),lx=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new jy({});return await Ft().send(e)},refetchInterval:5e3}),ux=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new jy({InternetGatewayIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),dx=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new Iy({});return await Ft().send(e)},refetchInterval:5e3}),fx=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new Iy({RouteTableIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),px=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new Vy({});return await Ft().send(e)}}),mx=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new Vy({VpcIds:[e]});return await Ft().send(t)}}),hx=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new Py({});return await Ft().send(e)}}),gx=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new Py({GroupIds:[e]});return await Ft().send(t)}}),_x=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new Ly({});return await Ft().send(e)}}),vx=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new Ly({GroupIds:[e]});return await Ft().send(t)}}),yx=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new Ty({});return await Ft().send(e)},refetchInterval:5e3}),bx=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new Ty({AllocationIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),xx=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new Ny({});return await Ft().send(e)},refetchInterval:5e3}),Sx=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new Ny({NatGatewayIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),Cx=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new By({});return await Ft().send(e)},refetchInterval:5e3}),wx=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new By({VolumeIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),Tx=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new Fb({});return await Tt().send(e)}}),Ex=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new Ib({Bucket:e,Prefix:t,Delimiter:`/`});return await Tt().send(n)}}),Dx=q(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Xb),e.queryClient.ensureQueryData(Cx),e.queryClient.ensureQueryData(px),e.queryClient.ensureQueryData(nx),e.queryClient.ensureQueryData(Tx),e.queryClient.ensureQueryData(_x),e.queryClient.ensureQueryData(xx),e.queryClient.ensureQueryData(yx),e.queryClient.ensureQueryData(lx)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:J(()=>z(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,4,5,6,16,17,18,19,20,21,22,8,12,23,24])),`component`)}),Ox=q(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:J(()=>z(()=>import(`./nodes.js`),__vite__mapDeps([25,1,2,3,16,17,26,20,22,8,12,23,24])),`component`)}),kx=q(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,2,3,8,12,23,24])),`component`)}),Ax=q(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Tx)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./ls.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),jx=q(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,2,3,32,5,4,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13])),`component`)}),Mx=q(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-user.js`),__vite__mapDeps([41,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),Nx=q(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-role.js`),__vite__mapDeps([45,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),Px=q(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-policy.js`),__vite__mapDeps([48,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),Fx=q(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./create-instance-profile.js`),__vite__mapDeps([49,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),Ix=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new Pb({});return await lt().send(e)},staleTime:3e5}),Lx=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Eb({UserName:e});return await lt().send(t)},staleTime:3e5}),Rx=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new Db({UserName:e});return await lt().send(t)},staleTime:3e5}),zx=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new Mb({Scope:`Local`});return await lt().send(e)},staleTime:3e5}),Bx=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Cb({PolicyArn:e});return await lt().send(t)},staleTime:3e5}),Vx=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new wb({PolicyArn:e,VersionId:t});return await lt().send(n)},staleTime:3e5}),Hx=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new kb({UserName:e});return await lt().send(t)},staleTime:3e5}),Ux=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new Nb({});return await lt().send(e)},staleTime:3e5}),Wx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new Tb({RoleName:e});return await lt().send(t)},staleTime:3e5}),Gx=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new Ob({RoleName:e});return await lt().send(t)},staleTime:3e5}),Kx=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Ab({});return await lt().send(e)},staleTime:3e5}),qx=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Sb({InstanceProfileName:e});return await lt().send(t)},staleTime:3e5}),Jx=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new jb({RoleName:e});return await lt().send(t)},staleTime:3e5}),Yx=q(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(px),e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(Ux),e.queryClient.ensureQueryData(ex)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./create-cluster.js`),__vite__mapDeps([50,1,2,3,51,4,5,6,33,44,52,42,53,7,8,54,55,10,36,18,11,29,17,34,37,56,57,39,40,20,13,38,58,59])),`component`)}),Xx=3e4,Zx=15e3,Qx=a({queryKey:[`ecs`,`clusters`],queryFn:async()=>{let e=ot(),t=(await e.send(new Zy({}))).clusterArns??[];return t.length===0?[]:(await e.send(new Ky({clusters:t}))).clusters??[]},staleTime:Xx}),$x=e=>a({queryKey:[`ecs`,`clusters`,e],queryFn:async()=>(await ot().send(new Ky({clusters:[e]}))).clusters?.[0]??null,staleTime:Xx}),eS=e=>a({queryKey:[`ecs`,`clusters`,e,`services`],queryFn:async()=>{let t=ot(),n=(await t.send(new $y({cluster:e}))).serviceArns??[];return n.length===0?[]:(await t.send(new Jy({cluster:e,services:n}))).services??[]},staleTime:Xx}),tS=e=>a({queryKey:[`ecs`,`clusters`,e,`tasks`],queryFn:async()=>{let t=ot(),n=(await t.send(new tb({cluster:e}))).taskArns??[];return n.length===0?[]:(await t.send(new Xy({cluster:e,tasks:n}))).tasks??[]},staleTime:Zx}),nS=e=>a({queryKey:[`ecs`,`clusters`,e,`container-instances`],queryFn:async()=>{let t=ot(),n=(await t.send(new Qy({cluster:e}))).containerInstanceArns??[];return n.length===0?[]:(await t.send(new qy({cluster:e,containerInstances:n}))).containerInstances??[]},staleTime:Xx}),rS=a({queryKey:[`ecs`,`task-definitions`],queryFn:async()=>(await ot().send(new eb({}))).taskDefinitionArns??[],staleTime:Xx}),iS=e=>a({queryKey:[`ecs`,`task-definitions`,e],queryFn:async()=>(await ot().send(new Yy({taskDefinition:e}))).taskDefinition,enabled:e!==``,staleTime:Xx}),aS=q(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(rS)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./task-definitions.js`),__vite__mapDeps([60,1,4,2,3,5,6,61,33,7,8,29,17,62,53,39,20,63])),`component`)}),oS=q(`/_auth/ecs/(clusters)/run-task`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(rS),e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(_x)])},head:()=>({meta:[{title:`Run Task | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./run-task.js`),__vite__mapDeps([64,1,61,2,3,4,5,6,33,54,7,8,55,10,36,18,11,16,17,29,34,39,40,20,13,65])),`component`)}),sS=q(`/_auth/ecs/(clusters)/register-task-definition`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),head:()=>({meta:[{title:`Register Task Definition | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./register-task-definition.js`),__vite__mapDeps([66,1,61,2,3,4,5,6,33,7,8,54,55,10,36,18,11,34,67,68,39,40,20,13,65])),`component`)}),cS=5e3,lS=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new hb({});return await Rt().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?cS:!1}),uS=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new hb({LoadBalancerArns:[e]});return await Rt().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?cS:!1}),dS=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new mb({LoadBalancerArn:e});return await Rt().send(t)}}),fS=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new bb({});return await Rt().send(e)}}),pS=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new bb({TargetGroupArns:[e]});return await Rt().send(t)}}),mS=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new yb({TargetGroupArn:e});return await Rt().send(t)}}),hS=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new pb({LoadBalancerArn:e});return await Rt().send(t)}}),gS=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new gb({ListenerArn:e});return await Rt().send(t)}}),_S=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new xb({TargetGroupArn:e});return await Rt().send(t)}}),vS=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new _b({});return await Rt().send(e)},staleTime:1/0}),yS=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new vb({ResourceArns:e});return await Rt().send(t)},enabled:e.length>0}),bS=q(`/_auth/ecs/(clusters)/create-service`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(rS),e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(_x),e.queryClient.ensureQueryData(fS)])},head:()=>({meta:[{title:`Create Service | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./create-service.js`),__vite__mapDeps([69,1,61,2,3,4,5,6,33,54,7,8,55,10,36,18,11,16,17,29,34,39,40,20,13,65])),`component`)}),xS=q(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-vpc.js`),__vite__mapDeps([70,1,71,2,3,4,5,6,33,52,7,8,54,55,10,36,18,11,34,19,35,37,38,39,40,20,13,72])),`component`)}),SS=q(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Yb)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-volume.js`),__vite__mapDeps([73,1,71,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,72])),`component`)}),CS=q(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(px)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-target-group.js`),__vite__mapDeps([74,1,75,2,3,4,5,6,33,11,29,17,34,35,7,8,36,18,37,38,76,9,10,54,55,67,68,13,39,40,20,77])),`component`)}),wS=q(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(px),e.queryClient.ensureQueryData(Yb)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-subnet.js`),__vite__mapDeps([78,1,2,3,71,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,72])),`component`)}),TS=q(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Cx)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-snapshot.js`),__vite__mapDeps([79,1,71,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,47,72])),`component`)}),ES=q(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(px)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-security-group.js`),__vite__mapDeps([80,1,2,3,71,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,72])),`component`)}),DS=q(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(px)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-route-table.js`),__vite__mapDeps([81,1,2,3,71,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,39,40,20,13,72])),`component`)}),OS=q(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-placement-group.js`),__vite__mapDeps([82,1,71,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,34,35,37,38,39,40,20,13,72])),`component`)}),kS=q(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(yx)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([83,1,2,3,4,5,6,71,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,72])),`component`)}),AS=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new wy({});return await kt().send(e)}}),jS=q(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(px),e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(_x),e.queryClient.ensureQueryData(fS),e.queryClient.ensureQueryData(AS),e.queryClient.ensureQueryData(vS)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-load-balancer.js`),__vite__mapDeps([84,1,2,3,85,4,5,6,53,7,8,33,39,13,47,75,54,55,10,36,18,11,29,17,34,67,35,37,38,68,76,9,40,20,77])),`component`)}),MS=q(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./import-key-pair.js`),__vite__mapDeps([86,1,71,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,47,72])),`component`)}),NS=q(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-key-pair.js`),__vite__mapDeps([87,1,71,2,3,4,5,6,33,52,53,7,8,11,34,36,88,35,18,37,38,57,39,40,20,13,72])),`component`)}),PS=q(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([89,1,71,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,72])),`component`)}),FS=q(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ex),e.queryClient.ensureQueryData(nx),e.queryClient.ensureQueryData($b),e.queryClient.ensureQueryData(ax),e.queryClient.ensureQueryData(hx),e.queryClient.ensureQueryData(px),e.queryClient.ensureQueryData(_x)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./run-instances.js`),__vite__mapDeps([90,1,2,3,71,4,5,6,33,52,7,8,9,10,54,55,36,18,11,29,17,34,35,37,38,39,20,13,72])),`component`)}),IS=q(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./allocate-address.js`),__vite__mapDeps([91,1,71,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,72])),`component`)}),LS=q(`/_auth/s3/ls/$bucket`)({component:J(()=>z(()=>import(`./route2.js`),__vite__mapDeps([92,1])),`component`)}),RS=q(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ex(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./_bucket.js`),__vite__mapDeps([93,1,2,3,32,5,4,6,33,94,7,8,88,68,62,53,39,29,17,34,20])),`component`)}),zS=q(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ix)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-users.js`),__vite__mapDeps([95,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),BS=q(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ux)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-roles.js`),__vite__mapDeps([96,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),VS=q(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zx)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-policies.js`),__vite__mapDeps([97,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),HS=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Kx)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([98,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),US=3e4,WS=3e5,GS=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new db({});return await jt().send(e)},staleTime:US}),KS=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new ab({name:e});return await jt().send(t)},staleTime:US}),qS=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new fb({clusterName:e});return await jt().send(t)},staleTime:US}),JS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new ob({clusterName:e,nodegroupName:t});return await jt().send(n)},staleTime:US}),YS=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new sb({clusterName:e});return await jt().send(t)},staleTime:US}),XS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new nb({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:US}),ZS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new ub({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:US});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new cb({});return await jt().send(e)},staleTime:WS});var QS=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new ib({});return await jt().send(e)},staleTime:WS}),$S=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new lb({clusterName:e});return await jt().send(t)},staleTime:US}),eC=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new rb({clusterName:e,addonName:t});return await jt().send(n)},staleTime:US}),tC=q(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(GS)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./list-clusters2.js`),__vite__mapDeps([99,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),nC=q(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Qx),e.queryClient.ensureQueryData(ex)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./list-clusters.js`),__vite__mapDeps([100,1,4,2,3,5,6,61,33,53,7,8,29,17,36,37,56,57,62,39,20,21,13,38,58,63])),`component`)}),rC=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new Uy({});return await bt().send(e)}}),iC=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new Hy({repositoryName:e});return await bt().send(t)}}),aC=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new Gy({repositoryName:e});return(await bt().send(t)).policyText??null}catch(e){if(e instanceof Ae)return null;throw e}}}),oC=e=>a({queryKey:[`ecr`,`repositories`,e,`lifecycle`],queryFn:async()=>{try{let t=new Wy({repositoryName:e});return(await bt().send(t)).lifecyclePolicyText??null}catch(e){if(e instanceof Ee)return null;throw e}}}),sC=q(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(rC)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:J(()=>z(()=>import(`./list-repositories.js`),__vite__mapDeps([101,1,2,3,4,5,6,102,33,53,7,8,29,17,20,13])),`component`)}),cC=q(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(px)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-vpcs.js`),__vite__mapDeps([103,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),lC=q(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Cx)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-volumes.js`),__vite__mapDeps([104,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),uC=q(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fS)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-target-groups.js`),__vite__mapDeps([105,1,4,2,3,5,6,7,8,16,17,29,20])),`component`)}),dC=q(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ax)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-subnets.js`),__vite__mapDeps([106,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),fC=q(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sx)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-snapshots.js`),__vite__mapDeps([107,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),pC=q(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_x)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-security-groups.js`),__vite__mapDeps([108,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),mC=q(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dx)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-route-tables.js`),__vite__mapDeps([109,1,2,3,4,5,6,7,8,29,17,30,20,22])),`component`)}),hC=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(hx)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([110,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),gC=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(xx)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([111,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),_C=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(lS)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([112,1,2,3,4,5,6,7,8,29,17,20,21])),`component`)}),vC=q(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(nx)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([113,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),yC=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(lx)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([114,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),bC=q(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Xb)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-instances.js`),__vite__mapDeps([115,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),xC=q(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ex)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-images.js`),__vite__mapDeps([116,1,29,17,30,4,2,3,5,6,20,21,58])),`component`)}),SC=q(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yx)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./describe-addresses.js`),__vite__mapDeps([117,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),CC=q(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=Nn(t._splat??``);await e.queryClient.ensureQueryData(Ex(t.bucket,n))},head:({params:e})=>({meta:[{title:`${yn(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:J(()=>z(()=>import(`./_.js`),__vite__mapDeps([118,1,2,3,32,5,4,6,33,94,7,8,88,68,62,53,39,29,17,34])),`component`)}),wC=q(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Lx(t.userName)),e.queryClient.ensureQueryData(Rx(t.userName)),e.queryClient.ensureQueryData(Hx(t.userName)),e.queryClient.ensureQueryData(zx)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_userName.js`),__vite__mapDeps([119,1,2,3,42,4,5,6,33,53,7,8,29,17,34,36,68,57,62,120,39,20,21,38])),`component`)}),TC=q(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Wx(t.roleName)),e.queryClient.ensureQueryData(Gx(t.roleName)),e.queryClient.ensureQueryData(Jx(t.roleName)),e.queryClient.ensureQueryData(zx)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_roleName.js`),__vite__mapDeps([121,1,2,3,4,5,6,42,33,7,8,29,17,34,68,62,53,120,39,20,59])),`component`)}),EC=q(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Bx(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(Vx(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_policyArn.js`),__vite__mapDeps([122,1,2,3,42,4,5,6,33,7,8,29,17,34,68,62,53,120,39,20,59])),`component`)}),DC=q(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(qx(t.instanceProfileName)),e.queryClient.ensureQueryData(Ux)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:J(()=>z(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([123,1,2,3,4,5,6,42,33,7,8,29,17,34,68,62,53,120,39,20])),`component`)}),OC=q(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(KS(t.clusterName)),e.queryClient.ensureQueryData(qS(t.clusterName)),e.queryClient.ensureQueryData(YS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:J(()=>z(()=>import(`./_clusterName2.js`),__vite__mapDeps([124,1,2,3,4,5,6,51,33,44,52,53,7,8,125,55,10,11,16,17,29,34,35,36,18,37,38,68,62,120,39,20,22,13,46,47])),`component`)}),kC=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData($x(t.clusterName)),e.queryClient.ensureQueryData(eS(t.clusterName)),e.queryClient.ensureQueryData(tS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./_clusterName.js`),__vite__mapDeps([126,1,4,2,3,5,6,61,33,53,7,8,125,55,10,16,17,29,34,68,62,120,39,20,21,13])),`component`)}),AC=q(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(rC),e.queryClient.ensureQueryData(iC(n)),e.queryClient.ensureQueryData(aC(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:J(()=>z(()=>import(`./_id17.js`),__vite__mapDeps([127,1,2,3,4,5,6,102,33,53,7,8,125,55,10,29,17,20,22,46,47,44])),`component`)}),jC=q(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(mx(t.id)),e.queryClient.ensureQueryData(ax)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:J(()=>z(()=>import(`./_id16.js`),__vite__mapDeps([128,1,2,3,4,5,6,71,33,52,7,8,29,17,34,68,62,53,120,39,20,21])),`component`)}),MC=q(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(wx(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id15.js`),__vite__mapDeps([129,1,71,2,3,4,5,6,33,52,11,29,17,34,39,40,7,8,20,13,72])),`component`)}),NC=q(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(wx(t.id)),e.queryClient.ensureQueryData(Xb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id14.js`),__vite__mapDeps([130,1,2,3,4,5,6,71,33,52,53,7,8,54,55,10,36,18,29,17,34,68,62,120,39,20,21,13])),`component`)}),PC=q(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(pS(n)),e.queryClient.ensureQueryData(mS(n)),e.queryClient.ensureQueryData(yS([n])),e.queryClient.ensureQueryData(Xb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:J(()=>z(()=>import(`./_id13.js`),__vite__mapDeps([131,1,2,3,75,4,5,6,33,53,7,8,125,55,10,16,17,29,34,68,62,120,132,54,36,18,67,13,39,20])),`component`)}),FC=q(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(ox(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:J(()=>z(()=>import(`./_id12.js`),__vite__mapDeps([133,1,2,3,4,5,6,71,33,52,7,8,29,17,34,68,62,53,120,39,20,21])),`component`)}),IC=q(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(cx(t.id)),e.queryClient.ensureQueryData(ix)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id11.js`),__vite__mapDeps([134,1,2,3,4,5,6,71,33,52,53,7,8,29,17,34,37,68,62,120,39,20,21,13])),`component`)}),LC=q(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(vx(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:J(()=>z(()=>import(`./_id10.js`),__vite__mapDeps([135,1,4,2,3,5,6,71,33,52,53,7,8,54,55,10,36,18,11,29,17,34,67,68,62,120,39,20,13,72])),`component`)}),RC=q(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(fx(t.id)),e.queryClient.ensureQueryData(lx),e.queryClient.ensureQueryData(xx),e.queryClient.ensureQueryData(ax)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:J(()=>z(()=>import(`./_id9.js`),__vite__mapDeps([136,1,2,3,4,5,6,71,33,52,7,8,54,55,10,36,18,11,29,17,34,68,62,53,120,39,20,22,13,72])),`component`)}),zC=q(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(gx(t.id)),e.queryClient.ensureQueryData(Xb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id8.js`),__vite__mapDeps([137,1,4,2,3,5,6,71,33,52,7,8,29,17,34,68,62,53,120,39,20,21])),`component`)}),BC=q(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Sx(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:J(()=>z(()=>import(`./_id7.js`),__vite__mapDeps([138,1,2,3,4,5,6,71,33,52,7,8,29,17,34,68,62,53,120,39,20,21])),`component`)}),VC=q(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(uS(n)),e.queryClient.ensureQueryData(hS(n)),e.queryClient.ensureQueryData(dS(n)),e.queryClient.ensureQueryData(yS([n])),e.queryClient.ensureQueryData(fS),e.queryClient.ensureQueryData(ax)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:J(()=>z(()=>import(`./_id6.js`),__vite__mapDeps([139,1,2,3,85,4,5,6,53,7,8,33,39,13,47,75,54,55,10,36,18,125,11,29,17,34,68,62,120,132,67,20,21,77])),`component`)}),HC=q(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(rx(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id5.js`),__vite__mapDeps([140,1,2,3,71,4,5,6,33,52,7,8,29,17,34,68,62,53,120,39,20])),`component`)}),UC=q(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ux(t.id)),e.queryClient.ensureQueryData(px)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:J(()=>z(()=>import(`./_id4.js`),__vite__mapDeps([141,1,2,3,4,5,6,71,33,52,7,8,54,55,10,36,18,29,17,34,68,62,53,120,39,20])),`component`)}),WC=q(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(Zb(t.id)),e.queryClient.ensureQueryData($b)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(tx(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id3.js`),__vite__mapDeps([142,1,2,3,4,5,6,71,33,52,53,7,8,54,55,10,36,18,16,17,29,34,56,68,62,120,39,20,21,13,47,23,24,143])),`component`)}),GC=q(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(tx(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:J(()=>z(()=>import(`./_id2.js`),__vite__mapDeps([144,1,29,17,34,4,2,3,5,6,20,21,58,143,120])),`component`)}),KC=q(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(bx(t.id)),e.queryClient.ensureQueryData(Xb)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:J(()=>z(()=>import(`./_id.js`),__vite__mapDeps([145,1,2,3,71,4,5,6,33,52,7,8,54,55,10,36,18,29,17,34,68,62,53,120,39,20])),`component`)}),qC=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(tS(t.clusterName))},head:({params:e})=>({meta:[{title:`${e.taskId} | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./_taskId.js`),__vite__mapDeps([146,1,29,17,34,4,2,3,5,6,120,20,21])),`component`)}),JC=q(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(eS(t.clusterName)),e.queryClient.ensureQueryData(tS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.serviceName} | ECS | Mulga`}]}),component:J(()=>z(()=>import(`./_serviceName.js`),__vite__mapDeps([147,1,4,2,3,5,6,29,17,34,120,20,21])),`component`)}),YC=qb.update({id:`/login`,path:`/login`,getParentRoute:()=>Kb}),$=Jb.update({id:`/_auth`,getParentRoute:()=>Kb}),XC=Dx.update({id:`/`,path:`/`,getParentRoute:()=>$}),ZC=Ox.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),QC=kx.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),$C=Ax.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),ew=jx.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),tw=Mx.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),nw=Nx.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),rw=Px.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),iw=Fx.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),aw=Yx.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),ow=aS.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>$}),sw=oS.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>$}),cw=sS.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>$}),lw=bS.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>$}),uw=xS.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),dw=SS.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),fw=CS.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),pw=wS.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),mw=TS.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),hw=ES.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),gw=DS.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),_w=OS.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),vw=kS.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),yw=jS.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),bw=MS.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),xw=NS.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),Sw=PS.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),Cw=FS.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),ww=IS.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),Tw=LS.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),Ew=RS.update({id:`/`,path:`/`,getParentRoute:()=>Tw}),Dw=zS.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),Ow=BS.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),kw=VS.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),Aw=HS.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),jw=tC.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),Mw=nC.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>$}),Nw=sC.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),Pw=cC.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),Fw=lC.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),Iw=uC.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),Lw=dC.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),Rw=fC.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),zw=pC.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),Bw=mC.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),Vw=hC.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),Hw=gC.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),Uw=_C.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),Ww=vC.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),Gw=yC.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),Kw=bC.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),qw=xC.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),Jw=SC.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),Yw=CC.update({id:`/$`,path:`/$`,getParentRoute:()=>Tw}),Xw=wC.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),Zw=TC.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),Qw=EC.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),$w=DC.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),eT=OC.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),tT=kC.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>$}),nT=AC.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),rT=jC.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),iT=MC.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),aT=NC.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),oT=PC.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),sT=FC.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),cT=IC.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),lT=LC.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),uT=RC.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),dT=zC.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),fT=BC.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),pT=VC.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),mT=HC.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),hT=UC.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),gT=WC.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),_T=GC.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),vT=KC.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),yT=qC.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>$}),bT=JC.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>$}),xT={AuthS3LsBucketSplatRoute:Yw,AuthS3LsBucketIndexRoute:Ew},ST={AuthNodesRoute:ZC,AuthIndexRoute:XC,AuthS3ServiceMetricsRoute:QC,AuthS3LsBucketRouteRoute:Tw._addFileChildren(xT),AuthEc2elasticIpsAllocateAddressRoute:ww,AuthEc2instancesRunInstancesRoute:Cw,AuthEc2internetGatewaysCreateInternetGatewayRoute:Sw,AuthEc2keyCreateKeyPairRoute:xw,AuthEc2keyImportKeyPairRoute:bw,AuthEc2loadBalancersCreateLoadBalancerRoute:yw,AuthEc2natGatewaysCreateNatGatewayRoute:vw,AuthEc2placementGroupsCreatePlacementGroupRoute:_w,AuthEc2routeTablesCreateRouteTableRoute:gw,AuthEc2securityGroupsCreateSecurityGroupRoute:hw,AuthEc2snapshotsCreateSnapshotRoute:mw,AuthEc2subnetCreateSubnetRoute:pw,AuthEc2targetGroupsCreateTargetGroupRoute:fw,AuthEc2volumesCreateVolumeRoute:dw,AuthEc2vpcCreateVpcRoute:uw,AuthEcsclustersCreateServiceRoute:lw,AuthEcsclustersRegisterTaskDefinitionRoute:cw,AuthEcsclustersRunTaskRoute:sw,AuthEcsclustersTaskDefinitionsRoute:ow,AuthEksclustersCreateClusterRoute:aw,AuthIaminstanceProfilesCreateInstanceProfileRoute:iw,AuthIampoliciesCreatePolicyRoute:rw,AuthIamrolesCreateRoleRoute:nw,AuthIamusersCreateUserRoute:tw,AuthS3bucketsCreateBucketRoute:ew,AuthS3LsIndexRoute:$C,AuthEc2elasticIpsDescribeAddressesIdRoute:vT,AuthEc2imagesDescribeImagesIdRoute:_T,AuthEc2instancesDescribeInstancesIdRoute:gT,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:hT,AuthEc2keyDescribeKeyPairsIdRoute:mT,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:pT,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:fT,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:dT,AuthEc2routeTablesDescribeRouteTablesIdRoute:uT,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:lT,AuthEc2snapshotsDescribeSnapshotsIdRoute:cT,AuthEc2subnetDescribeSubnetsIdRoute:sT,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:oT,AuthEc2volumesDescribeVolumesIdRoute:aT,AuthEc2volumesModifyVolumeIdRoute:iT,AuthEc2vpcDescribeVpcsIdRoute:rT,AuthEcrrepositoriesListRepositoriesIdRoute:nT,AuthEcsclustersListClustersClusterNameRoute:tT,AuthEksclustersListClustersClusterNameRoute:eT,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:$w,AuthIampoliciesListPoliciesPolicyArnRoute:Qw,AuthIamrolesListRolesRoleNameRoute:Zw,AuthIamusersListUsersUserNameRoute:Xw,AuthEc2elasticIpsDescribeAddressesIndexRoute:Jw,AuthEc2imagesDescribeImagesIndexRoute:qw,AuthEc2instancesDescribeInstancesIndexRoute:Kw,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:Gw,AuthEc2keyDescribeKeyPairsIndexRoute:Ww,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:Uw,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:Hw,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:Vw,AuthEc2routeTablesDescribeRouteTablesIndexRoute:Bw,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:zw,AuthEc2snapshotsDescribeSnapshotsIndexRoute:Rw,AuthEc2subnetDescribeSubnetsIndexRoute:Lw,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Iw,AuthEc2volumesDescribeVolumesIndexRoute:Fw,AuthEc2vpcDescribeVpcsIndexRoute:Pw,AuthEcrrepositoriesListRepositoriesIndexRoute:Nw,AuthEcsclustersListClustersIndexRoute:Mw,AuthEksclustersListClustersIndexRoute:jw,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Aw,AuthIampoliciesListPoliciesIndexRoute:kw,AuthIamrolesListRolesIndexRoute:Ow,AuthIamusersListUsersIndexRoute:Dw,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:bT,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:yT},CT={AuthRouteRoute:$._addFileChildren(ST),LoginRoute:YC},wT=Kb._addFileChildren(CT)._addFileTypes(),TT=zb(),ET=Cs({routeTree:wT,context:{queryClient:TT},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),DT=document.querySelector(`#app`);DT&&!DT.innerHTML&&Is.createRoot(DT).render((0,G.jsx)(W.StrictMode,{children:(0,G.jsx)(Bs,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,G.jsx)($i,{client:TT,children:(0,G.jsx)(by,{children:(0,G.jsx)(Ig,{children:(0,G.jsx)(Es,{router:ET})})})})})}));export{pS as $,cd as $n,Qi as $r,Cx as $t,aC as A,rh as An,ol as Ar,tx as At,qS as B,rf as Bn,Dc as Br,xx as Bt,EC as C,qm as Cn,vl as Cr,Ix as Ct,oC as D,Xm as Dn,sl as Dr,yx as Dt,CC as E,eh as En,dl as Er,bx as Et,$S as F,Q as Fn,Bc as Fr,ux as Ft,gS as G,Dd as Gn,uc as Gr,dx as Gt,AS as H,$d as Hn,xc as Hr,hx as Ht,ZS as I,Ap as In,Rc as Ir,lx as It,uS as J,Z as Jn,tc as Jr,cx as Jt,hS as K,Od as Kn,oc as Kr,vx as Kt,KS as L,sp as Ln,Ic as Lr,rx as Lt,XS as M,Xp as Mn,$c as Mr,Zb as Mt,eC as N,Gp as Nn,Jc as Nr,$b as Nt,rC as O,Zm as On,il as Or,Yb as Ot,QS as P,Vp as Pn,Vc as Pr,Xb as Pt,mS as Q,ld as Qn,es as Qr,wx as Qt,GS as R,bf as Rn,Nc as Rr,nx as Rt,DC as S,$m as Sn,xl as Sr,Lx as St,wC as T,Ym as Tn,pl as Tr,Tx as Tt,TS as U,Kd as Un,bc as Ur,ix as Ut,RS as V,af as Vn,Cc as Vr,gx as Vt,bS as W,Md as Wn,gc as Wr,fx as Wt,vS as X,fd as Xn,Hs as Xr,ox as Xt,lS as Y,pd as Yn,Y as Yr,sx as Yt,yS as Z,dd as Zn,vs as Zr,ax as Zt,MC as _,Wm as _n,Zl as _r,zx as _t,WC as a,di as ai,ly as an,Uu as ar,Qx as at,kC as b,Km as bn,Sl as br,Wx as bt,VC as c,bi as ci,dg as cn,Iu as cr,iS as ct,RC as d,hi as di,Th as dn,Pu as dr,Rx as dt,Ki as ei,mx as en,sd as er,fS as et,LC as f,Ti as fi,yh as fn,Au as fr,Gx as ft,NC as g,Xr as gi,sh as gn,ru as gr,Kx as gt,PC as h,Zr as hi,ch as hn,Ql as hr,Jx as ht,GC as i,Di as ii,gy as in,Wu as ir,$x as it,YS as j,ym as jn,tl as jr,ex as jt,iC as k,nh as kn,al as kr,Qb as kt,BC as l,si as li,ng as ln,zu as lr,rS as lt,FC as m,$r as mi,lh as mn,$l as mr,qx as mt,qC as n,ji as ni,qb as nn,Ju as nr,sS as nt,UC as o,ii as oi,mg as on,Hu as or,nS as ot,IC as p,ai as pi,uh as pn,eu as pr,Hx as pt,dS as q,wd as qn,ac as qr,_x as qt,KC as r,Oi as ri,xy as rn,Gu as rr,oS as rt,HC as s,ni as si,pg as sn,Vu as sr,eS as st,JC as t,Hi as ti,px as tn,Yu as tr,_S as tt,zC as u,oi as ui,Dh as un,Nu as ur,tS as ut,jC as v,Qm as vn,tu as vr,Bx as vt,TC as w,Jm as wn,hl as wr,Ex as wt,OC as x,Um as xn,bl as xr,Ux as xt,AC as y,Gm as yn,Xl as yr,Vx as yt,JS as z,mf as zn,Oc as zr,Sx as zt}; \ No newline at end of file +`+e.stack}}var ye=Object.prototype.hasOwnProperty,be=t.unstable_scheduleCallback,xe=t.unstable_cancelCallback,Se=t.unstable_shouldYield,Ce=t.unstable_requestPaint,we=t.unstable_now,Te=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,De=t.unstable_UserBlockingPriority,Oe=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,je=t.log,Me=t.unstable_setDisableYieldValue,Ne=null,Pe=null;function Fe(e){if(typeof je==`function`&&Me(e),Pe&&typeof Pe.setStrictMode==`function`)try{Pe.setStrictMode(Ne,e)}catch{}}var Ie=Math.clz32?Math.clz32:ze,Le=Math.log,Re=Math.LN2;function ze(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(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&261888;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 We(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=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(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 Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(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`u`||window.document===void 0||window.document.createElement===void 0),ln=!1;if(cn)try{var un={};Object.defineProperty(un,"passive",{get:function(){ln=!0}}),window.addEventListener(`test`,un,un),window.removeEventListener(`test`,un,un)}catch{ln=!1}var dn=null,fn=null,pn=null;function mn(){if(pn)return pn;var e,t=fn,n=t.length,r,i=`value`in dn?dn.value:dn.textContent,a=i.length;for(e=0;e=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function V(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function Qn(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=mn(),pn=fn=dn=null,Zn=!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=br(n)}}function xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pt(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=Pt(e.document)}return t}function Cr(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 wr=cn&&`documentMode`in document&&11>=document.documentMode,Tr=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||Tr==null||Tr!==Pt(r)||(r=Tr,`selectionStart`in r&&Cr(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}),Dr&&yr(Dr,r)||(Dr=r,r=Dd(Er,`onSelect`),0>=o,i-=o,yi=1<<32-Ie(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),Oi&&xi(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),Oi&&xi(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 Oi&&xi(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(v.key===null?g:v.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)}),Oi&&xi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&ba(l)===r.type){n(e,r.sibling),c=i(r,o.props),Da(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),Da(c,o),c.return=e,e=c)}return s(e);case g: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}else{n(e,r);break}else t(e,r);r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=ba(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ea(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Oa(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=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=b(e,t,n,r);return wa=null,i}catch(t){if(t===ma||t===ga)throw t;var a=ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(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 Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Qr(e),Zr(e,null,n),t}return Yr(e,r,t,n),Qr(e)}function La(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,Qe(e,n)}}function Ra(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 za=!1;function Ba(){if(za){var e=G;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!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,m=f!==s.lane;if(m?(Z&f)===f:(r&f)===f){f!==0&&f===oa&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ma=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,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),Wl|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,Ds(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,ca(c,r),fu(e)):Es(e,t,r,fu(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function gs(){}function _s(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=vs(e).queue;hs(e,i,t,te,n===null?gs:function(){return ys(e),n(r)})}function vs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ys(e){var t=vs(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},fu())}function bs(){return Yi(ep)}function xs(){return To().memoizedState}function Ss(){return To().memoizedState}function Cs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Fa(n);var r=Ia(t,e,n);r!==null&&(mu(r,t,n),La(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ws(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=W(e,t,n,r),n!==null&&(mu(n,e,r),As(n,t,r)))}function Ts(e,t,n){Es(e,t,n,fu())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(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,vr(s,o))return Yr(e,t,i,0),Il===null&&Jr(),!1}catch{}if(n=W(e,t,i,r),n!==null)return mu(n,e,r),As(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(a(479))}else t=W(e,n,r,2),t!==null&&mu(t,e,2)}function Os(e){var t=e.alternate;return e===q||t!==null&&t===q}function ks(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}var js={readContext:Yi,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};js.useEffectEvent=ho;var Ms={readContext:Yi,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){Fe(!0);try{n(t)}finally{Fe(!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=ws.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ts.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return Y(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=hs.bind(null,q,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=q,i=wo();if(Oi){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Il===null)throw Error(a(349));Z&127||Fo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,is(Lo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Il.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,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[at]=t,o[ot]=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(Id(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&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=L.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ei,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Mi(t,!0)}else e=Hd(e).createTextNode(r),e[at]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(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[at]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(a(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fi(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[at]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),i=!1}else i=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(to(t),t):(to(t),null)}return to(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),Ac(t,t.updateQueue),Mc(t),null);case 4:return le(),e===null&&Cd(t.stateNode.containerInfo),Mc(t),null;case 10:return Ui(t.type),Mc(t),null;case 19:if(F(no),r=t.memoizedState,r===null)return Mc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)jc(r,!1);else{if(Ul!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return I(no,no.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&we()>eu&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ro(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Mc(t),null}else 2*we()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,i=!0,jc(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)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=we(),e.sibling=null,n=no.current,I(no,i?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(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&&F(ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Mc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Pc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(no),null;case 4:return le(),null;case 10:return Ui(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&F(ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Fc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),le();break;case 26:case 27:case 5:de(t);break;case 4:le();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:F(no);break;case 10:Ui(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&F(ua);break;case 24:Ui(ta)}}function Ic(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){Wu(t,t.return,e)}}function Lc(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){Wu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Wu(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Wu(e,e.return,t)}}}function zc(e,t,n){n.props=zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Wu(e,t,n)}}function Bc(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:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Wu(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Wu(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){Wu(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Wu(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[ot]=t}catch(t){Wu(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[at]=e,t[ot]=n}catch(t){Wu(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Bd=lp,e=Sr(e),Cr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[at]=e,vt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=H(s,h),v=H(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,N.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,Fl&6)throw Error(a(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,id(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot==`function`)try{Pe.onPostCommitFiberRoot(Ne,o)}catch{}return!0}finally{P.p=i,N.T=r,Bu(e,t)}}function Uu(e,t,n){t=di(n,t),t=Ks(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ye(e,2),rd(e))}function Wu(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=di(n,e),n=qs(2),r=Ia(t,n,2),r!==null&&(Js(n,r,t,e),Ye(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;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)||(Vl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Z&n)===n&&(Ul===4||Ul===3&&(Z&62914560)===Z&&300>we()-Ql?!(Fl&2)&&xu(e,0):Kl|=n,Jl===Z&&(Jl=0)),rd(e)}function qu(e,t){t===0&&(t=qe()),e=Xr(e,t),e!==null&&(Ye(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(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),qu(e,n)}function Xu(e,t){return be(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;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-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Z,a=We(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&qd()&&(e=nd);for(var t=we(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ru!==0&&ru!==5||id(e,!1),nd!==0&&(nd=0)}function sd(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&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),vt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),vt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=_t(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);vt(c),Id(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,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=_t(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),vt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=_t(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),vt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=L.current)?vf(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`?(t=Mf(n.href),n=_t(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,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=Mf(n.href);var o=_t(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(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,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`?(t=If(n),n=_t(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+Lt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),vt(t),e.head.appendChild(t))}function If(e){return`[src="`+Lt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,vt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),vt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,vt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,vt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),vt(i),Id(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,zf(r,n.precedence,e));return t.instance}function zf(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 Gf(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 Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(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=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(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=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.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=Ws()}))(),1),Ks=i(),qs=(0,G.createContext)(void 0);function Js(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function Ys(e){let t=(0,Ks.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=()=>Js(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,G.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,G.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,K.jsx)(qs.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Xs(){let e=(0,G.useContext)(qs);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function Zs(e){return en(e.defaultTagName??`div`,e,e)}var Qs=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$s=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ec=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),tc=e=>{let t=ec(e);return t.charAt(0).toUpperCase()+t.slice(1)},nc={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},rc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ic=(0,G.createContext)({}),ac=()=>(0,G.useContext)(ic),oc=(0,G.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ac()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,G.createElement)(`svg`,{ref:c,...nc,width:t??l??nc.width,height:t??l??nc.height,stroke:e??f,strokeWidth:m,className:Qs(`lucide`,p,i),...!a&&!rc(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,G.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),sc=(e,t)=>{let n=(0,G.forwardRef)(({className:n,...r},i)=>(0,G.createElement)(oc,{ref:i,iconNode:t,className:Qs(`lucide-${$s(tc(e))}`,`lucide-${e}`,n),...r}));return n.displayName=tc(e),n},cc=sc(`circle-alert`,[[`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`}]]),lc=sc(`house`,[[`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`}]]),uc=sc(`layers`,[[`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`}]]),dc=sc(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),fc=sc(`activity`,[[`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`}]]),pc=sc(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),mc=sc(`boxes`,[[`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`}]]),hc=sc(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),gc=sc(`container`,[[`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`}]]),_c=sc(`crosshair`,[[`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`}]]),vc=sc(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),yc=sc(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),bc=sc(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),xc=sc(`image`,[[`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`}]]),Sc=sc(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Cc=sc(`layout-grid`,[[`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`}]]),wc=sc(`log-out`,[[`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`}]]),Tc=sc(`map-pin`,[[`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`}]]),Ec=sc(`moon`,[[`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`}]]),Dc=sc(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Oc=sc(`package`,[[`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`}]]),kc=sc(`route`,[[`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`}]]),Ac=sc(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),jc=sc(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Mc=sc(`shield-check`,[[`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`}]]),Nc=sc(`shield`,[[`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`}]]),Pc=sc(`sun`,[[`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`}]]),Fc=sc(`user-cog`,[[`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`}]]),Ic=sc(`users`,[[`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`}]]),Lc=sc(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),Rc=sc(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),zc=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Bc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Vc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Hc={disabled:!1,...Vc},Uc={valid(e){return e===null?null:e?{[zc.valid]:``}:{[zc.invalid]:``}}},Wc={invalid:void 0,name:void 0,validityData:{state:Bc,errors:[],error:``,value:``,initialValue:null},setValidityData:tn,disabled:void 0,touched:Vc.touched,setTouched:tn,dirty:Vc.dirty,setDirty:tn,filled:Vc.filled,setFilled:tn,focused:Vc.focused,setFocused:tn,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Hc,markedDirtyRef:{current:!1},registerFieldControl:tn,validation:{getValidationProps:(e,t=Xt)=>t,inputRef:{current:null},registerInput:tn,commit:async()=>{},change:tn}},Gc=G.createContext(Wc);function Kc(e=!0){let t=G.useContext(Gc);if(t.setValidityData===tn&&!e)throw Error(an(28));return t}var qc=G.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:tn,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Jc(){return G.useContext(qc)}var Yc=G.createContext({controlId:void 0,registerControlId:tn,labelId:void 0,setLabelId:tn,messageIds:[],setMessageIds:tn,getDescriptionProps:e=>e});function Xc(){return G.useContext(Yc)}var Zc=0,Qc=class e{static create(){return new e}currentId=Zc;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Zc,t()},e)}isStarted(){return this.currentId!==Zc}clear=()=>{this.currentId!==Zc&&(clearTimeout(this.currentId),this.currentId=Zc)};disposeEffect=()=>this.clear};function $c(){let e=$t(Qc.create).current;return qr(e.disposeEffect),e}function el(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:tl,platform:nl,maxTouchPoints:rl}=el(),il=tl.toLowerCase(),al=nl.toLowerCase(),ol=/^i(os$|p)/.test(al)||al===`macintel`&&rl>1,sl=`android`,cl=al===sl||il.includes(sl),ll=!ol&&al.startsWith(`mac`);al.startsWith(`win`),!cl&&/^(linux|chrome os)/.test(al);var ul=ll||ol,dl=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!dl&&il.includes(`firefox`),!dl&&il.includes(`chrom`);var fl=ul,pl=/jsdom|happydom/.test(il),ml=`data-base-ui-focusable`,hl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,gl=`ArrowLeft`,_l=`ArrowRight`,vl=`ArrowUp`,yl=`ArrowDown`;function bl(e,t){if(!kr(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(U(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function xl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Sl(e){return e.matches(`html,body`)}function Cl(e){return pr(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function wl(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${hl}`)!=null}function Tl(e){return e?e.getAttribute(`role`)===`combobox`&&Cl(e):!1}function El(e){if(!e||pl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Dl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ol(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ol(e,t.id,n)])}function kl(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Al(e){e.preventDefault(),e.stopPropagation()}function jl(e){return`nativeEvent`in e}function Ml(e){return e.pointerType===``&&e.isTrusted?!0:cl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Nl(e){return pl?!1:!cl&&e.width===0&&e.height===0||cl&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Fl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Il=[`top`,`right`,`bottom`,`left`],X=Math.min,Z=Math.max,Ll=Math.round,Rl=Math.floor,zl=e=>({x:e,y:e}),Bl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Vl(e,t,n){return Z(e,X(t,n))}function Hl(e,t){return typeof e==`function`?e(t):e}function Ul(e){return e.split(`-`)[0]}function Wl(e){return e.split(`-`)[1]}function Gl(e){return e===`x`?`y`:`x`}function Kl(e){return e===`y`?`height`:`width`}function ql(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Jl(e){return Gl(ql(e))}function Yl(e,t,n){n===void 0&&(n=!1);let r=Wl(e),i=Jl(e),a=Kl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=iu(o)),[o,iu(o)]}function Xl(e){let t=iu(e);return[Zl(e),t,Zl(t)]}function Zl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ql=[`left`,`right`],$l=[`right`,`left`],eu=[`top`,`bottom`],tu=[`bottom`,`top`];function nu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$l:Ql:t?Ql:$l;case`left`:case`right`:return t?eu:tu;default:return[]}}function ru(e,t,n,r){let i=Wl(e),a=nu(Ul(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Zl)))),a}function iu(e){let t=Ul(e);return Bl[t]+e.slice(t.length)}function au(e){return{top:0,right:0,bottom:0,left:0,...e}}function ou(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:au(e)}function su(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cu(e,t){return t<0||t>=e.length}function lu(e,t){return du(e.current,{disabledIndices:t})}function uu(e,t){return du(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function du(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&fu(e,a,r));return a}function fu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?mu(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function pu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function mu(e,t=e?vr(e):null){return!e||!e.isConnected||!t||pu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var hu=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function gu(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Dr(n)?n.host:null}function _u(e){for(let t of Array.from(e.children))if(xr(t)===`summary`)return t;return null}function vu(e,t){let n=_u(t);return!!n&&(e===n||U(n,e))}function yu(e){let t=e?xr(e):``;return e!=null&&e.matches(hu)&&(t!==`summary`||e.parentElement!=null&&xr(e.parentElement)===`details`&&_u(e.parentElement)===e)&&(t!==`details`||_u(e)==null)&&(t!==`input`||e.type!==`hidden`)}function bu(e){if(!yu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=gu(t)){let n=t!==e,r=xr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&xr(t)===`details`&&!t.open&&!vu(e,t)||t.hasAttribute(`hidden`)||!r&&!xu(t,n))return!1}return!0}function xu(e,t){let n=vr(e);return t?n.display!==`none`:mu(e,n)}function Su(e){let t=e.tabIndex;if(t<0){let t=xr(e);if(t===`details`||t===`audio`||t===`video`||pr(e)&&e.isContentEditable)return 0}return t}function Cu(e){if(xr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function wu(e,t){let n=Cu(e);if(!n)return!0;let r=t.find(e=>{let t=Cu(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Cu(e);return t?.name===n.name&&t.form===n.form})===n}function Tu(e){if(pr(e)&&xr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return pr(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Eu(e,t){Tu(e).forEach(e=>{yu(e)&&t.push(e),Eu(e,t)})}function Du(e,t,n){Tu(e).forEach(e=>{pr(e)&&e.matches(t)&&n.push(e),Du(e,t,n)})}function Ou(e){return bu(e)&&Su(e)>=0}function ku(e){let t=[];return Eu(e,t),t.filter(bu)}function Au(e){let t=ku(e);return t.filter(e=>Su(e)>=0&&wu(e,t))}function ju(e,t){let n=Au(e),r=n.length;if(r===0)return;let i=Wr(Gr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Mu(e){return ju(Gr(e).body,1)||e}function Nu(e){return ju(Gr(e).body,-1)||e}function Pu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!U(n,r)}function Fu(e){Au(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Iu(e){let t=[];Du(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Lu({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=G.useRef(e!==void 0),[a,o]=G.useState(t);return[i?e:a,G.useCallback(e=>{i||o(e)},[])]}function Ru(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Kc(),s=G.useRef(null);s.current||=Symbol(),H(()=>{let c=s.current;if(!(!c||!i))return o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{o(c,void 0)}},[e,i,r,t,a,o,n])}function zu(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Xc(),o=jr(t),s=n?i:void 0,c=$t(()=>Symbol(`labelable-control`)),l=G.useRef(!1),u=G.useRef(t!=null),d=Cr(()=>{!l.current||a===tn||(l.current=!1,a(c.current,void 0))});return H(()=>{if(a===tn)return;let e;if(n){let n=r?.current;e=kr(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),G.useEffect(()=>d,[d]),i??o}var Bu=G.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=Kc(),{clearErrors:C}=Jc(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=Xc(),O=zu({id:i});H(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let k=G.useRef(null);H(()=>{u&&k.current===Wr(Gr(k.current))&&y(!0)},[u,y]);let[A]=Lu({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,ee=Cr(()=>S.inputRef.current?.value);return Ru(S.inputRef,O,M,ee,!w,a),en(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:S.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Ur(Pr,e.nativeEvent)),_(t!==v.initialValue),b(t!==``),e.nativeEvent.defaultPrevented||(C(T),S.change(t))},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},f,e=>S.getValidationProps(w,e)],stateAttributesMapping:Uc})}),Vu=G.forwardRef(function(e,t){return(0,K.jsx)(Bu,{ref:t,...e})});function Hu(e){let t=(0,Ks.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=xn(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,K.jsx)(Vu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Uu=G.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return en(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Wu(e){let t=(0,Ks.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=xn(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,K.jsx)(Uu,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Gu=G.createContext(!1),Ku=G.createContext(void 0);function qu(e){let t=G.useContext(Ku);if(e===!1&&t===void 0)throw Error(an(27));return t}var Ju=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Xr.startingStyle]=`startingStyle`,e[e.endingStyle=Xr.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Yu=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Xu={[Yu.popupOpen]:``},Zu={[Yu.popupOpen]:``,[Yu.pressed]:``},Qu={[Ju.open]:``},$u={[Ju.closed]:``},ed={[Ju.anchorHidden]:``},td={open(e){return e?Xu:null}},nd={open(e){return e?Zu:null}},rd={open(e){return e?Qu:$u},anchorHidden(e){return e?ed:null}},id={...rd,...Qr},ad=G.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=qu(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return en(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:id,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),od=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=qu(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Sr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Ur(Vr,e.nativeEvent))}return en(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),sd=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=qu(),c=jr(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),en(`p`,e,{ref:t,props:[{id:c},o]})});function cd(e,t){return t!=null&&!Pl(t)?0:typeof e==`function`?e():e}function ld(e,t,n){let r=cd(e,n);return typeof r==`number`?r:r?.[t]}function ud(e){return typeof e==`function`?e():e}function dd(e,t){return t||e===`click`||e===`mousedown`}function fd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var pd=G.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Qc,currentIdRef:{current:null},currentContextRef:{current:null}});function md(e,t){e.current=t.current}function hd(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=G.useRef(n),a=G.useRef(n),o=G.useRef(null),s=G.useRef(null),c=$c();return H(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:ld(i.current,`open`),close:ld(n,`close`)}},[n,o,i,a]),(0,K.jsx)(pd.Provider,{value:G.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function gd(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}=G.useContext(pd),[f,p]=G.useState(!1),m=G.useRef(n),h=G.useRef(!1);return H(()=>{m.current=n},[n]),H(()=>()=>{h.current=!0},[]),H(()=>{function e(){h.current||p(!1),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]),H(()=>{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:ld(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Ur(Pr))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),H(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,md(o,c),d.clear()}},[l,a,o,i,c,d]),G.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function _d(...e){return()=>{for(let t=0;t{fl&&dl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,K.jsx)(`span`,{...e,ref:t,style:yd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Sd(e){return`data-base-ui-${e}`}var Cd=0;function wd(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Cd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),tn;let o=requestAnimationFrame(a);return Cd=o,()=>{Cd===o&&(cancelAnimationFrame(o),Cd=0)}}var Td={inert:new WeakMap,"aria-hidden":new WeakMap},Ed=`data-base-ui-inert`,Dd={inert:new WeakSet,"aria-hidden":new WeakSet},Od=new WeakMap,kd=0;function Ad(e){return Dd[e]}function jd(e){return e?Dr(e)?e.host:jd(e.parentNode):null}var Md=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=jd(t);return e.contains(n)?n:null}).filter(e=>e!=null),Nd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Pd=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{xr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Fd(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=Md(t,e),l=i?Pd(t,Nd(c),new Set(c)):[],u=[],d=[];if(a){let e=Td[a],n=Ad(a);s=n,o=e;let r=Md(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);Pd(t,Nd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(Od.get(e)||0)+1;Od.set(e,t),d.push(e),t===1&&e.setAttribute(Ed,``)}),kd+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(Od.get(e)||0)-1;Od.set(e,t),t||e.removeAttribute(Ed)}),--kd,kd||(Td.inert=new WeakMap,Td[`aria-hidden`]=new WeakMap,Dd.inert=new WeakSet,Dd[`aria-hidden`]=new WeakSet,Od=new WeakMap)}}function Id(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Gr(e[0]).body;return Fd(e,a,n,r,{mark:i})}var Ld={style:{transition:`none`}},Rd={fallbackAxisSide:`none`},zd={fallbackAxisSide:`end`},Bd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Vd=n(It(),1),Hd=G.createContext(null),Ud=()=>G.useContext(Hd),Wd=Sd(`portal`);function Gd(e={}){let{ref:t,container:n,componentProps:r=Xt,elementProps:i}=e,a=Ar(),o=Ud()?.portalNode,[s,c]=G.useState(null),[l,u]=G.useState(null),d=Cr(e=>{e!==null&&u(e)}),f=G.useRef(null);H(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(ur(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=en(`div`,r,{ref:[t,d],props:[{id:a,[Wd]:``},i]});return{portalNode:l,portalSubtree:s&&p?Vd.createPortal(p,s):null}}var Kd=G.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Gd({container:o,ref:t,componentProps:e,elementProps:c}),d=G.useRef(null),f=G.useRef(null),p=G.useRef(null),m=G.useRef(null),[h,g]=G.useState(null),_=G.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;G.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Pu(e)&&(e.type===`focusin`?_.current&&=(Iu(l),!1):(Fu(l),_.current=!0))}return _d(W(l,`focusin`,e,!0),W(l,`focusout`,e,!0))},[l,v]),H(()=>{!l||y!==!0||!_.current||(Iu(l),_.current=!1)},[y,l]);let x=G.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,K.jsxs)(G.Fragment,{children:[u,(0,K.jsxs)(Hd.Provider,{value:x,children:[b&&l&&(0,K.jsx)(xd,{"data-type":`outside`,ref:d,onFocus:e=>{Pu(e,l)?p.current?.focus():Nu(h?h.domReference:null)?.focus()}}),b&&l&&(0,K.jsx)(`span`,{"aria-owns":l.id,style:Bd}),l&&Vd.createPortal(a,l),b&&l&&(0,K.jsx)(xd,{"data-type":`outside`,ref:f,onFocus:e=>{Pu(e,l)?m.current?.focus():(Mu(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Ur(`focus-out`,e.nativeEvent)))}})]})]})});function qd(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Jd=G.createContext(null),Yd=G.createContext(null),Xd=()=>G.useContext(Jd)?.id||null,Zd=e=>{let t=G.useContext(Yd);return e??t};function Qd(e,t){let n=fr(Nr(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var $d=20,ef=[];function tf(){ef=ef.filter(e=>e.deref()?.isConnected)}function nf(e){tf(),e&&xr(e)!==`body`&&(ef.push(new WeakRef(e)),ef.length>$d&&(ef=ef.slice(-20)))}function rf(){return tf(),ef[ef.length-1]?.deref()}function af(e){return e?Ou(e)?e:Au(e)[0]||e:null}function of(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=ku(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Ou(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function sf(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=Cr(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Tl(_)&&S,w=$r(i),T=$r(a),E=$r(l),D=$r(g),O=Zd(p),k=Ud(),A=G.useRef(!1),j=G.useRef(!1),M=G.useRef(!1),ee=G.useRef(null),N=G.useRef(``),P=G.useRef(``),te=G.useRef(null),ne=G.useRef(null),re=Zt(te,f,k?.beforeInsideRef),ie=Zt(ne,k?.afterInsideRef),F=$c(),I=$c(),ae=ei(),oe=k!=null,L=Dl(v),se=Cr((e=L)=>e?Au(e):[]),ce=Cr(()=>m?.().filter(e=>e!=null)??[]);G.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&U(L,Wr(Gr(L)))&&se().length===0&&!C&&Al(e)}return W(Gr(L),`keydown`,e)},[r,L,s,C,se]),G.useEffect(()=>{if(r||!g)return;let e=Gr(L);function t(){M.current=!1}function n(e){let t=Nr(e),n=ce();M.current=!(U(v,t)||U(_,t)||U(k?.portalNode,t)||n.some(e=>e===t||U(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0,I.start(0,()=>{j.current=!1}))}function i(){P.current=`keyboard`}return _d(W(e,`pointerdown`,n,!0),W(e,`pointerup`,t,!0),W(e,`pointercancel`,t,!0),W(e,`keydown`,i,!0),t)},[r,v,_,L,g,k,I,ce]),G.useEffect(()=>{if(r||!c)return;let e=Gr(L);function t(){j.current=!0,I.start(0,()=>{j.current=!1})}function n(e){let t=Nr(e);Ou(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Nr(t);s&&n==null&&i!=null&&U(v,i)&&nf(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=ce(),f=n?.hasAttribute(Sd(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,Kr(d),Kr(u)].includes(n),p=!(U(_,n)||U(v,n)||U(n,v)||U(k?.portalNode,n)||l.some(e=>e===n||U(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>U(e,n))||f||O&&(Ol(O.nodesRef.current,a).find(e=>U(e.context?.elements.floating,n)||U(e.context?.elements.domReference,n))||kl(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Dl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&L&&of(L),o&&r!==_&&!mu(i)&&Wr(e)===e.body){if(pr(L)&&(L.focus(),o===`popup`)){ae.request(()=>{L.focus()});return}let e=se(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||L;pr(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==rf())&&(A.current=!0,h.setOpen(!1,Ur(zr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,F.start(0,()=>{b.current.insideReactTree=!1}))}let l=pr(_)?_:null;if(!(!v&&!l))return _d(l&&W(l,`focusout`,i),l&&W(l,`pointerdown`,t),v&&W(v,`focusin`,n),v&&W(v,`focusout`,i),v&&k&&W(v,`focusout`,a,!0))},[r,_,v,L,s,O,k,h,c,o,se,C,x,b,F,I,ae,u,d,ce]),G.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Sd(`portal`)}]`)||[]),t=(O?kl(O.nodesRef.current,x()):[]).find(e=>Tl(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Id([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...ce(),t,Kr(d),Kr(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Id([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,ce]),H(()=>{if(!g||r||!pr(L))return;let e=Gr(L),t=Wr(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(E.current||``):n;if(r===void 0||r===!1||U(L,t))return;let i=null,a=()=>(i??=se(L),i[0]||L),o;o=r===!0||r===null?a():Kr(r),o||=a();let s=U(L,Wr(e));wd(o,{preventScroll:o===L,shouldFocus(){if(!D.current)return!1;if(s)return!0;let t=Wr(e);return!(t!==o&&U(L,t))}})})},[r,g,L,se,w,E,D]),H(()=>{if(r||!L)return;let e=Gr(L),t=Wr(e),n=E.current==null;nf(t);function i(e){if(e.open||(N.current=Qd(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(Ml(e.nativeEvent)||Nl(e.nativeEvent))A.current=!1;else{let e=!1;Gr(L).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,i);function a(){let e=T.current,r=typeof e==`function`?e(N.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=_?.isConnected?_:null,a=t?.isConnected&&xr(t)!==`body`?t:null,o=n?a||i:i||a;return o||=rf()||null,typeof r==`boolean`?o:Kr(r)||o||null}return()=>{y.off(`openchange`,i);let t=Wr(e),n=ce(),r=U(v,t)||n.some(e=>e===t||U(e,t))||O&&Ol(O.nodesRef.current,x(),!1).some(e=>U(e.context?.elements.floating,t)),o=T.current,s=a();queueMicrotask(()=>{let n=af(s),i=typeof o!=`boolean`;o&&!A.current&&pr(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),A.current=!1})}},[r,v,L,T,E,y,O,_,x,ce]),H(()=>{if(!dl||g||!v)return;let e=Wr(Gr(v));!pr(e)||!Cl(e)||U(v,e)&&e.blur()},[g,v]),H(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),H(()=>{if(!(r||!L))return of(L),()=>{queueMicrotask(tf)}},[r,L]);let le=!r&&(s?!C:!0)&&(oe||s);return(0,K.jsxs)(G.Fragment,{children:[le&&(0,K.jsx)(xd,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=se();wd(e[e.length-1])}else k?.portalNode&&(A.current=!1,Pu(e,k.portalNode)?Mu(_)?.focus():Kr(d??k.beforeOutsideRef)?.focus())}}),n,le&&(0,K.jsx)(xd,{"data-type":`inside`,ref:ie,onFocus:e=>{s?wd(se()[0]):k?.portalNode&&(c&&(A.current=!0),Pu(e,k.portalNode)?Nu(_)?.focus():Kr(u??k.afterOutsideRef)?.focus())}})]})}function cf(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 lf(e){return e!=null&&e.clientX!=null}function uf(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=G.useRef(!1),u=G.useRef(null),[d,f]=G.useState(),[p,m]=G.useState([]),h=Cr(e=>{i.set(`positionReference`,e)}),g=Cr((e,t,n)=>{l.current||c.current.openEvent&&!lf(c.current.openEvent)||i.set(`positionReference`,cf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=Cr(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Pl(d)?o:a;G.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=fr(o);function r(t){U(o,Nr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||lf(c.current.openEvent)?u.current=W(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),G.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),G.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),G.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=G.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return G.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function df(){return!1}function ff(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function pf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=df,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Zd(c),m=Cr(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=Cr(()=>a),{escapeKey:v,outsidePress:y}=ff(s),b=G.useRef(!1),x=G.useRef(!1),S=G.useRef(!1),C=G.useRef(!1),w=G.useRef(``),T=G.useRef(null),E=$c(),D=$c(),O=Cr(()=>{D.clear(),f.current.insideReactTree=!1}),k=Cr(e=>{let t=f.current.floatingContext?.nodeId;return(p?Ol(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=Cr(e=>xl(e,l.select(`floatingElement`))||xl(e,l.select(`domReferenceElement`))),j=Cr(e=>{o()&&l.setOpen(!1,Ur(Fr,e.nativeEvent))}),M=Cr(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&k(`__escapeKeyBubbles`))return;let t=Ur(Mr,jl(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=Cr(()=>{f.current.insideReactTree=!0,D.start(0,O)}),N=Cr(e=>{if(!u||!n||e.button!==0)return;let t=Nr(e.nativeEvent);U(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=Cr(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});G.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new Qc,t=new Qc;function i(){e.clear(),C.current=!0}function a(){e.start(dl?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function D(e){let t=f.current.floatingContext?.nodeId,n=p&&Ol(p.nodesRef.current,t).some(t=>xl(e,t.context?.elements.floating));return A(e)||n}function j(e){if(m(e)){e.type!==`click`&&!A(e)&&(t.clear(),S.current=!1),O();return}if(f.current.insideReactTree){O();return}let n=Nr(e),r=`[${Sd(`inert`)}]`,i=kr(n)?n.getRootNode():null,a=Array.from((Dr(i)?i:Gr(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>U(e,n))))return;let s=kr(n)?n:null;for(;s&&!Or(s);){let e=gr(s);if(Or(e)||!kr(e))break;s=e}if(!(a.length&&kr(n)&&!Sl(n)&&!U(n,l.select(`floatingElement`))&&a.every(e=>!U(s,e)))){if(pr(n)&&!(`touches`in e)){let t=Or(n),r=vr(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!D(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||k(`__outsidePressBubbles`)||(l.setOpen(!1,Ur(Br,e)),O())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||A(e)||j(e)}function N(e){if(c()!==`sloppy`||!l.select(`open`)||!n||A(e))return;let t=e.touches[0];t&&(T.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=Nr(e);if(!n)return;let r=W(n,e.type,()=>{t(e),r()})}function te(e){w.current=`touch`,P(e,N)}function ne(e){E.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&T.current&&!T.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):j(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!D(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,O())}}}function ie(e){if(c()!==`sloppy`||!T.current||A(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-T.current.startX),r=Math.abs(t.clientY-T.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(T.current.dismissOnTouchEnd=!0),i>10&&(j(e),E.clear(),T.current=null)}function F(e){P(e,ie)}function I(e){c()!==`sloppy`||!T.current||A(e)||(T.current.dismissOnTouchEnd&&j(e),E.clear(),T.current=null)}function ae(e){P(e,I)}let oe=Gr(d),L=_d(r&&_d(W(oe,`keydown`,M),W(oe,`compositionstart`,i),W(oe,`compositionend`,a)),g&&_d(W(oe,`click`,ne,!0),W(oe,`pointerdown`,ne,!0),W(oe,`pointerup`,re,!0),W(oe,`pointercancel`,re,!0),W(oe,`mousedown`,ne,!0),W(oe,`mouseup`,re,!0),W(oe,`touchstart`,te,!0),W(oe,`touchmove`,F,!0),W(oe,`touchend`,ae,!0)));return()=>{L(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,M,O,_,k,A,p,l,E]),G.useEffect(O,[h,O]);let te=G.useMemo(()=>({onKeyDown:M,onPointerDown:j,onClick:j}),[M,j]),ne=G.useMemo(()=>({onKeyDown:M,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),N(e)},onPointerDownCapture(e){ee(),N(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[M,ee,N,P]);return G.useMemo(()=>n?{reference:te,floating:ne,trigger:te}:{},[n,te,ne])}function mf(e,t,n){let{reference:r,floating:i}=e,a=ql(t),o=Jl(t),s=Kl(o),c=Ul(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function hf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Hl(t,e),p=ou(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=su(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=su(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var gf=50,_f=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:hf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=mf(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ql(t))||T.every(e=>ql(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ql(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function yf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bf(e){return Il.some(t=>e[t]>=0)}var xf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Hl(e,t);switch(i){case`referenceHidden`:{let e=yf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bf(e)}}}case`escaped`:{let e=yf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bf(e)}}}default:return{}}}}},Sf=new Set([`left`,`top`]);async function Cf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ul(n),s=Wl(n),c=ql(n)===`y`,l=Sf.has(o)?-1:1,u=a&&c?-1:1,d=Hl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var wf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Cf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Tf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Hl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ql(Ul(i)),p=Gl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Vl(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Vl(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ef=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Hl(e,t),u={x:n,y:r},d=ql(i),f=Gl(d),p=u[f],m=u[d],h=Hl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Sf.has(Ul(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Df=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Hl(e,t),u=await o.detectOverflow(t,l),d=Ul(i),f=Wl(i),p=ql(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=X(h-u[g],v),x=X(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Z(u.left,0),t=Z(u.right,0),n=Z(u.top,0),r=Z(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Z(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Z(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Of(e){let t=vr(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ll(n)!==a||Ll(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function kf(e){return kr(e)?e:e.contextElement}function Af(e){let t=kf(e);if(!pr(t))return zl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Of(t),o=(a?Ll(n.width):n.width)/r,s=(a?Ll(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var jf=zl(0);function Mf(e){let t=fr(e);return!cr()||!t.visualViewport?jf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fr(e)?!1:t}function Pf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=kf(e),o=zl(1);t&&(r?kr(r)&&(o=Af(r)):o=Af(e));let s=Nf(a,n,r)?Mf(a):zl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=fr(a),t=r&&kr(r)?fr(r):r,n=e,i=hr(n);for(;i&&r&&t!==n;){let e=Af(i),t=i.getBoundingClientRect(),r=vr(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=fr(i),i=hr(n)}}return su({width:u,height:d,x:c,y:l})}function Ff(e,t){let n=yr(e).scrollLeft;return t?t.left+n:Pf(mr(e)).left+n}function If(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ff(e,n),y:n.top+t.scrollTop}}function Lf(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=mr(r),s=t?lr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zl(1),u=zl(0),d=pr(r);if((d||!d&&!a)&&((xr(r)!==`body`||sr(o))&&(c=yr(r)),d)){let e=Pf(r);l=Af(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?If(o,c):zl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Rf(e){return Array.from(e.getClientRects())}function zf(e){let t=mr(e),n=yr(e),r=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ff(e),s=-n.scrollTop;return vr(r).direction===`rtl`&&(o+=Z(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Bf=25;function Vf(e,t){let n=fr(e),r=mr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=cr();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ff(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Bf&&(a-=o)}else l<=Bf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Hf(e,t){let n=Pf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pr(e)?Af(e):zl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Uf(e,t,n){let r;if(t===`viewport`)r=Vf(e,n);else if(t===`document`)r=zf(mr(e));else if(kr(t))r=Hf(t,n);else{let n=Mf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return su(r)}function Wf(e,t){let n=gr(e);return n===t||!kr(n)||Or(n)?!1:vr(n).position===`fixed`||Wf(n,t)}function Gf(e,t){let n=t.get(e);if(n)return n;let r=_r(e,[],!1).filter(e=>kr(e)&&xr(e)!==`body`),i=null,a=vr(e).position===`fixed`,o=a?gr(e):e;for(;kr(o)&&!Or(o);){let t=vr(o),n=Er(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||sr(o)&&!n&&Wf(e,o))?r=r.filter(e=>e!==o):i=t,o=gr(o)}return t.set(e,r),r}function Kf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?lr(t)?[]:Gf(t,this._c):[].concat(n),r],o=Uf(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!tp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function rp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=kf(e),u=i||a?[...l?_r(l):[],...t?_r(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?np(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Pf(e):null;c&&g();function g(){let t=Pf(e);h&&!tp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ip=wf,ap=Tf,op=vf,sp=Df,cp=xf,lp=Ef,up=(e,t,n)=>{let r=new Map,i={platform:ep,...n},a={...i.platform,_c:r};return _f(e,t,{...i,platform:a})},dp=typeof document<`u`?G.useLayoutEffect:function(){};function fp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!fp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mp(e,t){let n=pp(e);return Math.round(t*n)/n}function hp(e){let t=G.useRef(e);return dp(()=>{t.current=e}),t}function gp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);fp(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=hp(c),D=hp(i),O=hp(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),up(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!fp(w.current,t)&&(w.current=t,Vd.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);dp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);dp(()=>(A.current=!0,()=>{A.current=!1}),[]),dp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=G.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=mp(M.floating,u.x),r=mp(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pp(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var _p=(e,t)=>{let n=ip(e);return{name:n.name,fn:n.fn,options:[e,t]}},vp=(e,t)=>{let n=ap(e);return{name:n.name,fn:n.fn,options:[e,t]}},yp=(e,t)=>({fn:lp(e).fn,options:[e,t]}),bp=(e,t)=>{let n=op(e);return{name:n.name,fn:n.fn,options:[e,t]}},xp=(e,t)=>{let n=sp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sp=(e,t)=>{let n=cp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Cp(e){let t=G.useRef(!0);t.current&&(t.current=!1,e())}var Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(an(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},wp=[],Tp=void 0;function Ep(){return Tp}function Dp(e){wp.push(e)}function Op(e){let t=(t,n)=>{let r=$t(Ap).current,i;try{Tp=r;for(let e of wp)e.before(r);i=e(t,n);for(let e of wp)e.after(r);r.didInitialize=!0}finally{Tp=void 0}return i};return t.displayName=e.displayName||e.name,t}function kp(e){return G.forwardRef(Op(e))}function Ap(){return{didInitialize:!1}}var jp=re(),Mp=te(),Np=nn(19)?Ip:Lp;function Pp(e,t,n,r,i){return Np(e,t,n,r,i)}function Fp(e,t,n,r,i){let a=G.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,jp.useSyncExternalStore)(e.subscribe,a,a)}Dp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,jp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ip(e,t,n,r,i){let a=Ep();if(!a)return Fp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Lp(e,t,n,r,i){return(0,Mp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Rp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Pp(this,e,t,n,r)}},zp=class extends Rp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){G.useDebugValue(e);let n=this;H(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;H(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;H(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){G.useDebugValue(e);let n=this,r=t!==void 0;H(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return G.useDebugValue(e),Pp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){G.useDebugValue(e);let n=Cr(t??tn);this.context[e]=n}useStateSetter(e){let t=G.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Bp={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},Vp=class extends zp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:qd(),nested:n,triggerElements:i},Bp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Fl(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Hp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=G.useRef(null);r===void 0&&f.current===null&&(f.current=new Vp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),H(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};kr(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Up={tabIndex:-1,[ml]:``};function Wp(e){return t=>t===`touch`?e.current:!0}function Gp(e,t,n=!1){let r=Ar(),i=Xd()!=null,a=G.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Hp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Kp(e,t){let n=G.useRef(null),r=G.useRef(null);return G.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function qp(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function Jp(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Yp(e,t,n,r={}){let i=n.reason,a=i===Ir,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Jp(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),qp(i,t,n.trigger,c()),e.update(i)};a?Vd.flushSync(l):l()}function Xp(e,t,n,r){Cp(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Zp(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Kp(e,n),o=Cr(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return H(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Qp(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);H(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=Ur(Pr);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function $p(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Zr(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=Cr(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Jr({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function em(e,t){e.useSyncedValues(t),H(()=>()=>{e.update({activeTriggerProps:Xt,inactiveTriggerProps:Xt,popupProps:Xt})},[e])}function tm(e,t){H(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),H(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var nm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function rm(){return new Vp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new nm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function im(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:rm(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Xt,inactiveTriggerProps:Xt,popupProps:Xt}}function am(e,t,n=!1){return new Vp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var om=Q(e=>e.triggerIdProp??e.activeTriggerId),sm=Q(e=>e.openProp??e.open),cm=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function lm(e,t){return t!==void 0&&sm(e)&&om(e)===t}function um(e,t){return lm(e,t)?!0:t!==void 0&&sm(e)&&om(e)==null&&e.triggerCount===1}var dm={open:sm,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:om,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:cm,isTriggerActive:Q((e,t)=>t!==void 0&&om(e)===t),isOpenedByTrigger:Q((e,t)=>lm(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&om(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>um(e,t)?cm(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function fm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Ar(),a=Xd()!=null,o=$t(()=>new Vp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new nm,floatingId:i,syncOnly:!1,nested:a})).current;return H(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=kr(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function pm(e={}){let{nodeId:t,externalTree:n}=e,r=fm(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=G.useState(null),[f,p]=G.useState(void 0),[m,h]=G.useState(void 0),g=G.useRef(null),_=Zd(n),v=G.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=gp({...e,elements:{...v,...u&&{reference:u}}}),b=kr(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=G.useCallback(e=>{let t=kr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=G.useCallback(e=>{(kr(e)||e===null)&&(g.current=e,p(e)),(kr(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!kr(e))&&y.refs.setReference(e)},[y.refs,p]),w=G.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=G.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=G.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=G.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return H(()=>{s&&(g.current=s)},[s]),H(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),G.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var mm=ll&&dl;function hm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=G.useRef(!1),c=G.useRef(null),l=G.useRef(!0),u=$c();G.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=fr(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&pr(e)&&e===Wr(Gr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return _d(W(t,`blur`,r),mm&&W(t,`keydown`,a,!0),mm&&W(t,`pointerdown`,o,!0))},[i,n]),G.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);kr(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=G.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=Nr(t.nativeEvent);if(kr(a)){if(mm&&!t.relatedTarget){if(!l.current&&!Cl(a))return}else if(!El(a))return}let o=bl(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,Ur(Rr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Ur(Rr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=kr(n)&&n.hasAttribute(Sd(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Wr(Gr(e));!n&&t===e||U(o.current.floatingContext?.refs.floating.current,t)||U(e,t)||a||bl(n??t,i.context.triggerElements)||i.setOpen(!1,Ur(Rr,r))})}}},[o,r,i,u]);return G.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var gm=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 Qc,this.restTimeout=new Qc,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},_m=new WeakMap;function vm(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&_m.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),_m.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function ym(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=_m.get(n);a&&a!==e&&vm(a),vm(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,_m.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function bm(e){let t=e.context.dataRef.current,n=$t(()=>t.hoverInteractionState??gm.create()).current;return t.hoverInteractionState||=n,qr(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function xm(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=Zd(),d=Xd(),f=bm(a),p=$c(),m=Cr(()=>dd(l.current.openEvent?.type,f.interactedInside)),h=Cr(()=>fd(l.current.openEvent?.type)),g=Cr(()=>{vm(f)});H(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),G.useEffect(()=>g,[g]),H(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&kr(c)&&s){let e=c,t=s,n=Gr(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;return ym(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),G.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Ol(u.nodesRef.current,d).length>0)}function t(e){let t=ld(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Ur(Ir,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Nr(e);if(!wl(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(bl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&kr(o)&&Ol(u.nodesRef.current,r,!1).some(e=>U(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,Ur(Ir,t)),u.events.emit(`floating.closed`,t)})}let y=s;return _d(y&&W(y,`mouseenter`,c),y&&W(y,`mouseleave`,_),y&&W(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Sm={current:null};function Cm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Sm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Zd(l),v=bm(m),y=G.useRef(!1),b=$r(i),x=$r(r),S=$r(o),C=$r(n),w=$r(p),T=$r(f),E=Cr(()=>dd(h.current.openEvent?.type,v.interactedInside)),D=Cr(()=>w.current?.()!==!1),O=Cr((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!U(e,t);if(!kr(n))return!1;let i=n;return r.hasMatchingElement(e=>U(e,i))&&(!e||!U(e,i))}),k=Cr(()=>{v.handler&&=(Gr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=Cr(()=>{vm(v)});return u&&(v.handleCloseOptions=b.current?.__options),G.useEffect(()=>k,[k]),G.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Ir,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),G.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=ld(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Ur(Ir,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Ur(Ir,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!kr(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Pl(v.pointerType))return;let t=ud(S.current),n=ld(x.current,`open`,v.pointerType),r=Nr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(kr(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(U(e,r)){s=e;break}}kr(i)&&kr(o)&&!m.context.triggerElements.hasElement(i)&&U(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&kr(s)&&kr(o)&&U(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,Ur(Ir,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,Ur(Ir,e,s))}):g&&D()&&m.setOpen(!0,Ur(Ir,e,s)))}function i(t){if(E()){A();return}k();let n=Gr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!bl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!U(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?_d(W(t,`mousemove`,r,{once:!0}),W(t,`mouseenter`,r),W(t,`mouseleave`,i)):_d(W(t,`mouseenter`,r),W(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),G.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!Pl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&ym(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=ud(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,Ur(Ir,t,n))}v.pointerType===`touch`?Vd.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var wm=.1,Tm=wm*wm,Em=.5;function Dm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Om(e,t,n,r,i,a,o,s,c,l){let u=!1;return Dm(e,t,n,r,i,a)&&(u=!u),Dm(e,t,i,a,o,s)&&(u=!u),Dm(e,t,o,s,c,l)&&(u=!u),Dm(e,t,c,l,n,r)&&(u=!u),u}function km(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Am(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 jm(e={}){let{blockPointerEvents:t=!1}=e,n=new Qc,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*Tm;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,A=(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 j=!1;switch(c){case`top`:j=Am(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Am(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Am(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Am(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!km(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Em/2:Em*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Em+1,o=C||T?S.bottom-Em:S.top,s=C?T?S.bottom-Em:S.top:S.bottom-Em;M=Om(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Em/2:Em*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Em,o=C||T?S.top+Em:S.bottom,s=C?T?S.top+Em:S.bottom:S.top+Em;M=Om(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Em/2:Em*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Em+1,o=w||E?S.right-Em:S.left,s=w?E?S.right-Em:S.left:S.right-Em;M=Om(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Em/2:Em*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Em,o=w||E?S.left+Em:S.right,s=w?E?S.left+Em:S.right:S.left+Em;M=Om(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Mm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Nm=function(e){return e[e.open=Ju.open]=`open`,e[e.closed=Ju.closed]=`closed`,e[e.startingStyle=Ju.startingStyle]=`startingStyle`,e[e.endingStyle=Ju.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Pm=G.createContext(void 0);function Fm(){let e=G.useContext(Pm);if(e===void 0)throw Error(an(26));return e}var Im=`ArrowUp`,Lm=`ArrowDown`,Rm=`ArrowLeft`,zm=`ArrowRight`,Bm=`Home`,Vm=new Set([Rm,zm]),Hm=new Set([Rm,zm,Bm,`End`]),Um=new Set([Im,Lm]),Wm=new Set([Im,Lm,Bm,`End`]),Gm=new Set([...Vm,...Um]),Km=new Set([...Gm,Bm,`End`]),qm=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Jm(e){return pr(e)&&e.tagName===`INPUT`}function Ym(e){return!!(Jm(e)&&e.selectionStart!=null||pr(e)&&e.tagName===`TEXTAREA`)}function Xm(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Zm(e,t,`top`),r=Qm(e),i=Qm(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Zm(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Qm(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var $m={...rd,...Qr,nestedDialogOpen(e){return e?{[Nm.nestedDialogOpen]:``}:null}},eh=G.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=qu(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;Fm(),Jr({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?Wp(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=en(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Up,hidden:!m,onKeyDown(e){Km.has(e.key)&&e.stopPropagation()},style:{[Mm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:$m});return(0,K.jsx)(sf,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})});function th(e){return nn(19)?e:e?`true`:void 0}var nh=G.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,K.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),rh=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=qu(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,K.jsx)(Pm.Provider,{value:n,children:(0,K.jsxs)(Kd,{ref:t,...r,children:[a&&o===!0&&(0,K.jsx)(nh,{ref:i.context.internalBackdropRef,inert:th(!s)}),e.children]})}):null}),ih={},ah={},oh=``;function sh(e){if(typeof document>`u`)return!1;let t=Gr(e);return fr(t).innerWidth-t.documentElement.clientWidth>0}function ch(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Gr(e),n=t.documentElement,r=t.body,i=sr(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function lh(e){let t=Gr(e),n=t.documentElement,r=t.body,i=sr(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function uh(e){let t=Gr(e),n=t.documentElement,r=t.body,i=fr(n),a=0,o=0,s=!1,c=Yr.create();if(dl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ih={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},oh=n.style.scrollBehavior,ah={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=sr(n)?n:r;if(s=ch(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,ih),Object.assign(r.style,ah),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=oh)}function d(){u(),c.request(l)}l();let f=W(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var dh=new class{lockCount=0;restore=null;timeoutLock=Qc.create();timeoutUnlock=Qc.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Gr(e).documentElement,n=fr(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=tn;return}let r=ol||!sh(e);this.restore=r?lh(e):uh(e)}};function fh(e=!0,t=null){H(()=>{if(e)return dh.acquire(t)},[e,t])}function ph(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);tm(t,r),Qp(t);let{forceUnmount:i}=$p(r,t),a=G.useCallback(()=>{t.setOpen(!1,Ur(Hr))},[t]);G.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function mh({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=G.useState(0),[u,d]=G.useState(0),f=c===0,p=pf(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=Nr(t);return f&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||U(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:f});return fh(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),d(0)}),G.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,u+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,u,t]),em(e,{activeTriggerProps:p.reference??Xt,inactiveTriggerProps:p.trigger??Xt,popupProps:p.floating??Xt,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var hh={...dm,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},gh=class e extends zp{constructor(e,t,n=!1){let r=new nm,i=_h(e);i.floatingRootContext=am(r,t,n),super(i,{popupRef:G.createRef(),backdropRef:G.createRef(),internalBackdropRef:G.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},hh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};qp(n,e,t.trigger),this.update(n)};static useStore(t,n){return Gp(t,(t,r)=>new e(n,t,r),!0).store}};function _h(e={}){return{...im(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function vh(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=qu(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=gh.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Cp(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);ph({store:b,actionsRef:l});let w=x||S,T=G.useMemo(()=>({store:b}),[b]);return(0,K.jsx)(Gu.Provider,{value:!1,children:(0,K.jsxs)(Ku.Provider,{value:T,children:[w&&(0,K.jsx)(mh,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}function yh(e){return vh(e,G.useContext(Gu)?`drawer`:`dialog`)}var bh=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=qu(),c=jr(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),en(`h2`,e,{ref:t,props:[{id:c},o]})});function xh(e){let t=(0,Ks.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,K.jsx)(yh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Sh(e){let t=(0,Ks.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,K.jsx)(rh,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Ch(e){let t=(0,Ks.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=xn(`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,K.jsx)(ad,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wh(e){let t=(0,Ks.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?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,K.jsx)(Ch,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=xn(`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,K.jsxs)(od,{"data-slot":`sheet-close`,render:(0,K.jsx)(wr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,K.jsx)(Rc,{}),(0,K.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,K.jsxs)(Sh,{children:[l,(0,K.jsxs)(eh,{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 Th(e){let t=(0,Ks.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=xn(`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,K.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Eh(e){let t=(0,Ks.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=xn(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(bh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Dh(e){let t=(0,Ks.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=xn(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(sd,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Oh=G.createContext(void 0);function kh(e){let t=G.useContext(Oh);if(t===void 0&&!e)throw Error(an(72));return t}var Ah={...dm,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},jh=class e extends zp{constructor(e,t,n=!1){let r=new nm,i={...Mh(),...e};i.floatingRootContext=am(r,t,n),super(i,{popupRef:G.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},Ah)}setOpen=(e,t)=>{Yp(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Ur(Fr,e))}static useStore(t,n){return Gp(t,(t,r)=>new e(n,t,r)).store}};function Mh(){return{...im(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Nh=Op(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=jh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Xp(p,r,n,d),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}),p.useSyncedValue(`disabled`,t),Qp(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=$p(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=G.useRef(null);H(()=>{m&&t&&p.setOpen(!1,Ur(Lr))},[m,t,p]),H(()=>{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]),H(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=G.useCallback(()=>{p.setOpen(!1,Ur(Hr))},[p]);G.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,K.jsxs)(Oh.Provider,{value:p,children:[E&&(0,K.jsx)(Ph,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function Ph({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=pf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=uf(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return em(e,{activeTriggerProps:G.useMemo(()=>Qt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:G.useMemo(()=>Qt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:G.useMemo(()=>Qt(Up,a.floating,i.floating),[a.floating,i.floating])}),null}var Fh=G.createContext(void 0);function Ih(){return G.useContext(Fh)}var Lh=function(e){return e[e.popupOpen=Yu.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Rh=`data-base-ui-tooltip-trigger`;function zh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),I=hm(v,{enabled:!A}).reference,ae=e=>{let t=N.current,n=zh(e),r=ie(n),i=y.current,a=i&&n&&U(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Ur(Ir,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Pl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Ur(Ir,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},oe=m.useState(`triggerProps`,C);return en(`button`,e,{state:{open:_},ref:[t,S,y],props:[F,I,C||M!==`none`?oe:void 0,{onMouseOver(e){ae(e.nativeEvent)},onFocus(e){re(zh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.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,[Lh.triggerDisabled]:A?``:void 0,[Rh]:A?void 0:``},f],stateAttributesMapping:td})}),Hh=G.createContext(void 0);function Uh(){let e=G.useContext(Hh);if(e===void 0)throw Error(an(70));return e}var Wh=G.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Gd({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,K.jsxs)(G.Fragment,{children:[l,c&&Vd.createPortal(n,c)]})}),Gh=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return kh().useState(`mounted`)||n?(0,K.jsx)(Hh.Provider,{value:n,children:(0,K.jsx)(Wh,{ref:t,...r})}):null}),Kh=G.createContext(void 0);function qh(){let e=G.useContext(Kh);if(e===void 0)throw Error(an(71));return e}var Jh=G.createContext(void 0);function Yh(){return G.useContext(Jh)?.direction??`ltr`}var Xh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Hl(e,t)||{};if(l==null)return{};let f=ou(u),p={x:n,y:r},m=Jl(i),h=Kl(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Vl(k,j,A),ee=!c.arrow&&Wl(i)!=null&&j!==M&&a.reference[h]/2-(j({...Xh(e),options:[e,t]}),Qh=Sp().fn,$h={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Qh(e)).data?.referenceHidden||a}}}},eg={sideX:`left`,sideY:`top`},tg={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=fr(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:eg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Gr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Ul(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:eg.sideX,g=f===`top`?`bottom`:eg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function ng(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function rg(e,t,n){let{rects:r,placement:i}=e;return{side:ng(t,Ul(i),n),align:Wl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ig(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=G.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=Cr(D),k=D?O:t,A=$r(t),j=$r(h),M=Yh()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let F={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},I=G.useRef(null),ae=$r(i),oe=$r(o),L=typeof i==`function`?0:i,se=typeof o==`function`?0:o,ce=[];f&&ce.push(f),ce.push(_p(e=>{let t=rg(e,r,M),n=typeof ae.current==`function`?ae.current(t):ae.current,i=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[L,se,M,r]));let le=T===`none`&&w!==`shift`,ue=!le&&(l||_||w===`shift`),de=w===`none`?null:bp({...F,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),fe=le?null:vp(e=>{let t=Gr(e.elements.floating).documentElement;return{...F,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:ue,limiter:l||_?void 0:yp(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=ql(Ul(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[F,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?ce.push(fe,de):ce.push(de,fe),ce.push(xp({...F,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=fr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Zh(e=>({element:I.current||Gr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=Ul(a),l=ql(c),u=I.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(rg(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ue&&l===`y`&&b?S:x),{}}},$h,y),H(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let pe=G.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:me,elements:he,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=pm({rootContext:m,open:p?h:void 0,placement:N,middleware:ce,strategy:n,whileElementsMounted:p?void 0:(...e)=>rp(...e,pe),nodeId:v,externalTree:x}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||eg,Ee=Se?n:`fixed`,De=G.useMemo(()=>{let e=y?{position:Ee,[we]:ge,[Te]:_e}:{position:Ee,...Ce};return Se||(e.opacity=0),e},[y,Ee,we,ge,Te,_e,Ce,Se]),Oe=G.useRef(null);H(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(ag(t)?t.current:t)||null;n!==Oe.current&&(me.setPositionReference(n),Oe.current=n)},[h,me,k,A]),G.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&ag(e)&&e.current!==Oe.current&&(me.setPositionReference(e.current),Oe.current=e.current)},[h,me,k,A]),G.useEffect(()=>{if(p&&h&&he.reference&&he.floating)return rp(he.reference,he.floating,ye,pe)},[p,h,he,ye,pe]);let ke=Ul(be),Ae=ng(r,ke,M),je=Wl(be)||`center`,Me=!!ve.hide?.referenceHidden;H(()=>{b&&h&&Se&&C(ke)},[b,h,Se,ke]);let Ne=G.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Pe=ve.arrow?.centerOffset!==0;return G.useMemo(()=>({positionerStyles:De,arrowStyles:Ne,arrowRef:I,arrowUncentered:Pe,side:Ae,align:je,physicalSide:ke,anchorHidden:Me,refs:me,context:xe,isPositioned:Se,update:ye}),[De,Ne,I,Pe,Ae,je,ke,Me,me,xe,Se,ye])}function ag(e){return e!=null&&`current`in e}function og(e){return e===`starting`?Ld:Xt}function sg(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),en(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},og(r),i],stateAttributesMapping:rd})}var cg=G.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=zd,style:g,..._}=e,v=kh(),y=Uh(),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=ig({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:v.useState(`hasViewport`)?tg:void 0}),O=sg(e,G.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,K.jsx)(Kh.Provider,{value:D,children:O})}),lg={...rd,...Qr},ug=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kh(),{side:s,align:c}=qh(),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`);Jr({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),xm(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return en(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,og(d),a],stateAttributesMapping:lg})}),dg=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=kh(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=qh();return en(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:rd})}),fg=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=G.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=G.useMemo(()=>({open:t,close:n}),[t,n]);return(0,K.jsx)(Fh.Provider,{value:i,children:(0,K.jsx)(hd,{delay:a,timeoutMs:r,children:e.children})})};function pg(e){let t=(0,Ks.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,K.jsx)(fg,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function mg(e){let t=(0,Ks.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,K.jsx)(pg,{children:(0,K.jsx)(Nh,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function hg(e){let t=(0,Ks.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,K.jsx)(Vh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function gg(e){let t=(0,Ks.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=xn(`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,K.jsx)(dg,{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,K.jsxs)(ug,{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,K.jsx)(Gh,{children:(0,K.jsx)(cg,{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 _g=window.matchMedia(`(max-width: 767px)`);function vg(e){return _g.addEventListener(`change`,e),()=>_g.removeEventListener(`change`,e)}function yg(){return _g.matches}function bg(){return(0,G.useSyncExternalStore)(vg,yg)}var xg=`sidebar_state`,Sg=3600*24*7,Cg=`12rem`,wg=`16rem`,Tg=`3rem`,Eg=`b`,Dg=G.createContext(null);function Og(){let e=G.useContext(Dg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function kg(e){let t=(0,Ks.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?!0:c,u=bg(),[d,f]=G.useState(!1),[p,m]=G.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=`${xg}=${t}; path=/; max-age=${Sg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(jg):_(Ag),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===Eg&&(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),G.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]===r?T=t[25]:(T=xn(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":Cg,"--sidebar-width-icon":Tg,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,K.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,K.jsx)(Dg.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function Ag(e){return!e}function jg(e){return!e}function Mg(e){let t=(0,Ks.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}=Og();if(u===`none`){let e;t[7]===r?e=t[8]:(e=xn(`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,K.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":wg},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,K.jsxs)(Th,{className:`sr-only`,children:[(0,K.jsx)(Eh,{children:`Sidebar`}),(0,K.jsx)(Dh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,K.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,K.jsxs)(wh,{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,K.jsx)(xh,{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]:(_=xn(`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,K.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=xn(`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,K.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,K.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,K.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 Ng(e){let t=(0,Ks.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}=Og(),o;t[4]===n?o=t[5]:(o=xn(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,K.jsx)(dc,{}),l=(0,K.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,K.jsxs)(wr,{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 Pg(e){let t=(0,Ks.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}=Og(),a;t[3]===n?a=t[4]:(a=xn(`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,K.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Fg(e){let t=(0,Ks.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=xn(`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,K.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 Ig(e){let t=(0,Ks.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=xn(`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,K.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 Lg(e){let t=(0,Ks.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=xn(`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,K.jsx)(Wu,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rg(e){let t=(0,Ks.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=xn(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.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 zg(e){let t=(0,Ks.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=xn(`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,K.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 Bg(e){let t=(0,Ks.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Zs,r=`div`,i=Qt({className:xn(`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 Vg(e){let t=(0,Ks.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=xn(`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,K.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 Hg(e){let t=(0,Ks.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=xn(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.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 Ug=rn(`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 Wg(e){let t=(0,Ks.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Og(),m=Qt({className:xn(Ug({variant:u,size:d}),s)},c),h=o?hg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=Zs(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,K.jsx)(gg,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,K.jsxs)(mg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var Gg=class{async sign(e,t,n){return e}},Kg=`ref`,qg=-1,Jg=!0,Yg=`isSet`,Xg=`PartitionResult`,Zg=`booleanEquals`,Qg=`stringEquals`,$g=`getAttr`,e_=`us-east-1`,t_=`sigv4`,n_=`sts`,r_=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,i_={[Kg]:`Endpoint`},a_={[Kg]:`Region`},o_={[Kg]:Xg},s_={},c_=[a_],l_={conditions:[[Yg,[i_]],[Yg,c_],[`aws.partition`,c_,Xg],[Zg,[{[Kg]:`UseFIPS`},Jg]],[Zg,[{[Kg]:`UseDualStack`},Jg]],[Qg,[a_,`aws-global`]],[Zg,[{[Kg]:`UseGlobalEndpoint`},Jg]],[Qg,[a_,`eu-central-1`]],[Zg,[{fn:$g,argv:[o_,`supportsDualStack`]},Jg]],[Zg,[{fn:$g,argv:[o_,`supportsFIPS`]},Jg]],[Qg,[a_,`ap-south-1`]],[Qg,[a_,`eu-north-1`]],[Qg,[a_,`eu-west-1`]],[Qg,[a_,`eu-west-2`]],[Qg,[a_,`eu-west-3`]],[Qg,[a_,`sa-east-1`]],[Qg,[a_,e_]],[Qg,[a_,`us-east-2`]],[Qg,[a_,`us-west-2`]],[Qg,[a_,`us-west-1`]],[Qg,[a_,`ca-central-1`]],[Qg,[a_,`ap-southeast-1`]],[Qg,[a_,`ap-northeast-1`]],[Qg,[a_,`ap-southeast-2`]],[Qg,[{fn:$g,argv:[o_,`name`]},`aws-us-gov`]]],results:[[qg],[`https://sts.amazonaws.com`,{authSchemes:[{name:t_,signingName:n_,signingRegion:e_}]}],[r_,{authSchemes:[{name:t_,signingName:n_,signingRegion:`{Region}`}]}],[qg,`Invalid Configuration: FIPS and custom endpoint are not supported`],[qg,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[i_,s_],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,s_],[qg,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,s_],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,s_],[qg,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,s_],[qg,`DualStack is enabled but this partition does not support DualStack`],[r_,s_],[qg,`Invalid Configuration: Missing Region`]]},u_=2,d_=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),f_=_n.from(d_,u_,l_.conditions,l_.results),p_=new Fn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),m_=(e,t={})=>p_.get(e,()=>or(f_,{endpointParams:e,logger:t.logger}));cn.aws=mn;var h_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=hn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Pn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:hn(t).operation,region:await Cn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function g_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function __(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function v_(e){return{schemeId:`smithy.api#noAuth`}}var y_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Nn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(m_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(v_(e)),t.push(__(e));break;case`AssumeRoleWithWebIdentity`:t.push(v_(e)),t.push(__(e));break;default:t.push(g_(e)),t.push(__(e))}return t},{"aws.auth#sigv4":g_,"aws.auth#sigv4a":__,"smithy.api#noAuth":v_}),b_=e=>{let t=Tn(fn(e));return Object.assign(t,{authSchemePreference:Cn(e.authSchemePreference??[])})},x_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),S_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},C_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1075.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`premove dist-es && tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove dist-types && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.23`,"@aws-sdk/credential-provider-node":`^3.972.58`,"@aws-sdk/signature-v4-multi-region":`^3.996.35`,"@aws-sdk/types":`^3.973.13`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},w_=class e extends Bn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},T_=class e extends w_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},E_=class e extends w_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},D_=class e extends w_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},O_=class e extends w_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},k_=class e extends w_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},A_=class e extends w_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},j_=class e extends w_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},M_=class e extends w_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},N_=class e extends w_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},P_=class e extends w_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},F_=class e extends w_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},I_=class e extends w_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},L_=`Arn`,R_=`AccessKeyId`,z_=`Account`,B_=`Credentials`,V_=`DurationSeconds`,H_=`Expiration`,U_=`ExpiredTokenException`,W_=`ExpiredTradeInTokenException`,G_=`GetCallerIdentity`,K_=`GetCallerIdentityRequest`,q_=`GetCallerIdentityResponse`,J_=`GetSessionToken`,Y_=`GetSessionTokenRequest`,X_=`GetSessionTokenResponse`,Z_=`InvalidAuthorizationMessageException`,Q_=`IDPCommunicationErrorException`,$_=`IDPRejectedClaimException`,ev=`InvalidIdentityTokenException`,tv=`JWTPayloadSizeExceededException`,nv=`MalformedPolicyDocumentException`,rv=`OutboundWebIdentityFederationDisabledException`,iv=`PackedPolicyTooLargeException`,av=`RegionDisabledException`,ov=`SecretAccessKey`,sv=`SessionDurationEscalationException`,cv=`SerialNumber`,lv=`SessionToken`,uv=`TokenCode`,dv=`UserId`,fv=`accessKeySecretType`,pv=`awsQueryError`,mv=`client`,hv=`error`,gv=`httpError`,_v=`message`,vv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,yv=`com.amazonaws.sts`,bv=un.for(vv),xv=[-3,vv,`STSServiceException`,0,[],[]];bv.registerError(xv,w_);var Sv=un.for(yv),Cv=[-3,yv,U_,{[pv]:[`ExpiredTokenException`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Cv,T_);var wv=[-3,yv,W_,{[pv]:[`ExpiredTradeInTokenException`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(wv,N_);var Tv=[-3,yv,Q_,{[pv]:[`IDPCommunicationError`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Tv,j_);var Ev=[-3,yv,$_,{[pv]:[`IDPRejectedClaim`,403],[hv]:mv,[gv]:403},[_v],[0]];Sv.registerError(Ev,k_);var Dv=[-3,yv,Z_,{[pv]:[`InvalidAuthorizationMessageException`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Dv,M_);var Ov=[-3,yv,ev,{[pv]:[`InvalidIdentityToken`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Ov,A_);var kv=[-3,yv,tv,{[pv]:[`JWTPayloadSizeExceededException`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(kv,P_);var Av=[-3,yv,nv,{[pv]:[`MalformedPolicyDocument`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Av,E_);var jv=[-3,yv,rv,{[pv]:[`OutboundWebIdentityFederationDisabledException`,403],[hv]:mv,[gv]:403},[_v],[0]];Sv.registerError(jv,F_);var Mv=[-3,yv,iv,{[pv]:[`PackedPolicyTooLarge`,400],[hv]:mv,[gv]:400},[_v],[0]];Sv.registerError(Mv,D_);var Nv=[-3,yv,av,{[pv]:[`RegionDisabledException`,403],[hv]:mv,[gv]:403},[_v],[0]];Sv.registerError(Nv,O_);var Pv=[-3,yv,sv,{[pv]:[`SessionDurationEscalationException`,403],[hv]:mv,[gv]:403},[_v],[0]];Sv.registerError(Pv,I_);var Fv=[bv,Sv],Iv=[0,yv,fv,8,0],Lv=[3,yv,B_,0,[R_,ov,lv,H_],[0,[()=>Iv,0],0,4],4],Rv=[3,yv,K_,0,[],[]],zv=[3,yv,q_,0,[dv,z_,L_],[0,0,0]],Bv=[3,yv,Y_,0,[V_,cv,uv],[1,0,0]],Vv=[3,yv,X_,0,[B_],[[()=>Lv,0]]],Hv=[9,yv,G_,0,()=>Rv,()=>zv],Uv=[9,yv,J_,0,()=>Bv,()=>Vv],Wv=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??ni,base64Encoder:e?.base64Encoder??ii,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??m_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??y_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new sn},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new qn},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Gg}],logger:e?.logger??new zn,protocol:e?.protocol??Un,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:Fv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Nn,urlParser:e?.urlParser??Kn,utf8Decoder:e?.utf8Decoder??ti,utf8Encoder:e?.utf8Encoder??ri}),Gv=e=>{let t=Gn(e),n=()=>t().then(ir),r=Wv(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ai,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??In({serviceId:r.serviceId,clientVersion:C_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Jn(`Region is missing`),requestHandler:Mn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Wn),sha256:e?.sha256??ln,streamCollector:e?.streamCollector??rr,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Kv=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},qv=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Jv=(e,t)=>{let n=Object.assign(wn(e),nr(e),tr(e),Kv(e));return t.forEach(e=>e.configure(n)),Object.assign(e,Dn(n),ar(n),Vn(n),qv(n))},Yv=class extends En{config;constructor(...[e]){let t=Gv(e||{});super(t),this.initConfig=t;let n=Jv(b_(An(Hn(Sn(er(bn(x_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(pn(this.config)),this.middlewareStack.use(gn(this.config)),this.middlewareStack.use(Xn(this.config)),this.middlewareStack.use(Zn(this.config)),this.middlewareStack.use(on(this.config)),this.middlewareStack.use(kn(this.config)),this.middlewareStack.use(Rn(this.config)),this.middlewareStack.use(Ln(this.config,{httpAuthSchemeParametersProvider:h_,identityProviderConfigProvider:async e=>new Qn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(yn(this.config))}destroy(){super.destroy()}},Xv=class extends B.classBuilder().ep(S_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(Hv).build(){},Zv=class extends B.classBuilder().ep(S_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(Uv).build(){},Qv=`ap-southeast-2`,$v=9999,ey=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function ty(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function ny({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new On({method:`POST`,protocol:r,hostname:`localhost`,port:$v,path:`/`,headers:{host:`localhost:${$v}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new dn({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:Qv,service:n,sha256:ln}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=ty(t,`Code`),r=ty(t,`Message`)??t;throw new ey(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var ry=`ap-southeast-2`,iy=`${window.location.protocol}//localhost:9999`,ay=43200;function oy(e){e.middlewareStack.add(e=>async t=>(On.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function sy(e){let t=new Yv({endpoint:iy,region:ry,credentials:e});return oy(t),t}function cy(){let e=$n();if(!e)throw Error(`AWS credentials not configured`);return sy({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function ly(e){let t=(await sy(e).send(new Zv({DurationSeconds:ay}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var uy=`000000000001`;function dy(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var fy=(0,G.createContext)(void 0);function py({children:e}){let[t,n]=(0,G.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,G.useEffect)(()=>{async function e(){let e=$n();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await cy().send(new Xv({})),r=t.Account??null,i=r===uy,a=null;if(i)try{a=await ny({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:dy(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,K.jsx)(fy,{value:t,children:e})}function my(){let e=(0,G.useContext)(fy);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var hy=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function gy(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&hy.has(t)}var _y=class extends B.classBuilder().ep(Bt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(ft).build(){},vy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(it).build(){},yy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Ht).build(){},by=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(Jt).build(){},xy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(st).build(){},Sy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Kt).build(){},Cy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(He).build(){},wy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(ye).build(){},Ty=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(Wt).build(){},Ey=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(We).build(){},Dy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(xe).build(){},Oy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(be).build(){},ky=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(Fe).build(){},Ay=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(wt).build(){},jy=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(ve).build(){},My=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(xt).build(){},Ny=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(Me).build(){},Py=class extends B.classBuilder().ep(Le).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(Ne).build(){},Fy=class extends B.classBuilder().ep(ze).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeImages`,{}).n(`ECRClient`,`DescribeImagesCommand`).sc(Pe).build(){},Iy=class extends B.classBuilder().ep(ze).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeRepositories`,{}).n(`ECRClient`,`DescribeRepositoriesCommand`).sc(Ct).build(){},Ly=class extends B.classBuilder().ep(ze).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetLifecyclePolicy`,{}).n(`ECRClient`,`GetLifecyclePolicyCommand`).sc(_e).build(){},Ry=class extends B.classBuilder().ep(ze).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetRepositoryPolicy`,{}).n(`ECRClient`,`GetRepositoryPolicyCommand`).sc(je).build(){},zy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeClusters`,{}).n(`ECSClient`,`DescribeClustersCommand`).sc(ut).build(){},By=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeContainerInstances`,{}).n(`ECSClient`,`DescribeContainerInstancesCommand`).sc(Et).build(){},Vy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeServices`,{}).n(`ECSClient`,`DescribeServicesCommand`).sc(Vt).build(){},Hy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeTaskDefinition`,{}).n(`ECSClient`,`DescribeTaskDefinitionCommand`).sc(dt).build(){},Uy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`DescribeTasks`,{}).n(`ECSClient`,`DescribeTasksCommand`).sc(mt).build(){},Wy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListClusters`,{}).n(`ECSClient`,`ListClustersCommand`).sc(Mt).build(){},Gy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListContainerInstances`,{}).n(`ECSClient`,`ListContainerInstancesCommand`).sc(Dt).build(){},Ky=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListServices`,{}).n(`ECSClient`,`ListServicesCommand`).sc(vt).build(){},qy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListTaskDefinitions`,{}).n(`ECSClient`,`ListTaskDefinitionsCommand`).sc(gt).build(){},Jy=class extends B.classBuilder().ep(Ve).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerServiceV20141113`,`ListTasks`,{}).n(`ECSClient`,`ListTasksCommand`).sc(rt).build(){},Yy=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(qe).build(){},Xy=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(Te).build(){},Zy=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Ke).build(){},Qy=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Ye).build(){},$y=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(Ce).build(){},eb=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(Pt).build(){},tb=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(Oe).build(){},nb=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc($e).build(){},rb=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(Ze).build(){},ib=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(tt).build(){},ab=class extends B.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(Re).build(){},ob=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(Ot).build(){},sb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(yt).build(){},cb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(_t).build(){},lb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(at).build(){},ub=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(Ut).build(){},db=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(Yt).build(){},fb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(ct).build(){},pb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(qt).build(){},mb=class extends B.classBuilder().ep(St).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(Ue).build(){},hb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(we).build(){},gb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(Ge).build(){},_b=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Je).build(){},vb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(Se).build(){},yb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(ke).build(){},bb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(Nt).build(){},xb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(De).build(){},Sb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(Qe).build(){},Cb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(Xe).build(){},wb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(et).build(){},Tb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(Ie).build(){},Eb=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(ge).build(){},Db=class extends B.classBuilder().ep(Lt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(pt).build(){},Ob=class extends B.classBuilder().ep(Gt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Be(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(ht).build(){},kb=class extends B.classBuilder().ep({...Gt,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Be(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(nt).build(){},Ab=!1;function jb(e,t){Ab||!gy(e)||(Ab=!0,Yn(),zt(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Mb(){let e=new oa({queryCache:new aa({onError:t=>jb(t,e)}),mutationCache:new Xi({onError:t=>jb(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Nb(){let e=(0,Ks.c)(8),{theme:t,setTheme:n}=Xs(),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,K.jsx)(Pc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,K.jsx)(Ec,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,K.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,K.jsxs)(wr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Pb(){let e=(0,Ks.c)(7),{isAdmin:t,license:n}=my(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=xn(`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,K.jsx)(Ng,{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,K.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:xn(br({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,K.jsx)(Nb,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,K.jsxs)(`header`,{className:i,children:[a,(0,K.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function Fb(){let e=(0,Ks.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,K.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,K.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,K.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,K.jsx)(R,{to:`/`,children:(0,K.jsx)(wr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function Ib(){let e=(0,Ks.c)(210),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Lb},e[0]=t):t=e[0];let n=Is(t),r=le(),i=ca(),{isAdmin:a}=my(),o;e[1]!==r||e[2]!==i?(o=function(){Yn(),zt(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,K.jsxs)(Fg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,K.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,K.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,K.jsx)(Bg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,K.jsx)(lc,{className:`size-4`}),f=(0,K.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/`,children:(0,K.jsxs)(Wg,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/nodes`,children:(0,K.jsxs)(Wg,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,K.jsx)(jc,{className:`size-4`}),(0,K.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,K.jsxs)(zg,{children:[l,(0,K.jsxs)(Vg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,K.jsx)(Bg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,K.jsx)(jc,{className:`size-4`}),y=(0,K.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-instances`,children:(0,K.jsxs)(Wg,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,K.jsx)(xc,{className:`size-4`}),C=(0,K.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-images`,children:(0,K.jsxs)(Wg,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,K.jsx)(Sc,{className:`size-4`}),D=(0,K.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-key-pairs`,children:(0,K.jsxs)(Wg,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,K.jsx)(Tc,{className:`size-4`}),j=(0,K.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-addresses`,children:(0,K.jsxs)(Wg,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,K.jsx)(yc,{className:`size-4`}),P=(0,K.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-volumes`,children:(0,K.jsxs)(Wg,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,K.jsx)(hc,{className:`size-4`}),ie=(0,K.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let F;e[51]===ne?F=e[52]:(F=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-snapshots`,children:(0,K.jsxs)(Wg,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=F);let I;e[53]===n?I=e[54]:(I=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=I);let ae,oe;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,K.jsx)(uc,{className:`size-4`}),oe=(0,K.jsx)(`span`,{children:`Placement Groups`}),e[55]=ae,e[56]=oe):(ae=e[55],oe=e[56]);let L;e[57]===I?L=e[58]:(L=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-placement-groups`,children:(0,K.jsxs)(Wg,{isActive:I,tooltip:`Placement Groups`,children:[ae,oe]})})}),e[57]=I,e[58]=L);let se;e[59]===n?se=e[60]:(se=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=se);let ce,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,K.jsx)(Lc,{className:`size-4`}),ue=(0,K.jsx)(`span`,{children:`Load Balancers`}),e[61]=ce,e[62]=ue):(ce=e[61],ue=e[62]);let de;e[63]===se?de=e[64]:(de=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-load-balancers`,children:(0,K.jsxs)(Wg,{isActive:se,tooltip:`Load Balancers`,children:[ce,ue]})})}),e[63]=se,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,K.jsx)(_c,{className:`size-4`}),me=(0,K.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-target-groups`,children:(0,K.jsxs)(Wg,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==F||e[77]!==L||e[78]!==de||e[79]!==he?(ge=(0,K.jsxs)(zg,{children:[g,(0,K.jsxs)(Vg,{children:[b,w,O,M,te,F,L,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=F,e[77]=L,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,K.jsx)(Bg,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,K.jsx)(Dc,{className:`size-4`}),be=(0,K.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-vpcs`,children:(0,K.jsxs)(Wg,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,K.jsx)(Cc,{className:`size-4`}),we=(0,K.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-subnets`,children:(0,K.jsxs)(Wg,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,K.jsx)(Mc,{className:`size-4`}),Oe=(0,K.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-security-groups`,children:(0,K.jsxs)(Wg,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,K.jsx)(kc,{className:`size-4`}),Me=(0,K.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-route-tables`,children:(0,K.jsxs)(Wg,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,K.jsx)(vc,{className:`size-4`}),Ie=(0,K.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-internet-gateways`,children:(0,K.jsxs)(Wg,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,K.jsx)(Ac,{className:`size-4`}),Be=(0,K.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ec2/describe-nat-gateways`,children:(0,K.jsxs)(Wg,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,K.jsxs)(zg,{children:[_e,(0,K.jsxs)(Vg,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,K.jsx)(Bg,{children:`Containers`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,K.jsx)(mc,{className:`size-4`}),Ke=(0,K.jsx)(`span`,{children:`EKS`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/eks/list-clusters`,children:(0,K.jsxs)(Wg,{isActive:We,tooltip:`EKS clusters`,children:[Ge,Ke]})})}),e[130]=We,e[131]=qe);let Je;e[132]===n?Je=e[133]:(Je=n.startsWith(`/ecr/list-repositories`),e[132]=n,e[133]=Je);let Ye,Xe;e[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,K.jsx)(Oc,{className:`size-4`}),Xe=(0,K.jsx)(`span`,{children:`ECR`}),e[134]=Ye,e[135]=Xe):(Ye=e[134],Xe=e[135]);let Ze;e[136]===Je?Ze=e[137]:(Ze=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ecr/list-repositories`,children:(0,K.jsxs)(Wg,{isActive:Je,tooltip:`ECR repositories`,children:[Ye,Xe]})})}),e[136]=Je,e[137]=Ze);let Qe;e[138]===n?Qe=e[139]:(Qe=n.startsWith(`/ecs/`),e[138]=n,e[139]=Qe);let $e,et;e[140]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,K.jsx)(gc,{className:`size-4`}),et=(0,K.jsx)(`span`,{children:`ECS`}),e[140]=$e,e[141]=et):($e=e[140],et=e[141]);let tt;e[142]===Qe?tt=e[143]:(tt=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/ecs/list-clusters`,children:(0,K.jsxs)(Wg,{isActive:Qe,tooltip:`ECS clusters`,children:[$e,et]})})}),e[142]=Qe,e[143]=tt);let nt;e[144]!==qe||e[145]!==Ze||e[146]!==tt?(nt=(0,K.jsxs)(zg,{children:[Ue,(0,K.jsxs)(Vg,{children:[qe,Ze,tt]})]}),e[144]=qe,e[145]=Ze,e[146]=tt,e[147]=nt):nt=e[147];let rt;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(rt=(0,K.jsx)(Bg,{children:`IAM`}),e[148]=rt):rt=e[148];let it;e[149]===n?it=e[150]:(it=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[149]=n,e[150]=it);let at,ot;e[151]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,K.jsx)(Ic,{className:`size-4`}),ot=(0,K.jsx)(`span`,{children:`Users`}),e[151]=at,e[152]=ot):(at=e[151],ot=e[152]);let st;e[153]===it?st=e[154]:(st=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/iam/list-users`,children:(0,K.jsxs)(Wg,{isActive:it,tooltip:`Users`,children:[at,ot]})})}),e[153]=it,e[154]=st);let ct;e[155]===n?ct=e[156]:(ct=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[155]=n,e[156]=ct);let lt,ut;e[157]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,K.jsx)(Nc,{className:`size-4`}),ut=(0,K.jsx)(`span`,{children:`Policies`}),e[157]=lt,e[158]=ut):(lt=e[157],ut=e[158]);let dt;e[159]===ct?dt=e[160]:(dt=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/iam/list-policies`,children:(0,K.jsxs)(Wg,{isActive:ct,tooltip:`Policies`,children:[lt,ut]})})}),e[159]=ct,e[160]=dt);let ft;e[161]===n?ft=e[162]:(ft=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[161]=n,e[162]=ft);let pt,mt;e[163]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,K.jsx)(Fc,{className:`size-4`}),mt=(0,K.jsx)(`span`,{children:`Roles`}),e[163]=pt,e[164]=mt):(pt=e[163],mt=e[164]);let ht;e[165]===ft?ht=e[166]:(ht=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/iam/list-roles`,children:(0,K.jsxs)(Wg,{isActive:ft,tooltip:`Roles`,children:[pt,mt]})})}),e[165]=ft,e[166]=ht);let gt;e[167]===n?gt=e[168]:(gt=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[167]=n,e[168]=gt);let _t,vt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,K.jsx)(bc,{className:`size-4`}),vt=(0,K.jsx)(`span`,{children:`Instance Profiles`}),e[169]=_t,e[170]=vt):(_t=e[169],vt=e[170]);let yt;e[171]===gt?yt=e[172]:(yt=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/iam/list-instance-profiles`,children:(0,K.jsxs)(Wg,{isActive:gt,tooltip:`Instance Profiles`,children:[_t,vt]})})}),e[171]=gt,e[172]=yt);let bt;e[173]!==ht||e[174]!==yt||e[175]!==st||e[176]!==dt?(bt=(0,K.jsxs)(zg,{children:[rt,(0,K.jsxs)(Vg,{children:[st,dt,ht,yt]})]}),e[173]=ht,e[174]=yt,e[175]=st,e[176]=dt,e[177]=bt):bt=e[177];let xt;e[178]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,K.jsx)(Bg,{children:`S3`}),e[178]=xt):xt=e[178];let St;e[179]===n?St=e[180]:(St=n.startsWith(`/s3/ls`),e[179]=n,e[180]=St);let Ct,wt;e[181]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,K.jsx)(jc,{className:`size-4`}),wt=(0,K.jsx)(`span`,{children:`Buckets`}),e[181]=Ct,e[182]=wt):(Ct=e[181],wt=e[182]);let Tt;e[183]===St?Tt=e[184]:(Tt=(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/s3/ls`,children:(0,K.jsxs)(Wg,{isActive:St,tooltip:`Buckets`,children:[Ct,wt]})})}),e[183]=St,e[184]=Tt);let Et;e[185]!==a||e[186]!==n?(Et=a&&(0,K.jsx)(Hg,{children:(0,K.jsx)(R,{to:`/s3/service-metrics`,children:(0,K.jsxs)(Wg,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,K.jsx)(fc,{className:`size-4`}),(0,K.jsx)(`span`,{children:`Service Metrics`})]})})}),e[185]=a,e[186]=n,e[187]=Et):Et=e[187];let Dt;e[188]!==Tt||e[189]!==Et?(Dt=(0,K.jsxs)(zg,{children:[xt,(0,K.jsxs)(Vg,{children:[Tt,Et]})]}),e[188]=Tt,e[189]=Et,e[190]=Dt):Dt=e[190];let Ot;e[191]===a?Ot=e[192]:(Ot=a&&(0,K.jsxs)(zg,{children:[(0,K.jsx)(Bg,{children:`Documentation`}),(0,K.jsx)(Vg,{children:(0,K.jsx)(Hg,{children:(0,K.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsxs)(Wg,{tooltip:`Documentation`,children:[(0,K.jsx)(pc,{className:`size-4`}),(0,K.jsx)(`span`,{children:`Docs`})]})})})})]}),e[191]=a,e[192]=Ot);let kt;e[193]!==bt||e[194]!==Dt||e[195]!==Ot||e[196]!==ge||e[197]!==He||e[198]!==nt||e[199]!==h?(kt=(0,K.jsxs)(Rg,{children:[h,ge,He,nt,bt,Dt,Ot]}),e[193]=bt,e[194]=Dt,e[195]=Ot,e[196]=ge,e[197]=He,e[198]=nt,e[199]=h,e[200]=kt):kt=e[200];let At;e[201]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,K.jsx)(Lg,{className:`mx-0 w-full`}),e[201]=At):At=e[201];let jt,Mt;e[202]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,K.jsx)(wc,{className:`size-4`}),Mt=(0,K.jsx)(`span`,{children:`Sign out`}),e[202]=jt,e[203]=Mt):(jt=e[202],Mt=e[203]);let Nt;e[204]===s?Nt=e[205]:(Nt=(0,K.jsxs)(Ig,{children:[At,(0,K.jsx)(Vg,{children:(0,K.jsx)(Hg,{children:(0,K.jsxs)(Wg,{onClick:s,tooltip:`Sign out`,children:[jt,Mt]})})})]}),e[204]=s,e[205]=Nt);let Pt;e[206]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,K.jsx)(Pg,{}),e[206]=Pt):Pt=e[206];let Ft;return e[207]!==kt||e[208]!==Nt?(Ft=(0,K.jsxs)(Mg,{collapsible:`icon`,children:[c,kt,Nt,Pt]}),e[207]=kt,e[208]=Nt,e[209]=Ft):Ft=e[209],Ft}function Lb(e){return e.pathname}function Rb(e){let t=(0,Ks.c)(18),{error:n,reset:r}=e,i=C(),a=ca(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,K.jsx)(Ib,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,K.jsx)(Pb,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,K.jsx)(`div`,{className:`flex justify-center`,children:(0,K.jsx)(cc,{className:`size-12 text-destructive`})}),d=(0,K.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,K.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,K.jsx)(wr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,K.jsx)(R,{to:`/`,children:(0,K.jsx)(wr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,K.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,K.jsxs)(K.Fragment,{children:[c,(0,K.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,K.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,K.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var zb=us()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Vs,{}),(0,K.jsx)(Ib,{}),(0,K.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,K.jsx)(Pb,{}),(0,K.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,K.jsx)(Ds,{})})]})]}),errorComponent:Rb,notFoundComponent:Fb}),Bb=J(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if($n())throw me({to:`/`})},component:Y(()=>V(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),`component`)}),Vb=J(`/_auth`)({beforeLoad:()=>{if(!$n())throw me({to:`/login`})},component:Y(()=>V(()=>import(`./route.js`),__vite__mapDeps([15,1])),`component`)}),Hb=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new yy({});return await Ft().send(e)},staleTime:3e5}),Ub=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new Cy({});return await Ft().send(e)},refetchInterval:5e3}),Wb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new Cy({InstanceIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),Gb=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new by({Filters:[{Name:`instance-id`,Values:[e]}]});return await Ft().send(t)},refetchInterval:5e3}),Kb=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new Sy({Filters:[{Name:`capacity`,Values:[`true`]}]});return await Ft().send(e)},refetchInterval:5e3}),qb=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new xy({});return await Ft().send(e)}}),Jb=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new xy({ImageIds:[e]});return await Ft().send(t)}}),Yb=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new Ty({});return await Ft().send(e)}}),Xb=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new Ty({KeyPairIds:[e]});return await Ft().send(t)}}),Zb=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new Oy({});return await Ft().send(e)},staleTime:3e5}),Qb=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new My({});return await Ft().send(e)}}),$b=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new My({SubnetIds:[e]});return await Ft().send(t)}}),ex=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new jy({});return await Ft().send(e)},refetchInterval:5e3}),tx=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new jy({SnapshotIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),nx=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new wy({});return await Ft().send(e)},refetchInterval:5e3}),rx=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new wy({InternetGatewayIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),ix=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new ky({});return await Ft().send(e)},refetchInterval:5e3}),ax=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new ky({RouteTableIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),ox=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new Py({});return await Ft().send(e)}}),sx=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new Py({VpcIds:[e]});return await Ft().send(t)}}),cx=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new Dy({});return await Ft().send(e)}}),lx=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new Dy({GroupIds:[e]});return await Ft().send(t)}}),ux=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new Ay({});return await Ft().send(e)}}),dx=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new Ay({GroupIds:[e]});return await Ft().send(t)}}),fx=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new vy({});return await Ft().send(e)},refetchInterval:5e3}),px=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new vy({AllocationIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),mx=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new Ey({});return await Ft().send(e)},refetchInterval:5e3}),hx=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new Ey({NatGatewayIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),gx=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new Ny({});return await Ft().send(e)},refetchInterval:5e3}),_x=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new Ny({VolumeIds:[e]});return await Ft().send(t)},refetchInterval:5e3}),vx=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new Ob({});return await Tt().send(e)}}),yx=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new kb({Bucket:e,Prefix:t,Delimiter:`/`});return await Tt().send(n)}}),bx=J(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Ub),e.queryClient.ensureQueryData(gx),e.queryClient.ensureQueryData(ox),e.queryClient.ensureQueryData(Yb),e.queryClient.ensureQueryData(vx),e.queryClient.ensureQueryData(ux),e.queryClient.ensureQueryData(mx),e.queryClient.ensureQueryData(fx),e.queryClient.ensureQueryData(nx)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:Y(()=>V(()=>import(`./_auth.js`),__vite__mapDeps([16,1,17,18,2,3,4,5,6,19,20,21,22,23,24,25,8,14])),`component`)}),xx=J(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:Y(()=>V(()=>import(`./nodes.js`),__vite__mapDeps([26,1,17,18,27,4,5,21,23,24,25,8,14])),`component`)}),Sx=J(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:Y(()=>V(()=>import(`./service-metrics.js`),__vite__mapDeps([28,1,17,18,27,21,23,24,4,5,25,8,14])),`component`)}),Cx=J(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vx)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:Y(()=>V(()=>import(`./ls.js`),__vite__mapDeps([29,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),wx=J(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-bucket.js`),__vite__mapDeps([32,1,33,3,4,5,34,35,19,36,7,8,37,38,2,6,39,40,9,41,42,21,10])),`component`)}),Tx=J(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./create-user.js`),__vite__mapDeps([43,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,44,40,9,41,42,21,10,45,46])),`component`)}),Ex=J(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./create-role.js`),__vite__mapDeps([47,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,44,40,9,41,42,21,10,48,49,46,45])),`component`)}),Dx=J(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./create-policy.js`),__vite__mapDeps([50,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,44,40,9,41,42,21,10,48,49,46,45])),`component`)}),Ox=J(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./create-instance-profile.js`),__vite__mapDeps([51,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,44,40,9,41,42,21,10,45,46])),`component`)}),kx=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new Db({});return await lt().send(e)},staleTime:3e5}),Ax=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new yb({UserName:e});return await lt().send(t)},staleTime:3e5}),jx=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new bb({UserName:e});return await lt().send(t)},staleTime:3e5}),Mx=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new Tb({Scope:`Local`});return await lt().send(e)},staleTime:3e5}),Nx=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new gb({PolicyArn:e});return await lt().send(t)},staleTime:3e5}),Px=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new _b({PolicyArn:e,VersionId:t});return await lt().send(n)},staleTime:3e5}),Fx=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Sb({UserName:e});return await lt().send(t)},staleTime:3e5}),Ix=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new Eb({});return await lt().send(e)},staleTime:3e5}),Lx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new vb({RoleName:e});return await lt().send(t)},staleTime:3e5}),Rx=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new xb({RoleName:e});return await lt().send(t)},staleTime:3e5}),zx=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Cb({});return await lt().send(e)},staleTime:3e5}),Bx=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new hb({InstanceProfileName:e});return await lt().send(t)},staleTime:3e5}),Vx=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new wb({RoleName:e});return await lt().send(t)},staleTime:3e5}),Hx=J(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ox),e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(Ix),e.queryClient.ensureQueryData(qb)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:Y(()=>V(()=>import(`./create-cluster.js`),__vite__mapDeps([52,1,30,18,33,3,4,5,53,38,2,6,35,54,8,19,7,12,13,55,36,56,57,40,58,46,44,9,37,41,42,21,10,59,60,61])),`component`)}),Ux=3e4,Wx=15e3,Gx=a({queryKey:[`ecs`,`clusters`],queryFn:async()=>{let e=ot(),t=(await e.send(new Wy({}))).clusterArns??[];return t.length===0?[]:(await e.send(new zy({clusters:t}))).clusters??[]},staleTime:Ux}),Kx=e=>a({queryKey:[`ecs`,`clusters`,e],queryFn:async()=>(await ot().send(new zy({clusters:[e]}))).clusters?.[0]??null,staleTime:Ux}),qx=e=>a({queryKey:[`ecs`,`clusters`,e,`services`],queryFn:async()=>{let t=ot(),n=(await t.send(new Ky({cluster:e}))).serviceArns??[];return n.length===0?[]:(await t.send(new Vy({cluster:e,services:n}))).services??[]},staleTime:Ux}),Jx=e=>a({queryKey:[`ecs`,`clusters`,e,`tasks`],queryFn:async()=>{let t=ot(),n=(await t.send(new Jy({cluster:e}))).taskArns??[];return n.length===0?[]:(await t.send(new Uy({cluster:e,tasks:n}))).tasks??[]},staleTime:Wx}),Yx=e=>a({queryKey:[`ecs`,`clusters`,e,`container-instances`],queryFn:async()=>{let t=ot(),n=(await t.send(new Gy({cluster:e}))).containerInstanceArns??[];return n.length===0?[]:(await t.send(new By({cluster:e,containerInstances:n}))).containerInstances??[]},staleTime:Ux}),Xx=a({queryKey:[`ecs`,`task-definitions`],queryFn:async()=>(await ot().send(new qy({}))).taskDefinitionArns??[],staleTime:Ux}),Zx=e=>a({queryKey:[`ecs`,`task-definitions`,e],queryFn:async()=>(await ot().send(new Hy({taskDefinition:e}))).taskDefinition,enabled:e!==``,staleTime:Ux}),Qx=J(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Xx)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./task-definitions.js`),__vite__mapDeps([62,1,30,18,2,3,4,5,6,7,8,63,40,41,21,64,59,65])),`component`)}),$x=J(`/_auth/ecs/(clusters)/run-task`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Xx),e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(ux)])},head:()=>({meta:[{title:`Run Task | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./run-task.js`),__vite__mapDeps([66,1,17,18,30,33,3,38,2,4,5,6,54,8,35,19,7,12,13,55,63,40,9,41,42,21,10,67])),`component`)}),eS=J(`/_auth/ecs/(clusters)/register-task-definition`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),head:()=>({meta:[{title:`Register Task Definition | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./register-task-definition.js`),__vite__mapDeps([68,1,33,3,38,2,4,5,6,54,8,35,19,7,12,13,55,69,70,63,40,9,41,42,21,10,67])),`component`)}),tS=5e3,nS=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new cb({});return await Rt().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?tS:!1}),rS=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new cb({LoadBalancerArns:[e]});return await Rt().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?tS:!1}),iS=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new sb({LoadBalancerArn:e});return await Rt().send(t)}}),aS=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new pb({});return await Rt().send(e)}}),oS=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new pb({TargetGroupArns:[e]});return await Rt().send(t)}}),sS=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new fb({TargetGroupArn:e});return await Rt().send(t)}}),cS=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new ob({LoadBalancerArn:e});return await Rt().send(t)}}),lS=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new lb({ListenerArn:e});return await Rt().send(t)}}),uS=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new mb({TargetGroupArn:e});return await Rt().send(t)}}),dS=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new ub({});return await Rt().send(e)},staleTime:1/0}),fS=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new db({ResourceArns:e});return await Rt().send(t)},enabled:e.length>0}),pS=J(`/_auth/ecs/(clusters)/create-service`)({validateSearch:e=>({cluster:typeof e.cluster==`string`?e.cluster:``}),loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Xx),e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(ux),e.queryClient.ensureQueryData(aS)])},head:()=>({meta:[{title:`Create Service | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./create-service.js`),__vite__mapDeps([71,1,17,18,30,33,3,38,2,4,5,6,54,8,35,19,7,12,13,55,63,40,9,41,42,21,10,67])),`component`)}),mS=J(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-vpc.js`),__vite__mapDeps([72,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,20,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),hS=J(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Hb)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-volume.js`),__vite__mapDeps([75,1,30,18,33,3,34,4,5,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),gS=J(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ox)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-target-group.js`),__vite__mapDeps([76,1,30,18,33,3,34,4,5,35,19,36,7,8,37,38,2,6,77,40,9,41,42,21,78,54,12,13,55,69,70,10,11,79])),`component`)}),_S=J(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ox),e.queryClient.ensureQueryData(Hb)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-subnet.js`),__vite__mapDeps([80,1,30,18,33,3,4,5,34,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),vS=J(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(gx)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-snapshot.js`),__vite__mapDeps([81,1,30,18,33,3,34,4,5,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,42,21,10,74,49])),`component`)}),yS=J(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ox)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-security-group.js`),__vite__mapDeps([82,1,30,18,33,3,4,5,34,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),bS=J(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ox)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-route-table.js`),__vite__mapDeps([83,1,30,18,33,3,4,5,38,2,6,54,8,35,19,7,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),xS=J(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-placement-group.js`),__vite__mapDeps([84,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),SS=J(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(fx)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([85,1,30,18,33,3,2,4,5,6,34,35,19,36,7,8,37,38,54,12,13,55,73,40,58,9,41,42,21,10,74])),`component`)}),CS=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new _y({});return await kt().send(e)}}),wS=J(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(ox),e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(ux),e.queryClient.ensureQueryData(aS),e.queryClient.ensureQueryData(CS),e.queryClient.ensureQueryData(dS)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-load-balancer.js`),__vite__mapDeps([86,1,30,18,33,3,4,5,34,35,19,36,7,8,37,38,2,6,54,12,13,55,69,70,87,40,41,10,59,49,77,9,42,21,78,11,79])),`component`)}),TS=J(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./import-key-pair.js`),__vite__mapDeps([88,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,73,40,58,9,41,42,21,10,74,49])),`component`)}),ES=J(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-key-pair.js`),__vite__mapDeps([89,1,33,3,34,4,5,35,19,36,7,8,37,53,38,2,6,90,73,40,58,9,41,42,21,10,74,59])),`component`)}),DS=J(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([91,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,73,40,58,9,41,42,21,10,74])),`component`)}),OS=J(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(qb),e.queryClient.ensureQueryData(Yb),e.queryClient.ensureQueryData(Kb),e.queryClient.ensureQueryData(Qb),e.queryClient.ensureQueryData(cx),e.queryClient.ensureQueryData(ox),e.queryClient.ensureQueryData(ux)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./run-instances.js`),__vite__mapDeps([92,1,30,18,33,3,4,5,34,35,19,36,7,8,37,38,2,6,54,12,13,55,73,40,58,9,41,21,10,74,11])),`component`)}),kS=J(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./allocate-address.js`),__vite__mapDeps([93,1,33,3,34,4,5,35,19,36,7,8,37,38,2,6,73,40,58,9,41,42,21,10,74])),`component`)}),AS=J(`/_auth/s3/ls/$bucket`)({component:Y(()=>V(()=>import(`./route2.js`),__vite__mapDeps([94,1])),`component`)}),jS=J(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(yx(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:Y(()=>V(()=>import(`./_bucket.js`),__vite__mapDeps([95,1,30,18,4,5,38,2,3,6,96,90,70,7,8,39,40,41,64,59,21])),`component`)}),MS=J(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kx)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./list-users.js`),__vite__mapDeps([97,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),NS=J(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ix)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./list-roles.js`),__vite__mapDeps([98,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),PS=J(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mx)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./list-policies.js`),__vite__mapDeps([99,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),FS=J(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zx)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([100,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),IS=3e4,LS=3e5,RS=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new ib({});return await jt().send(e)},staleTime:IS}),zS=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new Qy({name:e});return await jt().send(t)},staleTime:IS}),BS=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new ab({clusterName:e});return await jt().send(t)},staleTime:IS}),VS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new $y({clusterName:e,nodegroupName:t});return await jt().send(n)},staleTime:IS}),HS=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new eb({clusterName:e});return await jt().send(t)},staleTime:IS}),US=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new Yy({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:IS}),WS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new rb({clusterName:e,principalArn:t});return await jt().send(n)},staleTime:IS});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new tb({});return await jt().send(e)},staleTime:LS});var GS=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new Zy({});return await jt().send(e)},staleTime:LS}),KS=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new nb({clusterName:e});return await jt().send(t)},staleTime:IS}),qS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new Xy({clusterName:e,addonName:t});return await jt().send(n)},staleTime:IS}),JS=J(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(RS)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:Y(()=>V(()=>import(`./list-clusters2.js`),__vite__mapDeps([101,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),YS=J(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Gx),e.queryClient.ensureQueryData(qb)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./list-clusters.js`),__vite__mapDeps([102,1,30,18,33,3,2,4,5,6,53,35,36,56,7,8,63,40,37,41,21,10,59,64,22,60,65])),`component`)}),XS=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new Iy({});return await bt().send(e)}}),ZS=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new Fy({repositoryName:e});return await bt().send(t)}}),QS=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new Ry({repositoryName:e});return(await bt().send(t)).policyText??null}catch(e){if(e instanceof Ae)return null;throw e}}}),$S=e=>a({queryKey:[`ecr`,`repositories`,e,`lifecycle`],queryFn:async()=>{try{let t=new Ly({repositoryName:e});return(await bt().send(t)).lifecyclePolicyText??null}catch(e){if(e instanceof Ee)return null;throw e}}}),eC=J(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(XS)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:Y(()=>V(()=>import(`./list-repositories.js`),__vite__mapDeps([103,1,30,18,33,3,2,4,5,6,7,8,104,40,21,10,59])),`component`)}),tC=J(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ox)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-vpcs.js`),__vite__mapDeps([105,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),nC=J(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(gx)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-volumes.js`),__vite__mapDeps([106,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),rC=J(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(aS)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-target-groups.js`),__vite__mapDeps([107,1,17,18,30,33,3,2,4,5,6,7,8,21])),`component`)}),iC=J(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Qb)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-subnets.js`),__vite__mapDeps([108,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),aC=J(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ex)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-snapshots.js`),__vite__mapDeps([109,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),oC=J(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ux)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-security-groups.js`),__vite__mapDeps([110,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),sC=J(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ix)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-route-tables.js`),__vite__mapDeps([111,1,30,18,2,3,4,5,6,7,8,21,31,25])),`component`)}),cC=J(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(cx)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([112,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),lC=J(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mx)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([113,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),uC=J(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(nS)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([114,1,30,18,33,3,2,4,5,6,7,8,21,22])),`component`)}),dC=J(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Yb)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([115,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),fC=J(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(nx)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([116,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),pC=J(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ub)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-instances.js`),__vite__mapDeps([117,1,30,18,2,3,4,5,6,7,8,21,31,22])),`component`)}),mC=J(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qb)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-images.js`),__vite__mapDeps([118,1,30,18,21,31,2,3,4,5,6,22,60])),`component`)}),hC=J(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(fx)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./describe-addresses.js`),__vite__mapDeps([119,1,30,18,2,3,4,5,6,7,8,21,31])),`component`)}),gC=J(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=jn(t._splat??``);await e.queryClient.ensureQueryData(yx(t.bucket,n))},head:({params:e})=>({meta:[{title:`${vn(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:Y(()=>V(()=>import(`./_.js`),__vite__mapDeps([120,1,30,18,2,3,4,5,6,38,96,90,70,7,8,39,40,41,64,59])),`component`)}),_C=J(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ax(t.userName)),e.queryClient.ensureQueryData(jx(t.userName)),e.queryClient.ensureQueryData(Fx(t.userName)),e.queryClient.ensureQueryData(Mx)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./_userName.js`),__vite__mapDeps([121,1,30,18,33,3,4,5,53,38,2,6,35,70,7,8,44,40,37,41,21,59,64,122,22])),`component`)}),vC=J(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Lx(t.roleName)),e.queryClient.ensureQueryData(Rx(t.roleName)),e.queryClient.ensureQueryData(Vx(t.roleName)),e.queryClient.ensureQueryData(Mx)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./_roleName.js`),__vite__mapDeps([123,1,30,18,33,3,2,4,5,6,38,70,7,8,44,40,41,21,64,59,122,61])),`component`)}),yC=J(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(Nx(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(Px(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./_policyArn.js`),__vite__mapDeps([124,1,30,18,33,3,4,5,38,2,6,70,7,8,44,40,41,21,64,59,122,61])),`component`)}),bC=J(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Bx(t.instanceProfileName)),e.queryClient.ensureQueryData(Ix)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:Y(()=>V(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([125,1,30,18,33,3,2,4,5,6,38,70,7,8,44,40,41,21,64,59,122])),`component`)}),xC=J(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(zS(t.clusterName)),e.queryClient.ensureQueryData(BS(t.clusterName)),e.queryClient.ensureQueryData(HS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:Y(()=>V(()=>import(`./_clusterName2.js`),__vite__mapDeps([126,1,17,18,30,33,3,2,4,5,6,34,35,19,36,7,8,37,38,70,57,40,58,46,9,41,21,10,59,64,122,127,12,13,55,25,48,49])),`component`)}),SC=J(`/_auth/ecs/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Kx(t.clusterName)),e.queryClient.ensureQueryData(qx(t.clusterName)),e.queryClient.ensureQueryData(Jx(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./_clusterName.js`),__vite__mapDeps([128,1,17,18,30,33,3,2,4,5,6,38,70,7,8,63,40,41,21,10,59,64,122,22,127,12,13,55])),`component`)}),CC=J(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(XS),e.queryClient.ensureQueryData(ZS(n)),e.queryClient.ensureQueryData(QS(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:Y(()=>V(()=>import(`./_id17.js`),__vite__mapDeps([129,1,30,18,2,3,4,5,6,7,8,104,40,21,59,127,12,13,55,25,46,48,49])),`component`)}),wC=J(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(sx(t.id)),e.queryClient.ensureQueryData(Qb)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:Y(()=>V(()=>import(`./_id16.js`),__vite__mapDeps([130,1,30,18,33,3,2,4,5,6,38,70,7,8,73,40,58,41,21,64,59,122,22])),`component`)}),TC=J(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(_x(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id15.js`),__vite__mapDeps([131,1,30,18,33,3,38,2,4,5,6,73,40,58,9,41,42,7,8,21,10,74])),`component`)}),EC=J(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(_x(t.id)),e.queryClient.ensureQueryData(Ub)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id14.js`),__vite__mapDeps([132,1,30,18,33,3,2,4,5,6,38,54,8,35,19,7,12,13,55,70,73,40,58,41,21,10,59,64,122,22])),`component`)}),DC=J(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(oS(n)),e.queryClient.ensureQueryData(sS(n)),e.queryClient.ensureQueryData(fS([n])),e.queryClient.ensureQueryData(Ub)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:Y(()=>V(()=>import(`./_id13.js`),__vite__mapDeps([133,1,17,18,30,33,3,4,5,38,2,6,70,7,8,77,40,41,21,59,64,122,134,54,35,19,12,13,55,69,10,127])),`component`)}),OC=J(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData($b(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:Y(()=>V(()=>import(`./_id12.js`),__vite__mapDeps([135,1,30,18,33,3,2,4,5,6,38,70,7,8,73,40,58,41,21,64,59,122,22])),`component`)}),kC=J(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(tx(t.id)),e.queryClient.ensureQueryData(Zb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id11.js`),__vite__mapDeps([136,1,30,18,33,3,2,4,5,6,38,36,70,7,8,73,40,58,41,21,10,59,64,122,22])),`component`)}),AC=J(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(dx(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:Y(()=>V(()=>import(`./_id10.js`),__vite__mapDeps([137,1,30,18,33,3,2,4,5,6,38,54,8,35,19,7,12,13,55,69,70,73,40,58,9,41,21,10,74,59,64,122])),`component`)}),jC=J(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ax(t.id)),e.queryClient.ensureQueryData(nx),e.queryClient.ensureQueryData(mx),e.queryClient.ensureQueryData(Qb)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:Y(()=>V(()=>import(`./_id9.js`),__vite__mapDeps([138,1,30,18,33,3,2,4,5,6,38,54,8,35,19,7,12,13,55,70,73,40,58,9,41,21,10,74,64,59,122,25])),`component`)}),MC=J(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(lx(t.id)),e.queryClient.ensureQueryData(Ub)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id8.js`),__vite__mapDeps([139,1,30,18,33,3,2,4,5,6,38,70,7,8,73,40,58,41,21,64,59,122,22])),`component`)}),NC=J(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(hx(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:Y(()=>V(()=>import(`./_id7.js`),__vite__mapDeps([140,1,30,18,33,3,2,4,5,6,38,70,7,8,73,40,58,41,21,64,59,122,22])),`component`)}),PC=J(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(rS(n)),e.queryClient.ensureQueryData(cS(n)),e.queryClient.ensureQueryData(iS(n)),e.queryClient.ensureQueryData(fS([n])),e.queryClient.ensureQueryData(aS),e.queryClient.ensureQueryData(Qb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:Y(()=>V(()=>import(`./_id6.js`),__vite__mapDeps([141,1,30,18,33,3,4,5,38,2,6,54,8,35,19,7,12,13,55,70,87,40,41,10,59,49,77,9,21,64,122,22,79,134,69,127])),`component`)}),FC=J(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Xb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id5.js`),__vite__mapDeps([142,1,30,18,33,3,4,5,38,2,6,70,7,8,73,40,58,41,21,64,59,122])),`component`)}),IC=J(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(rx(t.id)),e.queryClient.ensureQueryData(ox)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:Y(()=>V(()=>import(`./_id4.js`),__vite__mapDeps([143,1,30,18,33,3,2,4,5,6,38,54,8,35,19,7,12,13,55,70,73,40,58,41,21,64,59,122])),`component`)}),LC=J(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(Wb(t.id)),e.queryClient.ensureQueryData(Kb)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(Jb(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id3.js`),__vite__mapDeps([144,1,17,18,30,2,3,4,5,6,38,54,8,35,19,7,12,13,55,56,70,73,40,58,41,21,10,59,64,122,22,145,23,24,49])),`component`)}),RC=J(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Jb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:Y(()=>V(()=>import(`./_id2.js`),__vite__mapDeps([146,1,30,18,38,2,3,4,5,6,21,22,60,145,122])),`component`)}),zC=J(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(px(t.id)),e.queryClient.ensureQueryData(Ub)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:Y(()=>V(()=>import(`./_id.js`),__vite__mapDeps([147,1,30,18,33,3,4,5,38,2,6,54,8,35,19,7,12,13,55,70,73,40,58,41,21,64,59,122])),`component`)}),BC=J(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Jx(t.clusterName))},head:({params:e})=>({meta:[{title:`${e.taskId} | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./_taskId.js`),__vite__mapDeps([148,1,30,18,38,2,3,4,5,6,21,122,22])),`component`)}),VC=J(`/_auth/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(qx(t.clusterName)),e.queryClient.ensureQueryData(Jx(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.serviceName} | ECS | Mulga`}]}),component:Y(()=>V(()=>import(`./_serviceName.js`),__vite__mapDeps([149,1,30,18,2,3,4,5,6,38,21,122,22])),`component`)}),HC=Bb.update({id:`/login`,path:`/login`,getParentRoute:()=>zb}),$=Vb.update({id:`/_auth`,getParentRoute:()=>zb}),UC=bx.update({id:`/`,path:`/`,getParentRoute:()=>$}),WC=xx.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),GC=Sx.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),KC=Cx.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),qC=wx.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),JC=Tx.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),YC=Ex.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),XC=Dx.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),ZC=Ox.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),QC=Hx.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),$C=Qx.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>$}),ew=$x.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>$}),tw=eS.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>$}),nw=pS.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>$}),rw=mS.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),iw=hS.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),aw=gS.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),ow=_S.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),sw=vS.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),cw=yS.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),lw=bS.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),uw=xS.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),dw=SS.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),fw=wS.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),pw=TS.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),mw=ES.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),hw=DS.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),gw=OS.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),_w=kS.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),vw=AS.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),yw=jS.update({id:`/`,path:`/`,getParentRoute:()=>vw}),bw=MS.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),xw=NS.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),Sw=PS.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),Cw=FS.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),ww=JS.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),Tw=YS.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>$}),Ew=eC.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),Dw=tC.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),Ow=nC.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),kw=rC.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),Aw=iC.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),jw=aC.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),Mw=oC.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),Nw=sC.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),Pw=cC.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),Fw=lC.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),Iw=uC.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),Lw=dC.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),Rw=fC.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),zw=pC.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),Bw=mC.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),Vw=hC.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),Hw=gC.update({id:`/$`,path:`/$`,getParentRoute:()=>vw}),Uw=_C.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),Ww=vC.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),Gw=yC.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),Kw=bC.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),qw=xC.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),Jw=SC.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>$}),Yw=CC.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),Xw=wC.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),Zw=TC.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),Qw=EC.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),$w=DC.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),eT=OC.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),tT=kC.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),nT=AC.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),rT=jC.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),iT=MC.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),aT=NC.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),oT=PC.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),sT=FC.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),cT=IC.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),lT=LC.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),uT=RC.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),dT=zC.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),fT=BC.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>$}),pT=VC.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>$}),mT={AuthS3LsBucketSplatRoute:Hw,AuthS3LsBucketIndexRoute:yw},hT={AuthNodesRoute:WC,AuthIndexRoute:UC,AuthS3ServiceMetricsRoute:GC,AuthS3LsBucketRouteRoute:vw._addFileChildren(mT),AuthEc2elasticIpsAllocateAddressRoute:_w,AuthEc2instancesRunInstancesRoute:gw,AuthEc2internetGatewaysCreateInternetGatewayRoute:hw,AuthEc2keyCreateKeyPairRoute:mw,AuthEc2keyImportKeyPairRoute:pw,AuthEc2loadBalancersCreateLoadBalancerRoute:fw,AuthEc2natGatewaysCreateNatGatewayRoute:dw,AuthEc2placementGroupsCreatePlacementGroupRoute:uw,AuthEc2routeTablesCreateRouteTableRoute:lw,AuthEc2securityGroupsCreateSecurityGroupRoute:cw,AuthEc2snapshotsCreateSnapshotRoute:sw,AuthEc2subnetCreateSubnetRoute:ow,AuthEc2targetGroupsCreateTargetGroupRoute:aw,AuthEc2volumesCreateVolumeRoute:iw,AuthEc2vpcCreateVpcRoute:rw,AuthEcsclustersCreateServiceRoute:nw,AuthEcsclustersRegisterTaskDefinitionRoute:tw,AuthEcsclustersRunTaskRoute:ew,AuthEcsclustersTaskDefinitionsRoute:$C,AuthEksclustersCreateClusterRoute:QC,AuthIaminstanceProfilesCreateInstanceProfileRoute:ZC,AuthIampoliciesCreatePolicyRoute:XC,AuthIamrolesCreateRoleRoute:YC,AuthIamusersCreateUserRoute:JC,AuthS3bucketsCreateBucketRoute:qC,AuthS3LsIndexRoute:KC,AuthEc2elasticIpsDescribeAddressesIdRoute:dT,AuthEc2imagesDescribeImagesIdRoute:uT,AuthEc2instancesDescribeInstancesIdRoute:lT,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:cT,AuthEc2keyDescribeKeyPairsIdRoute:sT,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:oT,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:aT,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:iT,AuthEc2routeTablesDescribeRouteTablesIdRoute:rT,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:nT,AuthEc2snapshotsDescribeSnapshotsIdRoute:tT,AuthEc2subnetDescribeSubnetsIdRoute:eT,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:$w,AuthEc2volumesDescribeVolumesIdRoute:Qw,AuthEc2volumesModifyVolumeIdRoute:Zw,AuthEc2vpcDescribeVpcsIdRoute:Xw,AuthEcrrepositoriesListRepositoriesIdRoute:Yw,AuthEcsclustersListClustersClusterNameRoute:Jw,AuthEksclustersListClustersClusterNameRoute:qw,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:Kw,AuthIampoliciesListPoliciesPolicyArnRoute:Gw,AuthIamrolesListRolesRoleNameRoute:Ww,AuthIamusersListUsersUserNameRoute:Uw,AuthEc2elasticIpsDescribeAddressesIndexRoute:Vw,AuthEc2imagesDescribeImagesIndexRoute:Bw,AuthEc2instancesDescribeInstancesIndexRoute:zw,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:Rw,AuthEc2keyDescribeKeyPairsIndexRoute:Lw,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:Iw,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:Fw,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:Pw,AuthEc2routeTablesDescribeRouteTablesIndexRoute:Nw,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:Mw,AuthEc2snapshotsDescribeSnapshotsIndexRoute:jw,AuthEc2subnetDescribeSubnetsIndexRoute:Aw,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:kw,AuthEc2volumesDescribeVolumesIndexRoute:Ow,AuthEc2vpcDescribeVpcsIndexRoute:Dw,AuthEcrrepositoriesListRepositoriesIndexRoute:Ew,AuthEcsclustersListClustersIndexRoute:Tw,AuthEksclustersListClustersIndexRoute:ww,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Cw,AuthIampoliciesListPoliciesIndexRoute:Sw,AuthIamrolesListRolesIndexRoute:xw,AuthIamusersListUsersIndexRoute:bw,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:pT,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:fT},gT={AuthRouteRoute:$._addFileChildren(hT),LoginRoute:HC},_T=zb._addFileChildren(gT)._addFileTypes(),vT=Mb(),yT=ks({routeTree:_T,context:{queryClient:vT},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),bT=document.querySelector(`#app`);bT&&!bT.innerHTML&&Gs.createRoot(bT).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Ys,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,K.jsx)(la,{client:vT,children:(0,K.jsx)(py,{children:(0,K.jsx)(kg,{children:(0,K.jsx)(Fs,{router:yT})})})})})}));export{oS as $,Uu as $n,ui as $r,gx as $t,QS as A,Xm as An,Rc as Ar,Jb as At,BS as B,Xd as Bn,sc as Br,mx as Bt,yC as C,Bm as Cn,dl as Cr,kx as Ct,$S as D,Um as Dn,Jc as Dr,fx as Dt,gC as E,qm as En,Xc as Er,px as Et,KS as F,Q as Fn,Dc as Fr,rx as Ft,lS as G,yd as Gn,Yi as Gr,ix as Gt,CS as H,Kd as Hn,Ds as Hr,cx as Ht,WS as I,Cp as In,Sc as Ir,nx as It,rS as J,od as Jn,Bi as Jr,tx as Jt,cS as K,bd as Kn,Ui as Kr,dx as Kt,zS as L,ep as Ln,yc as Lr,Xb as Lt,US as M,Up as Mn,Nc as Mr,Wb as Mt,qS as N,Rp as Nn,jc as Nr,Kb as Nt,XS as O,Wm as On,Kc as Or,Hb as Ot,GS as P,Pp as Pn,Ac as Pr,Ub as Pt,sS as Q,td as Qn,fi as Qr,_x as Qt,RS as R,pf as Rn,vc as Rr,Yb as Rt,bC as S,Km as Sn,pl as Sr,Ax as St,_C as T,Hm as Tn,$c as Tr,vx as Tt,vS as U,Rd as Un,ca as Ur,Zb as Ut,jS as V,Zd as Vn,Zs as Vr,lx as Vt,pS as W,wd as Wn,na as Wr,ax as Wt,dS as X,rd as Xn,Fi as Xr,$b as Xt,nS as Y,ad as Yn,Ri as Yr,ex as Yt,fS as Z,nd as Zn,yi as Zr,Qb as Zt,TC as _,Lm as _n,Cl as _r,Mx as _t,LC as a,pi as ai,ny as an,uu as ar,Gx as at,SC as b,zm as bn,_l as br,Lx as bt,PC as c,ig as cn,cu as cr,Zx as ct,jC as d,vh as dn,Pl as dr,jx as dt,Oi as ei,sx as en,Hu as er,aS as et,AC as f,fh as fn,Ml as fr,Rx as ft,EC as g,eh as gn,Tl as gr,zx as gt,DC as h,th as hn,Dl as hr,Vx as ht,RC as i,Ni as ii,ly as in,du as ir,Kx as it,HS as j,fm as jn,Lc as jr,qb as jt,ZS as k,Ym as kn,Uc as kr,Gb as kt,NC as l,Yh as ln,fu as lr,Xx as lt,OC as m,nh as mn,Al as mr,Bx as mt,BC as n,mi as ni,Bb as nn,Ru as nr,eS as nt,IC as o,si as oi,sg as on,lu as or,Yx as ot,kC as p,rh as pn,Nl as pr,Fx as pt,iS as q,sd as qn,Vi as qr,ux as qt,zC as r,Ci as ri,my as rn,Lu as rr,$x as rt,FC as s,og as sn,mu as sr,qx as st,VC as t,hi as ti,ox as tn,zu as tr,uS as tt,MC as u,bh as un,su as ur,Jx as ut,wC as v,Gm as vn,yl as vr,Nx as vt,vC as w,Vm as wn,ol as wr,yx as wt,xC as x,Im as xn,vl as xr,Ix as xt,CC as y,Rm as yn,gl as yr,Px as yt,VS as z,sf as zn,hc as zr,hx as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js index 0c9984ac7..da045673a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{ni as a}from"./awsClient.js";import{t as o}from"./check.js";import{t as s}from"./copy.js";import{t as c}from"./rotate-cw.js";import{t as l}from"./triangle-alert.js";import{t as u}from"./button.js";import{r as d,t as f}from"./ecs.js";import{$r as p,Qr as m,at as h,jt as g,nr as _}from"./index.js";import{t as v}from"./use-copy-to-clipboard.js";import{t as y}from"./error-banner.js";import{t as b}from"./page-heading.js";import{a as x,t as S}from"./field.js";import{a as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";import{t as j}from"./delete-confirmation-dialog.js";import{t as M}from"./state-badge.js";import{t as N}from"./system-managed.js";import{t as P}from"./ecs-section-nav.js";var F=r(),I=t(n(),1),L=e();function R(e){let t=(0,F.c)(32),{open:n,onOpenChange:r}=e,i=f(),[a,o]=(0,I.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]!==i||t[4]!==c||t[5]!==a?(l=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=l):l=t[6];let u=l,d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(k,{children:[(0,L.jsx)(T,{children:`Create Cluster`}),(0,L.jsx)(C,{children:`A cluster groups the services, tasks, and container instances that run on it.`})]}),t[7]=d):d=t[7];let p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(x,{children:(0,L.jsx)(`label`,{htmlFor:`clusterName`,children:`Name`})}),t[8]=p):p=t[8];let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>o(e.target.value),t[9]=m):m=t[9];let h;t[10]===a?h=t[11]:(h=(0,L.jsxs)(S,{children:[p,(0,L.jsx)(_,{id:`clusterName`,onChange:m,placeholder:`my-cluster`,value:a})]}),t[10]=a,t[11]=h);let g;t[12]===i.error?g=t[13]:(g=i.error&&(0,L.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=g);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,L.jsx)(O,{children:`Cancel`}),t[14]=v):v=t[14];let y;t[15]!==i.isPending||t[16]!==a?(y=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=y):y=t[17];let b;t[18]===u?b=t[19]:(b=e=>{e.preventDefault(),u()},t[18]=u,t[19]=b);let j=i.isPending?`Creating…`:`Create Cluster`,M;t[20]!==b||t[21]!==j||t[22]!==y?(M=(0,L.jsxs)(D,{children:[v,(0,L.jsx)(E,{disabled:y,onClick:b,children:j})]}),t[20]=b,t[21]=j,t[22]=y,t[23]=M):M=t[23];let N;t[24]!==M||t[25]!==h||t[26]!==g?(N=(0,L.jsxs)(w,{children:[d,h,g,M]}),t[24]=M,t[25]=h,t[26]=g,t[27]=N):N=t[27];let P;return t[28]!==c||t[29]!==n||t[30]!==N?(P=(0,L.jsx)(A,{onOpenChange:c,open:n,children:N}),t[28]=c,t[29]=n,t[30]=N,t[31]=P):P=t[31],P}var z=`spx admin images import --name spinifex-ecs-node`;function B(e){let t=(0,F.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=v(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsx)(l,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=d):d=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsxs)(`div`,{className:`space-y-1`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`ECS system image not found`}),(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`ECS clusters need a Spinifex-managed node image (containerd + ecs-agent) to launch container instances. Import it before creating a cluster.`})]}),t[1]=f):f=t[1];let p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),m=(0,L.jsx)(`span`,{className:`flex-1 text-foreground`,children:z}),t[2]=p,t[3]=m):(p=t[2],m=t[3]);let h;t[4]===a?h=t[5]:(h=()=>void a(z),t[4]=a,t[5]=h);let g;t[6]===i?g=t[7]:(g=i?(0,L.jsx)(o,{className:`size-3.5 text-tactical-green`}):(0,L.jsx)(s,{className:`size-3.5`}),t[6]=i,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,L.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[p,m,(0,L.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:h,type:`button`,children:g})]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=y):y=t[11];let b=n?`size-4 animate-spin`:`size-4`,x;t[12]===b?x=t[13]:(x=(0,L.jsx)(c,{className:b}),t[12]=b,t[13]=x);let S;t[14]!==n||t[15]!==r||t[16]!==x?(S=(0,L.jsxs)(u,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[x,`Recheck`]}),t[14]=n,t[15]=r,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==S||t[19]!==_?(C=(0,L.jsx)(`div`,{className:`mb-6 max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,L.jsxs)(`div`,{className:`flex items-start gap-3`,children:[d,(0,L.jsxs)(`div`,{className:`space-y-4`,children:[f,_,y,S]})]})}),t[18]=S,t[19]=_,t[20]=C):C=t[20],C}function V(){let e=m(),t=p(),{data:n}=i(h),{data:r}=i(g),o=d(),[s,c]=(0,I.useState)(!1),[l,f]=(0,I.useState)(null),[_,v]=(0,I.useState)(!1),x=(r.Images??[]).some(N);async function S(){v(!0);try{await t.invalidateQueries({queryKey:g.queryKey})}finally{v(!1)}}function C(){l&&o.mutate(l,{onSuccess:()=>f(null)})}return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(b,{actions:(0,L.jsx)(u,{disabled:!x,onClick:()=>c(!0),children:`Create Cluster`}),title:`Clusters`}),(0,L.jsx)(P,{}),!x&&(0,L.jsx)(B,{isRechecking:_,onRecheck:S}),o.isError&&(0,L.jsx)(y,{error:o.error instanceof Error?o.error:void 0,msg:`Failed to delete cluster.`}),n.length>0?(0,L.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,L.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,L.jsx)(`thead`,{children:(0,L.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Services`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running Tasks`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Instances`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,L.jsx)(`tbody`,{children:n.map(t=>{if(!t.clusterName)return null;let n=t.clusterName;return(0,L.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await e({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:n}}),children:[(0,L.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(a,{className:`text-primary hover:underline`,onClick:e=>e.stopPropagation(),params:{clusterName:n},to:`/ecs/list-clusters/$clusterName`,children:n})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:(0,L.jsx)(M,{state:t.status})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.activeServicesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.runningTasksCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.registeredContainerInstancesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,L.jsx)(u,{onClick:e=>{e.stopPropagation(),f(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`No ECS clusters found.`}),(0,L.jsx)(R,{onOpenChange:c,open:s}),(0,L.jsx)(j,{description:`This permanently deletes cluster "${l}" and force-stops every task it holds. This cannot be undone.`,isPending:o.isPending,onConfirm:C,onOpenChange:e=>!e&&f(null),open:l!==null,title:`Delete cluster`})]})}var H=V;export{H as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{ni as o}from"./awsClient.js";import{t as s}from"./triangle-alert.js";import{t as c}from"./check.js";import{t as l}from"./copy.js";import{t as u}from"./rotate-cw.js";import{t as d}from"./button.js";import{r as f,t as p}from"./ecs.js";import{Ur as m,at as h,er as g,jt as _}from"./index.js";import{t as v}from"./use-copy-to-clipboard.js";import{t as y}from"./error-banner.js";import{t as b}from"./page-heading.js";import{a as x,t as S}from"./field.js";import{a as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./alert-dialog.js";import{t as j}from"./delete-confirmation-dialog.js";import{t as M}from"./state-badge.js";import{t as N}from"./system-managed.js";import{t as P}from"./ecs-section-nav.js";var F=r(),I=t(n(),1),L=e();function R(e){let t=(0,F.c)(32),{open:n,onOpenChange:r}=e,i=p(),[a,o]=(0,I.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]!==i||t[4]!==c||t[5]!==a?(l=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=l):l=t[6];let u=l,d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,L.jsxs)(k,{children:[(0,L.jsx)(T,{children:`Create Cluster`}),(0,L.jsx)(C,{children:`A cluster groups the services, tasks, and container instances that run on it.`})]}),t[7]=d):d=t[7];let f;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsx)(x,{children:(0,L.jsx)(`label`,{htmlFor:`clusterName`,children:`Name`})}),t[8]=f):f=t[8];let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>o(e.target.value),t[9]=m):m=t[9];let h;t[10]===a?h=t[11]:(h=(0,L.jsxs)(S,{children:[f,(0,L.jsx)(g,{id:`clusterName`,onChange:m,placeholder:`my-cluster`,value:a})]}),t[10]=a,t[11]=h);let _;t[12]===i.error?_=t[13]:(_=i.error&&(0,L.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=_);let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,L.jsx)(O,{children:`Cancel`}),t[14]=v):v=t[14];let y;t[15]!==i.isPending||t[16]!==a?(y=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=y):y=t[17];let b;t[18]===u?b=t[19]:(b=e=>{e.preventDefault(),u()},t[18]=u,t[19]=b);let j=i.isPending?`Creating…`:`Create Cluster`,M;t[20]!==b||t[21]!==j||t[22]!==y?(M=(0,L.jsxs)(D,{children:[v,(0,L.jsx)(E,{disabled:y,onClick:b,children:j})]}),t[20]=b,t[21]=j,t[22]=y,t[23]=M):M=t[23];let N;t[24]!==M||t[25]!==h||t[26]!==_?(N=(0,L.jsxs)(w,{children:[d,h,_,M]}),t[24]=M,t[25]=h,t[26]=_,t[27]=N):N=t[27];let P;return t[28]!==c||t[29]!==n||t[30]!==N?(P=(0,L.jsx)(A,{onOpenChange:c,open:n,children:N}),t[28]=c,t[29]=n,t[30]=N,t[31]=P):P=t[31],P}var z=`spx admin images import --name spinifex-ecs-node`;function B(e){let t=(0,F.c)(21),{isRechecking:n,onRecheck:r}=e,{copied:i,copy:a}=v(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsx)(s,{className:`mt-0.5 size-5 shrink-0 text-tactical-amber`}),t[0]=o):o=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,L.jsxs)(`div`,{className:`space-y-1`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-foreground`,children:`ECS system image not found`}),(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`ECS clusters need a Spinifex-managed node image (containerd + ecs-agent) to launch container instances. Import it before creating a cluster.`})]}),t[1]=f):f=t[1];let p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,L.jsx)(`span`,{className:`text-muted-foreground select-none`,children:`$`}),m=(0,L.jsx)(`span`,{className:`flex-1 text-foreground`,children:z}),t[2]=p,t[3]=m):(p=t[2],m=t[3]);let h;t[4]===a?h=t[5]:(h=()=>void a(z),t[4]=a,t[5]=h);let g;t[6]===i?g=t[7]:(g=i?(0,L.jsx)(c,{className:`size-3.5 text-tactical-green`}):(0,L.jsx)(l,{className:`size-3.5`}),t[6]=i,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,L.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-background px-3 py-2 font-mono text-xs`,children:[p,m,(0,L.jsx)(`button`,{"aria-label":`Copy command`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:h,type:`button`,children:g})]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,L.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Run from any authenticated spx CLI host. The command downloads and registers the published node image, then click Recheck.`}),t[11]=y):y=t[11];let b=n?`size-4 animate-spin`:`size-4`,x;t[12]===b?x=t[13]:(x=(0,L.jsx)(u,{className:b}),t[12]=b,t[13]=x);let S;t[14]!==n||t[15]!==r||t[16]!==x?(S=(0,L.jsxs)(d,{disabled:n,onClick:r,size:`sm`,variant:`outline`,children:[x,`Recheck`]}),t[14]=n,t[15]=r,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==S||t[19]!==_?(C=(0,L.jsx)(`div`,{className:`mb-6 max-w-2xl rounded-md border border-tactical-amber/40 bg-tactical-amber/5 p-6`,children:(0,L.jsxs)(`div`,{className:`flex items-start gap-3`,children:[o,(0,L.jsxs)(`div`,{className:`space-y-4`,children:[f,_,y,S]})]})}),t[18]=S,t[19]=_,t[20]=C):C=t[20],C}function V(){let e=a(),t=m(),{data:n}=i(h),{data:r}=i(_),s=f(),[c,l]=(0,I.useState)(!1),[u,p]=(0,I.useState)(null),[g,v]=(0,I.useState)(!1),x=(r.Images??[]).some(N);async function S(){v(!0);try{await t.invalidateQueries({queryKey:_.queryKey})}finally{v(!1)}}function C(){u&&s.mutate(u,{onSuccess:()=>p(null)})}return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(b,{actions:(0,L.jsx)(d,{disabled:!x,onClick:()=>l(!0),children:`Create Cluster`}),title:`Clusters`}),(0,L.jsx)(P,{}),!x&&(0,L.jsx)(B,{isRechecking:g,onRecheck:S}),s.isError&&(0,L.jsx)(y,{error:s.error instanceof Error?s.error:void 0,msg:`Failed to delete cluster.`}),n.length>0?(0,L.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,L.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,L.jsx)(`thead`,{children:(0,L.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Status`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Services`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Running Tasks`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Instances`}),(0,L.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,L.jsx)(`tbody`,{children:n.map(t=>{if(!t.clusterName)return null;let n=t.clusterName;return(0,L.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await e({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:n}}),children:[(0,L.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,L.jsx)(o,{className:`text-primary hover:underline`,onClick:e=>e.stopPropagation(),params:{clusterName:n},to:`/ecs/list-clusters/$clusterName`,children:n})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:(0,L.jsx)(M,{state:t.status})}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.activeServicesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.runningTasksCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2`,children:t.registeredContainerInstancesCount??0}),(0,L.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,L.jsx)(d,{onClick:e=>{e.stopPropagation(),p(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,L.jsx)(`p`,{className:`text-muted-foreground`,children:`No ECS clusters found.`}),(0,L.jsx)(R,{onOpenChange:l,open:c}),(0,L.jsx)(j,{description:`This permanently deletes cluster "${u}" and force-stops every task it holds. This cannot be undone.`,isPending:s.isPending,onConfirm:C,onOpenChange:e=>!e&&p(null),open:u!==null,title:`Delete cluster`})]})}var H=V;export{H as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js index ace76fbe7..408ab6e5a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{ni as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./button.js";import{i as c,n as l}from"./ecr.js";import{O as u,Qr as d,nr as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=l(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,u;t[3]!==i||t[4]!==c||t[5]!==a?(u=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=u):u=t[6];let d=u,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(f,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===d?N=t[19]:(N=e=>{e.preventDefault(),d()},t[18]=d,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==c||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:c,open:n,children:I}),t[28]=c,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=d(),{data:n}=i(u),r=c(),[l,f]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(s,{onClick:()=>f(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(a,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(s,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===l?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:f,open:l}),e[9]=l,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{t as a}from"./useNavigate.js";import{ni as o}from"./awsClient.js";import{Bt as s}from"./auth.js";import{t as c}from"./button.js";import{i as l,n as u}from"./ecr.js";import{O as d,er as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=u(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let c=s,l;t[3]!==i||t[4]!==c||t[5]!==a?(l=async function(){try{await i.mutateAsync(a.trim()),c(!1)}catch{}},t[3]=i,t[4]=c,t[5]=a,t[6]=l):l=t[6];let d=l,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(f,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===d?N=t[19]:(N=e=>{e.preventDefault(),d()},t[18]=d,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==c||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:c,open:n,children:I}),t[28]=c,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=a(),{data:n}=i(d),r=l(),[u,f]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(c,{onClick:()=>f(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(o,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:s(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(c,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===u?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:f,open:u}),e[9]=u,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/login.js b/spinifex/services/spinifexui/frontend/dist/assets/login.js index 7356628eb..2bc626ffa 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/login.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/login.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./awsClient.js";import{i as a,t as o}from"./auth.js";import{t as s}from"./button.js";import{in as c,nn as l,nr as u}from"./index.js";import{i as d,t as f}from"./zod.js";import{a as p,i as m,r as h,t as g}from"./field.js";import{n as _,r as v,t as y}from"./collapsible.js";import{a as b,o as x,r as S,t as C}from"./card.js";var w=r(),T=t(n()),E=e();function D(){let{reason:e}=l.useSearch(),[t,n]=(0,T.useState)(null),{register:r,handleSubmit:_,formState:{errors:v,isSubmitting:y}}=d({resolver:f(o)});async function w(e){n(null);try{a(await c(e)),i(),window.location.href=`/`}catch{n(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,E.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,E.jsxs)(C,{children:[(0,E.jsx)(b,{children:(0,E.jsx)(x,{children:`AWS Credentials`})}),(0,E.jsxs)(S,{children:[e===`expired`&&!t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:t}),(0,E.jsx)(`form`,{onSubmit:_(w),children:(0,E.jsxs)(m,{children:[(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,E.jsx)(u,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...r(`accessKeyId`)}),(0,E.jsx)(h,{errors:[v.accessKeyId]})]}),(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,E.jsx)(u,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...r(`secretAccessKey`)}),(0,E.jsx)(h,{errors:[v.secretAccessKey]})]}),(0,E.jsx)(s,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,E.jsx)(O,{})]})})}function O(){let e=(0,w.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,E.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(v,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(C,{className:`border-muted bg-muted/30`,children:(0,E.jsx)(S,{className:`pt-4 pb-4`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,E.jsxs)(y,{children:[r,(0,E.jsx)(_,{children:(0,E.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,E.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{D as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./awsClient.js";import{i as a,t as o}from"./auth.js";import{t as s}from"./button.js";import{er as c,in as l,nn as u}from"./index.js";import{i as d,t as f}from"./zod.js";import{a as p,i as m,r as h,t as g}from"./field.js";import{n as _,r as v,t as y}from"./collapsible.js";import{a as b,o as x,r as S,t as C}from"./card.js";var w=r(),T=t(n()),E=e();function D(){let{reason:e}=u.useSearch(),[t,n]=(0,T.useState)(null),{register:r,handleSubmit:_,formState:{errors:v,isSubmitting:y}}=d({resolver:f(o)});async function w(e){n(null);try{a(await l(e)),i(),window.location.href=`/`}catch{n(`Invalid credentials. Please check your Access Key ID and Secret Access Key.`)}}return(0,E.jsx)(`div`,{className:`flex flex-1 items-center justify-center`,children:(0,E.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-4`,children:[(0,E.jsxs)(C,{children:[(0,E.jsx)(b,{children:(0,E.jsx)(x,{children:`AWS Credentials`})}),(0,E.jsxs)(S,{children:[e===`expired`&&!t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-muted p-3 text-sm text-muted-foreground`,children:`Your session is no longer valid — please sign in again.`}),t&&(0,E.jsx)(`p`,{className:`mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive`,children:t}),(0,E.jsx)(`form`,{onSubmit:_(w),children:(0,E.jsxs)(m,{children:[(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`accessKeyId`,children:`Access Key ID`})}),(0,E.jsx)(c,{"aria-invalid":!!v.accessKeyId,autoComplete:`username`,id:`accessKeyId`,placeholder:`AKIAIOSFODNN7EXAMPLE`,...r(`accessKeyId`)}),(0,E.jsx)(h,{errors:[v.accessKeyId]})]}),(0,E.jsxs)(g,{children:[(0,E.jsx)(p,{children:(0,E.jsx)(`label`,{htmlFor:`secretAccessKey`,children:`Secret Access Key`})}),(0,E.jsx)(c,{"aria-invalid":!!v.secretAccessKey,autoComplete:`current-password`,id:`secretAccessKey`,placeholder:`wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,type:`password`,...r(`secretAccessKey`)}),(0,E.jsx)(h,{errors:[v.secretAccessKey]})]}),(0,E.jsx)(s,{className:`w-full`,disabled:y,type:`submit`,children:y?`Signing in...`:`Sign In`})]})})]})]}),(0,E.jsx)(O,{})]})})}function O(){let e=(0,w.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Install Local Certificate Authority`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`To avoid browser certificate warnings, download and install the Spinifex CA as a trusted root on your OS.`})]}),n=(0,E.jsx)(`a`,{className:`inline-flex h-8 w-full items-center justify-center rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground`,download:`spinifex-ca.pem`,href:`/api/ca.pem`,children:`Download CA Certificate`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(v,{className:`cursor-pointer text-xs text-muted-foreground underline-offset-4 hover:underline`,children:`Installation instructions`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(C,{className:`border-muted bg-muted/30`,children:(0,E.jsx)(S,{className:`pt-4 pb-4`,children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[t,n,(0,E.jsxs)(y,{children:[r,(0,E.jsx)(_,{children:(0,E.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`macOS`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain spinifex-ca.pem`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Windows`}),(0,E.jsx)(`p`,{children:`Double-click the file → Install Certificate → Local Machine → Trusted Root Certification Authorities`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`font-medium text-foreground`,children:`Linux`}),(0,E.jsx)(`code`,{className:`mt-1 block rounded bg-muted p-2 text-[11px] break-all`,children:`sudo cp spinifex-ca.pem /usr/local/share/ca-certificates/spinifex-ca.crt && sudo update-ca-certificates`})]})]})})]})]})})}),e[3]=i):i=e[3],i}export{D as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/plus.js b/spinifex/services/spinifexui/frontend/dist/assets/plus.js index dec06d967..8ee1cbb43 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/plus.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/plus.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js b/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js index d98ab141a..6da946c4b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/register-task-definition.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as ee}from"./plus.js";import{t as te}from"./trash-2.js";import{t as ne}from"./button.js";import{s as re}from"./ecs.js";import{Qr as ie,nr as c,nt as l}from"./index.js";import{i as ae,n as oe,r as se,t as ce}from"./zod.js";import{t as le}from"./error-banner.js";import{t as ue}from"./form-actions.js";import{t as de}from"./page-heading.js";import{a as u,r as fe,t as d}from"./field.js";import{r as pe,t as f}from"./ecs2.js";var me=t(),p=e();function m(e){let t=(0,me.c)(118),{cluster:r}=e,i=ie(),a=re(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=ce(pe),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:o,defaultValues:{family:``,networkMode:`bridge`,cpu:``,memory:``,containerName:``,image:``,containerCpu:``,containerMemory:``,essential:!0,portMappings:[]}},t[1]=s):s=t[1];let{control:l,handleSubmit:f,register:m,formState:_e}=ae(s),{errors:h,isSubmitting:ve}=_e,ye;t[2]===l?ye=t[3]:(ye={control:l,name:`portMappings`},t[2]=l,t[3]=ye);let g=se(ye),be;t[4]!==r||t[5]!==i?(be=function(){i(r?{to:`/ecs/list-clusters/$clusterName`,params:{clusterName:r}}:{to:`/ecs/list-clusters`})},t[4]=r,t[5]=i,t[6]=be):be=t[6];let _=be,xe;t[7]!==_||t[8]!==a?(xe=async function(e){await a.mutateAsync(e),_()},t[7]=_,t[8]=a,t[9]=xe):xe=t[9];let Se=xe,Ce,we;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,p.jsx)(n,{to:`/ecs/list-clusters`,children:`Clusters`}),we=(0,p.jsx)(de,{subtitle:`Register a single-container task definition`,title:`Register Task Definition`}),t[10]=Ce,t[11]=we):(Ce=t[10],we=t[11]);let v;t[12]!==a.error||t[13]!==a.isError?(v=a.isError&&(0,p.jsx)(le,{error:a.error instanceof Error?a.error:void 0,msg:`Failed to register task definition.`}),t[12]=a.error,t[13]=a.isError,t[14]=v):v=t[14];let y;t[15]!==f||t[16]!==Se?(y=f(Se),t[15]=f,t[16]=Se,t[17]=y):y=t[17];let Te;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`family`,children:`Family`})}),t[18]=Te):Te=t[18];let b;t[19]===m?b=t[20]:(b=m(`family`),t[19]=m,t[20]=b);let x;t[21]===b?x=t[22]:(x=(0,p.jsx)(c,{id:`family`,placeholder:`my-app`,...b}),t[21]=b,t[22]=x);let S;t[23]===h.family?S=t[24]:(S=(0,p.jsx)(fe,{errors:[h.family]}),t[23]=h.family,t[24]=S);let C;t[25]!==x||t[26]!==S?(C=(0,p.jsxs)(d,{children:[Te,x,S]}),t[25]=x,t[26]=S,t[27]=C):C=t[27];let Ee;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`networkMode`,children:`Network mode`})}),t[28]=Ee):Ee=t[28];let w;t[29]===l?w=t[30]:(w=(0,p.jsxs)(d,{children:[Ee,(0,p.jsx)(oe,{control:l,name:`networkMode`,render:ge})]}),t[29]=l,t[30]=w);let T;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`cpu`,children:`Task CPU (units)`})}),t[31]=T):T=t[31];let E;t[32]===m?E=t[33]:(E=m(`cpu`),t[32]=m,t[33]=E);let D;t[34]===E?D=t[35]:(D=(0,p.jsxs)(d,{children:[T,(0,p.jsx)(c,{id:`cpu`,placeholder:`optional`,...E})]}),t[34]=E,t[35]=D);let De;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`memory`,children:`Task memory (MiB)`})}),t[36]=De):De=t[36];let O;t[37]===m?O=t[38]:(O=m(`memory`),t[37]=m,t[38]=O);let k;t[39]===O?k=t[40]:(k=(0,p.jsxs)(d,{children:[De,(0,p.jsx)(c,{id:`memory`,placeholder:`optional`,...O})]}),t[39]=O,t[40]=k);let A;t[41]!==D||t[42]!==k?(A=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[D,k]}),t[41]=D,t[42]=k,t[43]=A):A=t[43];let Oe;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,p.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Container`}),t[44]=Oe):Oe=t[44];let ke;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`containerName`,children:`Name`})}),t[45]=ke):ke=t[45];let j;t[46]===m?j=t[47]:(j=m(`containerName`),t[46]=m,t[47]=j);let M;t[48]===j?M=t[49]:(M=(0,p.jsx)(c,{id:`containerName`,placeholder:`app`,...j}),t[48]=j,t[49]=M);let N;t[50]===h.containerName?N=t[51]:(N=(0,p.jsx)(fe,{errors:[h.containerName]}),t[50]=h.containerName,t[51]=N);let P;t[52]!==M||t[53]!==N?(P=(0,p.jsxs)(d,{children:[ke,M,N]}),t[52]=M,t[53]=N,t[54]=P):P=t[54];let Ae;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`image`,children:`Image`})}),t[55]=Ae):Ae=t[55];let F;t[56]===m?F=t[57]:(F=m(`image`),t[56]=m,t[57]=F);let I;t[58]===F?I=t[59]:(I=(0,p.jsx)(c,{id:`image`,placeholder:`public.ecr.aws/nginx/nginx:latest`,...F}),t[58]=F,t[59]=I);let L;t[60]===h.image?L=t[61]:(L=(0,p.jsx)(fe,{errors:[h.image]}),t[60]=h.image,t[61]=L);let R;t[62]!==I||t[63]!==L?(R=(0,p.jsxs)(d,{children:[Ae,I,L]}),t[62]=I,t[63]=L,t[64]=R):R=t[64];let je;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`containerCpu`,children:`CPU (units)`})}),t[65]=je):je=t[65];let z;t[66]===m?z=t[67]:(z=m(`containerCpu`),t[66]=m,t[67]=z);let B;t[68]===z?B=t[69]:(B=(0,p.jsxs)(d,{children:[je,(0,p.jsx)(c,{id:`containerCpu`,placeholder:`optional`,...z})]}),t[68]=z,t[69]=B);let Me;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`containerMemory`,children:`Memory (MiB)`})}),t[70]=Me):Me=t[70];let V;t[71]===m?V=t[72]:(V=m(`containerMemory`),t[71]=m,t[72]=V);let H;t[73]===V?H=t[74]:(H=(0,p.jsxs)(d,{children:[Me,(0,p.jsx)(c,{id:`containerMemory`,placeholder:`optional`,...V})]}),t[73]=V,t[74]=H);let U;t[75]!==B||t[76]!==H?(U=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[B,H]}),t[75]=B,t[76]=H,t[77]=U):U=t[77];let W;t[78]===m?W=t[79]:(W=m(`essential`),t[78]=m,t[79]=W);let G;t[80]===W?G=t[81]:(G=(0,p.jsx)(`input`,{type:`checkbox`,...W}),t[80]=W,t[81]=G);let Ne;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,p.jsx)(`span`,{children:`Essential`}),t[82]=Ne):Ne=t[82];let K;t[83]===G?K=t[84]:(K=(0,p.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[G,Ne]}),t[83]=G,t[84]=K);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,p.jsx)(`span`,{className:`text-sm font-medium`,children:`Port mappings`}),t[85]=Pe):Pe=t[85];let q;t[86]===g?q=t[87]:(q=()=>g.append({containerPort:80,protocol:`tcp`}),t[86]=g,t[87]=q);let Fe;t[88]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,p.jsx)(ee,{className:`size-4`}),t[88]=Fe):Fe=t[88];let J;t[89]===q?J=t[90]:(J=(0,p.jsxs)(`div`,{className:`flex items-center justify-between`,children:[Pe,(0,p.jsxs)(ne,{onClick:q,size:`sm`,type:`button`,variant:`outline`,children:[Fe,`Add port`]})]}),t[89]=q,t[90]=J);let Y;t[91]!==l||t[92]!==m||t[93]!==g?(Y=g.fields.map((e,t)=>(0,p.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,p.jsxs)(d,{className:`flex-1`,children:[(0,p.jsx)(u,{children:(0,p.jsx)(`label`,{htmlFor:`port-${t}`,children:`Container port`})}),(0,p.jsx)(c,{id:`port-${t}`,type:`number`,...m(`portMappings.${t}.containerPort`,{valueAsNumber:!0})})]}),(0,p.jsx)(oe,{control:l,name:`portMappings.${t}.protocol`,render:he}),(0,p.jsx)(ne,{"aria-label":`Remove port mapping`,onClick:()=>g.remove(t),size:`icon`,type:`button`,variant:`ghost`,children:(0,p.jsx)(te,{className:`size-4`})})]},e.id)),t[91]=l,t[92]=m,t[93]=g,t[94]=Y):Y=t[94];let X;t[95]!==J||t[96]!==Y?(X=(0,p.jsxs)(`div`,{className:`space-y-2`,children:[J,Y]}),t[95]=J,t[96]=Y,t[97]=X):X=t[97];let Z;t[98]!==P||t[99]!==R||t[100]!==U||t[101]!==K||t[102]!==X?(Z=(0,p.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[Oe,(0,p.jsxs)(`div`,{className:`space-y-4`,children:[P,R,U,K,X]})]}),t[98]=P,t[99]=R,t[100]=U,t[101]=K,t[102]=X,t[103]=Z):Z=t[103];let Q;t[104]!==_||t[105]!==ve||t[106]!==a.isPending?(Q=(0,p.jsx)(ue,{isPending:a.isPending,isSubmitting:ve,onCancel:_,pendingLabel:`Registering…`,submitLabel:`Register Task Definition`}),t[104]=_,t[105]=ve,t[106]=a.isPending,t[107]=Q):Q=t[107];let $;t[108]!==y||t[109]!==C||t[110]!==w||t[111]!==A||t[112]!==Z||t[113]!==Q?($=(0,p.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:y,children:[C,w,A,Z,Q]}),t[108]=y,t[109]=C,t[110]=w,t[111]=A,t[112]=Z,t[113]=Q,t[114]=$):$=t[114];let Ie;return t[115]!==$||t[116]!==v?(Ie=(0,p.jsxs)(p.Fragment,{children:[Ce,we,v,$]}),t[115]=$,t[116]=v,t[117]=Ie):Ie=t[117],Ie}function he(e){let{field:t}=e;return(0,p.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,p.jsx)(o,{className:`w-28`,children:(0,p.jsx)(r,{})}),(0,p.jsxs)(a,{children:[(0,p.jsx)(i,{value:`tcp`,children:`tcp`}),(0,p.jsx)(i,{value:`udp`,children:`udp`})]})]})}function ge(e){let{field:t}=e;return(0,p.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,p.jsx)(o,{className:`w-full`,id:`networkMode`,children:(0,p.jsx)(r,{})}),(0,p.jsx)(a,{children:f.map(_e)})]})}function _e(e){return(0,p.jsx)(i,{value:e,children:e},e)}function h(){let e=(0,me.c)(2),{cluster:t}=l.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,p.jsx)(m,{cluster:t}),e[0]=t,e[1]=n),n}export{h as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useNavigate.js";import{t as ee}from"./back-link.js";import{c as r,i,n as a,s as o,t as s}from"./select.js";import{t as te}from"./plus.js";import{t as ne}from"./trash-2.js";import{t as re}from"./button.js";import{s as ie}from"./ecs.js";import{er as c,nt as l}from"./index.js";import{i as ae,n as oe,r as se,t as ce}from"./zod.js";import{t as le}from"./error-banner.js";import{t as ue}from"./form-actions.js";import{t as de}from"./page-heading.js";import{a as u,r as fe,t as d}from"./field.js";import{r as pe,t as me}from"./ecs2.js";var he=t(),f=e();function p(e){let t=(0,he.c)(118),{cluster:r}=e,i=n(),a=ie(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=ce(pe),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={resolver:o,defaultValues:{family:``,networkMode:`bridge`,cpu:``,memory:``,containerName:``,image:``,containerCpu:``,containerMemory:``,essential:!0,portMappings:[]}},t[1]=s):s=t[1];let{control:l,handleSubmit:me,register:p,formState:ve}=ae(s),{errors:m,isSubmitting:ye}=ve,be;t[2]===l?be=t[3]:(be={control:l,name:`portMappings`},t[2]=l,t[3]=be);let h=se(be),xe;t[4]!==r||t[5]!==i?(xe=function(){i(r?{to:`/ecs/list-clusters/$clusterName`,params:{clusterName:r}}:{to:`/ecs/list-clusters`})},t[4]=r,t[5]=i,t[6]=xe):xe=t[6];let g=xe,Se;t[7]!==g||t[8]!==a?(Se=async function(e){await a.mutateAsync(e),g()},t[7]=g,t[8]=a,t[9]=Se):Se=t[9];let Ce=Se,we,Te;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,f.jsx)(ee,{to:`/ecs/list-clusters`,children:`Clusters`}),Te=(0,f.jsx)(de,{subtitle:`Register a single-container task definition`,title:`Register Task Definition`}),t[10]=we,t[11]=Te):(we=t[10],Te=t[11]);let _;t[12]!==a.error||t[13]!==a.isError?(_=a.isError&&(0,f.jsx)(le,{error:a.error instanceof Error?a.error:void 0,msg:`Failed to register task definition.`}),t[12]=a.error,t[13]=a.isError,t[14]=_):_=t[14];let v;t[15]!==me||t[16]!==Ce?(v=me(Ce),t[15]=me,t[16]=Ce,t[17]=v):v=t[17];let Ee;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`family`,children:`Family`})}),t[18]=Ee):Ee=t[18];let y;t[19]===p?y=t[20]:(y=p(`family`),t[19]=p,t[20]=y);let b;t[21]===y?b=t[22]:(b=(0,f.jsx)(c,{id:`family`,placeholder:`my-app`,...y}),t[21]=y,t[22]=b);let x;t[23]===m.family?x=t[24]:(x=(0,f.jsx)(fe,{errors:[m.family]}),t[23]=m.family,t[24]=x);let S;t[25]!==b||t[26]!==x?(S=(0,f.jsxs)(d,{children:[Ee,b,x]}),t[25]=b,t[26]=x,t[27]=S):S=t[27];let De;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`networkMode`,children:`Network mode`})}),t[28]=De):De=t[28];let C;t[29]===l?C=t[30]:(C=(0,f.jsxs)(d,{children:[De,(0,f.jsx)(oe,{control:l,name:`networkMode`,render:_e})]}),t[29]=l,t[30]=C);let w;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`cpu`,children:`Task CPU (units)`})}),t[31]=w):w=t[31];let T;t[32]===p?T=t[33]:(T=p(`cpu`),t[32]=p,t[33]=T);let E;t[34]===T?E=t[35]:(E=(0,f.jsxs)(d,{children:[w,(0,f.jsx)(c,{id:`cpu`,placeholder:`optional`,...T})]}),t[34]=T,t[35]=E);let D;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`memory`,children:`Task memory (MiB)`})}),t[36]=D):D=t[36];let O;t[37]===p?O=t[38]:(O=p(`memory`),t[37]=p,t[38]=O);let k;t[39]===O?k=t[40]:(k=(0,f.jsxs)(d,{children:[D,(0,f.jsx)(c,{id:`memory`,placeholder:`optional`,...O})]}),t[39]=O,t[40]=k);let A;t[41]!==E||t[42]!==k?(A=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[E,k]}),t[41]=E,t[42]=k,t[43]=A):A=t[43];let Oe;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,f.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Container`}),t[44]=Oe):Oe=t[44];let ke;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerName`,children:`Name`})}),t[45]=ke):ke=t[45];let j;t[46]===p?j=t[47]:(j=p(`containerName`),t[46]=p,t[47]=j);let M;t[48]===j?M=t[49]:(M=(0,f.jsx)(c,{id:`containerName`,placeholder:`app`,...j}),t[48]=j,t[49]=M);let N;t[50]===m.containerName?N=t[51]:(N=(0,f.jsx)(fe,{errors:[m.containerName]}),t[50]=m.containerName,t[51]=N);let P;t[52]!==M||t[53]!==N?(P=(0,f.jsxs)(d,{children:[ke,M,N]}),t[52]=M,t[53]=N,t[54]=P):P=t[54];let Ae;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`image`,children:`Image`})}),t[55]=Ae):Ae=t[55];let F;t[56]===p?F=t[57]:(F=p(`image`),t[56]=p,t[57]=F);let I;t[58]===F?I=t[59]:(I=(0,f.jsx)(c,{id:`image`,placeholder:`public.ecr.aws/nginx/nginx:latest`,...F}),t[58]=F,t[59]=I);let L;t[60]===m.image?L=t[61]:(L=(0,f.jsx)(fe,{errors:[m.image]}),t[60]=m.image,t[61]=L);let R;t[62]!==I||t[63]!==L?(R=(0,f.jsxs)(d,{children:[Ae,I,L]}),t[62]=I,t[63]=L,t[64]=R):R=t[64];let je;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerCpu`,children:`CPU (units)`})}),t[65]=je):je=t[65];let z;t[66]===p?z=t[67]:(z=p(`containerCpu`),t[66]=p,t[67]=z);let B;t[68]===z?B=t[69]:(B=(0,f.jsxs)(d,{children:[je,(0,f.jsx)(c,{id:`containerCpu`,placeholder:`optional`,...z})]}),t[68]=z,t[69]=B);let Me;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`containerMemory`,children:`Memory (MiB)`})}),t[70]=Me):Me=t[70];let V;t[71]===p?V=t[72]:(V=p(`containerMemory`),t[71]=p,t[72]=V);let H;t[73]===V?H=t[74]:(H=(0,f.jsxs)(d,{children:[Me,(0,f.jsx)(c,{id:`containerMemory`,placeholder:`optional`,...V})]}),t[73]=V,t[74]=H);let U;t[75]!==B||t[76]!==H?(U=(0,f.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[B,H]}),t[75]=B,t[76]=H,t[77]=U):U=t[77];let W;t[78]===p?W=t[79]:(W=p(`essential`),t[78]=p,t[79]=W);let G;t[80]===W?G=t[81]:(G=(0,f.jsx)(`input`,{type:`checkbox`,...W}),t[80]=W,t[81]=G);let Ne;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,f.jsx)(`span`,{children:`Essential`}),t[82]=Ne):Ne=t[82];let K;t[83]===G?K=t[84]:(K=(0,f.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[G,Ne]}),t[83]=G,t[84]=K);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,f.jsx)(`span`,{className:`text-sm font-medium`,children:`Port mappings`}),t[85]=Pe):Pe=t[85];let q;t[86]===h?q=t[87]:(q=()=>h.append({containerPort:80,protocol:`tcp`}),t[86]=h,t[87]=q);let Fe;t[88]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,f.jsx)(te,{className:`size-4`}),t[88]=Fe):Fe=t[88];let J;t[89]===q?J=t[90]:(J=(0,f.jsxs)(`div`,{className:`flex items-center justify-between`,children:[Pe,(0,f.jsxs)(re,{onClick:q,size:`sm`,type:`button`,variant:`outline`,children:[Fe,`Add port`]})]}),t[89]=q,t[90]=J);let Y;t[91]!==l||t[92]!==p||t[93]!==h?(Y=h.fields.map((e,t)=>(0,f.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,f.jsxs)(d,{className:`flex-1`,children:[(0,f.jsx)(u,{children:(0,f.jsx)(`label`,{htmlFor:`port-${t}`,children:`Container port`})}),(0,f.jsx)(c,{id:`port-${t}`,type:`number`,...p(`portMappings.${t}.containerPort`,{valueAsNumber:!0})})]}),(0,f.jsx)(oe,{control:l,name:`portMappings.${t}.protocol`,render:ge}),(0,f.jsx)(re,{"aria-label":`Remove port mapping`,onClick:()=>h.remove(t),size:`icon`,type:`button`,variant:`ghost`,children:(0,f.jsx)(ne,{className:`size-4`})})]},e.id)),t[91]=l,t[92]=p,t[93]=h,t[94]=Y):Y=t[94];let X;t[95]!==J||t[96]!==Y?(X=(0,f.jsxs)(`div`,{className:`space-y-2`,children:[J,Y]}),t[95]=J,t[96]=Y,t[97]=X):X=t[97];let Z;t[98]!==P||t[99]!==R||t[100]!==U||t[101]!==K||t[102]!==X?(Z=(0,f.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[Oe,(0,f.jsxs)(`div`,{className:`space-y-4`,children:[P,R,U,K,X]})]}),t[98]=P,t[99]=R,t[100]=U,t[101]=K,t[102]=X,t[103]=Z):Z=t[103];let Q;t[104]!==g||t[105]!==ye||t[106]!==a.isPending?(Q=(0,f.jsx)(ue,{isPending:a.isPending,isSubmitting:ye,onCancel:g,pendingLabel:`Registering…`,submitLabel:`Register Task Definition`}),t[104]=g,t[105]=ye,t[106]=a.isPending,t[107]=Q):Q=t[107];let $;t[108]!==v||t[109]!==S||t[110]!==C||t[111]!==A||t[112]!==Z||t[113]!==Q?($=(0,f.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:v,children:[S,C,A,Z,Q]}),t[108]=v,t[109]=S,t[110]=C,t[111]=A,t[112]=Z,t[113]=Q,t[114]=$):$=t[114];let Ie;return t[115]!==$||t[116]!==_?(Ie=(0,f.jsxs)(f.Fragment,{children:[we,Te,_,$]}),t[115]=$,t[116]=_,t[117]=Ie):Ie=t[117],Ie}function ge(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-28`,children:(0,f.jsx)(r,{})}),(0,f.jsxs)(a,{children:[(0,f.jsx)(i,{value:`tcp`,children:`tcp`}),(0,f.jsx)(i,{value:`udp`,children:`udp`})]})]})}function _e(e){let{field:t}=e;return(0,f.jsxs)(s,{onValueChange:t.onChange,value:t.value,children:[(0,f.jsx)(o,{className:`w-full`,id:`networkMode`,children:(0,f.jsx)(r,{})}),(0,f.jsx)(a,{children:me.map(ve)})]})}function ve(e){return(0,f.jsx)(i,{value:e,children:e},e)}function m(){let e=(0,he.c)(2),{cluster:t}=l.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,f.jsx)(p,{cluster:t}),e[0]=t,e[1]=n),n}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js b/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js index 50bb1c909..b36df6d9b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/rotate-cw.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route.js b/spinifex/services/spinifexui/frontend/dist/assets/route.js index 6584e2d90..1f7ac59cd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Zr as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Hr as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/route2.js b/spinifex/services/spinifexui/frontend/dist/assets/route2.js index 6584e2d90..1f7ac59cd 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/route2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/route2.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Zr as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Hr as n}from"./index.js";var r=t(),i=e(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t};export{a as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js index 40c7fc8aa..8c8af84b7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-instances.js @@ -1,16 +1,16 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ht as i}from"./auth.js";import{t as a}from"./back-link.js";import{t as o}from"./chevron-down.js";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"./select.js";import{t as ee}from"./cli-command-panel.js";import{t as h}from"./button.js";import{d as g}from"./ec2.js";import{Ht as _,Nt as v,Qr as y,Rt as te,Zt as b,jt as x,nr as S,qt as C,tn as ne}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,n as A,r as j,t as M}from"./field.js";import{i as re,t as ie,v as ae}from"./ec22.js";import{n as oe,r as se,t as ce}from"./collapsible.js";var le=t(n()),N=e(),P=`/dev/sda1`,ue=`gp3`,de=1,fe=16384;function pe(){let e=y(),{data:t}=r(x),{data:n}=r(te),{data:P}=r(v),{data:pe}=r(b),{data:he}=r(_),{data:ge}=r(ne),{data:_e}=r(C),I=g(),L=t.Images??[],ve=n.KeyPairs??[],ye=pe.Subnets??[],be=he.PlacementGroups??[],xe=ge.Vpcs??[],R=_e.SecurityGroups??[],Se=(xe.find(e=>e.IsDefault)??xe[0])?.VpcId,Ce=ae(R.map(e=>e.GroupName??``)),z={},B=new Map;for(let e of P.InstanceTypes??[]){let t=e.InstanceType;if(t&&(z[t]=(z[t]??0)+1,!B.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&B.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let V=Object.keys(z).toSorted(),H=V.filter(e=>B.has(e)),U=V.filter(e=>!B.has(e)),we=L[0]?.ImageId,Te=ve[0]?.KeyName,Ee=V.find(e=>e.endsWith(`.nano`))??V[0],De=F(L.find(e=>e.ImageId===we)),{control:W,handleSubmit:Oe,register:G,setValue:K,getValues:ke,watch:q,formState:{errors:J,isSubmitting:Y}}=w({resolver:E(re.refine(e=>e.count<=(z[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=F(L.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===je)),Me=q(`subnetId`),Ne=q(`securityGroupMode`),Pe=q(`ruleSource`),Fe=q(`securityGroupIds`)??[],$=ye.find(e=>e.SubnetId===Me)?.VpcId??Se,Ie=$?R.filter(e=>e.VpcId===$):R,Le=e=>{let t=ke(`securityGroupIds`)??[];K(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,le.useEffect)(()=>{K(`rootDeviceName`,Q.deviceName)},[je,Q.deviceName,K]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(a,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,N.jsx)(O,{title:`Run Instances`}),V.length===0&&(0,N.jsx)(D,{msg:`No compute available. No new instances can be created until compute is available.`}),I.error&&(0,N.jsx)(D,{error:I.error,msg:`Failed to create instance`}),(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:Oe(async t=>{await I.mutateAsync({...t,resolvedVpcId:$}),e({to:`/ec2/describe-instances`})}),children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,N.jsx)(T,{control:W,name:`imageId`,render:({field:e})=>{let t=L.find(t=>t.ImageId===e.value);return(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.imageId,className:`w-full`,id:`imageId`,children:(0,N.jsx)(c,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,N.jsx)(u,{children:L.map(e=>(0,N.jsxs)(l,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,N.jsx)(j,{errors:[J.imageId]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,N.jsx)(T,{control:W,name:`instanceType`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.instanceType,className:`w-full`,id:`instanceType`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[U.length>0&&(0,N.jsxs)(f,{children:[H.length>0&&(0,N.jsx)(s,{children:`Standard`}),U.map(e=>(0,N.jsxs)(l,{value:e,children:[e,` (`,z[e],` available)`]},e))]}),H.length>0&&U.length>0&&(0,N.jsx)(d,{}),H.length>0&&(0,N.jsxs)(f,{children:[(0,N.jsx)(s,{children:`GPU-Accelerated`}),H.map(e=>{let t=B.get(e);return(0,N.jsxs)(l,{value:e,children:[e,t?` — ${i(t.totalMiB)}`:``,` (`,z[e],` available)`]},e)})]})]})]})}),Z&&(0,N.jsxs)(A,{children:[`GPU: `,Z.gpuName,` ·`,` `,i(Z.totalMiB),` VRAM`]}),(0,N.jsx)(j,{errors:[J.instanceType]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,N.jsx)(T,{control:W,name:`keyName`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,N.jsx)(p,{"aria-invalid":!!J.keyName,className:`w-full`,id:`keyName`,children:(0,N.jsx)(c,{})}),(0,N.jsx)(u,{children:ve.map(e=>(0,N.jsx)(l,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,N.jsx)(j,{errors:[J.keyName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,N.jsx)(T,{control:W,name:`subnetId`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,N.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[(0,N.jsx)(l,{value:`none`,children:`none`}),ye.map(e=>(0,N.jsx)(l,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Security Group`}),(0,N.jsx)(A,{children:$?`Applies to VPC ${$}`:`No VPC resolved — select a subnet`}),(0,N.jsx)(T,{control:W,name:`securityGroupMode`,render:({field:e})=>(0,N.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Ne===`create`?(0,N.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,N.jsx)(S,{"aria-invalid":!!J.newSgName,id:`newSgName`,type:`text`,...G(`newSgName`)}),(0,N.jsx)(j,{errors:[J.newSgName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,N.jsx)(S,{id:`newSgDescription`,type:`text`,...G(`newSgDescription`)})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Inbound rules`}),(0,N.jsxs)(`div`,{className:`space-y-1`,children:[(0,N.jsx)(T,{control:W,name:`allowSsh`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,N.jsx)(T,{control:W,name:`allowHttp`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,N.jsx)(T,{control:W,name:`allowHttps`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:`Source`}),(0,N.jsx)(T,{control:W,name:`ruleSource`,render:({field:e})=>(0,N.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,N.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Pe===`custom`&&(0,N.jsxs)(`div`,{className:`mt-2`,children:[(0,N.jsx)(S,{"aria-invalid":!!J.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...G(`customCidr`)}),(0,N.jsx)(j,{errors:[J.customCidr]})]})]})]}):(0,N.jsxs)(`div`,{className:`mt-3`,children:[Ie.length===0?(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,N.jsx)(`div`,{className:`space-y-1`,children:Ie.map(e=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,N.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Fe.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,N.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,N.jsx)(j,{errors:[J.securityGroupIds]})]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,N.jsx)(T,{control:W,name:`placementGroupName`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,N.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,N.jsx)(c,{})}),(0,N.jsxs)(u,{children:[(0,N.jsx)(l,{value:`none`,children:`none`}),be.map(e=>(0,N.jsxs)(l,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,N.jsx)(S,{"aria-describedby":`count-description`,"aria-invalid":!!J.count,id:`count`,type:`number`,...G(`count`,{valueAsNumber:!0})}),(0,N.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:X&&`Available capacity for ${X}: ${Ae}`}),(0,N.jsx)(j,{errors:[J.count]})]}),(0,N.jsxs)(ce,{children:[(0,N.jsxs)(se,{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,N.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,N.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,N.jsx)(o,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,N.jsxs)(oe,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,N.jsx)(S,{"aria-invalid":!!J.rootDeviceName,id:`rootDeviceName`,type:`text`,...G(`rootDeviceName`)}),(0,N.jsx)(j,{errors:[J.rootDeviceName]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,N.jsx)(S,{"aria-invalid":!!J.rootVolumeSize,id:`rootVolumeSize`,max:fe,min:Q.snapshotSize??de,placeholder:Q.snapshotSize?`${Q.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...G(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Q.snapshotSize!==void 0&&(0,N.jsxs)(A,{children:[`AMI snapshot size: `,Q.snapshotSize,` GiB`]}),(0,N.jsx)(j,{errors:[J.rootVolumeSize]})]}),(0,N.jsxs)(M,{children:[(0,N.jsx)(k,{children:(0,N.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,N.jsx)(T,{control:W,name:`rootVolumeType`,render:({field:e})=>(0,N.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??ue,children:[(0,N.jsx)(p,{"aria-invalid":!!J.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,N.jsx)(c,{})}),(0,N.jsx)(u,{children:ie.map(e=>(0,N.jsx)(l,{value:e,children:e},e))})]})}),(0,N.jsx)(j,{errors:[J.rootVolumeType]})]}),(0,N.jsx)(M,{children:(0,N.jsx)(T,{control:W,name:`rootDeleteOnTermination`,render:({field:e})=>(0,N.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,N.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,N.jsx)(ee,{commands:me(q,$)}),(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[(0,N.jsx)(h,{disabled:Y||I.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,N.jsx)(h,{disabled:Y||I.isPending||V.length===0,type:`submit`,children:Y||I.isPending?`Creating…`:`Create Instance`})]})]})]})}function F(e){let t=e?.RootDeviceName??P,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function me(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),s=typeof o==`string`?o:``,c=e(`subnetId`),l=typeof c==`string`?c:``,u=e(`placementGroupName`),d=typeof u==`string`?u:``,f=e(`count`),p=typeof f==`number`?f:0,m=e(`rootDeviceName`),ee=typeof m==`string`?m:``,h=e(`rootVolumeSize`),g=typeof h==`number`?h:void 0,_=e(`rootVolumeType`),v=typeof _==`string`?_:``,y=e(`rootDeleteOnTermination`),te=typeof y==`boolean`?y:!0,b=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{Ht as a}from"./auth.js";import{t as o}from"./cli-command-panel.js";import{t as ee}from"./back-link.js";import{t as s}from"./chevron-down.js";import{a as c,c as l,i as u,n as d,o as te,r as f,s as p,t as m}from"./select.js";import{t as h}from"./button.js";import{d as g}from"./ec2.js";import{Ht as _,Nt as v,Rt as ne,Zt as y,er as b,jt as re,qt as x,tn as ie}from"./index.js";import{i as S,n as C,t as w}from"./zod.js";import{t as T}from"./error-banner.js";import{t as E}from"./page-heading.js";import{a as D,n as O,r as k,t as A}from"./field.js";import{i as ae,t as oe,v as se}from"./ec22.js";import{n as ce,r as le,t as ue}from"./collapsible.js";var de=t(n()),j=e(),M=`/dev/sda1`,fe=`gp3`,pe=1,me=16384;function N(){let e=i(),{data:t}=r(re),{data:n}=r(ne),{data:M}=r(v),{data:N}=r(y),{data:ge}=r(_),{data:_e}=r(ie),{data:ve}=r(x),F=g(),I=t.Images??[],ye=n.KeyPairs??[],be=N.Subnets??[],xe=ge.PlacementGroups??[],Se=_e.Vpcs??[],L=ve.SecurityGroups??[],Ce=(Se.find(e=>e.IsDefault)??Se[0])?.VpcId,we=se(L.map(e=>e.GroupName??``)),R={},z=new Map;for(let e of M.InstanceTypes??[]){let t=e.InstanceType;if(t&&(R[t]=(R[t]??0)+1,!z.has(t))){let n=e.GpuInfo?.Gpus;n&&n.length>0&&z.set(t,{totalMiB:e.GpuInfo?.TotalGpuMemoryInMiB??0,gpuName:n[0]?.Name??``})}}let B=Object.keys(R).toSorted(),V=B.filter(e=>z.has(e)),H=B.filter(e=>!z.has(e)),Te=I[0]?.ImageId,Ee=ye[0]?.KeyName,De=B.find(e=>e.endsWith(`.nano`))??B[0],Oe=P(I.find(e=>e.ImageId===Te)),{control:U,handleSubmit:ke,register:W,setValue:G,getValues:Ae,watch:K,formState:{errors:q,isSubmitting:J}}=S({resolver:w(ae.refine(e=>e.count<=(R[e.instanceType]??1),{message:`Cannot exceed available capacity`,path:[`count`]}).superRefine((e,t)=>{let n=P(I.find(t=>t.ImageId===e.imageId)).snapshotSize;e.rootVolumeSize!==void 0&&n!==void 0&&e.rootVolumeSizee.ImageId===Me)),Ne=K(`subnetId`),Pe=K(`securityGroupMode`),Fe=K(`ruleSource`),Ie=K(`securityGroupIds`)??[],Q=be.find(e=>e.SubnetId===Ne)?.VpcId??Ce,$=Q?L.filter(e=>e.VpcId===Q):L,Le=e=>{let t=Ae(`securityGroupIds`)??[];G(`securityGroupIds`,t.includes(e)?t.filter(t=>t!==e):[...t,e],{shouldValidate:!0})};return(0,de.useEffect)(()=>{G(`rootDeviceName`,Z.deviceName)},[Me,Z.deviceName,G]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ee,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,j.jsx)(E,{title:`Run Instances`}),B.length===0&&(0,j.jsx)(T,{msg:`No compute available. No new instances can be created until compute is available.`}),F.error&&(0,j.jsx)(T,{error:F.error,msg:`Failed to create instance`}),(0,j.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:ke(async t=>{await F.mutateAsync({...t,resolvedVpcId:Q}),e({to:`/ec2/describe-instances`})}),children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`imageId`,children:`Image`})}),(0,j.jsx)(C,{control:U,name:`imageId`,render:({field:e})=>{let t=I.find(t=>t.ImageId===e.value);return(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.imageId,className:`w-full`,id:`imageId`,children:(0,j.jsx)(l,{children:t?`${t.Name??`Unnamed`} (${t.Architecture})`:``})}),(0,j.jsx)(d,{children:I.map(e=>(0,j.jsxs)(u,{value:e.ImageId??``,children:[e.Name??`Unnamed`,` (`,e.Architecture,`)`]},e.ImageId))})]})}}),(0,j.jsx)(k,{errors:[q.imageId]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,j.jsx)(C,{control:U,name:`instanceType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.instanceType,className:`w-full`,id:`instanceType`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[H.length>0&&(0,j.jsxs)(f,{children:[V.length>0&&(0,j.jsx)(c,{children:`Standard`}),H.map(e=>(0,j.jsxs)(u,{value:e,children:[e,` (`,R[e],` available)`]},e))]}),V.length>0&&H.length>0&&(0,j.jsx)(te,{}),V.length>0&&(0,j.jsxs)(f,{children:[(0,j.jsx)(c,{children:`GPU-Accelerated`}),V.map(e=>{let t=z.get(e);return(0,j.jsxs)(u,{value:e,children:[e,t?` — ${a(t.totalMiB)}`:``,` (`,R[e],` available)`]},e)})]})]})]})}),X&&(0,j.jsxs)(O,{children:[`GPU: `,X.gpuName,` ·`,` `,a(X.totalMiB),` VRAM`]}),(0,j.jsx)(k,{errors:[q.instanceType]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair`})}),(0,j.jsx)(C,{control:U,name:`keyName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value||``,children:[(0,j.jsx)(p,{"aria-invalid":!!q.keyName,className:`w-full`,id:`keyName`,children:(0,j.jsx)(l,{})}),(0,j.jsx)(d,{children:ye.map(e=>(0,j.jsx)(u,{value:e.KeyName??``,children:e.KeyName},e.KeyPairId))})]})}),(0,j.jsx)(k,{errors:[q.keyName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`subnetId`,children:`Subnet`})}),(0,j.jsx)(C,{control:U,name:`subnetId`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`subnetId`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[(0,j.jsx)(u,{value:`none`,children:`none`}),be.map(e=>(0,j.jsx)(u,{value:e.SubnetId??``,children:e.SubnetId},e.SubnetId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Security Group`}),(0,j.jsx)(O,{children:Q?`Applies to VPC ${Q}`:`No VPC resolved — select a subnet`}),(0,j.jsx)(C,{control:U,name:`securityGroupMode`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Create new security group`,checked:e.value===`create`,onChange:()=>e.onChange(`create`),type:`radio`}),`Create new`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Select existing security group`,checked:e.value===`existing`,onChange:()=>e.onChange(`existing`),type:`radio`}),`Select existing`]})]})}),Pe===`create`?(0,j.jsxs)(`div`,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgName`,children:`Name`})}),(0,j.jsx)(b,{"aria-invalid":!!q.newSgName,id:`newSgName`,type:`text`,...W(`newSgName`)}),(0,j.jsx)(k,{errors:[q.newSgName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`newSgDescription`,children:`Description`})}),(0,j.jsx)(b,{id:`newSgDescription`,type:`text`,...W(`newSgDescription`)})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Inbound rules`}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(C,{control:U,name:`allowSsh`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow SSH`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow SSH (tcp/22)`]})}),(0,j.jsx)(C,{control:U,name:`allowHttp`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTP`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTP (tcp/80)`]})}),(0,j.jsx)(C,{control:U,name:`allowHttps`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Allow HTTPS`,checked:e.value,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Allow HTTPS (tcp/443)`]})})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:`Source`}),(0,j.jsx)(C,{control:U,name:`ruleSource`,render:({field:e})=>(0,j.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source anywhere`,checked:e.value===`anywhere`,onChange:()=>e.onChange(`anywhere`),type:`radio`}),`Anywhere (0.0.0.0/0)`]}),(0,j.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`input`,{"aria-label":`Source custom CIDR`,checked:e.value===`custom`,onChange:()=>e.onChange(`custom`),type:`radio`}),`Custom CIDR`]})]})}),Fe===`custom`&&(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(b,{"aria-invalid":!!q.customCidr,placeholder:`203.0.113.0/24`,type:`text`,...W(`customCidr`)}),(0,j.jsx)(k,{errors:[q.customCidr]})]})]})]}):(0,j.jsxs)(`div`,{className:`mt-3`,children:[$.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups in the resolved VPC.`}):(0,j.jsx)(`div`,{className:`space-y-1`,children:$.map(e=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,j.jsx)(`input`,{"aria-label":`Security group ${e.GroupId} (${e.GroupName})`,checked:Ie.includes(e.GroupId??``),onChange:()=>Le(e.GroupId??``),type:`checkbox`}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))}),(0,j.jsx)(k,{errors:[q.securityGroupIds]})]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`placementGroupName`,children:`Placement Group`})}),(0,j.jsx)(C,{control:U,name:`placementGroupName`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t===`none`?void 0:t),value:e.value??`none`,children:[(0,j.jsx)(p,{className:`w-full`,id:`placementGroupName`,children:(0,j.jsx)(l,{})}),(0,j.jsxs)(d,{children:[(0,j.jsx)(u,{value:`none`,children:`none`}),xe.map(e=>(0,j.jsxs)(u,{value:e.GroupName??``,children:[e.GroupName,` (`,e.Strategy,`)`]},e.GroupId))]})]})})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`count`,children:`Number of Instances`})}),(0,j.jsx)(b,{"aria-describedby":`count-description`,"aria-invalid":!!q.count,id:`count`,type:`number`,...W(`count`,{valueAsNumber:!0})}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground`,id:`count-description`,children:Y&&`Available capacity for ${Y}: ${je}`}),(0,j.jsx)(k,{errors:[q.count]})]}),(0,j.jsxs)(ue,{children:[(0,j.jsxs)(le,{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,j.jsx)(`button`,{"aria-label":`Block Device Mappings (root volume)`,type:`button`}),children:[(0,j.jsx)(`span`,{children:`Block Device Mappings (root volume)`}),(0,j.jsx)(s,{className:`size-3.5 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180`})]}),(0,j.jsxs)(ce,{className:`mt-3 space-y-4 rounded-md border border-border p-4`,children:[(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootDeviceName`,children:`Device Name`})}),(0,j.jsx)(b,{"aria-invalid":!!q.rootDeviceName,id:`rootDeviceName`,type:`text`,...W(`rootDeviceName`)}),(0,j.jsx)(k,{errors:[q.rootDeviceName]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeSize`,children:`Volume Size (GiB)`})}),(0,j.jsx)(b,{"aria-invalid":!!q.rootVolumeSize,id:`rootVolumeSize`,max:me,min:Z.snapshotSize??pe,placeholder:Z.snapshotSize?`${Z.snapshotSize} (AMI default)`:`use AMI / backend default`,type:`number`,...W(`rootVolumeSize`,{setValueAs:e=>e===``||e==null?void 0:Number(e)})}),Z.snapshotSize!==void 0&&(0,j.jsxs)(O,{children:[`AMI snapshot size: `,Z.snapshotSize,` GiB`]}),(0,j.jsx)(k,{errors:[q.rootVolumeSize]})]}),(0,j.jsxs)(A,{children:[(0,j.jsx)(D,{children:(0,j.jsx)(`label`,{htmlFor:`rootVolumeType`,children:`Volume Type`})}),(0,j.jsx)(C,{control:U,name:`rootVolumeType`,render:({field:e})=>(0,j.jsxs)(m,{onValueChange:t=>e.onChange(t),value:e.value??fe,children:[(0,j.jsx)(p,{"aria-invalid":!!q.rootVolumeType,className:`w-full`,id:`rootVolumeType`,children:(0,j.jsx)(l,{})}),(0,j.jsx)(d,{children:oe.map(e=>(0,j.jsx)(u,{value:e,children:e},e))})]})}),(0,j.jsx)(k,{errors:[q.rootVolumeType]})]}),(0,j.jsx)(A,{children:(0,j.jsx)(C,{control:U,name:`rootDeleteOnTermination`,render:({field:e})=>(0,j.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,j.jsx)(`input`,{"aria-label":`Delete on termination`,checked:e.value??!0,onChange:t=>e.onChange(t.target.checked),type:`checkbox`}),`Delete on termination`]})})})]})]}),(0,j.jsx)(o,{commands:he(K,Q)}),(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(h,{disabled:J||F.isPending,onClick:async()=>await e({to:`/ec2/describe-instances`}),type:`button`,variant:`outline`,children:`Cancel`}),(0,j.jsx)(h,{disabled:J||F.isPending||B.length===0,type:`submit`,children:J||F.isPending?`Creating…`:`Create Instance`})]})]})]})}function P(e){let t=e?.RootDeviceName??M,n=e?.BlockDeviceMappings??[];return{deviceName:t,snapshotSize:(n.find(e=>e.DeviceName===t)??n[0])?.Ebs?.VolumeSize}}function he(e,t){let n=e(`imageId`),r=typeof n==`string`?n:``,i=e(`instanceType`),a=typeof i==`string`?i:``,o=e(`keyName`),ee=typeof o==`string`?o:``,s=e(`subnetId`),c=typeof s==`string`?s:``,l=e(`placementGroupName`),u=typeof l==`string`?l:``,d=e(`count`),te=typeof d==`number`?d:0,f=e(`rootDeviceName`),p=typeof f==`string`?f:``,m=e(`rootVolumeSize`),h=typeof m==`number`?m:void 0,g=e(`rootVolumeType`),_=typeof g==`string`?g:``,v=e(`rootDeleteOnTermination`),ne=typeof v==`boolean`?v:!0,y=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 run-instances`},{type:`flag`,value:` \\ --image-id`},{type:`value`,value:` ${r||``}`},{type:`flag`,value:` \\ --instance-type`},{type:`value`,value:` ${a||``}`},{type:`flag`,value:` \\ - --key-name`},{type:`value`,value:` ${s||``}`}];l&&b.push({type:`flag`,value:` \\ - --subnet-id`},{type:`value`,value:` ${l}`}),d&&b.push({type:`flag`,value:` \\ - --placement`},{type:`value`,value:` GroupName=${d}`}),b.push({type:`flag`,value:` \\ - --count`},{type:`value`,value:` ${p||1}`});let x=e(`securityGroupMode`),S=typeof x==`string`?x:`create`,C=e(`newSgName`),ne=typeof C==`string`?C:``,w=e(`newSgDescription`),T=typeof w==`string`?w:``,E=e(`ruleSource`),D=typeof E==`string`?E:`anywhere`,O=e(`customCidr`),k=typeof O==`string`?O:``,A=[];if(S===`create`){A.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ - --group-name`},{type:`value`,value:` ${ne||``}`},{type:`flag`,value:` \\ - --description`},{type:`value`,value:` '${T||`Created by launch wizard`}'`},{type:`flag`,value:` \\ + --key-name`},{type:`value`,value:` ${ee||``}`}];c&&y.push({type:`flag`,value:` \\ + --subnet-id`},{type:`value`,value:` ${c}`}),u&&y.push({type:`flag`,value:` \\ + --placement`},{type:`value`,value:` GroupName=${u}`}),y.push({type:`flag`,value:` \\ + --count`},{type:`value`,value:` ${te||1}`});let b=e(`securityGroupMode`),re=typeof b==`string`?b:`create`,x=e(`newSgName`),ie=typeof x==`string`?x:``,S=e(`newSgDescription`),C=typeof S==`string`?S:``,w=e(`ruleSource`),T=typeof w==`string`?w:`anywhere`,E=e(`customCidr`),D=typeof E==`string`?E:``,O=[];if(re===`create`){O.push({label:`Create security group`,parts:[{type:`bin`,value:`SG_ID=$(AWS_PROFILE=spinifex aws ec2 create-security-group`},{type:`flag`,value:` \\ + --group-name`},{type:`value`,value:` ${ie||``}`},{type:`flag`,value:` \\ + --description`},{type:`value`,value:` '${C||`Created by launch wizard`}'`},{type:`flag`,value:` \\ --vpc-id`},{type:`value`,value:` ${t??``}`},{type:`flag`,value:` \\ - --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=D===`custom`&&k?k:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));A.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ + --query`},{type:`value`,value:` 'GroupId' --output text)`}]});let n=T===`custom`&&D?D:`0.0.0.0/0`,r=[...e(`allowSsh`)===!0?[22]:[],...e(`allowHttp`)===!0?[80]:[],...e(`allowHttps`)===!0?[443]:[]];if(r.length>0){let e=JSON.stringify(r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:n}]})));O.push({label:`Authorize inbound rules`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 authorize-security-group-ingress`},{type:`flag`,value:` \\ --group-id`},{type:`value`,value:` $SG_ID`},{type:`flag`,value:` \\ - --ip-permissions`},{type:`value`,value:` '${e}'`}]})}b.push({type:`flag`,value:` \\ - --security-group-ids`},{type:`value`,value:` $SG_ID`})}else{let t=e(`securityGroupIds`),n=Array.isArray(t)?t.filter(e=>typeof e==`string`):[];n.length>0&&b.push({type:`flag`,value:` \\ - --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(g!==void 0||_!==void 0||y!==void 0){let e={};g!==void 0&&(e.VolumeSize=g),v&&(e.VolumeType=v),y!==void 0&&(e.DeleteOnTermination=te);let t=JSON.stringify([{DeviceName:ee||P,Ebs:e}]);b.push({type:`flag`,value:` \\ - --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...A,{label:`Run Instances`,parts:b}]}export{pe as component}; \ No newline at end of file + --ip-permissions`},{type:`value`,value:` '${e}'`}]})}y.push({type:`flag`,value:` \\ + --security-group-ids`},{type:`value`,value:` $SG_ID`})}else{let t=e(`securityGroupIds`),n=Array.isArray(t)?t.filter(e=>typeof e==`string`):[];n.length>0&&y.push({type:`flag`,value:` \\ + --security-group-ids`},{type:`value`,value:` ${n.join(` `)}`})}if(h!==void 0||g!==void 0||v!==void 0){let e={};h!==void 0&&(e.VolumeSize=h),_&&(e.VolumeType=_),v!==void 0&&(e.DeleteOnTermination=ne);let t=JSON.stringify([{DeviceName:p||M,Ebs:e}]);y.push({type:`flag`,value:` \\ + --block-device-mappings`},{type:`value`,value:` '${t}'`})}return[...O,{label:`Run Instances`,parts:y}]}export{N as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/run-task.js b/spinifex/services/spinifexui/frontend/dist/assets/run-task.js index 39910775a..f86628732 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/run-task.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/run-task.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./back-link.js";import{c as a,i as o,n as s,s as c,t as l}from"./select.js";import{c as u}from"./ecs.js";import{Qr as d,Zt as f,ct as p,lt as m,nr as h,qt as g,rt as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{i as D}from"./ecs2.js";var O=t(),k=e();function A(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function j({cluster:e}){let t=d(),_=u(),{data:O}=r(m),{data:j}=r(f),{data:M}=r(g),N=j.Subnets??[],P=M.SecurityGroups??[],{control:F,handleSubmit:I,register:L,watch:R,setValue:z,getValues:B,formState:{errors:V,isSubmitting:H}}=v({resolver:b(D),defaultValues:{cluster:e,taskDefinition:``,count:1,subnets:[],securityGroups:[],assignPublicIp:!1}}),{data:U}=n(p(R(`taskDefinition`))),W=U?.networkMode===`awsvpc`,G=R(`subnets`),K=R(`securityGroups`),q=(e,t)=>{let n=B(e);z(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function J(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}function Y(e){_.mutate({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,awsvpc:W,subnets:e.subnets,securityGroups:e.securityGroups,assignPublicIp:e.assignPublicIp},{onSuccess:J})}let X=W&&G.length===0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(i,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,k.jsx)(C,{subtitle:`Cluster: ${e}`,title:`Run Task`}),_.isError&&(0,k.jsx)(x,{error:_.error instanceof Error?_.error:void 0,msg:`Failed to run task.`}),(0,k.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:I(Y),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,k.jsx)(y,{control:F,name:`taskDefinition`,render:({field:e})=>(0,k.jsxs)(l,{onValueChange:e.onChange,value:e.value,children:[(0,k.jsx)(c,{className:`w-full`,id:`taskDefinition`,children:(0,k.jsx)(a,{placeholder:`Select a task definition`})}),(0,k.jsx)(s,{children:O.map(e=>{let t=A(e);return(0,k.jsx)(o,{value:t,children:t},e)})})]})}),(0,k.jsx)(T,{errors:[V.taskDefinition]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`count`,children:`Count`})}),(0,k.jsx)(h,{id:`count`,type:`number`,...L(`count`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[V.count]})]}),W&&(0,k.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,k.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:N.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:G.includes(e.SubnetId??``),onChange:()=>q(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:P.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:K.includes(e.GroupId??``),onChange:()=>q(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,k.jsx)(`input`,{type:`checkbox`,...L(`assignPublicIp`)}),(0,k.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,k.jsx)(S,{isPending:_.isPending||X,isSubmitting:H,onCancel:J,pendingLabel:`Running…`,submitLabel:`Run Task`})]})]})}function M(){let e=(0,O.c)(2),{cluster:t}=_.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,k.jsx)(j,{cluster:t}),e[0]=t,e[1]=n),n}export{M as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{t as i}from"./useNavigate.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{c as d}from"./ecs.js";import{Zt as f,ct as p,er as m,lt as h,qt as g,rt as _}from"./index.js";import{i as v,n as y,t as b}from"./zod.js";import{t as x}from"./error-banner.js";import{t as S}from"./form-actions.js";import{t as C}from"./page-heading.js";import{a as w,r as T,t as E}from"./field.js";import{i as D}from"./ecs2.js";var O=t(),k=e();function A(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function j({cluster:e}){let t=i(),_=d(),{data:O}=r(h),{data:j}=r(f),{data:M}=r(g),N=j.Subnets??[],P=M.SecurityGroups??[],{control:F,handleSubmit:I,register:L,watch:R,setValue:z,getValues:B,formState:{errors:V,isSubmitting:H}}=v({resolver:b(D),defaultValues:{cluster:e,taskDefinition:``,count:1,subnets:[],securityGroups:[],assignPublicIp:!1}}),{data:U}=n(p(R(`taskDefinition`))),W=U?.networkMode===`awsvpc`,G=R(`subnets`),K=R(`securityGroups`),q=(e,t)=>{let n=B(e);z(e,n.includes(t)?n.filter(e=>e!==t):[...n,t],{shouldValidate:!0})};function J(){t({to:`/ecs/list-clusters/$clusterName`,params:{clusterName:e}})}function Y(e){_.mutate({cluster:e.cluster,taskDefinition:e.taskDefinition,count:e.count,awsvpc:W,subnets:e.subnets,securityGroups:e.securityGroups,assignPublicIp:e.assignPublicIp},{onSuccess:J})}let X=W&&G.length===0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a,{params:{clusterName:e},to:`/ecs/list-clusters/$clusterName`,children:e}),(0,k.jsx)(C,{subtitle:`Cluster: ${e}`,title:`Run Task`}),_.isError&&(0,k.jsx)(x,{error:_.error instanceof Error?_.error:void 0,msg:`Failed to run task.`}),(0,k.jsxs)(`form`,{className:`max-w-2xl space-y-6`,onSubmit:I(Y),children:[(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`taskDefinition`,children:`Task definition`})}),(0,k.jsx)(y,{control:F,name:`taskDefinition`,render:({field:e})=>(0,k.jsxs)(u,{onValueChange:e.onChange,value:e.value,children:[(0,k.jsx)(l,{className:`w-full`,id:`taskDefinition`,children:(0,k.jsx)(o,{placeholder:`Select a task definition`})}),(0,k.jsx)(c,{children:O.map(e=>{let t=A(e);return(0,k.jsx)(s,{value:t,children:t},e)})})]})}),(0,k.jsx)(T,{errors:[V.taskDefinition]})]}),(0,k.jsxs)(E,{children:[(0,k.jsx)(w,{children:(0,k.jsx)(`label`,{htmlFor:`count`,children:`Count`})}),(0,k.jsx)(m,{id:`count`,type:`number`,...L(`count`,{valueAsNumber:!0})}),(0,k.jsx)(T,{errors:[V.count]})]}),W&&(0,k.jsxs)(`div`,{className:`space-y-4 rounded-lg border bg-card p-4`,children:[(0,k.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This task definition uses awsvpc networking. Select at least one subnet.`}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Subnets`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:N.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:G.includes(e.SubnetId??``),onChange:()=>q(`subnets`,e.SubnetId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` (`,e.CidrBlock,`)`]})]},e.SubnetId))})]}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`span`,{className:`text-sm font-medium`,children:`Security groups`}),(0,k.jsx)(`div`,{className:`mt-2 space-y-1`,children:P.map(e=>(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,k.jsx)(`input`,{checked:K.includes(e.GroupId??``),onChange:()=>q(`securityGroups`,e.GroupId??``),type:`checkbox`}),(0,k.jsxs)(`span`,{className:`font-mono`,children:[e.GroupId,` (`,e.GroupName,`)`]})]},e.GroupId))})]}),(0,k.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,k.jsx)(`input`,{type:`checkbox`,...L(`assignPublicIp`)}),(0,k.jsx)(`span`,{children:`Assign public IP`})]})]}),(0,k.jsx)(S,{isPending:_.isPending||X,isSubmitting:H,onCancel:J,pendingLabel:`Running…`,submitLabel:`Run Task`})]})]})}function M(){let e=(0,O.c)(2),{cluster:t}=_.useSearch(),n;return e[0]===t?n=e[1]:(n=(0,k.jsx)(j,{cluster:t}),e[0]=t,e[1]=n),n}export{M as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/s3.js b/spinifex/services/spinifexui/frontend/dist/assets/s3.js index 3dae54dbd..3466510e2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/s3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/s3.js @@ -1,4 +1,4 @@ -import{i as e,t}from"./compiler-runtime.js";import{t as n}from"./useMutation.js";import{C as r,E as i,S as a,T as o,b as s,d as c,f as l,l as u,m as d,p as f,u as p,v as m,w as h,x as g,y as _}from"./awsClient.js";import{At as v,Pt as y,St as b,_t as x,lt as S,q as C,st as w,ut as T}from"./auth.js";import{_ as E,a as ee,g as D,h as te,i as O,m as k,n as A,o as ne,r as j,s as M,t as N}from"./tslib.es6.js";import{i as P}from"./index.browser.js";import{$r as F}from"./index.js";var I=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},L,R,z,B,V,H,U,W,G,K=()=>{L||(L=I(),[R,z,B,V,H,U,W,G]=L)},re=class{c1=0;c2=0;constructor(){K(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=G[t]^W[a]^U[o]^H[s]^V[c]^B[l]^z[u]^R[d],i=G[t+1]^W[a+1]^U[o+1]^H[s+1]^V[c+1]^B[l+1]^z[u+1]^R[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^R[t],i^=R[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},ie={CrtCrc64Nvme:null},ae=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===o.WHEN_SUPPORTED||t?h:void 0;if(e[n])return e[n]},oe=e=>e===r.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,se=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},ce=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},le=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!D(e),ue=function(){function e(){this.crc32c=new de}return e.prototype.update=function(e){ne(e)||this.crc32c.update(M(e))},e.prototype.digest=function(){return N(this,void 0,void 0,function(){return A(this,function(e){return[2,ee(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new de},e}(),de=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=j(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^fe[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),fe=O([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),pe=()=>P,me=[r.CRC32,r.CRC32C,r.CRC64NVME,r.SHA1,r.SHA256],he=[r.SHA256,r.SHA1,r.CRC32,r.CRC32C,r.CRC64NVME],ge=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case r.MD5:return n?.MD5??t.md5;case r.CRC32:return n?.CRC32??pe();case r.CRC32C:return n?.CRC32C??ue;case r.CRC64NVME:return typeof ie.CrtCrc64Nvme==`function`?n?.CRC64NVME??ie.CrtCrc64Nvme:n?.CRC64NVME??re;case r.SHA1:return n?.SHA1??t.sha1;case r.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${me}, or provide an implementation to the client constructor checksums field.`)}},_e=(e,t)=>{let n=new e;return n.update(E(t||``)),n.digest()},ve={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},ye=(e,t)=>(n,i)=>async a=>{if(!y.isInstance(a.request)||ce(`x-amz-checksum-`,a.request.headers))return n(a);let{request:s,input:c}=a,{body:l,headers:u}=s,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:m}=t,g=await e.requestChecksumCalculation(),_=m?.name,v=m?.httpHeader;_&&!c[_]&&(g===o.WHEN_SUPPORTED||p)&&(c[_]=h,v&&(u[v]=h));let b=ae(c,{requestChecksumRequired:p,requestAlgorithmMember:m?.name,requestChecksumCalculation:g}),x=l,S=u;if(b){switch(b){case r.CRC32:C(i,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case r.CRC32C:C(i,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case r.CRC64NVME:C(i,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case r.SHA1:C(i,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case r.SHA256:C(i,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=oe(b),n=ge(b,e);if(le(l)){let{getAwsChunkedEncodingStream:r,bodyLengthChecker:a}=e;x=r(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?k(l,e.requestStreamBufferSize,i.logger):l,{base64Encoder:d,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),S={...u,"content-encoding":u[`content-encoding`]?`${u[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":u[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete S[`content-length`]}else if(!se(t,u)){let e=await _e(n,l);S={...u,[t]:d(e)}}}try{return await n({...a,request:{...s,headers:S,body:x}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},be={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},xe=(e,t)=>(n,r)=>async a=>{let s=a.input,{requestValidationModeMember:c}=t,l=await e.requestChecksumCalculation(),u=await e.responseChecksumValidation();switch(l){case o.WHEN_REQUIRED:C(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case o.WHEN_SUPPORTED:C(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(u){case i.WHEN_REQUIRED:C(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case i.WHEN_SUPPORTED:C(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return c&&!s[c]&&u===i.WHEN_SUPPORTED&&(s[c]=`ENABLED`),n(a)},Se=(e=[])=>{let t=[],n=he.length;for(let r of e){let e=he.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ce=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},we=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await _e(t,e)),Te=async(e,{config:t,responseAlgorithms:n,logger:i})=>{let a=Se(n),{body:o,headers:s}=e;for(let n of a){let a=oe(n),c=s[a];if(c){let s;try{s=ge(n,t)}catch(e){if(n===r.CRC64NVME){i?.warn(`Skipping ${r.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:l}=t;if(le(o)){e.body=te({expectedChecksum:c,checksumSourceLocation:a,checksum:new s,source:o,base64Encoder:l});return}let u=await we(o,{checksumAlgorithmFn:s,base64Encoder:l});if(u===c)break;throw Error(`Checksum mismatch: expected "${u}" but received "${c}" in response header "${a}".`)}}},Ee={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},De=(e,t)=>(n,r)=>async i=>{if(!y.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=oe(e);return s.headers[t]!==void 0}),a=Se([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=oe(e),n=s.headers[t];return!n||Ce(n)}))return o;await Te(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Oe=(e,t)=>({applyToStack:n=>{n.add(ye(e,t),ve),n.addRelativeTo(xe(e,t),be),n.addRelativeTo(De(e,t),Ee)}}),ke=`content-length`,Ae=`x-amz-decoded-content-length`;function je(){return(e,t)=>async n=>{let{request:r}=n;if(y.isInstance(r)&&!(ke in r.headers)&&!(Ae in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof x)?t.logger.warn(e):console.warn(e)}return e({...n})}}var Me={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ne=e=>({applyToStack:e=>{e.add(je(),Me)}});function Pe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Fe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}});function Le(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?ze(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Re={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Le(e),Re)}});function ze(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Be=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),a(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(p).build(){},Ve=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),a(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(c).build(){},He=class extends b.classBuilder().ep({...g,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),a(n),Ie(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(l).build(){},Ue=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),a(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(f).build(){},We=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),a(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(d).build(){},Ge=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ne(n),a(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(m).build(){},Ke=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(_).build(){},qe=class extends b.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[T(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),a(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(s).build(){},Je={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},Ye=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Ze=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=Xe(),n=Ze(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return V(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return W(e).length;default:if(i)return r?-1:V(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return M(this,t,n);case`utf8`:case`utf-8`:return O(this,t,n);case`ascii`:return ne(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return te(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,re(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return ee(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return D(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function te(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return A(r)}var k=4096;function A(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function H(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function W(e){return t.toByteArray(B(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function re(e){return e!==e}var ie=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Qe=t(),$e=Ye(),Y=J(),et={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},tt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var nt=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),rt=e(((e,t)=>{t.exports=Ye().EventEmitter})),it=e(((e,t)=>{t.exports={}})),at=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),ot=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),st=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),ct=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),lt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}var r;T.WritableState=C;var i={deprecate:ct()},a=rt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=ot(),d=st().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function ee(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||ee(this,r,e,n))&&(r.pendingcb++,i=te(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function te(e,t,n,r,i,a){if(!n){var o=D(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=ht(),i=lt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),dt=e((e=>{var t=ut().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),ft=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),pt=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=ft(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),mt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),ht=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,Ye().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=rt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=it(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=at(),f=ot(),p=st().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=dt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),ee(this,e,t,!1,r)},E.prototype.unshift=function(e){return ee(this,e,null,!0,!1)};function ee(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=te(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):D(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):N(e,o)):D(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=k(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?H(this):j(this),null;if(e=A(e,t),e===0&&t.ended)return t.length===0&&H(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?V(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&W(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,B(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}function z(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),B(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function B(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function H(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=mt()),x(E,e,t)});function W(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=gt();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),vt=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=ft()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),yt=e(((e,t)=>{t.exports=r;var n=Ye().EventEmitter;Z()(r,n),r.Readable=ht(),r.Writable=lt(),r.Duplex=$(),r.Transform=gt(),r.PassThrough=_t(),r.finished=ft(),r.pipeline=vt(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*bt(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*xt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return xt(e,t);if(e instanceof yt.Readable)return bt(e,t,St);if(e instanceof String||typeof e==`string`)return xt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return bt(e.stream(),t,Ct);if(e instanceof ReadableStream)return bt(e,t,Ct);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Tt=class e extends $e.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??tt(this.params.Body),this.totalBytesSource=nt(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof $e.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new Ge(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=v(await S(t,Ge,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>w(e)).join(`/`),u=w(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=tt(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Je.CRC32),this.createMultiPartPromise=this.client.send(new Ue(t)).then(e=>(this.abortMultipartUploadCommand=new Be({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=tt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof $e.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new qe({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=wt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). +import{i as e,t}from"./compiler-runtime.js";import{t as n}from"./useMutation.js";import{C as r,E as i,S as a,T as o,b as s,d as c,f as l,l as u,m as d,p as f,u as p,v as m,w as h,x as g,y as _}from"./awsClient.js";import{At as v,I as y,L as b,Pt as x,St as S,_t as C,ht as w,tt as T}from"./auth.js";import{_ as E,a as D,g as O,h as ee,i as k,m as te,n as A,o as ne,r as j,s as M,t as N}from"./tslib.es6.js";import{i as P}from"./index.browser.js";import{Ur as F}from"./index.js";var I={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},L=(e,t)=>(n,r)=>async a=>{let s=a.input,{requestValidationModeMember:c}=t,l=await e.requestChecksumCalculation(),u=await e.responseChecksumValidation();switch(l){case o.WHEN_REQUIRED:T(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case o.WHEN_SUPPORTED:T(r,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(u){case i.WHEN_REQUIRED:T(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case i.WHEN_SUPPORTED:T(r,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return c&&!s[c]&&u===i.WHEN_SUPPORTED&&(s[c]=`ENABLED`),n(a)},R=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===o.WHEN_SUPPORTED||t?h:void 0;if(e[n])return e[n]},z=e=>e===r.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,B=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},V=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},H=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!O(e),re=function(){function e(){this.crc32c=new U}return e.prototype.update=function(e){ne(e)||this.crc32c.update(M(e))},e.prototype.digest=function(){return N(this,void 0,void 0,function(){return A(this,function(e){return[2,D(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new U},e}(),U=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=j(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^W[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),W=k([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),G={CrtCrc64Nvme:null},ie=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},ae,K,oe,se,ce,le,ue,de,fe,pe=()=>{ae||(ae=ie(),[K,oe,se,ce,le,ue,de,fe]=ae)},me=class{c1=0;c2=0;constructor(){pe(),this.reset()}update(e){let t=e.length,n=0,r=this.c1,i=this.c2;for(;n+8<=t;){let t=((i^e[n++])&255)<<1,a=((i>>>8^e[n++])&255)<<1,o=((i>>>16^e[n++])&255)<<1,s=((i>>>24^e[n++])&255)<<1,c=((r^e[n++])&255)<<1,l=((r>>>8^e[n++])&255)<<1,u=((r>>>16^e[n++])&255)<<1,d=((r>>>24^e[n++])&255)<<1;r=fe[t]^de[a]^ue[o]^le[s]^ce[c]^se[l]^oe[u]^K[d],i=fe[t+1]^de[a+1]^ue[o+1]^le[s+1]^ce[c+1]^se[l+1]^oe[u+1]^K[d+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^K[t],i^=K[t+1],n++}this.c1=r,this.c2=i}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},he=()=>P,ge=[r.CRC32,r.CRC32C,r.CRC64NVME,r.SHA1,r.SHA256],_e=[r.SHA256,r.SHA1,r.CRC32,r.CRC32C,r.CRC64NVME],ve=(e,t)=>{let{checksumAlgorithms:n={}}=t;switch(e){case r.MD5:return n?.MD5??t.md5;case r.CRC32:return n?.CRC32??he();case r.CRC32C:return n?.CRC32C??re;case r.CRC64NVME:return typeof G.CrtCrc64Nvme==`function`?n?.CRC64NVME??G.CrtCrc64Nvme:n?.CRC64NVME??me;case r.SHA1:return n?.SHA1??t.sha1;case r.SHA256:return n?.SHA256??t.sha256;default:if(n?.[e])return n[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${ge}, or provide an implementation to the client constructor checksums field.`)}},ye=(e,t)=>{let n=new e;return n.update(E(t||``)),n.digest()},be={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},xe=(e,t)=>(n,i)=>async a=>{if(!x.isInstance(a.request)||V(`x-amz-checksum-`,a.request.headers))return n(a);let{request:s,input:c}=a,{body:l,headers:u}=s,{base64Encoder:d,streamHasher:f}=e,{requestChecksumRequired:p,requestAlgorithmMember:m}=t,g=await e.requestChecksumCalculation(),_=m?.name,v=m?.httpHeader;_&&!c[_]&&(g===o.WHEN_SUPPORTED||p)&&(c[_]=h,v&&(u[v]=h));let y=R(c,{requestChecksumRequired:p,requestAlgorithmMember:m?.name,requestChecksumCalculation:g}),b=l,S=u;if(y){switch(y){case r.CRC32:T(i,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case r.CRC32C:T(i,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case r.CRC64NVME:T(i,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case r.SHA1:T(i,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case r.SHA256:T(i,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let t=z(y),n=ve(y,e);if(H(l)){let{getAwsChunkedEncodingStream:r,bodyLengthChecker:a}=e;b=r(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?te(l,e.requestStreamBufferSize,i.logger):l,{base64Encoder:d,bodyLengthChecker:a,checksumLocationName:t,checksumAlgorithmFn:n,streamHasher:f}),S={...u,"content-encoding":u[`content-encoding`]?`${u[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":u[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":t},delete S[`content-length`]}else if(!B(t,u)){let e=await ye(n,l);S={...u,[t]:d(e)}}}try{return await n({...a,request:{...s,headers:S,body:b}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},Se=(e=[])=>{let t=[],n=_e.length;for(let r of e){let e=_e.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},Ce=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},we=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await ye(t,e)),Te=async(e,{config:t,responseAlgorithms:n,logger:i})=>{let a=Se(n),{body:o,headers:s}=e;for(let n of a){let a=z(n),c=s[a];if(c){let s;try{s=ve(n,t)}catch(e){if(n===r.CRC64NVME){i?.warn(`Skipping ${r.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:l}=t;if(H(o)){e.body=ee({expectedChecksum:c,checksumSourceLocation:a,checksum:new s,source:o,base64Encoder:l});return}let u=await we(o,{checksumAlgorithmFn:s,base64Encoder:l});if(u===c)break;throw Error(`Checksum mismatch: expected "${u}" but received "${c}" in response header "${a}".`)}}},Ee={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},De=(e,t)=>(n,r)=>async i=>{if(!x.isInstance(i.request))return n(i);let a=i.input,o=await n(i),s=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&a[c]===`ENABLED`){let{clientName:t,commandName:n}=r,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=z(e);return s.headers[t]!==void 0}),a=Se([...l??[],...i]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=z(e),n=s.headers[t];return!n||Ce(n)}))return o;await Te(s,{config:e,responseAlgorithms:a,logger:r.logger})}return o},Oe=(e,t)=>({applyToStack:n=>{n.add(xe(e,t),be),n.addRelativeTo(L(e,t),I),n.addRelativeTo(De(e,t),Ee)}}),ke=`content-length`,Ae=`x-amz-decoded-content-length`;function je(){return(e,t)=>async n=>{let{request:r}=n;if(x.isInstance(r)&&!(ke in r.headers)&&!(Ae in r.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof C)?t.logger.warn(e):console.warn(e)}return e({...n})}}var Me={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},Ne=e=>({applyToStack:e=>{e.add(je(),Me)}});function Pe(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}var Fe={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}});function Le(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let i;typeof n==`string`?ze(n,e)?i=e.base64Decoder(n):(i=e.utf8Decoder(n),r[t.target]=e.base64Encoder(i)):(i=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(i));let a=new e.md5;a.update(i),r[t.hash]=e.base64Encoder(await a.digest())}}return t({...n,input:r})}}var Re={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},q=e=>({applyToStack:t=>{t.add(Le(e),Re)}});function ze(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}var Be=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),a(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(p).build(){},Ve=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),a(n),q(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(c).build(){},He=class extends S.classBuilder().ep({...g,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),a(n),Ie(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(l).build(){},Ue=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),a(n),q(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(f).build(){},We=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),a(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(d).build(){},Ge=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),Ne(n),a(n),q(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(m).build(){},Ke=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(_).build(){},qe=class extends S.classBuilder().ep({...g,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[b(n,e.getEndpointParameterInstructions()),Oe(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),a(n),q(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(s).build(){},Je={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},Ye=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Ze=e((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),J=e((e=>{var t=Xe(),n=Ze(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:g(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=v(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:g(e.length)|0,n=o(t),r=0;r=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function _(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return V(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return U(e).length;default:if(i)return r?-1:V(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=v;function y(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return M(this,t,n);case`utf8`:case`utf-8`:return k(this,t,n);case`ascii`:return ne(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return ee(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;tn&&(t+=` ... `),``},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ie(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:S(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function S(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;fi&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return C(this,e,t,n);case`utf8`:case`utf-8`:return w(this,e,t,n);case`ascii`:return T(this,e,t,n);case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ee(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return A(r)}var te=4096;function A(e){var t=e.length;if(t<=te)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)};function F(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o>>=0,n>>>=0,!r){var i=2**(8*n)-1;F(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)};function R(e,t,r,i,a){return t=+t,r>>>=0,a||I(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function H(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function U(e){return t.toByteArray(B(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ie(e){return e!==e}var ae=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Qe=t(),$e=Ye(),Y=J(),et={lstatSync:()=>{},isFileReadStream(e){return!1},runtime:`browser`},tt=e=>{if(e==null)return 0;if(typeof e==`string`)return Y.Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size}catch{return}},X;(function(e){e.EMPTY_INPUT=`a null or undefined Body`,e.CONTENT_LENGTH=`the ContentLength property of the params set by the caller`,e.STRING_LENGTH=`the encoded byte length of the Body string`,e.TYPED_ARRAY=`the byteLength of a typed byte array such as Uint8Array`,e.LENGTH=`the value of Body.length`,e.SIZE=`the value of Body.size`,e.START_END_DIFF=`the numeric difference between Body.start and Body.end`,e.LSTAT=`the size of the file given by Body.path on disk as reported by lstatSync`})(X||={});var nt=(e,t)=>{if(t!=null)return X.CONTENT_LENGTH;if(e==null)return X.EMPTY_INPUT;if(typeof e==`string`)return X.STRING_LENGTH;if(typeof e.byteLength==`number`)return X.TYPED_ARRAY;if(typeof e.length==`number`)return X.LENGTH;if(typeof e.size==`number`)return X.SIZE;if(typeof e.start==`number`&&typeof e.end==`number`)return X.START_END_DIFF;if(et.isFileReadStream(e))try{return et.lstatSync(e.path).size,X.LSTAT}catch{return}},Z=e(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),rt=e(((e,t)=>{t.exports=Ye().EventEmitter})),it=e(((e,t)=>{t.exports={}})),at=e(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),ot=e(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Q=e(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),st=e(((e,t)=>{var n=Q().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),ct=e(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),lt=e(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}var r;T.WritableState=C;var i={deprecate:ct()},a=rt(),o=J().Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=ot(),d=st().getHighWaterMark,f=Q().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Z()(T,a);function S(){}function C(e,t,i){r||=$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=ee(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ee(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=ht(),i=lt();Z()(c,r);for(var a=n(i.prototype),o=0;o{var n=J(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),dt=e((e=>{var t=ut().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),ft=e(((e,t)=>{var n=Q().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),pt=e(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=ft(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),mt=e(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),ht=e(((e,t)=>{t.exports=E;var n;E.ReadableState=T,Ye().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=rt(),a=J().Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=it(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=at(),f=ot(),p=st().getHighWaterMark,m=Q().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Z()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=dt().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=ee(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):N(e,o)):O(e,o,t,!1);else r||(o.reading=!1,N(e,o))}return!o.ended&&(o.length=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=te(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?H(this):j(this),null;if(e=A(e,t),e===0&&t.ended)return t.length===0&&H(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e0?V(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(M,e))}function M(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function N(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length1&&U(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,B(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(L,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(I,this),t};function I(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function L(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,R(this,e)),e.paused=!1,this};function R(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}function z(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),B(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function B(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function H(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(re,t,e))}function re(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=mt()),x(E,e,t)});function U(e,t){for(var n=0,r=e.length;n{t.exports=l;var n=Q().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=$();Z()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{t.exports=r;var n=gt();Z()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),vt=e(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Q().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=ft()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),yt=e(((e,t)=>{t.exports=r;var n=Ye().EventEmitter;Z()(r,n),r.Readable=ht(),r.Writable=lt(),r.Duplex=$(),r.Transform=gt(),r.PassThrough=_t(),r.finished=ft(),r.pipeline=vt(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}}))();async function*bt(e,t,n){let r=1,i={chunks:[],length:0};for await(let a of n(e))for(i.chunks.push(a),i.length+=a.byteLength;i.length>t;){let e=i.chunks.length>1?Y.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:e.subarray(0,t)},i.chunks=[e.subarray(t)],i.length=i.chunks[0].byteLength,r+=1}yield{partNumber:r,data:i.chunks.length===1?i.chunks[0]:Y.Buffer.concat(i.chunks),lastPart:!0}}async function*xt(e,t){let n=1,r=0,i=t;for(;i{if(e instanceof Uint8Array)return xt(e,t);if(e instanceof yt.Readable)return bt(e,t,St);if(e instanceof String||typeof e==`string`)return xt(Y.Buffer.from(e),t);if(typeof e.stream==`function`)return bt(e.stream(),t,Ct);if(e instanceof ReadableStream)return bt(e,t,Ct);throw Error(`Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.`)},Tt=class e extends $e.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw Error(`InputError: Upload requires params to be passed to upload.`);this.totalBytes=this.params.ContentLength??tt(this.params.Body),this.totalBytesSource=nt(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new AbortController,this.partSize=t.partSize||Math.max(e.MIN_PART_SIZE,Math.ceil((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}async abort(){this.abortController.abort()}async done(){if(this.sent)throw Error(`@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.`);return this.sent=!0,await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(e,t){return this.uploadEvent=e,super.on(e,t)}async __uploadUsingPut(e){this.isMultiPart=!1;let t={...this.params,Body:e.data},n=this.client.config,r=n.requestHandler,i=r instanceof $e.EventEmitter?r:null,a=t=>{this.bytesUploadedSoFar=t.loaded,this.totalBytes=t.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:e.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};i!==null&&i.on(`xhr.upload.progress`,a);let o=await Promise.all([this.client.send(new Ge(t)),n?.endpoint?.()]),s=o[0],c=o[1];if(c||=v(await y(t,Ge,{...n})),!c)throw Error(`Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.`);i!==null&&i.off(`xhr.upload.progress`,a);let l=this.params.Key.split(`/`).map(e=>w(e)).join(`/`),u=w(this.params.Bucket),d=(()=>{let e=c.hostname.startsWith(`${u}.`),t=this.client.config.forcePathStyle,n=c.port?`:${c.port}`:``;return t?`${c.protocol}//${c.hostname}${n}/${u}/${l}`:e?`${c.protocol}//${c.hostname}${n}/${l}`:`${c.protocol}//${u}.${c.hostname}${n}/${l}`})();this.singleUploadResult={...s,Bucket:this.params.Bucket,Key:this.params.Key,Location:d};let f=tt(e.data);this.__notifyProgress({loaded:f,total:f,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){let e=await this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};e===`WHEN_SUPPORTED`&&(t.ChecksumAlgorithm=this.params.ChecksumAlgorithm||Je.CRC32),this.createMultiPartPromise=this.client.send(new Ue(t)).then(e=>(this.abortMultipartUploadCommand=new Be({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:e.UploadId}),e))}return this.createMultiPartPromise}async __doConcurrentUpload(e){for await(let t of e){if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(t.partNumber===1&&t.lastPart)return await this.__uploadUsingPut(t);if(!this.uploadId){let{UploadId:e}=await this.__createMultipartUpload();if(this.uploadId=e,this.abortController.signal.aborted)return}let e=tt(t.data)||0,n=this.client.config.requestHandler,r=n instanceof $e.EventEmitter?n:null,i=0,a=(n,r)=>{(Number(r.query.partNumber)||-1)===t.partNumber&&(n.total&&e&&(this.bytesUploadedSoFar+=n.loaded-i,i=n.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};r!==null&&r.on(`xhr.upload.progress`,a),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(t);let o=await this.client.send(new qe({...this.params,ContentLength:void 0,UploadId:this.uploadId,Body:t.data,PartNumber:t.partNumber}));if(r!==null&&r.off(`xhr.upload.progress`,a),this.abortController.signal.aborted)return;if(!o.ETag)throw Error(`Part ${t.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:t.partNumber,ETag:o.ETag,...o.ChecksumCRC32&&{ChecksumCRC32:o.ChecksumCRC32},...o.ChecksumCRC32C&&{ChecksumCRC32C:o.ChecksumCRC32C},...o.ChecksumSHA1&&{ChecksumSHA1:o.ChecksumSHA1},...o.ChecksumSHA256&&{ChecksumSHA256:o.ChecksumSHA256}}),r===null&&(this.bytesUploadedSoFar+=e),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}async __doMultipartUpload(){let e=wt(this.params.Body,this.partSize),t=[];for(let n=0;n{t.push(e)});this.concurrentUploaders.push(n)}if(await Promise.all(this.concurrentUploaders),t.length>=1)throw await this.markUploadAsAborted(),t[0];if(this.abortController.signal.aborted)throw await this.markUploadAsAborted(),Object.assign(Error(`Upload aborted.`),{name:`AbortError`});let n;if(this.isMultiPart){let{expectedPartsCount:e,uploadedParts:t,totalBytes:r,totalBytesSource:i}=this;if(r!==void 0&&e!==void 0&&t.length!==e)throw Error(`Expected ${e} part(s) but uploaded ${t.length} part(s). The expected part count is based on the byte-count of the input.params.Body, which was read from ${i} and is ${r}. If this is not correct, provide an override value by setting a number diff --git a/spinifex/services/spinifexui/frontend/dist/assets/select.js b/spinifex/services/spinifexui/frontend/dist/assets/select.js index 765f19b0e..4f64523ae 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/select.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/select.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,u}from"./dist.js";import{Lt as d}from"./auth.js";import{t as f}from"./check.js";import{t as p}from"./chevron-down.js";import{_ as m,b as h,o as g,r as _,s as v}from"./button.js";import{S as y,_ as b,b as x,f as S,g as C,l as w,n as ee,o as T,t as E,u as D,v as te,x as O,y as k}from"./createBaseUIEventDetails.js";import{$n as A,Ar as j,Bn as M,Cr as N,Dr as P,Er as F,Fn as I,Fr as ne,Gn as re,Hn as ie,In as L,Ir as R,Jn as ae,Kn as z,Ln as B,Lr as V,Mn as H,Mr as U,Nn as oe,Nr as W,Or as G,Pn as K,Pr as se,Qn as q,Rn as ce,Rr as J,Sn as le,Sr as Y,Tr as ue,Un as de,Vn as fe,Wn as pe,Yr as me,_r as he,ar as ge,br as _e,cn as ve,dr as ye,er as be,fn as xe,fr as Se,gr as Ce,hn as we,hr as Te,ir as Ee,jn as De,jr as Oe,kr as ke,ln as Ae,lr as X,mn as je,mr as Me,on as Ne,or as Pe,pr as Fe,qn as Ie,rr as Le,sn as Re,tr as ze,vr as Be,wr as Ve,xr as He,yr as Ue,zn as We}from"./index.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./useCompositeListItem.js";var Ye=me(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=t(n(),1);function Xe(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=C}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Z.useRef(void 0),p=ye(),m=Se(),h=Z.useMemo(()=>{function e(e,t,n,r){let i=E(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||_e(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=x(a);if(F(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}_e(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Z.useMemo(()=>n?{reference:h}:i,[n,h])}var Ze=`Escape`;function Qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function $e(e,t){return Qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function et(e,t,n){return Qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function tt(e,t,n){return Qe(t,n?e===G:e===ke,e===P)}function nt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Ze:Qe(t,n?e===ke:e===G,e===j)}function rt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:_=void 0,orientation:y=`vertical`,parentOrientation:b,id:S,resetOnPointerLeave:C=!0,externalTree:w,grid:ee}=t,A=ee!=null,j=`rootStore`in e?e.rootStore:e,P=j.useState(`open`),F=j.useState(`floatingElement`),I=j.useState(`domReferenceElement`),ne=j.context.dataRef,re=Ve(F),ie=ue(I),L=Ie(re),R=M(),ae=fe(w),z=Z.useRef(f),B=Z.useRef(o??-1),V=Z.useRef(null),H=Z.useRef(!0),U=v(e=>{i(B.current===-1?null:B.current,e)}),oe=Z.useRef(!!F),W=Z.useRef(P),G=Z.useRef(!1),K=Z.useRef(!1),se=Z.useRef(null),q=Ie(_),ce=Ie(P),J=Ie(o),le=Ie(C),de=ye(),me=ye(),ge=v(()=>{function e(e){d?ae?.events.emit(`virtualfocus`,e):se.current=pe(e,{sync:G.current,preventScroll:!0})}let t=n.current[B.current],r=K.current;t&&e(t),(G.current?e=>e():e=>de.request(e))(()=>{let i=n.current[B.current]||t;i&&(t||e(i),Ce&&(r||!H.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});g(()=>{ne.current.orientation=y},[ne,y]),g(()=>{a&&(P&&F?(B.current=o??-1,z.current&&o!=null&&(K.current=!0,U())):oe.current&&(B.current=-1,U()))},[a,P,F,o,U]),g(()=>{if(a){if(!P){G.current=!1;return}if(F)if(r==null){if(G.current=!1,J.current!=null)return;if(oe.current&&(B.current=-1,ge()),(!W.current||!oe.current)&&z.current&&(V.current!=null||z.current===!0&&V.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>me.request(e):queueMicrotask)(t),e+=1):(B.current=V.current==null||et(V.current,y,u)||l?Te(n):Me(n),V.current=null,U())};t()}}else he(n.current,r)||(B.current=r,ge(),K.current=!1)}},[a,P,F,r,J,l,n,y,u,U,ge,me]),g(()=>{if(!a||F||!ae||d||!oe.current)return;let e=ae.nodesRef.current,t=e.find(e=>e.id===R)?.context?.elements.floating,n=te(O(I??t??null)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[a,F,I,ae,R,d]),g(()=>{W.current=P,oe.current=!!F}),g(()=>{P||(V.current=null,z.current=f)},[P,f]);let _e=r!=null,ve=v(e=>{if(!ce.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||r!==t)&&(B.current=t,U(e))}),be=v(()=>b??ae?.nodesRef.current.find(e=>e.id===R)?.context?.dataRef?.current.orientation),xe=v(()=>Te(n,q.current)),Se=v(e=>{if(H.current=!1,G.current=!0,e.which===229||!ce.current&&e.currentTarget===L.current)return;if(l&&nt(e.key,y,u,A)){$e(e.key,be())||N(e),j.setOpen(!1,E(D,e.nativeEvent)),h(I)&&(d?ae?.events.emit(`virtualfocus`,I):I.focus());return}let t=B.current,r=Te(n,_),i=Me(n,_);if(ie||(e.key===`Home`&&(N(e),B.current=r,U(e)),e.key===`End`&&(N(e),B.current=i,U(e))),ee!=null){let t=ee(e,B.current,n,y,c,u,_,r,i);if(t!=null&&(B.current=t,U(e)),y===`both`)return}if($e(e.key,y)){if(N(e),P&&!d&&te(e.currentTarget.ownerDocument)===e.currentTarget){B.current=et(e.key,y,u)?r:i,U(e);return}et(e.key,y,u)?c?t>=i?s&&t!==n.current.length?B.current=-1:(G.current=!1,B.current=r):B.current=Fe(n.current,{startingIndex:t,disabledIndices:_}):B.current=Math.min(i,Fe(n.current,{startingIndex:t,disabledIndices:_})):c?t<=r?s&&t!==-1?B.current=n.current.length:(G.current=!1,B.current=i):B.current=Fe(n.current,{startingIndex:t,decrement:!0,disabledIndices:_}):B.current=Math.max(r,Fe(n.current,{startingIndex:t,decrement:!0,disabledIndices:_})),he(n.current,B.current)&&(B.current=-1),U(e)}}),Ce=Z.useMemo(()=>({onFocus(e){G.current=!0,ve(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){G.current=!0,K.current=!1,p&&ve(e)},onPointerLeave(e){if(!ce.current||!H.current||e.pointerType===`touch`)return;G.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&le.current&&(se.current?.(),se.current=null,B.current=-1,U(e),!d)){let e=L.current,t=te(O(e));e&&k(e,t)&&e.focus({preventScroll:!0})}}}),[ve,ce,L,p,n,U,le,d]),we=Z.useMemo(()=>d&&P&&_e&&{"aria-activedescendant":`${S}-${r}`},[d,P,_e,S,r]),Ee=Z.useMemo(()=>({"aria-orientation":y===`both`?void 0:y,...ie?{}:we,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&P&&!d){let t=x(e.nativeEvent);if(t&&!k(L.current,t))return;N(e),j.setOpen(!1,E(T,e.nativeEvent)),h(I)&&I.focus();return}Se(e)},onPointerMove(){H.current=!0}}),[we,Se,L,y,ie,j,P,d,I]),De=Z.useMemo(()=>{function e(e){j.setOpen(!0,E(D,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&He(e.nativeEvent)&&(z.current=!d)}function n(e){z.current=f,f===`auto`&&Y(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(t){let n=j.select(`open`);H.current=!1;let r=t.key.startsWith(`Arrow`),i=tt(t.key,be(),u),a=$e(t.key,y),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return Se(t);if(!(!n&&!m&&r)){if(o){let e=$e(t.key,be());V.current=l&&e?null:t.key}if(l){i&&(N(t),n?(B.current=xe(),U(t)):e(t));return}a&&(J.current!=null&&(B.current=J.current),N(t),!n&&m?e(t):Se(t),n&&U(t))}},onFocus(e){j.select(`open`)&&!d&&(B.current=-1,U(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Se,f,xe,l,U,j,m,y,be,u,J,d]),Oe=Z.useMemo(()=>({...we,...De}),[we,De]);return Z.useMemo(()=>a?{reference:Oe,floating:Ee,item:Ce,trigger:De}:{},[a,Oe,Ee,De,Ce])}function it(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=Se(),h=Z.useRef(``),_=Z.useRef(d??i??-1),y=Z.useRef(null),b=v(e=>{function t(e){let t=r?.current[e];return!t||Ce(t)}function l(e){return t(e)?o==null||!Be(s,e,o):!1}function f(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t0&&e.key===` `&&(N(e),c?.(!0)),h.current.length>0&&h.current[0]!==` `&&f(g,h.current)===-1&&e.key!==` `&&c?.(!1),g==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(N(e),c?.(!0));let v=h.current===``;v&&(_.current=d??i??-1),g.every((e,t)=>e&&l(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,_.current=y.current),h.current+=e.key,m.start(u,()=>{h.current=``,_.current=y.current,c?.(!1)});let b=((v?d??i??-1:_.current)??0)+1,x=f(g,h.current,b);x===-1?e.key!==` `&&(h.current=``,c?.(!1)):(a?.(x),y.current=x)}),x=v(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);k(n,t)||k(r,t)||(m.clear(),h.current=``,_.current=y.current,c?.(!1))});g(()=>{!p&&d!==null||(m.clear(),y.current=null,h.current!==``&&(h.current=``))},[p,d,m]),g(()=>{p&&h.current===``&&(_.current=d??i??-1)},[p,d,i]);let S=Z.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Z.useMemo(()=>l?{reference:S,floating:S}:{},[l,S])}var Q=e();function at(e){let t=Z.useRef(``),n=Z.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Z.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ot(e,t){let n=Z.useRef(e),r=v(t);g(()=>{n.current!==e&&r(n.current)},[e,r]),g(()=>{n.current=e},[e])}function st(e,t){let{onClick:n,onPointerDown:r}=at(v((n,r)=>{(typeof e==`function`?e():e)||t(r||(W?`touch`:``))}));return Z.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ct(e){let[t,n]=Z.useState(null),r=st(e,n);return ot(e,t=>{t&&!e&&n(null)}),Z.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function lt(e){let[t,n]=Z.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var ut=Z.createContext(null),dt=Z.createContext(null);function ft(){let e=Z.useContext(ut);if(e===null)throw Error(u(60));return e}function pt(){let e=Z.useContext(dt);if(e===null)throw Error(u(61));return e}var mt=(e,t)=>Object.is(e,t);function ht(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function gt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ht(t,e,n))}function _t(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ht(e,t,n))}function vt(e,t,n){return e.filter(e=>!ht(t,e,n))}function yt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function bt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function xt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(bt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function St(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return yt(e)}function Ct(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?yt(e.value):yt(e)}function wt(e,t,n){function r(){return St(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=bt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Tt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(Z.Fragment,{children:wt(r,t,n)},i)),e),[])}var $={id:I(e=>e.id),labelId:I(e=>e.labelId),modal:I(e=>e.modal),multiple:I(e=>e.multiple),items:I(e=>e.items),itemToStringLabel:I(e=>e.itemToStringLabel),itemToStringValue:I(e=>e.itemToStringValue),isItemEqualToValue:I(e=>e.isItemEqualToValue),value:I(e=>e.value),hasSelectedValue:I(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Ct(t,r)!==``}),hasNullItemLabel:I((e,t)=>t?xt(e.items):!1),open:I(e=>e.open),mounted:I(e=>e.mounted),forceMount:I(e=>e.forceMount),transitionStatus:I(e=>e.transitionStatus),openMethod:I(e=>e.openMethod),activeIndex:I(e=>e.activeIndex),selectedIndex:I(e=>e.selectedIndex),isActive:I((e,t)=>e.activeIndex===t),isSelected:I((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>ht(t,e,n)):ht(t,r,n)}),isSelectedByFocus:I((e,t)=>e.selectedIndex===t),popupProps:I(e=>e.popupProps),triggerProps:I(e=>e.triggerProps),triggerElement:I(e=>e.triggerElement),positionerElement:I(e=>e.positionerElement),listElement:I(e=>e.listElement),popupSide:I(e=>e.popupSide),scrollUpArrowVisible:I(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:I(e=>e.scrollDownArrowVisible),hasScrollArrows:I(e=>e.hasScrollArrows)};function Et(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Dt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ot(e,t){return Math.max(0,e-t)}function kt(e,t){if(t<=0)return 0;let n=Dt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function At(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:_=!1,readOnly:y=!1,required:b=!1,modal:x=!0,actionsRef:C,inputRef:w,onOpenChangeComplete:ee,items:T,multiple:D=!1,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k=mt,highlightItemOnHover:A=!0,children:j}=e,{clearErrors:M}=R(),{setDirty:N,setTouched:P,setFocused:F,validityData:I,setFilled:ne,name:ie,disabled:ae,validation:B,validationMode:U}=V(),W=se({id:t}),G=ae||_,q=ie??p,[J,le]=Ee({controlled:n,default:D?r??s:r,name:`Select`,state:`value`}),[Y,ue]=Ee({controlled:u,default:d,name:`Select`,state:`open`}),de=Z.useRef([]),fe=Z.useRef([]),pe=Z.useRef(null),me=Z.useRef(null),he=Z.useRef(0),_e=Z.useRef(null),ve=Z.useRef([]),ye=Z.useRef(!1),be=Z.useRef(null),xe=Z.useRef(null),Se=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ce=Z.useRef(!1),{mounted:we,setMounted:Te,transitionStatus:Oe}=ge(Y),{openMethod:ke,triggerProps:Ae}=ct(Y),X=c(()=>new oe({id:W,labelId:void 0,modal:x,multiple:D,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,value:J,open:Y,mounted:we,transitionStatus:Oe,items:T,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,je=K(X,$.activeIndex),Me=K(X,$.selectedIndex),Ne=K(X,$.triggerElement),Fe=K(X,$.positionerElement),Re=lt(ke),ze=ke??Re??null,Be=Z.useMemo(()=>D?``:Ct(J,O),[D,J,O]),Ve=Z.useMemo(()=>D&&Array.isArray(J)?J.map(e=>Ct(e,O)):Ct(J,O),[D,J,O]);Le(Ie(X.state.triggerElement),W,J,v(()=>Ve),!G,p);let He=Z.useRef(J),Ue=D?Array.isArray(J)&&J.length>0:J!=null&&Ct(J,O)!==``;g(()=>{J!==He.current&&X.set(`forceMount`,!0)},[X,J]),g(()=>{ne(Ue)},[Ue,ne]),g(function(){let e=ve.current,t;if(D){let n=Array.isArray(J)?J:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=_t(e,r,k);t=i===-1?null:i}}else{let n=_t(e,J,k);t=n===-1?null:n}t===null&&(xe.current=null),!Y&&X.set(`selectedIndex`,t)},[Ue,D,Y,J,ve,k,X,xe]);function We(e){let t=I.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Et(e,t,(e,t)=>ht(e,t,k)):e!==t}ot(J,()=>{M(q),N(We(J)),B.change(J)});let Ke=v((e,t)=>{f?.(e,t),!t.isCanceled&&(ue(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(P(!0),F(!1),U===`onBlur`&&B.commit(J)))}),qe=v(()=>{Te(!1),X.update({activeIndex:null,openMethod:null}),ee?.(!1)});Pe({enabled:!C,open:Y,ref:pe,onComplete(){Y||qe()}}),Z.useImperativeHandle(C,()=>({unmount:qe}),[qe]);let Je=v((e,t)=>{l?.(e,t),!t.isCanceled&&le(e)}),Ye=v(()=>{let e=X.state.listElement||pe.current;if(!e)return;let t=Ot(e.scrollHeight,e.clientHeight),n=kt(e.scrollTop,t),r=n>0,i=nGe(de.current[e]),onMatch(e){Y?X.set(`activeIndex`,e):Je(ve.current[e],E(`none`))},onTyping(e){ye.current=e}}),nt=Z.useMemo(()=>{let e=o(tt.reference,et.reference,$e.reference,Qe.reference,Ae);return W&&(e.id=W),e},[Qe.reference,tt.reference,et.reference,$e.reference,Ae,W]),at=Z.useMemo(()=>o(H,tt.floating,et.floating,$e.floating),[tt.floating,et.floating,$e.floating]),st=et.item??i;L(()=>{X.update({popupProps:at,triggerProps:nt})}),g(()=>{X.update({id:W,modal:x,multiple:D,value:J,open:Y,mounted:we,transitionStatus:Oe,popupProps:at,triggerProps:nt,items:T,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,openMethod:ze})},[X,W,x,D,J,Y,we,Oe,at,nt,T,te,O,k,ze]);let ft=Z.useMemo(()=>({store:X,name:q,required:b,disabled:G,readOnly:y,multiple:D,highlightItemOnHover:A,setValue:Je,setOpen:Ke,listRef:de,popupRef:pe,scrollHandlerRef:me,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:he,itemProps:st,valueRef:_e,valuesRef:ve,labelsRef:fe,typingRef:ye,selectionRef:Se,firstItemTextRef:be,selectedItemTextRef:xe,validation:B,onOpenChangeComplete:ee,alignItemWithTriggerActiveRef:Ce,initialValueRef:He}),[X,q,b,G,y,D,A,Je,Ke,st,B,ee,Ye]),pt=a(w,B.inputRef),gt=D&&Array.isArray(J)&&J.length>0,vt=D?void 0:q,yt=Z.useMemo(()=>!D||!Array.isArray(J)||!q?null:J.map(e=>{let t=Ct(e,O);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:q,value:t,disabled:G},t)}),[D,J,m,q,O,G]);return(0,Q.jsx)(ut.Provider,{value:ft,children:(0,Q.jsxs)(dt.Provider,{value:Ze,children:[j,(0,Q.jsx)(`input`,{...B.getValidationProps(G,{onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||G||y)return;let t=e.currentTarget.value,n=E(S,e.nativeEvent);function r(){if(D)return;let e=t.toLowerCase(),r=ve.current.findIndex(t=>Ct(t,O).toLowerCase()===e||St(t,te).toLowerCase()===e);r===-1&&(r=ve.current.findIndex((t,n)=>{let r=fe.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:ve.current[r];i!=null&&Je(i,n)}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:W&&vt==null?`${W}-hidden-input`:void 0,form:m,name:vt,autoComplete:h,value:Be,disabled:G,required:b&&!gt,readOnly:y,ref:pt,style:q?z:re,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yt]})})}function jt(e,t){return e??t}function Mt(e){let t=e.getBoundingClientRect(),n=m(e);if(Oe)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Nt=2,Pt=400,Ft={...A,...J,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},It=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...u}=e,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:h}=V(),{labelId:g}=ne(),{store:y,setOpen:b,selectionRef:x,validation:C,readOnly:w,required:T,alignItemWithTriggerActiveRef:D,disabled:te}=ft(),A=h||te||a,j=K(y,$.open),M=K(y,$.mounted),N=K(y,$.value),P=K(y,$.triggerProps),F=K(y,$.positionerElement),I=K(y,$.listElement),re=K(y,$.popupSide),ie=K(y,$.id),L=K(y,$.labelId),R=K(y,$.hasSelectedValue),ae=M&&F?re:null,z=i??ie,B=jt(g,L);se({id:z});let H=Ie(F),U=Z.useRef(null),{getButtonProps:oe,buttonRef:W}=_({disabled:A,native:s}),G=v(e=>{y.set(`triggerElement`,e)}),q=Se(),ce=Se(),J=Se();Z.useEffect(()=>{if(j)return J.start(Pt,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{J.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ce.clear()},[j,x,ce,J]);let le=o(P,{id:z,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?I?.id??Ve(F)?.id:void 0,"aria-labelledby":B,"aria-readonly":w||void 0,"aria-required":T||void 0,tabIndex:A?-1:0,onFocus(e){f(!0),j&&D.current&&b(!1,E(S,e.nativeEvent)),q.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){k(F,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&C.commit(N))},onMouseDown(e){if(j)return;let t=O(e.currentTarget);function n(e){if(!U.current)return;let t=e.target;if(k(U.current,t)||k(H.current,t))return;let n=Mt(U.current);e.clientX>=n.left-Nt&&e.clientX<=n.right+Nt&&e.clientY>=n.top-Nt&&e.clientY<=n.bottom+Nt||b(!1,E(ee,e))}ce.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,oe),Y=C.getValidationProps(A,le);Y.role=`combobox`;let ue={...m,open:j,disabled:A,value:N,readOnly:w,popupSide:ae,placeholder:!R};return l(`button`,e,{ref:[t,U,W,G],state:ue,stateAttributesMapping:Ft,props:Y})}),Lt={value:()=>null},Rt=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=ft(),d=K(c,$.value),f=K(c,$.items),p=K(c,$.itemToStringLabel),m=K(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=K(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?Tt(d,f,p):wt(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Lt})}),zt=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=ft();return l(`span`,e,{state:{open:K(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:be})}),Bt=Z.createContext(void 0),Vt=Z.forwardRef(function(e,t){let{store:n}=ft(),r=K(n,$.mounted),i=K(n,$.forceMount);return r||i?(0,Q.jsx)(Bt.Provider,{value:!0,children:(0,Q.jsx)(ie,{ref:t,...e})}):null}),Ht=Z.createContext(void 0);function Ut(){let e=Z.useContext(Ht);if(!e)throw Error(u(59));return e}function Wt(e,t){e&&Object.assign(e.style,t)}var Gt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Kt=20;function qt(e,t,n,r){let[i,a]=Z.useState(!1);g(()=>{if(!e||!t||n==null){a(!1);return}let r=O(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Kt)},[e,t,n]),xe(e&&(!t||i),r)}var Jt={position:`fixed`},Yt=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:_=de,style:y,...b}=e,{store:x,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:ee,selectedItemTextRef:T,valuesRef:D,initialValueRef:te,popupRef:O,setValue:k}=ft(),A=pt(),j=K(x,$.open),M=K(x,$.mounted),N=K(x,$.modal),P=K(x,$.value),F=K(x,$.openMethod),I=K(x,$.positionerElement),ne=K(x,$.triggerElement),re=K(x,$.isItemEqualToValue),ie=K(x,$.transitionStatus),L=Z.useRef(null),R=Z.useRef(null),[ae,z]=Z.useState(h),B=M&&ae&&F!==`touch`;!M&&ae!==h&&z(h),g(()=>{M||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,M]),Z.useImperativeHandle(ee,()=>B),qt((B||N)&&j,F===`touch`,I,ne);let V=ve({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??B,collisionAvoidance:_,keepMounted:!0}),H=B?`none`:V.side,U=B?Jt:V.positionerStyles,oe={open:j,side:H,align:V.align,anchorHidden:V.anchorHidden};g(()=>{x.set(`popupSide`,V.side)},[x,V.side]);let W=Ne(e,oe,{styles:U,transitionStatus:ie,props:b,refs:[t,v(e=>{x.set(`positionerElement`,e)})],hidden:!M,inert:!j}),G=Z.useRef(0),se=v(e=>{if(e.size===0&&G.current===0||D.current.length===0)return;let t=G.current;if(G.current=e.size,e.size===t)return;let n=E(S);if(t!==0&&!x.state.multiple&&P!==null&&_t(D.current,P,re)===-1){let e=te.current,t=e!=null&&_t(D.current,e,re)!==-1?e:null;k(t,n),t===null&&(x.set(`selectedIndex`,null),T.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(P)){let e=e=>_t(D.current,e,re)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!gt(P,e,re)))&&(k(t,n),t.length===0&&(x.set(`selectedIndex`,null),T.current=null))}if(j&&B){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Wt(I,e),Wt(O.current,e)}}),q=Z.useMemo(()=>({...V,side:H,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:L,scrollDownArrowRef:R}),[V,H,B,z]);return(0,Q.jsx)(qe,{elementsRef:C,labelsRef:w,onMapChange:se,children:(0,Q.jsxs)(Ht.Provider,{value:q,children:[M&&N&&(0,Q.jsx)(je,{inert:we(!j),cutout:ne}),W]})})}),Xt=`base-ui-disable-scrollbar`,Zt={className:Xt,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Xt,precedence:`base-ui:low`,children:`.${Xt}{scrollbar-width:none}.${Xt}::-webkit-scrollbar{display:none}`})}},Qt=Z.createContext(void 0);function $t(e){let t=Z.useContext(Qt);if(t===void 0&&!e)throw Error(u(69));return t}var en=Z.createContext(void 0),tn={disableStyleElements:!1};function nn(){return Z.useContext(en)??tn}var rn={...q,...X},an=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:h,multiple:_,handleScrollArrowVisibility:y,scrollHandlerRef:x,listRef:S,highlightItemOnHover:C}=ft(),{side:w,align:ee,alignItemWithTriggerActive:T,isPositioned:D,setControlledAlignItemWithTrigger:te}=Ut(),k=$t(!0)!=null,A=pt(),j=Ae(),{nonce:M,disableStyleElements:N}=nn(),P=K(s,$.id),F=K(s,$.open),I=K(s,$.openMethod),ne=K(s,$.mounted),re=K(s,$.popupProps),ie=K(s,$.transitionStatus),L=K(s,$.triggerElement),R=K(s,$.positionerElement),z=K(s,$.listElement),B=Z.useRef(!1),V=Z.useRef(!1),H=Z.useRef({}),oe=ye(),W=v(e=>{if(!R||!c.current||!V.current)return;if(B.current||!T){y();return}let t=R.style.top===`0px`,n=R.style.bottom===`0px`;if(!t&&!n){y();return}let r=cn(R),i=ln(R.getBoundingClientRect().height,`y`,r),a=O(R),o=m(R),s=o.getComputedStyle(R),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=on(o.getComputedStyle(c.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=sn(e),g=0,_=null,v=!1,b=!1,x=e=>{R.style.height=`${e}px`},S=(t,n)=>{let r=Dt(t,0,f-i);r>0&&x(i+r),e.scrollTop=n,f-(i+r)<=1&&(B.current=!0),y()},C=t?h-p:p,w=Math.min(i+C,f);if(g=w,C<=1){S(C,t?h:0);return}if(f-w>1?t?b=!0:_=0:(v=!0,n&&p1&&(e.scrollTop=n)}(v||g>=f-1)&&(B.current=!0),y()});Z.useImperativeHandle(x,()=>W,[W]),Pe({open:F,ref:c,onComplete(){F&&u?.(!0)}});let G={open:F,transitionStatus:ie,side:w,align:ee};g(()=>{!R||!c.current||Object.keys(H.current).length||(H.current={top:R.style.top||`0`,left:R.style.left||`0`,right:R.style.right,height:R.style.height,bottom:R.style.bottom,minHeight:R.style.minHeight,maxHeight:R.style.maxHeight,marginTop:R.style.marginTop,marginBottom:R.style.marginBottom})},[c,R]),g(()=>{F||T||(V.current=!1,B.current=!1,Wt(R,H.current))},[F,T,R,c]),g(()=>{let e=c.current;if(!F||!L||!R||!e||T&&!D||s.state.transitionStatus===`ending`)return;if(!T){V.current=!0,oe.request(y),e.style.removeProperty(`--transform-origin`);return}let t=fn(e);e.style.removeProperty(`--transform-origin`);try{let t=h.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=m(R),i=r.getComputedStyle(R),a=r.getComputedStyle(e),o=O(L),c=cn(L),l=un(L.getBoundingClientRect(),c),u=un(R.getBoundingClientRect(),c),d=l.height,g=z||e,_=g.scrollHeight,v=parseFloat(a.borderBottomWidth),b=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,w=parseFloat(i.minHeight)||100,ee=on(a),T=o.documentElement.clientHeight-b-x,E=o.documentElement.clientWidth,D=T-l.bottom+d,k,A=j===`rtl`?l.right-u.width:l.left,M=0;if(t&&n){let e=un(n.getBoundingClientRect(),c);k=un(t.getBoundingClientRect(),c),A=u.left+(j===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;M=k.top-u.top+k.height/2-r}let N=D+M+x+v,P=Math.min(T,N),F=T-b-x,I=N-P,ne=E-5;R.style.left=`${Dt(A,5,ne-u.width)}px`,R.style.height=`${P}px`,R.style.maxHeight=`none`,R.style.marginTop=`${b}px`,R.style.marginBottom=`${x}px`,e.style.height=`100%`;let re=sn(g),ie=I>=re-1;ie&&(P=Math.min(T,u.height)-(I-re));let ae=l.top<20||l.bottom>T-20||Math.ceil(P)+1=F?`0`:`${e}px`,R.style.height=`${P}px`,g.scrollTop=sn(g)}else R.style.bottom=`0`,g.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=Dt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(W===T||P>=ee)&&(B.current=!0),y(),C&&s.state.selectedIndex===null&&s.state.activeIndex===null&&S.current[0]!=null&&s.set(`activeIndex`,0),V.current=!0}finally{t()}},[s,F,R,L,f,p,h,c,y,T,te,oe,z,S,C,j,D]),Z.useEffect(()=>{if(!T||!R||!F)return;let e=m(R);function t(e){d(!1,E(b,e))}return ae(e,`resize`,t)},[d,T,R,F]);let se={...z?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${P}-list`},onKeyDown(e){k&&le.has(e.key)&&e.stopPropagation()},onScroll(e){z||W(e.currentTarget)},...T&&{style:z?{height:`100%`}:Gt}},q=l(`div`,e,{ref:[t,c],state:G,stateAttributesMapping:rn,props:[re,se,Re(ie),{className:!z&&T?Zt.className:void 0},o]});return(0,Q.jsxs)(Z.Fragment,{children:[!N&&Zt.getElement(M),(0,Q.jsx)(We,{context:A,modal:!1,disabled:!ne,openInteractionType:I,returnFocus:a,restoreFocus:!0,children:q})]})});function on(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function sn(e){return Ot(e.scrollHeight,e.clientHeight)}function cn(e){return B.getScale(e)}function ln(e,t,n){return e/n[t]}function un(e,t){return Ue({x:ln(e.x,`x`,t),y:ln(e.y,`y`,t),width:ln(e.width,`x`,t),height:ln(e.height,`y`,t)})}var dn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function fn(e){let{style:t}=e,n={};for(let[e,r]of dn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of dn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var pn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=ft(),{alignItemWithTriggerActive:c}=Ut(),u=K(o,$.hasScrollArrows),d=K(o,$.openMethod),f=K(o,$.multiple),p={id:`${K(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Gt},className:u&&d!==`touch`?Zt.className:void 0};return l(`div`,e,{ref:[t,v(e=>{o.set(`listElement`,e)})],props:[p,a]})}),mn=Z.createContext(void 0);function hn(){let e=Z.useContext(mn);if(!e)throw Error(u(57));return e}var gn=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Z.useRef(null),f=Ke({label:o,textRef:d,indexGuessBehavior:Je.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:v,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:C,disabled:ee,readOnly:T}=ft(),D=K(p,$.isActive,f.index),te=K(p,$.open),O=K(p,$.isSelected,a),k=K(p,$.isSelectedByFocus,f.index),A=K(p,$.isItemEqualToValue),j=f.index,M=j!==-1,N=Z.useRef(null);g(()=>{if(!M)return;let e=x.current;return e[j]=a,()=>{delete e[j]}},[M,j,a,x]),g(()=>{if(!M)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&ht(a,t,A)&&(p.set(`selectedIndex`,j),d.current&&(C.current=d.current))},[M,j,S,A,p,a,C]);let P=Z.useRef(null),F=Z.useRef(`mouse`),I=Z.useRef(!1),{getButtonProps:ne,buttonRef:re}=_({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:O,highlighted:D};function L(e){if(ee||T)return;let t=p.state.value;if(S){let n=Array.isArray(t)?t:[];v(O?vt(n,a,A):[...n,a],E(w,e))}else v(a,E(w,e)),h(!1,E(w,e))}function R(){y.current.dragY=0}let ae={role:`option`,"aria-selected":O,tabIndex:te&&D?0:-1,onKeyDown(e){P.current=e.key,p.set(`activeIndex`,j),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&F.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&He(e.nativeEvent)&&(n!==void 0||D),i=t&&!r&&!I.current;I.current=!1,!(e.type===`keydown`&&P.current===null)&&(s||e.type===`keydown`&&P.current===` `&&b.current||i||(P.current=null,L(e.nativeEvent)))},onPointerEnter(e){F.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){F.current=e.pointerType,I.current=!0,R()},onMouseUp(){if(R(),s||F.current===`touch`||I.current)return;let e=!y.current.allowSelectedMouseUp&&O,t=!y.current.allowUnselectedMouseUp&&!O;e||t||(I.current=!0,N.current?.click(),I.current=!1)}},z=l(`div`,e,{ref:[re,t,f.ref,N],state:ie,props:[m,ae,u,ne]}),B=Z.useMemo(()=>({selected:O,index:j,textRef:d,selectedByFocus:k,hasRegistered:M}),[O,j,d,k,M]);return(0,Q.jsx)(mn.Provider,{value:B,children:z})})),_n=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=hn();return n||r?(0,Q.jsx)(vn,{...e,ref:t}):null}),vn=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=hn(),c=Z.useRef(null),{transitionStatus:u,setMounted:d}=ge(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:X});return Pe({open:s,ref:c,onComplete(){s||d(!1)}}),f})),yn=Z.memo(Z.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=hn(),{firstItemTextRef:o,selectedItemTextRef:s}=ft(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Z.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),bn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=ft(),{side:h,scrollDownArrowRef:_,scrollUpArrowRef:v}=Ut(),y=K(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=K(u,$.openMethod),x=y&&b!==`touch`,S=Se(),C=c?v:_,{mounted:w,transitionStatus:ee,setMounted:T}=ge(x);g(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),Pe({open:x,ref:C,onComplete(){x||T(!1)}});let E=l(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:h,transitionStatus:ee},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Ot(e.scrollHeight,e.clientHeight),r=kt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=xn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:X});return w||o?E:null});function xn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?kt(l.offsetTop+l.offsetHeight-r+i,a):a}var Sn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`down`})}),Cn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`up`})}),wn=Z.createContext(void 0);function Tn(){let e=Z.useContext(wn);if(e===void 0)throw Error(u(56));return e}var En=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(),c=Z.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(wn.Provider,{value:c,children:u})}),Dn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Tn(),c=y(a);return g(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),On=r(),kn=At;function An(e){let t=(0,On.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=d(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(En,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jn(e){let t=(0,On.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=d(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Rt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let t=(0,On.c)(15),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,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=d(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(zt,{render:(0,Q.jsx)(p,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Q.jsxs)(It,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Nn(e){let t=(0,On.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...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,t[8]=l);let u=a===void 0?`bottom`:a,f=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(Ln,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Q.jsx)(pn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(Rn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Q.jsxs)(an,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==f||t[24]!==b?(x=(0,Q.jsx)(Vt,{children:(0,Q.jsx)(Yt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Pn(e){let t=(0,On.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=d(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Dn,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,On.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=d(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Q.jsx)(yn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(_n,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(f,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Q.jsxs)(gn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function In(e){let t=(0,On.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=d(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(ze,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ln(e){let t=(0,On.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 i;t[3]===n?i=t[4]:(i=d(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(Ye,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Cn,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Rn(e){let t=(0,On.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 i;t[3]===n?i=t[4]:(i=d(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Sn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Pn as a,jn as c,Fn as i,Nn as n,In as o,An as r,Mn as s,kn as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,f as o,i as s,l as c,n as l,u}from"./dist.js";import{Lt as d}from"./auth.js";import{t as f}from"./check.js";import{t as p}from"./chevron-down.js";import{_ as m,b as h,o as g,r as _,s as v}from"./button.js";import{S as y,_ as b,b as x,f as S,g as C,l as w,n as ee,o as T,t as E,u as D,v as te,x as O,y as k}from"./createBaseUIEventDetails.js";import{i as A,n as j,r as M,s as N,t as P,u as ne}from"./useValueAsRef.js";import{$n as F,Bn as re,Br as I,Cr as ie,Dr as ae,Er as oe,Fn as L,Gn as R,Hn as z,In as B,Kn as V,Ln as H,Mn as U,Nn as se,Or as ce,Pn as W,Qn as le,Rn as ue,Sn as G,Sr as K,Tr as q,Un as J,Vn as de,Wn as Y,Xn as fe,Zn as pe,_r as me,ar as he,br as ge,cn as _e,cr as ve,dr as ye,fn as be,fr as xe,gr as Se,hn as Ce,hr as we,ir as Te,jn as Ee,kr as De,ln as Oe,lr as ke,mn as Ae,mr as X,nr as je,on as Me,or as Ne,pr as Pe,rr as Fe,sn as Ie,sr as Le,tr as Re,ur as ze,vr as Be,wr as Ve,xr as He,yr as Ue,zn as We}from"./index.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./useCompositeListItem.js";var Ye=I(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Z=t(n(),1);function Xe(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=C}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,f=Z.useRef(void 0),p=ne(),m=q(),h=Z.useMemo(()=>{function e(e,t,n,r){let i=E(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let i=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||ye(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=x(a);if(me(l)){e(c,a,l,i);return}let d=n.currentTarget;p.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}ye(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,o,l,u,s,a,p,m,c]);return Z.useMemo(()=>n?{reference:h}:i,[n,h])}var Ze=`Escape`;function Qe(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function $e(e,t){return Qe(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function et(e,t,n){return Qe(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function tt(e,t,n){return Qe(t,n?e===Ue:e===ge,e===Be)}function nt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Ze:Qe(t,n?e===ge:e===Ue,e===He)}function rt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:_=void 0,orientation:y=`vertical`,parentOrientation:b,id:S,resetOnPointerLeave:C=!0,externalTree:w,grid:ee}=t,A=ee!=null,j=`rootStore`in e?e.rootStore:e,M=j.useState(`open`),N=j.useState(`floatingElement`),F=j.useState(`domReferenceElement`),I=j.context.dataRef,ie=we(N),ae=Se(F),oe=P(ie),L=re(),R=de(w),z=Z.useRef(f),B=Z.useRef(o??-1),V=Z.useRef(null),H=Z.useRef(!0),U=v(e=>{i(B.current===-1?null:B.current,e)}),se=Z.useRef(!!N),ce=Z.useRef(M),W=Z.useRef(!1),le=Z.useRef(!1),ue=Z.useRef(null),G=P(_),K=P(M),q=P(o),J=P(C),fe=ne(),pe=ne(),me=v(()=>{function e(e){d?R?.events.emit(`virtualfocus`,e):ue.current=Y(e,{sync:W.current,preventScroll:!0})}let t=n.current[B.current],r=le.current;t&&e(t),(W.current?e=>e():e=>fe.request(e))(()=>{let i=n.current[B.current]||t;i&&(t||e(i),Ee&&(r||!H.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});g(()=>{I.current.orientation=y},[I,y]),g(()=>{a&&(M&&N?(B.current=o??-1,z.current&&o!=null&&(le.current=!0,U())):se.current&&(B.current=-1,U()))},[a,M,N,o,U]),g(()=>{if(a){if(!M){W.current=!1;return}if(N)if(r==null){if(W.current=!1,q.current!=null)return;if(se.current&&(B.current=-1,me()),(!ce.current||!se.current)&&z.current&&(V.current!=null||z.current===!0&&V.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>pe.request(e):queueMicrotask)(t),e+=1):(B.current=V.current==null||et(V.current,y,u)||l?Ne(n):he(n),V.current=null,U())};t()}}else ve(n.current,r)||(B.current=r,me(),le.current=!1)}},[a,M,N,r,q,l,n,y,u,U,me,pe]),g(()=>{if(!a||N||!R||d||!se.current)return;let e=R.nodesRef.current,t=e.find(e=>e.id===L)?.context?.elements.floating,n=te(O(F??t??null)),r=e.some(e=>e.context&&k(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[a,N,F,R,L,d]),g(()=>{ce.current=M,se.current=!!N}),g(()=>{M||(V.current=null,z.current=f)},[M,f]);let ge=r!=null,_e=v(e=>{if(!K.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(B.current!==t||r!==t)&&(B.current=t,U(e))}),ye=v(()=>b??R?.nodesRef.current.find(e=>e.id===L)?.context?.dataRef?.current.orientation),be=v(()=>Ne(n,G.current)),Ce=v(e=>{if(H.current=!1,W.current=!0,e.which===229||!K.current&&e.currentTarget===oe.current)return;if(l&&nt(e.key,y,u,A)){$e(e.key,ye())||X(e),j.setOpen(!1,E(D,e.nativeEvent)),h(F)&&(d?R?.events.emit(`virtualfocus`,F):F.focus());return}let t=B.current,r=Ne(n,_),i=he(n,_);if(ae||(e.key===`Home`&&(X(e),B.current=r,U(e)),e.key===`End`&&(X(e),B.current=i,U(e))),ee!=null){let t=ee(e,B.current,n,y,c,u,_,r,i);if(t!=null&&(B.current=t,U(e)),y===`both`)return}if($e(e.key,y)){if(X(e),M&&!d&&te(e.currentTarget.ownerDocument)===e.currentTarget){B.current=et(e.key,y,u)?r:i,U(e);return}et(e.key,y,u)?c?t>=i?s&&t!==n.current.length?B.current=-1:(W.current=!1,B.current=r):B.current=Te(n.current,{startingIndex:t,disabledIndices:_}):B.current=Math.min(i,Te(n.current,{startingIndex:t,disabledIndices:_})):c?t<=r?s&&t!==-1?B.current=n.current.length:(W.current=!1,B.current=i):B.current=Te(n.current,{startingIndex:t,decrement:!0,disabledIndices:_}):B.current=Math.max(r,Te(n.current,{startingIndex:t,decrement:!0,disabledIndices:_})),ve(n.current,B.current)&&(B.current=-1),U(e)}}),Ee=Z.useMemo(()=>({onFocus(e){W.current=!0,_e(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){W.current=!0,le.current=!1,p&&_e(e)},onPointerLeave(e){if(!K.current||!H.current||e.pointerType===`touch`)return;W.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&J.current&&(ue.current?.(),ue.current=null,B.current=-1,U(e),!d)){let e=oe.current,t=te(O(e));e&&k(e,t)&&e.focus({preventScroll:!0})}}}),[_e,K,oe,p,n,U,J,d]),De=Z.useMemo(()=>d&&M&&ge&&{"aria-activedescendant":`${S}-${r}`},[d,M,ge,S,r]),Oe=Z.useMemo(()=>({"aria-orientation":y===`both`?void 0:y,...ae?{}:De,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&M&&!d){let t=x(e.nativeEvent);if(t&&!k(oe.current,t))return;X(e),j.setOpen(!1,E(T,e.nativeEvent)),h(F)&&F.focus();return}Ce(e)},onPointerMove(){H.current=!0}}),[De,Ce,oe,y,ae,j,M,d,F]),ke=Z.useMemo(()=>{function e(e){j.setOpen(!0,E(D,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&xe(e.nativeEvent)&&(z.current=!d)}function n(e){z.current=f,f===`auto`&&Pe(e.nativeEvent)&&(z.current=!0)}return{onKeyDown(t){let n=j.select(`open`);H.current=!1;let r=t.key.startsWith(`Arrow`),i=tt(t.key,ye(),u),a=$e(t.key,y),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return Ce(t);if(!(!n&&!m&&r)){if(o){let e=$e(t.key,ye());V.current=l&&e?null:t.key}if(l){i&&(X(t),n?(B.current=be(),U(t)):e(t));return}a&&(q.current!=null&&(B.current=q.current),X(t),!n&&m?e(t):Ce(t),n&&U(t))}},onFocus(e){j.select(`open`)&&!d&&(B.current=-1,U(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Ce,f,be,l,U,j,m,y,ye,u,q,d]),Ae=Z.useMemo(()=>({...De,...ke}),[De,ke]);return Z.useMemo(()=>a?{reference:Ae,floating:Oe,item:Ee,trigger:ke}:{},[a,Ae,Oe,ke,Ee])}function it(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:c,enabled:l=!0,resetMs:u=750,selectedIndex:d=null}=t,f=`rootStore`in e?e.rootStore:e,p=f.useState(`open`),m=q(),h=Z.useRef(``),_=Z.useRef(d??i??-1),y=Z.useRef(null),b=v(e=>{function t(e){let t=r?.current[e];return!t||Le(t)}function l(e){return t(e)?o==null||!ke(s,e,o):!1}function f(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t0&&e.key===` `&&(X(e),c?.(!0)),h.current.length>0&&h.current[0]!==` `&&f(g,h.current)===-1&&e.key!==` `&&c?.(!1),g==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;p&&e.key!==` `&&(X(e),c?.(!0));let v=h.current===``;v&&(_.current=d??i??-1),g.every((e,t)=>e&&l(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,_.current=y.current),h.current+=e.key,m.start(u,()=>{h.current=``,_.current=y.current,c?.(!1)});let b=((v?d??i??-1:_.current)??0)+1,x=f(g,h.current,b);x===-1?e.key!==` `&&(h.current=``,c?.(!1)):(a?.(x),y.current=x)}),x=v(e=>{let t=e.relatedTarget,n=f.select(`domReferenceElement`),r=f.select(`floatingElement`);k(n,t)||k(r,t)||(m.clear(),h.current=``,_.current=y.current,c?.(!1))});g(()=>{!p&&d!==null||(m.clear(),y.current=null,h.current!==``&&(h.current=``))},[p,d,m]),g(()=>{p&&h.current===``&&(_.current=d??i??-1)},[p,d,i]);let S=Z.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Z.useMemo(()=>l?{reference:S,floating:S}:{},[l,S])}var Q=e();function at(e){let t=Z.useRef(``),n=Z.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Z.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ot(e,t){let n=Z.useRef(e),r=v(t);g(()=>{n.current!==e&&r(n.current)},[e,r]),g(()=>{n.current=e},[e])}function st(e,t){let{onClick:n,onPointerDown:r}=at(v((n,r)=>{(typeof e==`function`?e():e)||t(r||(Ve?`touch`:``))}));return Z.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ct(e){let[t,n]=Z.useState(null),r=st(e,n);return ot(e,t=>{t&&!e&&n(null)}),Z.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function lt(e){let[t,n]=Z.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var ut=Z.createContext(null),dt=Z.createContext(null);function ft(){let e=Z.useContext(ut);if(e===null)throw Error(u(60));return e}function pt(){let e=Z.useContext(dt);if(e===null)throw Error(u(61));return e}var mt=(e,t)=>Object.is(e,t);function ht(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function gt(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:ht(t,e,n))}function _t(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:ht(e,t,n))}function vt(e,t,n){return e.filter(e=>!ht(t,e,n))}function yt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function bt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function xt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(bt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function St(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return yt(e)}function Ct(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?yt(e.value):yt(e)}function wt(e,t,n){function r(){return St(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=bt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Tt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(Z.Fragment,{children:wt(r,t,n)},i)),e),[])}var $={id:L(e=>e.id),labelId:L(e=>e.labelId),modal:L(e=>e.modal),multiple:L(e=>e.multiple),items:L(e=>e.items),itemToStringLabel:L(e=>e.itemToStringLabel),itemToStringValue:L(e=>e.itemToStringValue),isItemEqualToValue:L(e=>e.isItemEqualToValue),value:L(e=>e.value),hasSelectedValue:L(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Ct(t,r)!==``}),hasNullItemLabel:L((e,t)=>t?xt(e.items):!1),open:L(e=>e.open),mounted:L(e=>e.mounted),forceMount:L(e=>e.forceMount),transitionStatus:L(e=>e.transitionStatus),openMethod:L(e=>e.openMethod),activeIndex:L(e=>e.activeIndex),selectedIndex:L(e=>e.selectedIndex),isActive:L((e,t)=>e.activeIndex===t),isSelected:L((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>ht(t,e,n)):ht(t,r,n)}),isSelectedByFocus:L((e,t)=>e.selectedIndex===t),popupProps:L(e=>e.popupProps),triggerProps:L(e=>e.triggerProps),triggerElement:L(e=>e.triggerElement),positionerElement:L(e=>e.positionerElement),listElement:L(e=>e.listElement),popupSide:L(e=>e.popupSide),scrollUpArrowVisible:L(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:L(e=>e.scrollDownArrowVisible),hasScrollArrows:L(e=>e.hasScrollArrows)};function Et(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Dt(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ot(e,t){return Math.max(0,e-t)}function kt(e,t){if(t<=0)return 0;let n=Dt(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function At(e){let{id:t,value:n,defaultValue:r=null,onValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,name:p,form:m,autoComplete:h,disabled:_=!1,readOnly:y=!1,required:b=!1,modal:x=!0,actionsRef:C,inputRef:w,onOpenChangeComplete:ee,items:T,multiple:D=!1,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k=mt,highlightItemOnHover:j=!0,children:N}=e,{clearErrors:ne}=ae(),{setDirty:F,setTouched:re,setFocused:I,validityData:ie,setFilled:oe,name:L,disabled:z,validation:H,validationMode:le}=ce(),G=Re({id:t}),K=z||_,q=L??p,[J,de]=Fe({controlled:n,default:D?r??s:r,name:`Select`,state:`value`}),[Y,fe]=Fe({controlled:u,default:d,name:`Select`,state:`open`}),pe=Z.useRef([]),me=Z.useRef([]),he=Z.useRef(null),ge=Z.useRef(null),_e=Z.useRef(0),ve=Z.useRef(null),ye=Z.useRef([]),be=Z.useRef(!1),xe=Z.useRef(null),Se=Z.useRef(null),Ce=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),we=Z.useRef(!1),{mounted:Te,setMounted:De,transitionStatus:Oe}=M(Y),{openMethod:ke,triggerProps:Ae}=ct(Y),X=c(()=>new se({id:G,labelId:void 0,modal:x,multiple:D,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,value:J,open:Y,mounted:Te,transitionStatus:Oe,items:T,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Me=W(X,$.activeIndex),Ne=W(X,$.selectedIndex),Pe=W(X,$.triggerElement),Ie=W(X,$.positionerElement),Le=lt(ke),ze=ke??Le??null,Be=Z.useMemo(()=>D?``:Ct(J,O),[D,J,O]),Ve=Z.useMemo(()=>D&&Array.isArray(J)?J.map(e=>Ct(e,O)):Ct(J,O),[D,J,O]);je(P(X.state.triggerElement),G,J,v(()=>Ve),!K,p);let He=Z.useRef(J),Ue=D?Array.isArray(J)&&J.length>0:J!=null&&Ct(J,O)!==``;g(()=>{J!==He.current&&X.set(`forceMount`,!0)},[X,J]),g(()=>{oe(Ue)},[Ue,oe]),g(function(){let e=ye.current,t;if(D){let n=Array.isArray(J)?J:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=_t(e,r,k);t=i===-1?null:i}}else{let n=_t(e,J,k);t=n===-1?null:n}t===null&&(Se.current=null),!Y&&X.set(`selectedIndex`,t)},[Ue,D,Y,J,ye,k,X,Se]);function We(e){let t=ie.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Et(e,t,(e,t)=>ht(e,t,k)):e!==t}ot(J,()=>{ne(q),F(We(J)),H.change(J)});let Ke=v((e,t)=>{f?.(e,t),!t.isCanceled&&(fe(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(re(!0),I(!1),le===`onBlur`&&H.commit(J)))}),qe=v(()=>{De(!1),X.update({activeIndex:null,openMethod:null}),ee?.(!1)});A({enabled:!C,open:Y,ref:he,onComplete(){Y||qe()}}),Z.useImperativeHandle(C,()=>({unmount:qe}),[qe]);let Je=v((e,t)=>{l?.(e,t),!t.isCanceled&&de(e)}),Ye=v(()=>{let e=X.state.listElement||he.current;if(!e)return;let t=Ot(e.scrollHeight,e.clientHeight),n=kt(e.scrollTop,t),r=n>0,i=nGe(pe.current[e]),onMatch(e){Y?X.set(`activeIndex`,e):Je(ye.current[e],E(`none`))},onTyping(e){be.current=e}}),nt=Z.useMemo(()=>{let e=o(tt.reference,et.reference,$e.reference,Qe.reference,Ae);return G&&(e.id=G),e},[Qe.reference,tt.reference,et.reference,$e.reference,Ae,G]),at=Z.useMemo(()=>o(U,tt.floating,et.floating,$e.floating),[tt.floating,et.floating,$e.floating]),st=et.item??i;B(()=>{X.update({popupProps:at,triggerProps:nt})}),g(()=>{X.update({id:G,modal:x,multiple:D,value:J,open:Y,mounted:Te,transitionStatus:Oe,popupProps:at,triggerProps:nt,items:T,itemToStringLabel:te,itemToStringValue:O,isItemEqualToValue:k,openMethod:ze})},[X,G,x,D,J,Y,Te,Oe,at,nt,T,te,O,k,ze]);let ft=Z.useMemo(()=>({store:X,name:q,required:b,disabled:K,readOnly:y,multiple:D,highlightItemOnHover:j,setValue:Je,setOpen:Ke,listRef:pe,popupRef:he,scrollHandlerRef:ge,handleScrollArrowVisibility:Ye,scrollArrowsMountedCountRef:_e,itemProps:st,valueRef:ve,valuesRef:ye,labelsRef:me,typingRef:be,selectionRef:Ce,firstItemTextRef:xe,selectedItemTextRef:Se,validation:H,onOpenChangeComplete:ee,alignItemWithTriggerActiveRef:we,initialValueRef:He}),[X,q,b,K,y,D,j,Je,Ke,st,H,ee,Ye]),pt=a(w,H.inputRef),gt=D&&Array.isArray(J)&&J.length>0,vt=D?void 0:q,yt=Z.useMemo(()=>!D||!Array.isArray(J)||!q?null:J.map(e=>{let t=Ct(e,O);return(0,Q.jsx)(`input`,{type:`hidden`,form:m,name:q,value:t,disabled:K},t)}),[D,J,m,q,O,K]);return(0,Q.jsx)(ut.Provider,{value:ft,children:(0,Q.jsxs)(dt.Provider,{value:Ze,children:[N,(0,Q.jsx)(`input`,{...H.getValidationProps(K,{onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||K||y)return;let t=e.currentTarget.value,n=E(S,e.nativeEvent);function r(){if(D)return;let e=t.toLowerCase(),r=ye.current.findIndex(t=>Ct(t,O).toLowerCase()===e||St(t,te).toLowerCase()===e);r===-1&&(r=ye.current.findIndex((t,n)=>{let r=me.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:ye.current[r];i!=null&&Je(i,n)}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:G&&vt==null?`${G}-hidden-input`:void 0,form:m,name:vt,autoComplete:h,value:Be,disabled:K,required:b&&!gt,readOnly:y,ref:pt,style:q?V:R,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yt]})})}function jt(e,t){return e??t}function Mt(e){let t=e.getBoundingClientRect(),n=m(e);if(K)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Nt=2,Pt=400,Ft={...pe,...De,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},It=Z.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...u}=e,{setTouched:d,setFocused:f,validationMode:p,state:m,disabled:h}=ce(),{labelId:g}=oe(),{store:y,setOpen:b,selectionRef:x,validation:C,readOnly:w,required:T,alignItemWithTriggerActiveRef:D,disabled:te}=ft(),A=h||te||a,j=W(y,$.open),M=W(y,$.mounted),N=W(y,$.value),ne=W(y,$.triggerProps),F=W(y,$.positionerElement),re=W(y,$.listElement),I=W(y,$.popupSide),ie=W(y,$.id),ae=W(y,$.labelId),L=W(y,$.hasSelectedValue),R=M&&F?I:null,z=i??ie,B=jt(g,ae);Re({id:z});let V=P(F),H=Z.useRef(null),{getButtonProps:U,buttonRef:se}=_({disabled:A,native:s}),le=v(e=>{y.set(`triggerElement`,e)}),ue=q(),G=q(),K=q();Z.useEffect(()=>{if(j)return K.start(Pt,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{K.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},G.clear()},[j,x,G,K]);let J=o(ne,{id:z,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?re?.id??we(F)?.id:void 0,"aria-labelledby":B,"aria-readonly":w||void 0,"aria-required":T||void 0,tabIndex:A?-1:0,onFocus(e){f(!0),j&&D.current&&b(!1,E(S,e.nativeEvent)),ue.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){k(F,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&C.commit(N))},onMouseDown(e){if(j)return;let t=O(e.currentTarget);function n(e){if(!H.current)return;let t=e.target;if(k(H.current,t)||k(V.current,t))return;let n=Mt(H.current);e.clientX>=n.left-Nt&&e.clientX<=n.right+Nt&&e.clientY>=n.top-Nt&&e.clientY<=n.bottom+Nt||b(!1,E(ee,e))}G.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,U),de=C.getValidationProps(A,J);de.role=`combobox`;let Y={...m,open:j,disabled:A,value:N,readOnly:w,popupSide:R,placeholder:!L};return l(`button`,e,{ref:[t,H,se,le],state:Y,stateAttributesMapping:Ft,props:de})}),Lt={value:()=>null},Rt=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:u}=ft(),d=W(c,$.value),f=W(c,$.items),p=W(c,$.itemToStringLabel),m=W(c,$.hasSelectedValue),h=!m&&a!=null&&i==null,g=W(c,$.hasNullItemLabel,h),_={value:d,placeholder:!m},v=null;return v=typeof i==`function`?i(d):i??(!m&&a!=null&&!g?a:Array.isArray(d)?Tt(d,f,p):wt(d,f,p)),l(`span`,e,{state:_,ref:[t,u],props:[{children:v},s],stateAttributesMapping:Lt})}),zt=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=ft();return l(`span`,e,{state:{open:W(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:le})}),Bt=Z.createContext(void 0),Vt=Z.forwardRef(function(e,t){let{store:n}=ft(),r=W(n,$.mounted),i=W(n,$.forceMount);return r||i?(0,Q.jsx)(Bt.Provider,{value:!0,children:(0,Q.jsx)(z,{ref:t,...e})}):null}),Ht=Z.createContext(void 0);function Ut(){let e=Z.useContext(Ht);if(!e)throw Error(u(59));return e}function Wt(e,t){e&&Object.assign(e.style,t)}var Gt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Kt=20;function qt(e,t,n,r){let[i,a]=Z.useState(!1);g(()=>{if(!e||!t||n==null){a(!1);return}let r=O(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Kt)},[e,t,n]),be(e&&(!t||i),r)}var Jt={position:`fixed`},Yt=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:_=J,style:y,...b}=e,{store:x,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:ee,selectedItemTextRef:T,valuesRef:D,initialValueRef:te,popupRef:O,setValue:k}=ft(),A=pt(),j=W(x,$.open),M=W(x,$.mounted),N=W(x,$.modal),P=W(x,$.value),ne=W(x,$.openMethod),F=W(x,$.positionerElement),re=W(x,$.triggerElement),I=W(x,$.isItemEqualToValue),ie=W(x,$.transitionStatus),ae=Z.useRef(null),oe=Z.useRef(null),[L,R]=Z.useState(h),z=M&&L&&ne!==`touch`;!M&&L!==h&&R(h),g(()=>{M||($.scrollUpArrowVisible(x.state)&&x.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(x.state)&&x.set(`scrollDownArrowVisible`,!1))},[x,M]),Z.useImperativeHandle(ee,()=>z),qt((z||N)&&j,ne===`touch`,F,re);let B=_e({anchor:n,floatingRootContext:A,positionMethod:r,mounted:M,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??z,collisionAvoidance:_,keepMounted:!0}),V=z?`none`:B.side,H=z?Jt:B.positionerStyles,U={open:j,side:V,align:B.align,anchorHidden:B.anchorHidden};g(()=>{x.set(`popupSide`,B.side)},[x,B.side]);let se=Me(e,U,{styles:H,transitionStatus:ie,props:b,refs:[t,v(e=>{x.set(`positionerElement`,e)})],hidden:!M,inert:!j}),ce=Z.useRef(0),le=v(e=>{if(e.size===0&&ce.current===0||D.current.length===0)return;let t=ce.current;if(ce.current=e.size,e.size===t)return;let n=E(S);if(t!==0&&!x.state.multiple&&P!==null&&_t(D.current,P,I)===-1){let e=te.current,t=e!=null&&_t(D.current,e,I)!==-1?e:null;k(t,n),t===null&&(x.set(`selectedIndex`,null),T.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(P)){let e=e=>_t(D.current,e,I)!==-1,t=P.filter(t=>e(t));(t.length!==P.length||t.some(e=>!gt(P,e,I)))&&(k(t,n),t.length===0&&(x.set(`selectedIndex`,null),T.current=null))}if(j&&z){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Wt(F,e),Wt(O.current,e)}}),ue=Z.useMemo(()=>({...B,side:V,alignItemWithTriggerActive:z,setControlledAlignItemWithTrigger:R,scrollUpArrowRef:ae,scrollDownArrowRef:oe}),[B,V,z,R]);return(0,Q.jsx)(qe,{elementsRef:C,labelsRef:w,onMapChange:le,children:(0,Q.jsxs)(Ht.Provider,{value:ue,children:[M&&N&&(0,Q.jsx)(Ae,{inert:Ce(!j),cutout:re}),se]})})}),Xt=`base-ui-disable-scrollbar`,Zt={className:Xt,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Xt,precedence:`base-ui:low`,children:`.${Xt}{scrollbar-width:none}.${Xt}::-webkit-scrollbar{display:none}`})}},Qt=Z.createContext(void 0);function $t(e){let t=Z.useContext(Qt);if(t===void 0&&!e)throw Error(u(69));return t}var en=Z.createContext(void 0),tn={disableStyleElements:!1};function nn(){return Z.useContext(en)??tn}var rn={...fe,...N},an=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:h,multiple:_,handleScrollArrowVisibility:y,scrollHandlerRef:x,listRef:S,highlightItemOnHover:C}=ft(),{side:w,align:ee,alignItemWithTriggerActive:T,isPositioned:D,setControlledAlignItemWithTrigger:te}=Ut(),k=$t(!0)!=null,M=pt(),N=Oe(),{nonce:P,disableStyleElements:F}=nn(),re=W(s,$.id),I=W(s,$.open),ae=W(s,$.openMethod),oe=W(s,$.mounted),L=W(s,$.popupProps),R=W(s,$.transitionStatus),z=W(s,$.triggerElement),B=W(s,$.positionerElement),V=W(s,$.listElement),H=Z.useRef(!1),U=Z.useRef(!1),se=Z.useRef({}),ce=ne(),le=v(e=>{if(!B||!c.current||!U.current)return;if(H.current||!T){y();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){y();return}let r=cn(B),i=ln(B.getBoundingClientRect().height,`y`,r),a=O(B),o=m(B),s=o.getComputedStyle(B),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=on(o.getComputedStyle(c.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=sn(e),g=0,_=null,v=!1,b=!1,x=e=>{B.style.height=`${e}px`},S=(t,n)=>{let r=Dt(t,0,f-i);r>0&&x(i+r),e.scrollTop=n,f-(i+r)<=1&&(H.current=!0),y()},C=t?h-p:p,w=Math.min(i+C,f);if(g=w,C<=1){S(C,t?h:0);return}if(f-w>1?t?b=!0:_=0:(v=!0,n&&p1&&(e.scrollTop=n)}(v||g>=f-1)&&(H.current=!0),y()});Z.useImperativeHandle(x,()=>le,[le]),A({open:I,ref:c,onComplete(){I&&u?.(!0)}});let ue={open:I,transitionStatus:R,side:w,align:ee};g(()=>{!B||!c.current||Object.keys(se.current).length||(se.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[c,B]),g(()=>{I||T||(U.current=!1,H.current=!1,Wt(B,se.current))},[I,T,B,c]),g(()=>{let e=c.current;if(!I||!z||!B||!e||T&&!D||s.state.transitionStatus===`ending`)return;if(!T){U.current=!0,ce.request(y),e.style.removeProperty(`--transform-origin`);return}let t=fn(e);e.style.removeProperty(`--transform-origin`);try{let t=h.current;t?.isConnected||(t=!$.hasSelectedValue(s.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=m(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=O(z),c=cn(z),l=un(z.getBoundingClientRect(),c),u=un(B.getBoundingClientRect(),c),d=l.height,g=V||e,_=g.scrollHeight,v=parseFloat(a.borderBottomWidth),b=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,w=parseFloat(i.minHeight)||100,ee=on(a),T=o.documentElement.clientHeight-b-x,E=o.documentElement.clientWidth,D=T-l.bottom+d,k,A=N===`rtl`?l.right-u.width:l.left,j=0;if(t&&n){let e=un(n.getBoundingClientRect(),c);k=un(t.getBoundingClientRect(),c),A=u.left+(N===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;j=k.top-u.top+k.height/2-r}let M=D+j+x+v,P=Math.min(T,M),ne=T-b-x,F=M-P,re=E-5;B.style.left=`${Dt(A,5,re-u.width)}px`,B.style.height=`${P}px`,B.style.maxHeight=`none`,B.style.marginTop=`${b}px`,B.style.marginBottom=`${x}px`,e.style.height=`100%`;let I=sn(g),ae=F>=I-1;ae&&(P=Math.min(T,u.height)-(F-I));let oe=l.top<20||l.bottom>T-20||Math.ceil(P)+1=ne?`0`:`${e}px`,B.style.height=`${P}px`,g.scrollTop=sn(g)}else B.style.bottom=`0`,g.scrollTop=F;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=Dt(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(R===T||P>=ee)&&(H.current=!0),y(),C&&s.state.selectedIndex===null&&s.state.activeIndex===null&&S.current[0]!=null&&s.set(`activeIndex`,0),U.current=!0}finally{t()}},[s,I,B,z,f,p,h,c,y,T,te,ce,V,S,C,N,D]),Z.useEffect(()=>{if(!T||!B||!I)return;let e=m(B);function t(e){d(!1,E(b,e))}return j(e,`resize`,t)},[d,T,B,I]);let K={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${re}-list`},onKeyDown(e){k&&G.has(e.key)&&e.stopPropagation()},onScroll(e){V||le(e.currentTarget)},...T&&{style:V?{height:`100%`}:Gt}},q=l(`div`,e,{ref:[t,c],state:ue,stateAttributesMapping:rn,props:[L,K,Ie(R),{className:!V&&T?Zt.className:void 0},o]});return(0,Q.jsxs)(Z.Fragment,{children:[!F&&Zt.getElement(P),(0,Q.jsx)(We,{context:M,modal:!1,disabled:!oe,openInteractionType:ae,returnFocus:a,restoreFocus:!0,children:q})]})});function on(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function sn(e){return Ot(e.scrollHeight,e.clientHeight)}function cn(e){return H.getScale(e)}function ln(e,t,n){return e/n[t]}function un(e,t){return ze({x:ln(e.x,`x`,t),y:ln(e.y,`y`,t),width:ln(e.width,`x`,t),height:ln(e.height,`y`,t)})}var dn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function fn(e){let{style:t}=e,n={};for(let[e,r]of dn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of dn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var pn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=ft(),{alignItemWithTriggerActive:c}=Ut(),u=W(o,$.hasScrollArrows),d=W(o,$.openMethod),f=W(o,$.multiple),p={id:`${W(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Gt},className:u&&d!==`touch`?Zt.className:void 0};return l(`div`,e,{ref:[t,v(e=>{o.set(`listElement`,e)})],props:[p,a]})}),mn=Z.createContext(void 0);function hn(){let e=Z.useContext(mn);if(!e)throw Error(u(57));return e}var gn=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Z.useRef(null),f=Ke({label:o,textRef:d,indexGuessBehavior:Je.GuessFromOrder}),{store:p,itemProps:m,setOpen:h,setValue:v,selectionRef:y,typingRef:b,valuesRef:x,multiple:S,selectedItemTextRef:C,disabled:ee,readOnly:T}=ft(),D=W(p,$.isActive,f.index),te=W(p,$.open),O=W(p,$.isSelected,a),k=W(p,$.isSelectedByFocus,f.index),A=W(p,$.isItemEqualToValue),j=f.index,M=j!==-1,N=Z.useRef(null);g(()=>{if(!M)return;let e=x.current;return e[j]=a,()=>{delete e[j]}},[M,j,a,x]),g(()=>{if(!M)return;let e=p.state.value,t=e;S&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&ht(a,t,A)&&(p.set(`selectedIndex`,j),d.current&&(C.current=d.current))},[M,j,S,A,p,a,C]);let P=Z.useRef(null),ne=Z.useRef(`mouse`),F=Z.useRef(!1),{getButtonProps:re,buttonRef:I}=_({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),ie={disabled:s,selected:O,highlighted:D};function ae(e){if(ee||T)return;let t=p.state.value;if(S){let n=Array.isArray(t)?t:[];v(O?vt(n,a,A):[...n,a],E(w,e))}else v(a,E(w,e)),h(!1,E(w,e))}function oe(){y.current.dragY=0}let L={role:`option`,"aria-selected":O,tabIndex:te&&D?0:-1,onKeyDown(e){P.current=e.key,p.set(`activeIndex`,j),e.key===` `&&b.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&ne.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&xe(e.nativeEvent)&&(n!==void 0||D),i=t&&!r&&!F.current;F.current=!1,!(e.type===`keydown`&&P.current===null)&&(s||e.type===`keydown`&&P.current===` `&&b.current||i||(P.current=null,ae(e.nativeEvent)))},onPointerEnter(e){ne.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){ne.current=e.pointerType,F.current=!0,oe()},onMouseUp(){if(oe(),s||ne.current===`touch`||F.current)return;let e=!y.current.allowSelectedMouseUp&&O,t=!y.current.allowUnselectedMouseUp&&!O;e||t||(F.current=!0,N.current?.click(),F.current=!1)}},R=l(`div`,e,{ref:[I,t,f.ref,N],state:ie,props:[m,L,u,re]}),z=Z.useMemo(()=>({selected:O,index:j,textRef:d,selectedByFocus:k,hasRegistered:M}),[O,j,d,k,M]);return(0,Q.jsx)(mn.Provider,{value:z,children:R})})),_n=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=hn();return n||r?(0,Q.jsx)(vn,{...e,ref:t}):null}),vn=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=hn(),c=Z.useRef(null),{transitionStatus:u,setMounted:d}=M(s),f=l(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:N});return A({open:s,ref:c,onComplete(){s||d(!1)}}),f})),yn=Z.memo(Z.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=hn(),{firstItemTextRef:o,selectedItemTextRef:s}=ft(),{render:c,className:u,style:d,...f}=e;return l(`div`,e,{ref:[Z.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:f})})),bn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:m}=ft(),{side:h,scrollDownArrowRef:_,scrollUpArrowRef:v}=Ut(),y=W(u,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=W(u,$.openMethod),x=y&&b!==`touch`,S=q(),C=c?v:_,{mounted:w,transitionStatus:ee,setMounted:T}=M(x);g(()=>(m.current+=1,u.state.hasScrollArrows||u.set(`hasScrollArrows`,!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&u.state.hasScrollArrows&&u.set(`hasScrollArrows`,!1)}),[u,m]),A({open:x,ref:C,onComplete(){x||T(!1)}});let E=l(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:h,transitionStatus:ee},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;u.set(`activeIndex`,null);function t(){let e=u.state.listElement??d.current;if(!e)return;u.set(`activeIndex`,null),p();let n=Ot(e.scrollHeight,e.clientHeight),r=kt(e.scrollTop,n),i=r===(c?0:n),a=f.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&u.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=xn(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s],stateAttributesMapping:N});return w||o?E:null});function xn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return os){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?kt(l.offsetTop+l.offsetHeight-r+i,a):a}var Sn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`down`})}),Cn=Z.forwardRef(function(e,t){return(0,Q.jsx)(bn,{...e,ref:t,direction:`up`})}),wn=Z.createContext(void 0);function Tn(){let e=Z.useContext(wn);if(e===void 0)throw Error(u(56));return e}var En=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(),c=Z.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),u=l(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(wn.Provider,{value:c,children:u})}),Dn=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Tn(),c=y(a);return g(()=>{s(c)},[c,s]),l(`div`,e,{ref:t,props:[{id:c},o]})}),On=r(),kn=At;function An(e){let t=(0,On.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=d(`scroll-my-1 p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(En,{className:i,"data-slot":`select-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function jn(e){let t=(0,On.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=d(`flex flex-1 text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Rt,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Mn(e){let t=(0,On.c)(15),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,size:o,id:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o===void 0?`default`:o,c;t[6]===r?c=t[7]:(c=d(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,r),t[6]=r,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Q.jsx)(zt,{render:(0,Q.jsx)(p,{className:`pointer-events-none size-3.5 text-muted-foreground`})}),t[8]=l):l=t[8];let u;return t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==s||t[13]!==c?(u=(0,Q.jsxs)(It,{className:c,"data-size":s,"data-slot":`select-trigger`,id:i,...a,children:[n,l]}),t[9]=n,t[10]=i,t[11]=a,t[12]=s,t[13]=c,t[14]=u):u=t[14],u}function Nn(e){let t=(0,On.c)(26),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:r,children:n,side:a,sideOffset:o,align:s,alignOffset:c,alignItemWithTrigger:l,...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,t[8]=l);let u=a===void 0?`bottom`:a,f=o===void 0?4:o,p=s===void 0?`center`:s,m=c===void 0?0:c,h=l===void 0?!0:l,g;t[9]===r?g=t[10]:(g=d(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-closed:animate-out data-open:animate-in relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100`,r),t[9]=r,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Q.jsx)(Ln,{}),t[11]=_):_=t[11];let v;t[12]===n?v=t[13]:(v=(0,Q.jsx)(pn,{children:n}),t[12]=n,t[13]=v);let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(Rn,{}),t[14]=y):y=t[14];let b;t[15]!==i||t[16]!==g||t[17]!==v?(b=(0,Q.jsxs)(an,{className:g,"data-slot":`select-content`,...i,children:[_,v,y]}),t[15]=i,t[16]=g,t[17]=v,t[18]=b):b=t[18];let x;return t[19]!==p||t[20]!==h||t[21]!==m||t[22]!==u||t[23]!==f||t[24]!==b?(x=(0,Q.jsx)(Vt,{children:(0,Q.jsx)(Yt,{align:p,alignItemWithTrigger:h,alignOffset:m,className:`isolate z-50`,side:u,sideOffset:f,children:b})}),t[19]=p,t[20]=h,t[21]=m,t[22]=u,t[23]=f,t[24]=b,t[25]=x):x=t[25],x}function Pn(e){let t=(0,On.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=d(`px-2 py-1.5 text-xs text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Dn,{className:i,"data-slot":`select-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fn(e){let t=(0,On.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=d(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=(0,Q.jsx)(yn,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:n}),t[6]=n,t[7]=o);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(_n,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(f,{className:`pointer-events-none`})}),t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Q.jsxs)(gn,{className:a,"data-slot":`select-item`,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function In(e){let t=(0,On.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=d(`pointer-events-none -mx-1 my-1 h-px bg-border/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(F,{className:i,"data-slot":`select-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ln(e){let t=(0,On.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 i;t[3]===n?i=t[4]:(i=d(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(Ye,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Cn,{className:i,"data-slot":`select-scroll-up-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Rn(e){let t=(0,On.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 i;t[3]===n?i=t[4]:(i=d(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Q.jsx)(p,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Q.jsx)(Sn,{className:i,"data-slot":`select-scroll-down-button`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}export{Pn as a,jn as c,Fn as i,Nn as n,In as o,An as r,Mn as s,kn as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js index b62fef6a1..3237cb8d1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tabs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tabs.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Lt as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{An as T,Dn as E,En as D,On as O,Sn as k,Tn as A,_n as j,_r as M,ar as N,bn as P,cr as F,hn as I,hr as L,ir as ee,kn as R,ln as z,lr as B,mr as V,or as H,pr as U,vn as W,vr as G,wn as K,xn as q,yn as J}from"./index.js";import{i as te,n as ne,r as re}from"./useCompositeListItem.js";var Y=t(n(),1),ie=Y.createContext(void 0);function X(){let e=Y.useContext(ie);if(e===void 0)throw Error(c(64));return e}var ae=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ae.activationDirection]:e})},Q=e(),oe=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=Y.useRef([]),[h,g]=Y.useState(()=>new Map),[y,S]=ee({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=Y.useState(()=>new Map),E=Y.useRef(void 0),D=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[O,k]=Y.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=O,M=j,N=!1;A!==y&&(M=se(A,y,a,w),N=A!=null&&y!=null&&D(y)==null);let P=N?A:y,F=A!==P||j!==M;f(()=>{F&&k({previousValue:P,tabActivationDirection:M})},[P,F,M]);let I=m((e,t)=>{t.activationDirection=se(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),L=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),R=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),z=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),B=Y.useCallback(e=>h.get(e),[h]),V=Y.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),H=Y.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:V,getTabPanelIdByValue:B,onValueChange:I,orientation:a,registerMountedTabPanel:R,setTabMap:T,unregisterMountedTabPanel:z,tabActivationDirection:M,value:y}),[D,V,B,I,a,R,T,z,M,y]),U=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),W=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),G=Y.useRef(!d),K=Y.useRef(r),q=Y.useRef(d),J=Y.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),k(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(w.size===0){J.current&&y!==null&&!E.current?.isConnected&&e(null,v);return}J.current=!0,E.current=w.keys().next().value;let t=U?.disabled,n=U==null&&y!==null;if(!t&&y===K.current&&(q.current=!1),q.current&&t&&y===K.current)return;let r=G.current;if(t||n){let n=W??null;if(y===n){G.current=!1;return}let i=v;r?i=_:t&&(i=b),e(n,i);return}r&&U!=null&&(L(y,_),G.current=!1)},[W,C,L,U,S,w,y]);let te=s(`div`,e,{state:{orientation:a,tabActivationDirection:M},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(ie.Provider,{value:H,children:(0,Q.jsx)(re,{elementsRef:p,children:te})})});function se(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var ce=`data-composite-item-active`;function le(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=ne(e),s=n===o,c=Y.useRef(null),l=a(i,c);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}},compositeRef:l,index:o}}var ue=Y.createContext(void 0);function de(){let e=Y.useContext(ue);if(e===void 0)throw Error(c(65));return e}var fe=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g,tabActivationDirection:_}=X(),{activateOnFocus:v,highlightedTabIndex:b,onTabActivation:T,registerTabResizeObserverElement:E,setHighlightedTabIndex:D,tabsListElement:O}=de(),k=h(o),{compositeProps:A,compositeRef:j,index:M}=le({metadata:Y.useMemo(()=>({disabled:r,id:k,value:a}),[r,k,a])}),N=a===d,P=Y.useRef(!1),F=Y.useRef(null);f(()=>{let e=F.current;if(e)return E(e)},[E]),f(()=>{if(P.current){P.current=!1;return}if(!(N&&M>-1&&b!==M))return;let e=O;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||D(M)},[N,M,b,D,r,O]);let{getButtonProps:I,buttonRef:L}=p({disabled:r,native:c,focusableWhenDisabled:!0}),ee=m(a),R=Y.useRef(!1),z=Y.useRef(!1);function B(e){N||r||T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function V(e){N||(M>-1&&!r&&D(M),!r&&v&&(!R.current||R.current&&z.current)&&T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function H(e){if(N||r)return;R.current=!0;function t(){R.current=!1,z.current=!1}(!e.button||e.button===0)&&(z.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:N,orientation:g,tabActivationDirection:_},ref:[t,L,j,F],props:[A,{role:`tab`,"aria-controls":ee,"aria-selected":N,id:k,onClick:B,onFocus:V,onPointerDown:H,[ce]:N?``:void 0,onKeyDownCapture(){P.current=!0}},u,I],stateAttributesMapping:Z})}),pe=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=F.startingStyle]=`startingStyle`,e[e.endingStyle=F.endingStyle]=`endingStyle`,e}({}),me={...Z,...B},he=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=X(),_=h(),{ref:v,index:y}=ne({metadata:Y.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=N(b),w=!x,T=u(r),E={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},D=Y.useRef(null),O=s(`div`,e,{state:E,ref:[t,v,D],props:[{"aria-labelledby":T,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:I(!b),[pe.index]:y},c],stateAttributesMapping:me});return H({open:b,ref:D,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?O:null}),ge=[];function _e(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:p,modifierKeys:h=ge}=e,[_,v]=Y.useState(0),y=r!=null,b=Y.useRef(null),x=a(b,l),S=Y.useRef([]),C=Y.useRef(!1),w=s??_,D=m((e,t=!1)=>{if((c??v)(e),t){let t=S.current[e];T(b.current,t,o,n)}}),N=m(e=>{if(e.size===0||C.current)return;C.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?t.indexOf(r):-1;if(i!==-1)D(i);else if(G(t,w,p)){let e=U(t,{disabledIndices:p});M(t,e)||D(e)}T(b.current,r,o,n)});f(()=>{if(p==null||s!=null||!C.current)return;let e=S.current;if(G(e,w,p)){let t=U(e,{disabledIndices:p});M(e,t)||D(t)}},[p,s,w,S,D]);let F=m((e,t,n)=>i?i(e,t,n,S):n),I=m(e=>{let a=u?k:W;if(!a.has(e.key)||ve(e,h)||!b.current)return;let s=o===`rtl`,c=s?J:P,l={horizontal:c,vertical:j,both:c}[n],f=s?P:J,m={horizontal:f,vertical:q,both:f}[n],_=g(e.nativeEvent);if(_!=null&&R(_)&&!te(_)){let t=_.selectionStart,n=_.selectionEnd,r=_.value??``;if(t==null||e.shiftKey||t!==n||e.key!==m&&t0)return}let v=w,x=L(S,p),C=V(S,p);r!=null&&(v=r({disabledIndices:p,elementsRef:S,event:e,highlightedIndex:w,loopFocus:t,maxIndex:C,minIndex:x,onLoop:F,orientation:n,rtl:s}));let T={horizontal:[c],vertical:[j],both:[c,j]}[n],N={horizontal:[f],vertical:[q],both:[f,q]}[n],I=y?a:{horizontal:u?A:K,vertical:u?O:E,both:a}[n];u&&(e.key===`Home`?v=x:e.key===`End`&&(v=C)),v===w&&(T.includes(e.key)||N.includes(e.key))&&(t&&v===C&&T.includes(e.key)?(v=x,i&&(v=i(e,w,v,S))):t&&v===x&&N.includes(e.key)?(v=C,i&&(v=i(e,w,v,S))):v=U(S.current,{startingIndex:v,decrement:N.includes(e.key),disabledIndices:p})),v!==w&&!M(S.current,v)&&(d&&e.stopPropagation(),I.has(e.key)&&e.preventDefault(),D(v,!0),queueMicrotask(()=>{S.current[v]?.focus()}))});return{props:{ref:x,onFocus(e){let t=b.current,n=g(e.nativeEvent);!t||n==null||!R(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown:I},highlightedIndex:w,onHighlightedIndexChange:D,elementsRef:S,disabledIndices:p,onMapChange:N,relayKeyboardEvent:I}}function ve(e,t){for(let n of D.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function ye(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,grid:h,loopFocus:g,onLoop:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=_e({grid:h,loopFocus:g,onLoop:_,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:z(),disabledIndices:S,modifierKeys:C}),N=s(T,e,{state:l,ref:a,props:[D,...c,E],stateAttributesMapping:u}),P=Y.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return(0,Q.jsx)(d.Provider,{value:P,children:(0,Q.jsx)(re,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}var be=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:p,tabActivationDirection:h}=X(),[g,_]=Y.useState(0),[v,y]=Y.useState(null),b=Y.useRef(new Set),x=Y.useRef(new Set),S=Y.useRef(null);f(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{b.current.forEach(e=>{e()})});return S.current=e,v&&e.observe(v),x.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),S.current=null}},[v]);let C=m(e=>(b.current.add(e),()=>{b.current.delete(e)})),w=m(e=>(x.current.add(e),S.current?.observe(e),()=>{x.current.delete(e),S.current?.unobserve(e)})),T=m((e,t)=>{e!==d&&l(e,t)}),E={orientation:u,tabActivationDirection:h},D={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},O=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:g,registerIndicatorUpdateListener:C,registerTabResizeObserverElement:w,onTabActivation:T,setHighlightedTabIndex:_,tabsListElement:v}),[n,g,C,w,T,_,v]);return(0,Q.jsx)(ue.Provider,{value:O,children:(0,Q.jsx)(ye,{render:a,className:r,style:s,state:E,refs:[t,y],props:[D,c],stateAttributesMapping:Z,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:_,onMapChange:p,disabledIndices:o})})}),$=r();function xe(e){let t=(0,$.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=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(oe,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,$.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=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(be,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ce(e){let t=(0,$.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=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(fe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,$.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=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Ce as i,Se as n,we as r,xe as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i,c as a,i as o,n as s,u as c}from"./dist.js";import{Lt as l}from"./auth.js";import{a as u,i as d,o as f,r as p,s as m}from"./button.js";import{S as h,b as g,c as _,d as v,f as y,i as b,t as x,v as S,x as C,y as w}from"./createBaseUIEventDetails.js";import{i as T,o as E,r as D,s as O}from"./useValueAsRef.js";import{An as k,Dn as A,En as j,On as M,Sn as N,Tn as P,_n as F,ar as I,bn as L,cr as R,hn as z,ir as B,kn as V,ln as H,lr as U,or as W,rr as ee,vn as G,wn as K,xn as q,yn as J}from"./index.js";import{i as te,n as ne,r as re}from"./useCompositeListItem.js";var Y=t(n(),1),ie=Y.createContext(void 0);function X(){let e=Y.useContext(ie);if(e===void 0)throw Error(c(64));return e}var ae=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),Z={tabActivationDirection:e=>({[ae.activationDirection]:e})},Q=e(),oe=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,p=Y.useRef([]),[h,g]=Y.useState(()=>new Map),[y,S]=ee({controlled:c,default:r,name:`Tabs`,state:`value`}),C=c!==void 0,[w,T]=Y.useState(()=>new Map),E=Y.useRef(void 0),D=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of w.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[w]),[O,k]=Y.useState(()=>({previousValue:y,tabActivationDirection:`none`})),{previousValue:A,tabActivationDirection:j}=O,M=j,N=!1;A!==y&&(M=se(A,y,a,w),N=A!=null&&y!=null&&D(y)==null);let P=N?A:y,F=A!==P||j!==M;f(()=>{F&&k({previousValue:P,tabActivationDirection:M})},[P,F,M]);let I=m((e,t)=>{t.activationDirection=se(y,e,a,w),i?.(e,t),!t.isCanceled&&S(e)}),L=m((e,t)=>{i?.(e,x(t,void 0,void 0,{activationDirection:`none`}))}),R=m((e,t)=>{g(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),z=m((e,t)=>{g(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),B=Y.useCallback(e=>h.get(e),[h]),V=Y.useCallback(e=>{for(let t of w.values())if(e===t?.value)return t?.id},[w]),H=Y.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:V,getTabPanelIdByValue:B,onValueChange:I,orientation:a,registerMountedTabPanel:R,setTabMap:T,unregisterMountedTabPanel:z,tabActivationDirection:M,value:y}),[D,V,B,I,a,R,T,z,M,y]),U=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&e.value===y)return e},[w,y]),W=Y.useMemo(()=>{for(let e of w.values())if(e!=null&&!e.disabled)return e.value},[w]),G=Y.useRef(!d),K=Y.useRef(r),q=Y.useRef(d),J=Y.useRef(!1);f(()=>{if(C)return;function e(e,t){S(e),k(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(w.size===0){J.current&&y!==null&&!E.current?.isConnected&&e(null,v);return}J.current=!0,E.current=w.keys().next().value;let t=U?.disabled,n=U==null&&y!==null;if(!t&&y===K.current&&(q.current=!1),q.current&&t&&y===K.current)return;let r=G.current;if(t||n){let n=W??null;if(y===n){G.current=!1;return}let i=v;r?i=_:t&&(i=b),e(n,i);return}r&&U!=null&&(L(y,_),G.current=!1)},[W,C,L,U,S,w,y]);let te=s(`div`,e,{state:{orientation:a,tabActivationDirection:M},ref:t,props:u,stateAttributesMapping:Z});return(0,Q.jsx)(ie.Provider,{value:H,children:(0,Q.jsx)(re,{elementsRef:p,children:te})})});function se(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.lefto.left)return`right`}else{if(s.topo.top)return`down`}return`none`}var ce=`data-composite-item-active`;function le(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=u(),{ref:i,index:o}=ne(e),s=n===o,c=Y.useRef(null),l=a(i,c);return{compositeProps:{tabIndex:s?0:-1,onFocus(){r(o)},onMouseMove(){let e=c.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!n&&e.focus()}},compositeRef:l,index:o}}var ue=Y.createContext(void 0);function de(){let e=Y.useContext(ue);if(e===void 0)throw Error(c(65));return e}var fe=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:c=!0,style:l,...u}=e,{value:d,getTabPanelIdByValue:m,orientation:g,tabActivationDirection:_}=X(),{activateOnFocus:v,highlightedTabIndex:b,onTabActivation:T,registerTabResizeObserverElement:E,setHighlightedTabIndex:D,tabsListElement:O}=de(),k=h(o),{compositeProps:A,compositeRef:j,index:M}=le({metadata:Y.useMemo(()=>({disabled:r,id:k,value:a}),[r,k,a])}),N=a===d,P=Y.useRef(!1),F=Y.useRef(null);f(()=>{let e=F.current;if(e)return E(e)},[E]),f(()=>{if(P.current){P.current=!1;return}if(!(N&&M>-1&&b!==M))return;let e=O;if(e!=null){let t=S(C(e));if(t&&w(e,t))return}r||D(M)},[N,M,b,D,r,O]);let{getButtonProps:I,buttonRef:L}=p({disabled:r,native:c,focusableWhenDisabled:!0}),R=m(a),z=Y.useRef(!1),B=Y.useRef(!1);function V(e){N||r||T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`}))}function H(e){N||(M>-1&&!r&&D(M),!r&&v&&(!z.current||z.current&&B.current)&&T(a,x(y,e.nativeEvent,void 0,{activationDirection:`none`})))}function U(e){if(N||r)return;z.current=!0;function t(){z.current=!1,B.current=!1}(!e.button||e.button===0)&&(B.current=!0,C(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return s(`button`,e,{state:{disabled:r,active:N,orientation:g,tabActivationDirection:_},ref:[t,L,j,F],props:[A,{role:`tab`,"aria-controls":R,"aria-selected":N,id:k,onClick:V,onFocus:H,onPointerDown:U,[ce]:N?``:void 0,onKeyDownCapture(){P.current=!0}},u,I],stateAttributesMapping:Z})}),pe=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=E.startingStyle]=`startingStyle`,e[e.endingStyle=E.endingStyle]=`endingStyle`,e}({}),me={...Z,...O},he=Y.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...c}=e,{value:l,getTabIdByPanelValue:u,orientation:d,tabActivationDirection:p,registerMountedTabPanel:m,unregisterMountedTabPanel:g}=X(),_=h(),{ref:v,index:y}=ne({metadata:Y.useMemo(()=>({id:_,value:r}),[_,r])}),b=r===l,{mounted:x,transitionStatus:S,setMounted:C}=D(b),w=!x,E=u(r),O={hidden:w,orientation:d,tabActivationDirection:p,transitionStatus:S},k=Y.useRef(null),A=s(`div`,e,{state:O,ref:[t,v,k],props:[{"aria-labelledby":E,hidden:w,id:_,role:`tabpanel`,tabIndex:b?0:-1,inert:z(!b),[pe.index]:y},c],stateAttributesMapping:me});return T({open:b,ref:k,onComplete(){b||C(!1)}}),f(()=>{if(!(w&&!a)&&_!=null)return m(r,_),()=>{g(r,_)}},[w,a,r,_,m,g]),a||x?A:null}),ge=[];function _e(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:p,modifierKeys:h=ge}=e,[_,v]=Y.useState(0),y=r!=null,b=Y.useRef(null),x=a(b,l),S=Y.useRef([]),C=Y.useRef(!1),w=s??_,T=m((e,t=!1)=>{if((c??v)(e),t){let t=S.current[e];k(b.current,t,o,n)}}),E=m(e=>{if(e.size===0||C.current)return;C.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?t.indexOf(r):-1;if(i!==-1)T(i);else if(U(t,w,p)){let e=B(t,{disabledIndices:p});R(t,e)||T(e)}k(b.current,r,o,n)});f(()=>{if(p==null||s!=null||!C.current)return;let e=S.current;if(U(e,w,p)){let t=B(e,{disabledIndices:p});R(e,t)||T(t)}},[p,s,w,S,T]);let D=m((e,t,n)=>i?i(e,t,n,S):n),O=m(e=>{let a=u?N:G;if(!a.has(e.key)||ve(e,h)||!b.current)return;let s=o===`rtl`,c=s?J:L,l={horizontal:c,vertical:F,both:c}[n],f=s?L:J,m={horizontal:f,vertical:q,both:f}[n],_=g(e.nativeEvent);if(_!=null&&V(_)&&!te(_)){let t=_.selectionStart,n=_.selectionEnd,r=_.value??``;if(t==null||e.shiftKey||t!==n||e.key!==m&&t0)return}let v=w,x=W(S,p),C=I(S,p);r!=null&&(v=r({disabledIndices:p,elementsRef:S,event:e,highlightedIndex:w,loopFocus:t,maxIndex:C,minIndex:x,onLoop:D,orientation:n,rtl:s}));let E={horizontal:[c],vertical:[F],both:[c,F]}[n],O={horizontal:[f],vertical:[q],both:[f,q]}[n],k=y?a:{horizontal:u?P:K,vertical:u?M:A,both:a}[n];u&&(e.key===`Home`?v=x:e.key===`End`&&(v=C)),v===w&&(E.includes(e.key)||O.includes(e.key))&&(t&&v===C&&E.includes(e.key)?(v=x,i&&(v=i(e,w,v,S))):t&&v===x&&O.includes(e.key)?(v=C,i&&(v=i(e,w,v,S))):v=B(S.current,{startingIndex:v,decrement:O.includes(e.key),disabledIndices:p})),v!==w&&!R(S.current,v)&&(d&&e.stopPropagation(),k.has(e.key)&&e.preventDefault(),T(v,!0),queueMicrotask(()=>{S.current[v]?.focus()}))});return{props:{ref:x,onFocus(e){let t=b.current,n=g(e.nativeEvent);!t||n==null||!V(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown:O},highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:S,disabledIndices:p,onMapChange:E,relayKeyboardEvent:O}}function ve(e,t){for(let n of j.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function ye(e){let{render:t,className:n,style:r,refs:a=o,props:c=o,state:l=i,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,grid:h,loopFocus:g,onLoop:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=_e({grid:h,loopFocus:g,onLoop:_,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:H(),disabledIndices:S,modifierKeys:C}),N=s(T,e,{state:l,ref:a,props:[D,...c,E],stateAttributesMapping:u}),P=Y.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return(0,Q.jsx)(d.Provider,{value:P,children:(0,Q.jsx)(re,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}var be=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:s,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:p,tabActivationDirection:h}=X(),[g,_]=Y.useState(0),[v,y]=Y.useState(null),b=Y.useRef(new Set),x=Y.useRef(new Set),S=Y.useRef(null);f(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{b.current.forEach(e=>{e()})});return S.current=e,v&&e.observe(v),x.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),S.current=null}},[v]);let C=m(e=>(b.current.add(e),()=>{b.current.delete(e)})),w=m(e=>(x.current.add(e),S.current?.observe(e),()=>{x.current.delete(e),S.current?.unobserve(e)})),T=m((e,t)=>{e!==d&&l(e,t)}),E={orientation:u,tabActivationDirection:h},D={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},O=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:g,registerIndicatorUpdateListener:C,registerTabResizeObserverElement:w,onTabActivation:T,setHighlightedTabIndex:_,tabsListElement:v}),[n,g,C,w,T,_,v]);return(0,Q.jsx)(ue.Provider,{value:O,children:(0,Q.jsx)(ye,{render:a,className:r,style:s,state:E,refs:[t,y],props:[D,c],stateAttributesMapping:Z,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:_,onMapChange:p,disabledIndices:o})})}),$=r();function xe(e){let t=(0,$.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=l(`flex flex-col gap-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(oe,{className:i,"data-slot":`tabs`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,$.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=l(`inline-flex items-center gap-1 border-b`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(be,{className:i,"data-slot":`tabs-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ce(e){let t=(0,$.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=l(`inline-flex items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-selected:border-primary data-selected:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(fe,{className:i,"data-slot":`tabs-tab`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,$.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=l(`focus-visible:outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{className:i,"data-slot":`tabs-panel`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Ce as i,Se as n,we as r,xe as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js b/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js index e03868ea8..cc3f8d1e2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/tags-editor.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./plus.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{nr as f}from"./index.js";import{a as p,r as m,t as h}from"./field.js";var ee=r(),te=t(n(),1),g=e();function ne(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function _(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function v(e){let t=(0,ee.c)(56),{specs:n,attributes:r,onSubmit:a,isPending:l,error:u,isSuccess:v}=e,b;t[0]!==r||t[1]!==n?(b=ne(n,r),t[0]=r,t[1]=n,t[2]=b):b=t[2];let x=b,[S,C]=(0,te.useState)(x),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=(e,t)=>{C(n=>({...n,[e]:t}))},t[3]=w):w=t[3];let T=w,E;if(t[4]!==n||t[5]!==S){E={};for(let e of n)E[e.key]=_(e,S[e.key]??``);t[4]=n,t[5]=S,t[6]=E}else E=t[6];let D=Object.values(E).some(Boolean),O;if(t[7]!==x||t[8]!==n||t[9]!==S){let e;t[11]!==x||t[12]!==S?(e=e=>(S[e.key]??``)!==(x[e.key]??``),t[11]=x,t[12]=S,t[13]=e):e=t[13];let r;t[14]===S?r=t[15]:(r=e=>({key:e.key,value:S[e.key]??``}),t[14]=S,t[15]=r),O=n.filter(e).map(r),t[7]=x,t[8]=n,t[9]=S,t[10]=O}else O=t[10];let k=O,A;t[16]===x?A=t[17]:(A=()=>{C(x)},t[16]=x,t[17]=A);let j=A,M;t[18]!==k||t[19]!==D||t[20]!==a?(M=e=>{e.preventDefault(),!(D||k.length===0)&&a(k)},t[18]=k,t[19]=D,t[20]=a,t[21]=M):M=t[21];let N;t[22]===u?N=t[23]:(N=u&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),t[22]=u,t[23]=N);let P;t[24]!==k.length||t[25]!==v?(P=v&&k.length===0&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),t[24]=k.length,t[25]=v,t[26]=P):P=t[26];let F;if(t[27]!==E||t[28]!==n||t[29]!==S){let e;t[31]!==E||t[32]!==S?(e=e=>{let t=`attr-${e.key}`,n=S[e.key]??``,r=E[e.key];return(0,g.jsxs)(h,{children:[(0,g.jsx)(p,{children:(0,g.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,g.jsx)(`input`,{"aria-label":e.label,checked:n===`true`,id:t,onChange:t=>T(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,g.jsx)(f,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>T(e.key,t.target.value),value:n}),e.type===`text`&&(0,g.jsx)(f,{id:t,onChange:t=>T(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,g.jsxs)(c,{onValueChange:t=>T(e.key,t??``),value:n,children:[(0,g.jsx)(s,{className:`w-full`,id:t,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:e.options.map(y)})]}),e.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,g.jsx)(m,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=E,t[32]=S,t[33]=e):e=t[33],F=n.map(e),t[27]=E,t[28]=n,t[29]=S,t[30]=F}else F=t[30];let I;t[34]===F?I=t[35]:(I=(0,g.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:F}),t[34]=F,t[35]=I);let L=k.length===0?`No changes`:`${k.length} change${k.length===1?``:`s`} pending`,R;t[36]===L?R=t[37]:(R=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:L}),t[36]=L,t[37]=R);let z=l||k.length===0,B;t[38]!==j||t[39]!==z?(B=(0,g.jsx)(d,{disabled:z,onClick:j,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=j,t[39]=z,t[40]=B):B=t[40];let V=l||D||k.length===0,H=l?`Saving…`:`Save changes`,U;t[41]!==V||t[42]!==H?(U=(0,g.jsx)(d,{disabled:V,size:`sm`,type:`submit`,children:H}),t[41]=V,t[42]=H,t[43]=U):U=t[43];let W;t[44]!==R||t[45]!==B||t[46]!==U?(W=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[R,B,U]}),t[44]=R,t[45]=B,t[46]=U,t[47]=W):W=t[47];let G;t[48]!==W||t[49]!==I?(G=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[I,W]}),t[48]=W,t[49]=I,t[50]=G):G=t[50];let K;return t[51]!==G||t[52]!==M||t[53]!==N||t[54]!==P?(K=(0,g.jsxs)(`form`,{onSubmit:M,children:[N,P,G]}),t[51]=G,t[52]=M,t[53]=N,t[54]=P,t[55]=K):K=t[55],K}function y(e){return(0,g.jsx)(a,{value:e,children:e},e)}var b=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],x=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function S(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function C(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function w(e){let t=(0,ee.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,s;t[0]===n?s=t[1]:(s=S(n),t[0]=n,t[1]=s);let c=s,[p,m]=(0,te.useState)(c),[h,ne]=(0,te.useState)(c.length),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(e,t)=>{m(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=_):_=t[2];let v=_,y;t[3]===h?y=t[4]:(y=()=>{m(e=>[...e,{id:h,key:``,value:``}]),ne(D)},t[3]=h,t[4]=y);let b=y,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{m(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let w=x,O;t[6]===c?O=t[7]:(O=()=>{m(c)},t[6]=c,t[7]=O);let k=O,A;t[8]===p?A=t[9]:(A=p.some(E),t[8]=p,t[9]=A);let j=A,M,N,P,F;if(t[10]!==j||t[11]!==p){P=C(p);let e=P.map(T);M=new Set(e).size!==e.length,N=j||M,F=JSON.stringify(P),t[10]=j,t[11]=p,t[12]=M,t[13]=N,t[14]=P,t[15]=F}else M=t[12],N=t[13],P=t[14],F=t[15];let I;t[16]===c?I=t[17]:(I=JSON.stringify(C(c)),t[16]=c,t[17]=I);let L=F!==I,R;t[18]!==L||t[19]!==N||t[20]!==P||t[21]!==r?(R=e=>{e.preventDefault(),!(N||!L)&&r(P)},t[18]=L,t[19]=N,t[20]=P,t[21]=r,t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=a&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=z);let B;t[25]!==L||t[26]!==o?(B=o&&!L&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=L,t[26]=o,t[27]=B):B=t[27];let V;t[28]===p.length?V=t[29]:(V=p.length===0&&(0,g.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=p.length,t[29]=V);let H;if(t[30]!==p){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(f,{"aria-label":`Tag key`,onChange:t=>v(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,g.jsx)(f,{"aria-label":`Tag value`,onChange:t=>v(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,g.jsx)(d,{"aria-label":`Remove tag`,onClick:()=>w(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,g.jsx)(u,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],H=p.map(e),t[30]=p,t[31]=H}else H=t[31];let U;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(l,{className:`size-4`}),t[33]=U):U=t[33];let W;t[34]===b?W=t[35]:(W=(0,g.jsx)(`div`,{children:(0,g.jsxs)(d,{onClick:b,size:`sm`,type:`button`,variant:`secondary`,children:[U,` Add tag`]})}),t[34]=b,t[35]=W);let G;t[36]===j?G=t[37]:(G=j&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=j,t[37]=G);let K;t[38]===M?K=t[39]:(K=M&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=M,t[39]=K);let q;t[40]!==V||t[41]!==H||t[42]!==W||t[43]!==G||t[44]!==K?(q=(0,g.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[V,H,W,G,K]}),t[40]=V,t[41]=H,t[42]=W,t[43]=G,t[44]=K,t[45]=q):q=t[45];let re=L?`Unsaved changes`:`No changes`,J;t[46]===re?J=t[47]:(J=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:re}),t[46]=re,t[47]=J);let ie=i||!L,Y;t[48]!==k||t[49]!==ie?(Y=(0,g.jsx)(d,{disabled:ie,onClick:k,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=k,t[49]=ie,t[50]=Y):Y=t[50];let ae=i||N||!L,oe=i?`Saving…`:`Save changes`,X;t[51]!==ae||t[52]!==oe?(X=(0,g.jsx)(d,{disabled:ae,size:`sm`,type:`submit`,children:oe}),t[51]=ae,t[52]=oe,t[53]=X):X=t[53];let Z;t[54]!==J||t[55]!==Y||t[56]!==X?(Z=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[J,Y,X]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z):Z=t[57];let Q;t[58]!==q||t[59]!==Z?(Q=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[q,Z]}),t[58]=q,t[59]=Z,t[60]=Q):Q=t[60];let $;return t[61]!==z||t[62]!==B||t[63]!==Q||t[64]!==R?($=(0,g.jsxs)(`form`,{onSubmit:R,children:[z,B,Q]}),t[61]=z,t[62]=B,t[63]=Q,t[64]=R,t[65]=$):$=t[65],$}function T(e){return e.key}function E(e){return e.key.trim().length===0&&e.value.length>0}function D(e){return e+1}export{x as i,v as n,b as r,w as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{c as i,i as a,n as o,s,t as c}from"./select.js";import{t as l}from"./plus.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{er as f}from"./index.js";import{a as p,r as m,t as h}from"./field.js";var ee=r(),te=t(n(),1),g=e();function ne(e,t){let n=new Map;for(let e of t)e.Key!==void 0&&n.set(e.Key,e.Value??``);let r={};for(let t of e)r[t.key]=n.get(t.key)??``;return r}function _(e,t){if(e.type===`int`){if(t.trim()===``)return`Value is required`;if(!/^-?\d+$/.test(t))return`Must be a whole number`;let n=Number(t);if(e.min!==void 0&&ne.max)return`Must be at most ${e.max}`}}function v(e){let t=(0,ee.c)(56),{specs:n,attributes:r,onSubmit:a,isPending:l,error:u,isSuccess:v}=e,b;t[0]!==r||t[1]!==n?(b=ne(n,r),t[0]=r,t[1]=n,t[2]=b):b=t[2];let x=b,[S,C]=(0,te.useState)(x),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=(e,t)=>{C(n=>({...n,[e]:t}))},t[3]=w):w=t[3];let T=w,E;if(t[4]!==n||t[5]!==S){E={};for(let e of n)E[e.key]=_(e,S[e.key]??``);t[4]=n,t[5]=S,t[6]=E}else E=t[6];let D=Object.values(E).some(Boolean),O;if(t[7]!==x||t[8]!==n||t[9]!==S){let e;t[11]!==x||t[12]!==S?(e=e=>(S[e.key]??``)!==(x[e.key]??``),t[11]=x,t[12]=S,t[13]=e):e=t[13];let r;t[14]===S?r=t[15]:(r=e=>({key:e.key,value:S[e.key]??``}),t[14]=S,t[15]=r),O=n.filter(e).map(r),t[7]=x,t[8]=n,t[9]=S,t[10]=O}else O=t[10];let k=O,A;t[16]===x?A=t[17]:(A=()=>{C(x)},t[16]=x,t[17]=A);let j=A,M;t[18]!==k||t[19]!==D||t[20]!==a?(M=e=>{e.preventDefault(),!(D||k.length===0)&&a(k)},t[18]=k,t[19]=D,t[20]=a,t[21]=M):M=t[21];let N;t[22]===u?N=t[23]:(N=u&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:u.message||`Failed to save attributes`}),t[22]=u,t[23]=N);let P;t[24]!==k.length||t[25]!==v?(P=v&&k.length===0&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Attributes saved.`}),t[24]=k.length,t[25]=v,t[26]=P):P=t[26];let F;if(t[27]!==E||t[28]!==n||t[29]!==S){let e;t[31]!==E||t[32]!==S?(e=e=>{let t=`attr-${e.key}`,n=S[e.key]??``,r=E[e.key];return(0,g.jsxs)(h,{children:[(0,g.jsx)(p,{children:(0,g.jsx)(`label`,{htmlFor:t,children:e.label})}),e.type===`bool`&&(0,g.jsx)(`input`,{"aria-label":e.label,checked:n===`true`,id:t,onChange:t=>T(e.key,t.target.checked?`true`:`false`),type:`checkbox`}),e.type===`int`&&(0,g.jsx)(f,{"aria-invalid":!!r,id:t,inputMode:`numeric`,onChange:t=>T(e.key,t.target.value),value:n}),e.type===`text`&&(0,g.jsx)(f,{id:t,onChange:t=>T(e.key,t.target.value),placeholder:e.placeholder,value:n}),e.type===`select`&&(0,g.jsxs)(c,{onValueChange:t=>T(e.key,t??``),value:n,children:[(0,g.jsx)(s,{className:`w-full`,id:t,children:(0,g.jsx)(i,{})}),(0,g.jsx)(o,{children:e.options.map(y)})]}),e.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.description}),(0,g.jsx)(m,{errors:[r?{message:r}:void 0]})]},e.key)},t[31]=E,t[32]=S,t[33]=e):e=t[33],F=n.map(e),t[27]=E,t[28]=n,t[29]=S,t[30]=F}else F=t[30];let I;t[34]===F?I=t[35]:(I=(0,g.jsx)(`div`,{className:`grid gap-4 p-4 sm:grid-cols-2`,children:F}),t[34]=F,t[35]=I);let L=k.length===0?`No changes`:`${k.length} change${k.length===1?``:`s`} pending`,R;t[36]===L?R=t[37]:(R=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:L}),t[36]=L,t[37]=R);let z=l||k.length===0,B;t[38]!==j||t[39]!==z?(B=(0,g.jsx)(d,{disabled:z,onClick:j,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[38]=j,t[39]=z,t[40]=B):B=t[40];let V=l||D||k.length===0,H=l?`Saving…`:`Save changes`,U;t[41]!==V||t[42]!==H?(U=(0,g.jsx)(d,{disabled:V,size:`sm`,type:`submit`,children:H}),t[41]=V,t[42]=H,t[43]=U):U=t[43];let W;t[44]!==R||t[45]!==B||t[46]!==U?(W=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[R,B,U]}),t[44]=R,t[45]=B,t[46]=U,t[47]=W):W=t[47];let G;t[48]!==W||t[49]!==I?(G=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[I,W]}),t[48]=W,t[49]=I,t[50]=G):G=t[50];let K;return t[51]!==G||t[52]!==M||t[53]!==N||t[54]!==P?(K=(0,g.jsxs)(`form`,{onSubmit:M,children:[N,P,G]}),t[51]=G,t[52]=M,t[53]=N,t[54]=P,t[55]=K):K=t[55],K}function y(e){return(0,g.jsx)(a,{value:e,children:e},e)}var b=[{key:`deletion_protection.enabled`,label:`Deletion protection`,type:`bool`},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`bool`},{key:`idle_timeout.timeout_seconds`,label:`Idle timeout (s)`,type:`int`,min:1,max:4e3},{key:`client_keep_alive.seconds`,label:`Client keep-alive (s)`,type:`int`,min:60,max:604800},{key:`routing.http2.enabled`,label:`HTTP/2`,type:`bool`},{key:`routing.http.drop_invalid_header_fields.enabled`,label:`Drop invalid header fields`,type:`bool`},{key:`routing.http.preserve_host_header.enabled`,label:`Preserve host header`,type:`bool`},{key:`routing.http.xff_client_port.enabled`,label:`XFF client port`,type:`bool`},{key:`routing.http.xff_header_processing.mode`,label:`XFF header processing`,type:`select`,options:[`append`,`preserve`,`remove`]},{key:`routing.http.desync_mitigation_mode`,label:`Desync mitigation mode`,type:`select`,options:[`defensive`,`strictest`,`monitor`]},{key:`routing.http.x_amzn_tls_version_and_cipher_suite.enabled`,label:`Add TLS version & cipher headers`,type:`bool`},{key:`waf.fail_open.enabled`,label:`WAF fail open`,type:`bool`},{key:`zonal_shift.config.enabled`,label:`Zonal shift`,type:`bool`},{key:`access_logs.s3.enabled`,label:`Access logs: enabled`,type:`bool`},{key:`access_logs.s3.bucket`,label:`Access logs: S3 bucket`,type:`text`},{key:`access_logs.s3.prefix`,label:`Access logs: S3 prefix`,type:`text`},{key:`connection_logs.s3.enabled`,label:`Connection logs: enabled`,type:`bool`},{key:`connection_logs.s3.bucket`,label:`Connection logs: S3 bucket`,type:`text`},{key:`connection_logs.s3.prefix`,label:`Connection logs: S3 prefix`,type:`text`}],x=[{key:`deregistration_delay.timeout_seconds`,label:`Deregistration delay (s)`,type:`int`,min:0,max:3600},{key:`stickiness.enabled`,label:`Stickiness`,type:`bool`},{key:`stickiness.type`,label:`Stickiness type`,type:`select`,options:[`lb_cookie`,`source_ip`]},{key:`stickiness.lb_cookie.duration_seconds`,label:`Stickiness lb_cookie duration (s)`,type:`int`,min:1,max:604800},{key:`load_balancing.cross_zone.enabled`,label:`Cross-zone load balancing`,type:`select`,options:[`true`,`false`,`use_load_balancer_configuration`]},{key:`load_balancing.algorithm.type`,label:`Load balancing algorithm`,type:`select`,options:[`round_robin`,`least_outstanding_requests`]},{key:`slow_start.duration_seconds`,label:`Slow start duration (s)`,type:`int`,min:0,max:900}];function S(e){return e.map((e,t)=>({id:t,key:e.Key??``,value:e.Value??``}))}function C(e){return e.map(e=>({key:e.key.trim(),value:e.value})).filter(e=>e.key.length>0)}function w(e){let t=(0,ee.c)(66),{tags:n,onSubmit:r,isPending:i,error:a,isSuccess:o}=e,s;t[0]===n?s=t[1]:(s=S(n),t[0]=n,t[1]=s);let c=s,[p,m]=(0,te.useState)(c),[h,ne]=(0,te.useState)(c.length),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(e,t)=>{m(n=>n.map(n=>n.id===e?{...n,...t}:n))},t[2]=_):_=t[2];let v=_,y;t[3]===h?y=t[4]:(y=()=>{m(e=>[...e,{id:h,key:``,value:``}]),ne(D)},t[3]=h,t[4]=y);let b=y,x;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{m(t=>t.filter(t=>t.id!==e))},t[5]=x):x=t[5];let w=x,O;t[6]===c?O=t[7]:(O=()=>{m(c)},t[6]=c,t[7]=O);let k=O,A;t[8]===p?A=t[9]:(A=p.some(E),t[8]=p,t[9]=A);let j=A,M,N,P,F;if(t[10]!==j||t[11]!==p){P=C(p);let e=P.map(T);M=new Set(e).size!==e.length,N=j||M,F=JSON.stringify(P),t[10]=j,t[11]=p,t[12]=M,t[13]=N,t[14]=P,t[15]=F}else M=t[12],N=t[13],P=t[14],F=t[15];let I;t[16]===c?I=t[17]:(I=JSON.stringify(C(c)),t[16]=c,t[17]=I);let L=F!==I,R;t[18]!==L||t[19]!==N||t[20]!==P||t[21]!==r?(R=e=>{e.preventDefault(),!(N||!L)&&r(P)},t[18]=L,t[19]=N,t[20]=P,t[21]=r,t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=a&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive`,role:`alert`,children:a.message||`Failed to save tags`}),t[23]=a,t[24]=z);let B;t[25]!==L||t[26]!==o?(B=o&&!L&&(0,g.jsx)(`div`,{className:`mb-4 rounded-md border border-emerald-500 bg-emerald-500/10 p-3 text-sm text-emerald-700 dark:text-emerald-400`,role:`status`,children:`Tags saved.`}),t[25]=L,t[26]=o,t[27]=B):B=t[27];let V;t[28]===p.length?V=t[29]:(V=p.length===0&&(0,g.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No tags.`}),t[28]=p.length,t[29]=V);let H;if(t[30]!==p){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(f,{"aria-label":`Tag key`,onChange:t=>v(e.id,{key:t.target.value}),placeholder:`Key`,value:e.key}),(0,g.jsx)(f,{"aria-label":`Tag value`,onChange:t=>v(e.id,{value:t.target.value}),placeholder:`Value`,value:e.value}),(0,g.jsx)(d,{"aria-label":`Remove tag`,onClick:()=>w(e.id),size:`icon`,type:`button`,variant:`ghost`,children:(0,g.jsx)(u,{className:`size-4`})})]},e.id),t[32]=e):e=t[32],H=p.map(e),t[30]=p,t[31]=H}else H=t[31];let U;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,g.jsx)(l,{className:`size-4`}),t[33]=U):U=t[33];let W;t[34]===b?W=t[35]:(W=(0,g.jsx)(`div`,{children:(0,g.jsxs)(d,{onClick:b,size:`sm`,type:`button`,variant:`secondary`,children:[U,` Add tag`]})}),t[34]=b,t[35]=W);let G;t[36]===j?G=t[37]:(G=j&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Every tag with a value needs a key.`}),t[36]=j,t[37]=G);let K;t[38]===M?K=t[39]:(K=M&&(0,g.jsx)(`p`,{className:`text-xs text-destructive`,children:`Tag keys must be unique.`}),t[38]=M,t[39]=K);let q;t[40]!==V||t[41]!==H||t[42]!==W||t[43]!==G||t[44]!==K?(q=(0,g.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[V,H,W,G,K]}),t[40]=V,t[41]=H,t[42]=W,t[43]=G,t[44]=K,t[45]=q):q=t[45];let re=L?`Unsaved changes`:`No changes`,J;t[46]===re?J=t[47]:(J=(0,g.jsx)(`span`,{className:`mr-auto text-xs text-muted-foreground`,children:re}),t[46]=re,t[47]=J);let ie=i||!L,Y;t[48]!==k||t[49]!==ie?(Y=(0,g.jsx)(d,{disabled:ie,onClick:k,size:`sm`,type:`button`,variant:`secondary`,children:`Reset`}),t[48]=k,t[49]=ie,t[50]=Y):Y=t[50];let ae=i||N||!L,oe=i?`Saving…`:`Save changes`,X;t[51]!==ae||t[52]!==oe?(X=(0,g.jsx)(d,{disabled:ae,size:`sm`,type:`submit`,children:oe}),t[51]=ae,t[52]=oe,t[53]=X):X=t[53];let Z;t[54]!==J||t[55]!==Y||t[56]!==X?(Z=(0,g.jsxs)(`div`,{className:`flex items-center justify-end gap-2 border-t p-4`,children:[J,Y,X]}),t[54]=J,t[55]=Y,t[56]=X,t[57]=Z):Z=t[57];let Q;t[58]!==q||t[59]!==Z?(Q=(0,g.jsxs)(`div`,{className:`rounded-lg border bg-card`,children:[q,Z]}),t[58]=q,t[59]=Z,t[60]=Q):Q=t[60];let $;return t[61]!==z||t[62]!==B||t[63]!==Q||t[64]!==R?($=(0,g.jsxs)(`form`,{onSubmit:R,children:[z,B,Q]}),t[61]=z,t[62]=B,t[63]=Q,t[64]=R,t[65]=$):$=t[65],$}function T(e){return e.key}function E(e){return e.key.trim().length===0&&e.value.length>0}function D(e){return e+1}export{x as i,v as n,b as r,w as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js index 0e29428eb..ebd934741 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/target-group-form.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{Ut as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{nr as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ut as ee}from"./auth.js";import{c as te,i as ne,n as re,s as ie,t as ae}from"./select.js";import{t as oe}from"./plus.js";import{t as se}from"./trash-2.js";import{t as ce}from"./button.js";import{er as n}from"./index.js";import{a as le,n as ue}from"./zod.js";import{a as r,r as i,t as a}from"./field.js";import{n as de,r as fe,t as pe}from"./collapsible.js";var me=t(),o=e();function he(e){let t=(0,me.c)(147),{form:ee,vpcs:ne,allowedProtocols:he}=e,ve;t[0]===he?ve=t[1]:(ve=he===void 0?[`HTTP`,`HTTPS`,`TCP`,`UDP`,`TLS`,`TCP_UDP`]:he,t[0]=he,t[1]=ve);let ye=ve,{control:s,register:c,setValue:l,getValues:u,formState:be}=ee,{errors:d}=be,xe;t[2]===s?xe=t[3]:(xe={control:s,name:`tags`},t[2]=s,t[3]=xe);let Se=le(xe),Ce;t[4]===s?Ce=t[5]:(Ce={control:s,name:`protocol`},t[4]=s,t[5]=Ce);let we=le(Ce),f=we===`HTTP`||we===`HTTPS`,Te;t[6]===l?Te=t[7]:(Te=e=>{e&&(l(`protocol`,e),l(`healthCheck.protocol`,e===`HTTP`||e===`HTTPS`?`HTTP`:`TCP`))},t[6]=l,t[7]=Te);let Ee=Te,De;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-name`,children:`Name`})}),t[8]=De):De=t[8];let Oe=!!d.name,p;t[9]===c?p=t[10]:(p=c(`name`),t[9]=c,t[10]=p);let m;t[11]!==Oe||t[12]!==p?(m=(0,o.jsx)(n,{"aria-invalid":Oe,id:`tg-name`,placeholder:`my-target-group`,...p}),t[11]=Oe,t[12]=p,t[13]=m):m=t[13];let h;t[14]===d.name?h=t[15]:(h=(0,o.jsx)(i,{errors:[d.name]}),t[14]=d.name,t[15]=h);let g;t[16]!==m||t[17]!==h?(g=(0,o.jsxs)(a,{children:[De,m,h]}),t[16]=m,t[17]=h,t[18]=g):g=t[18];let ke;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-protocol`,children:`Protocol`})}),t[19]=ke):ke=t[19];let _;t[20]!==ye||t[21]!==Ee?(_=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:Ee,value:t.value,children:[(0,o.jsx)(ie,{className:`w-full`,id:`tg-protocol`,children:(0,o.jsx)(te,{})}),(0,o.jsx)(re,{children:ye.map(_e)})]})},t[20]=ye,t[21]=Ee,t[22]=_):_=t[22];let v;t[23]!==s||t[24]!==_?(v=(0,o.jsxs)(a,{children:[ke,(0,o.jsx)(ue,{control:s,name:`protocol`,render:_})]}),t[23]=s,t[24]=_,t[25]=v):v=t[25];let Ae;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-port`,children:`Port`})}),t[26]=Ae):Ae=t[26];let je=!!d.port,y;t[27]===c?y=t[28]:(y=c(`port`,{valueAsNumber:!0}),t[27]=c,t[28]=y);let b;t[29]!==je||t[30]!==y?(b=(0,o.jsx)(n,{"aria-invalid":je,id:`tg-port`,inputMode:`numeric`,placeholder:`80`,type:`number`,...y}),t[29]=je,t[30]=y,t[31]=b):b=t[31];let x;t[32]===d.port?x=t[33]:(x=(0,o.jsx)(i,{errors:[d.port]}),t[32]=d.port,t[33]=x);let S;t[34]!==b||t[35]!==x?(S=(0,o.jsxs)(a,{children:[Ae,b,x]}),t[34]=b,t[35]=x,t[36]=S):S=t[36];let Me;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`tg-vpc`,children:`VPC`})}),t[37]=Me):Me=t[37];let C;t[38]!==d.vpcId||t[39]!==ne?(C=e=>{let{field:t}=e;return(0,o.jsxs)(ae,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,o.jsx)(ie,{"aria-invalid":!!d.vpcId,className:`w-full`,id:`tg-vpc`,children:(0,o.jsx)(te,{placeholder:`Select VPC`})}),(0,o.jsx)(re,{children:ne.map(ge)})]})},t[38]=d.vpcId,t[39]=ne,t[40]=C):C=t[40];let w;t[41]!==s||t[42]!==C?(w=(0,o.jsx)(ue,{control:s,name:`vpcId`,render:C}),t[41]=s,t[42]=C,t[43]=w):w=t[43];let T;t[44]===d.vpcId?T=t[45]:(T=(0,o.jsx)(i,{errors:[d.vpcId]}),t[44]=d.vpcId,t[45]=T);let E;t[46]!==w||t[47]!==T?(E=(0,o.jsxs)(a,{children:[Me,w,T]}),t[46]=w,t[47]=T,t[48]=E):E=t[48];let Ne;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,o.jsx)(fe,{className:`text-left text-sm font-medium text-muted-foreground hover:text-foreground`,render:(0,o.jsx)(`button`,{"aria-label":`Health check settings`,type:`button`}),children:`Health check settings`}),t[49]=Ne):Ne=t[49];let D;t[50]!==d.healthCheck?.path||t[51]!==f||t[52]!==c?(D=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-path`,children:`Path`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.path,id:`hc-path`,placeholder:`/`,...c(`healthCheck.path`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.path]})]}),t[50]=d.healthCheck?.path,t[51]=f,t[52]=c,t[53]=D):D=t[53];let Pe;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-port`,children:`Port`})}),t[54]=Pe):Pe=t[54];let Fe=!!d.healthCheck?.port,O;t[55]===c?O=t[56]:(O=c(`healthCheck.port`),t[55]=c,t[56]=O);let k;t[57]!==Fe||t[58]!==O?(k=(0,o.jsx)(n,{"aria-invalid":Fe,id:`hc-port`,placeholder:`traffic-port or numeric`,...O}),t[57]=Fe,t[58]=O,t[59]=k):k=t[59];let Ie=d.healthCheck?.port,A;t[60]===Ie?A=t[61]:(A=(0,o.jsx)(i,{errors:[Ie]}),t[60]=Ie,t[61]=A);let j;t[62]!==k||t[63]!==A?(j=(0,o.jsxs)(a,{children:[Pe,k,A]}),t[62]=k,t[63]=A,t[64]=j):j=t[64];let Le;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-interval`,children:`Interval (seconds)`})}),t[65]=Le):Le=t[65];let Re=!!d.healthCheck?.intervalSeconds,M;t[66]===c?M=t[67]:(M=c(`healthCheck.intervalSeconds`,{valueAsNumber:!0}),t[66]=c,t[67]=M);let N;t[68]!==Re||t[69]!==M?(N=(0,o.jsx)(n,{"aria-invalid":Re,id:`hc-interval`,inputMode:`numeric`,type:`number`,...M}),t[68]=Re,t[69]=M,t[70]=N):N=t[70];let ze=d.healthCheck?.intervalSeconds,P;t[71]===ze?P=t[72]:(P=(0,o.jsx)(i,{errors:[ze]}),t[71]=ze,t[72]=P);let F;t[73]!==N||t[74]!==P?(F=(0,o.jsxs)(a,{children:[Le,N,P]}),t[73]=N,t[74]=P,t[75]=F):F=t[75];let Be;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-timeout`,children:`Timeout (seconds)`})}),t[76]=Be):Be=t[76];let Ve=!!d.healthCheck?.timeoutSeconds,I;t[77]===c?I=t[78]:(I=c(`healthCheck.timeoutSeconds`,{valueAsNumber:!0}),t[77]=c,t[78]=I);let L;t[79]!==Ve||t[80]!==I?(L=(0,o.jsx)(n,{"aria-invalid":Ve,id:`hc-timeout`,inputMode:`numeric`,type:`number`,...I}),t[79]=Ve,t[80]=I,t[81]=L):L=t[81];let He=d.healthCheck?.timeoutSeconds,R;t[82]===He?R=t[83]:(R=(0,o.jsx)(i,{errors:[He]}),t[82]=He,t[83]=R);let z;t[84]!==L||t[85]!==R?(z=(0,o.jsxs)(a,{children:[Be,L,R]}),t[84]=L,t[85]=R,t[86]=z):z=t[86];let Ue;t[87]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-healthy`,children:`Healthy threshold`})}),t[87]=Ue):Ue=t[87];let We=!!d.healthCheck?.healthyThresholdCount,B;t[88]===c?B=t[89]:(B=c(`healthCheck.healthyThresholdCount`,{valueAsNumber:!0}),t[88]=c,t[89]=B);let V;t[90]!==We||t[91]!==B?(V=(0,o.jsx)(n,{"aria-invalid":We,id:`hc-healthy`,inputMode:`numeric`,type:`number`,...B}),t[90]=We,t[91]=B,t[92]=V):V=t[92];let Ge=d.healthCheck?.healthyThresholdCount,H;t[93]===Ge?H=t[94]:(H=(0,o.jsx)(i,{errors:[Ge]}),t[93]=Ge,t[94]=H);let U;t[95]!==V||t[96]!==H?(U=(0,o.jsxs)(a,{children:[Ue,V,H]}),t[95]=V,t[96]=H,t[97]=U):U=t[97];let Ke;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-unhealthy`,children:`Unhealthy threshold`})}),t[98]=Ke):Ke=t[98];let qe=!!d.healthCheck?.unhealthyThresholdCount,W;t[99]===c?W=t[100]:(W=c(`healthCheck.unhealthyThresholdCount`,{valueAsNumber:!0}),t[99]=c,t[100]=W);let G;t[101]!==qe||t[102]!==W?(G=(0,o.jsx)(n,{"aria-invalid":qe,id:`hc-unhealthy`,inputMode:`numeric`,type:`number`,...W}),t[101]=qe,t[102]=W,t[103]=G):G=t[103];let Je=d.healthCheck?.unhealthyThresholdCount,K;t[104]===Je?K=t[105]:(K=(0,o.jsx)(i,{errors:[Je]}),t[104]=Je,t[105]=K);let q;t[106]!==G||t[107]!==K?(q=(0,o.jsxs)(a,{children:[Ke,G,K]}),t[106]=G,t[107]=K,t[108]=q):q=t[108];let J;t[109]!==d.healthCheck?.matcher||t[110]!==f||t[111]!==c?(J=f&&(0,o.jsxs)(a,{children:[(0,o.jsx)(r,{children:(0,o.jsx)(`label`,{htmlFor:`hc-matcher`,children:`Matcher (HTTP codes)`})}),(0,o.jsx)(n,{"aria-invalid":!!d.healthCheck?.matcher,id:`hc-matcher`,placeholder:`200 or 200-299 or 200,201`,...c(`healthCheck.matcher`)}),(0,o.jsx)(i,{errors:[d.healthCheck?.matcher]})]}),t[109]=d.healthCheck?.matcher,t[110]=f,t[111]=c,t[112]=J):J=t[112];let Y;t[113]!==D||t[114]!==j||t[115]!==F||t[116]!==z||t[117]!==U||t[118]!==q||t[119]!==J?(Y=(0,o.jsxs)(pe,{children:[Ne,(0,o.jsxs)(de,{className:`mt-3 space-y-4 border-l-2 border-muted pl-4`,children:[D,j,F,z,U,q,J]})]}),t[113]=D,t[114]=j,t[115]=F,t[116]=z,t[117]=U,t[118]=q,t[119]=J,t[120]=Y):Y=t[120];let Ye;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,o.jsx)(r,{children:`Tags`}),t[121]=Ye):Ye=t[121];let X;if(t[122]!==u||t[123]!==c||t[124]!==l||t[125]!==Se){let e;t[127]!==u||t[128]!==c||t[129]!==l?(e=(e,t)=>(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(n,{placeholder:`Key`,...c(`tags.${t}.key`)}),(0,o.jsx)(n,{placeholder:`Value`,...c(`tags.${t}.value`)}),(0,o.jsx)(ce,{onClick:()=>l(`tags`,u(`tags`).filter((e,ee)=>ee!==t)),size:`icon`,type:`button`,variant:`ghost`,children:(0,o.jsx)(se,{className:`size-3.5`})})]},t),t[127]=u,t[128]=c,t[129]=l,t[130]=e):e=t[130],X=Se.map(e),t[122]=u,t[123]=c,t[124]=l,t[125]=Se,t[126]=X}else X=t[126];let Z;t[131]!==u||t[132]!==l?(Z=()=>l(`tags`,[...u(`tags`),{key:``,value:``}]),t[131]=u,t[132]=l,t[133]=Z):Z=t[133];let Xe;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,o.jsx)(oe,{className:`size-3.5`}),t[134]=Xe):Xe=t[134];let Q;t[135]===Z?Q=t[136]:(Q=(0,o.jsxs)(ce,{onClick:Z,size:`sm`,type:`button`,variant:`outline`,children:[Xe,`Add tag`]}),t[135]=Z,t[136]=Q);let $;t[137]!==X||t[138]!==Q?($=(0,o.jsxs)(a,{children:[Ye,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[X,Q]})]}),t[137]=X,t[138]=Q,t[139]=$):$=t[139];let Ze;return t[140]!==g||t[141]!==v||t[142]!==S||t[143]!==E||t[144]!==Y||t[145]!==$?(Ze=(0,o.jsxs)(o.Fragment,{children:[g,v,S,E,Y,$]}),t[140]=g,t[141]=v,t[142]=S,t[143]=E,t[144]=Y,t[145]=$,t[146]=Ze):Ze=t[146],Ze}function ge(e){let t=ee(e.Tags);return(0,o.jsx)(ne,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)}function _e(e){return(0,o.jsx)(ne,{value:e,children:e},e)}export{he as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js index 6742e0f32..fa96009b2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/trash-2.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js index bf557f5b0..31edcdaa3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/triangle-alert.js @@ -1 +1 @@ -import{Yr as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file +import{Br as e}from"./index.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index f6bb4cc43..660309b5c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{h as i,l as a,ni as o,x as s}from"./awsClient.js";import{Bt as c,Nt as l,St as u,Vt as d,ut as f}from"./auth.js";import{t as p}from"./download.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{M as g}from"./tslib.es6.js";import{a as _,i as v,n as y}from"./s3.js";import{Yr as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./delete-confirmation-dialog.js";var C=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=b(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=b(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(l.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{g(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends u.classBuilder().ep({...s,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[f(n,e.getEndpointParameterInstructions()),_(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),v(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(i).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,j.jsxs)(o,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,o]=(0,N.useState)(!1),[s,l]=(0,N.useState)(null),u=y();async function f(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await a().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function h(){try{await u.mutateAsync({bucket:t,key:r})}finally{o(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(x,{error:u.error,msg:`Failed to delete object`}),s&&(0,j.jsx)(x,{error:s,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,c(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:f,type:`button`,children:(0,j.jsx)(p,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>o(!0),type:`button`,children:(0,j.jsx)(m,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:u.isPending,onConfirm:h,onOpenChange:o,open:i,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(h,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{h as i,l as a,ni as o,x as s}from"./awsClient.js";import{Bt as c,L as l,Nt as u,St as d,Vt as f}from"./auth.js";import{t as p}from"./download.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{M as g}from"./tslib.es6.js";import{a as _,i as v,n as y}from"./s3.js";import{Br as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./delete-confirmation-dialog.js";var C=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=b(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=b(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(u.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{g(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends d.classBuilder().ep({...s,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions()),_(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),v(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(i).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,j.jsxs)(o,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,o]=(0,N.useState)(!1),[s,l]=(0,N.useState)(null),u=y();async function d(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await a().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function h(){try{await u.mutateAsync({bucket:t,key:r})}finally{o(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(x,{error:u.error,msg:`Failed to delete object`}),s&&(0,j.jsx)(x,{error:s,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,c(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:f(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:d,type:`button`,children:(0,j.jsx)(p,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>o(!0),type:`button`,children:(0,j.jsx)(m,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:u.isPending,onConfirm:h,onOpenChange:o,open:i,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(h,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js index 0c346877c..a0f9b4269 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useBaseQuery.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{$r as r,ci as i,di as a,fi as o,gi as s,hi as c,ii as l,li as u,mi as d,ni as f,oi as p,pi as m,ri as h,si as g,ti as _,ui as v}from"./index.js";var y=class extends s{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=h(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof u(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!a(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||u(this.options.enabled,this.#t)!==u(t.enabled,this.#t)||v(this.options.staleTime,this.#t)!==v(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||u(this.options.enabled,this.#t)!==u(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(g)),t}#g(){this.#b();let e=v(this.options.staleTime,this.#t);if(l.isServer()||this.#r.isStale||!p(e))return;let t=m(this.#r.dataUpdatedAt,e)+1;this.#d=d.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(l.isServer()||u(this.options.enabled,this.#t)===!1||!p(this.#p)||this.#p===0)&&(this.#f=d.setInterval(()=>{(this.options.refetchIntervalInBackground||c.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(d.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(d.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,a=this.#r,o=this.#i,s=this.#a,c=e===n?this.#n:e.state,{state:l}=e,d={...l},f=!1,p;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(d={...d,..._(l.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:m,errorUpdatedAt:g,status:v}=d;p=d.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&v===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(v=`success`,p=i(a?.data,e,t),f=!0)}if(t.select&&p!==void 0&&!y)if(a&&p===o?.data&&t.select===this.#c)p=this.#l;else try{this.#c=t.select,p=t.select(p),p=i(a?.data,p,t),this.#l=p,this.#s=null}catch(e){this.#s=e}this.#s&&(m=this.#s,p=this.#l,g=Date.now(),v=`error`);let b=d.fetchStatus===`fetching`,S=v===`pending`,T=v===`error`,E=S&&b,D=p!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:S,isSuccess:v===`success`,isError:T,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:u(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},a=()=>{i(this.#o=O.promise=h())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||O.data!==o.value)&&a();break;case`rejected`:(!r||O.error!==o.reason)&&a();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!a(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){f.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return u(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&u(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(u(t.enabled,e)!==!1&&v(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||u(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return u(t.enabled,e)!==!1&&e.isStaleByTime(v(t.staleTime,e))}function T(e,t){return!a(e.getCurrentResult(),t)}e();var E=t(n(),1),D=E.createContext(!1),O=()=>E.useContext(D);D.Provider;function k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A=E.createContext(k()),j=()=>E.useContext(A),M=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?o(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},N=e=>{E.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||o(n,[e.error,r])),F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let i=O(),a=j(),o=r(n),s=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(s);let c=o.getQueryCache().get(s.queryHash),u=e.subscribed!==!1;s._optimisticResults=i?`isRestoring`:u?`optimistic`:void 0,I(s),M(s,a,c),N(a);let d=!o.getQueryCache().get(s.queryHash),[p]=E.useState(()=>new t(o,s)),m=p.getOptimisticResult(s),h=!i&&u;if(E.useSyncExternalStore(E.useCallback(e=>{let t=h?p.subscribe(f.batchCalls(e)):g;return p.updateResult(),t},[p,h]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(s)},[s,p]),R(s,m))throw z(s,p,a);if(P({result:m,errorResetBoundary:a,throwOnError:s.throwOnError,query:c,suspense:s.suspense}))throw m.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(s,m),s.experimental_prefetchInRender&&!l.isServer()&&L(m,i)&&(d?z(s,p,a):c?.promise)?.catch(g).finally(()=>{p.updateResult()}),s.notifyOnChangeProps?m:p.trackResult(m)}export{F as n,y as r,B as t}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{$r as r,Jr as i,Kr as a,Qr as o,Ur as s,Wr as c,Xr as l,Yr as u,ai as d,ei as f,ii as p,ni as m,oi as h,qr as g,ri as _,ti as v}from"./index.js";var y=class extends i{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=a(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),x(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof v(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!_(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&C(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||v(this.options.enabled,this.#t)!==v(t.enabled,this.#t)||m(this.options.staleTime,this.#t)!==m(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||v(this.options.enabled,this.#t)!==v(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return T(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(r)),t}#g(){this.#b();let e=m(this.options.staleTime,this.#t);if(l.isServer()||this.#r.isStale||!o(e))return;let t=d(this.#r.dataUpdatedAt,e)+1;this.#d=h.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(l.isServer()||v(this.options.enabled,this.#t)===!1||!o(this.#p)||this.#p===0)&&(this.#f=h.setInterval(()=>{(this.options.refetchIntervalInBackground||g.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(h.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(h.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,o=this.#i,s=this.#a,l=e===n?this.#n:e.state,{state:u}=e,d={...u},p=!1,m;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&x(e,t),o=i&&C(e,n,t,r);(a||o)&&(d={...d,...c(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:h,errorUpdatedAt:g,status:_}=d;m=d.data;let y=!1;if(t.placeholderData!==void 0&&m===void 0&&_===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=i.data,y=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(_=`success`,m=f(i?.data,e,t),p=!0)}if(t.select&&m!==void 0&&!y)if(i&&m===o?.data&&t.select===this.#c)m=this.#l;else try{this.#c=t.select,m=t.select(m),m=f(i?.data,m,t),this.#l=m,this.#s=null}catch(e){this.#s=e}this.#s&&(h=this.#s,m=this.#l,g=Date.now(),_=`error`);let b=d.fetchStatus===`fetching`,S=_===`pending`,T=_===`error`,E=S&&b,D=m!==void 0,O={status:_,fetchStatus:d.fetchStatus,isPending:S,isSuccess:_===`success`,isError:T,isInitialLoading:E,isLoading:E,data:m,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!S,isLoadingError:T&&!D,isPaused:d.fetchStatus===`paused`,isPlaceholderData:p,isRefetchError:T&&D,isStale:w(e,t),refetch:this.refetch,promise:this.#o,isEnabled:v(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=O.data!==void 0,r=O.status===`error`&&!t,i=e=>{r?e.reject(O.error):t&&e.resolve(O.data)},o=()=>{i(this.#o=O.promise=a())},s=this.#o;switch(s.status){case`pending`:e.queryHash===n.queryHash&&i(s);break;case`fulfilled`:(r||O.data!==s.value)&&o();break;case`rejected`:(!r||O.error!==s.reason)&&o();break}}return O}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!_(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){u.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function b(e,t){return v(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&v(t.retryOnMount,e)===!1)}function x(e,t){return b(e,t)||e.state.data!==void 0&&S(e,t,t.refetchOnMount)}function S(e,t,n){if(v(t.enabled,e)!==!1&&m(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&w(e,t)}return!1}function C(e,t,n,r){return(e!==t||v(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&w(e,n)}function w(e,t){return v(t.enabled,e)!==!1&&e.isStaleByTime(m(t.staleTime,e))}function T(e,t){return!_(e.getCurrentResult(),t)}var E=t(n(),1);e();function D(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var O=E.createContext(D()),k=()=>E.useContext(O),A=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?p(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},j=e=>{E.useEffect(()=>{e.clearReset()},[e])},M=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||p(n,[e.error,r])),N=E.createContext(!1),P=()=>E.useContext(N);N.Provider;var F=(e,t)=>t.state.data===void 0,I=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},L=(e,t)=>e.isLoading&&e.isFetching&&!t,R=(e,t)=>e?.suspense&&t.isPending,z=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function B(e,t,n){let i=P(),a=k(),o=s(n),c=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let d=o.getQueryCache().get(c.queryHash),f=e.subscribed!==!1;c._optimisticResults=i?`isRestoring`:f?`optimistic`:void 0,I(c),A(c,a,d),j(a);let p=!o.getQueryCache().get(c.queryHash),[m]=E.useState(()=>new t(o,c)),h=m.getOptimisticResult(c),g=!i&&f;if(E.useSyncExternalStore(E.useCallback(e=>{let t=g?m.subscribe(u.batchCalls(e)):r;return m.updateResult(),t},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),E.useEffect(()=>{m.setOptions(c)},[c,m]),R(c,h))throw z(c,m,a);if(M({result:h,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw h.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!l.isServer()&&L(h,i)&&(p?z(c,m,a):d?.promise)?.catch(r).finally(()=>{m.updateResult()}),c.notifyOnChangeProps?h:m.trackResult(h)}export{F as n,y as r,B as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js b/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js index 9dbc10deb..14e18ead5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useMutation.js @@ -1 +1 @@ -import{o as e,r as t}from"./compiler-runtime.js";import{$r as n,ai as r,di as i,ei as a,fi as o,gi as s,ni as c,si as l}from"./index.js";var u=class extends s{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),i(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&r(t.mutationKey)!==r(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??a();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){c.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(t(),1);function f(e,t){let r=n(t),[i]=d.useState(()=>new u(r,e));d.useEffect(()=>{i.setOptions(e)},[i,e]);let a=d.useSyncExternalStore(d.useCallback(e=>i.subscribe(c.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=d.useCallback((e,t)=>{i.mutate(e,t).catch(l)},[i]);if(a.error&&o(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}export{f as t}; \ No newline at end of file +import{o as e,r as t}from"./compiler-runtime.js";import{$r as n,Gr as r,Jr as i,Ur as a,Yr as o,Zr as s,ii as c,ri as l}from"./index.js";var u=class extends i{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),l(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&s(t.mutationKey)!==s(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??r();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){o.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(t(),1);function f(e,t){let r=a(t),[i]=d.useState(()=>new u(r,e));d.useEffect(()=>{i.setOptions(e)},[i,e]);let s=d.useSyncExternalStore(d.useCallback(e=>i.subscribe(o.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=d.useCallback((e,t)=>{i.mutate(e,t).catch(n)},[i]);if(s.error&&c(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}export{f as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js b/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js new file mode 100644 index 000000000..27336d7eb --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/useNavigate.js @@ -0,0 +1 @@ +import{o as e,r as t}from"./compiler-runtime.js";import{W as n}from"./useStore.js";var r=e(t(),1);function i(e){let t=n();return r.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}export{i as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useStore.js b/spinifex/services/spinifexui/frontend/dist/assets/useStore.js index 15071f9d2..2982e0138 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/useStore.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/useStore.js @@ -1 +1 @@ -import{i as e,n as t,o as n,r}from"./compiler-runtime.js";var i=n(r(),1),a=i.use,o=typeof window<`u`?i.useLayoutEffect:i.useEffect;function s(e){let t=i.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function c(e,t,n={},r={}){i.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function l(e){let t=i.useRef(null);return i.useImperativeHandle(e,()=>t.current,[]),t}function u(e){return e[e.length-1]}function d(e){return typeof e==`function`}function f(e,t){return d(e)?e(t):e}var p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;function h(e){for(let t in e)if(p.call(e,t))return!0;return!1}var g=()=>Object.create(null),_=(e,t)=>v(e,t,g);function v(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=S(e)&&S(i);if(!a&&!(b(e)&&b(i)))return i;let o=a?e:y(e);if(!o)return i;let s=a?i:y(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!C(e[o],t[o],n)))return!1;return i===a}return!1}function ee(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function te(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function ne(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function re(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function w(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return re(t)}var T=[`http:`,`https:`,`mailto:`,`tel:`];function ie(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var ae={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},oe=/[&><\u2028\u2029]/g;function se(e){return e.replace(oe,e=>ae[e])}function ce(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=w(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=w(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function le(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ue(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var O=4,k=5;function de(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function A(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=de(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=F(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=F(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=F(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=P(n.fullPath??n.from);e.kind=k,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=P(n.fullPath??n.from);e.kind=O,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)j(e,t,r,s,i,a,o)}function M(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function N(e){if(e.pathless)for(let t of e.pathless)N(t);if(e.static)for(let t of e.static.values())N(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())N(t);if(e.dynamic?.length){e.dynamic.sort(M);for(let t of e.dynamic)N(t)}if(e.optional?.length){e.optional.sort(M);for(let t of e.optional)N(t)}if(e.wildcard?.length){e.wildcard.sort(M);for(let t of e.wildcard)N(t)}}function P(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function F(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function fe(e,t){let n=P(`/`),r=new Uint16Array(6);for(let t of e)j(!1,r,t,1,n,0);N(n),t.masksTree=n,t.flatCache=D(1e3)}function pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=I(e,t.masksTree);return t.flatCache.set(e,r),r}function me(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=P(`/`),j(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),I(r,o,n)}function he(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=I(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=R(a.route)),t.matchCache.set(r,a),a}function ge(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function _e(e,t=!1,n){let r=P(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return j(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&E(),a[e.id]=e,s!==0&&e.path){let t=ge(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),N(r),{processedTree:{segmentTree:r,singleCache:D(1e3),matchCache:D(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function I(e,t,n=!1){let r=e.split(`/`),i=ye(e,r,t,n);if(!i)return null;let[a]=L(e,r,i);return{route:i.node.route,rawParams:a}}function L(e,t,n){let r=ve(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+z(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+z(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+z(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+z(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}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===O)>(e.node.kind===O)||t.node.kind===O==(e.node.kind===O)&&t.depth>e.depth))):!0}function be(e){return U(e.filter(e=>e!==void 0).join(`/`))}function U(e){return e.replace(/\/{2,}/g,`/`)}function W(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function G(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function xe(e){return G(W(e))}function K(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Se(e,t,n){return K(e,n)===K(t,n)}function Ce({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&u(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(u(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=U(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function we(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function q(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>J(e,n)).join(`/`):J(r,n):r}function Te({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s!0,()=>!1)}function De(){return()=>{}}var Z=i.createContext(null);function Oe(e){return i.useContext(Z)}var ke=e((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Q=e(((e,t)=>{t.exports=ke()})),Ae=e((e=>{var t=r(),n=Q();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),$=e(((e,t)=>{t.exports=Ae()})),je=$();function Me(e,t){return e===t}function Ne(e,t,n=Me){let r=(0,i.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,i.useCallback)(()=>e?.get(),[e]);return(0,je.useSyncExternalStoreWithSelector)(r,a,a,t,n)}export{C as A,v as B,_e as C,ue as D,T as E,ie as F,s as G,l as H,te as I,ne as L,se as M,f as N,ee as O,h as P,u as R,fe as S,E as T,c as U,a as V,o as W,G as _,Z as a,he as b,U as c,Te as d,be as f,W as g,xe as h,Oe as i,le as j,ce as k,we as l,Ce as m,$ as n,Ee as o,K as p,Q as r,X as s,Ne as t,Se as u,R as v,D as w,me as x,pe as y,_ as z}; \ No newline at end of file +import{i as e,n as t,o as n,r}from"./compiler-runtime.js";var i=n(r(),1),a=i.createContext(null);function o(e){return i.useContext(a)}var s=i.use,c=typeof window<`u`?i.useLayoutEffect:i.useEffect;function l(e){let t=i.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function u(e,t,n={},r={}){i.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function d(e){let t=i.useRef(null);return i.useImperativeHandle(e,()=>t.current,[]),t}var f=t();function p({children:e,fallback:t=null}){return m()?(0,f.jsx)(i.Fragment,{children:e}):(0,f.jsx)(i.Fragment,{children:t})}function m(){return i.useSyncExternalStore(h,()=>!0,()=>!1)}function h(){return()=>{}}function g(e){return e[e.length-1]}function _(e){return typeof e==`function`}function v(e,t){return _(e)?e(t):e}var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;function ee(e){for(let t in e)if(y.call(e,t))return!0;return!1}var te=()=>Object.create(null),ne=(e,t)=>x(e,t,te);function x(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=T(e)&&T(i);if(!a&&!(C(e)&&C(i)))return i;let o=a?e:S(e);if(!o)return i;let s=a?i:S(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!E(e[o],t[o],n)))return!1;return i===a}return!1}function re(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ie(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function ae(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function oe(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function D(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return oe(t)}var se=[`http:`,`https:`,`mailto:`,`tel:`];function ce(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var le={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ue=/[&><\u2028\u2029]/g;function de(e){return e.replace(ue,e=>le[e])}function fe(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=D(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=D(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function pe(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function me(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var A=4,j=5;function he(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function M(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=he(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=L(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=L(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=L(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=I(n.fullPath??n.from);e.kind=j,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=I(n.fullPath??n.from);e.kind=A,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)N(e,t,r,s,i,a,o)}function P(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function F(e){if(e.pathless)for(let t of e.pathless)F(t);if(e.static)for(let t of e.static.values())F(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())F(t);if(e.dynamic?.length){e.dynamic.sort(P);for(let t of e.dynamic)F(t)}if(e.optional?.length){e.optional.sort(P);for(let t of e.optional)F(t)}if(e.wildcard?.length){e.wildcard.sort(P);for(let t of e.wildcard)F(t)}}function I(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function L(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function R(e,t){let n=I(`/`),r=new Uint16Array(6);for(let t of e)N(!1,r,t,1,n,0);F(n),t.masksTree=n,t.flatCache=k(1e3)}function ge(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=B(e,t.masksTree);return t.flatCache.set(e,r),r}function _e(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=I(`/`),N(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),B(r,o,n)}function ve(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=B(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=H(a.route)),t.matchCache.set(r,a),a}function ye(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function z(e,t=!1,n){let r=I(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return N(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&O(),a[e.id]=e,s!==0&&e.path){let t=ye(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),F(r),{processedTree:{segmentTree:r,singleCache:k(1e3),matchCache:k(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function B(e,t,n=!1){let r=e.split(`/`),i=xe(e,r,t,n);if(!i)return null;let[a]=V(e,r,i);return{route:i.node.route,rawParams:a}}function V(e,t,n){let r=be(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+U(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+U(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+U(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+U(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}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===A)>(e.node.kind===A)||t.node.kind===A==(e.node.kind===A)&&t.depth>e.depth))):!0}function Ce(e){return K(e.filter(e=>e!==void 0).join(`/`))}function K(e){return e.replace(/\/{2,}/g,`/`)}function q(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function J(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function we(e){return J(q(e))}function Y(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Te(e,t,n){return Y(e,n)===Y(t,n)}function Ee({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&g(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(g(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=K(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function De(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function X(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Z(e,n)).join(`/`):Z(r,n):r}function Oe({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Q=e(((e,t)=>{t.exports=ke()})),Ae=e((e=>{var t=r(),n=Q();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),$=e(((e,t)=>{t.exports=Ae()})),je=$();function Me(e,t){return e===t}function Ne(e,t,n=Me){let r=(0,i.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,i.useCallback)(()=>e?.get(),[e]);return(0,je.useSyncExternalStoreWithSelector)(r,a,a,t,n)}export{ee as A,d as B,me as C,pe as D,E,ne as F,a as G,c as H,x as I,p as L,ie as M,ae as N,de as O,g as P,m as R,se as S,fe as T,l as U,u as V,o as W,_e as _,De as a,k as b,Ce as c,we as d,q as f,ve as g,ge as h,K as i,ce as j,v as k,Y as l,H as m,$ as n,Te as o,J as p,Q as r,Oe as s,Ne as t,Ee as u,R as v,re as w,O as x,z as y,s as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/useValueAsRef.js b/spinifex/services/spinifexui/frontend/dist/assets/useValueAsRef.js new file mode 100644 index 000000000..444a0c98b --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/useValueAsRef.js @@ -0,0 +1 @@ +import{o as e,r as t}from"./compiler-runtime.js";import{ri as n}from"./awsClient.js";import{l as r}from"./dist.js";import{o as i,s as a}from"./button.js";var o=e(n(),1),s=e(t(),1),c=[];function l(e){s.useEffect(e,c)}var u=null;globalThis.requestAnimationFrame;var d=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},f=class e{static create(){return new e}static request(e){return d.request(e)}static cancel(e){return d.cancel(e)}currentId=u;request(e){this.cancel(),this.currentId=d.request(()=>{this.currentId=u,e()})}cancel=()=>{this.currentId!==u&&(d.cancel(this.currentId),this.currentId=u)};disposeEffect=()=>this.cancel};function p(){let e=r(f.create).current;return l(e.disposeEffect),e}function m(e){return e==null?e:`current`in e?e.current:e}var h=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),g={[h.startingStyle]:``},_={[h.endingStyle]:``},v={transitionStatus(e){return e===`starting`?g:e===`ending`?_:null}};function y(e,t=!1,n=!0){let r=p();return a((i,a=null)=>{r.cancel();let s=m(e);if(s==null)return;let c=s,l=()=>{o.flushSync(i)};if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function u(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||l()}).catch(()=>{if(n){a?.aborted||l();return}let e=c.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&u()})}if(t){let e=h.startingStyle;if(!c.hasAttribute(e)){r.request(u);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),u())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(u)})}function b(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,o=a(i),c=y(r,n,!1);s.useEffect(()=>{if(!t)return;let e=new AbortController;return c(o,e.signal),()=>{e.abort()}},[t,n,o,c])}function x(e,t=!1,n=!1){let[r,a]=s.useState(e&&t?`idle`:void 0),[o,c]=s.useState(e);return e&&!o&&(c(!0),a(`starting`)),!e&&o&&r!==`ending`&&!n&&a(`ending`),!e&&!o&&r===`ending`&&a(void 0),i(()=>{if(!e&&o&&r!==`ending`&&n){let e=f.request(()=>{a(`ending`)});return()=>{f.cancel(e)}}},[e,o,r,n]),i(()=>{if(!e||t)return;let n=f.request(()=>{a(void 0)});return()=>{f.cancel(n)}},[t,e]),i(()=>{if(!e||!t)return;e&&o&&r!==`idle`&&a(`starting`);let n=f.request(()=>{a(`idle`)});return()=>{f.cancel(n)}},[t,e,o,r]),{mounted:o,setMounted:c,transitionStatus:r}}function S(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function C(e){let t=r(w,e).current;return t.next=e,i(t.effect),t}function w(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}export{y as a,m as c,l as d,b as i,f as l,S as n,h as o,x as r,v as s,C as t,p as u}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/zod.js b/spinifex/services/spinifexui/frontend/dist/assets/zod.js index c6da32600..991d86574 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/zod.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/zod.js @@ -1 +1 @@ -import{o as e,r as t}from"./compiler-runtime.js";import{h as n,m as r,p as i}from"./auth.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},_={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},v={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},y=`form`,b=`root`,x=[`__proto__`,`constructor`,`prototype`],S=e=>/^\w*$/.test(e),C=e=>e===void 0,w=e=>e.split(/[.[\]'"]/g).filter(Boolean),T=(e,t,n)=>{if(!t||!u(e))return n;let r=S(t)?[t]:w(t);if(r.some(e=>x.includes(e)))return n;let i=r.reduce((e,t)=>c(e)?void 0:e[t],e);return C(i)||i===e?C(e[t])?n:e[t]:i},E=e=>typeof e==`boolean`,D=e=>typeof e==`function`,O=(e,t,n)=>{let r=-1,i=S(t)?[t]:w(t),a=i.length,o=a-1;for(;++ra.useContext(k),j=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!r||_.all),n&&(n[i]=!0),e[i]}});return i},M=m?a.useLayoutEffect:a.useEffect;function N(e){let t=A(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>j(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,F=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),T(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),T(n,e))):(r&&(t.watchAll=!0),n),I=e=>c(e)||!l(e),ee=(e,t)=>t.length===0&&!Array.isArray(e)&&!p(e);function L(e,t,n=new WeakMap){if(e===t)return!0;if(I(e)||I(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ee(e,r)||ee(t,i))return Object.is(e,t);let a=n.get(e);if(a&&a.has(t))return!0;a?a.add(t):n.set(e,new WeakSet([t]));for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function R(e){let t=A(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=F(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=F(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!L(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function z(e){let t=A(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=f(i._names.array,n),u=R({control:i,name:n,defaultValue:a.useMemo(()=>T(i._formValues,n,T(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),_=a.useRef(null),v=a.useRef(i.register(n,{...e.rules,value:u,...E(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let y=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!T(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!T(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!T(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!T(p.validatingFields,n)},error:{enumerable:!0,get:()=>T(p.errors,n)}}),[p,n]),b=a.useCallback(e=>{let t=d(e);return T(i._fields,n)||(v.current=i.register(n,{...m.current.rules,value:t})),v.current.onChange({target:{value:d(e),name:n},type:g.CHANGE})},[n,i]),x=a.useCallback(()=>v.current.onBlur({target:{value:T(i._formValues,n),name:n},type:g.BLUR}),[n,i._formValues]),S=a.useCallback(e=>{e&&(_.current={focus:()=>D(e.focus)&&e.focus(),select:()=>D(e.select)&&e.select(),setCustomValidity:t=>D(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>D(e.reportValidity)&&e.reportValidity()});let t=T(i._fields,n);t&&t._f&&e&&(t._f.ref=_.current)},[i._fields,n]),w=a.useMemo(()=>({name:n,value:u,...E(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:b,onBlur:x,ref:S}),[n,r,p.disabled,b,x,S,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...E(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=T(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(T(o?i._defaultValues:i._options.values||i._defaultValues,n,T(i._options.defaultValues,n,m.current.defaultValue)));O(i._defaultValues,n,e),C(T(i._formValues,n))&&O(i._formValues,n,e)}if(!l&&i.register(n),_.current){let e=T(i._fields,n);e&&e._f&&(e._f.ref=_.current)}return()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:w,formState:p,fieldState:y}),[w,p,y])}var te=e=>e.render(z(e)),ne=a.createContext(null);ne.displayName=`HookFormContext`;var re=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ie=e=>Array.isArray(e)?e.filter(Boolean):[],B=e=>Array.isArray(e)?e:[e],ae=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function oe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=oe(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var V=e=>u(e)&&!Object.keys(e).length,se=e=>e.type===`file`,ce=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},le=e=>e.type===`select-multiple`,ue=e=>e.type===`radio`,de=e=>ue(e)||o(e),fe=e=>ce(e)&&e.isConnected;function pe(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(D(e[t]))return!0;return!1};function ge(e){return Array.isArray(e)||u(e)&&!he(e)}function U(e,t={}){for(let n in e){let r=e[n];ge(r)?(t[n]=Array.isArray(r)?[]:{},U(r,t[n])):C(r)||(t[n]=!0)}return t}function _e(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>_e(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=_e(e[n]);C(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function W(e,t,n){n||=U(t);for(let r in e){let i=e[r];if(ge(i))C(t)||I(n[r])?n[r]=U(i,Array.isArray(i)?[]:{}):W(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return _e(n)||{}}var ve={value:!1,isValid:!1},G={value:!0,isValid:!0},ye=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C(e[0].attributes.value)?C(e[0].value)||e[0].value===``?G:{value:e[0].value,isValid:!0}:G:ve}return ve},be=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>C(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,K={isValid:!1,value:null},xe=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function Se(e){let t=e.ref;return se(t)?t.files:ue(t)?xe(e.refs).value:le(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?ye(e.refs).value:be(C(t.value)?e.ref.value:t.value,e)}var Ce=(e,t,n,r)=>{let i={};for(let n of e){let e=T(t,n);e&&O(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},we=e=>e instanceof RegExp,Te=e=>C(e)?e:we(e)?e.source:u(e)?we(e.value)?e.value.source:e.value:e,q=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),Ee=`AsyncFunction`,De=e=>!!e&&!!e.validate&&!!(D(e.validate)&&e.validate.constructor.name===Ee||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Ee)),Oe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ke=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(`${t}.`))),J=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=T(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(J(a,t))break}else if(u(a)&&J(a,t))break}}};function Ae(e,t,n){let r=T(e,n);if(r||S(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=T(t,r),o=T(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var je=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return V(a)||r&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||_.all))},Me=(e,t,n)=>!e||!t||e===t||B(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Ne=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Pe=(e,t)=>!ie(T(e,t)).length&&H(e,t),Fe=(e,t,n)=>{let r=T(e,n),i=Array.isArray(r)?r:[];return O(i,b,t[n]),O(e,n,i),e};function Ie(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||E(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Y=e=>u(e)&&!we(e)?e:{value:e,message:``},Le=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:y,valueAsNumber:b,mount:x}=e._f,S=T(n,y);if(!x||t.has(y))return{};let w=l?l[0]:s,O=e=>{if(i&&w.reportValidity){let t=E(e)?``:e||``;l?l.forEach(e=>e.setCustomValidity(t)):w.setCustomValidity(t),w.reportValidity()}},k={},A=ue(s),j=o(s),M=A||j,N=(b||se(s))&&C(s.value)&&C(S)||ce(s)&&s.value===``||S===``||Array.isArray(S)&&!S.length,F=re.bind(null,y,r,k),I=(e,t,n,r=v.maxLength,i=v.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...F(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:d&&(!M&&(N||c(S))||E(S)&&!S||j&&!ye(l).isValid||A&&!xe(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Y(d);if(e&&(k[y]={type:v.required,message:t,ref:w,...F(v.required,t)},!r))return O(t),k}if(!N&&(!c(m)||!c(h))){let e,t,n=Y(h),i=Y(m);if(!c(S)&&!isNaN(S)){let r=s.valueAsNumber||S&&+S;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&S&&(e=o?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),P(i.value)&&S&&(t=o?a(S)+e.value,i=!c(t.value)&&S.length<+t.value;if((n||i)&&(I(n,e.message,t.message),!r))return O(k[y].message),k}if(g&&!N&&P(S)){let{value:e,message:t}=Y(g);if(we(e)&&!S.match(e)&&(k[y]={type:v.pattern,message:t,ref:s,...F(v.pattern,t)},!r))return O(t),k}if(_){if(D(_)){let e=Ie(await _(S,n),w);if(e&&(k[y]={...e,...F(v.validate,e.message)},!r))return O(e.message),k}else if(u(_)){let e={};for(let t in _){if(!V(e)&&!r)break;let i=Ie(await _[t](S,n),w,t);i&&(e={...i,...F(t,i.message)},O(i.message),r&&(k[y]=e))}if(!V(e)&&(k[y]={ref:w,...e},!r))return k}}return O(!0),k},Re={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0},ze={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function X(e={}){let t={...Re,...e},n={...h(ze),isLoading:D(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},x,k=0,A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},j={...A},M={...j},N={array:ae(),state:ae()},I=t.criteriaMode===_.all,ee=e=>t=>{clearTimeout(k),k=setTimeout(e,t)},R=async e=>{if(!l.keepIsValid&&!t.disabled&&(j.isValid||M.isValid||e)){let e;t.resolver?(e=V((await U()).errors),z()):e=await G({fields:r,onlyCheckValid:!0,eventType:g.VALID}),e!==n.isValid&&N.state.next({isValid:e})}},z=(e,r)=>{!t.disabled&&(j.isValidating||j.validatingFields||M.isValidating||M.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?O(n.validatingFields,e,r):H(n.validatingFields,e))}),N.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},te=()=>{n.dirtyFields=W(i,a)},ne=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(T(r,e))){let t=o(T(r,e),s.argA,s.argB);c&&O(r,e,t)}if(u&&Array.isArray(T(n.errors,e))){let t=o(T(n.errors,e),s.argA,s.argB);c&&O(n.errors,e,t),Pe(n.errors,e)}if((j.touchedFields||M.touchedFields)&&u&&Array.isArray(T(n.touchedFields,e))){let t=o(T(n.touchedFields,e),s.argA,s.argB);c&&O(n.touchedFields,e,t)}(j.dirtyFields||M.dirtyFields)&&te(),N.state.next({name:e,isDirty:K(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else O(a,e,i)},re=(e,t)=>{O(n.errors,e,t),n.errors={...n.errors},N.state.next({errors:n.errors})},ue=e=>{n.errors=e,N.state.next({errors:n.errors,isValid:!1})},pe=e=>{let t=S(e)?[e]:w(e),n=a,r=i;for(let e=0;e{let u=T(r,t);if(u){if(pe(t))return;let r=C(T(a,t)),d=T(a,t,C(s)?T(i,t):s);C(d)||c&&c.defaultChecked||o?O(a,t,o?d:Se(u._f)):Ee(t,d),l.mount&&!l.action&&(R(),r&&n.isDirty&&(j.isDirty||M.isDirty)&&(K()||(n.isDirty=!1,N.state.next({...n}))),e.shouldUnregister&&r&&!C(T(a,t))&&ke(t,p)&&(l.watch=!0))}},he=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){(j.isDirty||M.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=K(),l=u!==d.isDirty);let t=L(T(i,e),r);u=!!T(n.dirtyFields,e),t===n.isDirty?t?H(n.dirtyFields,e):O(n.dirtyFields,e,!0):n.dirtyFields=W(i,a),d.dirtyFields=n.dirtyFields,l||=(j.dirtyFields||M.dirtyFields)&&u!==!t}if(o){let t=T(n.touchedFields,e);t||(O(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(j.touchedFields||M.touchedFields)&&t!==o)}l&&c&&N.state.next(d)}return l?d:{}},ge=(e,r,i,a)=>{let o=T(n.errors,e),s=(j.isValid||M.isValid)&&E(r)&&n.isValid!==r;if(t.delayError&&i?(x=ee(()=>re(e,i)),x(t.delayError)):(clearTimeout(k),x=null,i?O(n.errors,e,i):H(n.errors,e),n.errors={...n.errors}),(i?!L(o,i):o)||!V(a)||s){let t={...a,...s&&E(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},N.state.next(t)}},U=async e=>(z(e,!0),await t.resolver(a,t.context,Ce(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_e=async e=>{let{errors:t}=await U(e);if(z(e),e){for(let r of e){let e=T(t,r);e?p.array.has(r)&&u(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Fe(n.errors,{[r]:e},r):O(n.errors,r,e):H(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},ve=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Ge(`${y}.${e}`,{message:P(t.message)?t.message:``,type:t.type||v.validate})}else P(i)||!i?Ge(y,{message:i||``,type:v.validate}):We(y);return i}return!0},G=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await ve({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&De(l._f),u=j.validatingFields||j.isValidating||M.validatingFields||M.isValidating;s&&u&&z([r.name],!0);let d=await Le(l,p.disabled,a,I,t.shouldUseNativeValidation&&!i,o);if(s&&u&&z([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(T(d,r.name)?o?Fe(n.errors,d,r.name):O(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!V(u)&&await G({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},ye=()=>{for(let e of p.unMount){let t=T(r,e);t&&(t._f.refs?t._f.refs.every(e=>!fe(e)):!fe(t._f.ref))&&Ye(e)}p.unMount=new Set},K=(e,n)=>!t.disabled&&(e&&n&&O(a,e,n),!L(He(),i)),xe=(e,t,n)=>F(e,p,{...l.mount?a:C(t)?i:P(e)?{[e]:t}:t},n,t),we=e=>ie(T(l.mount?a:i,e,t.shouldUnregister?T(i,e,[]):[])),Ee=(e,t,n={},i=!1)=>{let s=T(r,e),l=t;if(s){let n=s._f;n&&(!n.disabled&&O(a,e,be(t,n)),l=ce(n.ref)&&c(t)?``:t,le(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):se(n.ref)?n.ref.value=``:(n.ref.value=l,n.ref.type||N.state.next({name:e,values:i?a:h(a)})))}(n.shouldDirty||n.shouldTouch)&&he(e,l,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Q(e)},Ie=(e,t,n,i=!1)=>{for(let a in t){if(!t.hasOwnProperty(a))return;let o=t[a],c=e+`.`+a,l=T(r,c);(p.array.has(e)||u(o)||l&&!l._f)&&!s(o)?Ie(c,o,n,i):Ee(c,o,n,i)}},Y=(e,t,i,o)=>{let s=T(r,e),u=p.array.has(e),d=o?t:h(t),f=L(T(a,e),d);if(f||O(a,e,d),u)N.array.next({name:e,values:o?a:h(a)}),(j.isDirty||j.dirtyFields||M.isDirty||M.dirtyFields)&&i.shouldDirty&&(te(),N.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:K(e,d)}));else{let t=Array.isArray(d)&&!d.length||V(d);!s||s._f||c(d)||t?Ee(e,d,i,o):Ie(e,d,i,o)}if(!f){let t=ke(e,p),r=o?a:h(a);N.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},X=(e,t,n={})=>Y(e,t,n,!1),Z=(e,t={})=>{let r=D(e)?e(a):e;if(!L(a,r)){a={...a,...r};for(let e of p.mount)Y(e,T(r,e),t,!0);N.state.next({...n,name:void 0,type:void 0,values:a}),t.shouldValidate&&R()}},Be=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=T(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||L(e,T(a,c,e))},_=q(t.mode),v=q(t.reValidateMode);if(f){let s,l,y=o.type?Se(f._f):d(i),b=i.type===g.BLUR||i.type===g.FOCUS_OUT,S=!Oe(f._f)&&!e.validate&&!t.resolver&&!T(n.errors,c)&&!f._f.deps||Ne(b,T(n.touchedFields,c),n.isSubmitted,v,_),C=ke(c,p,b);O(a,c,y),b?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),x&&x(0)):f._f.onChange&&f._f.onChange(i);let w=he(c,y,b),E=!V(w)||C;if(!b&&N.state.next({name:c,type:i.type,values:h(a)}),S)return(j.isValid||M.isValid)&&(t.mode===`onBlur`?b&&R():b||R()),E&&N.state.next({name:c,...C?{}:w});if(!t.resolver&&e.validate&&await ve({name:c,eventType:i.type}),!b&&C&&N.state.next({...n}),t.resolver){let{errors:e}=await U([c]);if(z([c]),m(y),!u){!V(w)&&N.state.next(w);return}let t=Ae(n.errors,r,c),i=Ae(e,r,t.name||c);s=i.error,c=i.name,l=V(e)}else z([c],!0),s=(await Le(f,p.disabled,a,I,t.shouldUseNativeValidation))[c],z([c]),m(y),u&&(s?l=!1:(j.isValid||M.isValid)&&(l=await G({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Q(f._f.deps),ge(c,l,s,w))}},Ve=(e,t)=>{if(T(n.errors,t)&&e.focus)return e.focus(),1},Q=async(e,i={})=>{let a,o,s=B(e);if(t.resolver){let t=await _e(C(e)?e:s);a=V(t),o=e?!s.some(e=>T(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=T(r,e);return await G({fields:t&&t._f?{[e]:t}:t,eventType:g.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&R()):o=a=await G({fields:r,name:e,eventType:g.TRIGGER});return N.state.next({...!P(e)||(j.isValid||M.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&J(r,Ve,e?s:p.mount),o},He=(e,t)=>{let r={...l.mount?a:i};return t&&(r=oe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),C(e)?r:P(e)?T(r,e):e.map(e=>T(r,e))},Ue=(e,t)=>({invalid:!!T((t||n).errors,e),isDirty:!!T((t||n).dirtyFields,e),error:T((t||n).errors,e),isValidating:!!T(n.validatingFields,e),isTouched:!!T((t||n).touchedFields,e)}),We=e=>{let t=e?B(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:n.errors})}):N.state.next({errors:{}})},Ge=(e,t,i)=>{let a=(T(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=T(n.errors,e)||{};O(n.errors,e,{...l,...t,ref:a}),N.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ke=(e,t)=>D(e)?N.state.subscribe({next:n=>`values`in n&&e(n.values||xe(void 0,t),n)}):xe(e,t,!0),qe=e=>N.state.subscribe({next:t=>{if(Me(e.name,t.name,e.exact)&&je(t,e.formState||j,it,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,Je=e=>(l.mount=!0,M={...M,...e.formState},qe({...e,formState:{...A,...e.formState}})),Ye=(e,o={})=>{for(let s of e?B(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(H(r,s),H(a,s)),!o.keepError&&H(n.errors,s),!o.keepDirty&&H(n.dirtyFields,s),!o.keepTouched&&H(n.touchedFields,s),!o.keepIsValidating&&H(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,s);N.state.next({values:h(a)}),N.state.next({...n,...o.keepDirty?{isDirty:K()}:{}}),!o.keepIsValid&&R()},Xe=({disabled:e,name:t})=>{if(E(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&R()}},Ze=(e,n={})=>{let a=T(r,e),o=E(n.disabled)||E(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return O(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?Xe({disabled:E(n.disabled)?n.disabled:t.disabled,name:e}):me(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Te(n.min),max:Te(n.max),minLength:Te(n.minLength),maxLength:Te(n.maxLength),pattern:Te(n.pattern)}:{},name:e,onChange:Be,onBlur:Be,ref:o=>{if(o){p.registerName.add(e),Ze(e,n),p.registerName.delete(e),a=T(r,e);let t=C(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=de(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;O(r,e,{_f:{...a._f,...s?{refs:[...c.filter(fe),t,...Array.isArray(T(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),me(e,!1,void 0,t)}else a=T(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e)&&l.action)&&p.unMount.add(e)}}},$=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&J(r,Ve,p.mount),Qe=e=>{E(e)&&(N.state.next({disabled:e}),J(r,(t,n)=>{let i=T(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},$e=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(N.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await U();z(),n.errors=e,c=h(t)}else await G({fields:r,eventType:g.SUBMIT});if(p.disabled.size)for(let e of p.disabled)H(c,e);if(H(n.errors,b),V(n.errors)){N.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),$(),setTimeout($);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},et=(e,t={})=>{T(r,e)&&(C(t.defaultValue)?X(e,h(T(i,e))):(X(e,t.defaultValue),O(i,e,h(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?K(e,h(T(i,e))):K()),t.keepError||(H(n.errors,e),j.isValid&&R()),N.state.next({...n}))},tt=(e,o={})=>{let s=e?h(e):i,c=h(s),u=V(e),d=c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(W(i,a))]);for(let t of Array.from(e)){let e=T(n.dirtyFields,t),r=T(a,t),i=T(d,t);e&&!C(r)?O(d,t,r):!e&&!C(i)&&X(t,i)}}else{if(m&&C(e))for(let e of p.mount){let t=T(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ce(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)X(e,T(d,e));else r={}}if(t.shouldUnregister){if(a=o.keepDefaultValues?h(i):{},o.keepFieldsRef)for(let e of p.mount)O(a,e,T(d,e))}else a=h(d);N.array.next({values:{...d}}),N.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!j.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!V(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),N.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:o.keepValues?K():!!(o.keepDefaultValues&&!L(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?W(i,a):n.dirtyFields:o.keepDefaultValues&&e?W(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},nt=(e,n)=>tt(D(e)?e(a):e,{...t.resetOptions,...n}),rt=(e,t={})=>{let n=T(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&D(e.select)&&e.select()})}},it=e=>{n={...n,...e}},at={control:{register:Ze,unregister:Ye,getFieldState:Ue,handleSubmit:$e,setError:Ge,_subscribe:qe,_runSchema:U,_updateIsValidating:z,_focusError:$,_getWatch:xe,_getDirty:K,_setValid:R,_setFieldArray:ne,_setDisabledField:Xe,_setErrors:ue,_getFieldArray:we,_reset:tt,_resetDefaultValues:()=>D(t.defaultValues)&&t.defaultValues().then(e=>{nt(e,t.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:ye,_disableForm:Qe,_subjects:N,_proxyFormState:j,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:Je,trigger:Q,register:Ze,handleSubmit:$e,watch:Ke,setValue:X,setValues:Z,getValues:He,reset:nt,resetField:et,resetDefaultValues:(e,t={})=>{if(i=h(e),!t.keepDirty){let e=W(i,a);n.dirtyFields=e,n.isDirty=!V(e)}t.keepIsValid||R(),N.state.next({...n,defaultValues:i})},clearErrors:We,unregister:Ye,setError:Ge,setFocus:rt,getFieldState:Ue};return{...at,formControl:at}}var Z=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},Be=(e,t,n={})=>n.shouldFocus||C(n.shouldFocus)?n.focusName||`${e}.${C(n.focusIndex)?t:n.focusIndex}.`:``,Ve=(e,t)=>[...e,...B(t)],Q=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function He(e,t,n){return[...e.slice(0,t),...B(n),...e.slice(t)]}var Ue=(e,t,n)=>Array.isArray(e)?(C(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],We=(e,t)=>[...B(t),...B(e)];function Ge(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return ie(r).length?r:[]}var Ke=(e,t)=>C(t)?[]:Ge(e,B(t).sort((e,t)=>e-t)),qe=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Je=(e,t,n)=>(e[t]=n,e);function Ye(e){let t=A(),{control:n=t,name:r,keyName:i=`id`,disabled:o,shouldUnregister:s,rules:c}=e,[l,u]=a.useState(o?[]:n._getFieldArray(r)),d=a.useRef(o?[]:n._getFieldArray(r).map(Z)),f=a.useRef(!1);o||n._names.array.add(r),a.useMemo(()=>!o&&c&&l.length>=0&&n.register(r,c),[n,r,l.length,c,o]),M(()=>{if(!o)return n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let n=T(e,r);Array.isArray(n)?(u(n),d.current=n.map(Z)):t||(u([]),d.current=[])}}}).unsubscribe},[n,r,o]);let p=a.useCallback(e=>{f.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{if(o)return;n._state.action=!1,ke(r,n._names)&&n._subjects.state.next({...n._formState});let e=q(n._options.mode);if(f.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!q(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=T(e.errors,r),i=T(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?O(n._formState.errors,r,t):H(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=T(n._fields,r);e&&e._f&&!(q(n._options.reValidateMode).isOnSubmit&&q(n._options.mode).isOnSubmit)&&Le(e,n._names.disabled,n._formValues,n._options.criteriaMode===_.all,n._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&n._subjects.state.next({errors:Fe(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&J(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),f.current=!1},[l,r,n,o]),a.useEffect(()=>(o||!T(n._formValues,r)&&n._setFieldArray(r),()=>{if(o)return;let e=!(n._options.shouldUnregister||s);f.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=T(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,s,o]),{swap:a.useCallback((e,t)=>{if(o)return;let i=n._getFieldArray(r);qe(i,e,t),qe(d.current,e,t),p(i),u(i),n._setFieldArray(r,i,qe,{argA:e,argB:t},!1)},[p,r,n,o]),move:a.useCallback((e,t)=>{if(o)return;let i=n._getFieldArray(r);Ue(i,e,t),Ue(d.current,e,t),p(i),u(i),n._setFieldArray(r,i,Ue,{argA:e,argB:t},!1)},[p,r,n,o]),prepend:a.useCallback((e,t)=>{if(o)return;let i=B(h(e)),a=We(n._getFieldArray(r),i);n._names.focus=Be(r,0,t),d.current=We(d.current,i.map(Z)),p(a),u(a),n._setFieldArray(r,a,We,{argA:Q(e)})},[p,r,n,o]),append:a.useCallback((e,t)=>{if(o)return;let i=B(h(e)),a=Ve(n._getFieldArray(r),i);n._names.focus=Be(r,a.length-1,t),d.current=Ve(d.current,i.map(Z)),p(a),u(a),n._setFieldArray(r,a,Ve,{argA:Q(e)})},[p,r,n,o]),remove:a.useCallback(e=>{if(o)return;let t=Ke(n._getFieldArray(r),e);d.current=Ke(d.current,e),p(t),u(t),!Array.isArray(T(n._fields,r))&&O(n._fields,r,void 0),n._setFieldArray(r,t,Ke,{argA:e})},[p,r,n,o]),insert:a.useCallback((e,t,i)=>{if(o)return;let a=B(h(t)),s=He(n._getFieldArray(r),e,a);n._names.focus=Be(r,e,i),d.current=He(d.current,e,a.map(Z)),p(s),u(s),n._setFieldArray(r,s,He,{argA:e,argB:Q(t)})},[p,r,n,o]),update:a.useCallback((e,t)=>{if(o)return;let i=h(t),a=Je(n._getFieldArray(r),e,i);d.current=[...a].map((t,n)=>!t||n===e?Z():d.current[n]),p(a),u([...a]),n._setFieldArray(r,a,Je,{argA:e,argB:i},!0,!1)},[p,r,n,o]),replace:a.useCallback(e=>{if(o)return;let t=B(h(e));d.current=t.map(Z),p([...t]),u([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[p,r,n,o]),fields:a.useMemo(()=>l.map((e,t)=>({...e,[i]:d.current[t]||Z()})),[l,i])}}function Xe(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),r=a.useRef(e.formControl),[i,o]=a.useState(()=>({...h(ze),isLoading:D(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:D(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!D(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=X(e);t.current={...r,formState:i}}let s=t.current.control;return s._options=e,M(()=>{let e=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),s._formState.isReady=!0,e},[s]),a.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),a.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),a.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),a.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==i.isDirty&&s._subjects.state.next({isDirty:e})}},[s,i.isDirty]),a.useEffect(()=>{e.values&&!L(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),s._options.resetOptions?.keepIsValid||s._setValid(),n.current=e.values,o(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),a.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=a.useMemo(()=>j(i,s),[s,i]),t.current}var Ze=(e,t,n)=>{if(e&&`reportValidity`in e){let r=T(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ze(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ze(t,n,e))}},Qe=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=T(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if($e(t.names||Object.keys(e),r)){let e=Object.assign({},T(n,r));O(e,`root`,a),O(n,r,e)}else O(n,r,a)}return n},$e=(e,t)=>{let n=et(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>et(e).match(`^${n}\\.\\d+`))};function et(e){return e.replace(/[\[\]]/g,``)}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(tt({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=re(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function at(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(nt(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&$({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Qe(rt(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(nt(function(){return Promise.resolve((a.mode===`sync`?i:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof n}(e))return{values:{},errors:Qe(it(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{R as a,Xe as i,te as n,Ye as r,at as t}; \ No newline at end of file +import{o as e,r as t}from"./compiler-runtime.js";import{h as n,m as r,p as i}from"./auth.js";var a=e(t(),1),o=e=>e.type===`checkbox`,s=e=>e instanceof Date,c=e=>e==null,l=e=>typeof e==`object`,u=e=>!c(e)&&!Array.isArray(e)&&l(e)&&!s(e),d=e=>u(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,f=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),p=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty(`isPrototypeOf`)},m=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function h(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(m&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(u(e)&&p(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}var g={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},_={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},v={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},y=`root`,b=[`__proto__`,`constructor`,`prototype`],x=/^\w*$/,S=e=>x.test(e),C=e=>e===void 0,w=/[.[\]'"]/,T=e=>e.split(w).filter(Boolean),E=(e,t,n)=>{if(!t||!u(e))return n;let r=S(t)?[t]:T(t);if(r.some(e=>b.includes(e)))return n;let i=r.reduce((e,t)=>c(e)?void 0:e[t],e);return C(i)||i===e?C(e[t])?n:e[t]:i},D=e=>typeof e==`boolean`,O=e=>typeof e==`function`,k=(e,t,n)=>{let r=-1,i=S(t)?[t]:T(t),a=i.length,o=a-1;for(;++ra.useContext(A),ee=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!r||_.all),n&&(n[i]=!0),e[i]}});return i},M=m?a.useLayoutEffect:a.useEffect;function N(e){let t=j(),{control:n=t,disabled:r,name:i,exact:o}=e||{},[s,c]=a.useState(()=>({...n._formState,defaultValues:n._defaultValues})),l=a.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,o]),a.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),a.useMemo(()=>ee(s,n,l.current,!1),[s,n])}var P=e=>typeof e==`string`,te=(e,t,n,r,i)=>P(e)?(r&&t.watch.add(e),E(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),E(n,e))):(r&&(t.watchAll=!0),n),F=e=>c(e)||!l(e),ne=(e,t)=>t.length===0&&!Array.isArray(e)&&!p(e);function I(e,t,n=new WeakMap){if(e===t)return!0;if(F(e)||F(t))return Object.is(e,t);if(s(e)&&s(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ne(e,r)||ne(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(s(r)&&s(e)||(u(r)||Array.isArray(r))&&(u(e)||Array.isArray(e))?!I(r,e,n):!Object.is(r,e))return!1}}return!0}function re(e){let t=j(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:c}=e||{},l=a.useRef(i),u=a.useRef(c),d=a.useRef(void 0),f=a.useRef(n),p=a.useRef(r);u.current=c;let[m,h]=a.useState(()=>{let e=n._getWatch(r,l.current);return u.current?u.current(e):e}),g=a.useCallback(e=>{let t=te(r,n._names,e||n._formValues,!1,l.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=a.useCallback(e=>{if(!o){let t=te(r,n._names,e||n._formValues,!1,l.current);if(u.current){let e=u.current(t);I(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,r]);M(()=>((f.current!==n||!I(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:e=>{_(e.values)}})),[n,s,r,_]),a.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=a.useMemo(()=>{if(o)return null;let e=!v&&!I(y,r);return v||e?g():null},[o,v,r,y,g]);return b===null?m:b}function L(e){let t=j(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:c=!0}=e,l=f(i._names.array,n),u=re({control:i,name:n,defaultValue:a.useMemo(()=>E(i._formValues,n,E(i._defaultValues,n,s)),[i,n,s]),exact:c}),p=N({control:i,name:n,exact:c}),m=a.useRef(e),_=a.useRef(null),v=a.useRef(i.register(n,{...e.rules,value:u,...D(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;let y=a.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!E(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!E(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!E(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!E(p.validatingFields,n)},error:{enumerable:!0,get:()=>E(p.errors,n)}}),[p,n]),b=a.useCallback(e=>{let t=d(e);return E(i._fields,n)||(v.current=i.register(n,{...m.current.rules,value:t})),v.current.onChange({target:{value:d(e),name:n},type:g.CHANGE})},[n,i]),x=a.useCallback(()=>v.current.onBlur({target:{value:E(i._formValues,n),name:n},type:g.BLUR}),[n,i._formValues]),S=a.useCallback(e=>{e&&(_.current={focus:()=>O(e.focus)&&e.focus(),select:()=>O(e.select)&&e.select(),setCustomValidity:t=>O(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>O(e.reportValidity)&&e.reportValidity()});let t=E(i._fields,n);t&&t._f&&e&&(t._f.ref=_.current)},[i._fields,n]),w=a.useMemo(()=>({name:n,value:u,...D(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:b,onBlur:x,ref:S}),[n,r,p.disabled,b,x,S,u]);return a.useEffect(()=>{let e=i._options.shouldUnregister||o;i.register(n,{...m.current.rules,...D(m.current.disabled)?{disabled:m.current.disabled}:{}});let t=(e,t)=>{let n=E(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(E(o?i._defaultValues:i._options.values||i._defaultValues,n,E(i._options.defaultValues,n,m.current.defaultValue)));k(i._defaultValues,n,e),C(E(i._formValues,n))&&k(i._formValues,n,e)}if(!l&&i.register(n),_.current){let e=E(i._fields,n);e&&e._f&&(e._f.ref=_.current)}return()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,l,o]),a.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),a.useMemo(()=>({field:w,formState:p,fieldState:y}),[w,p,y])}var R=e=>e.render(L(e)),ie=a.createContext(null);ie.displayName=`HookFormContext`;var ae=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oe=e=>Array.isArray(e)?e.filter(Boolean):[],z=e=>Array.isArray(e)?e:[e],se=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ce(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&u(i)&&a){let e=ce(i,a);u(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var B=e=>u(e)&&!Object.keys(e).length,le=e=>e.type===`file`,ue=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},de=e=>e.type===`select-multiple`,fe=e=>e.type===`radio`,pe=e=>fe(e)||o(e),me=e=>ue(e)&&e.isConnected;function he(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(O(e[t]))return!0;return!1};function ve(e){return Array.isArray(e)||u(e)&&!_e(e)}function ye(e,t={}){for(let n in e){let r=e[n];ve(r)?(t[n]=Array.isArray(r)?[]:{},ye(r,t[n])):C(r)||(t[n]=!0)}return t}function H(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){let t=e.map(e=>H(e));return t.some(e=>e!==void 0)?t:void 0}if(u(e)){let t={};for(let n in e){let r=H(e[n]);C(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function U(e,t,n){n||=ye(t);for(let r in e){let i=e[r];if(ve(i))C(t)||F(n[r])?n[r]=ye(i,Array.isArray(i)?[]:{}):U(i,c(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!I(i,e)}}return H(n)||{}}var be={value:!1,isValid:!1},xe={value:!0,isValid:!0},W=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C(e[0].attributes.value)?C(e[0].value)||e[0].value===``?xe:{value:e[0].value,isValid:!0}:xe:be}return be},Se=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>C(e)?e:t?e===``?NaN:e&&+e:n&&P(e)?new Date(e):r?r(e):e,Ce={isValid:!1,value:null},G=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Ce):Ce;function we(e){let t=e.ref;return le(t)?t.files:fe(t)?G(e.refs).value:de(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?W(e.refs).value:Se(C(t.value)?e.ref.value:t.value,e)}var Te=(e,t,n,r)=>{let i={};for(let n of e){let e=E(t,n);e&&k(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},K=e=>e instanceof RegExp,Ee=e=>C(e)?e:K(e)?e.source:u(e)?K(e.value)?e.value.source:e.value:e,q=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),De=`AsyncFunction`,Oe=e=>{if(!e||!e.validate)return!1;if(O(e.validate))return e.validate.constructor.name===De;if(u(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===De)return!0}return!1},ke=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ae=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},J=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=E(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(J(a,t))break}else if(u(a)&&J(a,t))break}}};function je(e,t,n){let r=E(e,n);if(r||S(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=E(t,r),o=E(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Me=(e,t,n,r)=>{n(e);let{name:i,...a}=e,o=Object.keys(a);return!o.length||r&&o.length>=Object.keys(t).length||o.find(e=>t[e]===(!r||_.all))},Ne=(e,t,n)=>!e||!t||e===t||z(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Pe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Fe=(e,t)=>!oe(E(e,t)).length&&V(e,t),Ie=(e,t,n)=>{let r=E(e,n),i=Array.isArray(r)?r:[];return k(i,y,t[n]),k(e,n,i),e};function Le(e,t,n=`validate`){if(P(e)||Array.isArray(e)&&e.every(P)||D(e)&&!e)return{type:n,message:P(e)?e:``,ref:t}}var Y=e=>u(e)&&!K(e)?e:{value:e,message:``},Re=async(e,t,n,r,i,a)=>{let{ref:s,refs:l,required:d,maxLength:f,minLength:p,min:m,max:h,pattern:g,validate:_,name:y,valueAsNumber:b,mount:x}=e._f,S=E(n,y);if(!x||t.has(y))return{};let w=l?l[0]:s,T=e=>{if(i&&w.reportValidity){let t=D(e)?``:e||``;l?l.forEach(e=>e.setCustomValidity(t)):w.setCustomValidity(t),w.reportValidity()}},k={},A=fe(s),j=o(s),ee=A||j,M=(b||le(s))&&C(s.value)&&C(S)||ue(s)&&s.value===``||S===``||Array.isArray(S)&&!S.length,N=ae.bind(null,y,r,k),te=(e,t,n,r=v.maxLength,i=v.minLength)=>{let a=e?t:n;k[y]={type:e?r:i,message:a,ref:s,...N(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:d&&(!ee&&(M||c(S))||D(S)&&!S||j&&!W(l).isValid||A&&!G(l).isValid)){let{value:e,message:t}=P(d)?{value:!!d,message:d}:Y(d);if(e&&(k[y]={type:v.required,message:t,ref:w,...N(v.required,t)},!r))return T(t),k}if(!M&&(!c(m)||!c(h))){let e,t,n=Y(h),i=Y(m);if(!c(S)&&!isNaN(S)){let r=s.valueAsNumber||S&&+S;c(n.value)||(e=r>n.value),c(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),o=s.type==`time`,c=s.type==`week`;P(n.value)&&S&&(e=o?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),P(i.value)&&S&&(t=o?a(S)+e.value,i=!c(t.value)&&S.length<+t.value;if((n||i)&&(te(n,e.message,t.message),!r))return T(k[y].message),k}if(g&&!M&&P(S)){let{value:e,message:t}=Y(g);if(K(e)&&!S.match(e)&&(k[y]={type:v.pattern,message:t,ref:s,...N(v.pattern,t)},!r))return T(t),k}if(_){if(O(_)){let e=Le(await _(S,n),w);if(e&&(k[y]={...e,...N(v.validate,e.message)},!r))return T(e.message),k}else if(u(_)){let e={};for(let t in _){if(!B(e)&&!r)break;let i=Le(await _[t](S,n),w,t);i&&(e={...i,...N(t,i.message)},T(i.message),r&&(k[y]=e))}if(!B(e)&&(k[y]={ref:w,...e},!r))return k}}return T(!0),k},ze={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0},Be=`form`,Ve={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function He(e={}){let t={...ze,...e},n={...h(Ve),isLoading:O(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(u(t.defaultValues)||u(t.values))&&h(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:h(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},b,x=0,w=0,A=q(t.mode),j=q(t.reValidateMode),ee={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},M={...ee},N={...M},F={array:se(),state:se()},ne=t.criteriaMode===_.all,re=e=>t=>{clearTimeout(x),x=setTimeout(e,t)},L=async e=>{if(!l.keepIsValid&&!t.disabled&&(M.isValid||N.isValid||e)){let e;t.resolver?(e=B((await H()).errors),R()):e=await W({fields:r,onlyCheckValid:!0,eventType:g.VALID}),e!==n.isValid&&F.state.next({isValid:e})}},R=(e,r)=>{!t.disabled&&(M.isValidating||M.validatingFields||N.isValidating||N.validatingFields)&&((e||Array.from(p.mount)).forEach(e=>{e&&(r?k(n.validatingFields,e,r):V(n.validatingFields,e))}),F.state.next({validatingFields:n.validatingFields,isValidating:!B(n.validatingFields)}))},ie=()=>{n.dirtyFields=U(i,a)},ae=(e,i=[],o,s,c=!0,u=!0)=>{if(s&&o&&!t.disabled){if(l.action=!0,u&&Array.isArray(E(r,e))){let t=o(E(r,e),s.argA,s.argB);c&&k(r,e,t)}if(u&&Array.isArray(E(n.errors,e))){let t=o(E(n.errors,e),s.argA,s.argB);c&&k(n.errors,e,t),Fe(n.errors,e)}if((M.touchedFields||N.touchedFields)&&u&&Array.isArray(E(n.touchedFields,e))){let t=o(E(n.touchedFields,e),s.argA,s.argB);c&&k(n.touchedFields,e,t)}(M.dirtyFields||N.dirtyFields)&&ie(),F.state.next({name:e,isDirty:G(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else k(a,e,i)},fe=(e,t)=>{k(n.errors,e,t),n.errors={...n.errors},F.state.next({errors:n.errors})},he=e=>{n.errors=e,F.state.next({errors:n.errors,isValid:!1})},ge=e=>{let t=S(e)?[e]:T(e),n=a,r=i;for(let e=0;e{let u=E(r,t);if(u){if(ge(t))return;let r=C(E(a,t)),d=E(a,t,C(s)?E(i,t):s);C(d)||c&&c.defaultChecked||o?k(a,t,o?d:we(u._f)):Le(t,d),l.mount&&!l.action&&(L(),r&&n.isDirty&&(M.isDirty||N.isDirty)&&(G()||(n.isDirty=!1,F.state.next({...n}))),e.shouldUnregister&&r&&!C(E(a,t))&&Ae(t,p)&&(l.watch=!0))}},ve=(e,r,o,s,c)=>{let l=!1,u=!1,d={name:e};if(!t.disabled){if(!o||s){let t=I(E(i,e),r);(M.isDirty||N.isDirty)&&(u=n.isDirty,n.isDirty=d.isDirty=!t||G(),l=u!==d.isDirty),u=!!E(n.dirtyFields,e),t===n.isDirty?t?V(n.dirtyFields,e):k(n.dirtyFields,e,!0):n.dirtyFields=U(i,a),d.dirtyFields=n.dirtyFields,l||=(M.dirtyFields||N.dirtyFields)&&u!==!t}if(o){let t=E(n.touchedFields,e);t||(k(n.touchedFields,e,o),d.touchedFields=n.touchedFields,l||=(M.touchedFields||N.touchedFields)&&t!==o)}l&&c&&F.state.next(d)}return l?d:{}},ye=(e,r,i,a)=>{let o=E(n.errors,e),s=(M.isValid||N.isValid)&&D(r)&&n.isValid!==r;if(t.delayError&&i?(b=re(()=>fe(e,i)),b(t.delayError)):(clearTimeout(x),b=null,i?k(n.errors,e,i):V(n.errors,e),n.errors={...n.errors}),(i?!I(o,i):o)||!B(a)||s){let t={...a,...s&&D(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},F.state.next(t)}},H=async e=>(R(e,!0),await t.resolver(a,t.context,Te(e||p.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),be=async e=>{let{errors:t}=await H(e);if(R(e),e){for(let r of e){let e=E(t,r);e?p.array.has(r)&&u(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Ie(n.errors,{[r]:e},r):k(n.errors,r,e):V(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},xe=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(u(i))for(let e in i){let t=i[e];t&&Q(`${Be}.${e}`,{message:P(t.message)?t.message:``,type:t.type||v.validate})}else P(i)||!i?Q(Be,{message:i||``,type:v.validate}):Je(Be);return i}return!0},W=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await xe({name:o,eventType:s})&&(c.valid=!1,i)))return c.valid;for(let o in r){let l=r[o];if(l){let{_f:r,...u}=l;if(r){let o=p.array.has(r.name),s=l._f&&Oe(l._f),u=M.validatingFields||M.isValidating||N.validatingFields||N.isValidating;s&&u&&R([r.name],!0);let d=await Re(l,p.disabled,a,ne,t.shouldUseNativeValidation&&!i,o);if(s&&u&&R([r.name]),d[r.name]&&(c.valid=!1,i)||(!i&&(E(d,r.name)?o?Ie(n.errors,d,r.name):k(n.errors,r.name,d[r.name]):V(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!B(u)&&await W({context:c,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return c.valid},Ce=()=>{for(let e of p.unMount){let t=E(r,e);t&&(t._f.refs?t._f.refs.every(e=>!me(e)):!me(t._f.ref))&&Qe(e)}p.unMount=new Set},G=(e,n)=>!t.disabled&&(e&&n&&k(a,e,n),!I(l.mount?a:i,i)),K=(e,t,n)=>te(e,p,{...l.mount?a:C(t)?i:P(e)?{[e]:t}:t},n,t),De=e=>oe(E(l.mount?a:i,e,t.shouldUnregister?E(i,e,[]):[])),Le=(e,t,n={},i=!1,s=!1)=>{let l=E(r,e),u=t;if(l){let n=l._f;n&&(!n.disabled&&k(a,e,Se(t,n)),u=ue(n.ref)&&c(t)?``:t,de(n.ref)?[...n.ref.options].forEach(e=>e.selected=u.includes(e.value)):n.refs?o(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):n.refs.forEach(e=>e.checked=e.value===u):le(n.ref)?n.ref.value=``:(n.ref.value=u,!n.ref.type&&!s&&F.state.next({name:e,values:i?a:h(a)})))}(n.shouldDirty||n.shouldTouch)&&ve(e,u,n.shouldTouch,n.shouldDirty,!s),n.shouldValidate&&Z(e)},Y=(e,t,n,i=!1,a=!1)=>{for(let o in t){if(!t.hasOwnProperty(o))return;let c=t[o],l=e+`.`+o,d=E(r,l);(p.array.has(e)||u(c)||d&&!d._f)&&!s(c)?Y(l,c,n,i,a):Le(l,c,n,i,a)}},He=(e,t,i,o,s=!1)=>{let u=E(r,e),d=p.array.has(e),f=o?t:h(t),m=I(E(a,e),f);if(m||k(a,e,f),d)F.array.next({name:e,values:o?a:h(a)}),(M.isDirty||M.dirtyFields||N.isDirty||N.dirtyFields)&&i.shouldDirty&&(ie(),s||F.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:G(e,f)}));else{let t=Array.isArray(f)&&!f.length||B(f);!u||u._f||c(f)||t?Le(e,f,i,o,s):Y(e,f,i,o,s)}if(!m&&!s){let t=Ae(e,p),r=o?a:h(a);F.state.next({...t&&n,name:l.mount||t?e:void 0,values:r})}},X=(e,t,n={})=>He(e,t,n,!1),Ue=(e,t={})=>{let r=O(e)?e(a):e;if(!I(a,r)){a={...a,...r};for(let e of p.mount)He(e,E(r,e),t,!0,!0);F.state.next({...n,name:void 0,type:void 0,...w?{values:a}:{}}),t.shouldValidate&&L()}},We=async i=>{l.mount=!0;let o=i.target,c=o.name,u=!0,f=E(r,c),m=e=>{u=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||I(e,E(a,c,e))};if(f){let s,l,_=o.type?we(f._f):d(i),v=i.type===g.BLUR||i.type===g.FOCUS_OUT,y=!ke(f._f)&&!e.validate&&!t.resolver&&!E(n.errors,c)&&!f._f.deps,x=y||Pe(v,E(n.touchedFields,c),n.isSubmitted,j,A),S=Ae(c,p,v);k(a,c,_),v?(!o||!o.readOnly)&&(f._f.onBlur&&f._f.onBlur(i),b&&b(0)):f._f.onChange&&f._f.onChange(i);let C=ve(c,_,v),T=!B(C)||S;if(!v&&F.state.next({name:c,type:i.type,...w?{values:h(a)}:{}}),x)return(!y||!n.isValid)&&(M.isValid||N.isValid)&&(t.mode===`onBlur`?v&&L():v||L()),T&&F.state.next({name:c,...S?{}:C});if(!t.resolver&&e.validate&&await xe({name:c,eventType:i.type}),!v&&S&&F.state.next({...n}),t.resolver){let{errors:e}=await H([c]);if(R([c]),m(_),!u){!B(C)&&F.state.next(C);return}let t=je(n.errors,r,c),i=je(e,r,t.name||c);s=i.error,c=i.name,l=B(e)}else R([c],!0),s=(await Re(f,p.disabled,a,ne,t.shouldUseNativeValidation))[c],R([c]),m(_),u&&(s?l=!1:(M.isValid||N.isValid)&&(l=await W({fields:r,onlyCheckValid:!0,name:c,eventType:i.type})));u&&(f._f.deps&&(!Array.isArray(f._f.deps)||f._f.deps.length>0)&&Z(f._f.deps),ye(c,l,s,C))}},Ge=(e,t)=>{if(E(n.errors,t)&&e.focus)return e.focus(),1},Z=async(e,i={})=>{let a,o,s=z(e);if(t.resolver){let t=await be(C(e)?e:s);a=B(t),o=e?!s.some(e=>E(t,e)):a}else e?(o=(await Promise.all(s.map(async e=>{let t=E(r,e);return await W({fields:t&&t._f?{[e]:t}:t,eventType:g.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&L()):o=a=await W({fields:r,name:e,eventType:g.TRIGGER});return F.state.next({...!P(e)||(M.isValid||N.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&J(r,Ge,e?s:p.mount),o},Ke=(e,t)=>{let r={...l.mount?a:i};return t&&(r=ce(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),C(e)?r:P(e)?E(r,e):e.map(e=>E(r,e))},qe=(e,t)=>({invalid:!!E((t||n).errors,e),isDirty:!!E((t||n).dirtyFields,e),error:E((t||n).errors,e),isValidating:!!E(n.validatingFields,e),isTouched:!!E((t||n).touchedFields,e)}),Je=e=>{let t=e?z(e):void 0;t?.forEach(e=>V(n.errors,e)),t?t.forEach(e=>{F.state.next({name:e,errors:n.errors})}):F.state.next({errors:{}})},Q=(e,t,i)=>{let a=(E(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=E(n.errors,e)||{};k(n.errors,e,{...l,...t,ref:a}),F.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},Ye=(e,t)=>{if(O(e)){w++;let{unsubscribe:n}=F.state.subscribe({next:n=>`values`in n&&e(n.values||K(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,w--,n())}}}return K(e,t,!0)},Xe=e=>{let t=!!e.formState?.values;t&&w++;let{unsubscribe:r}=F.state.subscribe({next:t=>{if(Ne(e.name,t.name,e.exact)&&Me(t,e.formState||M,st,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,w--,r())}},Ze=e=>(l.mount=!0,N={...N,...e.formState},Xe({...e,formState:{...ee,...e.formState}})),Qe=(e,o={})=>{for(let s of e?z(e):p.mount)p.mount.delete(s),p.array.delete(s),o.keepValue||(V(r,s),V(a,s)),!o.keepError&&V(n.errors,s),!o.keepDirty&&V(n.dirtyFields,s),!o.keepTouched&&V(n.touchedFields,s),!o.keepIsValidating&&V(n.validatingFields,s),!t.shouldUnregister&&!o.keepDefaultValue&&V(i,s);F.state.next({values:h(a)}),F.state.next({...n,...o.keepDirty?{isDirty:G()}:{}}),!o.keepIsValid&&L()},$e=({disabled:e,name:t})=>{if(D(e)&&l.mount||e||p.disabled.has(t)){let n=p.disabled.has(t)!==!!e;e?p.disabled.add(t):p.disabled.delete(t),n&&l.mount&&!l.action&&L()}},$=(e,n={})=>{let a=E(r,e),o=D(n.disabled)||D(t.disabled),s=!p.registerName.has(e)&&a&&a._f&&!a._f.mount;return k(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),p.mount.add(e),a&&!s?$e({disabled:D(n.disabled)?n.disabled:t.disabled,name:e}):_e(e,!0,n.value),{...o?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Ee(n.min),max:Ee(n.max),minLength:Ee(n.minLength),maxLength:Ee(n.maxLength),pattern:Ee(n.pattern)}:{},name:e,onChange:We,onBlur:We,ref:o=>{if(o){p.registerName.add(e),$(e,n),p.registerName.delete(e),a=E(r,e);let t=C(o.value)&&o.querySelectorAll&&o.querySelectorAll(`input,select,textarea`)[0]||o,s=pe(t),c=a._f.refs||[];if(s?c.find(e=>e===t):t===a._f.ref)return;k(r,e,{_f:{...a._f,...s?{refs:[...c.filter(me),t,...Array.isArray(E(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),_e(e,!1,void 0,t)}else a=E(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(f(p.array,e)&&l.action)&&p.unMount.add(e)}}},et=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&J(r,Ge,p.mount),tt=e=>{D(e)&&(F.state.next({disabled:e}),J(r,(t,n)=>{let i=E(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},nt=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=h(a);if(F.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await H();R(),n.errors=e,c=h(t)}else await W({fields:r,eventType:g.SUBMIT});if(p.disabled.size)for(let e of p.disabled)V(c,e);if(V(n.errors,y),B(n.errors)){F.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),et(),setTimeout(et);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},rt=(e,t={})=>{E(r,e)&&(C(t.defaultValue)?X(e,h(E(i,e))):(X(e,t.defaultValue),k(i,e,h(t.defaultValue))),t.keepTouched||V(n.touchedFields,e),t.keepDirty||(V(n.dirtyFields,e),n.isDirty=t.defaultValue?G(e,h(E(i,e))):G()),t.keepError||(V(n.errors,e),M.isValid&&L()),F.state.next({...n}))},it=(e,o={})=>{let s=e?h(e):i,c=h(s),u=B(e),d=c;if(o.keepDefaultValues||(i=s),!o.keepValues){if(o.keepDirtyValues){let e=new Set([...p.mount,...Object.keys(U(i,a))]);for(let t of Array.from(e)){let e=E(n.dirtyFields,t),r=E(a,t),i=E(d,t);e&&!C(r)?k(d,t,r):!e&&!C(i)&&X(t,i)}}else{if(m&&C(e))for(let e of p.mount){let t=E(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ue(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(o.keepFieldsRef)for(let e of p.mount)X(e,E(d,e));else r={}}if(t.shouldUnregister){if(a=o.keepDefaultValues?h(i):{},o.keepFieldsRef)for(let e of p.mount)k(a,e,E(d,e))}else a=h(d);F.array.next({values:{...d}}),F.state.next({values:{...d}})}p={mount:o.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},l.mount=!M.isValid||!!o.keepIsValid||!!o.keepDirtyValues||!t.shouldUnregister&&!B(d),l.watch=!!t.shouldUnregister,l.keepIsValid=!!o.keepIsValid,l.action=!1,o.keepErrors||(n.errors={}),F.state.next({submitCount:o.keepSubmitCount?n.submitCount:0,isDirty:u?!1:o.keepDirty?n.isDirty:o.keepValues?G():!!(o.keepDefaultValues&&!I(e,i)),isSubmitted:o.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:u?{}:o.keepDirtyValues?o.keepDefaultValues&&a?U(i,a):n.dirtyFields:o.keepDefaultValues&&e?U(i,e):o.keepDirty?n.dirtyFields:{},touchedFields:o.keepTouched?n.touchedFields:{},errors:o.keepErrors?n.errors:{},isSubmitSuccessful:o.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},at=(e,n)=>it(O(e)?e(a):e,{...t.resetOptions,...n}),ot=(e,t={})=>{let n=E(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&O(e.select)&&e.select()})}},st=e=>{n={...n,...e}},ct={control:{register:$,unregister:Qe,getFieldState:qe,handleSubmit:nt,setError:Q,_subscribe:Xe,_runSchema:H,_updateIsValidating:R,_focusError:et,_getWatch:K,_getDirty:G,_setValid:L,_setFieldArray:ae,_setDisabledField:$e,_setErrors:he,_getFieldArray:De,_reset:it,_resetDefaultValues:()=>O(t.defaultValues)&&t.defaultValues().then(e=>{at(e,t.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:Ce,_disableForm:tt,_subjects:F,_proxyFormState:M,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return p},set _names(e){p=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},A=q(t.mode),j=q(t.reValidateMode)}},subscribe:Ze,trigger:Z,register:$,handleSubmit:nt,watch:Ye,setValue:X,setValues:Ue,getValues:Ke,reset:at,resetField:rt,resetDefaultValues:(e,t={})=>{if(i=h(e),!t.keepDirty){let e=U(i,a);n.dirtyFields=e,n.isDirty=!B(e)}t.keepIsValid||L(),F.state.next({...n,defaultValues:i})},clearErrors:Je,unregister:Qe,setError:Q,setFocus:ot,getFieldState:qe};return{...ct,formControl:ct}}var X=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},Ue=(e,t,n={})=>n.shouldFocus||C(n.shouldFocus)?n.focusName||`${e}.${C(n.focusIndex)?t:n.focusIndex}.`:``,We=(e,t)=>[...e,...z(t)],Ge=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function Z(e,t,n){return[...e.slice(0,t),...z(n),...e.slice(t)]}var Ke=(e,t,n)=>Array.isArray(e)?(C(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],qe=(e,t)=>[...z(t),...z(e)];function Je(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return oe(r).length?r:[]}var Q=(e,t)=>C(t)?[]:Je(e,z(t).sort((e,t)=>e-t)),Ye=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Xe=(e,t,n)=>(e[t]=n,e);function Ze(e){let t=j(),{control:n=t,name:r,keyName:i=`id`,disabled:o,shouldUnregister:s,rules:c}=e,[l,u]=a.useState(n._getFieldArray(r)),d=a.useRef(n._getFieldArray(r).map(X)),f=a.useRef(!1);o||n._names.array.add(r),a.useMemo(()=>!o&&c&&l.length>=0&&n.register(r,c),[n,r,l.length,c,o]),M(()=>{if(!o)return n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let n=E(e,r);Array.isArray(n)?(u(n),d.current=n.map(X)):t||(u([]),d.current=[])}}}).unsubscribe},[n,r,o]);let p=a.useCallback(e=>{f.current=!0,n._setFieldArray(r,e)},[n,r]);return a.useEffect(()=>{if(o)return;n._state.action=!1,Ae(r,n._names)&&n._subjects.state.next({...n._formState});let e=q(n._options.mode);if(f.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!q(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=E(e.errors,r),i=E(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?k(n._formState.errors,r,t):V(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=E(n._fields,r);e&&e._f&&!(q(n._options.reValidateMode).isOnSubmit&&q(n._options.mode).isOnSubmit)&&Re(e,n._names.disabled,n._formValues,n._options.criteriaMode===_.all,n._options.shouldUseNativeValidation,!0).then(e=>!B(e)&&n._subjects.state.next({errors:Ie(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:h(n._formValues)}),n._names.focus&&J(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),f.current=!1},[l,r,n,o]),a.useEffect(()=>(o||!E(n._formValues,r)&&n._setFieldArray(r),()=>{if(o)return;let e=!(n._options.shouldUnregister||s);f.current&&e&&n._subjects.state.next({name:r,values:h(n._formValues)}),e?((e,t)=>{let r=E(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1):n.unregister(r)}),[r,n,i,s,o]),{swap:a.useCallback((e,t)=>{if(o)return;let i=n._getFieldArray(r);Ye(i,e,t),Ye(d.current,e,t),p(i),u(i),n._setFieldArray(r,i,Ye,{argA:e,argB:t},!1)},[p,r,n,o]),move:a.useCallback((e,t)=>{if(o)return;let i=n._getFieldArray(r);Ke(i,e,t),Ke(d.current,e,t),p(i),u(i),n._setFieldArray(r,i,Ke,{argA:e,argB:t},!1)},[p,r,n,o]),prepend:a.useCallback((e,t)=>{if(o)return;let i=z(h(e)),a=qe(n._getFieldArray(r),i);n._names.focus=Ue(r,0,t),d.current=qe(d.current,i.map(X)),p(a),u(a),n._setFieldArray(r,a,qe,{argA:Ge(e)})},[p,r,n,o]),append:a.useCallback((e,t)=>{if(o)return;let i=z(h(e)),a=We(n._getFieldArray(r),i);n._names.focus=Ue(r,a.length-1,t),d.current=We(d.current,i.map(X)),p(a),u(a),n._setFieldArray(r,a,We,{argA:Ge(e)})},[p,r,n,o]),remove:a.useCallback(e=>{if(o)return;let t=Q(n._getFieldArray(r),e);d.current=Q(d.current,e),p(t),u(t),!Array.isArray(E(n._fields,r))&&k(n._fields,r,void 0),n._setFieldArray(r,t,Q,{argA:e})},[p,r,n,o]),insert:a.useCallback((e,t,i)=>{if(o)return;let a=z(h(t)),s=Z(n._getFieldArray(r),e,a);n._names.focus=Ue(r,e,i),d.current=Z(d.current,e,a.map(X)),p(s),u(s),n._setFieldArray(r,s,Z,{argA:e,argB:Ge(t)})},[p,r,n,o]),update:a.useCallback((e,t)=>{if(o)return;let i=h(t),a=Xe(n._getFieldArray(r),e,i);d.current=[...a].map((t,n)=>!t||n===e?X():d.current[n]),p(a),u([...a]),n._setFieldArray(r,a,Xe,{argA:e,argB:i},!0,!1)},[p,r,n,o]),replace:a.useCallback(e=>{if(o)return;let t=z(h(e));d.current=t.map(X),p([...t]),u([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[p,r,n,o]),fields:a.useMemo(()=>l.map((e,t)=>({...e,...D(o)?{disabled:o}:{},[i]:d.current[t]||X()})),[l,i,o])}}function Qe(e={}){let t=a.useRef(void 0),n=a.useRef(void 0),r=a.useRef(e.formControl),[i,o]=a.useState(()=>({...h(Ve),isLoading:O(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:O(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!O(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=He(e);t.current={...r,formState:i}}let s=t.current.control;return s._options=e,M(()=>{let e=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),s._formState.isReady=!0,e},[s]),a.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),a.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),a.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),a.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==i.isDirty&&s._subjects.state.next({isDirty:e})}},[s,i.isDirty]),a.useEffect(()=>{e.values&&!I(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),s._options.resetOptions?.keepIsValid||s._setValid(),n.current=e.values,o(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),a.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=a.useMemo(()=>ee(i,s),[s,i]),t.current}var $e=(e,t,n)=>{if(e&&`reportValidity`in e){let r=E(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},$=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?$e(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>$e(t,n,e))}},et=(e,t)=>{t.shouldUseNativeValidation&&$(e,t);let n={};for(let r in e){let i=E(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(tt(t.names||Object.keys(e),r)){let e=Object.assign({},E(n,r));k(e,`root`,a),k(n,r,e)}else k(n,r,a)}return n},tt=(e,t)=>{let n=nt(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>nt(e).match(`^${n}\\.\\d+`))};function nt(e){return e.replace(/[\[\]]/g,``)}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(rt({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=ae(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function st(e,t,a){if(a===void 0&&(a={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(n,r,i){try{return Promise.resolve(it(function(){return Promise.resolve(e[a.mode===`sync`?`parse`:`parseAsync`](n,t)).then(function(e){return i.shouldUseNativeValidation&&$({},i),{errors:{},values:a.raw?Object.assign({},n):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:et(at(e.errors,!i.shouldUseNativeValidation&&i.criteriaMode===`all`),i)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(o,s,c){try{return Promise.resolve(it(function(){return Promise.resolve((a.mode===`sync`?i:r)(e,o,t)).then(function(e){return c.shouldUseNativeValidation&&$({},c),{errors:{},values:a.raw?Object.assign({},o):e}})},function(e){if(function(e){return e instanceof n}(e))return{values:{},errors:et(ot(e.issues,!c.shouldUseNativeValidation&&c.criteriaMode===`all`),c)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}export{re as a,Qe as i,R as n,Ze as r,st as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/index.html b/spinifex/services/spinifexui/frontend/dist/index.html index 9a1339de3..bf0e76526 100644 --- a/spinifex/services/spinifexui/frontend/dist/index.html +++ b/spinifex/services/spinifexui/frontend/dist/index.html @@ -9,17 +9,19 @@ + + + + + - - - - +