diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index cf81aafd0..aac9bf0bc 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{t as a}from"./link.js";import{dn as o}from"./cluster-config.js";import{t as s}from"./createLucideIcon.js";import{t as c}from"./chevron-down.js";import{t as l}from"./chevron-right.js";import{a as u,c as d,i as f,n as p,o as m,r as ee,s as h,t as te}from"./waypoints.js";import{n as ne}from"./admin-context.js";import{A as re,M as g,_,d as v,l as ie,n as y,p as ae,w as oe}from"./ec2.js";import{n as b}from"./s32.js";import{t as x}from"./page-heading.js";import{t as se}from"./badge.js";import{a as S,n as C,o as w,r as T,s as ce,t as le}from"./card.js";import{i as ue,t as de}from"./admin.js";import{t as E}from"./state-badge.js";import{a as D,c as O,i as k,l as fe,n as A,o as j,s as pe,t as M}from"./alert-dialog.js";var N=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`}]]),P=s(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),F=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`}]]),I=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`}]]),me=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`}]]),L=s(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),R=r(),z=t(n(),1),B=e(),he=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function V(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 H(){let e=(0,R.c)(129),{isAdmin:t,version:n,license:r}=ne(),[a,o]=(0,z.useState)(!1),s;e[0]===t?s=e[1]:(s={...de,enabled:t},e[0]=t,e[1]=s);let{data:u}=i(s),d;e[2]===t?d=e[3]:(d={...ue,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p;e[4]===u?.nodes?p=e[5]:(p=u?.nodes??[],e[4]=u?.nodes,e[5]=p);let m=p,h;e[6]===f?.vms?h=e[7]:(h=f?.vms??[],e[6]=f?.vms,e[7]=h);let te=h,re=u?.cluster_mode??`single-node`,g=r===`open-source`,_=m[0]?.region??null,v;e[8]===m?v=e[9]:(v=m.reduce(ye,0),e[8]=m,e[9]=v);let ie=v,y;e[10]===m?y=e[11]:(y=m.reduce(ve,0),e[10]=m,e[11]=y);let ae=y,oe,b,x,S,C,E,D,O,k,fe,A,j,pe,M,N,P,F;if(e[12]!==ae||e[13]!==re||e[14]!==g||e[15]!==m||e[16]!==_||e[17]!==ie||e[18]!==n.arch||e[19]!==n.commit||e[20]!==n.os||e[21]!==n.version||e[22]!==te.length){let t=m.reduce(_e,0),r=m.reduce(ge,0);pe=`mb-6 space-y-4`,fe=`grid grid-cols-1 gap-4 md:grid-cols-3`;let i;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsxs)(ce,{className:`flex items-center gap-2 text-sm`,children:[(0,B.jsx)(me,{className:`size-3.5`}),`Spinifex Info`]})}),e[40]=i):i=e[40];let a;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[41]=a):a=e[41];let o;e[42]===n.version?o=e[43]:(o=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[a,(0,B.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[42]=n.version,e[43]=o);let s;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[44]=s):s=e[44];let c;e[45]===n.commit?c=e[46]:(c=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[s,(0,B.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[45]=n.commit,e[46]=c);let l;e[47]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[47]=l):l=e[47];let u;e[48]!==n.arch||e[49]!==n.os?(u=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[l,(0,B.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[48]=n.arch,e[49]=n.os,e[50]=u):u=e[50];let d;e[51]===_?d=e[52]:(d=_&&(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,B.jsx)(`span`,{children:_})]}),e[51]=_,e[52]=d),e[53]!==o||e[54]!==c||e[55]!==u||e[56]!==d?(A=(0,B.jsxs)(le,{children:[i,(0,B.jsxs)(T,{className:`space-y-1 text-xs`,children:[o,c,u,d]})]}),e[53]=o,e[54]=c,e[55]=u,e[56]=d,e[57]=A):A=e[57];let f;e[58]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsx)(ce,{className:`text-sm`,children:`License & Support`})}),e[58]=f):f=e[58];let p;e[59]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[59]=p):p=e[59];let h=g?`secondary`:`default`,ne=g?`Open Source (AGPLv3)`:`Commercial`,v;e[60]!==h||e[61]!==ne?(v=(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[p,(0,B.jsx)(se,{variant:h,children:ne})]}),e[60]=h,e[61]=ne,e[62]=v):v=e[62];let y;e[63]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[63]=y):y=e[63];let ue=g?`Community`:`Standard`,de;e[64]===ue?de=e[65]:(de=(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,(0,B.jsx)(`span`,{children:ue})]}),e[64]=ue,e[65]=de);let I;e[66]===g?I=e[67]:(I=g&&(0,B.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[66]=g,e[67]=I),e[68]!==v||e[69]!==de||e[70]!==I?(j=(0,B.jsxs)(le,{children:[f,(0,B.jsxs)(T,{className:`space-y-2 text-xs`,children:[v,de,I]})]}),e[68]=v,e[69]=de,e[70]=I,e[71]=j):j=e[71],b=le,e[72]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsxs)(ce,{className:`flex items-center gap-2 text-sm`,children:[(0,B.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[72]=k):k=e[72],oe=T,S=`space-y-2 text-xs`,e[73]===re?C=e[74]:(C=(0,B.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,B.jsx)(se,{variant:`outline`,children:re})}),e[73]=re,e[74]=C);let L;e[75]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[75]=L):L=e[75],e[76]===m.length?E=e[77]:(E=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[L,(0,B.jsx)(`span`,{children:m.length})]}),e[76]=m.length,e[77]=E);let R;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[78]=R):R=e[78],e[79]===te.length?D=e[80]:(D=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,B.jsx)(`span`,{children:te.length})]}),e[79]=te.length,e[80]=D);let z;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[81]=z):z=e[81],e[82]!==ae||e[83]!==ie?(O=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[z,(0,B.jsxs)(`span`,{children:[ae,` / `,ie]})]}),e[82]=ae,e[83]=ie,e[84]=O):O=e[84],F=`flex justify-between`,e[85]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[85]=x):x=e[85],M=r.toFixed(1),N=` / `,P=t.toFixed(1),e[12]=ae,e[13]=re,e[14]=g,e[15]=m,e[16]=_,e[17]=ie,e[18]=n.arch,e[19]=n.commit,e[20]=n.os,e[21]=n.version,e[22]=te.length,e[23]=oe,e[24]=b,e[25]=x,e[26]=S,e[27]=C,e[28]=E,e[29]=D,e[30]=O,e[31]=k,e[32]=fe,e[33]=A,e[34]=j,e[35]=pe,e[36]=M,e[37]=N,e[38]=P,e[39]=F}else oe=e[23],b=e[24],x=e[25],S=e[26],C=e[27],E=e[28],D=e[29],O=e[30],k=e[31],fe=e[32],A=e[33],j=e[34],pe=e[35],M=e[36],N=e[37],P=e[38],F=e[39];let L;e[86]!==M||e[87]!==N||e[88]!==P?(L=(0,B.jsxs)(`span`,{children:[M,N,P,` GB`]}),e[86]=M,e[87]=N,e[88]=P,e[89]=L):L=e[89];let V;e[90]!==x||e[91]!==L||e[92]!==F?(V=(0,B.jsxs)(`div`,{className:F,children:[x,L]}),e[90]=x,e[91]=L,e[92]=F,e[93]=V):V=e[93];let H;e[94]!==oe||e[95]!==S||e[96]!==C||e[97]!==E||e[98]!==D||e[99]!==O||e[100]!==V?(H=(0,B.jsxs)(oe,{className:S,children:[C,E,D,O,V]}),e[94]=oe,e[95]=S,e[96]=C,e[97]=E,e[98]=D,e[99]=O,e[100]=V,e[101]=H):H=e[101];let U;e[102]!==b||e[103]!==k||e[104]!==H?(U=(0,B.jsxs)(b,{children:[k,H]}),e[102]=b,e[103]=k,e[104]=H,e[105]=U):U=e[105];let W;e[106]!==fe||e[107]!==A||e[108]!==j||e[109]!==U?(W=(0,B.jsxs)(`div`,{className:fe,children:[A,j,U]}),e[106]=fe,e[107]=A,e[108]=j,e[109]=U,e[110]=W):W=e[110];let G;e[111]!==m||e[112]!==a?(G=m.length>0&&(0,B.jsxs)(le,{children:[(0,B.jsx)(w,{className:`pb-0`,children:(0,B.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>{o(!a)},children:[a?(0,B.jsx)(c,{className:`size-3.5`}):(0,B.jsx)(l,{className:`size-3.5`}),`Nodes (`,m.length,`)`]})}),a&&(0,B.jsx)(T,{className:`pt-2`,children:(0,B.jsx)(be,{nodes:m})})]}),e[111]=m,e[112]=a,e[113]=G):G=e[113];let xe;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsx)(ce,{className:`text-sm`,children:`Commercial Add-ons`})}),e[114]=xe):xe=e[114];let K;e[115]===g?K=e[116]:(K=he.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,B.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,B.jsx)(I,{className:`size-3 text-muted-foreground`}):(0,B.jsx)(se,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[115]=g,e[116]=K);let q;e[117]===K?q=e[118]:(q=(0,B.jsx)(`div`,{className:`space-y-2`,children:K}),e[117]=K,e[118]=q);let J;e[119]===g?J=e[120]:(J=g&&(0,B.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[119]=g,e[120]=J);let Se;e[121]!==q||e[122]!==J?(Se=(0,B.jsxs)(le,{children:[xe,(0,B.jsxs)(T,{children:[q,J]})]}),e[121]=q,e[122]=J,e[123]=Se):Se=e[123];let Y;return e[124]!==pe||e[125]!==W||e[126]!==G||e[127]!==Se?(Y=(0,B.jsxs)(`div`,{className:pe,children:[W,G,Se]}),e[124]=pe,e[125]=W,e[126]=G,e[127]=Se,e[128]=Y):Y=e[128],Y}function ge(e,t){return e+t.alloc_mem_gb}function _e(e,t){return e+t.total_mem_gb}function ve(e,t){return e+t.alloc_vcpu}function ye(e,t){return e+t.total_vcpu}function be(e){let t=(0,R.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,B.jsx)(`thead`,{children:(0,B.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,B.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(U),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,B.jsx)(`div`,{className:`overflow-x-auto`,children:(0,B.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,B.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function U(e){return(0,B.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,B.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,B.jsx)(se,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,B.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:V(e.uptime)}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,B.jsx)(`td`,{className:`py-1.5`,children:(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var W=`console.spx3.com`,G=`spinifex:v1:sandbox-welcome`,xe=[{to:`/ec2/run-instances`,icon:(0,B.jsx)(h,{className:`size-3.5`}),label:`Launch an instance`,hint:`Boot a VM on real hardware`},{to:`/s3/ls`,icon:(0,B.jsx)(F,{className:`size-3.5`}),label:`Create a bucket`,hint:`S3-compatible object storage`},{to:`/ec2/describe-vpcs`,icon:(0,B.jsx)(u,{className:`size-3.5`}),label:`Networking`,hint:`VPCs, subnets and security groups`},{to:`/eks/list-clusters`,icon:(0,B.jsx)(L,{className:`size-3.5`}),label:`Kubernetes`,hint:`Managed EKS-compatible clusters`},{to:`/iam/list-users`,icon:(0,B.jsx)(m,{className:`size-3.5`}),label:`Access keys`,hint:`Credentials for the AWS CLI and SDKs`}];function K(){try{return localStorage.getItem(G)!==null}catch{}return!1}function q(){try{localStorage.setItem(G,`1`)}catch{}}function J(){let e=(0,R.c)(7),[t,n]=(0,z.useState)(Se),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=e=>{e||q(),n(e)},e[0]=r):r=e[0];let i=r,o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,B.jsxs)(pe,{children:[(0,B.jsx)(O,{children:(0,B.jsx)(P,{className:`text-primary`})}),(0,B.jsx)(fe,{children:`Welcome to the Mulga sandbox`}),(0,B.jsx)(D,{children:`You have a real account on a shared evaluation cluster. The APIs are the AWS ones, so the CLI and the SDKs work against it unchanged. Resources here may be reclaimed, so please don't keep anything you need in it.`})]}),e[1]=o):o=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(`div`,{className:`space-y-0.5`,children:xe.map(e=>(0,B.jsxs)(a,{className:`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs hover:bg-muted`,onClick:()=>{i(!1)},to:e.to,children:[e.icon,(0,B.jsx)(`span`,{className:`font-medium`,children:e.label}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.hint})]},e.to))}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(`a`,{className:`text-xs text-muted-foreground underline underline-offset-3 hover:text-foreground sm:mr-auto sm:self-center`,href:`https://docs.mulgadc.com`,rel:`noreferrer`,target:`_blank`,children:`Read the docs`}),e[3]=c):c=e[3];let l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsxs)(k,{className:`max-w-lg`,children:[o,s,(0,B.jsxs)(j,{children:[c,(0,B.jsx)(A,{onClick:()=>{i(!1)},children:`Get started`})]})]}),e[4]=l):l=e[4];let u;return e[5]===t?u=e[6]:(u=(0,B.jsx)(M,{onOpenChange:i,open:t,children:l}),e[5]=t,e[6]=u),u}function Se(){return window.location.hostname===W&&!K()}var Y=5;function Ce(){let e=(0,R.c)(12),t,n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(x,{title:`Dashboard`}),n=(0,B.jsx)(J,{}),r=(0,B.jsx)(H,{}),e[0]=t,e[1]=n,e[2]=r):(t=e[0],n=e[1],r=e[2]);let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(we,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(je,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Ie,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Re,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Be,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(He,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(We,{})}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Je,{})}),e[10]=d):d=e[10];let f;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsxs)(B.Fragment,{children:[t,n,r,(0,B.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[i,a,o,s,c,l,u,d,(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Ke,{})})]})]}),e[11]=f):f=e[11],f}function X(){let e=(0,R.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(w,{children:(0,B.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,B.jsxs)(le,{children:[t,(0,B.jsx)(T,{children:(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,B.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Z(e){let t=(0,R.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,B.jsxs)(ce,{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,B.jsx)(C,{children:(0,B.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,B.jsxs)(w,{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,B.jsx)(T,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,B.jsx)(S,{children:(0,B.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,B.jsxs)(le,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function Q(e){let t=(0,R.c)(2),{total:n}=e;if(n<=Y)return null;let r=n-Y,i;return t[0]===r?i=t[1]:(i=(0,B.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function $(e){let t=(0,R.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,B.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function we(){let e=(0,R.c)(16),{data:t}=i(ie),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(Ae)??[];n=i.filter(ke),a=i.filter(Oe),o=i.filter(De),r=i.filter(Ee),s=[...a,...r].slice(0,Y),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,B.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,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,B.jsxs)(`span`,{children:[a.length,` running`]}),(0,B.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,B.jsx)(`div`,{className:`space-y-0.5`,children:c.map(Te)}),(0,B.jsx)(Q,{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,B.jsx)(Z,{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 Te(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function Ee(e){return e.State?.Name===`pending`}function De(e){return e.State?.Name===`stopped`}function Oe(e){return e.State?.Name===`running`}function ke(e){return e.State?.Name!==`terminated`}function Ae(e){return e.Instances??[]}function je(){let e=(0,R.c)(14),{data:t}=i(re),n;e[0]===t?.Volumes?n=e[1]:(n=t?.Volumes??[],e[0]=t?.Volumes,e[1]=n);let r=n,a;e[2]===r?a=e[3]:(a=r.reduce(Fe,0),e[2]=r,e[3]=a);let o=a,s;e[4]===r?s=e[5]:(s=r.filter(Pe),e[4]=r,e[5]=s);let c=s,l;e[6]===r?l=e[7]:(l=r.filter(Ne),e[6]=r,e[7]=l);let u=l,d;if(e[8]!==u||e[9]!==c||e[10]!==o||e[11]!==r){let t=r.slice(0,Y),n;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(N,{className:`size-3.5`}),e[13]=n):n=e[13],d=(0,B.jsx)(Z,{title:`Volumes`,icon:n,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,B.jsxs)(`span`,{children:[o,` GiB total`]}),(0,B.jsxs)(`span`,{children:[c.length,` in-use`]}),(0,B.jsxs)(`span`,{children:[u.length,` available`]})]}),(0,B.jsx)(`div`,{className:`space-y-0.5`,children:t.map(Me)}),(0,B.jsx)(Q,{total:r.length})]})}),e[8]=u,e[9]=c,e[10]=o,e[11]=r,e[12]=d}else d=e[12];return d}function Me(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,B.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,B.jsx)(E,{state:e.State})]})]},e.VolumeId)}function Ne(e){return e.State===`available`}function Pe(e){return e.State===`in-use`}function Fe(e,t){return e+(t.Size??0)}function Ie(){let e=(0,R.c)(5),{data:t}=i(g),n;e[0]===t?.Vpcs?n=e[1]:(n=t?.Vpcs??[],e[0]=t?.Vpcs,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(u,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`VPCs`,icon:n,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Le),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Le(e){let t=o(e.Tags);return(0,B.jsxs)($,{children:[(0,B.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,B.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function Re(){let e=(0,R.c)(5),{data:t}=i(ae),n;e[0]===t?.KeyPairs?n=e[1]:(n=t?.KeyPairs??[],e[0]=t?.KeyPairs,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(m,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Key Pairs`,icon:n,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(ze),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function ze(e){return(0,B.jsx)($,{children:(0,B.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Be(){let e=(0,R.c)(5),{data:t}=i(b),n;e[0]===t?.Buckets?n=e[1]:(n=t?.Buckets??[],e[0]=t?.Buckets,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(F,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`S3 Buckets`,icon:n,count:r.length,to:`/s3/ls`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ve),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ve(e){return(0,B.jsx)($,{children:(0,B.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function He(){let e=(0,R.c)(5),{data:t}=i(oe),n;e[0]===t?.SecurityGroups?n=e[1]:(n=t?.SecurityGroups??[],e[0]=t?.SecurityGroups,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(p,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Security Groups`,icon:n,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ue),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ue(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function We(){let e=(0,R.c)(5),{data:t}=i(_),n;e[0]===t?.NatGateways?n=e[1]:(n=t?.NatGateways??[],e[0]=t?.NatGateways,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(te,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`NAT Gateways`,icon:n,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ge),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ge(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function Ke(){let e=(0,R.c)(5),{data:t}=i(v),n;e[0]===t?.InternetGateways?n=e[1]:(n=t?.InternetGateways??[],e[0]=t?.InternetGateways,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(f,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Internet Gateways`,icon:n,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(qe),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function qe(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function Je(){let e=(0,R.c)(5),{data:t}=i(y),n;e[0]===t?.Addresses?n=e[1]:(n=t?.Addresses??[],e[0]=t?.Addresses,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(d,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Elastic IPs`,icon:n,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ye),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ye(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{Ce 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"./link.js";import{dn as o}from"./cluster-config.js";import{t as s}from"./createLucideIcon.js";import{t as c}from"./chevron-down.js";import{t as l}from"./chevron-right.js";import{a as u,c as d,i as f,n as p,o as m,r as ee,s as h,t as te}from"./waypoints.js";import{n as ne}from"./admin-context.js";import{A as re,M as g,_,d as v,l as ie,n as y,p as ae,w as oe}from"./ec2.js";import{n as b}from"./s32.js";import{t as x}from"./page-heading.js";import{t as se}from"./badge.js";import{a as S,n as C,o as w,r as T,s as ce,t as le}from"./card.js";import{o as ue,r as de}from"./admin.js";import{t as E}from"./state-badge.js";import{a as D,c as O,i as k,l as fe,n as A,o as j,s as pe,t as M}from"./alert-dialog.js";var N=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`}]]),P=s(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),F=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`}]]),I=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`}]]),me=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`}]]),L=s(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),R=r(),z=t(n(),1),B=e(),he=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function V(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 H(){let e=(0,R.c)(129),{isAdmin:t,version:n,license:r}=ne(),[a,o]=(0,z.useState)(!1),s;e[0]===t?s=e[1]:(s={...de,enabled:t},e[0]=t,e[1]=s);let{data:u}=i(s),d;e[2]===t?d=e[3]:(d={...ue,enabled:t},e[2]=t,e[3]=d);let{data:f}=i(d);if(!t||!n)return null;let p;e[4]===u?.nodes?p=e[5]:(p=u?.nodes??[],e[4]=u?.nodes,e[5]=p);let m=p,h;e[6]===f?.vms?h=e[7]:(h=f?.vms??[],e[6]=f?.vms,e[7]=h);let te=h,re=u?.cluster_mode??`single-node`,g=r===`open-source`,_=m[0]?.region??null,v;e[8]===m?v=e[9]:(v=m.reduce(ye,0),e[8]=m,e[9]=v);let ie=v,y;e[10]===m?y=e[11]:(y=m.reduce(ve,0),e[10]=m,e[11]=y);let ae=y,oe,b,x,S,C,E,D,O,k,fe,A,j,pe,M,N,P,F;if(e[12]!==ae||e[13]!==re||e[14]!==g||e[15]!==m||e[16]!==_||e[17]!==ie||e[18]!==n.arch||e[19]!==n.commit||e[20]!==n.os||e[21]!==n.version||e[22]!==te.length){let t=m.reduce(_e,0),r=m.reduce(ge,0);pe=`mb-6 space-y-4`,fe=`grid grid-cols-1 gap-4 md:grid-cols-3`;let i;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsxs)(ce,{className:`flex items-center gap-2 text-sm`,children:[(0,B.jsx)(me,{className:`size-3.5`}),`Spinifex Info`]})}),e[40]=i):i=e[40];let a;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[41]=a):a=e[41];let o;e[42]===n.version?o=e[43]:(o=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[a,(0,B.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[42]=n.version,e[43]=o);let s;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[44]=s):s=e[44];let c;e[45]===n.commit?c=e[46]:(c=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[s,(0,B.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[45]=n.commit,e[46]=c);let l;e[47]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[47]=l):l=e[47];let u;e[48]!==n.arch||e[49]!==n.os?(u=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[l,(0,B.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[48]=n.arch,e[49]=n.os,e[50]=u):u=e[50];let d;e[51]===_?d=e[52]:(d=_&&(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,B.jsx)(`span`,{children:_})]}),e[51]=_,e[52]=d),e[53]!==o||e[54]!==c||e[55]!==u||e[56]!==d?(A=(0,B.jsxs)(le,{children:[i,(0,B.jsxs)(T,{className:`space-y-1 text-xs`,children:[o,c,u,d]})]}),e[53]=o,e[54]=c,e[55]=u,e[56]=d,e[57]=A):A=e[57];let f;e[58]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsx)(ce,{className:`text-sm`,children:`License & Support`})}),e[58]=f):f=e[58];let p;e[59]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[59]=p):p=e[59];let h=g?`secondary`:`default`,ne=g?`Open Source (AGPLv3)`:`Commercial`,v;e[60]!==h||e[61]!==ne?(v=(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[p,(0,B.jsx)(se,{variant:h,children:ne})]}),e[60]=h,e[61]=ne,e[62]=v):v=e[62];let y;e[63]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[63]=y):y=e[63];let ue=g?`Community`:`Standard`,de;e[64]===ue?de=e[65]:(de=(0,B.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,(0,B.jsx)(`span`,{children:ue})]}),e[64]=ue,e[65]=de);let I;e[66]===g?I=e[67]:(I=g&&(0,B.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[66]=g,e[67]=I),e[68]!==v||e[69]!==de||e[70]!==I?(j=(0,B.jsxs)(le,{children:[f,(0,B.jsxs)(T,{className:`space-y-2 text-xs`,children:[v,de,I]})]}),e[68]=v,e[69]=de,e[70]=I,e[71]=j):j=e[71],b=le,e[72]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsxs)(ce,{className:`flex items-center gap-2 text-sm`,children:[(0,B.jsx)(ee,{className:`size-3.5`}),`Cluster Status`]})}),e[72]=k):k=e[72],oe=T,S=`space-y-2 text-xs`,e[73]===re?C=e[74]:(C=(0,B.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,B.jsx)(se,{variant:`outline`,children:re})}),e[73]=re,e[74]=C);let L;e[75]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[75]=L):L=e[75],e[76]===m.length?E=e[77]:(E=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[L,(0,B.jsx)(`span`,{children:m.length})]}),e[76]=m.length,e[77]=E);let R;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[78]=R):R=e[78],e[79]===te.length?D=e[80]:(D=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,B.jsx)(`span`,{children:te.length})]}),e[79]=te.length,e[80]=D);let z;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[81]=z):z=e[81],e[82]!==ae||e[83]!==ie?(O=(0,B.jsxs)(`div`,{className:`flex justify-between`,children:[z,(0,B.jsxs)(`span`,{children:[ae,` / `,ie]})]}),e[82]=ae,e[83]=ie,e[84]=O):O=e[84],F=`flex justify-between`,e[85]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[85]=x):x=e[85],M=r.toFixed(1),N=` / `,P=t.toFixed(1),e[12]=ae,e[13]=re,e[14]=g,e[15]=m,e[16]=_,e[17]=ie,e[18]=n.arch,e[19]=n.commit,e[20]=n.os,e[21]=n.version,e[22]=te.length,e[23]=oe,e[24]=b,e[25]=x,e[26]=S,e[27]=C,e[28]=E,e[29]=D,e[30]=O,e[31]=k,e[32]=fe,e[33]=A,e[34]=j,e[35]=pe,e[36]=M,e[37]=N,e[38]=P,e[39]=F}else oe=e[23],b=e[24],x=e[25],S=e[26],C=e[27],E=e[28],D=e[29],O=e[30],k=e[31],fe=e[32],A=e[33],j=e[34],pe=e[35],M=e[36],N=e[37],P=e[38],F=e[39];let L;e[86]!==M||e[87]!==N||e[88]!==P?(L=(0,B.jsxs)(`span`,{children:[M,N,P,` GB`]}),e[86]=M,e[87]=N,e[88]=P,e[89]=L):L=e[89];let V;e[90]!==x||e[91]!==L||e[92]!==F?(V=(0,B.jsxs)(`div`,{className:F,children:[x,L]}),e[90]=x,e[91]=L,e[92]=F,e[93]=V):V=e[93];let H;e[94]!==oe||e[95]!==S||e[96]!==C||e[97]!==E||e[98]!==D||e[99]!==O||e[100]!==V?(H=(0,B.jsxs)(oe,{className:S,children:[C,E,D,O,V]}),e[94]=oe,e[95]=S,e[96]=C,e[97]=E,e[98]=D,e[99]=O,e[100]=V,e[101]=H):H=e[101];let U;e[102]!==b||e[103]!==k||e[104]!==H?(U=(0,B.jsxs)(b,{children:[k,H]}),e[102]=b,e[103]=k,e[104]=H,e[105]=U):U=e[105];let W;e[106]!==fe||e[107]!==A||e[108]!==j||e[109]!==U?(W=(0,B.jsxs)(`div`,{className:fe,children:[A,j,U]}),e[106]=fe,e[107]=A,e[108]=j,e[109]=U,e[110]=W):W=e[110];let G;e[111]!==m||e[112]!==a?(G=m.length>0&&(0,B.jsxs)(le,{children:[(0,B.jsx)(w,{className:`pb-0`,children:(0,B.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>{o(!a)},children:[a?(0,B.jsx)(c,{className:`size-3.5`}):(0,B.jsx)(l,{className:`size-3.5`}),`Nodes (`,m.length,`)`]})}),a&&(0,B.jsx)(T,{className:`pt-2`,children:(0,B.jsx)(be,{nodes:m})})]}),e[111]=m,e[112]=a,e[113]=G):G=e[113];let xe;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,B.jsx)(w,{className:`pb-2`,children:(0,B.jsx)(ce,{className:`text-sm`,children:`Commercial Add-ons`})}),e[114]=xe):xe=e[114];let K;e[115]===g?K=e[116]:(K=he.map(e=>(0,B.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,B.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,B.jsx)(I,{className:`size-3 text-muted-foreground`}):(0,B.jsx)(se,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[115]=g,e[116]=K);let q;e[117]===K?q=e[118]:(q=(0,B.jsx)(`div`,{className:`space-y-2`,children:K}),e[117]=K,e[118]=q);let J;e[119]===g?J=e[120]:(J=g&&(0,B.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[119]=g,e[120]=J);let Se;e[121]!==q||e[122]!==J?(Se=(0,B.jsxs)(le,{children:[xe,(0,B.jsxs)(T,{children:[q,J]})]}),e[121]=q,e[122]=J,e[123]=Se):Se=e[123];let Y;return e[124]!==pe||e[125]!==W||e[126]!==G||e[127]!==Se?(Y=(0,B.jsxs)(`div`,{className:pe,children:[W,G,Se]}),e[124]=pe,e[125]=W,e[126]=G,e[127]=Se,e[128]=Y):Y=e[128],Y}function ge(e,t){return e+t.alloc_mem_gb}function _e(e,t){return e+t.total_mem_gb}function ve(e,t){return e+t.alloc_vcpu}function ye(e,t){return e+t.total_vcpu}function be(e){let t=(0,R.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,B.jsx)(`thead`,{children:(0,B.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,B.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,B.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(U),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,B.jsx)(`div`,{className:`overflow-x-auto`,children:(0,B.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,B.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function U(e){return(0,B.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,B.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,B.jsx)(se,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,B.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:V(e.uptime)}),(0,B.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,B.jsx)(`td`,{className:`py-1.5`,children:(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var W=`console.spx3.com`,G=`spinifex:v1:sandbox-welcome`,xe=[{to:`/ec2/run-instances`,icon:(0,B.jsx)(h,{className:`size-3.5`}),label:`Launch an instance`,hint:`Boot a VM on real hardware`},{to:`/s3/ls`,icon:(0,B.jsx)(F,{className:`size-3.5`}),label:`Create a bucket`,hint:`S3-compatible object storage`},{to:`/ec2/describe-vpcs`,icon:(0,B.jsx)(u,{className:`size-3.5`}),label:`Networking`,hint:`VPCs, subnets and security groups`},{to:`/eks/list-clusters`,icon:(0,B.jsx)(L,{className:`size-3.5`}),label:`Kubernetes`,hint:`Managed EKS-compatible clusters`},{to:`/iam/list-users`,icon:(0,B.jsx)(m,{className:`size-3.5`}),label:`Access keys`,hint:`Credentials for the AWS CLI and SDKs`}];function K(){try{return localStorage.getItem(G)!==null}catch{}return!1}function q(){try{localStorage.setItem(G,`1`)}catch{}}function J(){let e=(0,R.c)(7),[t,n]=(0,z.useState)(Se),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=e=>{e||q(),n(e)},e[0]=r):r=e[0];let i=r,o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,B.jsxs)(pe,{children:[(0,B.jsx)(O,{children:(0,B.jsx)(P,{className:`text-primary`})}),(0,B.jsx)(fe,{children:`Welcome to the Mulga sandbox`}),(0,B.jsx)(D,{children:`You have a real account on a shared evaluation cluster. The APIs are the AWS ones, so the CLI and the SDKs work against it unchanged. Resources here may be reclaimed, so please don't keep anything you need in it.`})]}),e[1]=o):o=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(`div`,{className:`space-y-0.5`,children:xe.map(e=>(0,B.jsxs)(a,{className:`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs hover:bg-muted`,onClick:()=>{i(!1)},to:e.to,children:[e.icon,(0,B.jsx)(`span`,{className:`font-medium`,children:e.label}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.hint})]},e.to))}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(`a`,{className:`text-xs text-muted-foreground underline underline-offset-3 hover:text-foreground sm:mr-auto sm:self-center`,href:`https://docs.mulgadc.com`,rel:`noreferrer`,target:`_blank`,children:`Read the docs`}),e[3]=c):c=e[3];let l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsxs)(k,{className:`max-w-lg`,children:[o,s,(0,B.jsxs)(j,{children:[c,(0,B.jsx)(A,{onClick:()=>{i(!1)},children:`Get started`})]})]}),e[4]=l):l=e[4];let u;return e[5]===t?u=e[6]:(u=(0,B.jsx)(M,{onOpenChange:i,open:t,children:l}),e[5]=t,e[6]=u),u}function Se(){return window.location.hostname===W&&!K()}var Y=5;function Ce(){let e=(0,R.c)(12),t,n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(x,{title:`Dashboard`}),n=(0,B.jsx)(J,{}),r=(0,B.jsx)(H,{}),e[0]=t,e[1]=n,e[2]=r):(t=e[0],n=e[1],r=e[2]);let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(we,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(je,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Ie,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Re,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Be,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(He,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(We,{})}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Je,{})}),e[10]=d):d=e[10];let f;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsxs)(B.Fragment,{children:[t,n,r,(0,B.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[i,a,o,s,c,l,u,d,(0,B.jsx)(z.Suspense,{fallback:(0,B.jsx)(X,{}),children:(0,B.jsx)(Ke,{})})]})]}),e[11]=f):f=e[11],f}function X(){let e=(0,R.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(w,{children:(0,B.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,B.jsxs)(le,{children:[t,(0,B.jsx)(T,{children:(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,B.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Z(e){let t=(0,R.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,B.jsxs)(ce,{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,B.jsx)(C,{children:(0,B.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,B.jsxs)(w,{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,B.jsx)(T,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,B.jsx)(S,{children:(0,B.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,B.jsxs)(le,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function Q(e){let t=(0,R.c)(2),{total:n}=e;if(n<=Y)return null;let r=n-Y,i;return t[0]===r?i=t[1]:(i=(0,B.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function $(e){let t=(0,R.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,B.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function we(){let e=(0,R.c)(16),{data:t}=i(ie),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(Ae)??[];n=i.filter(ke),a=i.filter(Oe),o=i.filter(De),r=i.filter(Ee),s=[...a,...r].slice(0,Y),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,B.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,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,B.jsxs)(`span`,{children:[a.length,` running`]}),(0,B.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,B.jsx)(`div`,{className:`space-y-0.5`,children:c.map(Te)}),(0,B.jsx)(Q,{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,B.jsx)(Z,{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 Te(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function Ee(e){return e.State?.Name===`pending`}function De(e){return e.State?.Name===`stopped`}function Oe(e){return e.State?.Name===`running`}function ke(e){return e.State?.Name!==`terminated`}function Ae(e){return e.Instances??[]}function je(){let e=(0,R.c)(14),{data:t}=i(re),n;e[0]===t?.Volumes?n=e[1]:(n=t?.Volumes??[],e[0]=t?.Volumes,e[1]=n);let r=n,a;e[2]===r?a=e[3]:(a=r.reduce(Fe,0),e[2]=r,e[3]=a);let o=a,s;e[4]===r?s=e[5]:(s=r.filter(Pe),e[4]=r,e[5]=s);let c=s,l;e[6]===r?l=e[7]:(l=r.filter(Ne),e[6]=r,e[7]=l);let u=l,d;if(e[8]!==u||e[9]!==c||e[10]!==o||e[11]!==r){let t=r.slice(0,Y),n;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(N,{className:`size-3.5`}),e[13]=n):n=e[13],d=(0,B.jsx)(Z,{title:`Volumes`,icon:n,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,B.jsxs)(`span`,{children:[o,` GiB total`]}),(0,B.jsxs)(`span`,{children:[c.length,` in-use`]}),(0,B.jsxs)(`span`,{children:[u.length,` available`]})]}),(0,B.jsx)(`div`,{className:`space-y-0.5`,children:t.map(Me)}),(0,B.jsx)(Q,{total:r.length})]})}),e[8]=u,e[9]=c,e[10]=o,e[11]=r,e[12]=d}else d=e[12];return d}function Me(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,B.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,B.jsx)(E,{state:e.State})]})]},e.VolumeId)}function Ne(e){return e.State===`available`}function Pe(e){return e.State===`in-use`}function Fe(e,t){return e+(t.Size??0)}function Ie(){let e=(0,R.c)(5),{data:t}=i(g),n;e[0]===t?.Vpcs?n=e[1]:(n=t?.Vpcs??[],e[0]=t?.Vpcs,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(u,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`VPCs`,icon:n,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Le),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Le(e){let t=o(e.Tags);return(0,B.jsxs)($,{children:[(0,B.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,B.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function Re(){let e=(0,R.c)(5),{data:t}=i(ae),n;e[0]===t?.KeyPairs?n=e[1]:(n=t?.KeyPairs??[],e[0]=t?.KeyPairs,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(m,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Key Pairs`,icon:n,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(ze),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function ze(e){return(0,B.jsx)($,{children:(0,B.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Be(){let e=(0,R.c)(5),{data:t}=i(b),n;e[0]===t?.Buckets?n=e[1]:(n=t?.Buckets??[],e[0]=t?.Buckets,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(F,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`S3 Buckets`,icon:n,count:r.length,to:`/s3/ls`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ve),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ve(e){return(0,B.jsx)($,{children:(0,B.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function He(){let e=(0,R.c)(5),{data:t}=i(oe),n;e[0]===t?.SecurityGroups?n=e[1]:(n=t?.SecurityGroups??[],e[0]=t?.SecurityGroups,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(p,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Security Groups`,icon:n,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ue),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ue(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function We(){let e=(0,R.c)(5),{data:t}=i(_),n;e[0]===t?.NatGateways?n=e[1]:(n=t?.NatGateways??[],e[0]=t?.NatGateways,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(te,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`NAT Gateways`,icon:n,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ge),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ge(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function Ke(){let e=(0,R.c)(5),{data:t}=i(v),n;e[0]===t?.InternetGateways?n=e[1]:(n=t?.InternetGateways??[],e[0]=t?.InternetGateways,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(f,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Internet Gateways`,icon:n,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(qe),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function qe(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function Je(){let e=(0,R.c)(5),{data:t}=i(y),n;e[0]===t?.Addresses?n=e[1]:(n=t?.Addresses??[],e[0]=t?.Addresses,e[1]=n);let r=n,a;if(e[2]!==r){let t=r.slice(0,Y),n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(d,{className:`size-3.5`}),e[4]=n):n=e[4],a=(0,B.jsx)(Z,{title:`Elastic IPs`,icon:n,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,B.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,B.jsxs)(`div`,{className:`space-y-0.5`,children:[t.map(Ye),(0,B.jsx)(Q,{total:r.length})]})}),e[2]=r,e[3]=a}else a=e[3];return a}function Ye(e){return(0,B.jsxs)($,{children:[(0,B.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{Ce as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id23.js b/spinifex/services/spinifexui/frontend/dist/assets/_id23.js index 4558b48b6..8e1ca8342 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id23.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id23.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./QueryClientProvider.js";import{t as a}from"./useMutation.js";import{t as o}from"./useSuspenseQuery.js";import{t as s}from"./useNavigate.js";import{a as c}from"./cluster-config.js";import{t as l}from"./back-link.js";import{t as u}from"./circle-arrow-up.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{n as p}from"./admin-context.js";import{n as m}from"./signed-fetch.js";import{a as h}from"./ec2.js";import{B as g}from"./ec22.js";import{t as _}from"./_id4.js";import{t as v}from"./page-heading.js";import{t as y}from"./state-badge.js";import{t as b}from"./error-banner.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{i as A}from"./system-managed.js";import{t as j}from"./ami-details.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=i(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),a(n)}async function F(e){let t=c();if(!t)throw Error(`Not authenticated`);return await m({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=_.useParams(),t=s(),{data:n}=o(h(e)),r=n?.Images?.[0],{isAdmin:i}=p(),a=g(),c=P(),[m,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await a.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await c.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),a.error&&(0,I.jsx)(b,{error:a.error,msg:`Failed to deregister image`}),c.error&&(0,I.jsx)(b,{error:c.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(v,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(f,{onClick:()=>{R(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(u,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(f,{onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(d,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(y,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(k,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:a.isPending,onConfirm:B,onOpenChange:N,open:m,title:`Deregister Image`}),(0,I.jsx)(O,{onOpenChange:R,open:F,children:(0,I.jsxs)(S,{children:[(0,I.jsxs)(D,{children:[(0,I.jsx)(C,{children:`Promote to System Image`}),(0,I.jsxs)(x,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(T,{children:[(0,I.jsx)(E,{children:`Cancel`}),(0,I.jsx)(w,{disabled:c.isPending,onClick:V,children:c.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./QueryClientProvider.js";import{t as a}from"./useMutation.js";import{t as o}from"./useSuspenseQuery.js";import{t as s}from"./useNavigate.js";import{a as c}from"./cluster-config.js";import{t as l}from"./back-link.js";import{t as u}from"./circle-arrow-up.js";import{t as d}from"./trash-2.js";import{t as f}from"./button.js";import{n as p}from"./admin-context.js";import{r as m}from"./signed-fetch.js";import{a as h}from"./ec2.js";import{B as g}from"./ec22.js";import{t as _}from"./_id4.js";import{t as v}from"./page-heading.js";import{t as y}from"./state-badge.js";import{t as b}from"./error-banner.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{i as A}from"./system-managed.js";import{t as j}from"./ami-details.js";var M=t(n()),N=r();function P(){let e=(0,N.c)(2),t=i(),n;return e[0]===t?n=e[1]:(n={mutationFn:F,onSuccess:()=>{t.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=t,e[1]=n),a(n)}async function F(e){let t=c();if(!t)throw Error(`Not authenticated`);return await m({action:`PromoteImage`,credentials:t,params:{ImageId:e}})}var I=e(),L=`000000000000`;function R(){let{id:e}=_.useParams(),t=s(),{data:n}=o(h(e)),r=n?.Images?.[0],{isAdmin:i}=p(),a=g(),c=P(),[m,N]=(0,M.useState)(!1),[F,R]=(0,M.useState)(!1);if(!r?.ImageId||A(r))return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Image not found.`})]});let z=r.OwnerId===L;async function B(){try{await a.mutateAsync(e),t({to:`/ec2/describe-images`})}finally{N(!1)}}async function V(){try{await c.mutateAsync(e),R(!1)}catch{}}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{to:`/ec2/describe-images`,children:`Back to images`}),a.error&&(0,I.jsx)(b,{error:a.error,msg:`Failed to deregister image`}),c.error&&(0,I.jsx)(b,{error:c.error,msg:`Failed to promote image`}),(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(v,{actions:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&!z&&(0,I.jsxs)(f,{onClick:()=>{R(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(u,{className:`size-4`}),`Promote to System`]}),(0,I.jsxs)(f,{onClick:()=>{N(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(d,{className:`size-4`}),`Deregister`]}),(0,I.jsx)(y,{state:r.State})]}),subtitle:`Image Details`,title:r.ImageId}),(0,I.jsx)(j,{image:r,showExtendedDetails:!0})]}),(0,I.jsx)(k,{description:`Are you sure you want to deregister "${r.ImageId}"? The backing snapshot will not be deleted.`,isPending:a.isPending,onConfirm:B,onOpenChange:N,open:m,title:`Deregister Image`}),(0,I.jsx)(O,{onOpenChange:R,open:F,children:(0,I.jsxs)(S,{children:[(0,I.jsxs)(D,{children:[(0,I.jsx)(C,{children:`Promote to System Image`}),(0,I.jsxs)(x,{children:[`This will make “`,r.ImageId,`” visible to all accounts as a system image. This cannot be undone via the UI.`]})]}),(0,I.jsxs)(T,{children:[(0,I.jsx)(E,{children:`Cancel`}),(0,I.jsx)(w,{disabled:c.isPending,onClick:V,children:c.isPending?`Promoting…`:`Promote`})]})]})})]})}export{R as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id24.js b/spinifex/services/spinifexui/frontend/dist/assets/_id24.js index 1b568e072..a74db0e07 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id24.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id24.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{t as o}from"./link.js";import{cn as s,un as c}from"./cluster-config.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./back-link.js";import{c as d,i as f,n as p,s as m,t as h}from"./select.js";import{t as g}from"./rotate-cw.js";import{t as _}from"./trash-2.js";import{t as v}from"./button.js";import{t as y}from"./input.js";import{n as b}from"./admin-context.js";import{a as x,c as S,i as C,s as w}from"./ec2.js";import{J as T,K as E,W as D,Z as O,d as k,i as ee,it as A,nt as j,rt as te}from"./ec22.js";import{f as ne}from"./iam2.js";import{t as re}from"./_id5.js";import{t as ie}from"./page-heading.js";import{i as ae}from"./admin.js";import{n as M,t as N}from"./detail-row.js";import{t as oe}from"./state-badge.js";import{t as se}from"./textarea.js";import{a as ce,t as le}from"./field.js";import{t as P}from"./error-banner.js";import{a as ue,i as de,l as fe,n as pe,o as me,r as he,s as ge,t as _e}from"./alert-dialog.js";import{t as ve}from"./delete-confirmation-dialog.js";import{t as ye}from"./ami-details.js";import{t as be}from"./gpu-instance-type-select.js";var xe=l(`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`}]]),Se=l(`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`}]]),Ce=l(`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`}]]),we=l(`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`}]]),Te=l(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Ee=r(),F=t(n(),1),I=e();function De(e){let t=(0,Ee.c)(36),{instanceId:n,open:r,onOpenChange:i}=e,a=k(),[o,s]=(0,F.useState)(``),[c,l]=(0,F.useState)(``),[u,d]=(0,F.useState)(null),f;t[0]===i?f=t[1]:(f=function(e){e||(s(``),l(``),d(null)),i(e)},t[0]=i,t[1]=f);let p=f,m;t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==n?(m=async function(){try{let e=await a.mutateAsync({instanceId:n,name:o,description:c||void 0});d(e.ImageId??null),s(``),l(``)}catch{}},t[2]=a,t[3]=c,t[4]=o,t[5]=n,t[6]=m):m=t[6];let h=m,g=u?`Image Created`:`Create Image (AMI)`,_;t[7]===g?_=t[8]:(_=(0,I.jsx)(fe,{children:g}),t[7]=g,t[8]=_);let v=u?`Image "${u}" was created successfully.`:`Create an AMI from instance "${n}".`,b;t[9]===v?b=t[10]:(b=(0,I.jsx)(ue,{children:v}),t[9]=v,t[10]=b);let x;t[11]!==_||t[12]!==b?(x=(0,I.jsxs)(ge,{children:[_,b]}),t[11]=_,t[12]=b,t[13]=x):x=t[13];let S;t[14]!==u||t[15]!==c||t[16]!==o?(S=!u&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(le,{children:[(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,I.jsx)(y,{id:`imageName`,onChange:e=>{s(e.target.value)},placeholder:`my-image`,value:o})]}),(0,I.jsxs)(le,{children:[(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,I.jsx)(se,{id:`imageDescription`,onChange:e=>{l(e.target.value)},placeholder:`Optional description`,rows:2,value:c})]})]}),t[14]=u,t[15]=c,t[16]=o,t[17]=S):S=t[17];let C=u?`Close`:`Cancel`,w;t[18]===C?w=t[19]:(w=(0,I.jsx)(he,{children:C}),t[18]=C,t[19]=w);let T;t[20]!==a||t[21]!==u||t[22]!==h||t[23]!==o?(T=!u&&(0,I.jsx)(pe,{disabled:a.isPending||!o.trim(),onClick:h,children:a.isPending?`Creating…`:`Create Image`}),t[20]=a,t[21]=u,t[22]=h,t[23]=o,t[24]=T):T=t[24];let E;t[25]!==w||t[26]!==T?(E=(0,I.jsxs)(me,{children:[w,T]}),t[25]=w,t[26]=T,t[27]=E):E=t[27];let D;t[28]!==E||t[29]!==x||t[30]!==S?(D=(0,I.jsxs)(de,{children:[x,S,E]}),t[28]=E,t[29]=x,t[30]=S,t[31]=D):D=t[31];let O;return t[32]!==p||t[33]!==r||t[34]!==D?(O=(0,I.jsx)(_e,{onOpenChange:p,open:r,children:D}),t[32]=p,t[33]=r,t[34]=D,t[35]=O):O=t[35],O}function Oe(e){let t=(0,Ee.c)(22),{gpu:n}=e;if(!n)return null;let r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,I.jsx)(M.Header,{children:`GPU`}),t[0]=r):r=t[0];let i;t[1]===n.model?i=t[2]:(i=(0,I.jsx)(N,{label:`Model`,value:n.model}),t[1]=n.model,t[2]=i);let a;t[3]===n.vram_mib?a=t[4]:(a=c(n.vram_mib),t[3]=n.vram_mib,t[4]=a);let o;t[5]===a?o=t[6]:(o=(0,I.jsx)(N,{label:`VRAM`,value:a}),t[5]=a,t[6]=o);let s=n.profile?`MIG slice`:`PCIe passthrough`,l;t[7]===s?l=t[8]:(l=(0,I.jsx)(N,{label:`Attachment`,value:s}),t[7]=s,t[8]=l);let u;t[9]===n.profile?u=t[10]:(u=n.profile&&(0,I.jsx)(N,{label:`Profile`,value:n.profile}),t[9]=n.profile,t[10]=u);let d;t[11]===n.mdev_path?d=t[12]:(d=n.mdev_path&&(0,I.jsx)(N,{label:`Mdev path`,value:n.mdev_path}),t[11]=n.mdev_path,t[12]=d);let f;t[13]===n.pci_address?f=t[14]:(f=n.pci_address&&(0,I.jsx)(N,{label:`PCI address`,value:n.pci_address}),t[13]=n.pci_address,t[14]=f);let p;return t[15]!==i||t[16]!==o||t[17]!==l||t[18]!==u||t[19]!==d||t[20]!==f?(p=(0,I.jsxs)(M,{children:[r,(0,I.jsxs)(M.Content,{children:[i,o,l,u,d,f]})]}),t[15]=i,t[16]=o,t[17]=l,t[18]=u,t[19]=d,t[20]=f,t[21]=p):p=t[21],p}function ke(e){let t=(0,Ee.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=C(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(ne),c=ee(),l=D(),[u,f]=(0,F.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(je),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let _=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,x;t[6]!==c||t[7]!==n||t[8]!==u?(x=async()=>{u&&(await c.mutateAsync({instanceId:n,instanceProfileName:u}),f(``))},t[6]=c,t[7]=n,t[8]=u,t[9]=x):x=t[9];let S=x,w;t[10]!==_||t[11]!==l||t[12]!==n?(w=async()=>{_?.AssociationId&&await l.mutateAsync({associationId:_.AssociationId,instanceId:n})},t[10]=_,t[11]=l,t[12]=n,t[13]=w):w=t[13];let T=w,E;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,I.jsx)(M.Header,{children:`IAM Role`}),t[14]=E):E=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,I.jsx)(`div`,{className:`col-span-2`,children:(0,I.jsx)(P,{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,I.jsx)(`div`,{className:`col-span-2`,children:(0,I.jsx)(P,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==_||t[21]!==l.isPending||t[22]!==S||t[23]!==T||t[24]!==b||t[25]!==u?(A=_?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N,{label:`Instance Profile ARN`,value:_.IamInstanceProfile?.Arn}),(0,I.jsx)(N,{label:`State`,value:(0,I.jsx)(oe,{state:_.State})}),(0,I.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,I.jsx)(v,{disabled:l.isPending,onClick:T,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,I.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,I.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,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxs)(h,{onValueChange:e=>{f(e??``)},value:u,children:[(0,I.jsx)(m,{className:`w-full`,children:(0,I.jsx)(d,{placeholder:`Select an instance profile`})}),(0,I.jsx)(p,{children:b.map(Ae)})]}),(0,I.jsx)(v,{disabled:!u||c.isPending,onClick:S,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,I.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,I.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=_,t[21]=l.isPending,t[22]=S,t[23]=T,t[24]=b,t[25]=u,t[26]=A):A=t[26];let j;return t[27]!==O||t[28]!==k||t[29]!==A?(j=(0,I.jsxs)(M,{children:[E,(0,I.jsxs)(M.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=j):j=t[30],j}function Ae(e){return(0,I.jsx)(f,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function je(e){return e.State===`associating`||e.State===`associated`}var L=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function Me(e){let t=(0,Ee.c)(43),{instanceId:n,state:r}=e,i=j(),a=te(),o=O(),s=A(),[c,l]=(0,F.useState)(!1),u=L.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,I.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,I.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,I.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,I.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,I.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,I.jsx)(P,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let h;t[9]===a.error?h=t[10]:(h=a.error&&(0,I.jsx)(P,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=h);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,I.jsx)(P,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let b;t[13]===s.error?b=t[14]:(b=s.error&&(0,I.jsx)(P,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=b);let x;t[15]!==n||t[16]!==i||t[17]!==r?(x=r===`stopped`&&(0,I.jsxs)(v,{disabled:i.isPending,onClick:()=>{i.mutate(n)},size:`sm`,variant:`default`,children:[(0,I.jsx)(Ce,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=x):x=t[18];let S;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(S=r===`running`&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(v,{disabled:a.isPending,onClick:()=>{a.mutate(n)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(Se,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,I.jsxs)(v,{disabled:o.isPending,onClick:()=>{o.mutate(n)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(g,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=S):S=t[23];let C;t[24]!==r||t[25]!==s.isPending?(C=(r===`stopped`||r===`running`)&&(0,I.jsxs)(v,{disabled:s.isPending,onClick:()=>{l(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(_,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=C):C=t[26];let w;t[27]!==x||t[28]!==S||t[29]!==C?(w=(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[x,S,C]}),t[27]=x,t[28]=S,t[29]=C,t[30]=w):w=t[30];let T=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,E;t[31]!==f||t[32]!==c||t[33]!==T||t[34]!==s.isPending?(E=(0,I.jsx)(ve,{confirmLabel:`Terminate`,description:T,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=T,t[34]=s.isPending,t[35]=E):E=t[35];let D;return t[36]!==w||t[37]!==E||t[38]!==m||t[39]!==h||t[40]!==y||t[41]!==b?(D=(0,I.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,h,y,b,w,E]}),t[36]=w,t[37]=E,t[38]=m,t[39]=h,t[40]=y,t[41]=b,t[42]=D):D=t[42],D}function R(){let e=(0,Ee.c)(136),{id:t}=re.useParams(),{isAdmin:n}=b(),r;e[0]===t?r=e[1]:(r=w(t),e[0]=t,e[1]=r);let{data:c}=a(r),l=c.Reservations?.[0]?.Instances?.[0],d=l?.ImageId,f;e[2]===d?f=e[3]:(f=x(d),e[2]=d,e[3]=f);let{data:p}=a(f),m=p?.Images?.[0],{data:h}=a(S),g;e[4]===n?g=e[5]:(g={...ae,enabled:n,refetchInterval:5e3},e[4]=n,e[5]=g);let{data:_}=i(g),y;e[6]!==t||e[7]!==_?.vms?(y=_?.vms?.find(e=>e.instance_id===t),e[6]=t,e[7]=_?.vms,e[8]=y):y=e[8];let C=y,D=T(),O=E(),[k,ee]=(0,F.useState)(!1),[A,j]=(0,F.useState)(``),[te,ne]=(0,F.useState)(!1),[se,ve]=(0,F.useState)(null),[Se,Ce]=(0,F.useState)(!1);if(!l?.InstanceId){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]}),e[9]=t):t=e[9],t}let Ae;e[10]===l.LaunchTime?Ae=e[11]:(Ae=s(l.LaunchTime),e[10]=l.LaunchTime,e[11]=Ae);let je=Ae,L=l.State?.Name===`running`,R=l.State?.Name===`stopped`,Fe;e[12]!==t||e[13]!==D||e[14]!==A?(Fe=async function(){try{await D.mutateAsync({instanceId:t,instanceType:A}),ee(!1),j(``)}catch{}},e[12]=t,e[13]=D,e[14]=A,e[15]=Fe):Fe=e[15];let Ie=Fe,Le;e[16]!==O||e[17]!==t?(Le=async function(){try{let e=await O.mutateAsync(t),n=e.Output?atob(e.Output):`(no output)`;ve(n),ne(!0)}catch{}},e[16]=O,e[17]=t,e[18]=Le):Le=e[18];let Re=Le,ze;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,I.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),e[19]=ze):ze=e[19];let z;e[20]===D.error?z=e[21]:(z=D.error&&(0,I.jsx)(P,{error:D.error,msg:`Failed to modify instance`}),e[20]=D.error,e[21]=z);let B;e[22]===O.error?B=e[23]:(B=O.error&&(0,I.jsx)(P,{error:O.error,msg:`Failed to get console output`}),e[22]=O.error,e[23]=B);let V;e[24]!==O.isPending||e[25]!==Re||e[26]!==L?(V=L&&(0,I.jsxs)(v,{disabled:O.isPending,onClick:Re,size:`sm`,variant:`outline`,children:[(0,I.jsx)(Te,{className:`size-4`}),O.isPending?`Fetching…`:`View Console`]}),e[24]=O.isPending,e[25]=Re,e[26]=L,e[27]=V):V=e[27];let H;e[28]!==L||e[29]!==R?(H=(L||R)&&(0,I.jsxs)(v,{onClick:()=>{Ce(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(xe,{className:`size-4`}),`Create Image`]}),e[28]=L,e[29]=R,e[30]=H):H=e[30];let U;e[31]!==l.InstanceType||e[32]!==R?(U=R&&(0,I.jsxs)(v,{onClick:()=>{j(l.InstanceType??``),ee(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(we,{className:`size-4`}),`Modify Instance`]}),e[31]=l.InstanceType,e[32]=R,e[33]=U):U=e[33];let Be=l.State?.Name,W;e[34]===Be?W=e[35]:(W=(0,I.jsx)(oe,{state:Be}),e[34]=Be,e[35]=W);let G;e[36]!==V||e[37]!==H||e[38]!==U||e[39]!==W?(G=(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[V,H,U,W]}),e[36]=V,e[37]=H,e[38]=U,e[39]=W,e[40]=G):G=e[40];let K;e[41]!==l.InstanceId||e[42]!==G?(K=(0,I.jsx)(ie,{actions:G,subtitle:`Instance Details`,title:l.InstanceId}),e[41]=l.InstanceId,e[42]=G,e[43]=K):K=e[43];let Ve=l.State?.Name,q;e[44]!==l.InstanceId||e[45]!==Ve?(q=(0,I.jsx)(Me,{instanceId:l.InstanceId,state:Ve}),e[44]=l.InstanceId,e[45]=Ve,e[46]=q):q=e[46];let J;e[47]!==se||e[48]!==te?(J=te&&se!==null&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:(0,I.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,I.jsx)(v,{onClick:()=>{ne(!1),ve(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,I.jsx)(`div`,{className:`p-4`,children:(0,I.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:se})})]}),e[47]=se,e[48]=te,e[49]=J):J=e[49];let He;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,I.jsx)(M.Header,{children:`Instance Information`}),e[50]=He):He=e[50];let Y;e[51]===l.InstanceId?Y=e[52]:(Y=(0,I.jsx)(N,{label:`Instance ID`,value:l.InstanceId}),e[51]=l.InstanceId,e[52]=Y);let X;e[53]===l.InstanceType?X=e[54]:(X=(0,I.jsx)(N,{label:`Instance Type`,value:l.InstanceType}),e[53]=l.InstanceType,e[54]=X);let Ue=l.State?.Name,Z;e[55]===Ue?Z=e[56]:(Z=(0,I.jsx)(N,{label:`Instance State`,value:Ue}),e[55]=Ue,e[56]=Z);let We;e[57]===l.State?.Code?We=e[58]:(We=l.State?.Code?.toString(),e[57]=l.State?.Code,e[58]=We);let Ge;e[59]===We?Ge=e[60]:(Ge=(0,I.jsx)(N,{label:`State Code`,value:We}),e[59]=We,e[60]=Ge);let Ke;e[61]===je?Ke=e[62]:(Ke=(0,I.jsx)(N,{label:`Launch Time`,value:je}),e[61]=je,e[62]=Ke);let qe=l.Placement?.AvailabilityZone,Je;e[63]===qe?Je=e[64]:(Je=(0,I.jsx)(N,{label:`Availability Zone`,value:qe}),e[63]=qe,e[64]=Je);let Ye;e[65]===l.Placement?Ye=e[66]:(Ye=l.Placement?.GroupName?(0,I.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:l.Placement.GroupName}):void 0,e[65]=l.Placement,e[66]=Ye);let Xe;e[67]===Ye?Xe=e[68]:(Xe=(0,I.jsx)(N,{label:`Placement Group`,value:Ye}),e[67]=Ye,e[68]=Xe);let Ze;e[69]!==Y||e[70]!==X||e[71]!==Z||e[72]!==Ge||e[73]!==Ke||e[74]!==Je||e[75]!==Xe?(Ze=(0,I.jsxs)(M,{children:[He,(0,I.jsxs)(M.Content,{children:[Y,X,Z,Ge,Ke,Je,Xe]})]}),e[69]=Y,e[70]=X,e[71]=Z,e[72]=Ge,e[73]=Ke,e[74]=Je,e[75]=Xe,e[76]=Ze):Ze=e[76];let Qe;e[77]!==l.KeyName||e[78]!==l.PrivateDnsName||e[79]!==l.PrivateIpAddress||e[80]!==l.PublicDnsName||e[81]!==l.PublicIpAddress||e[82]!==l.SecurityGroups||e[83]!==l.SubnetId||e[84]!==l.VpcId?(Qe=(l.PrivateIpAddress||l.PublicIpAddress||l.VpcId||l.SubnetId||l.SecurityGroups&&l.SecurityGroups.length>0)&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:`Network & Security`}),(0,I.jsxs)(M.Content,{children:[(0,I.jsx)(N,{label:`Private IP Address`,value:l.PrivateIpAddress}),(0,I.jsx)(N,{label:`Public IP Address`,value:l.PublicIpAddress}),(0,I.jsx)(N,{label:`Private DNS`,value:l.PrivateDnsName}),(0,I.jsx)(N,{label:`Public DNS`,value:l.PublicDnsName}),(0,I.jsx)(N,{label:`VPC ID`,value:l.VpcId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.VpcId},to:`/ec2/describe-vpcs/$id`,children:l.VpcId}):void 0}),(0,I.jsx)(N,{label:`Subnet ID`,value:l.SubnetId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.SubnetId},to:`/ec2/describe-subnets/$id`,children:l.SubnetId}):void 0}),(0,I.jsx)(N,{label:`Key Name`,value:l.KeyName}),(0,I.jsx)(N,{label:`Security Groups`,value:l.SecurityGroups?.map(Pe).join(`, `)})]})]}),e[77]=l.KeyName,e[78]=l.PrivateDnsName,e[79]=l.PrivateIpAddress,e[80]=l.PublicDnsName,e[81]=l.PublicIpAddress,e[82]=l.SecurityGroups,e[83]=l.SubnetId,e[84]=l.VpcId,e[85]=Qe):Qe=e[85];let $e;e[86]===l.InstanceId?$e=e[87]:($e=(0,I.jsx)(ke,{instanceId:l.InstanceId}),e[86]=l.InstanceId,e[87]=$e);let et;e[88]!==n||e[89]!==C?.gpu?(et=n&&(0,I.jsx)(Oe,{gpu:C?.gpu}),e[88]=n,e[89]=C?.gpu,e[90]=et):et=e[90];let tt;e[91]===l.BlockDeviceMappings?tt=e[92]:(tt=l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:`Block Device Mappings`}),l.BlockDeviceMappings.map(Ne)]}),e[91]=l.BlockDeviceMappings,e[92]=tt);let nt;e[93]===m?nt=e[94]:(nt=m&&(0,I.jsx)(ye,{image:m}),e[93]=m,e[94]=nt);let Q;e[95]!==K||e[96]!==q||e[97]!==J||e[98]!==Ze||e[99]!==Qe||e[100]!==$e||e[101]!==et||e[102]!==tt||e[103]!==nt?(Q=(0,I.jsxs)(`div`,{className:`space-y-6`,children:[K,q,J,Ze,Qe,$e,et,tt,nt]}),e[95]=K,e[96]=q,e[97]=J,e[98]=Ze,e[99]=Qe,e[100]=$e,e[101]=et,e[102]=tt,e[103]=nt,e[104]=Q):Q=e[104];let rt;e[105]===Symbol.for(`react.memo_cache_sentinel`)?(rt=e=>{e||(ee(!1),j(``))},e[105]=rt):rt=e[105];let it;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,I.jsx)(fe,{children:`Modify Instance`}),e[106]=it):it=e[106];let at;e[107]===l.InstanceId?at=e[108]:(at=(0,I.jsxs)(ge,{children:[it,(0,I.jsxs)(ue,{children:[`Select a new instance type for "`,l.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),e[107]=l.InstanceId,e[108]=at);let ot;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),e[109]=ot):ot=e[109];let st;e[110]===h.InstanceTypes?st=e[111]:(st=h.InstanceTypes??[],e[110]=h.InstanceTypes,e[111]=st);let ct;e[112]!==A||e[113]!==st?(ct=(0,I.jsxs)(le,{children:[ot,(0,I.jsx)(be,{className:`w-full`,id:`instanceType`,instanceTypes:st,onValueChange:j,value:A})]}),e[112]=A,e[113]=st,e[114]=ct):ct=e[114];let lt;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,I.jsx)(he,{children:`Cancel`}),e[115]=lt):lt=e[115];let ut=D.isPending||!A||A===l.InstanceType,dt=D.isPending?`Saving…`:`Save Changes`,ft;e[116]!==Ie||e[117]!==ut||e[118]!==dt?(ft=(0,I.jsxs)(me,{children:[lt,(0,I.jsx)(pe,{disabled:ut,onClick:Ie,children:dt})]}),e[116]=Ie,e[117]=ut,e[118]=dt,e[119]=ft):ft=e[119];let pt;e[120]!==at||e[121]!==ct||e[122]!==ft?(pt=(0,I.jsxs)(de,{children:[at,ct,ft]}),e[120]=at,e[121]=ct,e[122]=ft,e[123]=pt):pt=e[123];let mt;e[124]!==k||e[125]!==pt?(mt=(0,I.jsx)(_e,{onOpenChange:rt,open:k,children:pt}),e[124]=k,e[125]=pt,e[126]=mt):mt=e[126];let $;e[127]!==l.InstanceId||e[128]!==Se?($=(0,I.jsx)(De,{instanceId:l.InstanceId,onOpenChange:Ce,open:Se}),e[127]=l.InstanceId,e[128]=Se,e[129]=$):$=e[129];let ht;return e[130]!==B||e[131]!==Q||e[132]!==mt||e[133]!==$||e[134]!==z?(ht=(0,I.jsxs)(I.Fragment,{children:[ze,z,B,Q,mt,$]}),e[130]=B,e[131]=Q,e[132]=mt,e[133]=$,e[134]=z,e[135]=ht):ht=e[135],ht}function Ne(e){return(0,I.jsxs)(M.Content,{children:[(0,I.jsx)(N,{label:`Device Name`,value:e.DeviceName}),(0,I.jsx)(N,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,I.jsx)(N,{label:`Status`,value:e.Ebs?.Status}),(0,I.jsx)(N,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,I.jsx)(N,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName)}function Pe(e){return e.GroupName}export{R as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{t as o}from"./link.js";import{cn as s,un as c}from"./cluster-config.js";import{t as l}from"./createLucideIcon.js";import{t as u}from"./back-link.js";import{c as d,i as f,n as p,s as m,t as h}from"./select.js";import{t as g}from"./rotate-cw.js";import{t as _}from"./trash-2.js";import{t as v}from"./button.js";import{t as y}from"./input.js";import{n as b}from"./admin-context.js";import{a as x,c as S,i as C,s as w}from"./ec2.js";import{J as T,K as E,W as D,Z as O,d as k,i as ee,it as A,nt as j,rt as te}from"./ec22.js";import{f as ne}from"./iam2.js";import{t as re}from"./_id5.js";import{t as ie}from"./page-heading.js";import{o as ae}from"./admin.js";import{n as M,t as N}from"./detail-row.js";import{t as oe}from"./state-badge.js";import{t as se}from"./textarea.js";import{a as ce,t as le}from"./field.js";import{t as P}from"./error-banner.js";import{a as ue,i as de,l as fe,n as pe,o as me,r as he,s as ge,t as _e}from"./alert-dialog.js";import{t as ve}from"./delete-confirmation-dialog.js";import{t as ye}from"./ami-details.js";import{t as be}from"./gpu-instance-type-select.js";var xe=l(`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`}]]),Se=l(`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`}]]),Ce=l(`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`}]]),we=l(`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`}]]),Te=l(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Ee=r(),F=t(n(),1),I=e();function De(e){let t=(0,Ee.c)(36),{instanceId:n,open:r,onOpenChange:i}=e,a=k(),[o,s]=(0,F.useState)(``),[c,l]=(0,F.useState)(``),[u,d]=(0,F.useState)(null),f;t[0]===i?f=t[1]:(f=function(e){e||(s(``),l(``),d(null)),i(e)},t[0]=i,t[1]=f);let p=f,m;t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==n?(m=async function(){try{let e=await a.mutateAsync({instanceId:n,name:o,description:c||void 0});d(e.ImageId??null),s(``),l(``)}catch{}},t[2]=a,t[3]=c,t[4]=o,t[5]=n,t[6]=m):m=t[6];let h=m,g=u?`Image Created`:`Create Image (AMI)`,_;t[7]===g?_=t[8]:(_=(0,I.jsx)(fe,{children:g}),t[7]=g,t[8]=_);let v=u?`Image "${u}" was created successfully.`:`Create an AMI from instance "${n}".`,b;t[9]===v?b=t[10]:(b=(0,I.jsx)(ue,{children:v}),t[9]=v,t[10]=b);let x;t[11]!==_||t[12]!==b?(x=(0,I.jsxs)(ge,{children:[_,b]}),t[11]=_,t[12]=b,t[13]=x):x=t[13];let S;t[14]!==u||t[15]!==c||t[16]!==o?(S=!u&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(le,{children:[(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,I.jsx)(y,{id:`imageName`,onChange:e=>{s(e.target.value)},placeholder:`my-image`,value:o})]}),(0,I.jsxs)(le,{children:[(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,I.jsx)(se,{id:`imageDescription`,onChange:e=>{l(e.target.value)},placeholder:`Optional description`,rows:2,value:c})]})]}),t[14]=u,t[15]=c,t[16]=o,t[17]=S):S=t[17];let C=u?`Close`:`Cancel`,w;t[18]===C?w=t[19]:(w=(0,I.jsx)(he,{children:C}),t[18]=C,t[19]=w);let T;t[20]!==a||t[21]!==u||t[22]!==h||t[23]!==o?(T=!u&&(0,I.jsx)(pe,{disabled:a.isPending||!o.trim(),onClick:h,children:a.isPending?`Creating…`:`Create Image`}),t[20]=a,t[21]=u,t[22]=h,t[23]=o,t[24]=T):T=t[24];let E;t[25]!==w||t[26]!==T?(E=(0,I.jsxs)(me,{children:[w,T]}),t[25]=w,t[26]=T,t[27]=E):E=t[27];let D;t[28]!==E||t[29]!==x||t[30]!==S?(D=(0,I.jsxs)(de,{children:[x,S,E]}),t[28]=E,t[29]=x,t[30]=S,t[31]=D):D=t[31];let O;return t[32]!==p||t[33]!==r||t[34]!==D?(O=(0,I.jsx)(_e,{onOpenChange:p,open:r,children:D}),t[32]=p,t[33]=r,t[34]=D,t[35]=O):O=t[35],O}function Oe(e){let t=(0,Ee.c)(22),{gpu:n}=e;if(!n)return null;let r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,I.jsx)(M.Header,{children:`GPU`}),t[0]=r):r=t[0];let i;t[1]===n.model?i=t[2]:(i=(0,I.jsx)(N,{label:`Model`,value:n.model}),t[1]=n.model,t[2]=i);let a;t[3]===n.vram_mib?a=t[4]:(a=c(n.vram_mib),t[3]=n.vram_mib,t[4]=a);let o;t[5]===a?o=t[6]:(o=(0,I.jsx)(N,{label:`VRAM`,value:a}),t[5]=a,t[6]=o);let s=n.profile?`MIG slice`:`PCIe passthrough`,l;t[7]===s?l=t[8]:(l=(0,I.jsx)(N,{label:`Attachment`,value:s}),t[7]=s,t[8]=l);let u;t[9]===n.profile?u=t[10]:(u=n.profile&&(0,I.jsx)(N,{label:`Profile`,value:n.profile}),t[9]=n.profile,t[10]=u);let d;t[11]===n.mdev_path?d=t[12]:(d=n.mdev_path&&(0,I.jsx)(N,{label:`Mdev path`,value:n.mdev_path}),t[11]=n.mdev_path,t[12]=d);let f;t[13]===n.pci_address?f=t[14]:(f=n.pci_address&&(0,I.jsx)(N,{label:`PCI address`,value:n.pci_address}),t[13]=n.pci_address,t[14]=f);let p;return t[15]!==i||t[16]!==o||t[17]!==l||t[18]!==u||t[19]!==d||t[20]!==f?(p=(0,I.jsxs)(M,{children:[r,(0,I.jsxs)(M.Content,{children:[i,o,l,u,d,f]})]}),t[15]=i,t[16]=o,t[17]=l,t[18]=u,t[19]=d,t[20]=f,t[21]=p):p=t[21],p}function ke(e){let t=(0,Ee.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=C(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(ne),c=ee(),l=D(),[u,f]=(0,F.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(je),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let _=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,x;t[6]!==c||t[7]!==n||t[8]!==u?(x=async()=>{u&&(await c.mutateAsync({instanceId:n,instanceProfileName:u}),f(``))},t[6]=c,t[7]=n,t[8]=u,t[9]=x):x=t[9];let S=x,w;t[10]!==_||t[11]!==l||t[12]!==n?(w=async()=>{_?.AssociationId&&await l.mutateAsync({associationId:_.AssociationId,instanceId:n})},t[10]=_,t[11]=l,t[12]=n,t[13]=w):w=t[13];let T=w,E;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,I.jsx)(M.Header,{children:`IAM Role`}),t[14]=E):E=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,I.jsx)(`div`,{className:`col-span-2`,children:(0,I.jsx)(P,{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,I.jsx)(`div`,{className:`col-span-2`,children:(0,I.jsx)(P,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==_||t[21]!==l.isPending||t[22]!==S||t[23]!==T||t[24]!==b||t[25]!==u?(A=_?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N,{label:`Instance Profile ARN`,value:_.IamInstanceProfile?.Arn}),(0,I.jsx)(N,{label:`State`,value:(0,I.jsx)(oe,{state:_.State})}),(0,I.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,I.jsx)(v,{disabled:l.isPending,onClick:T,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,I.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,I.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,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxs)(h,{onValueChange:e=>{f(e??``)},value:u,children:[(0,I.jsx)(m,{className:`w-full`,children:(0,I.jsx)(d,{placeholder:`Select an instance profile`})}),(0,I.jsx)(p,{children:b.map(Ae)})]}),(0,I.jsx)(v,{disabled:!u||c.isPending,onClick:S,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,I.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,I.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=_,t[21]=l.isPending,t[22]=S,t[23]=T,t[24]=b,t[25]=u,t[26]=A):A=t[26];let j;return t[27]!==O||t[28]!==k||t[29]!==A?(j=(0,I.jsxs)(M,{children:[E,(0,I.jsxs)(M.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=j):j=t[30],j}function Ae(e){return(0,I.jsx)(f,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function je(e){return e.State===`associating`||e.State===`associated`}var L=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function Me(e){let t=(0,Ee.c)(43),{instanceId:n,state:r}=e,i=j(),a=te(),o=O(),s=A(),[c,l]=(0,F.useState)(!1),u=L.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,I.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,I.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,I.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,I.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,I.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,I.jsx)(P,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let h;t[9]===a.error?h=t[10]:(h=a.error&&(0,I.jsx)(P,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=h);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,I.jsx)(P,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let b;t[13]===s.error?b=t[14]:(b=s.error&&(0,I.jsx)(P,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=b);let x;t[15]!==n||t[16]!==i||t[17]!==r?(x=r===`stopped`&&(0,I.jsxs)(v,{disabled:i.isPending,onClick:()=>{i.mutate(n)},size:`sm`,variant:`default`,children:[(0,I.jsx)(Ce,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=x):x=t[18];let S;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(S=r===`running`&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(v,{disabled:a.isPending,onClick:()=>{a.mutate(n)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(Se,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,I.jsxs)(v,{disabled:o.isPending,onClick:()=>{o.mutate(n)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(g,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=S):S=t[23];let C;t[24]!==r||t[25]!==s.isPending?(C=(r===`stopped`||r===`running`)&&(0,I.jsxs)(v,{disabled:s.isPending,onClick:()=>{l(!0)},size:`sm`,variant:`destructive`,children:[(0,I.jsx)(_,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=C):C=t[26];let w;t[27]!==x||t[28]!==S||t[29]!==C?(w=(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[x,S,C]}),t[27]=x,t[28]=S,t[29]=C,t[30]=w):w=t[30];let T=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,E;t[31]!==f||t[32]!==c||t[33]!==T||t[34]!==s.isPending?(E=(0,I.jsx)(ve,{confirmLabel:`Terminate`,description:T,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=T,t[34]=s.isPending,t[35]=E):E=t[35];let D;return t[36]!==w||t[37]!==E||t[38]!==m||t[39]!==h||t[40]!==y||t[41]!==b?(D=(0,I.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,h,y,b,w,E]}),t[36]=w,t[37]=E,t[38]=m,t[39]=h,t[40]=y,t[41]=b,t[42]=D):D=t[42],D}function R(){let e=(0,Ee.c)(136),{id:t}=re.useParams(),{isAdmin:n}=b(),r;e[0]===t?r=e[1]:(r=w(t),e[0]=t,e[1]=r);let{data:c}=a(r),l=c.Reservations?.[0]?.Instances?.[0],d=l?.ImageId,f;e[2]===d?f=e[3]:(f=x(d),e[2]=d,e[3]=f);let{data:p}=a(f),m=p?.Images?.[0],{data:h}=a(S),g;e[4]===n?g=e[5]:(g={...ae,enabled:n,refetchInterval:5e3},e[4]=n,e[5]=g);let{data:_}=i(g),y;e[6]!==t||e[7]!==_?.vms?(y=_?.vms?.find(e=>e.instance_id===t),e[6]=t,e[7]=_?.vms,e[8]=y):y=e[8];let C=y,D=T(),O=E(),[k,ee]=(0,F.useState)(!1),[A,j]=(0,F.useState)(``),[te,ne]=(0,F.useState)(!1),[se,ve]=(0,F.useState)(null),[Se,Ce]=(0,F.useState)(!1);if(!l?.InstanceId){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,I.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]}),e[9]=t):t=e[9],t}let Ae;e[10]===l.LaunchTime?Ae=e[11]:(Ae=s(l.LaunchTime),e[10]=l.LaunchTime,e[11]=Ae);let je=Ae,L=l.State?.Name===`running`,R=l.State?.Name===`stopped`,Fe;e[12]!==t||e[13]!==D||e[14]!==A?(Fe=async function(){try{await D.mutateAsync({instanceId:t,instanceType:A}),ee(!1),j(``)}catch{}},e[12]=t,e[13]=D,e[14]=A,e[15]=Fe):Fe=e[15];let Ie=Fe,Le;e[16]!==O||e[17]!==t?(Le=async function(){try{let e=await O.mutateAsync(t),n=e.Output?atob(e.Output):`(no output)`;ve(n),ne(!0)}catch{}},e[16]=O,e[17]=t,e[18]=Le):Le=e[18];let Re=Le,ze;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,I.jsx)(u,{to:`/ec2/describe-instances`,children:`Back to instances`}),e[19]=ze):ze=e[19];let z;e[20]===D.error?z=e[21]:(z=D.error&&(0,I.jsx)(P,{error:D.error,msg:`Failed to modify instance`}),e[20]=D.error,e[21]=z);let B;e[22]===O.error?B=e[23]:(B=O.error&&(0,I.jsx)(P,{error:O.error,msg:`Failed to get console output`}),e[22]=O.error,e[23]=B);let V;e[24]!==O.isPending||e[25]!==Re||e[26]!==L?(V=L&&(0,I.jsxs)(v,{disabled:O.isPending,onClick:Re,size:`sm`,variant:`outline`,children:[(0,I.jsx)(Te,{className:`size-4`}),O.isPending?`Fetching…`:`View Console`]}),e[24]=O.isPending,e[25]=Re,e[26]=L,e[27]=V):V=e[27];let H;e[28]!==L||e[29]!==R?(H=(L||R)&&(0,I.jsxs)(v,{onClick:()=>{Ce(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(xe,{className:`size-4`}),`Create Image`]}),e[28]=L,e[29]=R,e[30]=H):H=e[30];let U;e[31]!==l.InstanceType||e[32]!==R?(U=R&&(0,I.jsxs)(v,{onClick:()=>{j(l.InstanceType??``),ee(!0)},size:`sm`,variant:`outline`,children:[(0,I.jsx)(we,{className:`size-4`}),`Modify Instance`]}),e[31]=l.InstanceType,e[32]=R,e[33]=U):U=e[33];let Be=l.State?.Name,W;e[34]===Be?W=e[35]:(W=(0,I.jsx)(oe,{state:Be}),e[34]=Be,e[35]=W);let G;e[36]!==V||e[37]!==H||e[38]!==U||e[39]!==W?(G=(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[V,H,U,W]}),e[36]=V,e[37]=H,e[38]=U,e[39]=W,e[40]=G):G=e[40];let K;e[41]!==l.InstanceId||e[42]!==G?(K=(0,I.jsx)(ie,{actions:G,subtitle:`Instance Details`,title:l.InstanceId}),e[41]=l.InstanceId,e[42]=G,e[43]=K):K=e[43];let Ve=l.State?.Name,q;e[44]!==l.InstanceId||e[45]!==Ve?(q=(0,I.jsx)(Me,{instanceId:l.InstanceId,state:Ve}),e[44]=l.InstanceId,e[45]=Ve,e[46]=q):q=e[46];let J;e[47]!==se||e[48]!==te?(J=te&&se!==null&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:(0,I.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,I.jsx)(v,{onClick:()=>{ne(!1),ve(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,I.jsx)(`div`,{className:`p-4`,children:(0,I.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:se})})]}),e[47]=se,e[48]=te,e[49]=J):J=e[49];let He;e[50]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,I.jsx)(M.Header,{children:`Instance Information`}),e[50]=He):He=e[50];let Y;e[51]===l.InstanceId?Y=e[52]:(Y=(0,I.jsx)(N,{label:`Instance ID`,value:l.InstanceId}),e[51]=l.InstanceId,e[52]=Y);let X;e[53]===l.InstanceType?X=e[54]:(X=(0,I.jsx)(N,{label:`Instance Type`,value:l.InstanceType}),e[53]=l.InstanceType,e[54]=X);let Ue=l.State?.Name,Z;e[55]===Ue?Z=e[56]:(Z=(0,I.jsx)(N,{label:`Instance State`,value:Ue}),e[55]=Ue,e[56]=Z);let We;e[57]===l.State?.Code?We=e[58]:(We=l.State?.Code?.toString(),e[57]=l.State?.Code,e[58]=We);let Ge;e[59]===We?Ge=e[60]:(Ge=(0,I.jsx)(N,{label:`State Code`,value:We}),e[59]=We,e[60]=Ge);let Ke;e[61]===je?Ke=e[62]:(Ke=(0,I.jsx)(N,{label:`Launch Time`,value:je}),e[61]=je,e[62]=Ke);let qe=l.Placement?.AvailabilityZone,Je;e[63]===qe?Je=e[64]:(Je=(0,I.jsx)(N,{label:`Availability Zone`,value:qe}),e[63]=qe,e[64]=Je);let Ye;e[65]===l.Placement?Ye=e[66]:(Ye=l.Placement?.GroupName?(0,I.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:l.Placement.GroupName}):void 0,e[65]=l.Placement,e[66]=Ye);let Xe;e[67]===Ye?Xe=e[68]:(Xe=(0,I.jsx)(N,{label:`Placement Group`,value:Ye}),e[67]=Ye,e[68]=Xe);let Ze;e[69]!==Y||e[70]!==X||e[71]!==Z||e[72]!==Ge||e[73]!==Ke||e[74]!==Je||e[75]!==Xe?(Ze=(0,I.jsxs)(M,{children:[He,(0,I.jsxs)(M.Content,{children:[Y,X,Z,Ge,Ke,Je,Xe]})]}),e[69]=Y,e[70]=X,e[71]=Z,e[72]=Ge,e[73]=Ke,e[74]=Je,e[75]=Xe,e[76]=Ze):Ze=e[76];let Qe;e[77]!==l.KeyName||e[78]!==l.PrivateDnsName||e[79]!==l.PrivateIpAddress||e[80]!==l.PublicDnsName||e[81]!==l.PublicIpAddress||e[82]!==l.SecurityGroups||e[83]!==l.SubnetId||e[84]!==l.VpcId?(Qe=(l.PrivateIpAddress||l.PublicIpAddress||l.VpcId||l.SubnetId||l.SecurityGroups&&l.SecurityGroups.length>0)&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:`Network & Security`}),(0,I.jsxs)(M.Content,{children:[(0,I.jsx)(N,{label:`Private IP Address`,value:l.PrivateIpAddress}),(0,I.jsx)(N,{label:`Public IP Address`,value:l.PublicIpAddress}),(0,I.jsx)(N,{label:`Private DNS`,value:l.PrivateDnsName}),(0,I.jsx)(N,{label:`Public DNS`,value:l.PublicDnsName}),(0,I.jsx)(N,{label:`VPC ID`,value:l.VpcId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.VpcId},to:`/ec2/describe-vpcs/$id`,children:l.VpcId}):void 0}),(0,I.jsx)(N,{label:`Subnet ID`,value:l.SubnetId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:l.SubnetId},to:`/ec2/describe-subnets/$id`,children:l.SubnetId}):void 0}),(0,I.jsx)(N,{label:`Key Name`,value:l.KeyName}),(0,I.jsx)(N,{label:`Security Groups`,value:l.SecurityGroups?.map(Pe).join(`, `)})]})]}),e[77]=l.KeyName,e[78]=l.PrivateDnsName,e[79]=l.PrivateIpAddress,e[80]=l.PublicDnsName,e[81]=l.PublicIpAddress,e[82]=l.SecurityGroups,e[83]=l.SubnetId,e[84]=l.VpcId,e[85]=Qe):Qe=e[85];let $e;e[86]===l.InstanceId?$e=e[87]:($e=(0,I.jsx)(ke,{instanceId:l.InstanceId}),e[86]=l.InstanceId,e[87]=$e);let et;e[88]!==n||e[89]!==C?.gpu?(et=n&&(0,I.jsx)(Oe,{gpu:C?.gpu}),e[88]=n,e[89]=C?.gpu,e[90]=et):et=e[90];let tt;e[91]===l.BlockDeviceMappings?tt=e[92]:(tt=l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&(0,I.jsxs)(M,{children:[(0,I.jsx)(M.Header,{children:`Block Device Mappings`}),l.BlockDeviceMappings.map(Ne)]}),e[91]=l.BlockDeviceMappings,e[92]=tt);let nt;e[93]===m?nt=e[94]:(nt=m&&(0,I.jsx)(ye,{image:m}),e[93]=m,e[94]=nt);let Q;e[95]!==K||e[96]!==q||e[97]!==J||e[98]!==Ze||e[99]!==Qe||e[100]!==$e||e[101]!==et||e[102]!==tt||e[103]!==nt?(Q=(0,I.jsxs)(`div`,{className:`space-y-6`,children:[K,q,J,Ze,Qe,$e,et,tt,nt]}),e[95]=K,e[96]=q,e[97]=J,e[98]=Ze,e[99]=Qe,e[100]=$e,e[101]=et,e[102]=tt,e[103]=nt,e[104]=Q):Q=e[104];let rt;e[105]===Symbol.for(`react.memo_cache_sentinel`)?(rt=e=>{e||(ee(!1),j(``))},e[105]=rt):rt=e[105];let it;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,I.jsx)(fe,{children:`Modify Instance`}),e[106]=it):it=e[106];let at;e[107]===l.InstanceId?at=e[108]:(at=(0,I.jsxs)(ge,{children:[it,(0,I.jsxs)(ue,{children:[`Select a new instance type for "`,l.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),e[107]=l.InstanceId,e[108]=at);let ot;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,I.jsx)(ce,{children:(0,I.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),e[109]=ot):ot=e[109];let st;e[110]===h.InstanceTypes?st=e[111]:(st=h.InstanceTypes??[],e[110]=h.InstanceTypes,e[111]=st);let ct;e[112]!==A||e[113]!==st?(ct=(0,I.jsxs)(le,{children:[ot,(0,I.jsx)(be,{className:`w-full`,id:`instanceType`,instanceTypes:st,onValueChange:j,value:A})]}),e[112]=A,e[113]=st,e[114]=ct):ct=e[114];let lt;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,I.jsx)(he,{children:`Cancel`}),e[115]=lt):lt=e[115];let ut=D.isPending||!A||A===l.InstanceType,dt=D.isPending?`Saving…`:`Save Changes`,ft;e[116]!==Ie||e[117]!==ut||e[118]!==dt?(ft=(0,I.jsxs)(me,{children:[lt,(0,I.jsx)(pe,{disabled:ut,onClick:Ie,children:dt})]}),e[116]=Ie,e[117]=ut,e[118]=dt,e[119]=ft):ft=e[119];let pt;e[120]!==at||e[121]!==ct||e[122]!==ft?(pt=(0,I.jsxs)(de,{children:[at,ct,ft]}),e[120]=at,e[121]=ct,e[122]=ft,e[123]=pt):pt=e[123];let mt;e[124]!==k||e[125]!==pt?(mt=(0,I.jsx)(_e,{onOpenChange:rt,open:k,children:pt}),e[124]=k,e[125]=pt,e[126]=mt):mt=e[126];let $;e[127]!==l.InstanceId||e[128]!==Se?($=(0,I.jsx)(De,{instanceId:l.InstanceId,onOpenChange:Ce,open:Se}),e[127]=l.InstanceId,e[128]=Se,e[129]=$):$=e[129];let ht;return e[130]!==B||e[131]!==Q||e[132]!==mt||e[133]!==$||e[134]!==z?(ht=(0,I.jsxs)(I.Fragment,{children:[ze,z,B,Q,mt,$]}),e[130]=B,e[131]=Q,e[132]=mt,e[133]=$,e[134]=z,e[135]=ht):ht=e[135],ht}function Ne(e){return(0,I.jsxs)(M.Content,{children:[(0,I.jsx)(N,{label:`Device Name`,value:e.DeviceName}),(0,I.jsx)(N,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,I.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,I.jsx)(N,{label:`Status`,value:e.Ebs?.Status}),(0,I.jsx)(N,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,I.jsx)(N,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName)}function Pe(e){return e.GroupName}export{R as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/admin-context.js b/spinifex/services/spinifexui/frontend/dist/assets/admin-context.js index ab8cc8219..afec89ea6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/admin-context.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/admin-context.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{a as i}from"./cluster-config.js";import{a,i as o,n as s,o as c,r as l}from"./sts.js";import{n as u}from"./signed-fetch.js";var d=class extends a(l,o,`GetCallerIdentity`,c){},f=r(),p=t(n(),1),m=e(),h=`000000000001`;function g(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var _=(0,p.createContext)(void 0);function v(e){let t=(0,f.c)(6),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0},t[0]=r):r=t[0];let[a,o]=(0,p.useState)(r),c,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{(async function(){let e=i();if(!e){o(b);return}try{let t=await s().send(new d({})),n=t.Account??null,r=n===h,i=null;if(r)try{i=await u({action:`GetVersion`,credentials:e})}catch{}o({isAdmin:r,accountId:n,userName:g(t.Arn),version:i,license:i?.license??null,loading:!1})}catch{o(y)}})()},l=[],t[1]=c,t[2]=l):(c=t[1],l=t[2]),(0,p.useEffect)(c,l);let v;return t[3]!==n||t[4]!==a?(v=(0,m.jsx)(_,{value:a,children:n}),t[3]=n,t[4]=a,t[5]=v):v=t[5],v}function y(e){return{...e,loading:!1}}function b(e){return{...e,loading:!1}}function x(){let e=(0,p.useContext)(_);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}export{x as n,v 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}from"./cluster-config.js";import{a,i as o,n as s,o as c,r as l}from"./sts.js";import{r as u}from"./signed-fetch.js";var d=class extends a(l,o,`GetCallerIdentity`,c){},f=r(),p=t(n(),1),m=e(),h=`000000000001`;function g(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var _=(0,p.createContext)(void 0);function v(e){let t=(0,f.c)(6),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0},t[0]=r):r=t[0];let[a,o]=(0,p.useState)(r),c,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{(async function(){let e=i();if(!e){o(b);return}try{let t=await s().send(new d({})),n=t.Account??null,r=n===h,i=null;if(r)try{i=await u({action:`GetVersion`,credentials:e})}catch{}o({isAdmin:r,accountId:n,userName:g(t.Arn),version:i,license:i?.license??null,loading:!1})}catch{o(y)}})()},l=[],t[1]=c,t[2]=l):(c=t[1],l=t[2]),(0,p.useEffect)(c,l);let v;return t[3]!==n||t[4]!==a?(v=(0,m.jsx)(_,{value:a,children:n}),t[3]=n,t[4]=a,t[5]=v):v=t[5],v}function y(e){return{...e,loading:!1}}function b(e){return{...e,loading:!1}}function x(){let e=(0,p.useContext)(_);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}export{x as n,v as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/admin.js b/spinifex/services/spinifexui/frontend/dist/assets/admin.js index fcbd30964..b0d4ca050 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/admin.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/admin.js @@ -1 +1 @@ -import{t as e}from"./queryOptions.js";import{a as t}from"./cluster-config.js";import{n}from"./signed-fetch.js";var r=e({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetNodes`,credentials:e})},staleTime:1e4}),i=e({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetVMs`,credentials:e})},staleTime:1e4}),a=e({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`GetStorageStatus`,credentials:e})},staleTime:1e4}),o=e({queryKey:[`admin`,`ochreCatalog`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({action:`ListOchreCatalog`,credentials:e})},staleTime:1e4});export{i,o as n,a as r,r as t}; \ No newline at end of file +import{t as e}from"./queryOptions.js";import{a as t}from"./cluster-config.js";import{n,r}from"./signed-fetch.js";var i=e({queryKey:[`admin`,`nodes`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await r({action:`GetNodes`,credentials:e})},staleTime:1e4}),a=e({queryKey:[`admin`,`vms`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await r({action:`GetVMs`,credentials:e})},staleTime:1e4}),o=e({queryKey:[`admin`,`storageStatus`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await r({action:`GetStorageStatus`,credentials:e})},staleTime:1e4}),s=e({queryKey:[`admin`,`ochreCatalog`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await r({action:`ListOchreCatalog`,credentials:e})},staleTime:1e4}),c=e({queryKey:[`admin`,`accounts`],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await n({method:`ListAccounts`,credentials:e,body:{}})},retry:!1,staleTime:3e4}),l=n=>e({queryKey:[`admin`,`modelAccess`,n],queryFn:async()=>{let e=t();if(!e)throw Error(`Not authenticated`);return await r({action:`ListModelAccess`,credentials:e,params:{AccountId:n}})},enabled:n!==``,staleTime:1e4});async function u({accountId:e,modelId:n}){let i=t();if(!i)throw Error(`Not authenticated`);return await r({action:`GrantModelAccess`,credentials:i,params:{AccountId:e,ModelId:n}})}async function d({accountId:e,modelId:n}){let i=t();if(!i)throw Error(`Not authenticated`);return await r({action:`RevokeModelAccess`,credentials:i,params:{AccountId:e,ModelId:n}})}export{o as a,d as c,s as i,l as n,a as o,i as r,u as s,c as t}; \ 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 8f4678384..71b63ec8f 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 ee}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as te}from"./check.js";import{c as a,i as o,n as ne,s,t as c}from"./select.js";import{t as l}from"./download.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./triangle-alert.js";import{t as f}from"./button.js";import{t as re}from"./input.js";import{m as p}from"./ec22.js";import{t as m}from"./page-heading.js";import{t as h}from"./use-copy-to-clipboard.js";import{a as g,n as ie,r as _,t as v}from"./field.js";import{a as y,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"./form-actions.js";import{o as T}from"./ec23.js";import{a as E,c as ae,i as D,l as oe,o as O,r as k,s as A,t as j}from"./alert-dialog.js";var M=t(n(),1),se=r(),N=e();function P(e){let t=(0,se.c)(38),{open:n,keyName:r,keyMaterial:i}=e,a=ee(),{copied:o,copy:ne}=h(),s;t[0]!==i||t[1]!==r?(s=()=>{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]=s):s=t[2];let c=s,u;t[3]===a?u=t[4]:(u=()=>{a({to:`/ec2/describe-key-pairs`})},t[3]=a,t[4]=u);let re=u,p,m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,N.jsx)(ae,{children:(0,N.jsx)(d,{className:`text-destructive`})}),m=(0,N.jsx)(oe,{children:`Save Your Private Key`}),t[5]=p,t[6]=m):(p=t[5],m=t[6]);let g;t[7]===r?g=t[8]:(g=(0,N.jsxs)(A,{children:[p,m,(0,N.jsxs)(E,{children:[`This is your only chance to save the private key file for`,` `,(0,N.jsx)(`strong`,{children:r}),`. Please download or copy it now. You won't be able to retrieve it again.`]})]}),t[7]=r,t[8]=g);let ie=`Private key material for ${r}`,_;t[9]!==i||t[10]!==ie?(_=(0,N.jsx)(`textarea`,{"aria-label":ie,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]=ie,t[11]=_):_=t[11];let v;t[12]!==ne||t[13]!==i?(v=async()=>{await ne(i)},t[12]=ne,t[13]=i,t[14]=v):v=t[14];let y;t[15]===o?y=t[16]:(y=o?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=o,t[16]=y);let b;t[17]!==v||t[18]!==y?(b=(0,N.jsx)(f,{className:`flex-1`,onClick:v,type:`button`,variant:`outline`,children:y}),t[17]=v,t[18]=y,t[19]=b):b=t[19];let x;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[20]=x):x=t[20];let S;t[21]===c?S=t[22]:(S=(0,N.jsxs)(f,{className:`flex-1`,onClick:c,type:`button`,variant:`outline`,children:[x,`Download .pem File`]}),t[21]=c,t[22]=S);let C;t[23]!==b||t[24]!==S?(C=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[b,S]}),t[23]=b,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==C||t[27]!==_?(w=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[_,C]}),t[26]=C,t[27]=_,t[28]=w):w=t[28];let T;t[29]===re?T=t[30]:(T=(0,N.jsx)(O,{children:(0,N.jsx)(k,{onClick:re,children:`Close and Continue`})}),t[29]=re,t[30]=T);let M;t[31]!==w||t[32]!==T||t[33]!==g?(M=(0,N.jsxs)(D,{className:`max-w-2xl`,children:[g,w,T]}),t[31]=w,t[32]=T,t[33]=g,t[34]=M):M=t[34];let P;return t[35]!==n||t[36]!==M?(P=(0,N.jsx)(j,{open:n,children:M}),t[35]=n,t[36]=M,t[37]=P):P=t[37],P}function F(){let e=(0,se.c)(58),t=ee(),n=p(),[r,te]=(0,M.useState)(null),l;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=S(T),e[0]=l):l=e[0];let d;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:l,defaultValues:{keyType:`rsa`}},e[1]=d):d=e[1];let{handleSubmit:f,register:h,control:E,formState:ae}=b(d),{errors:D,isSubmitting:oe}=ae,O;e[2]===E?O=e[3]:(O={control:E},e[2]=E,e[3]=O);let k=y(O),A;e[4]===n?A=e[5]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&te({keyName:e.keyName,material:t.KeyMaterial})},e[4]=n,e[5]=A);let j=A,F,I;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),I=(0,N.jsx)(m,{title:`Create Key Pair`}),e[6]=F,e[7]=I):(F=e[6],I=e[7]);let L;e[8]===n.error?L=e[9]:(L=n.error&&(0,N.jsx)(C,{error:n.error,msg:`Failed to create key pair`}),e[8]=n.error,e[9]=L);let R;e[10]!==f||e[11]!==j?(R=f(j),e[10]=f,e[11]=j,e[12]=R):R=e[12];let le;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,N.jsx)(g,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=le):le=e[13];let ue=!!D.keyName,z;e[14]===h?z=e[15]:(z=h(`keyName`),e[14]=h,e[15]=z);let B;e[16]!==ue||e[17]!==z?(B=(0,N.jsx)(re,{"aria-invalid":ue,id:`keyName`,placeholder:`my-key-pair…`,...z}),e[16]=ue,e[17]=z,e[18]=B):B=e[18];let V;e[19]===D.keyName?V=e[20]:(V=(0,N.jsx)(_,{errors:[D.keyName]}),e[19]=D.keyName,e[20]=V);let H;e[21]!==B||e[22]!==V?(H=(0,N.jsxs)(v,{children:[le,B,V]}),e[21]=B,e[22]=V,e[23]=H):H=e[23];let U;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,N.jsx)(g,{children:(0,N.jsx)(`label`,{htmlFor:`keyType`,children:`Key Type`})}),e[24]=U):U=e[24];let W;e[25]===D.keyType?W=e[26]:(W=e=>{let{field:t}=e;return(0,N.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,N.jsx)(s,{"aria-invalid":!!D.keyType,className:`w-full`,id:`keyType`,children:(0,N.jsx)(a,{placeholder:`Select a key type`})}),(0,N.jsxs)(ne,{children:[(0,N.jsx)(o,{value:`rsa`,children:`RSA (2048-bit)`}),(0,N.jsx)(o,{value:`ed25519`,children:`ED25519`})]})]})},e[25]=D.keyType,e[26]=W);let G;e[27]!==E||e[28]!==W?(G=(0,N.jsx)(x,{control:E,name:`keyType`,render:W}),e[27]=E,e[28]=W,e[29]=G):G=e[29];let de;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,N.jsx)(ie,{children:`RSA is required to retrieve a Windows administrator password. ED25519 works for SSH only.`}),e[30]=de):de=e[30];let K;e[31]===D.keyType?K=e[32]:(K=(0,N.jsx)(_,{errors:[D.keyType]}),e[31]=D.keyType,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,N.jsxs)(v,{children:[U,G,de,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===k?J=e[37]:(J=ce(k),e[36]=k,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,N.jsx)(u,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==n.isPending||e[43]!==oe||e[44]!==X?(Z=(0,N.jsx)(w,{isPending:n.isPending,isSubmitting:oe,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[42]=n.isPending,e[43]=oe,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]!==R?(Q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=R,e[51]=Q):Q=e[51];let $;e[52]===r?$=e[53]:($=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[52]=r,e[53]=$);let fe;return e[54]!==Q||e[55]!==$||e[56]!==L?(fe=(0,N.jsxs)(N.Fragment,{children:[F,I,L,Q,$]}),e[54]=Q,e[55]=$,e[56]=L,e[57]=fe):fe=e[57],fe}function ce(e){let t=e.keyName??``,n=e.keyType??`rsa`;return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` --key-type`},{type:`value`,value:` ${n}`}]}]}var I=F;export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as ee}from"./useNavigate.js";import{t as i}from"./back-link.js";import{t as te}from"./check.js";import{c as a,i as o,n as ne,s,t as c}from"./select.js";import{t as l}from"./download.js";import{t as u}from"./cli-command-panel.js";import{t as d}from"./triangle-alert.js";import{t as f}from"./button.js";import{t as re}from"./input.js";import{m as p}from"./ec22.js";import{t as m}from"./page-heading.js";import{a as h,n as g,r as _,t as v}from"./field.js";import{t as ie}from"./use-copy-to-clipboard.js";import{a as y,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"./form-actions.js";import{o as T}from"./ec23.js";import{a as E,c as ae,i as D,l as oe,o as O,r as k,s as A,t as j}from"./alert-dialog.js";var M=t(n(),1),se=r(),N=e();function P(e){let t=(0,se.c)(38),{open:n,keyName:r,keyMaterial:i}=e,a=ee(),{copied:o,copy:ne}=ie(),s;t[0]!==i||t[1]!==r?(s=()=>{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]=s):s=t[2];let c=s,u;t[3]===a?u=t[4]:(u=()=>{a({to:`/ec2/describe-key-pairs`})},t[3]=a,t[4]=u);let re=u,p,m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,N.jsx)(ae,{children:(0,N.jsx)(d,{className:`text-destructive`})}),m=(0,N.jsx)(oe,{children:`Save Your Private Key`}),t[5]=p,t[6]=m):(p=t[5],m=t[6]);let h;t[7]===r?h=t[8]:(h=(0,N.jsxs)(A,{children:[p,m,(0,N.jsxs)(E,{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]=h);let g=`Private key material for ${r}`,_;t[9]!==i||t[10]!==g?(_=(0,N.jsx)(`textarea`,{"aria-label":g,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]=g,t[11]=_):_=t[11];let v;t[12]!==ne||t[13]!==i?(v=async()=>{await ne(i)},t[12]=ne,t[13]=i,t[14]=v):v=t[14];let y;t[15]===o?y=t[16]:(y=o?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(te,{className:`mr-2 size-4`}),`Copied!`]}):`Copy to Clipboard`,t[15]=o,t[16]=y);let b;t[17]!==v||t[18]!==y?(b=(0,N.jsx)(f,{className:`flex-1`,onClick:v,type:`button`,variant:`outline`,children:y}),t[17]=v,t[18]=y,t[19]=b):b=t[19];let x;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,N.jsx)(l,{className:`mr-2 size-4`}),t[20]=x):x=t[20];let S;t[21]===c?S=t[22]:(S=(0,N.jsxs)(f,{className:`flex-1`,onClick:c,type:`button`,variant:`outline`,children:[x,`Download .pem File`]}),t[21]=c,t[22]=S);let C;t[23]!==b||t[24]!==S?(C=(0,N.jsxs)(`div`,{className:`flex gap-2`,children:[b,S]}),t[23]=b,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==C||t[27]!==_?(w=(0,N.jsxs)(`div`,{className:`space-y-3`,children:[_,C]}),t[26]=C,t[27]=_,t[28]=w):w=t[28];let T;t[29]===re?T=t[30]:(T=(0,N.jsx)(O,{children:(0,N.jsx)(k,{onClick:re,children:`Close and Continue`})}),t[29]=re,t[30]=T);let M;t[31]!==w||t[32]!==T||t[33]!==h?(M=(0,N.jsxs)(D,{className:`max-w-2xl`,children:[h,w,T]}),t[31]=w,t[32]=T,t[33]=h,t[34]=M):M=t[34];let P;return t[35]!==n||t[36]!==M?(P=(0,N.jsx)(j,{open:n,children:M}),t[35]=n,t[36]=M,t[37]=P):P=t[37],P}function F(){let e=(0,se.c)(58),t=ee(),n=p(),[r,te]=(0,M.useState)(null),l;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=S(T),e[0]=l):l=e[0];let d;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={resolver:l,defaultValues:{keyType:`rsa`}},e[1]=d):d=e[1];let{handleSubmit:f,register:ie,control:E,formState:ae}=b(d),{errors:D,isSubmitting:oe}=ae,O;e[2]===E?O=e[3]:(O={control:E},e[2]=E,e[3]=O);let k=y(O),A;e[4]===n?A=e[5]:(A=async e=>{let t=await n.mutateAsync(e);t.KeyMaterial&&te({keyName:e.keyName,material:t.KeyMaterial})},e[4]=n,e[5]=A);let j=A,F,I;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,N.jsx)(i,{to:`/ec2/describe-key-pairs`,children:`Back to key pairs`}),I=(0,N.jsx)(m,{title:`Create Key Pair`}),e[6]=F,e[7]=I):(F=e[6],I=e[7]);let L;e[8]===n.error?L=e[9]:(L=n.error&&(0,N.jsx)(C,{error:n.error,msg:`Failed to create key pair`}),e[8]=n.error,e[9]=L);let R;e[10]!==f||e[11]!==j?(R=f(j),e[10]=f,e[11]=j,e[12]=R):R=e[12];let le;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,N.jsx)(h,{children:(0,N.jsx)(`label`,{htmlFor:`keyName`,children:`Key Pair Name`})}),e[13]=le):le=e[13];let ue=!!D.keyName,z;e[14]===ie?z=e[15]:(z=ie(`keyName`),e[14]=ie,e[15]=z);let B;e[16]!==ue||e[17]!==z?(B=(0,N.jsx)(re,{"aria-invalid":ue,id:`keyName`,placeholder:`my-key-pair…`,...z}),e[16]=ue,e[17]=z,e[18]=B):B=e[18];let V;e[19]===D.keyName?V=e[20]:(V=(0,N.jsx)(_,{errors:[D.keyName]}),e[19]=D.keyName,e[20]=V);let H;e[21]!==B||e[22]!==V?(H=(0,N.jsxs)(v,{children:[le,B,V]}),e[21]=B,e[22]=V,e[23]=H):H=e[23];let U;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,N.jsx)(h,{children:(0,N.jsx)(`label`,{htmlFor:`keyType`,children:`Key Type`})}),e[24]=U):U=e[24];let W;e[25]===D.keyType?W=e[26]:(W=e=>{let{field:t}=e;return(0,N.jsxs)(c,{onValueChange:e=>{t.onChange(e)},value:t.value,children:[(0,N.jsx)(s,{"aria-invalid":!!D.keyType,className:`w-full`,id:`keyType`,children:(0,N.jsx)(a,{placeholder:`Select a key type`})}),(0,N.jsxs)(ne,{children:[(0,N.jsx)(o,{value:`rsa`,children:`RSA (2048-bit)`}),(0,N.jsx)(o,{value:`ed25519`,children:`ED25519`})]})]})},e[25]=D.keyType,e[26]=W);let G;e[27]!==E||e[28]!==W?(G=(0,N.jsx)(x,{control:E,name:`keyType`,render:W}),e[27]=E,e[28]=W,e[29]=G):G=e[29];let de;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,N.jsx)(g,{children:`RSA is required to retrieve a Windows administrator password. ED25519 works for SSH only.`}),e[30]=de):de=e[30];let K;e[31]===D.keyType?K=e[32]:(K=(0,N.jsx)(_,{errors:[D.keyType]}),e[31]=D.keyType,e[32]=K);let q;e[33]!==G||e[34]!==K?(q=(0,N.jsxs)(v,{children:[U,G,de,K]}),e[33]=G,e[34]=K,e[35]=q):q=e[35];let J;e[36]===k?J=e[37]:(J=ce(k),e[36]=k,e[37]=J);let Y;e[38]===J?Y=e[39]:(Y=(0,N.jsx)(u,{commands:J}),e[38]=J,e[39]=Y);let X;e[40]===t?X=e[41]:(X=async()=>{await t({to:`/ec2/describe-key-pairs`})},e[40]=t,e[41]=X);let Z;e[42]!==n.isPending||e[43]!==oe||e[44]!==X?(Z=(0,N.jsx)(w,{isPending:n.isPending,isSubmitting:oe,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create Key Pair`}),e[42]=n.isPending,e[43]=oe,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]!==R?(Q=(0,N.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:R,children:[H,q,Y,Z]}),e[46]=H,e[47]=q,e[48]=Y,e[49]=Z,e[50]=R,e[51]=Q):Q=e[51];let $;e[52]===r?$=e[53]:($=r&&(0,N.jsx)(P,{keyMaterial:r.material,keyName:r.keyName,open:!!r}),e[52]=r,e[53]=$);let fe;return e[54]!==Q||e[55]!==$||e[56]!==L?(fe=(0,N.jsxs)(N.Fragment,{children:[F,I,L,Q,$]}),e[54]=Q,e[55]=$,e[56]=L,e[57]=fe):fe=e[57],fe}function ce(e){let t=e.keyName??``,n=e.keyType??`rsa`;return[{label:`Create Key Pair`,parts:[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-key-pair`},{type:`flag`,value:` --key-name`},{type:`value`,value:` ${t||``}`},{type:`flag`,value:` --key-type`},{type:`value`,value:` ${n}`}]}]}var I=F;export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecs2.js b/spinifex/services/spinifexui/frontend/dist/assets/ecs2.js index 58906b748..6ac0ab3bc 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecs2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecs2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{t as n}from"./useMutation.js";import{a as r}from"./cluster-config.js";import{Dr as i,Er as a,Or as o,Tr as s,dr as c,fr as l,l as u,mr as d,pr as f,ur as p}from"./awsClient.js";import{r as m,t as h}from"./signed-fetch.js";import{c as g,l as _,r as v,u as y}from"./ecs.js";var b=class extends y(g,_,`CreateCluster`,p){},x=class extends y(g,_,`CreateService`,c){},S=class extends y(g,_,`DeleteCluster`,l){},C=class extends y(g,_,`DeregisterContainerInstance`,f){},w=class extends y(g,_,`DeregisterTaskDefinition`,d){},T=class extends y(g,_,`RegisterTaskDefinition`,s){},E=class extends y(g,_,`RunTask`,a){},D=class extends y(g,_,`StopTask`,i){},O=class extends y(g,_,`UpdateContainerInstancesState`,o){},k=e(),A=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;async function j(e){let t=r();if(!t)throw Error(`Not authenticated`);return await m({label:`ProvisionCapacity`,credentials:t,service:`ecs`,contentType:h,target:A,body:JSON.stringify(e)})}function M(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:N,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=r,e[1]=i),n(i)}async function N(e){let t=new b({clusterName:e});return await u().send(t)}function P(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:F,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=r,e[1]=i),n(i)}async function F(e){let t=new S({cluster:e});return await u().send(t)}function I(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:L,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=r,e[1]=i),n(i)}async function L(e){let t=new D({cluster:e.cluster,task:e.task});return await u().send(t)}function R(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:z,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=r,e[1]=i),n(i)}async function z(e){let t=new w({taskDefinition:e});return await u().send(t)}function B(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:V,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=r,e[1]=i),n(i)}async function V(e){let t=new O({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await u().send(t)}function H(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:U,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=r,e[1]=i),n(i)}async function U(e){let t=new C({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await u().send(t)}function W(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:G,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=r,e[1]=i),n(i)}async function G(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(K):void 0,resourceRequirements:e.containerGpuCount>0?[{type:`GPU`,value:String(e.containerGpuCount)}]:void 0},n=new T({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await u().send(n)}function K(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function q(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:J,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:v(t.Cluster).queryKey})}},e[0]=r,e[1]=i),n(i)}async function J(e){return await j(e)}function Y(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:X,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=r,e[1]=i),n(i)}async function X(e){let t=new E({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 u().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let[e]=n.failures;throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function Z(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Q,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=r,e[1]=i),n(i)}async function Q(e){let t=new x({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 u().send(t)}export{R as a,Y as c,H as i,I as l,Z as n,q as o,P as r,W as s,M as t,B as u}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{n as t}from"./QueryClientProvider.js";import{t as n}from"./useMutation.js";import{a as r}from"./cluster-config.js";import{Dr as i,Er as a,Or as o,Tr as s,dr as c,fr as l,l as u,mr as d,pr as f,ur as p}from"./awsClient.js";import{i as m,t as h}from"./signed-fetch.js";import{c as g,l as _,r as v,u as y}from"./ecs.js";var b=class extends y(g,_,`CreateCluster`,p){},x=class extends y(g,_,`CreateService`,c){},S=class extends y(g,_,`DeleteCluster`,l){},C=class extends y(g,_,`DeregisterContainerInstance`,f){},w=class extends y(g,_,`DeregisterTaskDefinition`,d){},T=class extends y(g,_,`RegisterTaskDefinition`,s){},E=class extends y(g,_,`RunTask`,a){},D=class extends y(g,_,`StopTask`,i){},O=class extends y(g,_,`UpdateContainerInstancesState`,o){},k=e(),A=`AmazonEC2ContainerServiceV20141113.ProvisionCapacity`;async function j(e){let t=r();if(!t)throw Error(`Not authenticated`);return await m({label:`ProvisionCapacity`,credentials:t,service:`ecs`,contentType:h,target:A,body:JSON.stringify(e)})}function M(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:N,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=r,e[1]=i),n(i)}async function N(e){let t=new b({clusterName:e});return await u().send(t)}function P(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:F,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`]})}},e[0]=r,e[1]=i),n(i)}async function F(e){let t=new S({cluster:e});return await u().send(t)}function I(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:L,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=r,e[1]=i),n(i)}async function L(e){let t=new D({cluster:e.cluster,task:e.task});return await u().send(t)}function R(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:z,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=r,e[1]=i),n(i)}async function z(e){let t=new w({taskDefinition:e});return await u().send(t)}function B(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:V,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=r,e[1]=i),n(i)}async function V(e){let t=new O({cluster:e.cluster,containerInstances:[e.containerInstance],status:e.status});return await u().send(t)}function H(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:U,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`container-instances`]})}},e[0]=r,e[1]=i),n(i)}async function U(e){let t=new C({cluster:e.cluster,containerInstance:e.containerInstance,force:!0});return await u().send(t)}function W(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:G,onSuccess:()=>{r.invalidateQueries({queryKey:[`ecs`,`task-definitions`]})}},e[0]=r,e[1]=i),n(i)}async function G(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(K):void 0,resourceRequirements:e.containerGpuCount>0?[{type:`GPU`,value:String(e.containerGpuCount)}]:void 0},n=new T({family:e.family,networkMode:e.networkMode,cpu:e.cpu||void 0,memory:e.memory||void 0,containerDefinitions:[t]});return await u().send(n)}function K(e){return{containerPort:e.containerPort,hostPort:e.containerPort,protocol:e.protocol}}function q(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:J,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:v(t.Cluster).queryKey})}},e[0]=r,e[1]=i),n(i)}async function J(e){return await j(e)}function Y(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:X,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`tasks`]})}},e[0]=r,e[1]=i),n(i)}async function X(e){let t=new E({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 u().send(t);if((n.tasks?.length??0)===0&&n.failures?.length){let[e]=n.failures;throw Error(`Task not placed: ${e?.reason??`unknown`}${e?.detail?` (${e.detail})`:``}`)}return n}function Z(){let e=(0,k.c)(2),r=t(),i;return e[0]===r?i=e[1]:(i={mutationFn:Q,onSuccess:(e,t)=>{r.invalidateQueries({queryKey:[`ecs`,`clusters`,t.cluster,`services`]})}},e[0]=r,e[1]=i),n(i)}async function Q(e){let t=new x({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 u().send(t)}export{R as a,Y as c,H as i,I as l,Z as n,q as o,P as r,W as s,M as t,B as u}; \ 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 6a428b0c3..09bee6b29 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/route.js","assets/compiler-runtime.js","assets/Match.js","assets/matchContext.js","assets/useStore.js","assets/with-selector.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/QueryClientProvider.js","assets/query.js","assets/link.js","assets/cluster-config.js","assets/hex-encoding.js","assets/createLucideIcon.js","assets/chevron-down.js","assets/chevron-right.js","assets/waypoints.js","assets/admin-context.js","assets/sts.js","assets/signed-fetch.js","assets/ec2.js","assets/queryOptions.js","assets/awsClient.js","assets/index.browser.js","assets/s32.js","assets/page-heading.js","assets/badge.js","assets/dist.js","assets/useRender.js","assets/card.js","assets/admin.js","assets/state-badge.js","assets/alert-dialog.js","assets/button.js","assets/DialogTitle.js","assets/useValueAsRef.js","assets/createBaseUIEventDetails.js","assets/useScrollLock.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/allocate-address.js","assets/useNavigate.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/input.js","assets/useRegisterFieldControl.js","assets/useControlled.js","assets/ec22.js","assets/useMutation.js","assets/mutation.js","assets/subnet-calculator.js","assets/field.js","assets/separator.js","assets/label.js","assets/zod.js","assets/error-banner.js","assets/form-actions.js","assets/ec23.js","assets/create-internet-gateway.js","assets/create-key-pair.js","assets/select.js","assets/usePositioner.js","assets/DirectionContext.js","assets/useCompositeListItem.js","assets/download.js","assets/triangle-alert.js","assets/import-key-pair.js","assets/textarea.js","assets/create-launch-template.js","assets/launch-template-data-fields.js","assets/useSuspenseQuery.js","assets/collapsible.js","assets/create-load-balancer.js","assets/acm.js","assets/certificate-import-dialog.js","assets/elbv2.js","assets/commandBuilder3.js","assets/elbv22.js","assets/tags-field-array.js","assets/plus.js","assets/trash-2.js","assets/target-group-form.js","assets/elbv23.js","assets/create-nat-gateway.js","assets/create-placement-group.js","assets/create-route-table.js","assets/create-security-group.js","assets/create-subnet.js","assets/create-target-group.js","assets/create-volume.js","assets/create-vpc.js","assets/task-definitions.js","assets/ecs.js","assets/ecs2.js","assets/delete-confirmation-dialog.js","assets/ecs-section-nav.js","assets/create-cluster.js","assets/eks.js","assets/commandBuilder2.js","assets/json.js","assets/iam.js","assets/commandBuilder4.js","assets/iam2.js","assets/system-managed.js","assets/system-image-required.js","assets/rotate-cw.js","assets/policy-document-viewer.js","assets/create-group.js","assets/iam3.js","assets/create-instance-profile.js","assets/create-policy.js","assets/json-editor.js","assets/create-role.js","assets/create-user.js","assets/create-db-instance.js","assets/rds.js","assets/rds2.js","assets/rds3.js","assets/picker-notice.js","assets/security-group-checkboxes.js","assets/create-db-parameter-group.js","assets/create-db-subnet-group.js","assets/create-bucket.js","assets/s3.js","assets/ls.js","assets/list-card.js","assets/route2.js","assets/list-model-catalog.js","assets/list-guardrails.js","assets/bedrock.js","assets/list-knowledge-bases.js","assets/bedrockAgent.js","assets/playground.js","assets/commandBuilder.js","assets/describe-addresses.js","assets/describe-images.js","assets/describe-instances.js","assets/describe-internet-gateways.js","assets/describe-key-pairs.js","assets/describe-launch-templates.js","assets/describe-load-balancers.js","assets/describe-nat-gateways.js","assets/describe-placement-groups.js","assets/describe-route-tables.js","assets/describe-security-groups.js","assets/describe-snapshots.js","assets/describe-subnets.js","assets/describe-target-groups.js","assets/describe-volumes.js","assets/describe-vpcs.js","assets/list-repositories.js","assets/ecr.js","assets/ecr2.js","assets/list-clusters.js","assets/list-clusters2.js","assets/eks2.js","assets/list-groups.js","assets/list-instance-profiles.js","assets/list-policies.js","assets/list-roles.js","assets/list-users.js","assets/describe-db-instances.js","assets/delete-db-instance-dialog.js","assets/describe-db-parameter-groups.js","assets/delete-db-parameter-group-dialog.js","assets/rds-delete-dialog.js","assets/describe-db-snapshots.js","assets/create-db-snapshot-dialog.js","assets/delete-db-snapshot-dialog.js","assets/describe-db-subnet-groups.js","assets/delete-db-subnet-group-dialog.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{M as a,O as o,S as s,T as c,_ as l,b as u,c as d,g as f,h as p,j as m,n as h,s as g,t as _,x as v,y}from"./QueryClientProvider.js";import{t as b}from"./query.js";import{t as x}from"./mutation.js";import{C as S,D as C,O as w,S as T,T as E,_ as ee,a as D,b as te,c as O,d as ne,f as re,h as ie,i as k,j as A,k as ae,l as oe,m as se,n as ce,o as le,p as j,r as ue,t as M,u as de,v as fe,w as pe,x as me,y as he}from"./link.js";import{a as ge,i as _e,n as ve,o as ye,r as be,t as xe}from"./Match.js";import{n as Se,r as Ce}from"./matchContext.js";import{n as we,t as Te}from"./redirect.js";import{i as Ee,n as N,r as De,t as P}from"./lazyRouteComponent.js";import{a as Oe,n as ke,r as Ae,t as je}from"./useStore.js";import{n as Me}from"./with-selector.js";import{t as Ne}from"./useNavigate.js";import{d as Pe,f as Fe,n as Ie,o as Le,t as Re}from"./useValueAsRef.js";import{a as ze,f as Be,l as Ve,n as He,o as Ue,t as We,u as Ge}from"./dist.js";import{t as Ke}from"./useRender.js";import{a as qe,an as F,i as Je,lt as I,n as Ye}from"./cluster-config.js";import{t as L}from"./createLucideIcon.js";import{t as Xe}from"./camera.js";import{a as Ze,c as Qe,i as $e,n as et,o as tt,r as nt,s as rt,t as it}from"./waypoints.js";import{n as at,t as ot}from"./_id.js";import{n as st,t as ct}from"./_clusterName.js";import{n as lt,t as ut}from"./_id2.js";import{_ as dt,b as ft,n as pt,o as mt,s as ht,t as gt,y as _t}from"./button.js";import{C as vt,b as R,f as yt,g as bt,h as xt,i as St,m as Ct,s as wt,t as Tt,v as Et,x as Dt,y as Ot}from"./createBaseUIEventDetails.js";import{A as kt,B as At,E as jt,F as Mt,G as Nt,J as Pt,M as Ft,N as It,O as Lt,R as Rt,S as zt,U as Bt,W as Vt,Y as Ht,b as Ut,bt as Wt,ct as Gt,dt as Kt,ft as qt,g as Jt,h as Yt,k as Xt,lt as Zt,m as Qt,nt as $t,ot as en,p as tn,q as nn,vt as rn,w as an,x as on,y as sn}from"./useScrollLock.js";import{n as cn,r as ln,t as un}from"./usePositioner.js";import"./input.js";import{t as dn}from"./separator.js";import{a as fn,c as pn,i as mn,l as hn,n as gn,o as _n,r as vn,s as yn,t as bn,u as xn}from"./DialogTitle.js";import{t as Sn}from"./awsClient.js";import{n as Cn,t as wn}from"./admin-context.js";import{t as Tn}from"./acm.js";import{i as En,t as Dn}from"./bedrock.js";import{i as On}from"./bedrockAgent.js";import{A as kn,E as An,M as jn,O as Mn,S as Nn,_ as Pn,c as Fn,d as In,h as Ln,l as Rn,n as zn,o as Bn,p as Vn,r as Hn,w as Un,y as Wn}from"./ec2.js";import{n as Gn}from"./ecr.js";import{n as Kn,o as qn}from"./ecs.js";import{c as Jn}from"./eks2.js";import{a as Yn,o as Xn,u as Zn}from"./elbv22.js";import{C as Qn,f as $n,l as er,p as tr,y as nr}from"./iam2.js";import{a as rr,d as ir,h as ar,o as or,r as sr}from"./rds3.js";import{n as cr}from"./s32.js";import{t as lr}from"./login.js";import{t as ur}from"./run-instances.js";import{t as dr}from"./create-snapshot.js";import{t as fr}from"./create-service.js";import{t as pr}from"./register-task-definition.js";import{t as mr}from"./run-task.js";import{t as hr}from"./_guardrailId.js";import{t as gr}from"./_knowledgeBaseId.js";import{t as _r}from"./_id3.js";import{t as vr}from"./_id4.js";import{t as yr}from"./_id5.js";import{t as br}from"./_id6.js";import{t as xr}from"./_id7.js";import{t as Sr}from"./_id8.js";import{t as Cr}from"./_id9.js";import{t as wr}from"./_id10.js";import{t as Tr}from"./_id11.js";import{t as Er}from"./_id12.js";import{t as Dr}from"./_id13.js";import{t as Or}from"./_id14.js";import{t as kr}from"./_id15.js";import{t as Ar}from"./_id16.js";import{t as jr}from"./_id17.js";import{t as Mr}from"./_id18.js";import{t as Nr}from"./_clusterName2.js";import{t as Pr}from"./_groupName.js";import{t as Fr}from"./_instanceProfileName.js";import{t as Ir}from"./_policyArn.js";import{t as Lr}from"./_roleName.js";import{t as Rr}from"./_userName.js";import{t as zr}from"./_id19.js";import{t as Br}from"./_name.js";import{t as Vr}from"./_id20.js";import{t as Hr}from"./_id21.js";import{t as Ur}from"./_name2.js";import{t as Wr}from"./_bucket.js";import{t as Gr}from"./_.js";import{t as Kr}from"./_serviceName.js";import{t as qr}from"./_taskId.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Jr=class extends a{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 x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Yr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Yr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){d.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=>y(t,e))}findAll(e={}){return this.getAll().filter(t=>y(e,t))}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return d.batch(()=>Promise.all(e.map(e=>e.continue().catch(v))))}};function Yr(e){return e.options.scope?.id}var Xr=class extends a{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??l(r,t),a=this.get(i);return a||(a=new b({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){d.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=>u(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>u(e,t)):t}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){d.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Zr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xr,this.#t=e.mutationCache||new Jr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=g.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(c(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=p(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return d.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;d.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return d.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=d.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(v).catch(v)}invalidateQueries(e,t={}){return d.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=d.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(v)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(v)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(c(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(v).catch(v)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(v).catch(v)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return g.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(f(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{s(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(f(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{s(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||=l(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===o&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Qr(){try{return sessionStorage}catch{return}}var $r=`tsr-scroll-restoration-v1_3`,ei=Qr();function ti(){try{return JSON.parse(ei?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function ni(){try{ei?.setItem($r,JSON.stringify(ri))}catch{}}var ri=ti(),ii=`data-scroll-restoration-id`,ai=e=>e.state.__TSR_key||e.href;function oi(e){let t=e.getAttribute(ii);if(t)return`[${ii}="${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 si=!1,ci=`window`;function li(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function ui(e){let t=new Set;for(let n of e){if(n===ci)continue;let e=li(n);e&&t.add(e)}return t}function di(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||ai,a=new Set,o=e=>{let t=ri[e]||={};for(let e of a)e===document?t[ci]={scrollX,scrollY}:e.isConnected&&(t[oi(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,si=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{si||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),ni()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=ri[d];if(e){let t=ri[u];for(let n in e){if(n===ci){if(s)continue}else{let e=li(n);if(!e||s&&o&&(l??=ui(o),l.has(e)))continue}t||=ri[u]={},t[n]??=e[n]}}}si=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=ui(o));let t=e&&i&&c,s=r.restoring?ri[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===ci){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=li(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{si=!1}}))}function fi(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 pi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function mi(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]=pi(r):Array.isArray(t)?t.push(pi(r)):n[e]=[t,pi(r)]}return n}var hi=/^(?:\s|["[{\d-]|fa|nu|tr)/,gi=vi(JSON.parse),_i=yi(JSON.stringify,JSON.parse);function vi(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=mi(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function yi(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!hi.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=fi(e,r);return t?`?${t}`:``}}function bi(e){return{input:({url:t})=>{for(let n of e)t=Si(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ci(e[n],t);return t}}}function xi(e){let t=le(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 Si(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 Ci(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function wi(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{fe(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Ti=`__TSR_index`,Ei=`popstate`,Di=`beforeunload`;function Oi(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=Mi(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[Ti];i=ki(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[Ti];i=ki(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[Ti]!==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 ki(e,t){t||={};let n=Ni();return{...t,key:n,__TSR_key:n,[Ti]:e}}function Ai(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??(()=>Mi(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Ni();t.history.replaceState({[Ti]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=Mi(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Ti]-l.state[Ti],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),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Oi({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Di,x,{capture:!0}),t.removeEventListener(Ei,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Di,x,{capture:!0}),t.addEventListener(Ei,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function ji(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Mi(e,t){let n=ji(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Ni();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||{[Ti]:0,key:a,__TSR_key:a}}}function Ni(){return(Math.random()+1).toString(36).substring(7)}function z(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Pi(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Fi({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Ii(e,t,n,r){for(let i of t){if(r&&e._tx!==r)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r&&e._tx!==r)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var Li=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),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??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ce(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Ai()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ie(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=wi(this.latestLocation,e),di(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=le(a);t&&t!==`/`&&e.push(xi({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:bi(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},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&&j(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=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,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:he(e).path,external:!1,searchStr:o,search:w(t?.search,i),hash:he(r.slice(1)).path,state:ae(t?.state,a)}}let o=new URL(i,this.origin),s=Si(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:he(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:w(t?.search,c),hash:he(s.hash.slice(1)).path,state:ae(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)=>D({base:e,to: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=>{let t=Object.create(null),n=ne(O(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{if(t.href){let e=Mi(t.href,{});t={...t,to:Si(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r[1],a=r[2],o=r[3],s=this.resolvePathWithBase(i,t.to?`${t.to}`:`.`),c=Ui(t.params,o),l=this.routesByPath[O(s)],u;if(l)u=this.getRouteBranch(l);else if(s.includes(`$`))u=[];else{let[e,t,n]=this.getMatchedRoutes(s);u=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(u=[...u,this.options.notFoundRoute])}if(u.length&&pe(c))for(let e of u){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){c===o&&(c=Object.assign(Object.create(null),c));try{Object.assign(c,t(c))}catch{}}}let d=e.leaveParams?s:he(ue({path:s,params:c,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,f=a;if(e._includeValidateSearch&&this.options.search?.strict){let e={};u.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Bi(t.options.validateSearch,{...e,...f}))}catch{}}),f=e}f=Vi(f,t,u,e._includeValidateSearch),f=w(a,f);let p=this.options.stringifySearch(f),m=t.hash===!0?n.hash:t.hash?S(t.hash,n.hash):void 0,h=m?`#${m}`:``,g=t.state===!0?n.state:t.state?S(t.state,n.state):{};t.state&&(g=ae(n.state,g));let _=`${d}${p}${h}`,v,y,b=!1;if(this.rewrite){let e=new URL(_,this.origin),t=Ci(this.rewrite,e);v=e.href.replace(e.origin,``),t.origin===this.origin?y=t.pathname+t.search+t.hash:(y=t.href,b=!0)}else v=me(_),y=v;return{publicHref:y,href:v,pathname:d,search:f,searchStr:p,state:g,hash:m??``,external:b,unmaskOnReload:t.unmaskOnReload}},n=t(e);if(e.mask)n.maskedLocation=t({from:e.from,...e.mask});else if(this.options.routeMasks){let r=de(n.pathname,this.processedTree);if(r){let i=Object.assign(Object.create(null),r.rawParams),{from:a,params:o,...s}=r.route,c=Ui(o,i);n.maskedLocation=t({from:e.from,...s,params:c})}}return n},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=O(this.latestLocation.href)===O(n.href)&&te(Fi(n.state),Fi(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,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}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!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(E(t,this.protocolAllowlist))return;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}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Fa(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Pi(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&z(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href){let t=this.buildLocation(e.options).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}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(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=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=qi,this.preloadRoute=(e,t)=>Ia(this,e,0,t),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),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=re(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!te(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?te(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},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??_i,parseSearch:e.parseSearch??gi,protocolAllowlist:e.protocolAllowlist??ee}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}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}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:O(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Hi(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;r&&n&&i.push(({search:e,next:t,meta:r})=>{let i=t(e);try{let e=Bi(n,i);if(r&&e)for(let t in e)t in i||(r.defaulted||=new Map).set(t,e[t]);return{...i,...e}}catch{}return i})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=S(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function Hi(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Ce}function Ui(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;let n=Object.assign(Object.create(null),t);return Object.assign(n,S(e,n))}function Wi(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Gi(e,t){return e.options[t]?.preload?.()}function Ki(e,t){let n=Gi(e,`component`),r=Gi(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function qi(e,t,n){let r=()=>t===!1?void 0:t?Gi(e,t):Ki(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Ji(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function ra(e,t){return e.routesById[t.routeId]}function ia(e,t,n){return Te(e)?[$i,e]:ye(e)?(e.routeId||=n,[Qi,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[Zi,e]:[Xi,e])}function aa(e,t){let n=ia(t,!0,e.id);if(n[0]!==Zi)return n;try{e.options.onError?.(n[1])}catch(t){n=ia(t,!0,e.id)}return n}function oa(e,t,n,r,i){return i[0].signal.aborted?ea:Sa(e,t,n,aa(n,r),i)}async function sa(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;ie.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id},p=d;try{let e=r._ctx;!e&&u.options.context&&(e=r._ctx=u.options.context({...f,deps:r.loaderDeps,context:d})||{}),p={...d,...e},r.context=p}catch(a){return la(e,r),[i,oa(e,t,u,a,n)]}if(c.aborted)return[i,ea];let m=r.paramsError??r.searchError;if(m!==void 0)return la(e,r),[i,oa(e,t,u,m,n)];let h=u.options.beforeLoad;if(!h)continue;let g={...f,search:r.search,context:p,...e.options.additionalContext},_=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{fa(e,r,`beforeLoad`,n[0]);let a=await na(h(g),c);if(c.aborted)return[i,ea];let o=Sa(e,t,u,ia(a,!1,u.id),n);if(o[0]!==Xi)return la(e,r),[i,o];r.context={...p,...a}}catch(a){return la(e,r),[i,oa(e,t,u,a,n)]}finally{r.status===`pending`&&(r.status=_),fa(e,r,!1,n[0])}}i()}function ca(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function la(e,t){let n=t._flight;t._flight=void 0,ca(e,t,n)?.abort()}function ua(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=ca(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function da(e){for(let t of e){let e=t._flight;e&&e[2]++}}function fa(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function pa(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function ma(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return ea;if(!i)return[Xi,void 0];let l=n._flight;fa(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(pa(e,t,n,r,s,a,!!o[3]))).then(e=>ia(e,!1,r.id),e=>ia(e,!0,r.id)).then(t=>(t[0]!==Xi&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Zi&&l[2]?aa(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Sa(e,t,r,await na(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return la(e,n),ea}finally{fa(e,n,!1,s)}}function ha(e,t,n){t[0]===Xi?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==$i&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function ga(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&la(e,r)}function _a(e,t){return t[0]===Zi||t[0]===Qi?{...e,status:t[0]===Zi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function va(e,t,n,r,i,a,o){let s=t[1][n],c=ra(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(pa(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=ea)),!p){if(s.status!==`success`)f=!0;else{let t=a[3]||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,la(e,s),p=oa(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`?m:m?.handler,g=(!l||c.options.preload!==!1)&&m?e._flights?.get(s.id):void 0;g===s._flight||p?g=void 0:g&&!f&&!l&&d===void 0?f=!0:f||(g=void 0);let _=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((typeof m==`function`?void 0:m?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),v=f&&(!l||c.options.preload!==!1),y=v&&!_&&(s.status!==`success`||!!m),b=n>=o?a[7]:void 0,x=c.lazyFn&&c._lazy!==!0?b:void 0;if(v&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),g&&g[2]++,y){let t=s._flight;s._flight=g,ca(e,s,t)?.abort(),n>=o&&(s.status=`pending`),b?.()}v||(s.isFetching=!1);let S=(p?Promise.resolve(p):y?ma(e,t,s,c,h,i,a):Promise.resolve([Xi,s.loaderData])).then(t=>(y&&(ha(s,t,l),t[0]===Xi&&(m&&!a[0].signal.aborted&&ga(e,s,u),n>=o&&(s.status=`pending`))),t)),C=na(Promise.resolve().then(()=>qi(c,void 0,x)),a[0].signal).then(()=>void 0,r=>t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound))?void 0:[n,oa(e,t,c,r,a)]).then(e=>S.then(t=>(y&&!e&&t[0]===Xi&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,b?.()),e)));if(r.push([n,S,C]),!_)return S.then(e=>_a(s,e));let w={...s,status:`pending`,preload:!1,_flight:g};s.invalid=!1,s.isFetching=`loader`;let T=ma(e,t,w,c,h,i,a).then(e=>(s.isFetching=!1,ha(w,e,!1),e));return(t[2]??=[]).push([n,T,C,w]),T.then(e=>_a(w,e))}async function ya(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=ra(e,t[n]);try{let e=qi(i,!1);e&&await na(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function ba(e,t){t[2]&&=(ua(e,t[2].map(e=>e[3])),void 0)}async function xa(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=$i)throw[a,t];!i&&t[0]!==Xi&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===$i)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Sa(e,t,n,r,i,a){for(;r[0]===$i;){let o=r[1];if(o.options.reloadDocument?i[3]:i[1]>=20)return r;try{return o.options.href&&o.options.reloadDocument?(e.resolveRedirect(o),r):[$i,o,e.buildLocation({...o.options,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(e){r=a?[Zi,e]:aa(n,e),a=!0}}return r}async function Ca(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Qi?ya(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=$i)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Xi&&t[0]<$i&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=$i){let n=s[1];if(n[0]!==$i||n[1].options.reloadDocument||n[2])return ba(e,t),n;c=!0,s=[0,[Zi,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Zi?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=ra(e,u);try{await na(i?Promise.resolve().then(()=>qi(m,l===Zi?`errorComponent`:`notFoundComponent`)):Promise.all([qi(m),qi(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return ba(e,t),ea}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),ba(e,t),ua(e,o),p()):u.status=`success`}return t}async function wa(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;te._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await ya(e,i[1],void 0,a,s);t!==s&&(n[s]._notFound=void 0,n[t]._notFound=!0),s=t}let c=s<0?n.length:s+1,l=0;for(;l{for(let t=d;t=$i&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Ca(e,i,u,r[0],xa(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=xa(i[2],void 0,void 0,h.then(e=>ta(e)?0:Ji(e[1]).length,()=>0))),o=await h}catch(t){if(ba(e,i),t===a&&a.aborted)return ea;throw t}return ta(o)?o:wa(e,o,a,r[6]===o[1].length?r[6]:0)}function Ea(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a0){i[3]=setTimeout(()=>Ea(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Da(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Oa(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Ji(t[3]).some(e=>e.id===n[1]))return;let i;try{await na(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function ka(e,t){e._committed=t,e.stores.setMatches(t)}function Aa(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=Ji(n).length,s=new Map;{let t=Date.now();for(let r of[...i,...a.values()]){if(r.status!==`success`||n.some((e,t)=>e.id===r.id&&(t=(r.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||s.set(r.id,a.get(r.id)===r?r:{...r,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=s,ka(e,n),ua(e,[...a.values(),...i],[...n,...s.values()]),Ii(e,i,n,t)}async function ja(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function Ma(e,t,n){let r=n[1],i=n[2];if(!i){await e.navigate({...r.options,replace:!0,ignoreBlocker:!0});return}if(r.options.reloadDocument){await e.navigate({href:i.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});return}i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.options.viewTransition,replace:!0,resetScroll:r.options.resetScroll,hashScrollIntoView:r.options.hashScrollIntoView,ignoreBlocker:!0});queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),await a}async function Na(e,t,n,r,i){let a=n.map(e=>({...e}));da(a);for(let t of r)la(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Ca(e,o,r,t[0],i)}catch(t){throw ua(e,a),t}if(ta(s)){ua(e,a),s[0]===$i&&e._tx===t&&e._committed===n&&await Ma(e,t,s);return}let c=await wa(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){ua(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),la(e,n))}ka(e,c[1]),ua(e,n,c[1])}async function Pa(e,t,n,r,i,a){let o=[t[0],t[1],e._committed,void 0,i,n,a,r],s=await Ta(e,t[2],t[3],o);if(ta(s)){let n=s[0]===$i&&e._tx===t;if((!n||s[1].options.reloadDocument)&&Da(e,t),ua(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Da(e,t);return}await Ma(e,t,s);return}if(e._tx!==t){Da(e,t),ua(e,s[1]),ba(e,s);return}if(await Oa(e,t),e._tx!==t){Da(e,t),ua(e,s[1]),ba(e,s);return}let c=t[2],l=Pi(c,e.stores.resolvedLocation.get()),u=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){Da(e,t),ua(e,s[1]),ba(e,s);return}if(await Oa(e,t),e._tx!==t){Da(e,t),ua(e,s[1]),ba(e,s);return}let n=await e.startTransition(()=>{Da(e,t),Aa(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s[1]);if(e._tx!==t){ba(e,s);return}u?.length&&Na(e,t,s[1],u,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function Fa(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await ja(e,n);return}let f=Pi(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await ja(e,n);return}let p=i.href===a.href,m=u,h=e.matchRoutes(a,{_controller:u});da(h);let g=l?c[1](h):void 0;if(g?m=l:l?.abort(),u.signal.aborted){ua(e,h),await ja(e,n);return}e._preflight=void 0;let _=[m,s,a,h,Date.now(),Promise.resolve().then(()=>Pa(e,_,p,()=>Ea(e,_),t?.sync,g)).then()];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&fa(e,t,!1)}n[0].abort(),ua(e,n[3],_[3],!0)}if(e._tx!==_){ua(e,_[3]),_[3]=[],await ja(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(g||!e._committed.length&&!h.some(e=>e._notFound))&&Ea(e,_),await _[5],await ja(e,_)}async function Ia(e,t,n=0,r){let i=r??e.buildLocation(t),a=e._committed,o=new AbortController,s;try{s=e.matchRoutes(i,{_controller:o}),da(s)}catch(e){o.abort(),ye(e)||console.error(e);return}(e._preloads??=new Map).set(o,s);let c;try{let t;try{t=await Ta(e,i,s,[o,n,a,!0])}finally{c=e._preloads.delete(o),ua(e,s),o.abort()}if(!ta(t))return t[1];if(c&&t[0]===$i&&!t[1].options.reloadDocument)return Ia(e,t[1].options,n+1,t[2])}catch(e){ye(e)||console.error(e)}}function La(e,t){if(e)return typeof e==`string`?e:e[t]}function Ra(e){return e?.scriptFormat??`module`}function za(e,t,n){let r=Ba(t),i=La(n,`script`)??r.crossOrigin;return{...Ra(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Ba(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Va(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 Ha(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var B=(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))(B||{});function Ua({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 Wa(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 Ga=[],Ka=0,{link:qa,unlink:Ja,propagate:Ya,checkDirty:Xa,shallowPropagate:Za}=Ua({update(e){return e._update()},notify(e){Ga[$a++]=e,e.flags&=~B.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=B.Mutable|B.Dirty,ro(e))}}),Qa=0,$a=0,eo,to=0;function no(e){try{++to,e()}finally{--to||io()}}function ro(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Ja(n,e)}function io(){if(!(to>0)){for(;Qa<$a;){let e=Ga[Qa];Ga[Qa++]=void 0,e.notify()}Qa=0,$a=0}}function ao(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?B.None:B.Mutable,get(){return eo!==void 0&&qa(i,eo,Ka),i._snapshot},subscribe(e){let t=Wa(e),n={current:!1},r=oo(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=eo,o=t?.compare??Object.is;if(n)eo=i,++Ka,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=B.Mutable|B.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{eo=a,n&&(i.flags&=~B.RecursedCheck),ro(i)}}};return n?(i.flags=B.Mutable|B.Dirty,i.get=function(){let e=i.flags;if(e&B.Dirty||e&B.Pending&&Xa(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Za(e)}}else e&B.Pending&&(i.flags=e&~B.Pending);return eo!==void 0&&qa(i,eo,Ka),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Ya(e),Za(e),io())}},i}function oo(e){let t=()=>{let t=eo;eo=n,++Ka,n.depsTail=void 0,n.flags=B.Watching|B.RecursedCheck;try{return e()}finally{eo=t,n.flags&=~B.RecursedCheck,ro(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:B.Watching|B.RecursedCheck,notify(){let e=this.flags;e&B.Dirty||e&B.Pending&&Xa(this.deps,this)?t():this.flags=B.Watching},stop(){this.flags=B.None,this.depsTail=void 0,ro(this)}};return t(),n}var V=n(r(),1);function so(e,t){let n=e[1];e.length=0,n?.(t)}function co({t:e}){let t=ke(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{so(n,!1),n.push(i,a),e(t),V.startTransition(r)}),A(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(O(r.publicHref)!==O(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Pi(a,a)})}):t._tx||t.load().catch(console.error),e},[t,t.history]),null}var H=t();function U(){let e=ke(),t=e.routesById[Ce],n=be(e,t),r=e.ssr?_e:V.Suspense,i=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(co,{t:V.useState()[1]}),(0,H.jsx)(r,{fallback:n,children:(0,H.jsx)(lo,{})})]});return e.options.InnerWrap?(0,H.jsx)(e.options.InnerWrap,{children:i}):i}function lo(){let e=ke(),t=e._rendered,n=je(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;A(()=>{t[0]===n&&so(t,!0)},[t,n]);let a=i?(0,H.jsx)(xe,{routeId:i}):null;return(0,H.jsx)(Se.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,H.jsx)(ge,{getResetKey:()=>r,onCatch:void 0,children:a})})}var uo=e=>({createMutableStore:ao,createReadonlyStore:ao,batch:no}),fo=e=>new po(e),po=class extends Li{constructor(e){super(e,uo)}};function mo({router:e,children:t,...n}){pe(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,H.jsx)(Ae.Provider,{value:e,children:t});return e.options.Wrap?(0,H.jsx)(e.options.Wrap,{children:r}):r}function ho({router:e,...t}){return(0,H.jsx)(mo,{router:e,...t,children:(0,H.jsx)(U,{})})}function go(e){let t=ke();return je(t.stores.location,Ee(e,t))}function _o(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 vo(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,H.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,H.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,H.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,H.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,H.jsx)(yo,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function yo({attrs:e,children:t,preventScriptHoist:n}){ke();let r=Oe(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(V.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 _o(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,_o(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,H.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}function bo(e,t,n,r){n=Yi(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:T(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=Ha(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:La(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...za(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return Va(m,a),m.push(...d),Va(m,c),m.push(...u),Va(m,f),Va(m,p),m}var xo=e=>{let t=ke(),n=t.options.ssr?.nonce,r=V.useCallback(r=>bo(t,n,r,e),[e,n,t]);return je(t.stores.matches,r,te)};function So(e){let t=xo(e.assetCrossOrigin),n=ke().options.ssr?.nonce;return(0,H.jsx)(H.Fragment,{children:t.map(e=>(0,V.createElement)(vo,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Co=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,D());else{var t=n(l);t!==null&&ne(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&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,O=te.port2;te.port1.onmessage=ee,D=function(){O.postMessage(null)}}else D=function(){_(ee,0)};function ne(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,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),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}}}})),wo=e(((e,t)=>{t.exports=Co()})),To=e((e=>{var t=wo(),n=r(),i=Fe();function a(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function j(e,t){se++,oe[se]=e.current,e.current=t}var ue=ce(null),M=ce(null),de=ce(null),fe=ce(null);function pe(e,t){switch(j(de,t),j(M,e),j(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(ue),j(ue,e)}function me(){le(ue),le(M),le(de)}function he(e){e.memoizedState!==null&&j(fe,e);var t=ue.current,n=Hd(t,e.type);t!==n&&(j(M,e),j(ue,n))}function ge(e){M.current===e&&(le(ue),le(M)),fe.current===e&&(le(fe),Qf._currentValue=ae)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1i.map(i=>d[i]); +import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{M as a,O as o,S as s,T as c,_ as l,b as u,c as d,g as f,h as p,j as m,n as h,s as g,t as _,x as v,y}from"./QueryClientProvider.js";import{t as b}from"./query.js";import{t as x}from"./mutation.js";import{C as S,D as C,O as w,S as T,T as E,_ as ee,a as D,b as te,c as O,d as ne,f as re,h as ie,i as k,j as A,k as ae,l as oe,m as se,n as ce,o as le,p as j,r as ue,t as M,u as de,v as fe,w as pe,x as me,y as he}from"./link.js";import{a as ge,i as _e,n as ve,o as ye,r as be,t as xe}from"./Match.js";import{n as Se,r as Ce}from"./matchContext.js";import{n as we,t as Te}from"./redirect.js";import{i as Ee,n as N,r as De,t as P}from"./lazyRouteComponent.js";import{a as Oe,n as ke,r as Ae,t as je}from"./useStore.js";import{n as Me}from"./with-selector.js";import{t as Ne}from"./useNavigate.js";import{d as Pe,f as Fe,n as Ie,o as Le,t as Re}from"./useValueAsRef.js";import{a as ze,f as Be,l as Ve,n as He,o as Ue,t as We,u as Ge}from"./dist.js";import{t as Ke}from"./useRender.js";import{a as qe,an as F,i as Je,lt as I,n as Ye}from"./cluster-config.js";import{t as L}from"./createLucideIcon.js";import{t as Xe}from"./camera.js";import{a as Ze,c as Qe,i as $e,n as et,o as tt,r as nt,s as rt,t as it}from"./waypoints.js";import{n as at,t as ot}from"./_id.js";import{n as st,t as ct}from"./_clusterName.js";import{n as lt,t as ut}from"./_id2.js";import{_ as dt,b as ft,n as pt,o as mt,s as ht,t as gt,y as _t}from"./button.js";import{C as vt,b as yt,f as bt,g as xt,h as St,i as Ct,m as wt,s as Tt,t as Et,v as Dt,x as Ot,y as kt}from"./createBaseUIEventDetails.js";import{A as At,B as jt,E as Mt,F as Nt,G as Pt,J as Ft,M as It,N as Lt,O as Rt,R as zt,S as Bt,U as Vt,W as Ht,Y as Ut,b as Wt,bt as Gt,ct as Kt,dt as qt,ft as Jt,g as Yt,h as Xt,k as Zt,lt as Qt,m as $t,nt as en,ot as tn,p as nn,q as rn,vt as an,w as on,x as sn,y as cn}from"./useScrollLock.js";import{n as ln,r as un,t as dn}from"./usePositioner.js";import"./input.js";import{t as fn}from"./separator.js";import{a as pn,c as mn,i as hn,l as gn,n as _n,o as vn,r as yn,s as bn,t as xn,u as Sn}from"./DialogTitle.js";import{t as Cn}from"./awsClient.js";import{n as wn,t as Tn}from"./admin-context.js";import{t as En}from"./acm.js";import{i as Dn,t as On}from"./bedrock.js";import{i as kn}from"./bedrockAgent.js";import{A as An,E as jn,M as Mn,O as Nn,S as Pn,_ as Fn,c as In,d as Ln,h as Rn,l as zn,n as Bn,o as Vn,p as Hn,r as Un,w as Wn,y as Gn}from"./ec2.js";import{n as Kn}from"./ecr.js";import{n as qn,o as Jn}from"./ecs.js";import{c as Yn}from"./eks2.js";import{a as Xn,o as Zn,u as Qn}from"./elbv22.js";import{C as $n,f as er,l as tr,p as nr,y as rr}from"./iam2.js";import{a as ir,d as ar,h as or,o as sr,r as cr}from"./rds3.js";import{n as lr}from"./s32.js";import{t as ur}from"./login.js";import{t as dr}from"./run-instances.js";import{t as fr}from"./create-snapshot.js";import{t as pr}from"./create-service.js";import{t as mr}from"./register-task-definition.js";import{t as hr}from"./run-task.js";import{t as gr}from"./_guardrailId.js";import{t as _r}from"./_knowledgeBaseId.js";import{t as vr}from"./_id3.js";import{t as yr}from"./_id4.js";import{t as br}from"./_id5.js";import{t as xr}from"./_id6.js";import{t as Sr}from"./_id7.js";import{t as Cr}from"./_id8.js";import{t as wr}from"./_id9.js";import{t as Tr}from"./_id10.js";import{t as Er}from"./_id11.js";import{t as Dr}from"./_id12.js";import{t as Or}from"./_id13.js";import{t as kr}from"./_id14.js";import{t as Ar}from"./_id15.js";import{t as jr}from"./_id16.js";import{t as Mr}from"./_id17.js";import{t as Nr}from"./_id18.js";import{t as Pr}from"./_clusterName2.js";import{t as Fr}from"./_groupName.js";import{t as Ir}from"./_instanceProfileName.js";import{t as Lr}from"./_policyArn.js";import{t as Rr}from"./_roleName.js";import{t as zr}from"./_userName.js";import{t as Br}from"./_id19.js";import{t as Vr}from"./_name.js";import{t as Hr}from"./_id20.js";import{t as Ur}from"./_id21.js";import{t as Wr}from"./_name2.js";import{t as Gr}from"./_bucket.js";import{t as Kr}from"./_.js";import{t as qr}from"./_serviceName.js";import{t as Jr}from"./_taskId.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Yr=class extends a{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 x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Xr(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=Xr(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=Xr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Xr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){d.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=>y(t,e))}findAll(e={}){return this.getAll().filter(t=>y(e,t))}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return d.batch(()=>Promise.all(e.map(e=>e.continue().catch(v))))}};function Xr(e){return e.options.scope?.id}var Zr=class extends a{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??l(r,t),a=this.get(i);return a||(a=new b({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){d.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=>u(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>u(e,t)):t}notify(e){d.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){d.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){d.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Zr,this.#t=e.mutationCache||new Yr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=g.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(c(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=p(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return d.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;d.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return d.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=d.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(v).catch(v)}invalidateQueries(e,t={}){return d.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=d.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(v)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(v)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(c(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(v).catch(v)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(v).catch(v)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return g.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(f(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{s(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(f(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{s(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||=l(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===o&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function $r(){try{return sessionStorage}catch{return}}var ei=`tsr-scroll-restoration-v1_3`,ti=$r();function ni(){try{return JSON.parse(ti?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function ri(){try{ti?.setItem(ei,JSON.stringify(ii))}catch{}}var ii=ni(),ai=`data-scroll-restoration-id`,oi=e=>e.state.__TSR_key||e.href;function si(e){let t=e.getAttribute(ai);if(t)return`[${ai}="${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 ci=!1,li=`window`;function ui(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function di(e){let t=new Set;for(let n of e){if(n===li)continue;let e=ui(n);e&&t.add(e)}return t}function fi(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||oi,a=new Set,o=e=>{let t=ii[e]||={};for(let e of a)e===document?t[li]={scrollX,scrollY}:e.isConnected&&(t[si(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,ci=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{ci||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),ri()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=ii[d];if(e){let t=ii[u];for(let n in e){if(n===li){if(s)continue}else{let e=ui(n);if(!e||s&&o&&(l??=di(o),l.has(e)))continue}t||=ii[u]={},t[n]??=e[n]}}}ci=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=di(o));let t=e&&i&&c,s=r.restoring?ii[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===li){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=ui(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{ci=!1}}))}function pi(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 mi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function hi(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]=mi(r):Array.isArray(t)?t.push(mi(r)):n[e]=[t,mi(r)]}return n}var gi=/^(?:\s|["[{\d-]|fa|nu|tr)/,_i=yi(JSON.parse),vi=bi(JSON.stringify,JSON.parse);function yi(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=hi(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function bi(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!gi.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=pi(e,r);return t?`?${t}`:``}}function xi(e){return{input:({url:t})=>{for(let n of e)t=Ci(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=wi(e[n],t);return t}}}function Si(e){let t=le(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 Ci(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 wi(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 Ti(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{fe(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Ei=`__TSR_index`,Di=`popstate`,Oi=`beforeunload`;function ki(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=Ni(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[Ei];i=Ai(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[Ei];i=Ai(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[Ei]!==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 Ai(e,t){t||={};let n=Pi();return{...t,key:n,__TSR_key:n,[Ei]:e}}function ji(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??(()=>Ni(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Pi();t.history.replaceState({[Ei]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=Ni(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Ei]-l.state[Ei],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),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=ki({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Oi,x,{capture:!0}),t.removeEventListener(Di,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Oi,x,{capture:!0}),t.addEventListener(Di,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Mi(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Ni(e,t){let n=Mi(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Pi();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||{[Ei]:0,key:a,__TSR_key:a}}}function Pi(){return(Math.random()+1).toString(36).substring(7)}function R(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Fi(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Ii({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Li(e,t,n,r){for(let i of t){if(r&&e._tx!==r)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r&&e._tx!==r)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var Ri=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),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??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ce(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:ji()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ie(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Ti(this.latestLocation,e),fi(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=le(a);t&&t!==`/`&&e.push(Si({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:xi(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},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&&j(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=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,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:he(e).path,external:!1,searchStr:o,search:w(t?.search,i),hash:he(r.slice(1)).path,state:ae(t?.state,a)}}let o=new URL(i,this.origin),s=Ci(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:he(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:w(t?.search,c),hash:he(s.hash.slice(1)).path,state:ae(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)=>D({base:e,to: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=>{let t=Object.create(null),n=ne(O(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{if(t.href){let e=Ni(t.href,{});t={...t,to:Ci(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r[1],a=r[2],o=r[3],s=this.resolvePathWithBase(i,t.to?`${t.to}`:`.`),c=Wi(t.params,o),l=this.routesByPath[O(s)],u;if(l)u=this.getRouteBranch(l);else if(s.includes(`$`))u=[];else{let[e,t,n]=this.getMatchedRoutes(s);u=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(u=[...u,this.options.notFoundRoute])}if(u.length&&pe(c))for(let e of u){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){c===o&&(c=Object.assign(Object.create(null),c));try{Object.assign(c,t(c))}catch{}}}let d=e.leaveParams?s:he(ue({path:s,params:c,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,f=a;if(e._includeValidateSearch&&this.options.search?.strict){let e={};u.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Vi(t.options.validateSearch,{...e,...f}))}catch{}}),f=e}f=Hi(f,t,u,e._includeValidateSearch),f=w(a,f);let p=this.options.stringifySearch(f),m=t.hash===!0?n.hash:t.hash?S(t.hash,n.hash):void 0,h=m?`#${m}`:``,g=t.state===!0?n.state:t.state?S(t.state,n.state):{};t.state&&(g=ae(n.state,g));let _=`${d}${p}${h}`,v,y,b=!1;if(this.rewrite){let e=new URL(_,this.origin),t=wi(this.rewrite,e);v=e.href.replace(e.origin,``),t.origin===this.origin?y=t.pathname+t.search+t.hash:(y=t.href,b=!0)}else v=me(_),y=v;return{publicHref:y,href:v,pathname:d,search:f,searchStr:p,state:g,hash:m??``,external:b,unmaskOnReload:t.unmaskOnReload}},n=t(e);if(e.mask)n.maskedLocation=t({from:e.from,...e.mask});else if(this.options.routeMasks){let r=de(n.pathname,this.processedTree);if(r){let i=Object.assign(Object.create(null),r.rawParams),{from:a,params:o,...s}=r.route,c=Wi(o,i);n.maskedLocation=t({from:e.from,...s,params:c})}}return n},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=O(this.latestLocation.href)===O(n.href)&&te(Ii(n.state),Ii(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,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}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!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(E(t,this.protocolAllowlist))return;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}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Ia(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Fi(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&R(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href){let t=this.buildLocation(e.options).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}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(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=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=Ji,this.preloadRoute=(e,t)=>La(this,e,0,t),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),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=re(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!te(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?te(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},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??vi,parseSearch:e.parseSearch??_i,protocolAllowlist:e.protocolAllowlist??ee}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}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}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:O(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Ui(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;r&&n&&i.push(({search:e,next:t,meta:r})=>{let i=t(e);try{let e=Vi(n,i);if(r&&e)for(let t in e)t in i||(r.defaulted||=new Map).set(t,e[t]);return{...i,...e}}catch{}return i})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=S(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function Ui(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Ce}function Wi(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;let n=Object.assign(Object.create(null),t);return Object.assign(n,S(e,n))}function Gi(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ki(e,t){return e.options[t]?.preload?.()}function qi(e,t){let n=Ki(e,`component`),r=Ki(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function Ji(e,t,n){let r=()=>t===!1?void 0:t?Ki(e,t):qi(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Yi(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function ia(e,t){return e.routesById[t.routeId]}function aa(e,t,n){return Te(e)?[ea,e]:ye(e)?(e.routeId||=n,[$i,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[Qi,e]:[Zi,e])}function oa(e,t){let n=aa(t,!0,e.id);if(n[0]!==Qi)return n;try{e.options.onError?.(n[1])}catch(t){n=aa(t,!0,e.id)}return n}function sa(e,t,n,r,i){return i[0].signal.aborted?ta:Ca(e,t,n,oa(n,r),i)}async function ca(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;ie.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id},p=d;try{let e=r._ctx;!e&&u.options.context&&(e=r._ctx=u.options.context({...f,deps:r.loaderDeps,context:d})||{}),p={...d,...e},r.context=p}catch(a){return ua(e,r),[i,sa(e,t,u,a,n)]}if(c.aborted)return[i,ta];let m=r.paramsError??r.searchError;if(m!==void 0)return ua(e,r),[i,sa(e,t,u,m,n)];let h=u.options.beforeLoad;if(!h)continue;let g={...f,search:r.search,context:p,...e.options.additionalContext},_=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{pa(e,r,`beforeLoad`,n[0]);let a=await ra(h(g),c);if(c.aborted)return[i,ta];let o=Ca(e,t,u,aa(a,!1,u.id),n);if(o[0]!==Zi)return ua(e,r),[i,o];r.context={...p,...a}}catch(a){return ua(e,r),[i,sa(e,t,u,a,n)]}finally{r.status===`pending`&&(r.status=_),pa(e,r,!1,n[0])}}i()}function la(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function ua(e,t){let n=t._flight;t._flight=void 0,la(e,t,n)?.abort()}function da(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=la(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function fa(e){for(let t of e){let e=t._flight;e&&e[2]++}}function pa(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function ma(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function ha(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return ta;if(!i)return[Zi,void 0];let l=n._flight;pa(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(ma(e,t,n,r,s,a,!!o[3]))).then(e=>aa(e,!1,r.id),e=>aa(e,!0,r.id)).then(t=>(t[0]!==Zi&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Qi&&l[2]?oa(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Ca(e,t,r,await ra(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return ua(e,n),ta}finally{pa(e,n,!1,s)}}function ga(e,t,n){t[0]===Zi?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==ea&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function _a(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&ua(e,r)}function va(e,t){return t[0]===Qi||t[0]===$i?{...e,status:t[0]===Qi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function ya(e,t,n,r,i,a,o){let s=t[1][n],c=ia(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(ma(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=ta)),!p){if(s.status!==`success`)f=!0;else{let t=a[3]||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,ua(e,s),p=sa(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`?m:m?.handler,g=(!l||c.options.preload!==!1)&&m?e._flights?.get(s.id):void 0;g===s._flight||p?g=void 0:g&&!f&&!l&&d===void 0?f=!0:f||(g=void 0);let _=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((typeof m==`function`?void 0:m?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),v=f&&(!l||c.options.preload!==!1),y=v&&!_&&(s.status!==`success`||!!m),b=n>=o?a[7]:void 0,x=c.lazyFn&&c._lazy!==!0?b:void 0;if(v&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),g&&g[2]++,y){let t=s._flight;s._flight=g,la(e,s,t)?.abort(),n>=o&&(s.status=`pending`),b?.()}v||(s.isFetching=!1);let S=(p?Promise.resolve(p):y?ha(e,t,s,c,h,i,a):Promise.resolve([Zi,s.loaderData])).then(t=>(y&&(ga(s,t,l),t[0]===Zi&&(m&&!a[0].signal.aborted&&_a(e,s,u),n>=o&&(s.status=`pending`))),t)),C=ra(Promise.resolve().then(()=>Ji(c,void 0,x)),a[0].signal).then(()=>void 0,r=>t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound))?void 0:[n,sa(e,t,c,r,a)]).then(e=>S.then(t=>(y&&!e&&t[0]===Zi&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,b?.()),e)));if(r.push([n,S,C]),!_)return S.then(e=>va(s,e));let w={...s,status:`pending`,preload:!1,_flight:g};s.invalid=!1,s.isFetching=`loader`;let T=ha(e,t,w,c,h,i,a).then(e=>(s.isFetching=!1,ga(w,e,!1),e));return(t[2]??=[]).push([n,T,C,w]),T.then(e=>va(w,e))}async function ba(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=ia(e,t[n]);try{let e=Ji(i,!1);e&&await ra(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function xa(e,t){t[2]&&=(da(e,t[2].map(e=>e[3])),void 0)}async function Sa(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=ea)throw[a,t];!i&&t[0]!==Zi&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===ea)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Ca(e,t,n,r,i,a){for(;r[0]===ea;){let o=r[1];if(o.options.reloadDocument?i[3]:i[1]>=20)return r;try{return o.options.href&&o.options.reloadDocument?(e.resolveRedirect(o),r):[ea,o,e.buildLocation({...o.options,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(e){r=a?[Qi,e]:oa(n,e),a=!0}}return r}async function wa(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===$i?ba(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=ea)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Zi&&t[0]=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=ea){let n=s[1];if(n[0]!==ea||n[1].options.reloadDocument||n[2])return xa(e,t),n;c=!0,s=[0,[Qi,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Qi?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=ia(e,u);try{await ra(i?Promise.resolve().then(()=>Ji(m,l===Qi?`errorComponent`:`notFoundComponent`)):Promise.all([Ji(m),Ji(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return xa(e,t),ta}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),xa(e,t),da(e,o),p()):u.status=`success`}return t}async function Ta(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;te._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await ba(e,i[1],void 0,a,s);t!==s&&(n[s]._notFound=void 0,n[t]._notFound=!0),s=t}let c=s<0?n.length:s+1,l=0;for(;l{for(let t=d;t=ea&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=wa(e,i,u,r[0],Sa(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Sa(i[2],void 0,void 0,h.then(e=>na(e)?0:Yi(e[1]).length,()=>0))),o=await h}catch(t){if(xa(e,i),t===a&&a.aborted)return ta;throw t}return na(o)?o:Ta(e,o,a,r[6]===o[1].length?r[6]:0)}function Da(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a0){i[3]=setTimeout(()=>Da(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Oa(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function ka(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Yi(t[3]).some(e=>e.id===n[1]))return;let i;try{await ra(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Aa(e,t){e._committed=t,e.stores.setMatches(t)}function ja(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=Yi(n).length,s=new Map;{let t=Date.now();for(let r of[...i,...a.values()]){if(r.status!==`success`||n.some((e,t)=>e.id===r.id&&(t=(r.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||s.set(r.id,a.get(r.id)===r?r:{...r,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=s,Aa(e,n),da(e,[...a.values(),...i],[...n,...s.values()]),Li(e,i,n,t)}async function Ma(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function Na(e,t,n){let r=n[1],i=n[2];if(!i){await e.navigate({...r.options,replace:!0,ignoreBlocker:!0});return}if(r.options.reloadDocument){await e.navigate({href:i.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});return}i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.options.viewTransition,replace:!0,resetScroll:r.options.resetScroll,hashScrollIntoView:r.options.hashScrollIntoView,ignoreBlocker:!0});queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),await a}async function Pa(e,t,n,r,i){let a=n.map(e=>({...e}));fa(a);for(let t of r)ua(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await wa(e,o,r,t[0],i)}catch(t){throw da(e,a),t}if(na(s)){da(e,a),s[0]===ea&&e._tx===t&&e._committed===n&&await Na(e,t,s);return}let c=await Ta(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){da(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),ua(e,n))}Aa(e,c[1]),da(e,n,c[1])}async function Fa(e,t,n,r,i,a){let o=[t[0],t[1],e._committed,void 0,i,n,a,r],s=await Ea(e,t[2],t[3],o);if(na(s)){let n=s[0]===ea&&e._tx===t;if((!n||s[1].options.reloadDocument)&&Oa(e,t),da(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Oa(e,t);return}await Na(e,t,s);return}if(e._tx!==t){Oa(e,t),da(e,s[1]),xa(e,s);return}if(await ka(e,t),e._tx!==t){Oa(e,t),da(e,s[1]),xa(e,s);return}let c=t[2],l=Fi(c,e.stores.resolvedLocation.get()),u=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){Oa(e,t),da(e,s[1]),xa(e,s);return}if(await ka(e,t),e._tx!==t){Oa(e,t),da(e,s[1]),xa(e,s);return}let n=await e.startTransition(()=>{Oa(e,t),ja(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s[1]);if(e._tx!==t){xa(e,s);return}u?.length&&Pa(e,t,s[1],u,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function Ia(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await Ma(e,n);return}let f=Fi(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await Ma(e,n);return}let p=i.href===a.href,m=u,h=e.matchRoutes(a,{_controller:u});fa(h);let g=l?c[1](h):void 0;if(g?m=l:l?.abort(),u.signal.aborted){da(e,h),await Ma(e,n);return}e._preflight=void 0;let _=[m,s,a,h,Date.now(),Promise.resolve().then(()=>Fa(e,_,p,()=>Da(e,_),t?.sync,g)).then()];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&pa(e,t,!1)}n[0].abort(),da(e,n[3],_[3],!0)}if(e._tx!==_){da(e,_[3]),_[3]=[],await Ma(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(g||!e._committed.length&&!h.some(e=>e._notFound))&&Da(e,_),await _[5],await Ma(e,_)}async function La(e,t,n=0,r){let i=r??e.buildLocation(t),a=e._committed,o=new AbortController,s;try{s=e.matchRoutes(i,{_controller:o}),fa(s)}catch(e){o.abort(),ye(e)||console.error(e);return}(e._preloads??=new Map).set(o,s);let c;try{let t;try{t=await Ea(e,i,s,[o,n,a,!0])}finally{c=e._preloads.delete(o),da(e,s),o.abort()}if(!na(t))return t[1];if(c&&t[0]===ea&&!t[1].options.reloadDocument)return La(e,t[1].options,n+1,t[2])}catch(e){ye(e)||console.error(e)}}function Ra(e,t){if(e)return typeof e==`string`?e:e[t]}function za(e){return e?.scriptFormat??`module`}function Ba(e,t,n){let r=Va(t),i=Ra(n,`script`)??r.crossOrigin;return{...za(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Va(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Ha(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 Ua(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var z=(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))(z||{});function Wa({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 Ga(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 Ka=[],qa=0,{link:Ja,unlink:Ya,propagate:Xa,checkDirty:Za,shallowPropagate:Qa}=Wa({update(e){return e._update()},notify(e){Ka[eo++]=e,e.flags&=~z.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=z.Mutable|z.Dirty,io(e))}}),$a=0,eo=0,to,no=0;function ro(e){try{++no,e()}finally{--no||ao()}}function io(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Ya(n,e)}function ao(){if(!(no>0)){for(;$a{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=to,o=t?.compare??Object.is;if(n)to=i,++qa,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=z.Mutable|z.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{to=a,n&&(i.flags&=~z.RecursedCheck),io(i)}}};return n?(i.flags=z.Mutable|z.Dirty,i.get=function(){let e=i.flags;if(e&z.Dirty||e&z.Pending&&Za(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Qa(e)}}else e&z.Pending&&(i.flags=e&~z.Pending);return to!==void 0&&Ja(i,to,qa),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Xa(e),Qa(e),ao())}},i}function so(e){let t=()=>{let t=to;to=n,++qa,n.depsTail=void 0,n.flags=z.Watching|z.RecursedCheck;try{return e()}finally{to=t,n.flags&=~z.RecursedCheck,io(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:z.Watching|z.RecursedCheck,notify(){let e=this.flags;e&z.Dirty||e&z.Pending&&Za(this.deps,this)?t():this.flags=z.Watching},stop(){this.flags=z.None,this.depsTail=void 0,io(this)}};return t(),n}var B=n(r(),1);function co(e,t){let n=e[1];e.length=0,n?.(t)}function lo({t:e}){let t=ke(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{co(n,!1),n.push(i,a),e(t),B.startTransition(r)}),A(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(O(r.publicHref)!==O(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Fi(a,a)})}):t._tx||t.load().catch(console.error),e},[t,t.history]),null}var V=t();function H(){let e=ke(),t=e.routesById[Ce],n=be(e,t),r=e.ssr?_e:B.Suspense,i=(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(lo,{t:B.useState()[1]}),(0,V.jsx)(r,{fallback:n,children:(0,V.jsx)(U,{})})]});return e.options.InnerWrap?(0,V.jsx)(e.options.InnerWrap,{children:i}):i}function U(){let e=ke(),t=e._rendered,n=je(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;A(()=>{t[0]===n&&co(t,!0)},[t,n]);let a=i?(0,V.jsx)(xe,{routeId:i}):null;return(0,V.jsx)(Se.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,V.jsx)(ge,{getResetKey:()=>r,onCatch:void 0,children:a})})}var uo=e=>({createMutableStore:oo,createReadonlyStore:oo,batch:ro}),fo=e=>new po(e),po=class extends Ri{constructor(e){super(e,uo)}};function mo({router:e,children:t,...n}){pe(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,V.jsx)(Ae.Provider,{value:e,children:t});return e.options.Wrap?(0,V.jsx)(e.options.Wrap,{children:r}):r}function ho({router:e,...t}){return(0,V.jsx)(mo,{router:e,...t,children:(0,V.jsx)(H,{})})}function go(e){let t=ke();return je(t.stores.location,Ee(e,t))}function _o(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 vo(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,V.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,V.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,V.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,V.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,V.jsx)(yo,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function yo({attrs:e,children:t,preventScriptHoist:n}){ke();let r=Oe(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(B.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 _o(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,_o(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,V.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}function bo(e,t,n,r){n=Xi(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:T(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=Ua(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Ra(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...Ba(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return Ha(m,a),m.push(...d),Ha(m,c),m.push(...u),Ha(m,f),Ha(m,p),m}var xo=e=>{let t=ke(),n=t.options.ssr?.nonce,r=B.useCallback(r=>bo(t,n,r,e),[e,n,t]);return je(t.stores.matches,r,te)};function So(e){let t=xo(e.assetCrossOrigin),n=ke().options.ssr?.nonce;return(0,V.jsx)(V.Fragment,{children:t.map(e=>(0,B.createElement)(vo,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Co=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,D());else{var t=n(l);t!==null&&ne(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&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,O=te.port2;te.port1.onmessage=ee,D=function(){O.postMessage(null)}}else D=function(){_(ee,0)};function ne(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,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),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}}}})),wo=e(((e,t)=>{t.exports=Co()})),To=e((e=>{var t=wo(),n=r(),i=Fe();function a(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function j(e,t){se++,oe[se]=e.current,e.current=t}var ue=ce(null),M=ce(null),de=ce(null),fe=ce(null);function pe(e,t){switch(j(de,t),j(M,e),j(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(ue),j(ue,e)}function me(){le(ue),le(M),le(de)}function he(e){e.memoizedState!==null&&j(fe,e);var t=ue.current,n=Hd(t,e.type);t!==n&&(j(M,e),j(ue,n))}function ge(e){M.current===e&&(le(ue),le(M)),fe.current===e&&(le(fe),Qf._currentValue=ae)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-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{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,N=t.unstable_shouldYield,De=t.unstable_requestPaint,P=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Pe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:Ue,Ve=Math.log,He=Math.LN2;function Ue(e){return e>>>=0,e===0?32:31-(Ve(e)/He|0)|0}var We=256,Ge=262144,Ke=4194304;function qe(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 F(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=qe(n))):i=qe(o):i=qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=qe(n))):i=qe(o)):i=qe(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 Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function I(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 Ye(){var e=Ke;return Ke<<=1,!(Ke&62914560)&&(Ke=4194304),e}function L(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),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=Kn),Yn=` `,Xn=!1;function Zn(e,t){switch(e){case`keyup`:return Wn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return Qn(t);case`keypress`:return t.which===32?(Xn=!0,Yn):null;case`textInput`:return e=t.data,e===Yn&&Xn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Gn&&Zn(e,t)?(e=mn(),pn=fn=dn=null,$n=!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=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(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 Dr(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 Or=cn&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Ft(r)||(r=kr,`selectionStart`in r&&Dr(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}),jr&&Sr(jr,r)||(jr=r,r=Td(Ar,`onSelect`),0>=o,i-=o,Ti=1<<32-Be(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&Di(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),z&&Di(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&Di(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)}),z&&Di(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&&Da(l)===r.type){n(e,r.sibling),c=i(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Pa(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}n(e,r);break}t(e,r),r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Da(o),b(e,r,o,c)}if(ie(o))return v(e,r,o,c);if(O(o)){if(l=O(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,Na(o),c);if(o.$$typeof===x)return b(e,r,ta(e,o),c);Fa(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=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(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 Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function B(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Ua(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 Wa(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 Ga=!1;function Ka(){if(Ga){var e=fa;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;za=!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?(Y&f)===f:(r&f)===f){f!==0&&f===da&&(Ga=!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:za=!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 Ja(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,Ns(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,ha(c,r),fu(e)):Ms(e,t,r,fu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ws(e).queue;xs(e,i,t,ae,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},fu())}function Es(){return ea(Qf)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Ha(n);var r=B(t,e,n);r!==null&&(mu(r,t,n),Ua(r,t,n)),t={cache:sa()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ti(e,t,n,r),n!==null&&(mu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,fu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(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,xr(s,o))return ei(e,t,i,0),Rl===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return mu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(a(479))}else t=ti(e,n,r,2),t!==null&&mu(t,e,2)}function Ps(e){var t=e.alternate;return e===U||t!==null&&t===U}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ls={readContext:ea,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:ea,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:ea,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){ze(!0);try{n(t)}finally{ze(!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=As.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,U,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,i=Oo();if(z){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Rl===null)throw Error(a(349));Y&127||zo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Rl.identifierPrefix;if(z){var n=Ei,r=Ti;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,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(Pd(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&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=de.current,Bi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Mi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Li(t,!0)}else e=Bd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bi(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 Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(V(t),t):(V(t),null);if(t.flags&128)throw Error(a(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Bi(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 Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),i=!1}else i=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(V(t),t):(V(t),null)}return V(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),Fc(t,t.updateQueue),Lc(t),null);case 4:return me(),e===null&&xd(t.stateNode.containerInfo),Lc(t),null;case 10:return Ji(t.type),Lc(t),null;case 19:if(le(so),r=t.memoizedState,r===null)return Lc(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)Ic(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return j(so,so.current&1|2),z&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&P()>tu&&(t.flags|=128,i=!0,Ic(r,!1),t.lanes=4194304)}}else{if(!i){if(e=co(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!z)return Lc(t),null}else 2*P()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Ic(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?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=P(),e.sibling=null,n=so.current,j(so,i?n&1|2:n&1),z&&Di(t,r.treeForkCount),e);case 22:case 23:return V(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(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&&le(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ji(oa),Lc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function zc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(oa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(V(t),t.alternate===null)throw Error(a(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(V(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(so),null;case 4:return me(),null;case 10:return Ji(t.type),null;case 22:case 23:return V(t),eo(),e!==null&&le(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ji(oa),null;case 25:return null;default:return null}}function Bc(e,t){switch(Ai(t),t.tag){case 3:Ji(oa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&V(t);break;case 13:V(t);break;case 19:le(so);break;case 10:Ji(t.type);break;case 22:case 23:V(t),eo(),e!==null&&le(_a);break;case 24:Ji(oa)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Q(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function G(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Q(e,e.return,t)}}}function Uc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function K(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){Q(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Q(e,t,n)}else n.current=null}}function Gc(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){Q(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[st]=t}catch(t){Q(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(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&&Zd(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 Yc(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&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(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&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ot]=e,t[st]=n}catch(t){Q(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Rd=sp,e=Er(e),Dr(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(zd={focusedElem:e,selectionRange:n},sp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,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`))),Pd(o,r,n),o[ot]=e,R(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(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,k.T=null,n=cu,cu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,q&6)throw Error(a(331));var c=q;if(q|=4,Nl(o.current),Tl(o,o.current,s,n),q=c,rd(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{A.p=i,k.T=r,Bu(e,t)}}function Uu(e,t,n){t=_i(n,t),t=Zs(e.stateNode,t,2),e=B(e,t,2),e!==null&&(Xe(e,2),nd(e))}function Q(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=_i(n,e),n=Qs(2),r=B(t,n,2),r!==null&&($s(n,r,t,e),Xe(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;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=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>P()-$l?!(q&2)&&xu(e,0):ql|=n,Yl===Y&&(Yl=0)),nd(e)}function Ku(e,t){t===0&&(t=Ye()),e=ni(e,t),e!==null&&(Xe(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(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),Ku(e,n)}function Yu(e,t){return Te(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;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-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Y,a=F(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=P(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}iu!==0&&iu!==5||rd(e,!1),td!==0&&(td=0)}function od(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&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),R(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;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=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),R(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;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=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),R(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=vt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);R(c),Pd(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,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),R(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),R(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=de.current)?gf(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=Af(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=Af(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(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.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},mf.set(e,n),o||Nf(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=Pf(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 Af(e){return`href="`+Lt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(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}),Pd(t,`link`,n),R(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Lt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(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,R(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`),R(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,R(o),o;r=Mf(n),(i=mf.get(i))&&Rf(r,i),o=(e.ownerDocument||e).createElement(`link`),R(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,R(i),i):(r=n,(i=mf.get(o))&&(r=p({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),R(i),Pd(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,Lf(r,n.precedence,e));return t.instance}function Lf(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 Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(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=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,R(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),R(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.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=To()}))(),1),W=i(),Do=(0,V.createContext)(void 0);function Oo(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ko(e){let t=(0,W.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=()=>Oo(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,V.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,V.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,H.jsx)(Do.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Ao(){let e=(0,V.useContext)(Do);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}var jo=L(`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`}]]),Mo=L(`book-open`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]),No=L(`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`}]]),Po=L(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Fo=L(`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`}]]),Io=L(`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`}]]),Lo=L(`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`}]]),Ro=L(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),zo=L(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Bo=L(`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`}]]),Vo=L(`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`}]]),Ho=L(`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`}]]),Uo=L(`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`}]]),Wo=L(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),Go=L(`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`}]]),Ko=L(`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`}]]),qo=L(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Jo=L(`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`}]]),Yo=L(`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`}]]),Xo=L(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Zo=L(`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`}]]),Qo=L(`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`}]]),$o=L(`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`}]]),es=L(`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`}]]),ts=L(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),ns=L(`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`}]]);function rs(e,t){return t!=null&&!$t(t)?0:typeof e==`function`?e():e}function is(e,t,n){let r=rs(e,n);return typeof r==`number`?r:r?.[t]}function as(e){return typeof e==`function`?e():e}function os(e,t){return t||e===`click`||e===`mousedown`}function ss(e){return e?.includes(`mouse`)&&e!==`mousedown`}var cs=V.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Pt,currentIdRef:{current:null},currentContextRef:{current:null}});function ls(e,t){e.current=t.current}function us(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=V.useRef(n),a=V.useRef(n),o=V.useRef(null),s=V.useRef(null),c=Ht();return mt(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:is(i.current,`open`),close:is(n,`close`)}},[n,o,i,a]),(0,H.jsx)(cs.Provider,{value:V.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function ds(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}=V.useContext(cs),[f,p]=V.useState(!1),m=V.useRef(n);return mt(()=>{m.current=n},[n]),mt(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),mt(()=>{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:is(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Tt(yt))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),mt(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,ls(o,c),d.clear()}},[l,a,o,i,c,d]),V.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function fs(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 ps(e){return e!=null&&e.clientX!=null}function ms(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=V.useRef(!1),u=V.useRef(null),[d,f]=V.useState(),[p,m]=V.useState([]),h=ht(e=>{i.set(`positionReference`,e)}),g=ht((e,t,n)=>{l.current||c.current.openEvent&&!ps(c.current.openEvent)||i.set(`positionReference`,fs(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ht(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=$t(d)?o:a;V.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=dt(o);function r(t){let n=R(t);Ot(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||ps(c.current.openEvent)?u.current=Ie(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),V.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),V.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),V.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=V.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return V.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var hs=Me();function gs(e){let t=V.useCallback(t=>e===void 0?Ue:e.subscribeStore(t),[e]),n=V.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,hs.useSyncExternalStore)(t,n,()=>e?.serverStore)}var _s=Wt&&rn;function vs(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=V.useRef(!1),c=V.useRef(null),l=V.useRef(!0),u=Ht();V.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=dt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ft(e)&&e===Et(vt(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Bt(Ie(t,`blur`,r),_s&&Ie(t,`keydown`,a,!0),_s&&Ie(t,`pointerdown`,o,!0))},[i,n]),V.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);_t(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=V.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=R(t.nativeEvent);if(_t(a)){if(_s&&!t.relatedTarget){if(!l.current&&!Kt(a))return}else if(!qt(a))return}let o=Zt(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,Tt(Ct,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Tt(Ct,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=_t(n)&&n.hasAttribute(At(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Et(vt(e));!n&&t===e||Ot(o.current.floatingContext?.refs.floating.current,t)||Ot(e,t)||a||Zt(n??t,i.context.triggerElements)||i.setOpen(!1,Tt(Ct,r))})}}},[o,r,i,u]);return V.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var ys=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 Pt,this.restTimeout=new Pt,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},bs=new WeakMap;function xs(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&bs.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),bs.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ss(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=bs.get(n);a&&a!==e&&xs(a),xs(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,bs.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Cs(e){let t=e.context.dataRef.current,n=Ve(()=>t.hoverInteractionState??ys.create()).current;return t.hoverInteractionState||=n,Pe(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ws(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=It(),d=Ft(),f=Cs(a),p=Ht(),m=ht(()=>os(l.current.openEvent?.type,f.interactedInside)),h=ht(()=>ss(l.current.openEvent?.type)),g=ht(()=>{xs(f)});mt(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),V.useEffect(()=>g,[g]),mt(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&_t(c)&&s){let e=c,t=s,n=vt(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Ss(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),V.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&en(u.nodesRef.current,d).length>0)}function t(e){let t=is(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Tt(xt,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=R(e);if(!Gt(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(Zt(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&_t(o)&&en(u.nodesRef.current,r,!1).some(e=>Ot(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,Tt(xt,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Bt(y&&Ie(y,`mouseenter`,c),y&&Ie(y,`mouseleave`,_),y&&Ie(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Ts=n(Fe(),1),Es={current:null};function Ds(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Es,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=It(l),y=Cs(h),b=V.useRef(!1),x=Re(i),S=Re(r),C=Re(o),w=Re(n),T=Re(p),E=Re(f),ee=ht(()=>os(g.current.openEvent?.type,y.interactedInside)),D=ht(()=>T.current?.()!==!1),te=ht((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!Ot(e,t);if(!_t(n))return!1;let i=n;return r.hasMatchingElement(e=>Ot(e,i))&&(!e||!Ot(e,i))}),O=ht(()=>{y.handler&&=(vt(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),ne=ht(()=>{xs(y)});return u&&(y.handleCloseOptions=x.current?.__options),V.useEffect(()=>O,[O]),V.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===xt,O(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,O]),V.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=is(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,Tt(xt,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,Tt(xt,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!_t(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!$t(y.pointerType))return;let t=as(C.current),n=is(S.current,`open`,y.pointerType),r=R(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(_t(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(Ot(e,r)){s=e;break}}_t(i)&&_t(o)&&!h.context.triggerElements.hasElement(i)&&Ot(i,o)&&(s=o);let c=s!=null&&te(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&_t(s)&&_t(o)&&Ot(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){D()&&h.setOpen(!0,Tt(xt,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&D()&&h.setOpen(!0,Tt(xt,e,s))}):g&&D()&&h.setOpen(!0,Tt(xt,e,s)))}function i(t){if(ee()){ne();return}O();let n=h.select(`domReferenceElement`),r=vt(n);y.restTimeout.clear(),y.restTimeoutPending=!1;let i=g.current.floatingContext??d?.();if(!Zt(t.relatedTarget,h.context.triggerElements)){if(x.current&&i){h.select(`open`)||y.openChangeTimeout.clear();let n=c.current;y.handler=x.current({...i,tree:v,x:t.clientX,y:t.clientY,onClose(){ne(),O(),w.current&&!ee()&&n===h.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!Ot(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){Ot(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?Ie(t,`mouseout`,o):void 0;return s?Bt(Ie(t,`mousemove`,r,{once:!0}),Ie(t,`mouseenter`,r),Ie(t,`mouseleave`,i),l):Bt(Ie(t,`mouseenter`,r),Ie(t,`mouseleave`,i),l)},[O,ne,g,S,h,n,x,y,u,te,ee,a,s,C,c,v,w,d,E,D,m]),V.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=te(r,n,e.target);if(a&&!$t(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Ss(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=as(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,ee())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&D()&&h.setOpen(!0,Tt(xt,t,n))}y.pointerType===`touch`?Ts.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,ee,te,a,h,C,D])}var Os=.1,ks=Os*Os,As=.5;function js(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ms(e,t,n,r,i,a,o,s,c,l){let u=!1;return js(e,t,n,r,i,a)&&(u=!u),js(e,t,i,a,o,s)&&(u=!u),js(e,t,o,s,c,l)&&(u=!u),js(e,t,c,l,n,r)&&(u=!u),u}function Ns(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ps(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 Fs(e={}){let{blockPointerEvents:t=!1}=e,n=new Pt,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*ks;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,ee=(T?x:S).left,D=(T?x:S).right,te=(E?x:S).top,O=(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 ne=!1;switch(c){case`top`:ne=Ps(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=Ps(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=Ps(d,f,S.right-1,O,x.left+1,te);break;case`right`:ne=Ps(d,f,x.right-1,O,S.left+1,te)}if(ne)return;if(l&&!Ns(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?As/2:As*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+As+1,o=C||T?S.bottom-As:S.top,s=C?T?S.bottom-As:S.top:S.bottom-As;re=Ms(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?As/2:As*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-As,o=C||T?S.top+As:S.bottom,s=C?T?S.top+As:S.bottom:S.top+As;re=Ms(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?As/2:As*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+As+1,o=w||E?S.right-As:S.left,s=w?E?S.right-As:S.left:S.right-As;re=Ms(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?As/2:As*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-As,o=w||E?S.left+As:S.right,s=w?E?S.left+As:S.right:S.left+As;re=Ms(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}re?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Is(e){return gn(`dialog`,e)}function Ls(e){let t=(0,W.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,H.jsx)(Is,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Rs(e){let t=(0,W.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,H.jsx)(vn,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function zs(e){let t=(0,W.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=F(`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,H.jsx)(xn,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bs(e){let t=(0,W.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0||o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(zs,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=F(`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,H.jsxs)(hn,{"data-slot":`sheet-close`,render:(0,H.jsx)(gt,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,H.jsx)(lt,{}),(0,H.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,H.jsxs)(Rs,{children:[l,(0,H.jsxs)(mn,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function Vs(e){let t=(0,W.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=F(`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,H.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hs(e){let t=(0,W.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=F(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(bn,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Us(e){let t=(0,W.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=F(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.jsx)(pn,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ws=V.createContext(void 0);function Gs(e){let t=V.useContext(Ws);if(t===void 0&&!e)throw Error(Ge(72));return t}var Ks={...yn,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},qs=class extends jt{constructor(e,t,n){let r=new tn;super(Js(e,r,t,n),Ys(r),Ks)}setOpen=(e,t)=>{Jt(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Tt(bt,e))}};function Js(e,t,n,r=!1){let i={...fn(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return i.floatingRootContext=_n(t,n,r),i}function Ys(e){return{popupRef:V.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Xs=Lt(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=zt((e,t)=>new qs({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),sn(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Ut(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=V.useRef(null);mt(()=>{m&&t&&p.setOpen(!1,Tt(St))},[m,t,p]),mt(()=>{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]),mt(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),V.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Tt(wt))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,H.jsxs)(Ws.Provider,{value:p,children:[l&&(0,H.jsx)(Yt,{handle:l,store:p}),T&&(0,H.jsx)(Zs,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function Zs({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=kt(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=ms(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=V.useMemo(()=>Be(a.reference,i.reference),[a.reference,i.reference]);return on(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??ze}),null}var Qs=V.createContext(void 0);function $s(){return V.useContext(Qs)}var ec=`data-base-ui-tooltip-trigger`;function tc(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!k.current}}),j=vs(v,{enabled:!O}).reference,ue=e=>{let t=k.current,n=tc(e),r=ce(n),i=y.current,a=i&&n&&Ot(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Tt(xt,e));return}if(t&&!r&&a&&!ne.current&&!m.select(`open`)&&i&&$t(ae.current)){let t=()=>{!k.current&&!ne.current&&!m.select(`open`)&&m.setOpen(!0,Tt(xt,e,i))},n=oe();n===0?(A.clear(),t()):A.start(n,t)}},M=m.useState(`triggerProps`,C);return He(`button`,e,{state:{open:_},ref:[t,S,y],props:[le,j,C||re!==`none`?M:void 0,{onMouseOver(e){ue(e.nativeEvent)},onFocus(e){se(tc(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){k.current=!1,A.clear(),ae.current=void 0},onPointerEnter(e){ae.current=e.pointerType},onPointerDown(e){ae.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,"data-trigger-disabled":O?``:void 0,[ec]:O?void 0:``},f],stateAttributesMapping:nn})}),ic=V.createContext(void 0);function ac(){let e=V.useContext(ic);if(e===void 0)throw Error(Ge(70));return e}var oc=V.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Mt({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,H.jsxs)(V.Fragment,{children:[l,c&&Ts.createPortal(n,c)]})}),sc=V.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Gs().useState(`mounted`)||n?(0,H.jsx)(ic.Provider,{value:n,children:(0,H.jsx)(oc,{ref:t,...r})}):null}),cc=V.createContext(void 0);function lc(){let e=V.useContext(cc);if(e===void 0)throw Error(Ge(71));return e}var uc=V.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=Rt,style:g,..._}=e,v=Gs(),y=ac(),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`),ee=v.useState(`adaptiveOrigin`),D=ln({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:ee}),te=V.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]),O=un(e,te,{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,H.jsx)(cc.Provider,{value:D,children:O})}),dc=V.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Gs(),{side:s,align:c}=lc(),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`);Le({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),ws(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return He(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Qt,f,cn(d),a],stateAttributesMapping:Nt})}),fc=V.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Gs(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=lc(),f={open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)};return He(`div`,e,{state:f,ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Vt})}),pc=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=V.useMemo(()=>({open:t,close:n}),[t,n]);return(0,H.jsx)(Qs.Provider,{value:t,children:(0,H.jsx)(us,{delay:i,timeoutMs:r,children:e.children})})};function mc(e){let t=(0,W.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,H.jsx)(pc,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function hc(e){let t=(0,W.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,H.jsx)(mc,{children:(0,H.jsx)(Xs,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function gc(e){let t=(0,W.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,H.jsx)(rc,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function _c(e){let t=(0,W.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=F(`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,H.jsx)(fc,{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,H.jsxs)(dc,{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,H.jsx)(sc,{children:(0,H.jsx)(uc,{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 vc=window.matchMedia(`(max-width: 767px)`);function yc(e){return vc.addEventListener(`change`,e),()=>{vc.removeEventListener(`change`,e)}}function bc(){return vc.matches}function xc(){return(0,V.useSyncExternalStore)(yc,bc)}var Sc=`sidebar_state`,Cc=604800,wc=`12rem`,Tc=`16rem`,Ec=`3rem`,Dc=`b`,Oc=V.createContext(null);function kc(){let e=V.useContext(Oc);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ac(e){let t=(0,W.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0||c,u=xc(),[d,f]=V.useState(!1),[p,m]=V.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=`${Sc}=${t}; path=/; max-age=${Cc}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>{u?f(Mc):_(jc)},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===Dc&&(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),V.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":wc,"--sidebar-width-icon":Ec,...s},t[24]=s,t[25]=T);let E=T,ee;t[26]===r?ee=t[27]:(ee=F(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[26]=r,t[27]=ee);let D;t[28]!==n||t[29]!==a||t[30]!==ee||t[31]!==E?(D=(0,H.jsx)(`div`,{className:ee,"data-slot":`sidebar-wrapper`,style:E,...a,children:n}),t[28]=n,t[29]=a,t[30]=ee,t[31]=E,t[32]=D):D=t[32];let te;return t[33]!==w||t[34]!==D?(te=(0,H.jsx)(Oc.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=te):te=t[35],te}function jc(e){return!e}function Mc(e){return!e}function Nc(e){let t=(0,W.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}=kc();if(u===`none`){let e;t[7]===r?e=t[8]:(e=F(`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,H.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":Tc},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,H.jsxs)(Vs,{className:`sr-only`,children:[(0,H.jsx)(Hs,{children:`Sidebar`}),(0,H.jsx)(Us,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,H.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,H.jsxs)(Bs,{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,H.jsx)(Ls,{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]:(_=F(`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,H.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=F(`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,H.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,H.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,H.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 Pc(e){let t=(0,W.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}=kc(),o;t[4]===n?o=t[5]:(o=F(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,H.jsx)(Xo,{}),l=(0,H.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,H.jsxs)(gt,{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 Fc(e){let t=(0,W.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}=kc(),a;t[3]===n?a=t[4]:(a=F(`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,H.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,type:`button`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Ic(e){let t=(0,W.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=F(`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,H.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 Lc(e){let t=(0,W.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=F(`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,H.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 Rc(e){let t=(0,W.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=F(`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,H.jsx)(dn,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zc(e){let t=(0,W.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=F(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto`,`group-data-[collapsible=icon]:[scrollbar-width:none] group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.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 Bc(e){let t=(0,W.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=F(`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,H.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 Vc(e){let t=(0,W.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Ke,r=`div`,i=Be({className:F(`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 Hc(e){let t=(0,W.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=F(`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,H.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 G(e){let t=(0,W.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=F(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,H.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 Uc=We(`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 K(e){let t=(0,W.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r!==void 0&&r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=kc(),m=Be({className:F(Uc({variant:u,size:d}),s)},c),h=o?gc: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=Ke(_);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,H.jsx)(_c,{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,H.jsxs)(hc,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var Wc=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Gc(e){return typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`}function Kc(e){return Gc(e)&&Wc.has(e.name)}var qc=!1;function Jc(e,t){qc||!Kc(e)||(qc=!0,Je(),Sn(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Yc(){let e=new Zr({queryCache:new Xr({onError:t=>{Jc(t,e)}}),mutationCache:new Jr({onError:t=>{Jc(t,e)}}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Xc(){let e=(0,W.c)(8),{theme:t,setTheme:n}=Ao(),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,H.jsx)($o,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,H.jsx)(Jo,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,H.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,H.jsxs)(gt,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Zc(){let e=(0,W.c)(7),{isAdmin:t,license:n}=Cn(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=F(`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,H.jsx)(Pc,{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,H.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:F(pt({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,H.jsx)(Xc,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,H.jsxs)(`header`,{className:i,children:[a,(0,H.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function Qc(){let e=(0,W.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,H.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,H.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,H.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,H.jsx)(M,{to:`/`,children:(0,H.jsx)(gt,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function $c(){let e=(0,W.c)(283),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:el},e[0]=t):t=e[0];let n=go(t),r=Ne(),i=h(),{isAdmin:a}=Cn(),o;e[1]!==r||e[2]!==i?(o=function(){Je(),Sn(),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,H.jsxs)(Ic,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,H.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,H.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,H.jsx)(Vc,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,H.jsx)(Bo,{className:`size-4`}),f=(0,H.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,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/`,children:(0,H.jsxs)(K,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/nodes`,children:(0,H.jsxs)(K,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,H.jsx)(nt,{className:`size-4`}),(0,H.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let g;e[13]!==p||e[14]!==m?(g=(0,H.jsxs)(Bc,{children:[l,(0,H.jsxs)(Hc,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=g):g=e[15];let _;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,H.jsx)(Vc,{children:`EC2`}),e[16]=_):_=e[16];let v;e[17]===n?v=e[18]:(v=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=v);let y,b;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,H.jsx)(nt,{className:`size-4`}),b=(0,H.jsx)(`span`,{children:`Instances`}),e[19]=y,e[20]=b):(y=e[19],b=e[20]);let x;e[21]===v?x=e[22]:(x=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-instances`,children:(0,H.jsxs)(K,{isActive:v,tooltip:`Instances`,children:[y,b]})})}),e[21]=v,e[22]=x);let S;e[23]===n?S=e[24]:(S=n.startsWith(`/ec2/describe-launch-templates`)||n.startsWith(`/ec2/create-launch-template`),e[23]=n,e[24]=S);let C,w;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,H.jsx)(zo,{className:`size-4`}),w=(0,H.jsx)(`span`,{children:`Launch Templates`}),e[25]=C,e[26]=w):(C=e[25],w=e[26]);let T;e[27]===S?T=e[28]:(T=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-launch-templates`,children:(0,H.jsxs)(K,{isActive:S,tooltip:`Launch Templates`,children:[C,w]})})}),e[27]=S,e[28]=T);let E;e[29]===n?E=e[30]:(E=n.startsWith(`/ec2/describe-images`),e[29]=n,e[30]=E);let ee,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,H.jsx)(at,{className:`size-4`}),D=(0,H.jsx)(`span`,{children:`Images`}),e[31]=ee,e[32]=D):(ee=e[31],D=e[32]);let te;e[33]===E?te=e[34]:(te=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-images`,children:(0,H.jsxs)(K,{isActive:E,tooltip:`Images`,children:[ee,D]})})}),e[33]=E,e[34]=te);let O;e[35]===n?O=e[36]:(O=n.startsWith(`/ec2/describe-key-pairs`),e[35]=n,e[36]=O);let ne,re;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,H.jsx)(tt,{className:`size-4`}),re=(0,H.jsx)(`span`,{children:`Key Pairs`}),e[37]=ne,e[38]=re):(ne=e[37],re=e[38]);let ie;e[39]===O?ie=e[40]:(ie=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-key-pairs`,children:(0,H.jsxs)(K,{isActive:O,tooltip:`Key Pairs`,children:[ne,re]})})}),e[39]=O,e[40]=ie);let k;e[41]===n?k=e[42]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[41]=n,e[42]=k);let A,ae;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,H.jsx)(Ko,{className:`size-4`}),ae=(0,H.jsx)(`span`,{children:`Elastic IPs`}),e[43]=A,e[44]=ae):(A=e[43],ae=e[44]);let oe;e[45]===k?oe=e[46]:(oe=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-addresses`,children:(0,H.jsxs)(K,{isActive:k,tooltip:`Elastic IPs`,children:[A,ae]})})}),e[45]=k,e[46]=oe);let se;e[47]===n?se=e[48]:(se=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[47]=n,e[48]=se);let ce,le;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,H.jsx)(rt,{className:`size-4`}),le=(0,H.jsx)(`span`,{children:`Volumes`}),e[49]=ce,e[50]=le):(ce=e[49],le=e[50]);let j;e[51]===se?j=e[52]:(j=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-volumes`,children:(0,H.jsxs)(K,{isActive:se,tooltip:`Volumes`,children:[ce,le]})})}),e[51]=se,e[52]=j);let ue;e[53]===n?ue=e[54]:(ue=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[53]=n,e[54]=ue);let de,fe;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,H.jsx)(Xe,{className:`size-4`}),fe=(0,H.jsx)(`span`,{children:`Snapshots`}),e[55]=de,e[56]=fe):(de=e[55],fe=e[56]);let pe;e[57]===ue?pe=e[58]:(pe=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-snapshots`,children:(0,H.jsxs)(K,{isActive:ue,tooltip:`Snapshots`,children:[de,fe]})})}),e[57]=ue,e[58]=pe);let me;e[59]===n?me=e[60]:(me=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[59]=n,e[60]=me);let he,ge;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,H.jsx)(Ho,{className:`size-4`}),ge=(0,H.jsx)(`span`,{children:`Placement Groups`}),e[61]=he,e[62]=ge):(he=e[61],ge=e[62]);let _e;e[63]===me?_e=e[64]:(_e=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-placement-groups`,children:(0,H.jsxs)(K,{isActive:me,tooltip:`Placement Groups`,children:[he,ge]})})}),e[63]=me,e[64]=_e);let ve;e[65]===n?ve=e[66]:(ve=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[65]=n,e[66]=ve);let ye,be;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,H.jsx)(it,{className:`size-4`}),be=(0,H.jsx)(`span`,{children:`Load Balancers`}),e[67]=ye,e[68]=be):(ye=e[67],be=e[68]);let xe;e[69]===ve?xe=e[70]:(xe=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-load-balancers`,children:(0,H.jsxs)(K,{isActive:ve,tooltip:`Load Balancers`,children:[ye,be]})})}),e[69]=ve,e[70]=xe);let Se;e[71]===n?Se=e[72]:(Se=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[71]=n,e[72]=Se);let Ce,we;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,H.jsx)(Lo,{className:`size-4`}),we=(0,H.jsx)(`span`,{children:`Target Groups`}),e[73]=Ce,e[74]=we):(Ce=e[73],we=e[74]);let Te;e[75]===Se?Te=e[76]:(Te=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-target-groups`,children:(0,H.jsxs)(K,{isActive:Se,tooltip:`Target Groups`,children:[Ce,we]})})}),e[75]=Se,e[76]=Te);let Ee;e[77]!==x||e[78]!==T||e[79]!==te||e[80]!==ie||e[81]!==oe||e[82]!==j||e[83]!==pe||e[84]!==_e||e[85]!==xe||e[86]!==Te?(Ee=(0,H.jsxs)(Bc,{children:[_,(0,H.jsxs)(Hc,{children:[x,T,te,ie,oe,j,pe,_e,xe,Te]})]}),e[77]=x,e[78]=T,e[79]=te,e[80]=ie,e[81]=oe,e[82]=j,e[83]=pe,e[84]=_e,e[85]=xe,e[86]=Te,e[87]=Ee):Ee=e[87];let N;e[88]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,H.jsx)(Vc,{children:`Networking`}),e[88]=N):N=e[88];let De;e[89]===n?De=e[90]:(De=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[89]=n,e[90]=De);let P,Oe;e[91]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,H.jsx)(Ze,{className:`size-4`}),Oe=(0,H.jsx)(`span`,{children:`VPCs`}),e[91]=P,e[92]=Oe):(P=e[91],Oe=e[92]);let ke;e[93]===De?ke=e[94]:(ke=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-vpcs`,children:(0,H.jsxs)(K,{isActive:De,tooltip:`VPCs`,children:[P,Oe]})})}),e[93]=De,e[94]=ke);let Ae;e[95]===n?Ae=e[96]:(Ae=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[95]=n,e[96]=Ae);let je,Me;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,H.jsx)(Uo,{className:`size-4`}),Me=(0,H.jsx)(`span`,{children:`Subnets`}),e[97]=je,e[98]=Me):(je=e[97],Me=e[98]);let Pe;e[99]===Ae?Pe=e[100]:(Pe=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-subnets`,children:(0,H.jsxs)(K,{isActive:Ae,tooltip:`Subnets`,children:[je,Me]})})}),e[99]=Ae,e[100]=Pe);let Fe;e[101]===n?Fe=e[102]:(Fe=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[101]=n,e[102]=Fe);let Ie,Le;e[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,H.jsx)(Qo,{className:`size-4`}),Le=(0,H.jsx)(`span`,{children:`Security Groups`}),e[103]=Ie,e[104]=Le):(Ie=e[103],Le=e[104]);let Re;e[105]===Fe?Re=e[106]:(Re=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-security-groups`,children:(0,H.jsxs)(K,{isActive:Fe,tooltip:`Security Groups`,children:[Ie,Le]})})}),e[105]=Fe,e[106]=Re);let ze;e[107]===n?ze=e[108]:(ze=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[107]=n,e[108]=ze);let Be,Ve;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,H.jsx)(Zo,{className:`size-4`}),Ve=(0,H.jsx)(`span`,{children:`Route Tables`}),e[109]=Be,e[110]=Ve):(Be=e[109],Ve=e[110]);let He;e[111]===ze?He=e[112]:(He=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-route-tables`,children:(0,H.jsxs)(K,{isActive:ze,tooltip:`Route Tables`,children:[Be,Ve]})})}),e[111]=ze,e[112]=He);let Ue;e[113]===n?Ue=e[114]:(Ue=n.startsWith(`/ec2/describe-internet-gateways`),e[113]=n,e[114]=Ue);let We,Ge;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(We=(0,H.jsx)(Qe,{className:`size-4`}),Ge=(0,H.jsx)(`span`,{children:`Internet Gateways`}),e[115]=We,e[116]=Ge):(We=e[115],Ge=e[116]);let Ke;e[117]===Ue?Ke=e[118]:(Ke=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-internet-gateways`,children:(0,H.jsxs)(K,{isActive:Ue,tooltip:`Internet Gateways`,children:[We,Ge]})})}),e[117]=Ue,e[118]=Ke);let qe;e[119]===n?qe=e[120]:(qe=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[119]=n,e[120]=qe);let F,I;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,H.jsx)($e,{className:`size-4`}),I=(0,H.jsx)(`span`,{children:`NAT Gateways`}),e[121]=F,e[122]=I):(F=e[121],I=e[122]);let Ye;e[123]===qe?Ye=e[124]:(Ye=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ec2/describe-nat-gateways`,children:(0,H.jsxs)(K,{isActive:qe,tooltip:`NAT Gateways`,children:[F,I]})})}),e[123]=qe,e[124]=Ye);let L;e[125]!==ke||e[126]!==Pe||e[127]!==Re||e[128]!==He||e[129]!==Ke||e[130]!==Ye?(L=(0,H.jsxs)(Bc,{children:[N,(0,H.jsxs)(Hc,{children:[ke,Pe,Re,He,Ke,Ye]})]}),e[125]=ke,e[126]=Pe,e[127]=Re,e[128]=He,e[129]=Ke,e[130]=Ye,e[131]=L):L=e[131];let ot;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,H.jsx)(Vc,{children:`Containers`}),e[132]=ot):ot=e[132];let ct;e[133]===n?ct=e[134]:(ct=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[133]=n,e[134]=ct);let lt,ut;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,H.jsx)(No,{className:`size-4`}),ut=(0,H.jsx)(`span`,{children:`EKS`}),e[135]=lt,e[136]=ut):(lt=e[135],ut=e[136]);let dt;e[137]===ct?dt=e[138]:(dt=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/eks/list-clusters`,children:(0,H.jsxs)(K,{isActive:ct,tooltip:`EKS clusters`,children:[lt,ut]})})}),e[137]=ct,e[138]=dt);let ft;e[139]===n?ft=e[140]:(ft=n.startsWith(`/ecr/list-repositories`),e[139]=n,e[140]=ft);let pt,mt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,H.jsx)(Yo,{className:`size-4`}),mt=(0,H.jsx)(`span`,{children:`ECR`}),e[141]=pt,e[142]=mt):(pt=e[141],mt=e[142]);let ht;e[143]===ft?ht=e[144]:(ht=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ecr/list-repositories`,children:(0,H.jsxs)(K,{isActive:ft,tooltip:`ECR repositories`,children:[pt,mt]})})}),e[143]=ft,e[144]=ht);let gt;e[145]===n?gt=e[146]:(gt=n.startsWith(`/ecs/`),e[145]=n,e[146]=gt);let _t,vt;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,H.jsx)(Io,{className:`size-4`}),vt=(0,H.jsx)(`span`,{children:`ECS`}),e[147]=_t,e[148]=vt):(_t=e[147],vt=e[148]);let R;e[149]===gt?R=e[150]:(R=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/ecs/list-clusters`,children:(0,H.jsxs)(K,{isActive:gt,tooltip:`ECS clusters`,children:[_t,vt]})})}),e[149]=gt,e[150]=R);let yt;e[151]!==dt||e[152]!==ht||e[153]!==R?(yt=(0,H.jsxs)(Bc,{children:[ot,(0,H.jsxs)(Hc,{children:[dt,ht,R]})]}),e[151]=dt,e[152]=ht,e[153]=R,e[154]=yt):yt=e[154];let bt;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,H.jsx)(Vc,{children:`RDS`}),e[155]=bt):bt=e[155];let xt;e[156]===n?xt=e[157]:(xt=n.startsWith(`/rds/describe-db-instances`)||n.startsWith(`/rds/create-db-instance`),e[156]=n,e[157]=xt);let St,Ct;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,H.jsx)(Ro,{className:`size-4`}),Ct=(0,H.jsx)(`span`,{children:`Databases`}),e[158]=St,e[159]=Ct):(St=e[158],Ct=e[159]);let wt;e[160]===xt?wt=e[161]:(wt=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/rds/describe-db-instances`,children:(0,H.jsxs)(K,{isActive:xt,tooltip:`Databases`,children:[St,Ct]})})}),e[160]=xt,e[161]=wt);let Tt;e[162]===n?Tt=e[163]:(Tt=n.startsWith(`/rds/describe-db-snapshots`)||n.startsWith(`/rds/restore-db-instance-from-db-snapshot`),e[162]=n,e[163]=Tt);let Et,Dt;e[164]===Symbol.for(`react.memo_cache_sentinel`)?(Et=(0,H.jsx)(Xe,{className:`size-4`}),Dt=(0,H.jsx)(`span`,{children:`Snapshots`}),e[164]=Et,e[165]=Dt):(Et=e[164],Dt=e[165]);let Ot;e[166]===Tt?Ot=e[167]:(Ot=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/rds/describe-db-snapshots`,children:(0,H.jsxs)(K,{isActive:Tt,tooltip:`DB Snapshots`,children:[Et,Dt]})})}),e[166]=Tt,e[167]=Ot);let kt;e[168]===n?kt=e[169]:(kt=n.startsWith(`/rds/describe-db-subnet-groups`)||n.startsWith(`/rds/create-db-subnet-group`),e[168]=n,e[169]=kt);let At,jt;e[170]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,H.jsx)(Uo,{className:`size-4`}),jt=(0,H.jsx)(`span`,{children:`Subnet Groups`}),e[170]=At,e[171]=jt):(At=e[170],jt=e[171]);let Mt;e[172]===kt?Mt=e[173]:(Mt=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/rds/describe-db-subnet-groups`,children:(0,H.jsxs)(K,{isActive:kt,tooltip:`DB Subnet Groups`,children:[At,jt]})})}),e[172]=kt,e[173]=Mt);let Nt;e[174]===n?Nt=e[175]:(Nt=n.startsWith(`/rds/describe-db-parameter-groups`)||n.startsWith(`/rds/create-db-parameter-group`),e[174]=n,e[175]=Nt);let Pt,Ft;e[176]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,H.jsx)(st,{className:`size-4`}),Ft=(0,H.jsx)(`span`,{children:`Parameter Groups`}),e[176]=Pt,e[177]=Ft):(Pt=e[176],Ft=e[177]);let It;e[178]===Nt?It=e[179]:(It=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/rds/describe-db-parameter-groups`,children:(0,H.jsxs)(K,{isActive:Nt,tooltip:`DB Parameter Groups`,children:[Pt,Ft]})})}),e[178]=Nt,e[179]=It);let Lt;e[180]!==Ot||e[181]!==Mt||e[182]!==It||e[183]!==wt?(Lt=(0,H.jsxs)(Bc,{children:[bt,(0,H.jsxs)(Hc,{children:[wt,Ot,Mt,It]})]}),e[180]=Ot,e[181]=Mt,e[182]=It,e[183]=wt,e[184]=Lt):Lt=e[184];let Rt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,H.jsx)(Vc,{children:`IAM`}),e[185]=Rt):Rt=e[185];let zt;e[186]===n?zt=e[187]:(zt=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[186]=n,e[187]=zt);let Bt,Vt;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Bt=(0,H.jsx)(ns,{className:`size-4`}),Vt=(0,H.jsx)(`span`,{children:`Users`}),e[188]=Bt,e[189]=Vt):(Bt=e[188],Vt=e[189]);let Ht;e[190]===zt?Ht=e[191]:(Ht=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/iam/list-users`,children:(0,H.jsxs)(K,{isActive:zt,tooltip:`Users`,children:[Bt,Vt]})})}),e[190]=zt,e[191]=Ht);let Ut;e[192]===n?Ut=e[193]:(Ut=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[192]=n,e[193]=Ut);let Wt,Gt;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(Wt=(0,H.jsx)(ts,{className:`size-4`}),Gt=(0,H.jsx)(`span`,{children:`Groups`}),e[194]=Wt,e[195]=Gt):(Wt=e[194],Gt=e[195]);let Kt;e[196]===Ut?Kt=e[197]:(Kt=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/iam/list-groups`,children:(0,H.jsxs)(K,{isActive:Ut,tooltip:`Groups`,children:[Wt,Gt]})})}),e[196]=Ut,e[197]=Kt);let qt;e[198]===n?qt=e[199]:(qt=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[198]=n,e[199]=qt);let Jt,Yt;e[200]===Symbol.for(`react.memo_cache_sentinel`)?(Jt=(0,H.jsx)(et,{className:`size-4`}),Yt=(0,H.jsx)(`span`,{children:`Policies`}),e[200]=Jt,e[201]=Yt):(Jt=e[200],Yt=e[201]);let Xt;e[202]===qt?Xt=e[203]:(Xt=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/iam/list-policies`,children:(0,H.jsxs)(K,{isActive:qt,tooltip:`Policies`,children:[Jt,Yt]})})}),e[202]=qt,e[203]=Xt);let Zt;e[204]===n?Zt=e[205]:(Zt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[204]=n,e[205]=Zt);let Qt,$t;e[206]===Symbol.for(`react.memo_cache_sentinel`)?(Qt=(0,H.jsx)(es,{className:`size-4`}),$t=(0,H.jsx)(`span`,{children:`Roles`}),e[206]=Qt,e[207]=$t):(Qt=e[206],$t=e[207]);let en;e[208]===Zt?en=e[209]:(en=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/iam/list-roles`,children:(0,H.jsxs)(K,{isActive:Zt,tooltip:`Roles`,children:[Qt,$t]})})}),e[208]=Zt,e[209]=en);let tn;e[210]===n?tn=e[211]:(tn=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[210]=n,e[211]=tn);let nn,rn;e[212]===Symbol.for(`react.memo_cache_sentinel`)?(nn=(0,H.jsx)(Vo,{className:`size-4`}),rn=(0,H.jsx)(`span`,{children:`Instance Profiles`}),e[212]=nn,e[213]=rn):(nn=e[212],rn=e[213]);let an;e[214]===tn?an=e[215]:(an=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/iam/list-instance-profiles`,children:(0,H.jsxs)(K,{isActive:tn,tooltip:`Instance Profiles`,children:[nn,rn]})})}),e[214]=tn,e[215]=an);let on;e[216]!==Ht||e[217]!==Kt||e[218]!==Xt||e[219]!==en||e[220]!==an?(on=(0,H.jsxs)(Bc,{children:[Rt,(0,H.jsxs)(Hc,{children:[Ht,Kt,Xt,en,an]})]}),e[216]=Ht,e[217]=Kt,e[218]=Xt,e[219]=en,e[220]=an,e[221]=on):on=e[221];let sn;e[222]===Symbol.for(`react.memo_cache_sentinel`)?(sn=(0,H.jsx)(Vc,{children:`S3`}),e[222]=sn):sn=e[222];let cn;e[223]===n?cn=e[224]:(cn=n.startsWith(`/s3/ls`),e[223]=n,e[224]=cn);let ln,un;e[225]===Symbol.for(`react.memo_cache_sentinel`)?(ln=(0,H.jsx)(nt,{className:`size-4`}),un=(0,H.jsx)(`span`,{children:`Buckets`}),e[225]=ln,e[226]=un):(ln=e[225],un=e[226]);let dn;e[227]===cn?dn=e[228]:(dn=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/s3/ls`,children:(0,H.jsxs)(K,{isActive:cn,tooltip:`Buckets`,children:[ln,un]})})}),e[227]=cn,e[228]=dn);let fn;e[229]!==a||e[230]!==n?(fn=a&&(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/s3/service-metrics`,children:(0,H.jsxs)(K,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,H.jsx)(jo,{className:`size-4`}),(0,H.jsx)(`span`,{children:`Service Metrics`})]})})}),e[229]=a,e[230]=n,e[231]=fn):fn=e[231];let pn;e[232]!==dn||e[233]!==fn?(pn=(0,H.jsxs)(Bc,{children:[sn,(0,H.jsxs)(Hc,{children:[dn,fn]})]}),e[232]=dn,e[233]=fn,e[234]=pn):pn=e[234];let mn;e[235]===Symbol.for(`react.memo_cache_sentinel`)?(mn=(0,H.jsx)(Vc,{children:`Ochre`}),e[235]=mn):mn=e[235];let hn;e[236]===n?hn=e[237]:(hn=n.startsWith(`/bedrock/list-knowledge-bases`),e[236]=n,e[237]=hn);let gn,_n;e[238]===Symbol.for(`react.memo_cache_sentinel`)?(gn=(0,H.jsx)(Po,{className:`size-4`}),_n=(0,H.jsx)(`span`,{children:`Knowledge Bases`}),e[238]=gn,e[239]=_n):(gn=e[238],_n=e[239]);let vn;e[240]===hn?vn=e[241]:(vn=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/bedrock/list-knowledge-bases`,children:(0,H.jsxs)(K,{isActive:hn,tooltip:`Knowledge Bases`,children:[gn,_n]})})}),e[240]=hn,e[241]=vn);let yn;e[242]===n?yn=e[243]:(yn=n.startsWith(`/bedrock/list-guardrails`),e[242]=n,e[243]=yn);let bn,xn;e[244]===Symbol.for(`react.memo_cache_sentinel`)?(bn=(0,H.jsx)(et,{className:`size-4`}),xn=(0,H.jsx)(`span`,{children:`Guardrails`}),e[244]=bn,e[245]=xn):(bn=e[244],xn=e[245]);let wn;e[246]===yn?wn=e[247]:(wn=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/bedrock/list-guardrails`,children:(0,H.jsxs)(K,{isActive:yn,tooltip:`Guardrails`,children:[bn,xn]})})}),e[246]=yn,e[247]=wn);let Tn;e[248]===n?Tn=e[249]:(Tn=n.startsWith(`/bedrock/playground`),e[248]=n,e[249]=Tn);let En,Dn;e[250]===Symbol.for(`react.memo_cache_sentinel`)?(En=(0,H.jsx)(qo,{className:`size-4`}),Dn=(0,H.jsx)(`span`,{children:`Playground`}),e[250]=En,e[251]=Dn):(En=e[250],Dn=e[251]);let On;e[252]===Tn?On=e[253]:(On=(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/bedrock/playground`,children:(0,H.jsxs)(K,{isActive:Tn,tooltip:`Playground`,children:[En,Dn]})})}),e[252]=Tn,e[253]=On);let kn;e[254]!==a||e[255]!==n?(kn=a&&(0,H.jsx)(G,{children:(0,H.jsx)(M,{to:`/bedrock/list-model-catalog`,children:(0,H.jsxs)(K,{isActive:n.startsWith(`/bedrock/list-model-catalog`),tooltip:`Model Catalog`,children:[(0,H.jsx)(Wo,{className:`size-4`}),(0,H.jsx)(`span`,{children:`Model Catalog`})]})})}),e[254]=a,e[255]=n,e[256]=kn):kn=e[256];let An;e[257]!==vn||e[258]!==wn||e[259]!==On||e[260]!==kn?(An=(0,H.jsxs)(Bc,{children:[mn,(0,H.jsxs)(Hc,{children:[vn,wn,On,kn]})]}),e[257]=vn,e[258]=wn,e[259]=On,e[260]=kn,e[261]=An):An=e[261];let jn;e[262]===a?jn=e[263]:(jn=a&&(0,H.jsxs)(Bc,{children:[(0,H.jsx)(Vc,{children:`Documentation`}),(0,H.jsx)(Hc,{children:(0,H.jsx)(G,{children:(0,H.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,H.jsxs)(K,{tooltip:`Documentation`,children:[(0,H.jsx)(Mo,{className:`size-4`}),(0,H.jsx)(`span`,{children:`Docs`})]})})})})]}),e[262]=a,e[263]=jn);let Mn;e[264]!==Lt||e[265]!==on||e[266]!==pn||e[267]!==An||e[268]!==jn||e[269]!==Ee||e[270]!==L||e[271]!==g||e[272]!==yt?(Mn=(0,H.jsxs)(zc,{children:[g,Ee,L,yt,Lt,on,pn,An,jn]}),e[264]=Lt,e[265]=on,e[266]=pn,e[267]=An,e[268]=jn,e[269]=Ee,e[270]=L,e[271]=g,e[272]=yt,e[273]=Mn):Mn=e[273];let Nn;e[274]===Symbol.for(`react.memo_cache_sentinel`)?(Nn=(0,H.jsx)(Rc,{className:`mx-0 w-full`}),e[274]=Nn):Nn=e[274];let Pn,Fn;e[275]===Symbol.for(`react.memo_cache_sentinel`)?(Pn=(0,H.jsx)(Go,{className:`size-4`}),Fn=(0,H.jsx)(`span`,{children:`Sign out`}),e[275]=Pn,e[276]=Fn):(Pn=e[275],Fn=e[276]);let In;e[277]===s?In=e[278]:(In=(0,H.jsxs)(Lc,{children:[Nn,(0,H.jsx)(Hc,{children:(0,H.jsx)(G,{children:(0,H.jsxs)(K,{onClick:s,tooltip:`Sign out`,children:[Pn,Fn]})})})]}),e[277]=s,e[278]=In);let Ln;e[279]===Symbol.for(`react.memo_cache_sentinel`)?(Ln=(0,H.jsx)(Fc,{}),e[279]=Ln):Ln=e[279];let Rn;return e[280]!==Mn||e[281]!==In?(Rn=(0,H.jsxs)(Nc,{collapsible:`icon`,children:[c,Mn,In,Ln]}),e[280]=Mn,e[281]=In,e[282]=Rn):Rn=e[282],Rn}function el(e){return e.pathname}function tl(e){let t=(0,W.c)(18),{error:n,reset:r}=e,i=ke(),a=h(),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,H.jsx)($c,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,H.jsx)(Zc,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,H.jsx)(`div`,{className:`flex justify-center`,children:(0,H.jsx)(Fo,{className:`size-12 text-destructive`})}),d=(0,H.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,H.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,H.jsx)(gt,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,H.jsx)(M,{to:`/`,children:(0,H.jsx)(gt,{variant:`outline`,children:`Go Home`})}),t[12]=g):g=t[12];let _;t[13]===m?_=t[14]:(_=(0,H.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,g]}),t[13]=m,t[14]=_);let v;return t[15]!==_||t[16]!==p?(v=(0,H.jsxs)(H.Fragment,{children:[c,(0,H.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,H.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,H.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,_]})})]})]}),t[15]=_,t[16]=p,t[17]=v):v=t[17],v}var nl=De()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(So,{}),(0,H.jsx)($c,{}),(0,H.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,H.jsx)(Zc,{}),(0,H.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,H.jsx)(ve,{})})]})]}),errorComponent:tl,notFoundComponent:Qc}),rl=N(`/_auth`)({beforeLoad:()=>{if(!qe())throw we({to:`/login`})},component:P(()=>I(()=>import(`./route.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),il=N(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Rn),e.queryClient.ensureQueryData(kn),e.queryClient.ensureQueryData(jn),e.queryClient.ensureQueryData(Vn),e.queryClient.ensureQueryData(cr),e.queryClient.ensureQueryData(Un),e.queryClient.ensureQueryData(Pn),e.queryClient.ensureQueryData(zn),e.queryClient.ensureQueryData(In)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:P(()=>I(()=>import(`./_auth.js`),__vite__mapDeps([6,1,7,8,9,10,11,4,5,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])),`component`)}),al=N(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:P(()=>I(()=>import(`./nodes.js`),__vite__mapDeps([39,1,7,8,9,10,11,4,5,40,12,13,15,14,16,18,19,20,26,27,28,29,30,31,22])),`component`)}),ol=N(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./service-metrics.js`),__vite__mapDeps([41,1,7,8,9,10,40,18,12,13,19,20,26,27,28,29,30,31,22])),`component`)}),sl=N(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./allocate-address.js`),__vite__mapDeps([42,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),cl=N(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([63,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),ll=N(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-key-pair.js`),__vite__mapDeps([64,1,43,4,5,44,11,14,46,65,36,28,12,13,34,15,37,50,38,66,67,51,68,69,45,47,48,70,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62,33,35])),`component`)}),ul=N(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./import-key-pair.js`),__vite__mapDeps([71,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,72,56,57,58,59,60,61,62])),`component`)}),dl=N(`/_auth/ec2/(launch-templates)/create-launch-template`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Bn),e.queryClient.ensureQueryData(Fn),e.queryClient.ensureQueryData(Vn),e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Un)])},head:()=>({meta:[{title:`Create Launch Template | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-launch-template.js`),__vite__mapDeps([73,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62,74,75,8,10,65,36,38,66,67,68,72,76])),`component`)}),fl=N(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(jn),e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Un),e.queryClient.ensureQueryData(Zn),e.queryClient.ensureQueryData(Tn),e.queryClient.ensureQueryData(Xn)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-load-balancer.js`),__vite__mapDeps([77,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,78,22,23,24,79,53,54,72,56,57,58,60,33,35,21,80,81,82,26,59,61,83,84,85,86,76,87])),`component`)}),pl=N(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(zn)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([88,1,75,8,9,10,11,4,5,43,12,13,44,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),ml=N(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-placement-group.js`),__vite__mapDeps([89,1,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),hl=N(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-route-table.js`),__vite__mapDeps([90,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),gl=N(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-security-group.js`),__vite__mapDeps([91,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),_l=N(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(jn),e.queryClient.ensureQueryData(Hn)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-subnet.js`),__vite__mapDeps([92,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),vl=N(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-target-group.js`),__vite__mapDeps([93,1,75,8,9,10,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,21,22,23,24,80,53,54,81,26,59,60,61,86,65,36,37,50,38,66,67,51,68,49,56,57,58,76,83,84,85,87])),`component`)}),yl=N(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Hn)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-volume.js`),__vite__mapDeps([94,1,75,8,9,10,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),bl=N(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-vpc.js`),__vite__mapDeps([95,1,43,4,5,44,11,14,15,16,65,36,28,12,13,34,46,37,50,38,66,67,51,68,45,47,48,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),xl=N(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qn)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:P(()=>I(()=>import(`./task-definitions.js`),__vite__mapDeps([96,1,75,8,9,10,11,4,5,34,28,12,13,97,22,23,24,98,53,54,20,26,60,99,33,35,36,37,38,100])),`component`)}),Sl=N(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(jn),e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(nr),e.queryClient.ensureQueryData(Bn)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:P(()=>I(()=>import(`./create-cluster.js`),__vite__mapDeps([101,1,9,75,8,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,49,21,22,23,24,102,53,54,103,104,55,105,106,107,26,56,57,58,59,60,61,33,35,108,109,47,110,70,48,111])),`component`)}),Cl=N(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-group.js`),__vite__mapDeps([112,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),wl=N(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-instance-profile.js`),__vite__mapDeps([114,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),Tl=N(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-policy.js`),__vite__mapDeps([115,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,116,104,72,113])),`component`)}),El=N(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-role.js`),__vite__mapDeps([117,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,116,104,72,113])),`component`)}),Dl=N(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-user.js`),__vite__mapDeps([118,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),Ol=N(`/_auth/rds/(db-instances)/create-db-instance`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(or),e.queryClient.ensureQueryData(ar),e.queryClient.ensureQueryData(ir),e.queryClient.ensureQueryData(Un),e.queryClient.ensureQueryData(jn),e.queryClient.ensureQueryData(Bn)])},head:()=>({meta:[{title:`Create Database | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-instance.js`),__vite__mapDeps([119,1,9,7,8,10,75,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,120,121,53,54,122,26,56,57,58,59,60,61,108,83,84,85,109,110,70,123,124])),`component`)}),kl=N(`/_auth/rds/(parameter-groups)/create-db-parameter-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(or)},head:()=>({meta:[{title:`Create Parameter Group | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-parameter-group.js`),__vite__mapDeps([125,1,75,8,9,10,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,120,23,24,121,53,54,122,22,26,56,57,58,59,60,61,83,84,85])),`component`)}),Al=N(`/_auth/rds/(subnet-groups)/create-db-subnet-group`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(jn)])},head:()=>({meta:[{title:`Create Subnet Group | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-subnet-group.js`),__vite__mapDeps([126,1,75,8,9,10,43,4,5,12,13,44,11,14,45,46,15,47,34,28,48,49,37,50,51,21,22,23,24,120,121,53,54,26,56,57,58,59,60,61,83,84,85])),`component`)}),jl=N(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./create-bucket.js`),__vite__mapDeps([127,1,43,4,5,12,13,44,11,14,45,46,15,47,34,28,48,49,37,50,51,128,9,53,54,23,24,26,56,57,58,59,60,61])),`component`)}),Ml=N(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(cr)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./ls.js`),__vite__mapDeps([129,1,75,8,9,10,11,4,5,12,13,34,28,25,22,23,24,26,130])),`component`)}),Nl=N(`/_auth/s3/ls/$bucket`)({component:P(()=>I(()=>import(`./route2.js`),__vite__mapDeps([131,1,2,3,4,5])),`component`)}),Pl=N(`/_auth/bedrock/(catalog)/list-model-catalog/`)({head:()=>({meta:[{title:`Model Catalog | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-model-catalog.js`),__vite__mapDeps([132,1,7,8,9,10,40,12,13,18,19,20,26,27,28,29,30,31,22])),`component`)}),Fl=N(`/_auth/bedrock/(guardrails)/list-guardrails/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(En)},head:()=>({meta:[{title:`Guardrails | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-guardrails.js`),__vite__mapDeps([133,1,75,8,9,10,134,22,12,13,23,24,26,32,130,11,4,5])),`component`)}),Il=N(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(On)},head:()=>({meta:[{title:`Knowledge Bases | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-knowledge-bases.js`),__vite__mapDeps([135,1,75,8,9,10,136,22,12,13,23,24,26,32,130,11,4,5])),`component`)}),Ll=N(`/_auth/bedrock/(playground)/playground/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Dn),e.queryClient.ensureQueryData(En)])},head:()=>({meta:[{title:`Playground | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./playground.js`),__vite__mapDeps([137,1,53,9,54,75,8,10,12,13,15,14,65,36,28,34,46,37,50,38,5,66,67,51,68,45,47,48,49,23,24,134,22,138,26,27,29,72,56,57,58])),`component`)}),q=N(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zn)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-addresses.js`),__vite__mapDeps([139,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,130])),`component`)}),Rl=N(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Bn)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-images.js`),__vite__mapDeps([140,1,75,8,9,10,21,22,12,13,23,24,26,32,130,11,4,5,108])),`component`)}),J=N(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Rn)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-instances.js`),__vite__mapDeps([141,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Y=N(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(In)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([142,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,130])),`component`)}),X=N(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Vn)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([143,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,130])),`component`)}),zl=N(`/_auth/ec2/(launch-templates)/describe-launch-templates/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ln)},head:()=>({meta:[{title:`Launch Templates | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-launch-templates.js`),__vite__mapDeps([144,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,27,29,130])),`component`)}),Bl=N(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Yn)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([145,1,75,8,9,10,11,4,5,43,12,13,34,28,82,22,23,24,81,26,32])),`component`)}),Vl=N(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pn)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([146,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),Hl=N(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Wn)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([147,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Ul=N(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nn)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-route-tables.js`),__vite__mapDeps([148,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,27,29,130])),`component`)}),Wl=N(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Un)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-security-groups.js`),__vite__mapDeps([149,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,130])),`component`)}),Gl=N(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(An)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-snapshots.js`),__vite__mapDeps([150,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Kl=N(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mn)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-subnets.js`),__vite__mapDeps([151,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),ql=N(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Zn)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-target-groups.js`),__vite__mapDeps([152,1,7,8,9,10,75,11,4,5,43,34,28,12,13,82,22,23,24,81,26])),`component`)}),Jl=N(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kn)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-volumes.js`),__vite__mapDeps([153,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Yl=N(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-vpcs.js`),__vite__mapDeps([154,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),Xl=N(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gn)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:P(()=>I(()=>import(`./list-repositories.js`),__vite__mapDeps([155,1,75,8,9,10,11,4,5,43,12,13,34,28,49,37,50,51,156,22,23,24,157,53,54,26,56,57,58,33,35,36,38])),`component`)}),Zl=N(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Kn),e.queryClient.ensureQueryData(Bn)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:P(()=>I(()=>import(`./list-clusters.js`),__vite__mapDeps([158,1,9,75,8,10,11,4,5,43,34,28,12,13,49,37,50,51,21,22,23,24,97,98,53,54,20,26,32,56,57,58,60,33,35,36,38,99,108,109,46,14,47,110,70,48,100])),`component`)}),Ql=N(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Jn)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:P(()=>I(()=>import(`./list-clusters2.js`),__vite__mapDeps([159,1,75,8,9,10,11,4,5,34,28,12,13,160,22,23,24,103,26,130])),`component`)}),$l=N(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(er)},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-groups.js`),__vite__mapDeps([161,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),eu=N(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData($n)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([162,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),tu=N(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(tr)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-policies.js`),__vite__mapDeps([163,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),nu=N(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(nr)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-roles.js`),__vite__mapDeps([164,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),ru=N(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Qn)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-users.js`),__vite__mapDeps([165,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),iu=N(`/_auth/rds/(db-instances)/describe-db-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sr)},head:()=>({meta:[{title:`Databases | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-instances.js`),__vite__mapDeps([166,1,75,8,9,10,11,4,5,43,34,28,12,13,120,23,24,121,53,54,122,22,26,32,60,167,49,37,50,51,56,57,58,33,35,36,38])),`component`)}),au=N(`/_auth/rds/(parameter-groups)/describe-db-parameter-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ir)},head:()=>({meta:[{title:`Parameter Groups | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-parameter-groups.js`),__vite__mapDeps([168,1,75,8,9,10,11,4,5,43,34,28,12,13,120,23,24,122,22,26,169,121,53,54,170,99,33,35,36,37,38])),`component`)}),ou=N(`/_auth/rds/(snapshots)/describe-db-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(rr)},head:()=>({meta:[{title:`Snapshots | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-snapshots.js`),__vite__mapDeps([171,1,75,8,9,10,11,4,5,43,12,13,34,28,120,23,24,122,22,26,32,172,7,65,36,14,46,15,37,50,38,66,67,51,68,49,121,53,54,56,57,58,59,33,35,83,84,85,123,173,170,99])),`component`)}),su=N(`/_auth/rds/(subnet-groups)/describe-db-subnet-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ar)},head:()=>({meta:[{title:`Subnet Groups | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-subnet-groups.js`),__vite__mapDeps([174,1,75,8,9,10,11,4,5,43,34,28,12,13,122,22,23,24,120,26,32,175,121,53,54,170,99,33,35,36,37,38])),`component`)}),Z=rl.update({id:`/_auth`,getParentRoute:()=>nl}),cu=lr.update({id:`/login`,path:`/login`,getParentRoute:()=>nl}),lu=il.update({id:`/`,path:`/`,getParentRoute:()=>Z}),uu=al.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>Z}),du=ol.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>Z}),fu=sl.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>Z}),pu=ur.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>Z}),mu=cl.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>Z}),hu=ll.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>Z}),gu=ul.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>Z}),_u=dl.update({id:`/ec2/(launch-templates)/create-launch-template`,path:`/ec2/create-launch-template`,getParentRoute:()=>Z}),vu=fl.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>Z}),yu=pl.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>Z}),bu=ml.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>Z}),xu=hl.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>Z}),Su=gl.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>Z}),Cu=dr.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>Z}),wu=_l.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>Z}),Tu=vl.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>Z}),Eu=yl.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>Z}),Du=bl.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>Z}),Ou=fr.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>Z}),ku=pr.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>Z}),Au=mr.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>Z}),ju=xl.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>Z}),Mu=Sl.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>Z}),Nu=Cl.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>Z}),Pu=wl.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>Z}),Fu=Tl.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>Z}),Iu=El.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>Z}),Lu=Dl.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>Z}),Ru=Ol.update({id:`/rds/(db-instances)/create-db-instance`,path:`/rds/create-db-instance`,getParentRoute:()=>Z}),zu=kl.update({id:`/rds/(parameter-groups)/create-db-parameter-group`,path:`/rds/create-db-parameter-group`,getParentRoute:()=>Z}),Bu=Al.update({id:`/rds/(subnet-groups)/create-db-subnet-group`,path:`/rds/create-db-subnet-group`,getParentRoute:()=>Z}),Vu=jl.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>Z}),Hu=Ml.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>Z}),Uu=Nl.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>Z}),Q=Pl.update({id:`/bedrock/(catalog)/list-model-catalog/`,path:`/bedrock/list-model-catalog/`,getParentRoute:()=>Z}),Wu=Fl.update({id:`/bedrock/(guardrails)/list-guardrails/`,path:`/bedrock/list-guardrails/`,getParentRoute:()=>Z}),Gu=hr.update({id:`/bedrock/(guardrails)/list-guardrails/$guardrailId`,path:`/bedrock/list-guardrails/$guardrailId`,getParentRoute:()=>Z}),Ku=Il.update({id:`/bedrock/(knowledge-bases)/list-knowledge-bases/`,path:`/bedrock/list-knowledge-bases/`,getParentRoute:()=>Z}),qu=gr.update({id:`/bedrock/(knowledge-bases)/list-knowledge-bases/$knowledgeBaseId`,path:`/bedrock/list-knowledge-bases/$knowledgeBaseId`,getParentRoute:()=>Z}),Ju=Ll.update({id:`/bedrock/(playground)/playground/`,path:`/bedrock/playground/`,getParentRoute:()=>Z}),Yu=q.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>Z}),Xu=_r.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>Z}),Zu=Rl.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>Z}),Qu=vr.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>Z}),$u=J.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>Z}),ed=yr.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>Z}),td=Y.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>Z}),nd=br.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>Z}),rd=X.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>Z}),id=xr.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>Z}),ad=zl.update({id:`/ec2/(launch-templates)/describe-launch-templates/`,path:`/ec2/describe-launch-templates/`,getParentRoute:()=>Z}),od=Sr.update({id:`/ec2/(launch-templates)/describe-launch-templates/$id`,path:`/ec2/describe-launch-templates/$id`,getParentRoute:()=>Z}),sd=Bl.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>Z}),cd=Cr.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>Z}),ld=Vl.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>Z}),ud=wr.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>Z}),dd=Hl.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>Z}),fd=Tr.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>Z}),pd=Ul.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>Z}),md=Er.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>Z}),hd=Wl.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>Z}),gd=ut.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>Z}),_d=Gl.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>Z}),vd=ot.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>Z}),$=Kl.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>Z}),yd=Dr.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>Z}),bd=ql.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>Z}),xd=Or.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>Z}),Sd=Jl.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>Z}),Cd=kr.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>Z}),wd=Ar.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>Z}),Td=Yl.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>Z}),Ed=jr.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>Z}),Dd=Xl.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>Z}),Od=Mr.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>Z}),kd=Zl.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>Z}),Ad=Nr.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>Z}),jd=Ql.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>Z}),Md=ct.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>Z}),Nd=$l.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>Z}),Pd=Pr.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>Z}),Fd=eu.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>Z}),Id=Fr.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>Z}),Ld=tu.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>Z}),Rd=Ir.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>Z}),zd=nu.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>Z}),Bd=Lr.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>Z}),Vd=ru.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>Z}),Hd=Rr.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>Z}),Ud=iu.update({id:`/rds/(db-instances)/describe-db-instances/`,path:`/rds/describe-db-instances/`,getParentRoute:()=>Z}),Wd=zr.update({id:`/rds/(db-instances)/describe-db-instances/$id`,path:`/rds/describe-db-instances/$id`,getParentRoute:()=>Z}),Gd=au.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/`,path:`/rds/describe-db-parameter-groups/`,getParentRoute:()=>Z}),Kd=Br.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/$name`,path:`/rds/describe-db-parameter-groups/$name`,getParentRoute:()=>Z}),qd=ou.update({id:`/rds/(snapshots)/describe-db-snapshots/`,path:`/rds/describe-db-snapshots/`,getParentRoute:()=>Z}),Jd=Vr.update({id:`/rds/(snapshots)/describe-db-snapshots/$id`,path:`/rds/describe-db-snapshots/$id`,getParentRoute:()=>Z}),Yd=Hr.update({id:`/rds/(snapshots)/restore-db-instance-from-db-snapshot/$id`,path:`/rds/restore-db-instance-from-db-snapshot/$id`,getParentRoute:()=>Z}),Xd=su.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/`,path:`/rds/describe-db-subnet-groups/`,getParentRoute:()=>Z}),Zd=Ur.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/$name`,path:`/rds/describe-db-subnet-groups/$name`,getParentRoute:()=>Z}),Qd=Wr.update({id:`/`,path:`/`,getParentRoute:()=>Uu}),$d=Gr.update({id:`/$`,path:`/$`,getParentRoute:()=>Uu}),ef=Kr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>Z}),tf=qr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>Z}),nf={AuthS3LsBucketSplatRoute:$d,AuthS3LsBucketIndexRoute:Qd},rf={AuthNodesRoute:uu,AuthIndexRoute:lu,AuthS3ServiceMetricsRoute:du,AuthS3LsBucketRouteRoute:Uu._addFileChildren(nf),AuthEc2elasticIpsAllocateAddressRoute:fu,AuthEc2instancesRunInstancesRoute:pu,AuthEc2internetGatewaysCreateInternetGatewayRoute:mu,AuthEc2keyCreateKeyPairRoute:hu,AuthEc2keyImportKeyPairRoute:gu,AuthEc2launchTemplatesCreateLaunchTemplateRoute:_u,AuthEc2loadBalancersCreateLoadBalancerRoute:vu,AuthEc2natGatewaysCreateNatGatewayRoute:yu,AuthEc2placementGroupsCreatePlacementGroupRoute:bu,AuthEc2routeTablesCreateRouteTableRoute:xu,AuthEc2securityGroupsCreateSecurityGroupRoute:Su,AuthEc2snapshotsCreateSnapshotRoute:Cu,AuthEc2subnetCreateSubnetRoute:wu,AuthEc2targetGroupsCreateTargetGroupRoute:Tu,AuthEc2volumesCreateVolumeRoute:Eu,AuthEc2vpcCreateVpcRoute:Du,AuthEcsclustersCreateServiceRoute:Ou,AuthEcsclustersRegisterTaskDefinitionRoute:ku,AuthEcsclustersRunTaskRoute:Au,AuthEcsclustersTaskDefinitionsRoute:ju,AuthEksclustersCreateClusterRoute:Mu,AuthIamgroupsCreateGroupRoute:Nu,AuthIaminstanceProfilesCreateInstanceProfileRoute:Pu,AuthIampoliciesCreatePolicyRoute:Fu,AuthIamrolesCreateRoleRoute:Iu,AuthIamusersCreateUserRoute:Lu,AuthRdsdbInstancesCreateDbInstanceRoute:Ru,AuthRdsparameterGroupsCreateDbParameterGroupRoute:zu,AuthRdssubnetGroupsCreateDbSubnetGroupRoute:Bu,AuthS3bucketsCreateBucketRoute:Vu,AuthS3LsIndexRoute:Hu,AuthBedrockguardrailsListGuardrailsGuardrailIdRoute:Gu,AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRoute:qu,AuthEc2elasticIpsDescribeAddressesIdRoute:Xu,AuthEc2imagesDescribeImagesIdRoute:Qu,AuthEc2instancesDescribeInstancesIdRoute:ed,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:nd,AuthEc2keyDescribeKeyPairsIdRoute:id,AuthEc2launchTemplatesDescribeLaunchTemplatesIdRoute:od,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:cd,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:ud,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:fd,AuthEc2routeTablesDescribeRouteTablesIdRoute:md,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:gd,AuthEc2snapshotsDescribeSnapshotsIdRoute:vd,AuthEc2subnetDescribeSubnetsIdRoute:yd,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:xd,AuthEc2volumesDescribeVolumesIdRoute:Cd,AuthEc2volumesModifyVolumeIdRoute:wd,AuthEc2vpcDescribeVpcsIdRoute:Ed,AuthEcrrepositoriesListRepositoriesIdRoute:Od,AuthEcsclustersListClustersClusterNameRoute:Ad,AuthEksclustersListClustersClusterNameRoute:Md,AuthIamgroupsListGroupsGroupNameRoute:Pd,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:Id,AuthIampoliciesListPoliciesPolicyArnRoute:Rd,AuthIamrolesListRolesRoleNameRoute:Bd,AuthIamusersListUsersUserNameRoute:Hd,AuthRdsdbInstancesDescribeDbInstancesIdRoute:Wd,AuthRdsparameterGroupsDescribeDbParameterGroupsNameRoute:Kd,AuthRdssnapshotsDescribeDbSnapshotsIdRoute:Jd,AuthRdssnapshotsRestoreDbInstanceFromDbSnapshotIdRoute:Yd,AuthRdssubnetGroupsDescribeDbSubnetGroupsNameRoute:Zd,AuthBedrockcatalogListModelCatalogIndexRoute:Q,AuthBedrockguardrailsListGuardrailsIndexRoute:Wu,AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute:Ku,AuthBedrockplaygroundPlaygroundIndexRoute:Ju,AuthEc2elasticIpsDescribeAddressesIndexRoute:Yu,AuthEc2imagesDescribeImagesIndexRoute:Zu,AuthEc2instancesDescribeInstancesIndexRoute:$u,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:td,AuthEc2keyDescribeKeyPairsIndexRoute:rd,AuthEc2launchTemplatesDescribeLaunchTemplatesIndexRoute:ad,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:sd,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:ld,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:dd,AuthEc2routeTablesDescribeRouteTablesIndexRoute:pd,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:hd,AuthEc2snapshotsDescribeSnapshotsIndexRoute:_d,AuthEc2subnetDescribeSubnetsIndexRoute:$,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:bd,AuthEc2volumesDescribeVolumesIndexRoute:Sd,AuthEc2vpcDescribeVpcsIndexRoute:Td,AuthEcrrepositoriesListRepositoriesIndexRoute:Dd,AuthEcsclustersListClustersIndexRoute:kd,AuthEksclustersListClustersIndexRoute:jd,AuthIamgroupsListGroupsIndexRoute:Nd,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Fd,AuthIampoliciesListPoliciesIndexRoute:Ld,AuthIamrolesListRolesIndexRoute:zd,AuthIamusersListUsersIndexRoute:Vd,AuthRdsdbInstancesDescribeDbInstancesIndexRoute:Ud,AuthRdsparameterGroupsDescribeDbParameterGroupsIndexRoute:Gd,AuthRdssnapshotsDescribeDbSnapshotsIndexRoute:qd,AuthRdssubnetGroupsDescribeDbSubnetGroupsIndexRoute:Xd,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:ef,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:tf},af={AuthRouteRoute:Z._addFileChildren(rf),LoginRoute:cu},of=nl._addFileChildren(af)._addFileTypes(),sf=Yc(),cf=fo({routeTree:of,context:{queryClient:sf},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0});async function lf(e){try{await Ye()}catch(t){e.render((0,H.jsxs)(`div`,{style:{fontFamily:`sans-serif`,margin:`4rem auto`,maxWidth:`40rem`},children:[(0,H.jsx)(`h1`,{children:`Console unavailable`}),(0,H.jsx)(`p`,{children:`This cluster did not report its region, so the console cannot sign requests. Check that the serving node has a region set in its configuration.`}),(0,H.jsx)(`pre`,{children:t instanceof Error?t.message:String(t)})]}));return}e.render((0,H.jsx)(V.StrictMode,{children:(0,H.jsx)(ko,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,H.jsx)(_,{client:sf,children:(0,H.jsx)(wn,{children:(0,H.jsx)(Ac,{children:(0,H.jsx)(ho,{router:cf})})})})})}))}var uf=document.querySelector(`#app`);uf&&!uf.innerHTML&&await lf(Eo.createRoot(uf)); \ No newline at end of file +`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,N=t.unstable_shouldYield,De=t.unstable_requestPaint,P=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Pe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:Ue,Ve=Math.log,He=Math.LN2;function Ue(e){return e>>>=0,e===0?32:31-(Ve(e)/He|0)|0}var We=256,Ge=262144,Ke=4194304;function qe(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 F(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=qe(n))):i=qe(o):i=qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=qe(n))):i=qe(o)):i=qe(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 Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function I(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 Ye(){var e=Ke;return Ke<<=1,!(Ke&62914560)&&(Ke=4194304),e}function L(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=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!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=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(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=It(e.document)}return t}function Or(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 kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(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}),Mr&&Cr(Mr,r)||(Mr=r,r=Td(jr,`onSelect`),0>=o,i-=o,Ei=1<<32-Be(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),R&&Oi(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),R&&Oi(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 R&&Oi(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)}),R&&Oi(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&&Oa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(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}n(e,r);break}t(e,r),r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Oa(o),b(e,r,o,c)}if(ie(o))return v(e,r,o,c);if(O(o)){if(l=O(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,Pa(o),c);if(o.$$typeof===x)return b(e,r,na(e,o),c);Ia(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=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function z(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Wa(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 Ga(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 Ka=!1;function qa(){if(Ka){var e=pa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;Ba=!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?(Y&f)===f:(r&f)===f){f!==0&&f===fa&&(Ka=!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:Ba=!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 Ya(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=k.T,s={};k.T=s,Ns(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,ga(c,r),fu(e)):Ms(e,t,r,fu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ws(e).queue;xs(e,i,t,ae,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},fu())}function Es(){return ta(Qf)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Ua(n);var r=z(t,e,n);r!==null&&(mu(r,t,n),Wa(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ni(e,t,n,r),n!==null&&(mu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,fu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(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,Sr(s,o))return ti(e,t,i,0),Rl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return mu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(a(479))}else t=ni(e,n,r,2),t!==null&&mu(t,e,2)}function Ps(e){var t=e.alternate;return e===H||t!==null&&t===H}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ls={readContext:ta,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:ta,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){ze(!0);try{n(t)}finally{ze(!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=As.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,H,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,i=Oo();if(R){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Rl===null)throw Error(a(349));Y&127||zo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Rl.identifierPrefix;if(R){var n=Di,r=Ei;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,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(Pd(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&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=de.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ni,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ri(t,!0)}else e=Bd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(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 Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(B(t),t):(B(t),null);if(t.flags&128)throw Error(a(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Vi(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 Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),i=!1}else i=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(B(t),t):(B(t),null)}return B(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),Fc(t,t.updateQueue),Lc(t),null);case 4:return me(),e===null&&xd(t.stateNode.containerInfo),Lc(t),null;case 10:return Yi(t.type),Lc(t),null;case 19:if(le(co),r=t.memoizedState,r===null)return Lc(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)Ic(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return j(co,co.current&1|2),R&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&P()>tu&&(t.flags|=128,i=!0,Ic(r,!1),t.lanes=4194304)}}else{if(!i){if(e=lo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!R)return Lc(t),null}else 2*P()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Ic(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?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=P(),e.sibling=null,n=co.current,j(co,i?n&1|2:n&1),R&&Oi(t,r.treeForkCount),e);case 22:case 23:return B(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(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&&le(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Lc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function zc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(B(t),t.alternate===null)throw Error(a(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(B(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(co),null;case 4:return me(),null;case 10:return Yi(t.type),null;case 22:case 23:return B(t),to(),e!==null&&le(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Bc(e,t){switch(ji(t),t.tag){case 3:Yi(sa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&B(t);break;case 13:B(t);break;case 19:le(co);break;case 10:Yi(t.type);break;case 22:case 23:B(t),to(),e!==null&&le(va);break;case 24:Yi(sa)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Q(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Q(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Q(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Q(e,e.return,t)}}}function G(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Q(e,t,n)}}function Wc(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){Q(e,t,n)}}function K(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Q(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Q(e,t,n)}else n.current=null}}function Gc(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){Q(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[st]=t}catch(t){Q(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(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&&Zd(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 Yc(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&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(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&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ot]=e,t[st]=n}catch(t){Q(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Rd=sp,e=Dr(e),Or(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(zd={focusedElem:e,selectionRange:n},sp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,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`))),Pd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(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,k.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,q&6)throw Error(a(331));var c=q;if(q|=4,Nl(o.current),Tl(o,o.current,s,n),q=c,rd(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{A.p=i,k.T=r,Bu(e,t)}}function Uu(e,t,n){t=vi(n,t),t=Zs(e.stateNode,t,2),e=z(e,t,2),e!==null&&(Xe(e,2),nd(e))}function Q(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=vi(n,e),n=Qs(2),r=z(t,n,2),r!==null&&($s(n,r,t,e),Xe(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;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=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>P()-$l?!(q&2)&&xu(e,0):ql|=n,Yl===Y&&(Yl=0)),nd(e)}function Ku(e,t){t===0&&(t=Ye()),e=ri(e,t),e!==null&&(Xe(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(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),Ku(e,n)}function Yu(e,t){return Te(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;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-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Y,a=F(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=P(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}iu!==0&&iu!==5||rd(e,!1),td!==0&&(td=0)}function od(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&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;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=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;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=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=vt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);yt(c),Pd(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,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=de.current)?gf(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=Af(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=Af(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(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.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},mf.set(e,n),o||Nf(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=Pf(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 Af(e){return`href="`+Rt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(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}),Pd(t,`link`,n),yt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Rt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(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),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var o=e.querySelector(jf(i));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Mf(n),(i=mf.get(i))&&Rf(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}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(i=e.querySelector(Ff(o)))?(t.instance=i,yt(i),i):(r=n,(i=mf.get(o))&&(r=p({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Pd(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,Lf(r,n.precedence,e));return t.instance}function Lf(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 Uf(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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(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=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.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=To()}))(),1),W=i(),Do=(0,B.createContext)(void 0);function Oo(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ko(e){let t=(0,W.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=()=>Oo(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,B.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,B.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,V.jsx)(Do.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Ao(){let e=(0,B.useContext)(Do);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}var jo=L(`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`}]]),Mo=L(`book-open`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]),No=L(`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`}]]),Po=L(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Fo=L(`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`}]]),Io=L(`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`}]]),Lo=L(`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`}]]),Ro=L(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),zo=L(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Bo=L(`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`}]]),Vo=L(`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`}]]),Ho=L(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Uo=L(`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`}]]),Wo=L(`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`}]]),Go=L(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),Ko=L(`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`}]]),qo=L(`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`}]]),Jo=L(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Yo=L(`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`}]]),Xo=L(`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`}]]),Zo=L(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Qo=L(`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`}]]),$o=L(`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`}]]),es=L(`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`}]]),ts=L(`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`}]]),ns=L(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),rs=L(`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`}]]);function is(e,t){return t!=null&&!en(t)?0:typeof e==`function`?e():e}function as(e,t,n){let r=is(e,n);return typeof r==`number`?r:r?.[t]}function os(e){return typeof e==`function`?e():e}function ss(e,t){return t||e===`click`||e===`mousedown`}function cs(e){return e?.includes(`mouse`)&&e!==`mousedown`}var ls=B.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ft,currentIdRef:{current:null},currentContextRef:{current:null}});function us(e,t){e.current=t.current}function ds(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=B.useRef(n),a=B.useRef(n),o=B.useRef(null),s=B.useRef(null),c=Ut();return mt(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:as(i.current,`open`),close:as(n,`close`)}},[n,o,i,a]),(0,V.jsx)(ls.Provider,{value:B.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function fs(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=B.useContext(ls),[f,p]=B.useState(!1),m=B.useRef(n);return mt(()=>{m.current=n},[n]),mt(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),mt(()=>{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:as(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Et(bt))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),mt(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,us(o,c),d.clear()}},[l,a,o,i,c,d]),B.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function ps(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 ms(e){return e!=null&&e.clientX!=null}function hs(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=B.useRef(!1),u=B.useRef(null),[d,f]=B.useState(),[p,m]=B.useState([]),h=ht(e=>{i.set(`positionReference`,e)}),g=ht((e,t,n)=>{l.current||c.current.openEvent&&!ms(c.current.openEvent)||i.set(`positionReference`,ps(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ht(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=en(d)?o:a;B.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=dt(o);function r(t){let n=yt(t);kt(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||ms(c.current.openEvent)?u.current=Ie(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),B.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),B.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),B.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=B.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return B.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var gs=Me();function _s(e){let t=B.useCallback(t=>e===void 0?Ue:e.subscribeStore(t),[e]),n=B.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,gs.useSyncExternalStore)(t,n,()=>e?.serverStore)}var vs=Gt&&an;function ys(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=B.useRef(!1),c=B.useRef(null),l=B.useRef(!0),u=Ut();B.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=dt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ft(e)&&e===Dt(vt(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Vt(Ie(t,`blur`,r),vs&&Ie(t,`keydown`,a,!0),vs&&Ie(t,`pointerdown`,o,!0))},[i,n]),B.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);_t(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=B.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=yt(t.nativeEvent);if(_t(a)){if(vs&&!t.relatedTarget){if(!l.current&&!qt(a))return}else if(!Jt(a))return}let o=Qt(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Et(wt,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Et(wt,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=_t(n)&&n.hasAttribute(jt(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Dt(vt(e));!n&&t===e||kt(o.current.floatingContext?.refs.floating.current,t)||kt(e,t)||a||Qt(n??t,i.context.triggerElements)||i.setOpen(!1,Et(wt,r))})}}},[o,r,i,u]);return B.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var bs=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 Ft,this.restTimeout=new Ft,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},xs=new WeakMap;function Ss(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&xs.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),xs.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Cs(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=xs.get(n);a&&a!==e&&Ss(a),Ss(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,xs.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function ws(e){let t=e.context.dataRef.current,n=Ve(()=>t.hoverInteractionState??bs.create()).current;return t.hoverInteractionState||=n,Pe(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ts(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=Lt(),d=It(),f=ws(a),p=Ut(),m=ht(()=>ss(l.current.openEvent?.type,f.interactedInside)),h=ht(()=>cs(l.current.openEvent?.type)),g=ht(()=>{Ss(f)});mt(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),B.useEffect(()=>g,[g]),mt(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&_t(c)&&s){let e=c,t=s,n=vt(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Cs(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),B.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&tn(u.nodesRef.current,d).length>0)}function t(e){let t=as(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Et(St,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=yt(e);if(!Kt(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(Qt(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&_t(o)&&tn(u.nodesRef.current,r,!1).some(e=>kt(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Et(St,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Vt(y&&Ie(y,`mouseenter`,c),y&&Ie(y,`mouseleave`,_),y&&Ie(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Es=n(Fe(),1),Ds={current:null};function Os(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Ds,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=Lt(l),y=ws(h),b=B.useRef(!1),x=Re(i),S=Re(r),C=Re(o),w=Re(n),T=Re(p),E=Re(f),ee=ht(()=>ss(g.current.openEvent?.type,y.interactedInside)),D=ht(()=>T.current?.()!==!1),te=ht((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!kt(e,t);if(!_t(n))return!1;let i=n;return r.hasMatchingElement(e=>kt(e,i))&&(!e||!kt(e,i))}),O=ht(()=>{y.handler&&=(vt(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),ne=ht(()=>{Ss(y)});return u&&(y.handleCloseOptions=x.current?.__options),B.useEffect(()=>O,[O]),B.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===St,O(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,O]),B.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=as(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,Et(St,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!_t(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!en(y.pointerType))return;let t=os(C.current),n=as(S.current,`open`,y.pointerType),r=yt(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(_t(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(kt(e,r)){s=e;break}}_t(i)&&_t(o)&&!h.context.triggerElements.hasElement(i)&&kt(i,o)&&(s=o);let c=s!=null&&te(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&_t(s)&&_t(o)&&kt(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){D()&&h.setOpen(!0,Et(St,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&D()&&h.setOpen(!0,Et(St,e,s))}):g&&D()&&h.setOpen(!0,Et(St,e,s)))}function i(t){if(ee()){ne();return}O();let n=h.select(`domReferenceElement`),r=vt(n);y.restTimeout.clear(),y.restTimeoutPending=!1;let i=g.current.floatingContext??d?.();if(!Qt(t.relatedTarget,h.context.triggerElements)){if(x.current&&i){h.select(`open`)||y.openChangeTimeout.clear();let n=c.current;y.handler=x.current({...i,tree:v,x:t.clientX,y:t.clientY,onClose(){ne(),O(),w.current&&!ee()&&n===h.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!kt(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){kt(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?Ie(t,`mouseout`,o):void 0;return s?Vt(Ie(t,`mousemove`,r,{once:!0}),Ie(t,`mouseenter`,r),Ie(t,`mouseleave`,i),l):Vt(Ie(t,`mouseenter`,r),Ie(t,`mouseleave`,i),l)},[O,ne,g,S,h,n,x,y,u,te,ee,a,s,C,c,v,w,d,E,D,m]),B.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=te(r,n,e.target);if(a&&!en(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Cs(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=os(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,ee())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&D()&&h.setOpen(!0,Et(St,t,n))}y.pointerType===`touch`?Es.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,ee,te,a,h,C,D])}var ks=.1,As=ks*ks,js=.5;function Ms(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ns(e,t,n,r,i,a,o,s,c,l){let u=!1;return Ms(e,t,n,r,i,a)&&(u=!u),Ms(e,t,i,a,o,s)&&(u=!u),Ms(e,t,o,s,c,l)&&(u=!u),Ms(e,t,c,l,n,r)&&(u=!u),u}function Ps(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Fs(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 Is(e={}){let{blockPointerEvents:t=!1}=e,n=new Ft,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*As;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,ee=(T?x:S).left,D=(T?x:S).right,te=(E?x:S).top,O=(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 ne=!1;switch(c){case`top`:ne=Fs(d,f,ee,x.top+1,D,S.bottom-1);break;case`bottom`:ne=Fs(d,f,ee,S.top+1,D,x.bottom-1);break;case`left`:ne=Fs(d,f,S.right-1,O,x.left+1,te);break;case`right`:ne=Fs(d,f,x.right-1,O,S.left+1,te)}if(ne)return;if(l&&!Ps(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let re=!1;switch(c){case`top`:{let n=T?js/2:js*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+js+1,o=C||T?S.bottom-js:S.top,s=C?T?S.bottom-js:S.top:S.bottom-js;re=Ns(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?js/2:js*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-js,o=C||T?S.top+js:S.bottom,s=C?T?S.top+js:S.bottom:S.top+js;re=Ns(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?js/2:js*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+js+1,o=w||E?S.right-js:S.left,s=w?E?S.right-js:S.left:S.right-js;re=Ns(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?js/2:js*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-js,o=w||E?S.left+js:S.right,s=w?E?S.left+js:S.right:S.left+js;re=Ns(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}re?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Ls(e){return _n(`dialog`,e)}function Rs(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Ls,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function zs(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(yn,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Bs(e){let t=(0,W.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=F(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(Sn,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vs(e){let t=(0,W.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0||o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Bs,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=F(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,V.jsxs)(gn,{"data-slot":`sheet-close`,render:(0,V.jsx)(gt,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,V.jsx)(lt,{}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,V.jsxs)(zs,{children:[l,(0,V.jsxs)(hn,{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 Hs(e){let t=(0,W.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=F(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Us(e){let t=(0,W.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=F(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(xn,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ws(e){let t=(0,W.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=F(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(mn,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Gs=B.createContext(void 0);function Ks(e){let t=B.useContext(Gs);if(t===void 0&&!e)throw Error(Ge(72));return t}var qs={...bn,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Js=class extends Mt{constructor(e,t,n){let r=new nn;super(Ys(e,r,t,n),Xs(r),qs)}setOpen=(e,t)=>{Yt(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Et(xt,e))}};function Ys(e,t,n,r=!1){let i={...pn(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return i.floatingRootContext=vn(t,n,r),i}function Xs(e){return{popupRef:B.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Zs=Rt(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=Bt((e,t)=>new Js({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),cn(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Wt(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=B.useRef(null);mt(()=>{m&&t&&p.setOpen(!1,Et(Ct))},[m,t,p]),mt(()=>{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]),mt(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),B.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Et(Tt))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,V.jsxs)(Gs.Provider,{value:p,children:[l&&(0,V.jsx)(Xt,{handle:l,store:p}),T&&(0,V.jsx)(Qs,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function Qs({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=At(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=hs(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=B.useMemo(()=>Be(a.reference,i.reference),[a.reference,i.reference]);return sn(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??ze}),null}var $s=B.createContext(void 0);function ec(){return B.useContext($s)}var tc=`data-base-ui-tooltip-trigger`;function nc(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!k.current}}),j=ys(v,{enabled:!O}).reference,ue=e=>{let t=k.current,n=nc(e),r=ce(n),i=y.current,a=i&&n&&kt(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Et(St,e));return}if(t&&!r&&a&&!ne.current&&!m.select(`open`)&&i&&en(ae.current)){let t=()=>{!k.current&&!ne.current&&!m.select(`open`)&&m.setOpen(!0,Et(St,e,i))},n=oe();n===0?(A.clear(),t()):A.start(n,t)}},M=m.useState(`triggerProps`,C);return He(`button`,e,{state:{open:_},ref:[t,S,y],props:[le,j,C||re!==`none`?M:void 0,{onMouseOver(e){ue(e.nativeEvent)},onFocus(e){se(nc(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){k.current=!1,A.clear(),ae.current=void 0},onPointerEnter(e){ae.current=e.pointerType},onPointerDown(e){ae.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,"data-trigger-disabled":O?``:void 0,[tc]:O?void 0:``},f],stateAttributesMapping:rn})}),ac=B.createContext(void 0);function oc(){let e=B.useContext(ac);if(e===void 0)throw Error(Ge(70));return e}var sc=B.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Nt({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,V.jsxs)(B.Fragment,{children:[l,c&&Es.createPortal(n,c)]})}),cc=B.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Ks().useState(`mounted`)||n?(0,V.jsx)(ac.Provider,{value:n,children:(0,V.jsx)(sc,{ref:t,...r})}):null}),lc=B.createContext(void 0);function uc(){let e=B.useContext(lc);if(e===void 0)throw Error(Ge(71));return e}var dc=B.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=zt,style:g,..._}=e,v=Ks(),y=oc(),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`),ee=v.useState(`adaptiveOrigin`),D=un({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:ee}),te=B.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]),O=dn(e,te,{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,V.jsx)(lc.Provider,{value:D,children:O})}),fc=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Ks(),{side:s,align:c}=uc(),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`);Le({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ts(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return He(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[$t,f,ln(d),a],stateAttributesMapping:Pt})}),pc=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Ks(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=uc(),f={open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)};return He(`div`,e,{state:f,ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ht})}),mc=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=B.useMemo(()=>({open:t,close:n}),[t,n]);return(0,V.jsx)($s.Provider,{value:t,children:(0,V.jsx)(ds,{delay:i,timeoutMs:r,children:e.children})})};function hc(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,V.jsx)(mc,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function gc(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(hc,{children:(0,V.jsx)(Zs,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function _c(e){let t=(0,W.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(ic,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function vc(e){let t=(0,W.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=F(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,V.jsx)(pc,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,V.jsxs)(fc,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,V.jsx)(cc,{children:(0,V.jsx)(dc,{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 yc=window.matchMedia(`(max-width: 767px)`);function bc(e){return yc.addEventListener(`change`,e),()=>{yc.removeEventListener(`change`,e)}}function xc(){return yc.matches}function Sc(){return(0,B.useSyncExternalStore)(bc,xc)}var Cc=`sidebar_state`,wc=604800,Tc=`12rem`,Ec=`16rem`,Dc=`3rem`,Oc=`b`,kc=B.createContext(null);function Ac(){let e=B.useContext(kc);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function jc(e){let t=(0,W.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0||c,u=Sc(),[d,f]=B.useState(!1),[p,m]=B.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${Cc}=${t}; path=/; max-age=${wc}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>{u?f(Nc):_(Mc)},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===Oc&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},x=[y],t[14]=y,t[15]=b,t[16]=x),B.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":Tc,"--sidebar-width-icon":Dc,...s},t[24]=s,t[25]=T);let E=T,ee;t[26]===r?ee=t[27]:(ee=F(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[26]=r,t[27]=ee);let D;t[28]!==n||t[29]!==a||t[30]!==ee||t[31]!==E?(D=(0,V.jsx)(`div`,{className:ee,"data-slot":`sidebar-wrapper`,style:E,...a,children:n}),t[28]=n,t[29]=a,t[30]=ee,t[31]=E,t[32]=D):D=t[32];let te;return t[33]!==w||t[34]!==D?(te=(0,V.jsx)(kc.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=te):te=t[35],te}function Mc(e){return!e}function Nc(e){return!e}function Pc(e){let t=(0,W.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}=Ac();if(u===`none`){let e;t[7]===r?e=t[8]:(e=F(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,V.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Ec},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsxs)(Hs,{className:`sr-only`,children:[(0,V.jsx)(Us,{children:`Sidebar`}),(0,V.jsx)(Ws,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,V.jsxs)(Vs,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,V.jsx)(Rs,{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]:(_=F(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,V.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=F(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,V.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,V.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,V.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function Fc(e){let t=(0,W.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}=Ac(),o;t[4]===n?o=t[5]:(o=F(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(Zo,{}),l=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,V.jsxs)(gt,{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 Ic(e){let t=(0,W.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}=Ac(),a;t[3]===n?a=t[4]:(a=F(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,V.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,type:`button`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function Lc(e){let t=(0,W.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=F(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rc(e){let t=(0,W.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=F(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zc(e){let t=(0,W.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=F(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(fn,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bc(e){let t=(0,W.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=F(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto`,`group-data-[collapsible=icon]:[scrollbar-width:none] group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vc(e){let t=(0,W.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=F(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hc(e){let t=(0,W.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Ke,r=`div`,i=Be({className:F(`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 Uc(e){let t=(0,W.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=F(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function G(e){let t=(0,W.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=F(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,V.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Wc=We(`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 K(e){let t=(0,W.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r!==void 0&&r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Ac(),m=Be({className:F(Wc({variant:u,size:d}),s)},c),h=o?_c: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=Ke(_);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,V.jsx)(vc,{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,V.jsxs)(gc,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var Gc=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function Kc(e){return typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`}function qc(e){return Kc(e)&&Gc.has(e.name)}var Jc=!1;function Yc(e,t){Jc||!qc(e)||(Jc=!0,Je(),Cn(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function Xc(){let e=new Qr({queryCache:new Zr({onError:t=>{Yc(t,e)}}),mutationCache:new Yr({onError:t=>{Yc(t,e)}}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function Zc(){let e=(0,W.c)(8),{theme:t,setTheme:n}=Ao(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(es,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,V.jsx)(Yo,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,V.jsxs)(gt,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function Qc(){let e=(0,W.c)(7),{isAdmin:t,license:n}=wn(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=F(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,V.jsx)(Fc,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:F(pt({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(Zc,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,V.jsxs)(`header`,{className:i,children:[a,(0,V.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function $c(){let e=(0,W.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,V.jsx)(M,{to:`/`,children:(0,V.jsx)(gt,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function el(){let e=(0,W.c)(287),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:tl},e[0]=t):t=e[0];let n=go(t),r=Ne(),i=h(),{isAdmin:a}=wn(),o;e[1]!==r||e[2]!==i?(o=function(){Je(),Cn(),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,V.jsxs)(Lc,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,V.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,V.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Hc,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(Bo,{className:`size-4`}),f=(0,V.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,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/`,children:(0,V.jsxs)(K,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/nodes`,children:(0,V.jsxs)(K,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,V.jsx)(nt,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let g;e[13]!==p||e[14]!==m?(g=(0,V.jsxs)(Vc,{children:[l,(0,V.jsxs)(Uc,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=g):g=e[15];let _;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,V.jsx)(Hc,{children:`EC2`}),e[16]=_):_=e[16];let v;e[17]===n?v=e[18]:(v=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=v);let y,b;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,V.jsx)(nt,{className:`size-4`}),b=(0,V.jsx)(`span`,{children:`Instances`}),e[19]=y,e[20]=b):(y=e[19],b=e[20]);let x;e[21]===v?x=e[22]:(x=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-instances`,children:(0,V.jsxs)(K,{isActive:v,tooltip:`Instances`,children:[y,b]})})}),e[21]=v,e[22]=x);let S;e[23]===n?S=e[24]:(S=n.startsWith(`/ec2/describe-launch-templates`)||n.startsWith(`/ec2/create-launch-template`),e[23]=n,e[24]=S);let C,w;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,V.jsx)(zo,{className:`size-4`}),w=(0,V.jsx)(`span`,{children:`Launch Templates`}),e[25]=C,e[26]=w):(C=e[25],w=e[26]);let T;e[27]===S?T=e[28]:(T=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-launch-templates`,children:(0,V.jsxs)(K,{isActive:S,tooltip:`Launch Templates`,children:[C,w]})})}),e[27]=S,e[28]=T);let E;e[29]===n?E=e[30]:(E=n.startsWith(`/ec2/describe-images`),e[29]=n,e[30]=E);let ee,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(at,{className:`size-4`}),D=(0,V.jsx)(`span`,{children:`Images`}),e[31]=ee,e[32]=D):(ee=e[31],D=e[32]);let te;e[33]===E?te=e[34]:(te=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-images`,children:(0,V.jsxs)(K,{isActive:E,tooltip:`Images`,children:[ee,D]})})}),e[33]=E,e[34]=te);let O;e[35]===n?O=e[36]:(O=n.startsWith(`/ec2/describe-key-pairs`),e[35]=n,e[36]=O);let ne,re;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,V.jsx)(tt,{className:`size-4`}),re=(0,V.jsx)(`span`,{children:`Key Pairs`}),e[37]=ne,e[38]=re):(ne=e[37],re=e[38]);let ie;e[39]===O?ie=e[40]:(ie=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-key-pairs`,children:(0,V.jsxs)(K,{isActive:O,tooltip:`Key Pairs`,children:[ne,re]})})}),e[39]=O,e[40]=ie);let k;e[41]===n?k=e[42]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[41]=n,e[42]=k);let A,ae;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,V.jsx)(qo,{className:`size-4`}),ae=(0,V.jsx)(`span`,{children:`Elastic IPs`}),e[43]=A,e[44]=ae):(A=e[43],ae=e[44]);let oe;e[45]===k?oe=e[46]:(oe=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-addresses`,children:(0,V.jsxs)(K,{isActive:k,tooltip:`Elastic IPs`,children:[A,ae]})})}),e[45]=k,e[46]=oe);let se;e[47]===n?se=e[48]:(se=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[47]=n,e[48]=se);let ce,le;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,V.jsx)(rt,{className:`size-4`}),le=(0,V.jsx)(`span`,{children:`Volumes`}),e[49]=ce,e[50]=le):(ce=e[49],le=e[50]);let j;e[51]===se?j=e[52]:(j=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-volumes`,children:(0,V.jsxs)(K,{isActive:se,tooltip:`Volumes`,children:[ce,le]})})}),e[51]=se,e[52]=j);let ue;e[53]===n?ue=e[54]:(ue=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[53]=n,e[54]=ue);let de,fe;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,V.jsx)(Xe,{className:`size-4`}),fe=(0,V.jsx)(`span`,{children:`Snapshots`}),e[55]=de,e[56]=fe):(de=e[55],fe=e[56]);let pe;e[57]===ue?pe=e[58]:(pe=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-snapshots`,children:(0,V.jsxs)(K,{isActive:ue,tooltip:`Snapshots`,children:[de,fe]})})}),e[57]=ue,e[58]=pe);let me;e[59]===n?me=e[60]:(me=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[59]=n,e[60]=me);let he,ge;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,V.jsx)(Uo,{className:`size-4`}),ge=(0,V.jsx)(`span`,{children:`Placement Groups`}),e[61]=he,e[62]=ge):(he=e[61],ge=e[62]);let _e;e[63]===me?_e=e[64]:(_e=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-placement-groups`,children:(0,V.jsxs)(K,{isActive:me,tooltip:`Placement Groups`,children:[he,ge]})})}),e[63]=me,e[64]=_e);let ve;e[65]===n?ve=e[66]:(ve=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[65]=n,e[66]=ve);let ye,be;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,V.jsx)(it,{className:`size-4`}),be=(0,V.jsx)(`span`,{children:`Load Balancers`}),e[67]=ye,e[68]=be):(ye=e[67],be=e[68]);let xe;e[69]===ve?xe=e[70]:(xe=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-load-balancers`,children:(0,V.jsxs)(K,{isActive:ve,tooltip:`Load Balancers`,children:[ye,be]})})}),e[69]=ve,e[70]=xe);let Se;e[71]===n?Se=e[72]:(Se=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[71]=n,e[72]=Se);let Ce,we;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,V.jsx)(Lo,{className:`size-4`}),we=(0,V.jsx)(`span`,{children:`Target Groups`}),e[73]=Ce,e[74]=we):(Ce=e[73],we=e[74]);let Te;e[75]===Se?Te=e[76]:(Te=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-target-groups`,children:(0,V.jsxs)(K,{isActive:Se,tooltip:`Target Groups`,children:[Ce,we]})})}),e[75]=Se,e[76]=Te);let Ee;e[77]!==x||e[78]!==T||e[79]!==te||e[80]!==ie||e[81]!==oe||e[82]!==j||e[83]!==pe||e[84]!==_e||e[85]!==xe||e[86]!==Te?(Ee=(0,V.jsxs)(Vc,{children:[_,(0,V.jsxs)(Uc,{children:[x,T,te,ie,oe,j,pe,_e,xe,Te]})]}),e[77]=x,e[78]=T,e[79]=te,e[80]=ie,e[81]=oe,e[82]=j,e[83]=pe,e[84]=_e,e[85]=xe,e[86]=Te,e[87]=Ee):Ee=e[87];let N;e[88]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,V.jsx)(Hc,{children:`Networking`}),e[88]=N):N=e[88];let De;e[89]===n?De=e[90]:(De=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[89]=n,e[90]=De);let P,Oe;e[91]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,V.jsx)(Ze,{className:`size-4`}),Oe=(0,V.jsx)(`span`,{children:`VPCs`}),e[91]=P,e[92]=Oe):(P=e[91],Oe=e[92]);let ke;e[93]===De?ke=e[94]:(ke=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-vpcs`,children:(0,V.jsxs)(K,{isActive:De,tooltip:`VPCs`,children:[P,Oe]})})}),e[93]=De,e[94]=ke);let Ae;e[95]===n?Ae=e[96]:(Ae=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[95]=n,e[96]=Ae);let je,Me;e[97]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,V.jsx)(Wo,{className:`size-4`}),Me=(0,V.jsx)(`span`,{children:`Subnets`}),e[97]=je,e[98]=Me):(je=e[97],Me=e[98]);let Pe;e[99]===Ae?Pe=e[100]:(Pe=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-subnets`,children:(0,V.jsxs)(K,{isActive:Ae,tooltip:`Subnets`,children:[je,Me]})})}),e[99]=Ae,e[100]=Pe);let Fe;e[101]===n?Fe=e[102]:(Fe=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[101]=n,e[102]=Fe);let Ie,Le;e[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,V.jsx)($o,{className:`size-4`}),Le=(0,V.jsx)(`span`,{children:`Security Groups`}),e[103]=Ie,e[104]=Le):(Ie=e[103],Le=e[104]);let Re;e[105]===Fe?Re=e[106]:(Re=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-security-groups`,children:(0,V.jsxs)(K,{isActive:Fe,tooltip:`Security Groups`,children:[Ie,Le]})})}),e[105]=Fe,e[106]=Re);let ze;e[107]===n?ze=e[108]:(ze=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[107]=n,e[108]=ze);let Be,Ve;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,V.jsx)(Qo,{className:`size-4`}),Ve=(0,V.jsx)(`span`,{children:`Route Tables`}),e[109]=Be,e[110]=Ve):(Be=e[109],Ve=e[110]);let He;e[111]===ze?He=e[112]:(He=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-route-tables`,children:(0,V.jsxs)(K,{isActive:ze,tooltip:`Route Tables`,children:[Be,Ve]})})}),e[111]=ze,e[112]=He);let Ue;e[113]===n?Ue=e[114]:(Ue=n.startsWith(`/ec2/describe-internet-gateways`),e[113]=n,e[114]=Ue);let We,Ge;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(We=(0,V.jsx)(Qe,{className:`size-4`}),Ge=(0,V.jsx)(`span`,{children:`Internet Gateways`}),e[115]=We,e[116]=Ge):(We=e[115],Ge=e[116]);let Ke;e[117]===Ue?Ke=e[118]:(Ke=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-internet-gateways`,children:(0,V.jsxs)(K,{isActive:Ue,tooltip:`Internet Gateways`,children:[We,Ge]})})}),e[117]=Ue,e[118]=Ke);let qe;e[119]===n?qe=e[120]:(qe=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[119]=n,e[120]=qe);let F,I;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,V.jsx)($e,{className:`size-4`}),I=(0,V.jsx)(`span`,{children:`NAT Gateways`}),e[121]=F,e[122]=I):(F=e[121],I=e[122]);let Ye;e[123]===qe?Ye=e[124]:(Ye=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ec2/describe-nat-gateways`,children:(0,V.jsxs)(K,{isActive:qe,tooltip:`NAT Gateways`,children:[F,I]})})}),e[123]=qe,e[124]=Ye);let L;e[125]!==ke||e[126]!==Pe||e[127]!==Re||e[128]!==He||e[129]!==Ke||e[130]!==Ye?(L=(0,V.jsxs)(Vc,{children:[N,(0,V.jsxs)(Uc,{children:[ke,Pe,Re,He,Ke,Ye]})]}),e[125]=ke,e[126]=Pe,e[127]=Re,e[128]=He,e[129]=Ke,e[130]=Ye,e[131]=L):L=e[131];let ot;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,V.jsx)(Hc,{children:`Containers`}),e[132]=ot):ot=e[132];let ct;e[133]===n?ct=e[134]:(ct=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[133]=n,e[134]=ct);let lt,ut;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,V.jsx)(No,{className:`size-4`}),ut=(0,V.jsx)(`span`,{children:`EKS`}),e[135]=lt,e[136]=ut):(lt=e[135],ut=e[136]);let dt;e[137]===ct?dt=e[138]:(dt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/eks/list-clusters`,children:(0,V.jsxs)(K,{isActive:ct,tooltip:`EKS clusters`,children:[lt,ut]})})}),e[137]=ct,e[138]=dt);let ft;e[139]===n?ft=e[140]:(ft=n.startsWith(`/ecr/list-repositories`),e[139]=n,e[140]=ft);let pt,mt;e[141]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,V.jsx)(Xo,{className:`size-4`}),mt=(0,V.jsx)(`span`,{children:`ECR`}),e[141]=pt,e[142]=mt):(pt=e[141],mt=e[142]);let ht;e[143]===ft?ht=e[144]:(ht=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ecr/list-repositories`,children:(0,V.jsxs)(K,{isActive:ft,tooltip:`ECR repositories`,children:[pt,mt]})})}),e[143]=ft,e[144]=ht);let gt;e[145]===n?gt=e[146]:(gt=n.startsWith(`/ecs/`),e[145]=n,e[146]=gt);let _t,vt;e[147]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,V.jsx)(Io,{className:`size-4`}),vt=(0,V.jsx)(`span`,{children:`ECS`}),e[147]=_t,e[148]=vt):(_t=e[147],vt=e[148]);let yt;e[149]===gt?yt=e[150]:(yt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/ecs/list-clusters`,children:(0,V.jsxs)(K,{isActive:gt,tooltip:`ECS clusters`,children:[_t,vt]})})}),e[149]=gt,e[150]=yt);let bt;e[151]!==dt||e[152]!==ht||e[153]!==yt?(bt=(0,V.jsxs)(Vc,{children:[ot,(0,V.jsxs)(Uc,{children:[dt,ht,yt]})]}),e[151]=dt,e[152]=ht,e[153]=yt,e[154]=bt):bt=e[154];let xt;e[155]===Symbol.for(`react.memo_cache_sentinel`)?(xt=(0,V.jsx)(Hc,{children:`RDS`}),e[155]=xt):xt=e[155];let St;e[156]===n?St=e[157]:(St=n.startsWith(`/rds/describe-db-instances`)||n.startsWith(`/rds/create-db-instance`),e[156]=n,e[157]=St);let Ct,wt;e[158]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=(0,V.jsx)(Ro,{className:`size-4`}),wt=(0,V.jsx)(`span`,{children:`Databases`}),e[158]=Ct,e[159]=wt):(Ct=e[158],wt=e[159]);let Tt;e[160]===St?Tt=e[161]:(Tt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/rds/describe-db-instances`,children:(0,V.jsxs)(K,{isActive:St,tooltip:`Databases`,children:[Ct,wt]})})}),e[160]=St,e[161]=Tt);let Et;e[162]===n?Et=e[163]:(Et=n.startsWith(`/rds/describe-db-snapshots`)||n.startsWith(`/rds/restore-db-instance-from-db-snapshot`),e[162]=n,e[163]=Et);let Dt,Ot;e[164]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,V.jsx)(Xe,{className:`size-4`}),Ot=(0,V.jsx)(`span`,{children:`Snapshots`}),e[164]=Dt,e[165]=Ot):(Dt=e[164],Ot=e[165]);let kt;e[166]===Et?kt=e[167]:(kt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/rds/describe-db-snapshots`,children:(0,V.jsxs)(K,{isActive:Et,tooltip:`DB Snapshots`,children:[Dt,Ot]})})}),e[166]=Et,e[167]=kt);let At;e[168]===n?At=e[169]:(At=n.startsWith(`/rds/describe-db-subnet-groups`)||n.startsWith(`/rds/create-db-subnet-group`),e[168]=n,e[169]=At);let jt,Mt;e[170]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,V.jsx)(Wo,{className:`size-4`}),Mt=(0,V.jsx)(`span`,{children:`Subnet Groups`}),e[170]=jt,e[171]=Mt):(jt=e[170],Mt=e[171]);let Nt;e[172]===At?Nt=e[173]:(Nt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/rds/describe-db-subnet-groups`,children:(0,V.jsxs)(K,{isActive:At,tooltip:`DB Subnet Groups`,children:[jt,Mt]})})}),e[172]=At,e[173]=Nt);let Pt;e[174]===n?Pt=e[175]:(Pt=n.startsWith(`/rds/describe-db-parameter-groups`)||n.startsWith(`/rds/create-db-parameter-group`),e[174]=n,e[175]=Pt);let Ft,It;e[176]===Symbol.for(`react.memo_cache_sentinel`)?(Ft=(0,V.jsx)(st,{className:`size-4`}),It=(0,V.jsx)(`span`,{children:`Parameter Groups`}),e[176]=Ft,e[177]=It):(Ft=e[176],It=e[177]);let Lt;e[178]===Pt?Lt=e[179]:(Lt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/rds/describe-db-parameter-groups`,children:(0,V.jsxs)(K,{isActive:Pt,tooltip:`DB Parameter Groups`,children:[Ft,It]})})}),e[178]=Pt,e[179]=Lt);let Rt;e[180]!==kt||e[181]!==Nt||e[182]!==Lt||e[183]!==Tt?(Rt=(0,V.jsxs)(Vc,{children:[xt,(0,V.jsxs)(Uc,{children:[Tt,kt,Nt,Lt]})]}),e[180]=kt,e[181]=Nt,e[182]=Lt,e[183]=Tt,e[184]=Rt):Rt=e[184];let zt;e[185]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,V.jsx)(Hc,{children:`IAM`}),e[185]=zt):zt=e[185];let Bt;e[186]===n?Bt=e[187]:(Bt=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[186]=n,e[187]=Bt);let Vt,Ht;e[188]===Symbol.for(`react.memo_cache_sentinel`)?(Vt=(0,V.jsx)(rs,{className:`size-4`}),Ht=(0,V.jsx)(`span`,{children:`Users`}),e[188]=Vt,e[189]=Ht):(Vt=e[188],Ht=e[189]);let Ut;e[190]===Bt?Ut=e[191]:(Ut=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/iam/list-users`,children:(0,V.jsxs)(K,{isActive:Bt,tooltip:`Users`,children:[Vt,Ht]})})}),e[190]=Bt,e[191]=Ut);let Wt;e[192]===n?Wt=e[193]:(Wt=n.startsWith(`/iam/list-groups`)||n.startsWith(`/iam/create-group`),e[192]=n,e[193]=Wt);let Gt,Kt;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(Gt=(0,V.jsx)(ns,{className:`size-4`}),Kt=(0,V.jsx)(`span`,{children:`Groups`}),e[194]=Gt,e[195]=Kt):(Gt=e[194],Kt=e[195]);let qt;e[196]===Wt?qt=e[197]:(qt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/iam/list-groups`,children:(0,V.jsxs)(K,{isActive:Wt,tooltip:`Groups`,children:[Gt,Kt]})})}),e[196]=Wt,e[197]=qt);let Jt;e[198]===n?Jt=e[199]:(Jt=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[198]=n,e[199]=Jt);let Yt,Xt;e[200]===Symbol.for(`react.memo_cache_sentinel`)?(Yt=(0,V.jsx)(et,{className:`size-4`}),Xt=(0,V.jsx)(`span`,{children:`Policies`}),e[200]=Yt,e[201]=Xt):(Yt=e[200],Xt=e[201]);let Zt;e[202]===Jt?Zt=e[203]:(Zt=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/iam/list-policies`,children:(0,V.jsxs)(K,{isActive:Jt,tooltip:`Policies`,children:[Yt,Xt]})})}),e[202]=Jt,e[203]=Zt);let Qt;e[204]===n?Qt=e[205]:(Qt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[204]=n,e[205]=Qt);let $t,en;e[206]===Symbol.for(`react.memo_cache_sentinel`)?($t=(0,V.jsx)(ts,{className:`size-4`}),en=(0,V.jsx)(`span`,{children:`Roles`}),e[206]=$t,e[207]=en):($t=e[206],en=e[207]);let tn;e[208]===Qt?tn=e[209]:(tn=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/iam/list-roles`,children:(0,V.jsxs)(K,{isActive:Qt,tooltip:`Roles`,children:[$t,en]})})}),e[208]=Qt,e[209]=tn);let nn;e[210]===n?nn=e[211]:(nn=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[210]=n,e[211]=nn);let rn,an;e[212]===Symbol.for(`react.memo_cache_sentinel`)?(rn=(0,V.jsx)(Vo,{className:`size-4`}),an=(0,V.jsx)(`span`,{children:`Instance Profiles`}),e[212]=rn,e[213]=an):(rn=e[212],an=e[213]);let on;e[214]===nn?on=e[215]:(on=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/iam/list-instance-profiles`,children:(0,V.jsxs)(K,{isActive:nn,tooltip:`Instance Profiles`,children:[rn,an]})})}),e[214]=nn,e[215]=on);let sn;e[216]!==Ut||e[217]!==qt||e[218]!==Zt||e[219]!==tn||e[220]!==on?(sn=(0,V.jsxs)(Vc,{children:[zt,(0,V.jsxs)(Uc,{children:[Ut,qt,Zt,tn,on]})]}),e[216]=Ut,e[217]=qt,e[218]=Zt,e[219]=tn,e[220]=on,e[221]=sn):sn=e[221];let cn;e[222]===Symbol.for(`react.memo_cache_sentinel`)?(cn=(0,V.jsx)(Hc,{children:`S3`}),e[222]=cn):cn=e[222];let ln;e[223]===n?ln=e[224]:(ln=n.startsWith(`/s3/ls`),e[223]=n,e[224]=ln);let un,dn;e[225]===Symbol.for(`react.memo_cache_sentinel`)?(un=(0,V.jsx)(nt,{className:`size-4`}),dn=(0,V.jsx)(`span`,{children:`Buckets`}),e[225]=un,e[226]=dn):(un=e[225],dn=e[226]);let fn;e[227]===ln?fn=e[228]:(fn=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/s3/ls`,children:(0,V.jsxs)(K,{isActive:ln,tooltip:`Buckets`,children:[un,dn]})})}),e[227]=ln,e[228]=fn);let pn;e[229]!==a||e[230]!==n?(pn=a&&(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/s3/service-metrics`,children:(0,V.jsxs)(K,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,V.jsx)(jo,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Service Metrics`})]})})}),e[229]=a,e[230]=n,e[231]=pn):pn=e[231];let mn;e[232]!==fn||e[233]!==pn?(mn=(0,V.jsxs)(Vc,{children:[cn,(0,V.jsxs)(Uc,{children:[fn,pn]})]}),e[232]=fn,e[233]=pn,e[234]=mn):mn=e[234];let hn;e[235]===Symbol.for(`react.memo_cache_sentinel`)?(hn=(0,V.jsx)(Hc,{children:`Ochre`}),e[235]=hn):hn=e[235];let gn;e[236]===n?gn=e[237]:(gn=n.startsWith(`/bedrock/list-knowledge-bases`),e[236]=n,e[237]=gn);let _n,vn;e[238]===Symbol.for(`react.memo_cache_sentinel`)?(_n=(0,V.jsx)(Po,{className:`size-4`}),vn=(0,V.jsx)(`span`,{children:`Knowledge Bases`}),e[238]=_n,e[239]=vn):(_n=e[238],vn=e[239]);let yn;e[240]===gn?yn=e[241]:(yn=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/bedrock/list-knowledge-bases`,children:(0,V.jsxs)(K,{isActive:gn,tooltip:`Knowledge Bases`,children:[_n,vn]})})}),e[240]=gn,e[241]=yn);let bn;e[242]===n?bn=e[243]:(bn=n.startsWith(`/bedrock/list-guardrails`),e[242]=n,e[243]=bn);let xn,Sn;e[244]===Symbol.for(`react.memo_cache_sentinel`)?(xn=(0,V.jsx)(et,{className:`size-4`}),Sn=(0,V.jsx)(`span`,{children:`Guardrails`}),e[244]=xn,e[245]=Sn):(xn=e[244],Sn=e[245]);let Tn;e[246]===bn?Tn=e[247]:(Tn=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/bedrock/list-guardrails`,children:(0,V.jsxs)(K,{isActive:bn,tooltip:`Guardrails`,children:[xn,Sn]})})}),e[246]=bn,e[247]=Tn);let En;e[248]===n?En=e[249]:(En=n.startsWith(`/bedrock/playground`),e[248]=n,e[249]=En);let Dn,On;e[250]===Symbol.for(`react.memo_cache_sentinel`)?(Dn=(0,V.jsx)(Jo,{className:`size-4`}),On=(0,V.jsx)(`span`,{children:`Playground`}),e[250]=Dn,e[251]=On):(Dn=e[250],On=e[251]);let kn;e[252]===En?kn=e[253]:(kn=(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/bedrock/playground`,children:(0,V.jsxs)(K,{isActive:En,tooltip:`Playground`,children:[Dn,On]})})}),e[252]=En,e[253]=kn);let An;e[254]!==a||e[255]!==n?(An=a&&(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/bedrock/list-model-catalog`,children:(0,V.jsxs)(K,{isActive:n.startsWith(`/bedrock/list-model-catalog`),tooltip:`Model Catalog`,children:[(0,V.jsx)(Go,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Catalog`})]})})}),e[254]=a,e[255]=n,e[256]=An):An=e[256];let jn;e[257]!==a||e[258]!==n?(jn=a&&(0,V.jsx)(G,{children:(0,V.jsx)(M,{to:`/bedrock/list-model-access`,children:(0,V.jsxs)(K,{isActive:n.startsWith(`/bedrock/list-model-access`),tooltip:`Model Access`,children:[(0,V.jsx)(Ho,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Model Access`})]})})}),e[257]=a,e[258]=n,e[259]=jn):jn=e[259];let Mn;e[260]!==yn||e[261]!==Tn||e[262]!==kn||e[263]!==An||e[264]!==jn?(Mn=(0,V.jsxs)(Vc,{children:[hn,(0,V.jsxs)(Uc,{children:[yn,Tn,kn,An,jn]})]}),e[260]=yn,e[261]=Tn,e[262]=kn,e[263]=An,e[264]=jn,e[265]=Mn):Mn=e[265];let Nn;e[266]===a?Nn=e[267]:(Nn=a&&(0,V.jsxs)(Vc,{children:[(0,V.jsx)(Hc,{children:`Documentation`}),(0,V.jsx)(Uc,{children:(0,V.jsx)(G,{children:(0,V.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsxs)(K,{tooltip:`Documentation`,children:[(0,V.jsx)(Mo,{className:`size-4`}),(0,V.jsx)(`span`,{children:`Docs`})]})})})})]}),e[266]=a,e[267]=Nn);let Pn;e[268]!==Rt||e[269]!==sn||e[270]!==mn||e[271]!==Mn||e[272]!==Nn||e[273]!==Ee||e[274]!==L||e[275]!==g||e[276]!==bt?(Pn=(0,V.jsxs)(Bc,{children:[g,Ee,L,bt,Rt,sn,mn,Mn,Nn]}),e[268]=Rt,e[269]=sn,e[270]=mn,e[271]=Mn,e[272]=Nn,e[273]=Ee,e[274]=L,e[275]=g,e[276]=bt,e[277]=Pn):Pn=e[277];let Fn;e[278]===Symbol.for(`react.memo_cache_sentinel`)?(Fn=(0,V.jsx)(zc,{className:`mx-0 w-full`}),e[278]=Fn):Fn=e[278];let In,Ln;e[279]===Symbol.for(`react.memo_cache_sentinel`)?(In=(0,V.jsx)(Ko,{className:`size-4`}),Ln=(0,V.jsx)(`span`,{children:`Sign out`}),e[279]=In,e[280]=Ln):(In=e[279],Ln=e[280]);let Rn;e[281]===s?Rn=e[282]:(Rn=(0,V.jsxs)(Rc,{children:[Fn,(0,V.jsx)(Uc,{children:(0,V.jsx)(G,{children:(0,V.jsxs)(K,{onClick:s,tooltip:`Sign out`,children:[In,Ln]})})})]}),e[281]=s,e[282]=Rn);let zn;e[283]===Symbol.for(`react.memo_cache_sentinel`)?(zn=(0,V.jsx)(Ic,{}),e[283]=zn):zn=e[283];let Bn;return e[284]!==Pn||e[285]!==Rn?(Bn=(0,V.jsxs)(Pc,{collapsible:`icon`,children:[c,Pn,Rn,zn]}),e[284]=Pn,e[285]=Rn,e[286]=Bn):Bn=e[286],Bn}function tl(e){return e.pathname}function nl(e){let t=(0,W.c)(18),{error:n,reset:r}=e,i=ke(),a=h(),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,V.jsx)(el,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(Qc,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(`div`,{className:`flex justify-center`,children:(0,V.jsx)(Fo,{className:`size-12 text-destructive`})}),d=(0,V.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,V.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,V.jsx)(gt,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(M,{to:`/`,children:(0,V.jsx)(gt,{variant:`outline`,children:`Go Home`})}),t[12]=g):g=t[12];let _;t[13]===m?_=t[14]:(_=(0,V.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,g]}),t[13]=m,t[14]=_);let v;return t[15]!==_||t[16]!==p?(v=(0,V.jsxs)(V.Fragment,{children:[c,(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,V.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,_]})})]})]}),t[15]=_,t[16]=p,t[17]=v):v=t[17],v}var rl=De()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(So,{}),(0,V.jsx)(el,{}),(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,V.jsx)(Qc,{}),(0,V.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,V.jsx)(ve,{})})]})]}),errorComponent:nl,notFoundComponent:$c}),il=N(`/_auth`)({beforeLoad:()=>{if(!qe())throw we({to:`/login`})},component:P(()=>I(()=>import(`./route.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),al=N(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(zn),e.queryClient.ensureQueryData(An),e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Hn),e.queryClient.ensureQueryData(lr),e.queryClient.ensureQueryData(Wn),e.queryClient.ensureQueryData(Fn),e.queryClient.ensureQueryData(Bn),e.queryClient.ensureQueryData(Ln)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:P(()=>I(()=>import(`./_auth.js`),__vite__mapDeps([6,1,7,8,9,10,11,4,5,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])),`component`)}),ol=N(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:P(()=>I(()=>import(`./nodes.js`),__vite__mapDeps([39,1,7,8,9,10,11,4,5,40,12,13,15,14,16,18,19,20,26,27,28,29,30,31,22])),`component`)}),sl=N(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./service-metrics.js`),__vite__mapDeps([41,1,7,8,9,10,40,18,12,13,19,20,26,27,28,29,30,31,22])),`component`)}),cl=N(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./allocate-address.js`),__vite__mapDeps([42,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),ll=N(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([63,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),ul=N(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-key-pair.js`),__vite__mapDeps([64,1,43,4,5,44,11,14,46,65,36,28,12,13,34,15,37,50,38,66,67,51,68,69,45,47,48,70,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62,33,35])),`component`)}),dl=N(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./import-key-pair.js`),__vite__mapDeps([71,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,72,56,57,58,59,60,61,62])),`component`)}),fl=N(`/_auth/ec2/(launch-templates)/create-launch-template`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Vn),e.queryClient.ensureQueryData(In),e.queryClient.ensureQueryData(Hn),e.queryClient.ensureQueryData(Nn),e.queryClient.ensureQueryData(Wn)])},head:()=>({meta:[{title:`Create Launch Template | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-launch-template.js`),__vite__mapDeps([73,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62,74,75,8,10,65,36,38,66,67,68,72,76])),`component`)}),pl=N(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Nn),e.queryClient.ensureQueryData(Wn),e.queryClient.ensureQueryData(Qn),e.queryClient.ensureQueryData(En),e.queryClient.ensureQueryData(Zn)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-load-balancer.js`),__vite__mapDeps([77,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,78,22,23,24,79,53,54,72,56,57,58,60,33,35,21,80,81,82,26,59,61,83,84,85,86,76,87])),`component`)}),ml=N(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Nn),e.queryClient.ensureQueryData(Bn)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([88,1,75,8,9,10,11,4,5,43,12,13,44,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),hl=N(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-placement-group.js`),__vite__mapDeps([89,1,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),gl=N(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mn)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-route-table.js`),__vite__mapDeps([90,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),_l=N(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mn)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-security-group.js`),__vite__mapDeps([91,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),vl=N(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Un)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-subnet.js`),__vite__mapDeps([92,1,75,8,9,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),yl=N(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mn)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-target-group.js`),__vite__mapDeps([93,1,75,8,9,10,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,21,22,23,24,80,53,54,81,26,59,60,61,86,65,36,37,50,38,66,67,51,68,49,56,57,58,76,83,84,85,87])),`component`)}),bl=N(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Un)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-volume.js`),__vite__mapDeps([94,1,75,8,9,10,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,52,53,54,55,26,56,57,58,59,60,61,62])),`component`)}),xl=N(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./create-vpc.js`),__vite__mapDeps([95,1,43,4,5,44,11,14,15,16,65,36,28,12,13,34,46,37,50,38,66,67,51,68,45,47,48,49,52,9,53,54,23,24,21,22,55,26,56,57,58,59,60,61,62])),`component`)}),Sl=N(`/_auth/ecs/(clusters)/task-definitions`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Jn)},head:()=>({meta:[{title:`Task Definitions | ECS | Mulga`}]}),component:P(()=>I(()=>import(`./task-definitions.js`),__vite__mapDeps([96,1,75,8,9,10,11,4,5,34,28,12,13,97,22,23,24,98,53,54,20,26,60,99,33,35,36,37,38,100])),`component`)}),Cl=N(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Nn),e.queryClient.ensureQueryData(rr),e.queryClient.ensureQueryData(Vn)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:P(()=>I(()=>import(`./create-cluster.js`),__vite__mapDeps([101,1,9,75,8,10,43,4,5,12,13,44,11,14,65,36,28,34,46,15,37,50,38,66,67,51,68,49,21,22,23,24,102,53,54,103,104,55,105,106,107,26,56,57,58,59,60,61,33,35,108,109,47,110,70,48,111])),`component`)}),wl=N(`/_auth/iam/(groups)/create-group`)({head:()=>({meta:[{title:`Create Group | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-group.js`),__vite__mapDeps([112,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),Tl=N(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-instance-profile.js`),__vite__mapDeps([114,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),El=N(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-policy.js`),__vite__mapDeps([115,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,116,104,72,113])),`component`)}),Dl=N(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-role.js`),__vite__mapDeps([117,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,116,104,72,113])),`component`)}),Ol=N(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./create-user.js`),__vite__mapDeps([118,1,43,4,5,44,11,14,45,12,13,46,15,47,34,28,48,49,37,50,51,105,9,53,54,23,24,106,26,56,57,58,59,60,61,113,104])),`component`)}),kl=N(`/_auth/rds/(db-instances)/create-db-instance`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(sr),e.queryClient.ensureQueryData(or),e.queryClient.ensureQueryData(ar),e.queryClient.ensureQueryData(Wn),e.queryClient.ensureQueryData(Mn),e.queryClient.ensureQueryData(Vn)])},head:()=>({meta:[{title:`Create Database | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-instance.js`),__vite__mapDeps([119,1,9,7,8,10,75,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,21,22,23,24,120,121,53,54,122,26,56,57,58,59,60,61,108,83,84,85,109,110,70,123,124])),`component`)}),Al=N(`/_auth/rds/(parameter-groups)/create-db-parameter-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sr)},head:()=>({meta:[{title:`Create Parameter Group | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-parameter-group.js`),__vite__mapDeps([125,1,75,8,9,10,43,4,5,44,11,14,65,36,28,12,13,34,46,15,37,50,38,66,67,51,68,45,47,48,49,120,23,24,121,53,54,122,22,26,56,57,58,59,60,61,83,84,85])),`component`)}),jl=N(`/_auth/rds/(subnet-groups)/create-db-subnet-group`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Nn),e.queryClient.ensureQueryData(Mn)])},head:()=>({meta:[{title:`Create Subnet Group | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./create-db-subnet-group.js`),__vite__mapDeps([126,1,75,8,9,10,43,4,5,12,13,44,11,14,45,46,15,47,34,28,48,49,37,50,51,21,22,23,24,120,121,53,54,26,56,57,58,59,60,61,83,84,85])),`component`)}),Ml=N(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./create-bucket.js`),__vite__mapDeps([127,1,43,4,5,12,13,44,11,14,45,46,15,47,34,28,48,49,37,50,51,128,9,53,54,23,24,26,56,57,58,59,60,61])),`component`)}),Nl=N(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(lr)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:P(()=>I(()=>import(`./ls.js`),__vite__mapDeps([129,1,75,8,9,10,11,4,5,12,13,34,28,25,22,23,24,26,130])),`component`)}),Pl=N(`/_auth/s3/ls/$bucket`)({component:P(()=>I(()=>import(`./route2.js`),__vite__mapDeps([131,1,2,3,4,5])),`component`)}),Fl=N(`/_auth/bedrock/(catalog)/list-model-catalog/`)({head:()=>({meta:[{title:`Model Catalog | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-model-catalog.js`),__vite__mapDeps([132,1,7,8,9,10,40,12,13,18,19,20,26,27,28,29,30,31,22])),`component`)}),Il=N(`/_auth/bedrock/(guardrails)/list-guardrails/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Dn)},head:()=>({meta:[{title:`Guardrails | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-guardrails.js`),__vite__mapDeps([133,1,75,8,9,10,134,22,12,13,23,24,26,32,130,11,4,5])),`component`)}),Ll=N(`/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kn)},head:()=>({meta:[{title:`Knowledge Bases | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-knowledge-bases.js`),__vite__mapDeps([135,1,75,8,9,10,136,22,12,13,23,24,26,32,130,11,4,5])),`component`)}),q=N(`/_auth/bedrock/(model-access)/list-model-access/`)({head:()=>({meta:[{title:`Model Access | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./list-model-access.js`),__vite__mapDeps([137,1,9,53,54,7,8,10,40,65,36,28,12,13,34,14,46,15,37,50,38,5,66,67,51,68,49,18,19,20,26,27,29,30,31,22,56,57,58])),`component`)}),Rl=N(`/_auth/bedrock/(playground)/playground/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(On),e.queryClient.ensureQueryData(Dn)])},head:()=>({meta:[{title:`Playground | Ochre | Mulga`}]}),component:P(()=>I(()=>import(`./playground.js`),__vite__mapDeps([138,1,53,9,54,75,8,10,12,13,15,14,65,36,28,34,46,37,50,38,5,66,67,51,68,45,47,48,49,23,24,134,22,139,26,27,29,72,56,57,58])),`component`)}),J=N(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Bn)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-addresses.js`),__vite__mapDeps([140,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,130])),`component`)}),Y=N(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Vn)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-images.js`),__vite__mapDeps([141,1,75,8,9,10,21,22,12,13,23,24,26,32,130,11,4,5,108])),`component`)}),X=N(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zn)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-instances.js`),__vite__mapDeps([142,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),zl=N(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ln)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([143,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,130])),`component`)}),Bl=N(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Hn)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([144,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,130])),`component`)}),Vl=N(`/_auth/ec2/(launch-templates)/describe-launch-templates/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Rn)},head:()=>({meta:[{title:`Launch Templates | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-launch-templates.js`),__vite__mapDeps([145,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,27,29,130])),`component`)}),Hl=N(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Xn)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([146,1,75,8,9,10,11,4,5,43,12,13,34,28,82,22,23,24,81,26,32])),`component`)}),Ul=N(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fn)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([147,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),Wl=N(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gn)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([148,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Gl=N(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Pn)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-route-tables.js`),__vite__mapDeps([149,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,27,29,130])),`component`)}),Kl=N(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Wn)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-security-groups.js`),__vite__mapDeps([150,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,130])),`component`)}),ql=N(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jn)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-snapshots.js`),__vite__mapDeps([151,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Jl=N(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nn)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-subnets.js`),__vite__mapDeps([152,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),Yl=N(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Qn)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-target-groups.js`),__vite__mapDeps([153,1,7,8,9,10,75,11,4,5,43,34,28,12,13,82,22,23,24,81,26])),`component`)}),Xl=N(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(An)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-volumes.js`),__vite__mapDeps([154,1,75,8,9,10,11,4,5,34,28,12,13,21,22,23,24,26,32,130])),`component`)}),Zl=N(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mn)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:P(()=>I(()=>import(`./describe-vpcs.js`),__vite__mapDeps([155,1,75,8,9,10,11,4,5,12,13,34,28,21,22,23,24,26,32,130])),`component`)}),Ql=N(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Kn)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:P(()=>I(()=>import(`./list-repositories.js`),__vite__mapDeps([156,1,75,8,9,10,11,4,5,43,12,13,34,28,49,37,50,51,157,22,23,24,158,53,54,26,56,57,58,33,35,36,38])),`component`)}),$l=N(`/_auth/ecs/(clusters)/list-clusters/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(qn),e.queryClient.ensureQueryData(Vn)])},head:()=>({meta:[{title:`Clusters | ECS | Mulga`}]}),component:P(()=>I(()=>import(`./list-clusters.js`),__vite__mapDeps([159,1,9,75,8,10,11,4,5,43,34,28,12,13,49,37,50,51,21,22,23,24,97,98,53,54,20,26,32,56,57,58,60,33,35,36,38,99,108,109,46,14,47,110,70,48,100])),`component`)}),eu=N(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Yn)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:P(()=>I(()=>import(`./list-clusters2.js`),__vite__mapDeps([160,1,75,8,9,10,11,4,5,34,28,12,13,161,22,23,24,103,26,130])),`component`)}),tu=N(`/_auth/iam/(groups)/list-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(tr)},head:()=>({meta:[{title:`Groups | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-groups.js`),__vite__mapDeps([162,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),nu=N(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(er)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([163,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),ru=N(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(nr)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-policies.js`),__vite__mapDeps([164,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),iu=N(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(rr)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-roles.js`),__vite__mapDeps([165,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),au=N(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData($n)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:P(()=>I(()=>import(`./list-users.js`),__vite__mapDeps([166,1,75,8,9,10,11,4,5,34,28,12,13,107,22,23,24,106,104,26,130])),`component`)}),ou=N(`/_auth/rds/(db-instances)/describe-db-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(cr)},head:()=>({meta:[{title:`Databases | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-instances.js`),__vite__mapDeps([167,1,75,8,9,10,11,4,5,43,34,28,12,13,120,23,24,121,53,54,122,22,26,32,60,168,49,37,50,51,56,57,58,33,35,36,38])),`component`)}),su=N(`/_auth/rds/(parameter-groups)/describe-db-parameter-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ar)},head:()=>({meta:[{title:`Parameter Groups | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-parameter-groups.js`),__vite__mapDeps([169,1,75,8,9,10,11,4,5,43,34,28,12,13,120,23,24,122,22,26,170,121,53,54,171,99,33,35,36,37,38])),`component`)}),cu=N(`/_auth/rds/(snapshots)/describe-db-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ir)},head:()=>({meta:[{title:`Snapshots | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-snapshots.js`),__vite__mapDeps([172,1,75,8,9,10,11,4,5,43,12,13,34,28,120,23,24,122,22,26,32,173,7,65,36,14,46,15,37,50,38,66,67,51,68,49,121,53,54,56,57,58,59,33,35,83,84,85,123,174,171,99])),`component`)}),lu=N(`/_auth/rds/(subnet-groups)/describe-db-subnet-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(or)},head:()=>({meta:[{title:`Subnet Groups | RDS | Mulga`}]}),component:P(()=>I(()=>import(`./describe-db-subnet-groups.js`),__vite__mapDeps([175,1,75,8,9,10,11,4,5,43,34,28,12,13,122,22,23,24,120,26,32,176,121,53,54,171,99,33,35,36,37,38])),`component`)}),Z=il.update({id:`/_auth`,getParentRoute:()=>rl}),uu=ur.update({id:`/login`,path:`/login`,getParentRoute:()=>rl}),du=al.update({id:`/`,path:`/`,getParentRoute:()=>Z}),fu=ol.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>Z}),pu=sl.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>Z}),mu=cl.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>Z}),hu=dr.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>Z}),gu=ll.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>Z}),_u=ul.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>Z}),vu=dl.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>Z}),yu=fl.update({id:`/ec2/(launch-templates)/create-launch-template`,path:`/ec2/create-launch-template`,getParentRoute:()=>Z}),bu=pl.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>Z}),xu=ml.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>Z}),Su=hl.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>Z}),Cu=gl.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>Z}),wu=_l.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>Z}),Tu=fr.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>Z}),Eu=vl.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>Z}),Du=yl.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>Z}),Ou=bl.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>Z}),ku=xl.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>Z}),Au=pr.update({id:`/ecs/(clusters)/create-service`,path:`/ecs/create-service`,getParentRoute:()=>Z}),ju=mr.update({id:`/ecs/(clusters)/register-task-definition`,path:`/ecs/register-task-definition`,getParentRoute:()=>Z}),Mu=hr.update({id:`/ecs/(clusters)/run-task`,path:`/ecs/run-task`,getParentRoute:()=>Z}),Nu=Sl.update({id:`/ecs/(clusters)/task-definitions`,path:`/ecs/task-definitions`,getParentRoute:()=>Z}),Pu=Cl.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>Z}),Fu=wl.update({id:`/iam/(groups)/create-group`,path:`/iam/create-group`,getParentRoute:()=>Z}),Iu=Tl.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>Z}),Lu=El.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>Z}),Ru=Dl.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>Z}),zu=Ol.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>Z}),Bu=kl.update({id:`/rds/(db-instances)/create-db-instance`,path:`/rds/create-db-instance`,getParentRoute:()=>Z}),Vu=Al.update({id:`/rds/(parameter-groups)/create-db-parameter-group`,path:`/rds/create-db-parameter-group`,getParentRoute:()=>Z}),Hu=jl.update({id:`/rds/(subnet-groups)/create-db-subnet-group`,path:`/rds/create-db-subnet-group`,getParentRoute:()=>Z}),Uu=Ml.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>Z}),Q=Nl.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>Z}),Wu=Pl.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>Z}),Gu=Fl.update({id:`/bedrock/(catalog)/list-model-catalog/`,path:`/bedrock/list-model-catalog/`,getParentRoute:()=>Z}),Ku=Il.update({id:`/bedrock/(guardrails)/list-guardrails/`,path:`/bedrock/list-guardrails/`,getParentRoute:()=>Z}),qu=gr.update({id:`/bedrock/(guardrails)/list-guardrails/$guardrailId`,path:`/bedrock/list-guardrails/$guardrailId`,getParentRoute:()=>Z}),Ju=Ll.update({id:`/bedrock/(knowledge-bases)/list-knowledge-bases/`,path:`/bedrock/list-knowledge-bases/`,getParentRoute:()=>Z}),Yu=_r.update({id:`/bedrock/(knowledge-bases)/list-knowledge-bases/$knowledgeBaseId`,path:`/bedrock/list-knowledge-bases/$knowledgeBaseId`,getParentRoute:()=>Z}),Xu=q.update({id:`/bedrock/(model-access)/list-model-access/`,path:`/bedrock/list-model-access/`,getParentRoute:()=>Z}),Zu=Rl.update({id:`/bedrock/(playground)/playground/`,path:`/bedrock/playground/`,getParentRoute:()=>Z}),Qu=J.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>Z}),$u=vr.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>Z}),ed=Y.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>Z}),td=yr.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>Z}),nd=X.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>Z}),rd=br.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>Z}),id=zl.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>Z}),ad=xr.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>Z}),od=Bl.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>Z}),sd=Sr.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>Z}),cd=Vl.update({id:`/ec2/(launch-templates)/describe-launch-templates/`,path:`/ec2/describe-launch-templates/`,getParentRoute:()=>Z}),ld=Cr.update({id:`/ec2/(launch-templates)/describe-launch-templates/$id`,path:`/ec2/describe-launch-templates/$id`,getParentRoute:()=>Z}),ud=Hl.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>Z}),dd=wr.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>Z}),fd=Ul.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>Z}),pd=Tr.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>Z}),md=Wl.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>Z}),hd=Er.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>Z}),gd=Gl.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>Z}),_d=Dr.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>Z}),vd=Kl.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>Z}),$=ut.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>Z}),yd=ql.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>Z}),bd=ot.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>Z}),xd=Jl.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>Z}),Sd=Or.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>Z}),Cd=Yl.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>Z}),wd=kr.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>Z}),Td=Xl.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>Z}),Ed=Ar.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>Z}),Dd=jr.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>Z}),Od=Zl.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>Z}),kd=Mr.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>Z}),Ad=Ql.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>Z}),jd=Nr.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>Z}),Md=$l.update({id:`/ecs/(clusters)/list-clusters/`,path:`/ecs/list-clusters/`,getParentRoute:()=>Z}),Nd=Pr.update({id:`/ecs/(clusters)/list-clusters/$clusterName`,path:`/ecs/list-clusters/$clusterName`,getParentRoute:()=>Z}),Pd=eu.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>Z}),Fd=ct.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>Z}),Id=tu.update({id:`/iam/(groups)/list-groups/`,path:`/iam/list-groups/`,getParentRoute:()=>Z}),Ld=Fr.update({id:`/iam/(groups)/list-groups/$groupName`,path:`/iam/list-groups/$groupName`,getParentRoute:()=>Z}),Rd=nu.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>Z}),zd=Ir.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>Z}),Bd=ru.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>Z}),Vd=Lr.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>Z}),Hd=iu.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>Z}),Ud=Rr.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>Z}),Wd=au.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>Z}),Gd=zr.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>Z}),Kd=ou.update({id:`/rds/(db-instances)/describe-db-instances/`,path:`/rds/describe-db-instances/`,getParentRoute:()=>Z}),qd=Br.update({id:`/rds/(db-instances)/describe-db-instances/$id`,path:`/rds/describe-db-instances/$id`,getParentRoute:()=>Z}),Jd=su.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/`,path:`/rds/describe-db-parameter-groups/`,getParentRoute:()=>Z}),Yd=Vr.update({id:`/rds/(parameter-groups)/describe-db-parameter-groups/$name`,path:`/rds/describe-db-parameter-groups/$name`,getParentRoute:()=>Z}),Xd=cu.update({id:`/rds/(snapshots)/describe-db-snapshots/`,path:`/rds/describe-db-snapshots/`,getParentRoute:()=>Z}),Zd=Hr.update({id:`/rds/(snapshots)/describe-db-snapshots/$id`,path:`/rds/describe-db-snapshots/$id`,getParentRoute:()=>Z}),Qd=Ur.update({id:`/rds/(snapshots)/restore-db-instance-from-db-snapshot/$id`,path:`/rds/restore-db-instance-from-db-snapshot/$id`,getParentRoute:()=>Z}),$d=lu.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/`,path:`/rds/describe-db-subnet-groups/`,getParentRoute:()=>Z}),ef=Wr.update({id:`/rds/(subnet-groups)/describe-db-subnet-groups/$name`,path:`/rds/describe-db-subnet-groups/$name`,getParentRoute:()=>Z}),tf=Gr.update({id:`/`,path:`/`,getParentRoute:()=>Wu}),nf=Kr.update({id:`/$`,path:`/$`,getParentRoute:()=>Wu}),rf=qr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/services/$serviceName`,path:`/ecs/list-clusters/$clusterName/services/$serviceName`,getParentRoute:()=>Z}),af=Jr.update({id:`/ecs/(clusters)/list-clusters/$clusterName_/tasks/$taskId`,path:`/ecs/list-clusters/$clusterName/tasks/$taskId`,getParentRoute:()=>Z}),of={AuthS3LsBucketSplatRoute:nf,AuthS3LsBucketIndexRoute:tf},sf={AuthNodesRoute:fu,AuthIndexRoute:du,AuthS3ServiceMetricsRoute:pu,AuthS3LsBucketRouteRoute:Wu._addFileChildren(of),AuthEc2elasticIpsAllocateAddressRoute:mu,AuthEc2instancesRunInstancesRoute:hu,AuthEc2internetGatewaysCreateInternetGatewayRoute:gu,AuthEc2keyCreateKeyPairRoute:_u,AuthEc2keyImportKeyPairRoute:vu,AuthEc2launchTemplatesCreateLaunchTemplateRoute:yu,AuthEc2loadBalancersCreateLoadBalancerRoute:bu,AuthEc2natGatewaysCreateNatGatewayRoute:xu,AuthEc2placementGroupsCreatePlacementGroupRoute:Su,AuthEc2routeTablesCreateRouteTableRoute:Cu,AuthEc2securityGroupsCreateSecurityGroupRoute:wu,AuthEc2snapshotsCreateSnapshotRoute:Tu,AuthEc2subnetCreateSubnetRoute:Eu,AuthEc2targetGroupsCreateTargetGroupRoute:Du,AuthEc2volumesCreateVolumeRoute:Ou,AuthEc2vpcCreateVpcRoute:ku,AuthEcsclustersCreateServiceRoute:Au,AuthEcsclustersRegisterTaskDefinitionRoute:ju,AuthEcsclustersRunTaskRoute:Mu,AuthEcsclustersTaskDefinitionsRoute:Nu,AuthEksclustersCreateClusterRoute:Pu,AuthIamgroupsCreateGroupRoute:Fu,AuthIaminstanceProfilesCreateInstanceProfileRoute:Iu,AuthIampoliciesCreatePolicyRoute:Lu,AuthIamrolesCreateRoleRoute:Ru,AuthIamusersCreateUserRoute:zu,AuthRdsdbInstancesCreateDbInstanceRoute:Bu,AuthRdsparameterGroupsCreateDbParameterGroupRoute:Vu,AuthRdssubnetGroupsCreateDbSubnetGroupRoute:Hu,AuthS3bucketsCreateBucketRoute:Uu,AuthS3LsIndexRoute:Q,AuthBedrockguardrailsListGuardrailsGuardrailIdRoute:qu,AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRoute:Yu,AuthEc2elasticIpsDescribeAddressesIdRoute:$u,AuthEc2imagesDescribeImagesIdRoute:td,AuthEc2instancesDescribeInstancesIdRoute:rd,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:ad,AuthEc2keyDescribeKeyPairsIdRoute:sd,AuthEc2launchTemplatesDescribeLaunchTemplatesIdRoute:ld,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:dd,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:pd,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:hd,AuthEc2routeTablesDescribeRouteTablesIdRoute:_d,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:$,AuthEc2snapshotsDescribeSnapshotsIdRoute:bd,AuthEc2subnetDescribeSubnetsIdRoute:Sd,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:wd,AuthEc2volumesDescribeVolumesIdRoute:Ed,AuthEc2volumesModifyVolumeIdRoute:Dd,AuthEc2vpcDescribeVpcsIdRoute:kd,AuthEcrrepositoriesListRepositoriesIdRoute:jd,AuthEcsclustersListClustersClusterNameRoute:Nd,AuthEksclustersListClustersClusterNameRoute:Fd,AuthIamgroupsListGroupsGroupNameRoute:Ld,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:zd,AuthIampoliciesListPoliciesPolicyArnRoute:Vd,AuthIamrolesListRolesRoleNameRoute:Ud,AuthIamusersListUsersUserNameRoute:Gd,AuthRdsdbInstancesDescribeDbInstancesIdRoute:qd,AuthRdsparameterGroupsDescribeDbParameterGroupsNameRoute:Yd,AuthRdssnapshotsDescribeDbSnapshotsIdRoute:Zd,AuthRdssnapshotsRestoreDbInstanceFromDbSnapshotIdRoute:Qd,AuthRdssubnetGroupsDescribeDbSubnetGroupsNameRoute:ef,AuthBedrockcatalogListModelCatalogIndexRoute:Gu,AuthBedrockguardrailsListGuardrailsIndexRoute:Ku,AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute:Ju,AuthBedrockmodelAccessListModelAccessIndexRoute:Xu,AuthBedrockplaygroundPlaygroundIndexRoute:Zu,AuthEc2elasticIpsDescribeAddressesIndexRoute:Qu,AuthEc2imagesDescribeImagesIndexRoute:ed,AuthEc2instancesDescribeInstancesIndexRoute:nd,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:id,AuthEc2keyDescribeKeyPairsIndexRoute:od,AuthEc2launchTemplatesDescribeLaunchTemplatesIndexRoute:cd,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:ud,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:fd,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:md,AuthEc2routeTablesDescribeRouteTablesIndexRoute:gd,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:vd,AuthEc2snapshotsDescribeSnapshotsIndexRoute:yd,AuthEc2subnetDescribeSubnetsIndexRoute:xd,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:Cd,AuthEc2volumesDescribeVolumesIndexRoute:Td,AuthEc2vpcDescribeVpcsIndexRoute:Od,AuthEcrrepositoriesListRepositoriesIndexRoute:Ad,AuthEcsclustersListClustersIndexRoute:Md,AuthEksclustersListClustersIndexRoute:Pd,AuthIamgroupsListGroupsIndexRoute:Id,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:Rd,AuthIampoliciesListPoliciesIndexRoute:Bd,AuthIamrolesListRolesIndexRoute:Hd,AuthIamusersListUsersIndexRoute:Wd,AuthRdsdbInstancesDescribeDbInstancesIndexRoute:Kd,AuthRdsparameterGroupsDescribeDbParameterGroupsIndexRoute:Jd,AuthRdssnapshotsDescribeDbSnapshotsIndexRoute:Xd,AuthRdssubnetGroupsDescribeDbSubnetGroupsIndexRoute:$d,AuthEcsclustersListClustersClusterNameServicesServiceNameRoute:rf,AuthEcsclustersListClustersClusterNameTasksTaskIdRoute:af},cf={AuthRouteRoute:Z._addFileChildren(sf),LoginRoute:uu},lf=rl._addFileChildren(cf)._addFileTypes(),uf=Xc(),df=fo({routeTree:lf,context:{queryClient:uf},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0});async function ff(e){try{await Ye()}catch(t){e.render((0,V.jsxs)(`div`,{style:{fontFamily:`sans-serif`,margin:`4rem auto`,maxWidth:`40rem`},children:[(0,V.jsx)(`h1`,{children:`Console unavailable`}),(0,V.jsx)(`p`,{children:`This cluster did not report its region, so the console cannot sign requests. Check that the serving node has a region set in its configuration.`}),(0,V.jsx)(`pre`,{children:t instanceof Error?t.message:String(t)})]}));return}e.render((0,V.jsx)(B.StrictMode,{children:(0,V.jsx)(ko,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,V.jsx)(_,{client:uf,children:(0,V.jsx)(Tn,{children:(0,V.jsx)(jc,{children:(0,V.jsx)(ho,{router:df})})})})})}))}var pf=document.querySelector(`#app`);pf&&!pf.innerHTML&&await ff(Eo.createRoot(pf)); \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-model-access.js b/spinifex/services/spinifexui/frontend/dist/assets/list-model-access.js new file mode 100644 index 000000000..1f9608c9f --- /dev/null +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-model-access.js @@ -0,0 +1 @@ +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{n as i}from"./QueryClientProvider.js";import{t as a}from"./useMutation.js";import{t as o}from"./useQuery.js";import{n as s}from"./redirect.js";import{c,i as l,n as u,s as d,t as f}from"./select.js";import{t as p}from"./button.js";import{t as m}from"./input.js";import{n as h}from"./admin-context.js";import{t as g}from"./page-heading.js";import{t as _}from"./badge.js";import{r as v,t as y}from"./card.js";import{c as b,i as x,n as S,s as C,t as w}from"./admin.js";import{a as T,t as E}from"./field.js";var D=r(),O=t(n(),1),k=e(),A=`000000000000`,j=/^[0-9]{12}$/;function M(e){return`${e.accountName} (${e.accountId}) — ${e.status}`}function N(e){let t=(0,D.c)(30),{entry:n,accountId:r,granted:o}=e,s=i(),c;t[0]===r?c=t[1]:(c=S(r),t[0]=r,t[1]=c);let l=c.queryKey,u;t[2]!==l||t[3]!==s?(u={mutationFn:C,onSuccess:()=>{s.invalidateQueries({queryKey:l})}},t[2]=l,t[3]=s,t[4]=u):u=t[4];let d=a(u),f;t[5]!==l||t[6]!==s?(f={mutationFn:b,onSuccess:()=>{s.invalidateQueries({queryKey:l})}},t[5]=l,t[6]=s,t[7]=f):f=t[7];let m=a(f),h=d.isPending||m.isPending,g;t[8]===n.modelName?g=t[9]:(g=(0,k.jsx)(`div`,{className:`font-medium`,children:n.modelName}),t[8]=n.modelName,t[9]=g);let v;t[10]===n.modelId?v=t[11]:(v=(0,k.jsx)(`div`,{className:`font-mono text-muted-foreground`,children:n.modelId}),t[10]=n.modelId,t[11]=v);let y;t[12]!==g||t[13]!==v?(y=(0,k.jsxs)(`td`,{className:`py-1.5 pr-4`,children:[g,v]}),t[12]=g,t[13]=v,t[14]=y):y=t[14];let x=o?`default`:`secondary`,w=o?`Granted`:`Ungranted`,T;t[15]!==x||t[16]!==w?(T=(0,k.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,k.jsx)(_,{className:`text-[0.625rem]`,variant:x,children:w})}),t[15]=x,t[16]=w,t[17]=T):T=t[17];let E;t[18]!==r||t[19]!==n.modelId||t[20]!==d||t[21]!==o||t[22]!==h||t[23]!==m?(E=(0,k.jsx)(`td`,{className:`py-1.5`,children:o?(0,k.jsx)(p,{disabled:h,onClick:()=>{m.mutate({accountId:r,modelId:n.modelId})},size:`sm`,variant:`destructive`,children:`Revoke`}):(0,k.jsx)(p,{disabled:h,onClick:()=>{d.mutate({accountId:r,modelId:n.modelId})},size:`sm`,variant:`outline`,children:`Grant`})}),t[18]=r,t[19]=n.modelId,t[20]=d,t[21]=o,t[22]=h,t[23]=m,t[24]=E):E=t[24];let O;return t[25]!==n.modelId||t[26]!==E||t[27]!==y||t[28]!==T?(O=(0,k.jsxs)(`tr`,{className:`border-b last:border-0`,children:[y,T,E]},n.modelId),t[25]=n.modelId,t[26]=E,t[27]=y,t[28]=T,t[29]=O):O=t[29],O}function P(e){let t=(0,D.c)(10),{entries:n,accountId:r,grantedModelIds:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,k.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Model`}),(0,k.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Access`}),(0,k.jsx)(`th`,{className:`pb-1 font-medium`,children:`Action`})]})}),t[0]=a):a=t[0];let o;if(t[1]!==r||t[2]!==n||t[3]!==i){let e;t[5]!==r||t[6]!==i?(e=e=>(0,k.jsx)(N,{accountId:r,entry:e,granted:i.has(e.modelId)},e.modelId),t[5]=r,t[6]=i,t[7]=e):e=t[7],o=n.map(e),t[1]=r,t[2]=n,t[3]=i,t[4]=o}else o=t[4];let s;return t[8]===o?s=t[9]:(s=(0,k.jsx)(`div`,{className:`overflow-x-auto`,children:(0,k.jsxs)(`table`,{className:`w-full text-xs`,children:[a,(0,k.jsx)(`tbody`,{children:o})]})}),t[8]=o,t[9]=s),s}function F(e){let t=(0,D.c)(29),{accounts:n,accountId:r,onAccountIdChange:i}=e,a,o,s,l,p,m,h,g;if(t[0]!==r||t[1]!==n||t[2]!==i){let e=n.toSorted(L);s=E,t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,k.jsx)(T,{children:(0,k.jsx)(`label`,{htmlFor:`model-access-account`,children:`Account`})}),t[11]=g):g=t[11],o=f,t[12]===i?p=t[13]:(p=e=>{i(e??``)},t[12]=i,t[13]=p),m=r,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,k.jsx)(d,{className:`w-full`,id:`model-access-account`,children:(0,k.jsx)(c,{placeholder:`Select an account`})}),t[14]=h):h=t[14],a=u,l=e.map(I),t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=l,t[7]=p,t[8]=m,t[9]=h,t[10]=g}else a=t[3],o=t[4],s=t[5],l=t[6],p=t[7],m=t[8],h=t[9],g=t[10];let _;t[15]!==a||t[16]!==l?(_=(0,k.jsx)(a,{children:l}),t[15]=a,t[16]=l,t[17]=_):_=t[17];let v;t[18]!==o||t[19]!==p||t[20]!==m||t[21]!==h||t[22]!==_?(v=(0,k.jsxs)(o,{onValueChange:p,value:m,children:[h,_]}),t[18]=o,t[19]=p,t[20]=m,t[21]=h,t[22]=_,t[23]=v):v=t[23];let y;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,k.jsx)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:`Select an account.`}),t[24]=y):y=t[24];let b;return t[25]!==s||t[26]!==g||t[27]!==v?(b=(0,k.jsxs)(s,{children:[g,v,y]}),t[25]=s,t[26]=g,t[27]=v,t[28]=b):b=t[28],b}function I(e){return(0,k.jsx)(l,{value:e.accountId,children:M(e)},e.accountId)}function L(e,t){return e.accountName.localeCompare(t.accountName)}function R(e){let t=(0,D.c)(14),{accountId:n,onAccountIdChange:r}=e,i;t[0]===n?i=t[1]:(i=n!==``&&!j.test(n),t[0]=n,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,k.jsx)(T,{children:(0,k.jsx)(`label`,{htmlFor:`model-access-account`,children:`Account ID`})}),t[2]=o):o=t[2];let s;t[3]===r?s=t[4]:(s=e=>{r(e.target.value)},t[3]=r,t[4]=s);let c;t[5]!==n||t[6]!==a||t[7]!==s?(c=(0,k.jsx)(m,{"aria-invalid":a,id:`model-access-account`,onChange:s,placeholder:`123456789012`,value:n}),t[5]=n,t[6]=a,t[7]=s,t[8]=c):c=t[8];let l=a?`Enter a 12-digit numeric account ID.`:`Enter a 12-digit account ID — account list unavailable.`,u;t[9]===l?u=t[10]:(u=(0,k.jsx)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:l}),t[9]=l,t[10]=u);let d;return t[11]!==c||t[12]!==u?(d=(0,k.jsxs)(E,{children:[o,c,u]}),t[11]=c,t[12]=u,t[13]=d):d=t[13],d}function z(e){let t=(0,D.c)(6),{accountId:n,entries:r,grantedModelIds:i}=e;if(n===``){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Enter an account ID to view and manage its model access.`}),t[0]=e):e=t[0],e}if(r.length===0){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,k.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No models found.`}),t[1]=e):e=t[1],e}let a;return t[2]!==n||t[3]!==r||t[4]!==i?(a=(0,k.jsx)(P,{accountId:n,entries:r,grantedModelIds:i}),t[2]=n,t[3]=r,t[4]=i,t[5]=a):a=t[5],a}function B(){let e=(0,D.c)(24),[t,n]=(0,O.useState)(``),r=o(w),i;e[0]===r.data?.accounts?i=e[1]:(i=r.data?.accounts??[],e[0]=r.data?.accounts,e[1]=i);let a;e[2]===i?a=e[3]:(a=i.filter(H),e[2]=i,e[3]=a);let s=a,c=r.isSuccess&&s.length>0,l=(c?t!==``:j.test(t))?t:``,{data:u}=o(x),d;e[4]===l?d=e[5]:(d=S(l),e[4]=l,e[5]=d);let{data:f}=o(d),p;e[6]===u?.entries?p=e[7]:(p=u?.entries??[],e[6]=u?.entries,e[7]=p);let m;e[8]===p?m=e[9]:(m=p.toSorted(V),e[8]=p,e[9]=m);let h=m,_=f?.ModelIds,b;e[10]===_?b=e[11]:(b=new Set(_),e[10]=_,e[11]=b);let C=b,T;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,k.jsx)(g,{title:`Model Access`}),e[12]=T):T=e[12];let E;e[13]!==t||e[14]!==s||e[15]!==c?(E=(0,k.jsx)(`div`,{className:`mb-3 max-w-sm`,children:c?(0,k.jsx)(F,{accountId:t,accounts:s,onAccountIdChange:n}):(0,k.jsx)(R,{accountId:t,onAccountIdChange:n})}),e[13]=t,e[14]=s,e[15]=c,e[16]=E):E=e[16];let A;e[17]!==l||e[18]!==h||e[19]!==C?(A=(0,k.jsx)(z,{accountId:l,entries:h,grantedModelIds:C}),e[17]=l,e[18]=h,e[19]=C,e[20]=A):A=e[20];let M;return e[21]!==E||e[22]!==A?(M=(0,k.jsxs)(k.Fragment,{children:[T,(0,k.jsx)(y,{children:(0,k.jsxs)(v,{children:[E,A]})})]}),e[21]=E,e[22]=A,e[23]=M):M=e[23],M}function V(e,t){return e.modelName.localeCompare(t.modelName)}function H(e){return e.accountId!==A}function U(){let e=(0,D.c)(1),{isAdmin:t}=h();if(!t)throw s({to:`/`});let n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,k.jsx)(B,{}),e[0]=n):n=e[0],n}export{U as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-model-catalog.js b/spinifex/services/spinifexui/frontend/dist/assets/list-model-catalog.js index b10497063..097323655 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-model-catalog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-model-catalog.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{un as i}from"./cluster-config.js";import{n as a}from"./admin-context.js";import{t as o}from"./page-heading.js";import{t as s}from"./badge.js";import{r as c,t as l}from"./card.js";import{n as u}from"./admin.js";var d=t(),f=e();function p(e){return e.instanceType!==``}function m(e){return[...new Set([...e.inputModalities,...e.outputModalities])].map(e=>(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`outline`,children:e},e))}function h(e){return`$${(e/1e6).toFixed(2)}`}function g(e){let t=(0,d.c)(9),{entry:n}=e;if(p(n)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`secondary`,children:`Included`}),t[0]=e):e=t[0],e}if(!n.priceKnown){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`Price unknown`}),t[1]=e):e=t[1],e}let r;t[2]===n.inputPriceMicroUsdPerMillion?r=t[3]:(r=h(n.inputPriceMicroUsdPerMillion),t[2]=n.inputPriceMicroUsdPerMillion,t[3]=r);let i;t[4]===n.outputPriceMicroUsdPerMillion?i=t[5]:(i=h(n.outputPriceMicroUsdPerMillion),t[4]=n.outputPriceMicroUsdPerMillion,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,f.jsxs)(`span`,{className:`font-mono`,children:[r,` in /`,` `,i,` out per MTok`]}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var _={available:`Available`,ungranted:`Ungranted`,"no-weights-staged":`No weights staged`,"no-credential":`No credential`},v={available:void 0,ungranted:`Grant access to enable this model`,"no-weights-staged":`Stage weights to enable this model`,"no-credential":`Add a provider credential to enable this model`};function y(e){return e===`available`?`default`:e===`ungranted`?`secondary`:`destructive`}function b(e){let t=(0,d.c)(10),{availability:n}=e,r=v[n],i;t[0]===n?i=t[1]:(i=y(n),t[0]=n,t[1]=i);let a=_[n],o;t[2]!==i||t[3]!==a?(o=(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4];let c;t[5]===r?c=t[6]:(c=r&&(0,f.jsx)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:r}),t[5]=r,t[6]=c);let l;return t[7]!==o||t[8]!==c?(l=(0,f.jsxs)(`div`,{children:[o,c]}),t[7]=o,t[8]=c,t[9]=l):l=t[9],l}function x(e){let t=(0,d.c)(5),{entries:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,f.jsx)(`thead`,{children:(0,f.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Model`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Modality`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Family`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Streaming`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Price / MTok`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`VRAM / Instance`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Co-serve group`}),(0,f.jsx)(`th`,{className:`pb-1 font-medium`,children:`Availability`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(S),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,f.jsx)(`div`,{className:`overflow-x-auto`,children:(0,f.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,f.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function S(e){return(0,f.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,f.jsxs)(`td`,{className:`py-1.5 pr-4`,children:[(0,f.jsx)(`div`,{className:`font-medium`,children:e.modelName}),(0,f.jsx)(`div`,{className:`font-mono text-muted-foreground`,children:e.modelId})]}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,f.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:m(e)})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:e.family}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.responseStreamingSupported?(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`outline`,children:`Streaming`}):(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,f.jsx)(g,{entry:e})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:p(e)?(0,f.jsxs)(`span`,{className:`font-mono`,children:[i(e.minVramMib),` · `,e.instanceType]}):(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:e.coServeGroup||`-`}),(0,f.jsx)(`td`,{className:`py-1.5`,children:(0,f.jsx)(b,{availability:e.availability})})]},e.modelId)}function C(){let e=(0,d.c)(7),{data:t}=n(u),r;e[0]===t?.entries?r=e[1]:(r=t?.entries??[],e[0]=t?.entries,e[1]=r);let i;e[2]===r?i=e[3]:(i=r.toSorted(w),e[2]=r,e[3]=i);let a=i,s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,f.jsx)(o,{title:`Model Catalog`}),e[4]=s):s=e[4];let p;return e[5]===a?p=e[6]:(p=(0,f.jsxs)(f.Fragment,{children:[s,(0,f.jsx)(l,{children:(0,f.jsx)(c,{children:a.length>0?(0,f.jsx)(x,{entries:a}):(0,f.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No models found.`})})})]}),e[5]=a,e[6]=p),p}function w(e,t){return e.modelName.localeCompare(t.modelName)}function T(){let e=(0,d.c)(1),{isAdmin:t}=a();if(!t)throw r({to:`/`});let n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,f.jsx)(C,{}),e[0]=n):n=e[0],n}export{T 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{n as r}from"./redirect.js";import{un as i}from"./cluster-config.js";import{n as a}from"./admin-context.js";import{t as o}from"./page-heading.js";import{t as s}from"./badge.js";import{r as c,t as l}from"./card.js";import{i as u}from"./admin.js";var d=t(),f=e();function p(e){return e.instanceType!==``}function m(e){return[...new Set([...e.inputModalities,...e.outputModalities])].map(e=>(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`outline`,children:e},e))}function h(e){return`$${(e/1e6).toFixed(2)}`}function g(e){let t=(0,d.c)(9),{entry:n}=e;if(p(n)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`secondary`,children:`Included`}),t[0]=e):e=t[0],e}if(!n.priceKnown){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`Price unknown`}),t[1]=e):e=t[1],e}let r;t[2]===n.inputPriceMicroUsdPerMillion?r=t[3]:(r=h(n.inputPriceMicroUsdPerMillion),t[2]=n.inputPriceMicroUsdPerMillion,t[3]=r);let i;t[4]===n.outputPriceMicroUsdPerMillion?i=t[5]:(i=h(n.outputPriceMicroUsdPerMillion),t[4]=n.outputPriceMicroUsdPerMillion,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,f.jsxs)(`span`,{className:`font-mono`,children:[r,` in /`,` `,i,` out per MTok`]}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var _={available:`Available`,ungranted:`Ungranted`,"no-weights-staged":`No weights staged`,"no-credential":`No credential`},v={available:void 0,ungranted:`Grant access to enable this model`,"no-weights-staged":`Stage weights to enable this model`,"no-credential":`Add a provider credential to enable this model`};function y(e){return e===`available`?`default`:e===`ungranted`?`secondary`:`destructive`}function b(e){let t=(0,d.c)(10),{availability:n}=e,r=v[n],i;t[0]===n?i=t[1]:(i=y(n),t[0]=n,t[1]=i);let a=_[n],o;t[2]!==i||t[3]!==a?(o=(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4];let c;t[5]===r?c=t[6]:(c=r&&(0,f.jsx)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:r}),t[5]=r,t[6]=c);let l;return t[7]!==o||t[8]!==c?(l=(0,f.jsxs)(`div`,{children:[o,c]}),t[7]=o,t[8]=c,t[9]=l):l=t[9],l}function x(e){let t=(0,d.c)(5),{entries:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,f.jsx)(`thead`,{children:(0,f.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Model`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Modality`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Family`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Streaming`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Price / MTok`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`VRAM / Instance`}),(0,f.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Co-serve group`}),(0,f.jsx)(`th`,{className:`pb-1 font-medium`,children:`Availability`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(S),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,f.jsx)(`div`,{className:`overflow-x-auto`,children:(0,f.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,f.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function S(e){return(0,f.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,f.jsxs)(`td`,{className:`py-1.5 pr-4`,children:[(0,f.jsx)(`div`,{className:`font-medium`,children:e.modelName}),(0,f.jsx)(`div`,{className:`font-mono text-muted-foreground`,children:e.modelId})]}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,f.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:m(e)})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:e.family}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.responseStreamingSupported?(0,f.jsx)(s,{className:`text-[0.625rem]`,variant:`outline`,children:`Streaming`}):(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,f.jsx)(g,{entry:e})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4`,children:p(e)?(0,f.jsxs)(`span`,{className:`font-mono`,children:[i(e.minVramMib),` · `,e.instanceType]}):(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,f.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:e.coServeGroup||`-`}),(0,f.jsx)(`td`,{className:`py-1.5`,children:(0,f.jsx)(b,{availability:e.availability})})]},e.modelId)}function C(){let e=(0,d.c)(7),{data:t}=n(u),r;e[0]===t?.entries?r=e[1]:(r=t?.entries??[],e[0]=t?.entries,e[1]=r);let i;e[2]===r?i=e[3]:(i=r.toSorted(w),e[2]=r,e[3]=i);let a=i,s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,f.jsx)(o,{title:`Model Catalog`}),e[4]=s):s=e[4];let p;return e[5]===a?p=e[6]:(p=(0,f.jsxs)(f.Fragment,{children:[s,(0,f.jsx)(l,{children:(0,f.jsx)(c,{children:a.length>0?(0,f.jsx)(x,{entries:a}):(0,f.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No models found.`})})})]}),e[5]=a,e[6]=p),p}function w(e,t){return e.modelName.localeCompare(t.modelName)}function T(){let e=(0,d.c)(1),{isAdmin:t}=a();if(!t)throw r({to:`/`});let n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,f.jsx)(C,{}),e[0]=n):n=e[0],n}export{T as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js b/spinifex/services/spinifexui/frontend/dist/assets/nodes.js index f0272609b..b1dc3d4b5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/nodes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/nodes.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"./link.js";import{n as o}from"./redirect.js";import{un as s}from"./cluster-config.js";import{t as c}from"./chevron-down.js";import{t as l}from"./chevron-right.js";import{n as u}from"./admin-context.js";import{t as d}from"./page-heading.js";import{t as f}from"./badge.js";import{o as p,r as m,s as h,t as g}from"./card.js";import{i as _,t as v}from"./admin.js";var y=r(),b=t(n(),1),x=e();function S(e){if(e.mig_enabled){let t=e.slices??[];return`${t.filter(e=>e.instance_id).length} / ${t.length}`}return`${+!!e.instance_id} / 1`}function C(e){let t=(0,y.c)(20),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,b.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},t[1]=o):o=t[1];let u=o,d,p,m,h;if(t[2]!==i||t[3]!==n){let e=n.flatMap(T);h=`overflow-x-auto`,p=`w-full text-xs`,t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`w-6 pb-1`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Expand`})}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Model`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`VRAM`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Mode`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Profile`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Used / Total`})]})}),t[8]=m):m=t[8];let r;t[9]===i?r=t[10]:(r=e=>{let{node:t,gpu:n}=e,r=`${t}:${n.pci_address}`,a=n.slices??[],o=n.mig_enabled&&a.length>0,d=o&&i.has(r);return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5`,children:o&&(0,x.jsx)(`button`,{"aria-expanded":d,"aria-label":d?`Collapse slices`:`Expand slices`,onClick:()=>{u(r)},type:`button`,children:d?(0,x.jsx)(c,{className:`size-3.5`}):(0,x.jsx)(l,{className:`size-3.5`})})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:t}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:n.model}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:s(n.vram_mib)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{className:`text-[0.625rem]`,variant:`secondary`,children:n.mig_enabled?`MIG`:`Passthrough`})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:n.mig_profile??`—`}),(0,x.jsx)(`td`,{className:`py-1.5 font-mono`,children:S(n)})]}),d&&a.map(w)]},r)},t[9]=i,t[10]=r),d=e.map(r),t[2]=i,t[3]=n,t[4]=d,t[5]=p,t[6]=m,t[7]=h}else d=t[4],p=t[5],m=t[6],h=t[7];let g;t[11]===d?g=t[12]:(g=(0,x.jsx)(`tbody`,{children:d}),t[11]=d,t[12]=g);let _;t[13]!==p||t[14]!==m||t[15]!==g?(_=(0,x.jsxs)(`table`,{className:p,children:[m,g]}),t[13]=p,t[14]=m,t[15]=g,t[16]=_):_=t[16];let v;return t[17]!==h||t[18]!==_?(v=(0,x.jsx)(`div`,{className:h,children:_}),t[17]=h,t[18]=_,t[19]=v):v=t[19],v}function w(e){return(0,x.jsxs)(`tr`,{className:`border-b text-muted-foreground last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Slice`})}),(0,x.jsxs)(`td`,{className:`py-1 pr-4 font-mono`,colSpan:2,children:[`↳ slice `,e.gi_id]}),(0,x.jsx)(`td`,{className:`py-1 pr-4`,children:s(e.vram_mib)}),(0,x.jsx)(`td`,{className:`py-1 pr-4`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Mode`})}),(0,x.jsx)(`td`,{className:`py-1 pr-4 font-mono`,children:e.profile}),(0,x.jsx)(`td`,{className:`py-1 font-mono`,children:e.instance_id?(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.instance_id},to:`/ec2/describe-instances/$id`,children:e.instance_id}):(0,x.jsx)(`span`,{className:`text-green-600`,children:`free`})})]},e.gi_id)}function T(e){return(e.gpus??[]).map(t=>({node:e.node,gpu:t}))}function E(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 D(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function O(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function k(){let e=(0,y.c)(30),{isAdmin:t}=u(),n;e[0]===t?n=e[1]:(n={...v,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=n);let{data:r}=i(n),a;e[2]===t?a=e[3]:(a={..._,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=a);let{data:s}=i(a);if(!t)throw o({to:`/`});let c;e[4]===r?.nodes?c=e[5]:(c=r?.nodes??[],e[4]=r?.nodes,e[5]=c);let l=c,f;e[6]===s?.vms?f=e[7]:(f=s?.vms??[],e[6]=s?.vms,e[7]=f);let b;e[8]===f?b=e[9]:(b=f.filter(N),e[8]=f,e[9]=b);let S=b,w;if(e[10]!==l){let t=new Map;for(let e of l)for(let n of e.instance_types??[]){let e=t.get(n.name);e?e.available+=n.available:t.set(n.name,{vcpu:n.vcpu,memory_gb:n.memory_gb,available:n.available})}w=[...t.entries()].map(M).toSorted(j),e[10]=l,e[11]=w}else w=e[11];let T=w,E;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,x.jsx)(d,{title:`Nodes`}),e[12]=E):E=e[12];let D;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Cluster Nodes`})}),e[13]=D):D=e[13];let O;e[14]===l?O=e[15]:(O=(0,x.jsxs)(g,{children:[D,(0,x.jsx)(m,{children:l.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,x.jsx)(P,{nodes:l})})]}),e[14]=l,e[15]=O);let k;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[16]=k):k=e[16];let F;e[17]===S?F=e[18]:(F=(0,x.jsxs)(g,{children:[k,(0,x.jsx)(m,{children:S.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,x.jsx)(L,{vms:S})})]}),e[17]=S,e[18]=F);let I;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Resource Usage`})}),e[19]=I):I=e[19];let R;e[20]!==T||e[21]!==l?(R=(0,x.jsxs)(g,{children:[I,(0,x.jsx)(m,{className:`space-y-4`,children:l.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(z,{nodes:l}),T.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,x.jsx)(V,{instanceTypes:T})]})]})})]}),e[20]=T,e[21]=l,e[22]=R):R=e[22];let B;e[23]===l?B=e[24]:(B=l.some(A)&&(0,x.jsxs)(g,{children:[(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`GPU Inventory`})}),(0,x.jsx)(m,{children:(0,x.jsx)(C,{nodes:l})})]}),e[23]=l,e[24]=B);let H;return e[25]!==F||e[26]!==R||e[27]!==B||e[28]!==O?(H=(0,x.jsxs)(x.Fragment,{children:[E,(0,x.jsxs)(`div`,{className:`space-y-6`,children:[O,F,R,B]})]}),e[25]=F,e[26]=R,e[27]=B,e[28]=O,e[29]=H):H=e[29],H}function A(e){return(e.gpus?.length??0)>0}function j(e,t){return e.name.localeCompare(t.name)}function M(e){let[t,n]=e;return{name:t,...n}}function N(e){return!e.managed_by}function P(e){let t=(0,y.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,x.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(F),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function F(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:E(e.uptime)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,x.jsx)(`td`,{className:`py-1.5`,children:(0,x.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function I(e){return e?e.profile?`${e.profile} ${s(e.vram_mib)}`:`${e.model} ${s(e.vram_mib)}`:`-`}function L(e){let t=(0,y.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(R),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function R(e){return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:D(e.memory_gb)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:I(e.gpu)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,x.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?O(e.launch_time):`-`})]},e.instance_id)}function z(e){let t=(0,y.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/sched)`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/sched)`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(B),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function B(e){let t=e.total_vcpu-(e.reserved_vcpu??0),n=e.total_mem_gb-(e.reserved_mem_gb??0);return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,x.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,t]}),(0,x.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[D(e.alloc_mem_gb),`/`,D(n)]}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,x.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function V(e){let t=(0,y.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(H),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function H(e){return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,x.jsx)(`td`,{className:`py-1.5`,children:D(e.memory_gb)})]},e.name)}export{k as component,I as formatVMGPU}; \ 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"./link.js";import{n as o}from"./redirect.js";import{un as s}from"./cluster-config.js";import{t as c}from"./chevron-down.js";import{t as l}from"./chevron-right.js";import{n as u}from"./admin-context.js";import{t as d}from"./page-heading.js";import{t as f}from"./badge.js";import{o as p,r as m,s as h,t as g}from"./card.js";import{o as _,r as v}from"./admin.js";var y=r(),b=t(n(),1),x=e();function S(e){if(e.mig_enabled){let t=e.slices??[];return`${t.filter(e=>e.instance_id).length} / ${t.length}`}return`${+!!e.instance_id} / 1`}function C(e){let t=(0,y.c)(20),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,b.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},t[1]=o):o=t[1];let u=o,d,p,m,h;if(t[2]!==i||t[3]!==n){let e=n.flatMap(T);h=`overflow-x-auto`,p=`w-full text-xs`,t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`w-6 pb-1`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Expand`})}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Model`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`VRAM`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Mode`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Profile`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Used / Total`})]})}),t[8]=m):m=t[8];let r;t[9]===i?r=t[10]:(r=e=>{let{node:t,gpu:n}=e,r=`${t}:${n.pci_address}`,a=n.slices??[],o=n.mig_enabled&&a.length>0,d=o&&i.has(r);return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5`,children:o&&(0,x.jsx)(`button`,{"aria-expanded":d,"aria-label":d?`Collapse slices`:`Expand slices`,onClick:()=>{u(r)},type:`button`,children:d?(0,x.jsx)(c,{className:`size-3.5`}):(0,x.jsx)(l,{className:`size-3.5`})})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:t}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:n.model}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:s(n.vram_mib)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{className:`text-[0.625rem]`,variant:`secondary`,children:n.mig_enabled?`MIG`:`Passthrough`})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:n.mig_profile??`—`}),(0,x.jsx)(`td`,{className:`py-1.5 font-mono`,children:S(n)})]}),d&&a.map(w)]},r)},t[9]=i,t[10]=r),d=e.map(r),t[2]=i,t[3]=n,t[4]=d,t[5]=p,t[6]=m,t[7]=h}else d=t[4],p=t[5],m=t[6],h=t[7];let g;t[11]===d?g=t[12]:(g=(0,x.jsx)(`tbody`,{children:d}),t[11]=d,t[12]=g);let _;t[13]!==p||t[14]!==m||t[15]!==g?(_=(0,x.jsxs)(`table`,{className:p,children:[m,g]}),t[13]=p,t[14]=m,t[15]=g,t[16]=_):_=t[16];let v;return t[17]!==h||t[18]!==_?(v=(0,x.jsx)(`div`,{className:h,children:_}),t[17]=h,t[18]=_,t[19]=v):v=t[19],v}function w(e){return(0,x.jsxs)(`tr`,{className:`border-b text-muted-foreground last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Slice`})}),(0,x.jsxs)(`td`,{className:`py-1 pr-4 font-mono`,colSpan:2,children:[`↳ slice `,e.gi_id]}),(0,x.jsx)(`td`,{className:`py-1 pr-4`,children:s(e.vram_mib)}),(0,x.jsx)(`td`,{className:`py-1 pr-4`,children:(0,x.jsx)(`span`,{className:`sr-only`,children:`Mode`})}),(0,x.jsx)(`td`,{className:`py-1 pr-4 font-mono`,children:e.profile}),(0,x.jsx)(`td`,{className:`py-1 font-mono`,children:e.instance_id?(0,x.jsx)(a,{className:`text-primary hover:underline`,params:{id:e.instance_id},to:`/ec2/describe-instances/$id`,children:e.instance_id}):(0,x.jsx)(`span`,{className:`text-green-600`,children:`free`})})]},e.gi_id)}function T(e){return(e.gpus??[]).map(t=>({node:e.node,gpu:t}))}function E(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 D(e){return e>=1?`${e.toFixed(1)}Gi`:`${Math.round(e*1024)}Mi`}function O(e){let t=Math.floor(Date.now()/1e3-e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}function k(){let e=(0,y.c)(30),{isAdmin:t}=u(),n;e[0]===t?n=e[1]:(n={...v,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=n);let{data:r}=i(n),a;e[2]===t?a=e[3]:(a={..._,enabled:t,refetchInterval:5e3},e[2]=t,e[3]=a);let{data:s}=i(a);if(!t)throw o({to:`/`});let c;e[4]===r?.nodes?c=e[5]:(c=r?.nodes??[],e[4]=r?.nodes,e[5]=c);let l=c,f;e[6]===s?.vms?f=e[7]:(f=s?.vms??[],e[6]=s?.vms,e[7]=f);let b;e[8]===f?b=e[9]:(b=f.filter(N),e[8]=f,e[9]=b);let S=b,w;if(e[10]!==l){let t=new Map;for(let e of l)for(let n of e.instance_types??[]){let e=t.get(n.name);e?e.available+=n.available:t.set(n.name,{vcpu:n.vcpu,memory_gb:n.memory_gb,available:n.available})}w=[...t.entries()].map(M).toSorted(j),e[10]=l,e[11]=w}else w=e[11];let T=w,E;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,x.jsx)(d,{title:`Nodes`}),e[12]=E):E=e[12];let D;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Cluster Nodes`})}),e[13]=D):D=e[13];let O;e[14]===l?O=e[15]:(O=(0,x.jsxs)(g,{children:[D,(0,x.jsx)(m,{children:l.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No nodes responding`}):(0,x.jsx)(P,{nodes:l})})]}),e[14]=l,e[15]=O);let k;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Elastic Compute Cloud (EC2)`})}),e[16]=k):k=e[16];let F;e[17]===S?F=e[18]:(F=(0,x.jsxs)(g,{children:[k,(0,x.jsx)(m,{children:S.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances running`}):(0,x.jsx)(L,{vms:S})})]}),e[17]=S,e[18]=F);let I;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`Resource Usage`})}),e[19]=I):I=e[19];let R;e[20]!==T||e[21]!==l?(R=(0,x.jsxs)(g,{children:[I,(0,x.jsx)(m,{className:`space-y-4`,children:l.length===0?(0,x.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(z,{nodes:l}),T.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`h4`,{className:`mt-4 text-xs font-medium text-muted-foreground`,children:`Instance Type Capacity`}),(0,x.jsx)(V,{instanceTypes:T})]})]})})]}),e[20]=T,e[21]=l,e[22]=R):R=e[22];let B;e[23]===l?B=e[24]:(B=l.some(A)&&(0,x.jsxs)(g,{children:[(0,x.jsx)(p,{children:(0,x.jsx)(h,{className:`text-sm`,children:`GPU Inventory`})}),(0,x.jsx)(m,{children:(0,x.jsx)(C,{nodes:l})})]}),e[23]=l,e[24]=B);let H;return e[25]!==F||e[26]!==R||e[27]!==B||e[28]!==O?(H=(0,x.jsxs)(x.Fragment,{children:[E,(0,x.jsxs)(`div`,{className:`space-y-6`,children:[O,F,R,B]})]}),e[25]=F,e[26]=R,e[27]=B,e[28]=O,e[29]=H):H=e[29],H}function A(e){return(e.gpus?.length??0)>0}function j(e,t){return e.name.localeCompare(t.name)}function M(e){let[t,n]=e;return{name:t,...n}}function N(e){return!e.managed_by}function P(e){let t=(0,y.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,x.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(F),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function F(e){let t=[e.nats_role?`nats:${e.nats_role}`:null,e.predastore_role?`predastore:${e.predastore_role}`:null].filter(Boolean).join(`,`);return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono text-muted-foreground`,children:t||`-`}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:E(e.uptime)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,x.jsx)(`td`,{className:`py-1.5`,children:(0,x.jsx)(`span`,{className:`text-muted-foreground`,children:e.services?.join(`,`)??`-`})})]},e.node)}function I(e){return e?e.profile?`${e.profile} ${s(e.vram_mib)}`:`${e.model} ${s(e.vram_mib)}`:`-`}function L(e){let t=(0,y.c)(5),{vms:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Type`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Memory`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Age`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(R),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function R(e){return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_id}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,x.jsx)(f,{variant:e.status===`running`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.instance_type}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:D(e.memory_gb)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:I(e.gpu)}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.node}),(0,x.jsx)(`td`,{className:`py-1.5`,children:e.launch_time>0?O(e.launch_time):`-`})]},e.instance_id)}function z(e){let t=(0,y.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`CPU (used/sched)`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`MEM (used/sched)`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`GPU (used/total)`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`EC2`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(B),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function B(e){let t=e.total_vcpu-(e.reserved_vcpu??0),n=e.total_mem_gb-(e.reserved_mem_gb??0);return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,x.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[e.alloc_vcpu,`/`,t]}),(0,x.jsxs)(`td`,{className:`py-1.5 pr-4 font-mono`,children:[D(e.alloc_mem_gb),`/`,D(n)]}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.total_gpus>0?`${e.alloc_gpus}/${e.total_gpus}`:`-`}),(0,x.jsx)(`td`,{className:`py-1.5`,children:e.vm_count})]},e.node)}function V(e){let t=(0,y.c)(5),{instanceTypes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Instance Type`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Available`}),(0,x.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`vCPU`}),(0,x.jsx)(`th`,{className:`pb-1 font-medium`,children:`Memory`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(H),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,x.jsx)(`div`,{className:`overflow-x-auto`,children:(0,x.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,x.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function H(e){return(0,x.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,x.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.name}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.available}),(0,x.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vcpu}),(0,x.jsx)(`td`,{className:`py-1.5`,children:D(e.memory_gb)})]},e.name)}export{k as component,I as formatVMGPU}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js index 5c50064bf..697a949f2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/service-metrics.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{n as r}from"./redirect.js";import{n as i}from"./admin-context.js";import{t as a}from"./page-heading.js";import{t as o}from"./badge.js";import{o as s,r as c,s as l,t as u}from"./card.js";import{r as d}from"./admin.js";var f=t(),p=e();function m(){let e=(0,f.c)(46),{isAdmin:t}=i(),m;e[0]===t?m=e[1]:(m={...d,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=m);let{data:y}=n(m);if(!t)throw r({to:`/`});let x=y?.encoding,S;e[2]===y?.meta_nodes?S=e[3]:(S=y?.meta_nodes??[],e[2]=y?.meta_nodes,e[3]=S);let C=S,w;e[4]===y?.blob_nodes?w=e[5]:(w=y?.blob_nodes??[],e[4]=y?.blob_nodes,e[5]=w);let T=w,E;e[6]===C?E=e[7]:(E=C.length>0&&C.every(g),e[6]=C,e[7]=E);let D=E,O;e[8]===C?O=e[9]:(O=C.some(h),e[8]=C,e[9]=O);let k=O,A;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),e[11]=j):j=e[11];let M;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),e[12]=M):M=e[12];let N;e[13]===x?N=e[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(o,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),e[13]=x,e[14]=N);let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Meta Nodes`}),e[15]=P):P=e[15];let F;e[16]===C.length?F=e[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),e[16]=C.length,e[17]=F);let I;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Blob Nodes`}),e[18]=I):I=e[18];let L;e[19]===T.length?L=e[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),e[19]=T.length,e[20]=L);let R;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),e[21]=R):R=e[21];let z;e[22]!==D||e[23]!==k||e[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),e[22]=D,e[23]=k,e[24]=C.length,e[25]=z):z=e[25];let B;e[26]!==F||e[27]!==L||e[28]!==z||e[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),e[26]=F,e[27]=L,e[28]=z,e[29]=N,e[30]=B):B=e[30];let V;e[31]===x?V=e[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),e[31]=x,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(u,{children:[j,(0,p.jsxs)(c,{children:[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)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Meta Consensus Nodes (Raft)`})}),e[36]=U):U=e[36];let W;e[37]===C?W=e[38]:(W=(0,p.jsxs)(u,{children:[U,(0,p.jsx)(c,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),e[37]=C,e[38]=W);let G;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Blob Nodes`})}),e[39]=G):G=e[39];let K;e[40]===T?K=e[41]:(K=(0,p.jsxs)(u,{children:[G,(0,p.jsx)(c,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),e[40]=T,e[41]=K);let q;return e[42]!==H||e[43]!==W||e[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),e[42]=H,e[43]=W,e[44]=K,e[45]=q):q=e[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(o,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(o,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}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{n as r}from"./redirect.js";import{n as i}from"./admin-context.js";import{t as a}from"./page-heading.js";import{t as o}from"./badge.js";import{o as s,r as c,s as l,t as u}from"./card.js";import{a as d}from"./admin.js";var f=t(),p=e();function m(){let e=(0,f.c)(46),{isAdmin:t}=i(),m;e[0]===t?m=e[1]:(m={...d,enabled:t,refetchInterval:5e3},e[0]=t,e[1]=m);let{data:y}=n(m);if(!t)throw r({to:`/`});let x=y?.encoding,S;e[2]===y?.meta_nodes?S=e[3]:(S=y?.meta_nodes??[],e[2]=y?.meta_nodes,e[3]=S);let C=S,w;e[4]===y?.blob_nodes?w=e[5]:(w=y?.blob_nodes??[],e[4]=y?.blob_nodes,e[5]=w);let T=w,E;e[6]===C?E=e[7]:(E=C.length>0&&C.every(g),e[6]=C,e[7]=E);let D=E,O;e[8]===C?O=e[9]:(O=C.some(h),e[8]=C,e[9]=O);let k=O,A;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,p.jsx)(a,{title:`Service Metrics`}),e[10]=A):A=e[10];let j;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,p.jsx)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Predastore (S3) Overview`})}),e[11]=j):j=e[11];let M;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Encoding`}),e[12]=M):M=e[12];let N;e[13]===x?N=e[14]:(N=(0,p.jsxs)(`div`,{children:[M,(0,p.jsx)(`div`,{className:`mt-1`,children:x?(0,p.jsxs)(o,{variant:`outline`,children:[x.type,` RS(`,x.data_shards,`,`,x.parity_shards,`)`]}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})})]}),e[13]=x,e[14]=N);let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Meta Nodes`}),e[15]=P):P=e[15];let F;e[16]===C.length?F=e[17]:(F=(0,p.jsxs)(`div`,{children:[P,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:C.length})]}),e[16]=C.length,e[17]=F);let I;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Blob Nodes`}),e[18]=I):I=e[18];let L;e[19]===T.length?L=e[20]:(L=(0,p.jsxs)(`div`,{children:[I,(0,p.jsx)(`div`,{className:`mt-1 font-mono font-medium`,children:T.length})]}),e[19]=T.length,e[20]=L);let R;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`Cluster Health`}),e[21]=R):R=e[21];let z;e[22]!==D||e[23]!==k||e[24]!==C.length?(z=(0,p.jsxs)(`div`,{children:[R,(0,p.jsx)(`div`,{className:`mt-1`,children:(0,p.jsx)(_,{nodeCount:C.length,allHealthy:D,anyUnhealthy:k})})]}),e[22]=D,e[23]=k,e[24]=C.length,e[25]=z):z=e[25];let B;e[26]!==F||e[27]!==L||e[28]!==z||e[29]!==N?(B=(0,p.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 text-xs md:grid-cols-4`,children:[N,F,L,z]}),e[26]=F,e[27]=L,e[28]=z,e[29]=N,e[30]=B):B=e[30];let V;e[31]===x?V=e[32]:(V=x&&(0,p.jsxs)(`p`,{className:`mt-3 text-[0.625rem] text-muted-foreground`,children:[`Reed-Solomon erasure coding: `,x.data_shards,` data shards + `,x.parity_shards,` parity`,` `,x.parity_shards===1?`shard`:`shards`,`. Can tolerate `,x.parity_shards,` shard`,` `,x.parity_shards===1?`failure`:`failures`,` without data loss.`]}),e[31]=x,e[32]=V);let H;e[33]!==B||e[34]!==V?(H=(0,p.jsxs)(u,{children:[j,(0,p.jsxs)(c,{children:[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)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Meta Consensus Nodes (Raft)`})}),e[36]=U):U=e[36];let W;e[37]===C?W=e[38]:(W=(0,p.jsxs)(u,{children:[U,(0,p.jsx)(c,{children:C.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(v,{nodes:C})})]}),e[37]=C,e[38]=W);let G;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,p.jsx)(s,{children:(0,p.jsx)(l,{className:`text-sm`,children:`Object Storage Blob Nodes`})}),e[39]=G):G=e[39];let K;e[40]===T?K=e[41]:(K=(0,p.jsxs)(u,{children:[G,(0,p.jsx)(c,{children:T.length===0?(0,p.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No data`}):(0,p.jsx)(b,{nodes:T})})]}),e[40]=T,e[41]=K);let q;return e[42]!==H||e[43]!==W||e[44]!==K?(q=(0,p.jsxs)(p.Fragment,{children:[A,(0,p.jsxs)(`div`,{className:`space-y-6`,children:[H,W,K]})]}),e[42]=H,e[43]=W,e[44]=K,e[45]=q):q=e[45],q}function h(e){return!e.healthy}function g(e){return e.healthy}function _(e){let t=(0,f.c)(4),{nodeCount:n,allHealthy:r,anyUnhealthy:i}=e;if(n===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`default`,children:`Healthy`}),t[1]=e):e=t[1],e}if(i){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,p.jsx)(o,{variant:`destructive`,children:`Degraded`}),t[2]=e):e=t[2],e}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(o,{variant:`secondary`,children:`Unknown`}),t[3]=a):a=t[3],a}function v(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Port`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Health`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`State`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Leader`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Term`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Commit Index`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Applied Index`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(y),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function y(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.port}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,p.jsx)(o,{variant:e.healthy?`default`:`destructive`,className:`text-[0.625rem]`,children:e.healthy?`Healthy`:`Unreachable`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.state?(0,p.jsx)(o,{variant:e.state===`Leader`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.state}):(0,p.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.leader??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.term??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.commit_index??`-`}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.applied_index??`-`})]},e.id)}function b(e){let t=(0,f.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,p.jsx)(`thead`,{children:(0,p.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Node`}),(0,p.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Host`}),(0,p.jsx)(`th`,{className:`pb-1 font-medium`,children:`Port`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(x),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,p.jsx)(`div`,{className:`overflow-x-auto`,children:(0,p.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,p.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function x(e){return(0,p.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.id}),(0,p.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,p.jsx)(`td`,{className:`py-1.5 font-mono`,children:e.port})]},e.id)}export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/signed-fetch.js b/spinifex/services/spinifexui/frontend/dist/assets/signed-fetch.js index e1c0ff29d..5acb945d3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/signed-fetch.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/signed-fetch.js @@ -1 +1 @@ -import{E as e,h as t,nn as n,p as r,t as i}from"./cluster-config.js";var a=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:e=>new TextEncoder().encode(e);function o(e){return e instanceof Uint8Array?e:typeof e==`string`?a(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function s(e){return typeof e==`string`?e.length===0:e.byteLength===0}var c={name:`SHA-256`},l={name:`HMAC`,hash:c},u=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]),d={};function f(){return typeof window<`u`?window:typeof self<`u`?self:d}var p=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!s(e)){var t=o(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 f().crypto.subtle.sign(l,t,e.toHash).then(function(e){return new Uint8Array(e)})}):s(this.toHash)?Promise.resolve(u):Promise.resolve().then(function(){return f().crypto.subtle.digest(c,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){f().crypto.subtle.importKey(`raw`,o(e.secret),l,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}();function m(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]v)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+(g[d]+this.temp[d]|0)|0)|0,_=((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+_|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}(),b=function(){function e(e){this.secret=e,this.hash=new y,this.reset()}return e.prototype.update=function(e){if(!(s(e)||this.error))try{this.hash.update(o(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 m(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new y,this.secret){this.outer=new y;var e=x(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 y;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var S=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function C(e){if(w(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return T(t)}return!1}function w(e){return typeof e==`object`&&typeof e.crypto==`object`&&typeof e.crypto.getRandomValues==`function`}function T(e){return e&&S.every(function(t){return typeof e[t]==`function`})}var E=function(){function e(e){this.hash=C(f())?new p(e):new b(e)}return e.prototype.update=function(e,t){this.hash.update(o(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),D=9999,O=`application/x-www-form-urlencoded`,k=`application/x-amz-json-1.1`,A=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function j(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)}var M=r({message:t().optional(),Message:t().optional()});function N(e){try{let t=M.safeParse(JSON.parse(e));if(t.success)return t.data.message??t.data.Message??null}catch{}return null}function P(e,t,n){let r=j(n,`Code`),i=j(n,`Message`)??N(n)??n;return new A(`${e} failed: ${t}${i?` - ${i}`:``}`,r??`SignedFetchError`,t)}async function F({label:t,credentials:r,service:a,contentType:o,body:s,target:c}){let l=window.location.protocol.replace(`:`,``),u={host:`localhost:${D}`,"content-type":o},d=c?{...u,"x-amz-target":c}:u,f=new n({method:`POST`,protocol:l,hostname:`localhost`,port:D,path:`/`,headers:d,body:s}),p={...(await new e({credentials:{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken},region:i(),service:a,sha256:E}).sign(f)).headers},m=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,h=await fetch(m,{method:`POST`,headers:p,body:s});if(!h.ok){let e=await h.text().catch(()=>``);throw P(t,h.status,e)}return await h.json()}async function I({action:e,credentials:t,service:n=`spinifex`,params:r}){return await F({label:e,credentials:t,service:n,contentType:O,body:`Action=${e}${r?`&${new URLSearchParams(r).toString()}`:``}`})}export{I as n,F as r,k as t}; \ No newline at end of file +import{E as e,h as t,nn as n,p as r,t as i}from"./cluster-config.js";var a=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:e=>new TextEncoder().encode(e);function o(e){return e instanceof Uint8Array?e:typeof e==`string`?a(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function s(e){return typeof e==`string`?e.length===0:e.byteLength===0}var c={name:`SHA-256`},l={name:`HMAC`,hash:c},u=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]),d={};function f(){return typeof window<`u`?window:typeof self<`u`?self:d}var p=function(){function e(e){this.toHash=new Uint8Array,this.secret=e,this.reset()}return e.prototype.update=function(e){if(!s(e)){var t=o(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 f().crypto.subtle.sign(l,t,e.toHash).then(function(e){return new Uint8Array(e)})}):s(this.toHash)?Promise.resolve(u):Promise.resolve().then(function(){return f().crypto.subtle.digest(c,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){f().crypto.subtle.importKey(`raw`,o(e.secret),l,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))},e}();function m(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function h(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]v)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+(g[d]+this.temp[d]|0)|0)|0,_=((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+_|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}(),b=function(){function e(e){this.secret=e,this.hash=new y,this.reset()}return e.prototype.update=function(e){if(!(s(e)||this.error))try{this.hash.update(o(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 m(this,void 0,void 0,function(){return h(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new y,this.secret){this.outer=new y;var e=x(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 y;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var S=[`decrypt`,`digest`,`encrypt`,`exportKey`,`generateKey`,`importKey`,`sign`,`verify`];function C(e){if(w(e)&&typeof e.crypto.subtle==`object`){var t=e.crypto.subtle;return T(t)}return!1}function w(e){return typeof e==`object`&&typeof e.crypto==`object`&&typeof e.crypto.getRandomValues==`function`}function T(e){return e&&S.every(function(t){return typeof e[t]==`function`})}var E=function(){function e(e){this.hash=C(f())?new p(e):new b(e)}return e.prototype.update=function(e,t){this.hash.update(o(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),D=9999,O=`application/x-www-form-urlencoded`,k=`application/x-amz-json-1.1`,A=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function j(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)}var M=r({message:t().optional(),Message:t().optional()});function N(e){try{let t=M.safeParse(JSON.parse(e));if(t.success)return t.data.message??t.data.Message??null}catch{}return null}function P(e,t,n){let r=j(n,`Code`),i=j(n,`Message`)??N(n)??n;return new A(`${e} failed: ${t}${i?` - ${i}`:``}`,r??`SignedFetchError`,t)}async function F({label:t,credentials:r,service:a,contentType:o,body:s,target:c}){let l=window.location.protocol.replace(`:`,``),u={host:`localhost:${D}`,"content-type":o},d=c?{...u,"x-amz-target":c}:u,f=new n({method:`POST`,protocol:l,hostname:`localhost`,port:D,path:`/`,headers:d,body:s}),p={...(await new e({credentials:{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken},region:i(),service:a,sha256:E}).sign(f)).headers},m=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,h=await fetch(m,{method:`POST`,headers:p,body:s});if(!h.ok){let e=await h.text().catch(()=>``);throw P(t,h.status,e)}return await h.json()}async function I({action:e,credentials:t,service:n=`spinifex`,params:r}){return await F({label:e,credentials:t,service:n,contentType:O,body:`Action=${e}${r?`&${new URLSearchParams(r).toString()}`:``}`})}var L=`application/json`,R=r({error:r({code:t().optional(),message:t().optional()}).optional(),requestId:t().optional()});function z(e,t,n){let r,i;try{let e=R.safeParse(JSON.parse(n));e.success&&(r=e.data.error?.code,i=e.data.error?.message)}catch{}return new A(`${e} failed: ${t}${i?` - ${i}`:``}`,r??`SignedFetchError`,t)}async function B({method:t,credentials:r,body:a}){let o=window.location.protocol.replace(`:`,``),s=`/admin/${t}`,c=JSON.stringify(a??{}),l=new n({method:`POST`,protocol:o,hostname:`localhost`,port:D,path:s,headers:{host:`localhost:${D}`,"content-type":L},body:c}),u={...(await new e({credentials:{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken},region:i(),service:`spinifex`,sha256:E}).sign(l)).headers},d=`${window.location.protocol}//${window.location.host}/proxy/awsgw${s}`,f=await fetch(d,{method:`POST`,headers:u,body:c});if(!f.ok){let e=await f.text().catch(()=>``);throw z(t,f.status,e)}return await f.json()}export{F as i,B as n,I as r,k as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/src/layouts/sidebar-layout.tsx b/spinifex/services/spinifexui/frontend/src/layouts/sidebar-layout.tsx index 7f89f44ac..c6fe0d0cf 100644 --- a/spinifex/services/spinifexui/frontend/src/layouts/sidebar-layout.tsx +++ b/spinifex/services/spinifexui/frontend/src/layouts/sidebar-layout.tsx @@ -16,6 +16,7 @@ import { IdCard, Image, Key, + KeyRound, Layers, LayoutGrid, LayoutList, @@ -627,6 +628,19 @@ export function SidebarLayout() { )} + {isAdmin && ( + + + + + Model Access + + + + )} {isAdmin && ( diff --git a/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.test.ts b/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.test.ts index a31ad05a3..c1275c21e 100644 --- a/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.test.ts +++ b/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.test.ts @@ -2,7 +2,7 @@ import { afterEach, describe, expect, it, vi } from "vitest" import type { SessionCredentials } from "./auth" import { isStaleCredentialsError } from "./auth-error" -import { SignedFetchError, signedFetch } from "./signed-fetch" +import { signedAdminFetch, SignedFetchError, signedFetch } from "./signed-fetch" const credentials: SessionCredentials = { accessKeyId: "ASIAIOSFODNN7EXAMPLE", @@ -92,3 +92,65 @@ describe("signedFetch", () => { expect(isStaleCredentialsError(err)).toBeFalsy() }) }) + +describe("signedAdminFetch", () => { + afterEach(() => { + vi.unstubAllGlobals() + }) + + it("POSTs a JSON body to /proxy/awsgw/admin/", async () => { + const fetchMock = vi + .fn() + .mockResolvedValue( + new Response('{"accounts":[],"count":0}', { status: 200 }), + ) + vi.stubGlobal("fetch", fetchMock) + + await signedAdminFetch({ method: "ListAccounts", credentials, body: {} }) + + const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit] + expect(url).toContain("/proxy/awsgw/admin/ListAccounts") + expect(init.method).toBe("POST") + expect(init.body).toBe("{}") + const headers = init.headers as Record + expect(findHeader(headers, "content-type")).toBe("application/json") + }) + + it("defaults a missing body to an empty JSON object", async () => { + const fetchMock = vi + .fn() + .mockResolvedValue(new Response("{}", { status: 200 })) + vi.stubGlobal("fetch", fetchMock) + + await signedAdminFetch({ method: "ListAccounts", credentials }) + + const init = fetchMock.mock.calls[0]?.[1] as RequestInit + expect(init.body).toBe("{}") + }) + + it("decodes the /admin JSON error envelope", async () => { + stubFetch( + '{"error":{"code":"AccessDenied","message":"not the super-admin account"},"requestId":"req-1"}', + 403, + ) + + const err = await rejection( + signedAdminFetch({ method: "ListAccounts", credentials }), + ) + + expect(err).toBeInstanceOf(SignedFetchError) + expect(err).toMatchObject({ name: "AccessDenied", status: 403 }) + expect(err.message).toContain("not the super-admin account") + }) + + it("falls back to a generic name when the body is not the envelope", async () => { + stubFetch("gateway unavailable", 503) + + const err = await rejection( + signedAdminFetch({ method: "ListAccounts", credentials }), + ) + + expect(err).toBeInstanceOf(SignedFetchError) + expect(err).toMatchObject({ name: "SignedFetchError", status: 503 }) + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.ts b/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.ts index 46f3c0ed2..ba1701701 100644 --- a/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.ts +++ b/spinifex/services/spinifexui/frontend/src/lib/signed-fetch.ts @@ -178,3 +178,103 @@ export async function signedFetch({ body: `Action=${action}${extraParams}`, }) } + +// ADMIN_JSON_CONTENT_TYPE is what the /admin surface expects, distinct from +// JSON_CONTENT_TYPE (JSON-1.1, used by the Action= target callers). +export const ADMIN_JSON_CONTENT_TYPE = "application/json" + +export interface SignedAdminFetchOptions> { + method: string + credentials: SessionCredentials + body?: TBody +} + +const adminErrorSchema = z.object({ + error: z + .object({ code: z.string().optional(), message: z.string().optional() }) + .optional(), + requestId: z.string().optional(), +}) + +// adminErrorFromBody reads the /admin surface's JSON error envelope +// (`{error:{code,message},requestId}`), which is shaped differently from the +// Action= and JSON-1.1 error bodies errorFromBody handles. +function adminErrorFromBody( + label: string, + status: number, + detail: string, +): SignedFetchError { + let code: string | undefined + let message: string | undefined + try { + const parsed = adminErrorSchema.safeParse(JSON.parse(detail)) + if (parsed.success) { + code = parsed.data.error?.code + message = parsed.data.error?.message + } + } catch { + // Non-JSON body. + } + return new SignedFetchError( + `${label} failed: ${status}${message ? ` - ${message}` : ""}`, + code ?? "SignedFetchError", + status, + ) +} + +// signedAdminFetch SigV4-signs and POSTs to the private JSON /admin/ +// surface (mirrors the Go CLI's callAdmin), distinct from the Action= query +// surface signedFetch drives against path "/". +export async function signedAdminFetch>({ + method, + credentials, + body, +}: SignedAdminFetchOptions): Promise { + const protocol = window.location.protocol.replace(":", "") + const path = `/admin/${method}` + const payload = JSON.stringify(body ?? {}) + + const headers = { + host: `localhost:${GATEWAY_PORT}`, + "content-type": ADMIN_JSON_CONTENT_TYPE, + } + + const request = new HttpRequest({ + method: "POST", + protocol, + hostname: "localhost", + port: GATEWAY_PORT, + path, + headers, + body: payload, + }) + + const signer = new SignatureV4({ + credentials: { + accessKeyId: credentials.accessKeyId, + secretAccessKey: credentials.secretAccessKey, + sessionToken: credentials.sessionToken, + }, + region: getRegion(), + service: "spinifex", + sha256: Sha256, + }) + + const signed = await signer.sign(request) + const signedHeaders = { ...signed.headers } + + const proxyUrl = `${window.location.protocol}//${window.location.host}/proxy/awsgw${path}` + const response = await fetch(proxyUrl, { + method: "POST", + headers: signedHeaders, + body: payload, + }) + + if (!response.ok) { + const detail = await response.text().catch(() => "") + throw adminErrorFromBody(method, response.status, detail) + } + + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- response.json() returns Promise + return await (response.json() as Promise) +} diff --git a/spinifex/services/spinifexui/frontend/src/queries/admin.test.ts b/spinifex/services/spinifexui/frontend/src/queries/admin.test.ts index 61bd5c986..860111542 100644 --- a/spinifex/services/spinifexui/frontend/src/queries/admin.test.ts +++ b/spinifex/services/spinifexui/frontend/src/queries/admin.test.ts @@ -6,21 +6,27 @@ vi.mock("@/lib/auth", () => ({ vi.mock("@/lib/signed-fetch", () => ({ signedFetch: vi.fn(), + signedAdminFetch: vi.fn(), })) import { getCredentials } from "@/lib/auth" -import { signedFetch } from "@/lib/signed-fetch" +import { signedAdminFetch, signedFetch } from "@/lib/signed-fetch" import { callQueryFn } from "@/test/query" import { + adminListAccountsQueryOptions, + adminModelAccessQueryOptions, adminNodesQueryOptions, adminOchreCatalogQueryOptions, adminStorageStatusQueryOptions, adminVMsQueryOptions, + grantModelAccess, + revokeModelAccess, } from "./admin" const mockGetCredentials = vi.mocked(getCredentials) const mockSignedFetch = vi.mocked(signedFetch) +const mockSignedAdminFetch = vi.mocked(signedAdminFetch) describe("adminNodesQueryOptions", () => { it("has the correct query key", () => { @@ -151,3 +157,149 @@ describe("adminOchreCatalogQueryOptions", () => { }) }) }) + +describe("adminListAccountsQueryOptions", () => { + it("has the correct query key", () => { + expect(adminListAccountsQueryOptions.queryKey).toStrictEqual([ + "admin", + "accounts", + ]) + }) + + it("does not retry, so a 403 settles fast", () => { + expect(adminListAccountsQueryOptions.retry).toBeFalsy() + }) + + it("throws when not authenticated", async () => { + mockGetCredentials.mockReturnValue(null) + await expect(callQueryFn(adminListAccountsQueryOptions)).rejects.toThrow( + "Not authenticated", + ) + }) + + it("calls signedAdminFetch with the ListAccounts method and an empty body", async () => { + const creds = { + accessKeyId: "ASIAak", + secretAccessKey: "sk", + sessionToken: "token", + expiration: new Date(Date.now() + 60_000).toISOString(), + } + mockGetCredentials.mockReturnValue(creds) + mockSignedAdminFetch.mockResolvedValue({ accounts: [], count: 0 }) + + await callQueryFn(adminListAccountsQueryOptions) + + expect(mockSignedAdminFetch).toHaveBeenCalledWith({ + method: "ListAccounts", + credentials: creds, + body: {}, + }) + }) +}) + +describe("adminModelAccessQueryOptions", () => { + it("has the correct query key", () => { + expect(adminModelAccessQueryOptions("000000000002").queryKey).toStrictEqual( + ["admin", "modelAccess", "000000000002"], + ) + }) + + it("is disabled when the account id is empty", () => { + expect(adminModelAccessQueryOptions("").enabled).toBeFalsy() + }) + + it("is enabled when the account id is non-empty", () => { + expect(adminModelAccessQueryOptions("000000000002").enabled).toBeTruthy() + }) + + it("throws when not authenticated", async () => { + mockGetCredentials.mockReturnValue(null) + await expect( + callQueryFn(adminModelAccessQueryOptions("000000000002")), + ).rejects.toThrow("Not authenticated") + }) + + it("calls signedFetch with ListModelAccess action and the account id", async () => { + const creds = { + accessKeyId: "ASIAak", + secretAccessKey: "sk", + sessionToken: "token", + expiration: new Date(Date.now() + 60_000).toISOString(), + } + mockGetCredentials.mockReturnValue(creds) + mockSignedFetch.mockResolvedValue({ + AccountId: "000000000002", + ModelIds: [], + }) + + await callQueryFn(adminModelAccessQueryOptions("000000000002")) + + expect(mockSignedFetch).toHaveBeenCalledWith({ + action: "ListModelAccess", + credentials: creds, + params: { AccountId: "000000000002" }, + }) + }) +}) + +describe("grantModelAccess", () => { + it("throws when not authenticated", async () => { + mockGetCredentials.mockReturnValue(null) + await expect( + grantModelAccess({ accountId: "000000000002", modelId: "model-a" }), + ).rejects.toThrow("Not authenticated") + }) + + it("calls signedFetch with GrantModelAccess action and params", async () => { + const creds = { + accessKeyId: "ASIAak", + secretAccessKey: "sk", + sessionToken: "token", + expiration: new Date(Date.now() + 60_000).toISOString(), + } + mockGetCredentials.mockReturnValue(creds) + mockSignedFetch.mockResolvedValue({ + AccountId: "000000000002", + ModelId: "model-a", + }) + + await grantModelAccess({ accountId: "000000000002", modelId: "model-a" }) + + expect(mockSignedFetch).toHaveBeenCalledWith({ + action: "GrantModelAccess", + credentials: creds, + params: { AccountId: "000000000002", ModelId: "model-a" }, + }) + }) +}) + +describe("revokeModelAccess", () => { + it("throws when not authenticated", async () => { + mockGetCredentials.mockReturnValue(null) + await expect( + revokeModelAccess({ accountId: "000000000002", modelId: "model-a" }), + ).rejects.toThrow("Not authenticated") + }) + + it("calls signedFetch with RevokeModelAccess action and params", async () => { + const creds = { + accessKeyId: "ASIAak", + secretAccessKey: "sk", + sessionToken: "token", + expiration: new Date(Date.now() + 60_000).toISOString(), + } + mockGetCredentials.mockReturnValue(creds) + mockSignedFetch.mockResolvedValue({ + AccountId: "000000000002", + ModelId: "model-a", + }) + + await revokeModelAccess({ accountId: "000000000002", modelId: "model-a" }) + + expect(mockSignedFetch).toHaveBeenCalledWith({ + action: "RevokeModelAccess", + credentials: creds, + params: { AccountId: "000000000002", ModelId: "model-a" }, + }) + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/queries/admin.ts b/spinifex/services/spinifexui/frontend/src/queries/admin.ts index d78f98f39..f4c795572 100644 --- a/spinifex/services/spinifexui/frontend/src/queries/admin.ts +++ b/spinifex/services/spinifexui/frontend/src/queries/admin.ts @@ -1,7 +1,7 @@ import { queryOptions } from "@tanstack/react-query" import { getCredentials } from "@/lib/auth" -import { signedFetch } from "@/lib/signed-fetch" +import { signedAdminFetch, signedFetch } from "@/lib/signed-fetch" interface InstanceTypeCap { name: string @@ -145,6 +145,32 @@ interface ListOchreCatalogOutput { entries: AdminCatalogEntry[] } +// ModelAccessList and ModelAccessChange mirror the gateway's wire shape, +// which is PascalCase here unlike the catalog's camelCase. +interface ModelAccessList { + AccountId: string + ModelIds: string[] +} + +interface ModelAccessChange { + AccountId: string + ModelId: string +} + +// AccountSummary and ListAccountsResponse mirror the /admin/ListAccounts +// response, which — unlike the Action= surface — uses camelCase. +interface AccountSummary { + accountId: string + accountName: string + status: string + createdAt: string +} + +interface ListAccountsResponse { + accounts: AccountSummary[] + count: number +} + export type { InstanceTypeCap, GPUSliceInfo, @@ -161,6 +187,10 @@ export type { CatalogAvailability, AdminCatalogEntry, ListOchreCatalogOutput, + ModelAccessList, + ModelAccessChange, + AccountSummary, + ListAccountsResponse, } export const adminNodesQueryOptions = queryOptions({ @@ -222,3 +252,76 @@ export const adminOchreCatalogQueryOptions = queryOptions({ }, staleTime: 10_000, }) + +// adminListAccountsQueryOptions may 403 for a session that is not a +// long-lived IAM user in the super-admin account; retry: false so the page +// gives up fast and falls back to the validated free-text account id. +export const adminListAccountsQueryOptions = queryOptions({ + queryKey: ["admin", "accounts"], + queryFn: async () => { + const credentials = getCredentials() + if (!credentials) { + throw new Error("Not authenticated") + } + return await signedAdminFetch({ + method: "ListAccounts", + credentials, + body: {}, + }) + }, + retry: false, + staleTime: 30_000, +}) + +export const adminModelAccessQueryOptions = (accountId: string) => + queryOptions({ + queryKey: ["admin", "modelAccess", accountId], + queryFn: async () => { + const credentials = getCredentials() + if (!credentials) { + throw new Error("Not authenticated") + } + return await signedFetch({ + action: "ListModelAccess", + credentials, + params: { AccountId: accountId }, + }) + }, + enabled: accountId !== "", + staleTime: 10_000, + }) + +interface ModelAccessMutationInput { + accountId: string + modelId: string +} + +export async function grantModelAccess({ + accountId, + modelId, +}: ModelAccessMutationInput): Promise { + const credentials = getCredentials() + if (!credentials) { + throw new Error("Not authenticated") + } + return await signedFetch({ + action: "GrantModelAccess", + credentials, + params: { AccountId: accountId, ModelId: modelId }, + }) +} + +export async function revokeModelAccess({ + accountId, + modelId, +}: ModelAccessMutationInput): Promise { + const credentials = getCredentials() + if (!credentials) { + throw new Error("Not authenticated") + } + return await signedFetch({ + action: "RevokeModelAccess", + credentials, + params: { AccountId: accountId, ModelId: modelId }, + }) +} diff --git a/spinifex/services/spinifexui/frontend/src/routeTree.gen.ts b/spinifex/services/spinifexui/frontend/src/routeTree.gen.ts index 21b38e8b8..cdd8e53d9 100644 --- a/spinifex/services/spinifexui/frontend/src/routeTree.gen.ts +++ b/spinifex/services/spinifexui/frontend/src/routeTree.gen.ts @@ -51,6 +51,7 @@ import { Route as AuthBedrockguardrailsListGuardrailsIndexRouteImport } from './ import { Route as AuthBedrockguardrailsListGuardrailsGuardrailIdRouteImport } from './routes/_auth/bedrock/(guardrails)/list-guardrails/$guardrailId' import { Route as AuthBedrockknowledgeBasesListKnowledgeBasesIndexRouteImport } from './routes/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/index' import { Route as AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRouteImport } from './routes/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/$knowledgeBaseId' +import { Route as AuthBedrockmodelAccessListModelAccessIndexRouteImport } from './routes/_auth/bedrock/(model-access)/list-model-access/index' import { Route as AuthBedrockplaygroundPlaygroundIndexRouteImport } from './routes/_auth/bedrock/(playground)/playground/index' import { Route as AuthEc2elasticIpsDescribeAddressesIndexRouteImport } from './routes/_auth/ec2/(elastic-ips)/describe-addresses/index' import { Route as AuthEc2elasticIpsDescribeAddressesIdRouteImport } from './routes/_auth/ec2/(elastic-ips)/describe-addresses/$id' @@ -353,6 +354,12 @@ const AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRoute = path: '/bedrock/list-knowledge-bases/$knowledgeBaseId', getParentRoute: () => AuthRouteRoute, } as any) +const AuthBedrockmodelAccessListModelAccessIndexRoute = + AuthBedrockmodelAccessListModelAccessIndexRouteImport.update({ + id: '/bedrock/(model-access)/list-model-access/', + path: '/bedrock/list-model-access/', + getParentRoute: () => AuthRouteRoute, + } as any) const AuthBedrockplaygroundPlaygroundIndexRoute = AuthBedrockplaygroundPlaygroundIndexRouteImport.update({ id: '/bedrock/(playground)/playground/', @@ -805,6 +812,7 @@ export interface FileRoutesByFullPath { '/bedrock/list-model-catalog/': typeof AuthBedrockcatalogListModelCatalogIndexRoute '/bedrock/list-guardrails/': typeof AuthBedrockguardrailsListGuardrailsIndexRoute '/bedrock/list-knowledge-bases/': typeof AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute + '/bedrock/list-model-access/': typeof AuthBedrockmodelAccessListModelAccessIndexRoute '/bedrock/playground/': typeof AuthBedrockplaygroundPlaygroundIndexRoute '/ec2/describe-addresses/': typeof AuthEc2elasticIpsDescribeAddressesIndexRoute '/ec2/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute @@ -910,6 +918,7 @@ export interface FileRoutesByTo { '/bedrock/list-model-catalog': typeof AuthBedrockcatalogListModelCatalogIndexRoute '/bedrock/list-guardrails': typeof AuthBedrockguardrailsListGuardrailsIndexRoute '/bedrock/list-knowledge-bases': typeof AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute + '/bedrock/list-model-access': typeof AuthBedrockmodelAccessListModelAccessIndexRoute '/bedrock/playground': typeof AuthBedrockplaygroundPlaygroundIndexRoute '/ec2/describe-addresses': typeof AuthEc2elasticIpsDescribeAddressesIndexRoute '/ec2/describe-images': typeof AuthEc2imagesDescribeImagesIndexRoute @@ -1018,6 +1027,7 @@ export interface FileRoutesById { '/_auth/bedrock/(catalog)/list-model-catalog/': typeof AuthBedrockcatalogListModelCatalogIndexRoute '/_auth/bedrock/(guardrails)/list-guardrails/': typeof AuthBedrockguardrailsListGuardrailsIndexRoute '/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/': typeof AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute + '/_auth/bedrock/(model-access)/list-model-access/': typeof AuthBedrockmodelAccessListModelAccessIndexRoute '/_auth/bedrock/(playground)/playground/': typeof AuthBedrockplaygroundPlaygroundIndexRoute '/_auth/ec2/(elastic-ips)/describe-addresses/': typeof AuthEc2elasticIpsDescribeAddressesIndexRoute '/_auth/ec2/(images)/describe-images/': typeof AuthEc2imagesDescribeImagesIndexRoute @@ -1126,6 +1136,7 @@ export interface FileRouteTypes { | '/bedrock/list-model-catalog/' | '/bedrock/list-guardrails/' | '/bedrock/list-knowledge-bases/' + | '/bedrock/list-model-access/' | '/bedrock/playground/' | '/ec2/describe-addresses/' | '/ec2/describe-images/' @@ -1231,6 +1242,7 @@ export interface FileRouteTypes { | '/bedrock/list-model-catalog' | '/bedrock/list-guardrails' | '/bedrock/list-knowledge-bases' + | '/bedrock/list-model-access' | '/bedrock/playground' | '/ec2/describe-addresses' | '/ec2/describe-images' @@ -1338,6 +1350,7 @@ export interface FileRouteTypes { | '/_auth/bedrock/(catalog)/list-model-catalog/' | '/_auth/bedrock/(guardrails)/list-guardrails/' | '/_auth/bedrock/(knowledge-bases)/list-knowledge-bases/' + | '/_auth/bedrock/(model-access)/list-model-access/' | '/_auth/bedrock/(playground)/playground/' | '/_auth/ec2/(elastic-ips)/describe-addresses/' | '/_auth/ec2/(images)/describe-images/' @@ -1673,6 +1686,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthBedrockknowledgeBasesListKnowledgeBasesKnowledgeBaseIdRouteImport parentRoute: typeof AuthRouteRoute } + '/_auth/bedrock/(model-access)/list-model-access/': { + id: '/_auth/bedrock/(model-access)/list-model-access/' + path: '/bedrock/list-model-access' + fullPath: '/bedrock/list-model-access/' + preLoaderRoute: typeof AuthBedrockmodelAccessListModelAccessIndexRouteImport + parentRoute: typeof AuthRouteRoute + } '/_auth/bedrock/(playground)/playground/': { id: '/_auth/bedrock/(playground)/playground/' path: '/bedrock/playground' @@ -2201,6 +2221,7 @@ interface AuthRouteRouteChildren { AuthBedrockcatalogListModelCatalogIndexRoute: typeof AuthBedrockcatalogListModelCatalogIndexRoute AuthBedrockguardrailsListGuardrailsIndexRoute: typeof AuthBedrockguardrailsListGuardrailsIndexRoute AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute: typeof AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute + AuthBedrockmodelAccessListModelAccessIndexRoute: typeof AuthBedrockmodelAccessListModelAccessIndexRoute AuthBedrockplaygroundPlaygroundIndexRoute: typeof AuthBedrockplaygroundPlaygroundIndexRoute AuthEc2elasticIpsDescribeAddressesIndexRoute: typeof AuthEc2elasticIpsDescribeAddressesIndexRoute AuthEc2imagesDescribeImagesIndexRoute: typeof AuthEc2imagesDescribeImagesIndexRoute @@ -2344,6 +2365,8 @@ const AuthRouteRouteChildren: AuthRouteRouteChildren = { AuthBedrockguardrailsListGuardrailsIndexRoute, AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute: AuthBedrockknowledgeBasesListKnowledgeBasesIndexRoute, + AuthBedrockmodelAccessListModelAccessIndexRoute: + AuthBedrockmodelAccessListModelAccessIndexRoute, AuthBedrockplaygroundPlaygroundIndexRoute: AuthBedrockplaygroundPlaygroundIndexRoute, AuthEc2elasticIpsDescribeAddressesIndexRoute: diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.test.tsx new file mode 100644 index 000000000..ce4799514 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.test.tsx @@ -0,0 +1,272 @@ +import { screen, waitFor } from "@testing-library/react" +import userEvent from "@testing-library/user-event" +import { describe, expect, it, vi } from "vitest" + +type AdminQueries = typeof import("@/queries/admin") + +const { mockGrantModelAccess, mockRevokeModelAccess } = vi.hoisted(() => ({ + mockGrantModelAccess: vi.fn(), + mockRevokeModelAccess: vi.fn(), +})) + +vi.mock("@/queries/admin", async () => { + const actual = await vi.importActual("@/queries/admin") + return { + ...actual, + grantModelAccess: mockGrantModelAccess, + revokeModelAccess: mockRevokeModelAccess, + } +}) + +import { + adminListAccountsQueryOptions, + adminModelAccessQueryOptions, + adminOchreCatalogQueryOptions, + type AccountSummary, + type AdminCatalogEntry, +} from "@/queries/admin" +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +import { ModelAccessPage } from "./model-access-page" + +const CATALOG_ENTRY = { + modelId: "meta.llama3-2-1b-instruct-v1:0", + modelName: "Llama 3.2 1B Instruct", + family: "vllm", + inputModalities: ["TEXT"], + outputModalities: ["TEXT"], + responseStreamingSupported: false, + inputPriceMicroUsdPerMillion: 0, + outputPriceMicroUsdPerMillion: 0, + priceKnown: false, + minVramMib: 5120, + instanceType: "g5.xlarge", + coServeGroup: "ochre-demo-bundle", + availability: "available", +} satisfies AdminCatalogEntry + +const OTHER_ENTRY = { + ...CATALOG_ENTRY, + modelId: "anthropic.claude-3-haiku", + modelName: "Claude 3 Haiku", +} satisfies AdminCatalogEntry + +const ACCOUNT_ID = "000000000002" +const ACCOUNT_NAME = "Tenant One" + +const ACCOUNT = { + accountId: ACCOUNT_ID, + accountName: ACCOUNT_NAME, + status: "ACTIVE", + createdAt: "2026-01-01T00:00:00Z", +} satisfies AccountSummary + +function seed({ + entries = [], + grantedModelIds = [], + accounts, +}: { + entries?: AdminCatalogEntry[] + grantedModelIds?: string[] + accounts?: AccountSummary[] +}) { + const qc = createTestQueryClient() + qc.setQueryData(adminOchreCatalogQueryOptions.queryKey, { entries }) + qc.setQueryData(adminModelAccessQueryOptions(ACCOUNT_ID).queryKey, { + AccountId: ACCOUNT_ID, + ModelIds: grantedModelIds, + }) + if (accounts !== undefined) { + qc.setQueryData(adminListAccountsQueryOptions.queryKey, { + accounts, + count: accounts.length, + }) + } + return qc +} + +async function selectAccount(user: ReturnType) { + await user.click(screen.getByLabelText("Account")) + await user.click( + screen.getByRole("option", { name: new RegExp(ACCOUNT_NAME) }), + ) +} + +describe("ModelAccessPage", () => { + describe("account picker", () => { + it("lists accounts sorted by name, excluding the global account", async () => { + const user = userEvent.setup() + renderWithClient( + , + seed({ + accounts: [ + { ...ACCOUNT, accountId: "000000000003", accountName: "Zeta Co" }, + ACCOUNT, + { + accountId: "000000000000", + accountName: "Global", + status: "ACTIVE", + createdAt: "", + }, + ], + }), + ) + + await user.click(screen.getByLabelText("Account")) + + const options = screen.getAllByRole("option").map((el) => el.textContent) + expect(options).toStrictEqual([ + "Tenant One (000000000002) — ACTIVE", + "Zeta Co (000000000003) — ACTIVE", + ]) + }) + + it("selecting an account drives the catalog cross-referenced with grants", async () => { + const user = userEvent.setup() + renderWithClient( + , + seed({ + entries: [CATALOG_ENTRY, OTHER_ENTRY], + grantedModelIds: [CATALOG_ENTRY.modelId], + accounts: [ACCOUNT], + }), + ) + + await selectAccount(user) + + expect(screen.getByText("Llama 3.2 1B Instruct")).toBeInTheDocument() + expect(screen.getByText("Claude 3 Haiku")).toBeInTheDocument() + expect(screen.getByText("Granted")).toBeInTheDocument() + expect(screen.getByText("Ungranted")).toBeInTheDocument() + }) + + it("grants access with the selected account id", async () => { + mockGrantModelAccess.mockResolvedValue({ + AccountId: ACCOUNT_ID, + ModelId: OTHER_ENTRY.modelId, + }) + const user = userEvent.setup() + renderWithClient( + , + seed({ entries: [OTHER_ENTRY], accounts: [ACCOUNT] }), + ) + + await selectAccount(user) + await user.click(screen.getByRole("button", { name: "Grant" })) + + await waitFor(() => { + expect(mockGrantModelAccess.mock.calls[0]?.[0]).toStrictEqual({ + accountId: ACCOUNT_ID, + modelId: OTHER_ENTRY.modelId, + }) + }) + }) + + it("revokes access with the selected account id", async () => { + mockRevokeModelAccess.mockResolvedValue({ + AccountId: ACCOUNT_ID, + ModelId: CATALOG_ENTRY.modelId, + }) + const user = userEvent.setup() + renderWithClient( + , + seed({ + entries: [CATALOG_ENTRY], + grantedModelIds: [CATALOG_ENTRY.modelId], + accounts: [ACCOUNT], + }), + ) + + await selectAccount(user) + await user.click(screen.getByRole("button", { name: "Revoke" })) + + await waitFor(() => { + expect(mockRevokeModelAccess.mock.calls[0]?.[0]).toStrictEqual({ + accountId: ACCOUNT_ID, + modelId: CATALOG_ENTRY.modelId, + }) + }) + }) + }) + + describe("free-text fallback", () => { + it("falls back to a validated text input when the account list is empty", () => { + renderWithClient(, seed({ accounts: [] })) + expect( + screen.getByText( + "Enter a 12-digit account ID — account list unavailable.", + ), + ).toBeInTheDocument() + }) + + it("falls back to a validated text input when the account list errors", async () => { + // adminListAccountsQueryOptions is left unseeded, so its real queryFn + // runs and throws "Not authenticated" (no stored session in this env). + renderWithClient(, seed({})) + await expect( + screen.findByText( + "Enter a 12-digit account ID — account list unavailable.", + ), + ).resolves.toBeInTheDocument() + }) + + it("rejects a non-12-digit account id and does not show the catalog", async () => { + const user = userEvent.setup() + renderWithClient( + , + seed({ entries: [CATALOG_ENTRY], accounts: [] }), + ) + + await user.type(screen.getByPlaceholderText("123456789012"), "12345") + + expect( + screen.getByText("Enter a 12-digit numeric account ID."), + ).toBeInTheDocument() + expect( + screen.queryByText("Llama 3.2 1B Instruct"), + ).not.toBeInTheDocument() + }) + + it("shows the catalog once a valid 12-digit account id is entered", async () => { + const user = userEvent.setup() + renderWithClient( + , + seed({ + entries: [CATALOG_ENTRY], + grantedModelIds: [CATALOG_ENTRY.modelId], + accounts: [], + }), + ) + + await user.type(screen.getByPlaceholderText("123456789012"), ACCOUNT_ID) + + expect(screen.getByText("Llama 3.2 1B Instruct")).toBeInTheDocument() + expect(screen.getByText("Granted")).toBeInTheDocument() + }) + + it("grants access with the validated free-text account id", async () => { + mockGrantModelAccess.mockResolvedValue({ + AccountId: ACCOUNT_ID, + ModelId: CATALOG_ENTRY.modelId, + }) + const user = userEvent.setup() + renderWithClient( + , + seed({ entries: [CATALOG_ENTRY], accounts: [] }), + ) + + await user.type(screen.getByPlaceholderText("123456789012"), ACCOUNT_ID) + await user.click(screen.getByRole("button", { name: "Grant" })) + + await waitFor(() => { + expect(mockGrantModelAccess.mock.calls[0]?.[0]).toStrictEqual({ + accountId: ACCOUNT_ID, + modelId: CATALOG_ENTRY.modelId, + }) + }) + }) + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.tsx new file mode 100644 index 000000000..7849473ae --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/-components/model-access-page.tsx @@ -0,0 +1,294 @@ +import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" +import { useState } from "react" + +import { PageHeading } from "@/components/page-heading" +import { Badge } from "@/components/ui/badge" +import { Button } from "@/components/ui/button" +import { Card, CardContent } from "@/components/ui/card" +import { Field, FieldTitle } from "@/components/ui/field" +import { Input } from "@/components/ui/input" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select" +import { + adminListAccountsQueryOptions, + adminModelAccessQueryOptions, + adminOchreCatalogQueryOptions, + grantModelAccess, + revokeModelAccess, + type AccountSummary, + type AdminCatalogEntry, +} from "@/queries/admin" + +// GlobalAccountID is granted every model unconditionally, so it is not a +// meaningful target for this page and is excluded from the picker. +const GLOBAL_ACCOUNT_ID = "000000000000" + +const ACCOUNT_ID_RE = /^[0-9]{12}$/ + +function accountLabel(account: AccountSummary): string { + return `${account.accountName} (${account.accountId}) — ${account.status}` +} + +function ModelAccessRow({ + entry, + accountId, + granted, +}: { + entry: AdminCatalogEntry + accountId: string + granted: boolean +}) { + const queryClient = useQueryClient() + const modelAccessQueryKey = adminModelAccessQueryOptions(accountId).queryKey + + const grant = useMutation({ + mutationFn: grantModelAccess, + onSuccess: () => { + void queryClient.invalidateQueries({ queryKey: modelAccessQueryKey }) + }, + }) + + const revoke = useMutation({ + mutationFn: revokeModelAccess, + onSuccess: () => { + void queryClient.invalidateQueries({ queryKey: modelAccessQueryKey }) + }, + }) + + const pending = grant.isPending || revoke.isPending + + return ( + + +
{entry.modelName}
+
{entry.modelId}
+ + + + {granted ? "Granted" : "Ungranted"} + + + + {granted ? ( + + ) : ( + + )} + + + ) +} + +function ModelAccessTable({ + entries, + accountId, + grantedModelIds, +}: { + entries: AdminCatalogEntry[] + accountId: string + grantedModelIds: Set +}) { + return ( +
+ + + + + + + + + + {entries.map((entry) => ( + + ))} + +
ModelAccessAction
+
+ ) +} + +function ModelAccessAccountPicker({ + accounts, + accountId, + onAccountIdChange, +}: { + accounts: AccountSummary[] + accountId: string + onAccountIdChange: (accountId: string) => void +}) { + const sorted = accounts.toSorted((a, b) => + a.accountName.localeCompare(b.accountName), + ) + return ( + + + + + +

+ Select an account. +

+
+ ) +} + +function ModelAccessAccountFallback({ + accountId, + onAccountIdChange, +}: { + accountId: string + onAccountIdChange: (accountId: string) => void +}) { + const invalid = accountId !== "" && !ACCOUNT_ID_RE.test(accountId) + return ( + + + + + { + onAccountIdChange(event.target.value) + }} + placeholder="123456789012" + value={accountId} + /> +

+ {invalid + ? "Enter a 12-digit numeric account ID." + : "Enter a 12-digit account ID — account list unavailable."} +

+
+ ) +} + +function ModelAccessBody({ + accountId, + entries, + grantedModelIds, +}: { + accountId: string + entries: AdminCatalogEntry[] + grantedModelIds: Set +}) { + if (accountId === "") { + return ( +

+ Enter an account ID to view and manage its model access. +

+ ) + } + if (entries.length === 0) { + return

No models found.

+ } + return ( + + ) +} + +export function ModelAccessPage() { + const [accountId, setAccountId] = useState("") + + const accountsQuery = useQuery(adminListAccountsQueryOptions) + const accounts = (accountsQuery.data?.accounts ?? []).filter( + (account) => account.accountId !== GLOBAL_ACCOUNT_ID, + ) + const pickerAvailable = accountsQuery.isSuccess && accounts.length > 0 + + const validAccountId = pickerAvailable + ? accountId !== "" + : ACCOUNT_ID_RE.test(accountId) + const effectiveAccountId = validAccountId ? accountId : "" + + const { data: catalogData } = useQuery(adminOchreCatalogQueryOptions) + const { data: accessData } = useQuery( + adminModelAccessQueryOptions(effectiveAccountId), + ) + + const entries = (catalogData?.entries ?? []).toSorted((a, b) => + a.modelName.localeCompare(b.modelName), + ) + const grantedModelIds = new Set(accessData?.ModelIds) + + return ( + <> + + + +
+ {pickerAvailable ? ( + + ) : ( + + )} +
+ +
+
+ + ) +} diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/list-model-access/index.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/list-model-access/index.tsx new file mode 100644 index 000000000..d1c17d412 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(model-access)/list-model-access/index.tsx @@ -0,0 +1,24 @@ +import { createFileRoute, redirect } from "@tanstack/react-router" + +import { useAdmin } from "@/contexts/admin-context" + +import { ModelAccessPage } from "../-components/model-access-page" + +export const Route = createFileRoute( + "/_auth/bedrock/(model-access)/list-model-access/", +)({ + head: () => ({ + meta: [{ title: "Model Access | Ochre | Mulga" }], + }), + component: RouteComponent, +}) + +function RouteComponent() { + const { isAdmin } = useAdmin() + + if (!isAdmin) { + throw redirect({ to: "/" }) + } + + return +} diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(playground)/-components/playground-page.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(playground)/-components/playground-page.test.tsx index 9749c10c8..5e8303fd5 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(playground)/-components/playground-page.test.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/bedrock/(playground)/-components/playground-page.test.tsx @@ -162,7 +162,7 @@ describe("PlaygroundPage", () => { // A bare Enter sends without clicking the button. await user.type(input, "{Enter}") await expect(screen.findByText("hi")).resolves.toBeInTheDocument() - expect(mockSend).toHaveBeenCalledTimes(1) + expect(mockSend).toHaveBeenCalledOnce() }) it("renders assistant markdown as formatted HTML", async () => {