diff --git a/.vscode/settings.json b/.vscode/settings.json index 80dab2d35..1427e8c3d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,13 +24,13 @@ "editor.defaultFormatter": "golang.go", "editor.tabSize": 4 }, - "biome.configurationPath": "./hive-ui/frontend/biome.jsonc", + "biome.configurationPath": "./hive/services/hiveui/frontend/biome.jsonc", "biome.requireConfiguration": true, - "biome.lsp.bin": "./hive-ui/frontend/node_modules/.bin/biome", + "biome.lsp.bin": "./hive/services/hiveui/frontend/node_modules/.bin/biome", "editor.formatOnSave": true, "editor.formatOnPaste": true, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true, - "typescript.tsdk": "./hive-ui/frontend/node_modules/typescript/lib" + "typescript.tsdk": "./hive/services/hiveui/frontend/node_modules/typescript/lib" } diff --git a/Makefile b/Makefile index a058e62ec..fd5468703 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,6 @@ build-ui: # GO commands go_build: @echo "\n....Building $(GO_PROJECT_NAME)" - @if [ ! -f hive/services/hiveui/frontend/dist/index.html ]; then \ - mkdir -p hive/services/hiveui/frontend/dist && \ - echo 'Hive UI

Hive UI

Frontend not built. Run make build-ui

' > hive/services/hiveui/frontend/dist/index.html; \ - fi GOEXPERIMENT=greenteagc go build $(GO_BUILD_MOD) -ldflags "-s -w" -o ./bin/$(GO_PROJECT_NAME) cmd/hive/main.go go_run: diff --git a/hive/services/hiveui/README.md b/hive/services/hiveui/README.md index 06b1223c7..b78cf769a 100644 --- a/hive/services/hiveui/README.md +++ b/hive/services/hiveui/README.md @@ -2,7 +2,9 @@ Full-stack application for managing Hive AWS compatible products (EC2, S3) -## Setup +## Development Setup + +Note: This is not needed for actually building hive-ui and running it. We commit the assets so that when you build hive, it will include hive-ui without you needing to install node and build frontend from source. 1. **Install Node.js using nvm** diff --git a/hive/services/hiveui/frontend/.gitignore b/hive/services/hiveui/frontend/.gitignore index 7585a98f0..a750da572 100644 --- a/hive/services/hiveui/frontend/.gitignore +++ b/hive/services/hiveui/frontend/.gitignore @@ -1,5 +1,4 @@ node_modules -dist .tanstack *.tsbuildinfo .pnpm-store diff --git a/hive/services/hiveui/frontend/dist/assets/_.js b/hive/services/hiveui/frontend/dist/assets/_.js new file mode 100644 index 000000000..0c9fd33d4 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_.js @@ -0,0 +1 @@ +import{c as k,aN as v,aO as $,aJ as B,j as s,aI as C,aP as P,aQ as y,aL as K}from"./index.js";import{u as F}from"./useSuspenseQuery.js";import{B as L}from"./back-link.js";import{F as O,O as S,U as I}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";import"./useMutation.js";function q(){const e=k.c(20),{bucket:n,_splat:b}=v.useParams(),a=$(b||""),{data:o}=F(B(n,a));let c;e[0]!==o.Contents?(c=o.Contents||[],e[0]=o.Contents,e[1]=c):c=e[1];const r=c;let h;e[2]!==o.CommonPrefixes?(h=o.CommonPrefixes||[],e[2]=o.CommonPrefixes,e[3]=h):h=e[3];const i=h,x=a.split("/").filter(Boolean),N=[{name:n,path:`/s3/ls/${n}`},...x.map((t,l)=>{const m=`${x.slice(0,l+1).join("/")}/`;return{name:t,path:`/s3/ls/${n}/${m}`}})],g=x.length>1?`/s3/ls/${n}/${x.slice(0,-1).join("/")}/`:`/s3/ls/${n}`;let d;e[4]!==g?(d=s.jsx(L,{to:g,children:"Back"}),e[4]=g,e[5]=d):d=e[5];let f;e[6]!==n||e[7]!==a?(f=s.jsx(I,{bucket:n,prefix:a}),e[6]=n,e[7]=a,e[8]=f):f=e[8];let p;e[9]!==n||e[10]!==i||e[11]!==a?(p=i.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:i.map(t=>{if(!t.Prefix)return null;const l=C(P(t.Prefix,a)),m=y(t.Prefix,a);return s.jsx(O,{bucketName:n,folderName:l,fullPrefix:m},t.Prefix)})})]}),e[9]=n,e[10]=i,e[11]=a,e[12]=p):p=e[12];let u;e[13]!==n||e[14]!==r||e[15]!==a?(u=r.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),r.map(t=>{if(!t.Key)return null;const l=P(t.Key,a),m=y(t.Key,a);return s.jsx(S,{bucketName:n,displayName:l,fullKey:m,object:t},t.Key)})]}),e[13]=n,e[14]=r,e[15]=a,e[16]=u):u=e[16];let j;return e[17]!==i.length||e[18]!==r.length?(j=r.length===0&&i.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this folder."}),e[17]=i.length,e[18]=r.length,e[19]=j):j=e[19],s.jsxs(s.Fragment,{children:[d,s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:N.map((t,l)=>s.jsxs("div",{className:"flex items-center gap-2",children:[l>0&&s.jsx("span",{children:"/"}),l===N.length-1?s.jsx("span",{className:"text-foreground",children:t.name}):s.jsx(K,{className:"hover:text-foreground",to:t.path,children:t.name})]},t.path))}),f]})}),p,u,j]})}export{q as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id.js b/hive/services/hiveui/frontend/dist/assets/_id.js new file mode 100644 index 000000000..12992b5d0 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id.js @@ -0,0 +1 @@ +import{c as B,bk as _,bl as K,j as l,bm as k}from"./index.js";import{u as E}from"./useSuspenseQuery.js";import{B as C}from"./back-link.js";import{D as j,a as s}from"./detail-row.js";import{P as N}from"./page-heading.js";import{B as R}from"./badge.js";function Y(){const e=B.c(43),{id:V}=_.useParams();let v;e[0]!==V?(v=k(V),e[0]=V,e[1]=v):v=e[1];const{data:g}=E(v),t=g.Volumes?.[0];if(!t?.VolumeId){let S;return e[2]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsxs(l.Fragment,{children:[l.jsx(C,{to:"/ec2/describe-volumes",children:"Back to volumes"}),l.jsx("p",{className:"text-muted-foreground",children:"Volume not found."})]}),e[2]=S):S=e[2],S}let p;e[3]!==t.CreateTime?(p=K(t.CreateTime),e[3]=t.CreateTime,e[4]=p):p=e[4];const T=p;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(C,{to:"/ec2/describe-volumes",children:"Back to volumes"}),e[5]=h):h=e[5];let a;e[6]!==t.State?(a=t.State?l.jsx(R,{variant:t.State==="available"?"default":"outline",children:t.State}):void 0,e[6]=t.State,e[7]=a):a=e[7];let i;e[8]!==a||e[9]!==t.VolumeId?(i=l.jsx(N,{actions:a,subtitle:"EC2 Volume Details",title:t.VolumeId}),e[8]=a,e[9]=t.VolumeId,e[10]=i):i=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y=l.jsx(j.Header,{children:"Volume Information"}),e[11]=y):y=e[11];let o;e[12]!==t.VolumeId?(o=l.jsx(s,{label:"Volume ID",value:t.VolumeId}),e[12]=t.VolumeId,e[13]=o):o=e[13];const D=`${t.Size} GiB`;let n;e[14]!==D?(n=l.jsx(s,{label:"Size",value:D}),e[14]=D,e[15]=n):n=e[15];let m;e[16]!==t.VolumeType?(m=l.jsx(s,{label:"Volume Type",value:t.VolumeType}),e[16]=t.VolumeType,e[17]=m):m=e[17];let r;e[18]!==t.State?(r=l.jsx(s,{label:"State",value:t.State}),e[18]=t.State,e[19]=r):r=e[19];let c;e[20]!==t.AvailabilityZone?(c=l.jsx(s,{label:"Availability Zone",value:t.AvailabilityZone}),e[20]=t.AvailabilityZone,e[21]=c):c=e[21];let u;e[22]!==T?(u=l.jsx(s,{label:"Create Time",value:T}),e[22]=T,e[23]=u):u=e[23];const A=t.Encrypted?"Yes":"No";let d;e[24]!==A?(d=l.jsx(s,{label:"Encrypted",value:A}),e[24]=A,e[25]=d):d=e[25];let f;e[26]!==t.KmsKeyId?(f=l.jsx(s,{label:"KMS Key ID",value:t.KmsKeyId}),e[26]=t.KmsKeyId,e[27]=f):f=e[27];let x;e[28]!==r||e[29]!==c||e[30]!==u||e[31]!==d||e[32]!==f||e[33]!==o||e[34]!==n||e[35]!==m?(x=l.jsxs(j,{children:[y,l.jsxs(j.Content,{children:[o,n,m,r,c,u,d,f]})]}),e[28]=r,e[29]=c,e[30]=u,e[31]=d,e[32]=f,e[33]=o,e[34]=n,e[35]=m,e[36]=x):x=e[36];let b;e[37]!==t.Attachments?(b=t.Attachments&&t.Attachments.length>0&&l.jsxs(j,{children:[l.jsx(j.Header,{children:"Attachments"}),l.jsx(j.Content,{children:t.Attachments.map(Z)})]}),e[37]=t.Attachments,e[38]=b):b=e[38];let I;return e[39]!==x||e[40]!==b||e[41]!==i?(I=l.jsxs(l.Fragment,{children:[h,l.jsxs("div",{className:"space-y-6",children:[i,x,b]})]}),e[39]=x,e[40]=b,e[41]=i,e[42]=I):I=e[42],I}function Z(e){return l.jsxs("div",{className:"space-y-2 border-b pb-2 last:border-0 last:pb-0",children:[l.jsx(s,{label:"Instance ID",value:e.InstanceId}),l.jsx(s,{label:"Device",value:e.Device}),l.jsx(s,{label:"Status",value:e.State}),l.jsx(s,{label:"Attach Time",value:K(e.AttachTime)}),l.jsx(s,{label:"Delete on Termination",value:e.DeleteOnTermination?"Yes":"No"})]},e.InstanceId)}export{Y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id2.js b/hive/services/hiveui/frontend/dist/assets/_id2.js new file mode 100644 index 000000000..364d71381 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id2.js @@ -0,0 +1 @@ +import{c as O,bn as Q,u as L,r as M,bl as V,j as t,bo as $,B as q}from"./index.js";import{u as G}from"./useSuspenseQuery.js";import{B as R}from"./back-link.js";import{D as x,a as j}from"./detail-row.js";import{P as J}from"./page-heading.js";import{b as U,c as W,d as X,h as Y,a as Z,e as ee,f as te,g as se}from"./alert-dialog.js";import{c as ie}from"./ec2.js";import{T as ae}from"./trash-2.js";import"./useMutation.js";function he(){const e=O.c(54),{id:a}=Q.useParams(),S=L();let K;e[0]!==a?(K=$(a),e[0]=a,e[1]=K):K=e[1];const{data:z}=G(K),s=z.KeyPairs?.[0],i=ie(),[w,H]=M.useState(!1);let D;e[2]!==i||e[3]!==a||e[4]!==S?(D=async()=>{await i.mutateAsync(a),S({to:"/ec2/describe-key-pairs"})},e[2]=i,e[3]=a,e[4]=S,e[5]=D):D=e[5];const F=D;if(!s?.KeyPairId){let v;return e[6]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(t.Fragment,{children:[t.jsx(R,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),t.jsx("p",{className:"text-muted-foreground",children:"Key pair not found."})]}),e[6]=v):v=e[6],v}let b;e[7]!==s.CreateTime?(b=V(s.CreateTime),e[7]=s.CreateTime,e[8]=b):b=e[8];const B=b;let P;e[9]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(R,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),e[9]=P):P=e[9];let T;e[10]===Symbol.for("react.memo_cache_sentinel")?(T=()=>H(!0),e[10]=T):T=e[10];let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs(q,{onClick:T,size:"sm",variant:"destructive",children:[t.jsx(ae,{className:"size-4"}),"Delete"]}),e[11]=_):_=e[11];const I=s.KeyName??"";let l;e[12]!==I?(l=t.jsx(J,{actions:_,subtitle:"EC2 Key Pair Details",title:I}),e[12]=I,e[13]=l):l=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(x.Header,{children:"Key Pair Information"}),e[14]=k):k=e[14];let r;e[15]!==s.KeyName?(r=t.jsx(j,{label:"Key Name",value:s.KeyName}),e[15]=s.KeyName,e[16]=r):r=e[16];let n;e[17]!==s.KeyPairId?(n=t.jsx(j,{label:"Key Pair ID",value:s.KeyPairId}),e[17]=s.KeyPairId,e[18]=n):n=e[18];let o;e[19]!==s.KeyType?(o=t.jsx(j,{label:"Key Type",value:s.KeyType}),e[19]=s.KeyType,e[20]=o):o=e[20];let c;e[21]!==s.KeyFingerprint?(c=t.jsx(j,{label:"Key Fingerprint",value:s.KeyFingerprint}),e[21]=s.KeyFingerprint,e[22]=c):c=e[22];let m;e[23]!==B?(m=t.jsx(j,{label:"Creation Date",value:B}),e[23]=B,e[24]=m):m=e[24];let y;e[25]!==n||e[26]!==o||e[27]!==c||e[28]!==m||e[29]!==r?(y=t.jsxs(x,{children:[k,t.jsxs(x.Content,{children:[r,n,o,c,m]})]}),e[25]=n,e[26]=o,e[27]=c,e[28]=m,e[29]=r,e[30]=y):y=e[30];let d;e[31]!==s.Tags?(d=s.Tags&&s.Tags.length>0&&t.jsxs(x,{children:[t.jsx(x.Header,{children:"Tags"}),t.jsx(x.Content,{children:s.Tags.map(le)})]}),e[31]=s.Tags,e[32]=d):d=e[32];let f;e[33]!==y||e[34]!==d||e[35]!==l?(f=t.jsxs("div",{className:"space-y-6",children:[l,y,d]}),e[33]=y,e[34]=d,e[35]=l,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Z,{children:"Delete Key Pair"}),e[37]=C):C=e[37];let p;e[38]!==s.KeyName?(p=t.jsxs(U,{children:[C,t.jsxs(W,{children:['Are you sure you want to delete the key pair "',s.KeyName,'"? This action cannot be undone. Any instances using this key pair will no longer be able to be accessed with it.']})]}),e[38]=s.KeyName,e[39]=p):p=e[39];let A;e[40]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(ee,{children:"Cancel"}),e[40]=A):A=e[40];const E=i.isPending?"Deleting…":"Delete";let h;e[41]!==i.isPending||e[42]!==F||e[43]!==E?(h=t.jsxs(X,{children:[A,t.jsx(Y,{disabled:i.isPending,onClick:F,children:E})]}),e[41]=i.isPending,e[42]=F,e[43]=E,e[44]=h):h=e[44];let u;e[45]!==p||e[46]!==h?(u=t.jsxs(te,{children:[p,h]}),e[45]=p,e[46]=h,e[47]=u):u=e[47];let g;e[48]!==w||e[49]!==u?(g=t.jsx(se,{onOpenChange:H,open:w,children:u}),e[48]=w,e[49]=u,e[50]=g):g=e[50];let N;return e[51]!==f||e[52]!==g?(N=t.jsxs(t.Fragment,{children:[P,f,g]}),e[51]=f,e[52]=g,e[53]=N):N=e[53],N}function le(e){return t.jsx(j,{label:e.Key||"",value:e.Value},e.Key)}export{he as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id3.js b/hive/services/hiveui/frontend/dist/assets/_id3.js new file mode 100644 index 000000000..d8888d065 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id3.js @@ -0,0 +1 @@ +import{g as B,c as E,j as s,B as A,bz as $,bl as F,bA as O,bB as Q}from"./index.js";import{u as L}from"./useSuspenseQuery.js";import{B as M}from"./back-link.js";import{D,a as v}from"./detail-row.js";import{P as H}from"./page-heading.js";import{S as Z}from"./state-badge.js";import{A as q}from"./ami-details.js";import{d as G,e as J,f as K,g as U}from"./ec2.js";import{T as V}from"./trash-2.js";import"./useMutation.js";const W=[["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"}]],X=B("pause",W);const Y=[["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"}]],ee=B("play",Y);const te=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],se=B("rotate-cw",te),ne=["pending","stopping","shutting-down","terminated"];function ae(e){const t=E.c(21),{instanceId:c,state:a}=e,n=G(),u=J(),r=K(),x=U();if(ne.includes(a||"")&&a!=="terminated"){let i;return t[0]!==a?(i=s.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:s.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Instance is ",a,". Actions will be available once the operation completes."]})}),t[0]=a,t[1]=i):i=t[1],i}if(a==="terminated"){let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"rounded-lg border bg-muted/50 p-4",children:s.jsx("p",{className:"text-center text-muted-foreground text-sm",children:"This instance has been terminated and cannot be managed."})}),t[2]=i):i=t[2],i}let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("h2",{className:"mb-4 font-semibold",children:"Instance Actions"}),t[3]=f):f=t[3];let d;t[4]!==c||t[5]!==n||t[6]!==a?(d=a==="stopped"&&s.jsxs(A,{disabled:n.isPending,onClick:()=>n.mutate(c),size:"sm",variant:"default",children:[s.jsx(ee,{className:"size-4"}),n.isPending?"Starting":"Start"]}),t[4]=c,t[5]=n,t[6]=a,t[7]=d):d=t[7];let l;t[8]!==c||t[9]!==r||t[10]!==a||t[11]!==u?(l=a==="running"&&s.jsxs(s.Fragment,{children:[s.jsxs(A,{disabled:u.isPending,onClick:()=>u.mutate(c),size:"sm",variant:"outline",children:[s.jsx(X,{className:"size-4"}),u.isPending?"Stopping":"Stop"]}),s.jsxs(A,{disabled:r.isPending,onClick:()=>r.mutate(c),size:"sm",variant:"outline",children:[s.jsx(se,{className:"size-4"}),r.isPending?"Rebooting":"Reboot"]})]}),t[8]=c,t[9]=r,t[10]=a,t[11]=u,t[12]=l):l=t[12];let m;t[13]!==c||t[14]!==a||t[15]!==x?(m=(a==="stopped"||a==="running")&&s.jsxs(A,{disabled:x.isPending,onClick:()=>x.mutate(c),size:"sm",variant:"destructive",children:[s.jsx(V,{className:"size-4"}),x.isPending?"Terminating":"Terminate"]}),t[13]=c,t[14]=a,t[15]=x,t[16]=m):m=t[16];let o;return t[17]!==d||t[18]!==l||t[19]!==m?(o=s.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[f,s.jsxs("div",{className:"flex flex-wrap gap-2",children:[d,l,m]})]}),t[17]=d,t[18]=l,t[19]=m,t[20]=o):o=t[20],o}function pe(){const e=E.c(45),{id:t}=$.useParams();let c;e[0]!==t?(c=O(t),e[0]=t,e[1]=c):c=e[1];const{data:a}=L(c),n=a.Reservations?.[0]?.Instances?.[0],u=n?.ImageId;let r;e[2]!==u?(r=Q(u),e[2]=u,e[3]=r):r=e[3];const{data:x}=L(r),_=x?.Images?.[0];if(!n?.InstanceId){let C;return e[4]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsxs(s.Fragment,{children:[s.jsx(M,{to:"/ec2/describe-instances",children:"Back to instances"}),s.jsx("p",{className:"text-muted-foreground",children:"Instance not found."})]}),e[4]=C):C=e[4],C}let f;e[5]!==n.LaunchTime?(f=F(n.LaunchTime),e[5]=n.LaunchTime,e[6]=f):f=e[6];const d=f;let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(M,{to:"/ec2/describe-instances",children:"Back to instances"}),e[7]=l):l=e[7];const m=n.State?.Name;let o;e[8]!==m?(o=s.jsx(Z,{state:m}),e[8]=m,e[9]=o):o=e[9];let i;e[10]!==n.InstanceId||e[11]!==o?(i=s.jsx(H,{actions:o,subtitle:"EC2 Instance Details",title:n.InstanceId}),e[10]=n.InstanceId,e[11]=o,e[12]=i):i=e[12];const w=n.State?.Name;let p;e[13]!==n.InstanceId||e[14]!==w?(p=s.jsx(ae,{instanceId:n.InstanceId,state:w}),e[13]=n.InstanceId,e[14]=w,e[15]=p):p=e[15];let k;e[16]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(D.Header,{children:"Instance Information"}),e[16]=k):k=e[16];let I;e[17]!==n.InstanceId?(I=s.jsx(v,{label:"Instance ID",value:n.InstanceId}),e[17]=n.InstanceId,e[18]=I):I=e[18];let h;e[19]!==n.InstanceType?(h=s.jsx(v,{label:"Instance Type",value:n.InstanceType}),e[19]=n.InstanceType,e[20]=h):h=e[20];const z=n.State?.Name;let g;e[21]!==z?(g=s.jsx(v,{label:"Instance State",value:z}),e[21]=z,e[22]=g):g=e[22];let b;e[23]!==n.State?.Code?(b=n.State?.Code?.toString(),e[23]=n.State?.Code,e[24]=b):b=e[24];let j;e[25]!==b?(j=s.jsx(v,{label:"State Code",value:b}),e[25]=b,e[26]=j):j=e[26];let S;e[27]!==d?(S=s.jsx(v,{label:"Launch Time",value:d}),e[27]=d,e[28]=S):S=e[28];const R=n.Placement?.AvailabilityZone;let y;e[29]!==R?(y=s.jsx(v,{label:"Availability Zone",value:R}),e[29]=R,e[30]=y):y=e[30];let N;e[31]!==I||e[32]!==h||e[33]!==g||e[34]!==j||e[35]!==S||e[36]!==y?(N=s.jsxs(D,{children:[k,s.jsxs(D.Content,{children:[I,h,g,j,S,y]})]}),e[31]=I,e[32]=h,e[33]=g,e[34]=j,e[35]=S,e[36]=y,e[37]=N):N=e[37];let T;e[38]!==_?(T=_&&s.jsx(q,{image:_}),e[38]=_,e[39]=T):T=e[39];let P;return e[40]!==N||e[41]!==T||e[42]!==i||e[43]!==p?(P=s.jsxs(s.Fragment,{children:[l,s.jsxs("div",{className:"space-y-6",children:[i,p,N,T]})]}),e[40]=N,e[41]=T,e[42]=i,e[43]=p,e[44]=P):P=e[44],P}export{pe as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/_id4.js b/hive/services/hiveui/frontend/dist/assets/_id4.js new file mode 100644 index 000000000..9cfce32ca --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/_id4.js @@ -0,0 +1 @@ +import{c as g,bT as u,j as s,bB as p}from"./index.js";import{u as x}from"./useSuspenseQuery.js";import{B as d}from"./back-link.js";import{P as I}from"./page-heading.js";import{B as j}from"./badge.js";import{A as h}from"./ami-details.js";import"./detail-row.js";function E(){const e=g.c(14),{id:c}=u.useParams();let o;e[0]!==c?(o=p(c),e[0]=c,e[1]=o):o=e[1];const{data:f}=x(o),t=f?.Images?.[0];if(!t?.ImageId){let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(s.Fragment,{children:[s.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),s.jsx("p",{className:"text-muted-foreground",children:"Image not found."})]}),e[2]=n):n=e[2],n}let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(d,{to:"/ec2/describe-images",children:"Back to images"}),e[3]=r):r=e[3];let a;e[4]!==t.State?(a=t.State?s.jsx(j,{variant:t.State==="available"?"default":"outline",children:t.State}):void 0,e[4]=t.State,e[5]=a):a=e[5];let i;e[6]!==t.ImageId||e[7]!==a?(i=s.jsx(I,{actions:a,subtitle:"EC2 Image Details",title:t.ImageId}),e[6]=t.ImageId,e[7]=a,e[8]=i):i=e[8];let m;e[9]!==t?(m=s.jsx(h,{image:t,showExtendedDetails:!0}),e[9]=t,e[10]=m):m=e[10];let l;return e[11]!==i||e[12]!==m?(l=s.jsxs(s.Fragment,{children:[r,s.jsxs("div",{className:"space-y-6",children:[i,m]})]}),e[11]=i,e[12]=m,e[13]=l):l=e[13],l}export{E as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/alert-dialog.js b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js new file mode 100644 index 000000000..18376b2f3 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/alert-dialog.js @@ -0,0 +1 @@ +import{bp as z,Z as j,bq as C,br as v,r as N,j as r,bs as h,c as d,a as f,bt as A,B as x,bu as y,bv as w,bw as $,bx as P,by as R}from"./index.js";function k(s){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:l,onOpenChangeComplete:o,actionsRef:c,handle:n,triggerId:i,defaultTriggerId:u=null}=s,p=z(),m=!!p,g=j(()=>n?.store??new C({open:t??a,activeTriggerId:i!==void 0?i:u,modal:!0,disablePointerDismissal:!0,nested:m,role:"alertdialog"})).current;g.useControlledProp("open",t,a),g.useControlledProp("activeTriggerId",i,u),g.useSyncedValue("nested",m),g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",o);const D=g.useState("payload");v({store:g,actionsRef:c,parentContext:p?.store.context});const b=N.useMemo(()=>({store:g}),[g]);return r.jsx(h.Provider,{value:b,children:typeof e=="function"?e({payload:D}):e})}function _(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(k,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function I(s){const e=d.c(4);let t;e[0]!==s?({...t}=s,e[0]=s,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(P,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function O(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx(R,{className:l,"data-slot":"alert-dialog-overlay",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function B(s){const e=d.c(11);let t,a,l;e[0]!==s?({className:t,size:l,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l):(t=e[1],a=e[2],l=e[3]);const o=l===void 0?"default":l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(O,{}),e[4]=c):c=e[4];let n;e[5]!==t?(n=f("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-background p-4 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-sm",t),e[5]=t,e[6]=n):n=e[6];let i;return e[7]!==a||e[8]!==o||e[9]!==n?(i=r.jsxs(I,{children:[c,r.jsx($,{className:n,"data-size":o,"data-slot":"alert-dialog-content",...a})]}),e[7]=a,e[8]=o,e[9]=n,e[10]=i):i=e[10],i}function S(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx("div",{className:l,"data-slot":"alert-dialog-header",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function E(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx("div",{className:l,"data-slot":"alert-dialog-footer",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function M(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx("div",{className:l,"data-slot":"alert-dialog-media",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function V(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx(y,{className:l,"data-slot":"alert-dialog-title",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function q(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f("text-balance text-muted-foreground text-xs/relaxed md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx(A,{className:l,"data-slot":"alert-dialog-description",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function F(s){const e=d.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let l;e[3]!==t?(l=f(t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=r.jsx(x,{className:l,"data-slot":"alert-dialog-action",...a}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function H(s){const e=d.c(14);let t,a,l,o;e[0]!==s?({className:t,variant:l,size:o,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=l,e[4]=o):(t=e[1],a=e[2],l=e[3],o=e[4]);const c=l===void 0?"outline":l,n=o===void 0?"default":o;let i;e[5]!==t?(i=f(t),e[5]=t,e[6]=i):i=e[6];let u;e[7]!==n||e[8]!==c?(u=r.jsx(x,{size:n,variant:c}),e[7]=n,e[8]=c,e[9]=u):u=e[9];let p;return e[10]!==a||e[11]!==i||e[12]!==u?(p=r.jsx(w,{className:i,"data-slot":"alert-dialog-cancel",render:u,...a}),e[10]=a,e[11]=i,e[12]=u,e[13]=p):p=e[13],p}export{M as A,V as a,S as b,q as c,E as d,H as e,B as f,_ as g,F as h}; diff --git a/hive/services/hiveui/frontend/dist/assets/ami-details.js b/hive/services/hiveui/frontend/dist/assets/ami-details.js new file mode 100644 index 000000000..53b8ea93b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/ami-details.js @@ -0,0 +1 @@ +import{c as S,bl as M,j as t}from"./index.js";import{D as T,a}from"./detail-row.js";function C(i){const e=S.c(55),{image:l,showExtendedDetails:P}=i,s=P===void 0?!1:P;let y;e[0]!==l.CreationDate?(y=M(l.CreationDate),e[0]=l.CreationDate,e[1]=y):y=e[1];const V=y,R=s?"AMI Information":"AMI Details";let o;e[2]!==R?(o=t.jsx(T.Header,{children:R}),e[2]=R,e[3]=o):o=e[3];let r;e[4]!==l.ImageId?(r=t.jsx(a,{label:"AMI ID",value:l.ImageId}),e[4]=l.ImageId,e[5]=r):r=e[5];let c;e[6]!==l.Name?(c=t.jsx(a,{label:"AMI Name",value:l.Name}),e[6]=l.Name,e[7]=c):c=e[7];let n;e[8]!==l.Description?(n=t.jsx(a,{label:"Description",value:l.Description}),e[8]=l.Description,e[9]=n):n=e[9];let u;e[10]!==l.Architecture?(u=t.jsx(a,{label:"Architecture",value:l.Architecture}),e[10]=l.Architecture,e[11]=u):u=e[11];let D;e[12]!==l.VirtualizationType?(D=t.jsx(a,{label:"Virtualization Type",value:l.VirtualizationType}),e[12]=l.VirtualizationType,e[13]=D):D=e[13];const A=l.Platform||"Linux";let v;e[14]!==A?(v=t.jsx(a,{label:"Platform",value:A}),e[14]=A,e[15]=v):v=e[15];let m;e[16]!==l.PlatformDetails?(m=t.jsx(a,{label:"Platform Details",value:l.PlatformDetails}),e[16]=l.PlatformDetails,e[17]=m):m=e[17];let x;e[18]!==l.ImageType?(x=t.jsx(a,{label:"Image Type",value:l.ImageType}),e[18]=l.ImageType,e[19]=x):x=e[19];let b;e[20]!==l.RootDeviceType?(b=t.jsx(a,{label:"Root Device Type",value:l.RootDeviceType}),e[20]=l.RootDeviceType,e[21]=b):b=e[21];let f;e[22]!==l.RootDeviceName?(f=t.jsx(a,{label:"Root Device Name",value:l.RootDeviceName}),e[22]=l.RootDeviceName,e[23]=f):f=e[23];let j;e[24]!==l.OwnerId?(j=t.jsx(a,{label:"Owner",value:l.OwnerId}),e[24]=l.OwnerId,e[25]=j):j=e[25];let d;e[26]!==l.State?(d=t.jsx(a,{label:"State",value:l.State}),e[26]=l.State,e[27]=d):d=e[27];let I;e[28]!==V||e[29]!==l.Public||e[30]!==s?(I=s&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Creation Date",value:V}),t.jsx(a,{label:"Public",value:l.Public?"Yes":"No"})]}),e[28]=V,e[29]=l.Public,e[30]=s,e[31]=I):I=e[31];let h;e[32]!==v||e[33]!==m||e[34]!==x||e[35]!==b||e[36]!==f||e[37]!==j||e[38]!==d||e[39]!==I||e[40]!==r||e[41]!==c||e[42]!==n||e[43]!==u||e[44]!==D?(h=t.jsxs(T.Content,{children:[r,c,n,u,D,v,m,x,b,f,j,d,I]}),e[32]=v,e[33]=m,e[34]=x,e[35]=b,e[36]=f,e[37]=j,e[38]=d,e[39]=I,e[40]=r,e[41]=c,e[42]=n,e[43]=u,e[44]=D,e[45]=h):h=e[45];let N;e[46]!==h||e[47]!==o?(N=t.jsxs(T,{children:[o,h]}),e[46]=h,e[47]=o,e[48]=N):N=e[48];let p;e[49]!==l.BlockDeviceMappings||e[50]!==s?(p=s&&l.BlockDeviceMappings&&l.BlockDeviceMappings.length>0&&l.BlockDeviceMappings.map(w),e[49]=l.BlockDeviceMappings,e[50]=s,e[51]=p):p=e[51];let E;return e[52]!==N||e[53]!==p?(E=t.jsxs(t.Fragment,{children:[N,p]}),e[52]=N,e[53]=p,e[54]=E):E=e[54],E}function w(i){return t.jsxs(T,{children:[t.jsxs(T.Header,{children:["Block Device: ",i.DeviceName]}),t.jsxs(T.Content,{children:[t.jsx(a,{label:"Device Name",value:i.DeviceName}),i.Ebs&&t.jsxs(t.Fragment,{children:[t.jsx(a,{label:"Volume Size",value:i.Ebs.VolumeSize?`${i.Ebs.VolumeSize} GB`:void 0}),t.jsx(a,{label:"Volume Type",value:i.Ebs.VolumeType}),t.jsx(a,{label:"Delete On Termination",value:i.Ebs.DeleteOnTermination?"Yes":"No"}),t.jsx(a,{label:"Encrypted",value:i.Ebs.Encrypted?"Yes":"No"}),i.Ebs.SnapshotId&&t.jsx(a,{label:"Snapshot ID",value:i.Ebs.SnapshotId})]}),i.VirtualName&&t.jsx(a,{label:"Virtual Name",value:i.VirtualName})]})]},i.DeviceName)}export{C as A}; diff --git a/hive/services/hiveui/frontend/dist/assets/back-link.js b/hive/services/hiveui/frontend/dist/assets/back-link.js new file mode 100644 index 000000000..544a4d751 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/back-link.js @@ -0,0 +1 @@ +import{g as o,c as r,j as l,aL as a}from"./index.js";const m=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],x=o("arrow-left",m);function p(i){const e=r.c(7);let s,t;e[0]!==i?({children:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(x,{className:"size-4"}),e[3]=n):n=e[3];let c;return e[4]!==s||e[5]!==t?(c=l.jsxs(a,{className:"mb-6 inline-flex items-center gap-2 text-sm",...t,children:[n,s]}),e[4]=s,e[5]=t,e[6]=c):c=e[6],c}export{p as B}; diff --git a/hive/services/hiveui/frontend/dist/assets/badge.js b/hive/services/hiveui/frontend/dist/assets/badge.js new file mode 100644 index 000000000..7c56c667e --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/badge.js @@ -0,0 +1 @@ +import{c as g,a5 as b,a as f,b as p,bU as m}from"./index.js";const h=p("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-[0.625rem] transition-all transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-2.5!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border bg-input/20 text-foreground dark:bg-input/30 [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function y(d){const e=g.c(13);let t,i,a,s,r;if(e[0]!==d){const{className:l,variant:u,render:v,...c}=d;t=v,r=u===void 0?"default":u,s=m,i="span",a=b({className:f(h({className:l,variant:r}))},c),e[0]=d,e[1]=t,e[2]=i,e[3]=a,e[4]=s,e[5]=r}else t=e[1],i=e[2],a=e[3],s=e[4],r=e[5];let n;e[6]!==r?(n={slot:"badge",variant:r},e[6]=r,e[7]=n):n=e[7];let o;return e[8]!==t||e[9]!==i||e[10]!==a||e[11]!==n?(o={defaultTagName:i,props:a,render:t,state:n},e[8]=t,e[9]=i,e[10]=a,e[11]=n,e[12]=o):o=e[12],s(o)}export{y as B}; diff --git a/hive/services/hiveui/frontend/dist/assets/check.js b/hive/services/hiveui/frontend/dist/assets/check.js new file mode 100644 index 000000000..054ae9869 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/check.js @@ -0,0 +1 @@ +import{g as c}from"./index.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C}; diff --git a/hive/services/hiveui/frontend/dist/assets/create-key-pair.js b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js new file mode 100644 index 000000000..0330cee28 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/create-key-pair.js @@ -0,0 +1 @@ +import{g as O,c as L,u as T,r as R,j as a,B,h as U}from"./index.js";import{a as I,u as z,I as Y}from"./zod.js";import{B as $}from"./back-link.js";import{E as H,L as q}from"./error-banner.js";import{P as G}from"./page-heading.js";import{a as J}from"./ec2.js";import{A as Q,a as V,b as W,c as X,d as Z,e as ee,f as te,g as ae}from"./alert-dialog.js";import{T as se}from"./textarea.js";import{C as le}from"./check.js";import{D as ie}from"./download.js";import"./useMutation.js";const re=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],oe=O("triangle-alert",re),ne=2e3;function ce(e){const t=L.c(36),{open:s,keyName:l,keyMaterial:d}=e,g=T(),[S,_]=R.useState(!1);let A;t[0]!==d?(A=async()=>{await navigator.clipboard.writeText(d),_(!0),setTimeout(()=>_(!1),ne)},t[0]=d,t[1]=A):A=t[1];const b=A;let N;t[2]!==d||t[3]!==l?(N=()=>{const P=new Blob([d],{type:"text/plain"}),k=URL.createObjectURL(P),u=document.createElement("a");u.href=k,u.download=`${l}.pem`,u.click(),URL.revokeObjectURL(k)},t[2]=d,t[3]=l,t[4]=N):N=t[4];const C=N;let v;t[5]!==g?(v=()=>{g({to:"/ec2/describe-key-pairs"})},t[5]=g,t[6]=v):v=t[6];const w=v;let j,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(Q,{children:a.jsx(oe,{className:"text-destructive"})}),f=a.jsx(V,{children:"Save Your Private Key"}),t[7]=j,t[8]=f):(j=t[7],f=t[8]);let i;t[9]!==l?(i=a.jsxs(W,{children:[j,f,a.jsxs(X,{children:["This is your only chance to save the private key file for"," ",a.jsx("strong",{children:l}),". Please download or copy it now. You won't be able to retrieve it again."]})]}),t[9]=l,t[10]=i):i=t[10];let y;t[11]!==d?(y=a.jsx(se,{className:"font-mono text-xs",readOnly:!0,rows:12,value:d}),t[11]=d,t[12]=y):y=t[12];let r;t[13]!==S?(r=S?a.jsxs(a.Fragment,{children:[a.jsx(le,{className:"mr-2 size-4"}),"Copied!"]}):"Copy to Clipboard",t[13]=S,t[14]=r):r=t[14];let o;t[15]!==b||t[16]!==r?(o=a.jsx(B,{className:"flex-1",onClick:b,type:"button",variant:"outline",children:r}),t[15]=b,t[16]=r,t[17]=o):o=t[17];let p;t[18]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ie,{className:"mr-2 size-4"}),t[18]=p):p=t[18];let n;t[19]!==C?(n=a.jsxs(B,{className:"flex-1",onClick:C,type:"button",variant:"outline",children:[p,"Download .pem File"]}),t[19]=C,t[20]=n):n=t[20];let x;t[21]!==n||t[22]!==o?(x=a.jsxs("div",{className:"flex gap-2",children:[o,n]}),t[21]=n,t[22]=o,t[23]=x):x=t[23];let c;t[24]!==x||t[25]!==y?(c=a.jsxs("div",{className:"space-y-3",children:[y,x]}),t[24]=x,t[25]=y,t[26]=c):c=t[26];let m;t[27]!==w?(m=a.jsx(Z,{children:a.jsx(ee,{onClick:w,children:"Close and Continue"})}),t[27]=w,t[28]=m):m=t[28];let h;t[29]!==c||t[30]!==m||t[31]!==i?(h=a.jsxs(te,{className:"max-w-2xl",children:[i,c,m]}),t[29]=c,t[30]=m,t[31]=i,t[32]=h):h=t[32];let D;return t[33]!==s||t[34]!==h?(D=a.jsx(ae,{open:s,children:h}),t[33]=s,t[34]=h,t[35]=D):D=t[35],D}function be(){const e=L.c(41),t=T(),s=J(),[l,d]=R.useState(null);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:I(U)},e[0]=g):g=e[0];const{handleSubmit:S,register:_,formState:A}=z(g),{errors:b,isSubmitting:N}=A;let C;e[1]!==s?(C=async E=>{const F=await s.mutateAsync(E);F.KeyMaterial&&d({keyName:E.keyName,material:F.KeyMaterial})},e[1]=s,e[2]=C):C=e[2];const v=C;let w,j;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx($,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),j=a.jsx(G,{title:"Create Key Pair"}),e[3]=w,e[4]=j):(w=e[3],j=e[4]);let f;e[5]!==s.error?(f=s.error&&a.jsx(H,{error:s.error,msg:"Failed to create key pair"}),e[5]=s.error,e[6]=f):f=e[6];let i;e[7]!==S||e[8]!==v?(i=S(v),e[7]=S,e[8]=v,e[9]=i):i=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(q,{htmlFor:"keyName",children:"Key Pair Name"}),e[10]=y):y=e[10];let r;e[11]!==_?(r=_("keyName"),e[11]=_,e[12]=r):r=e[12];let o;e[13]!==r?(o=a.jsx(Y,{id:"keyName",placeholder:"my-key-pair…",...r}),e[13]=r,e[14]=o):o=e[14];let p;e[15]!==b.keyName?(p=b.keyName&&a.jsx("p",{className:"text-destructive text-sm",children:b.keyName.message}),e[15]=b.keyName,e[16]=p):p=e[16];let n;e[17]!==p||e[18]!==o?(n=a.jsxs("div",{className:"space-y-2",children:[y,o,p]}),e[17]=p,e[18]=o,e[19]=n):n=e[19];const x=N||s.isPending;let c;e[20]!==t?(c=()=>t({to:"/ec2/describe-key-pairs"}),e[20]=t,e[21]=c):c=e[21];let m;e[22]!==x||e[23]!==c?(m=a.jsx(B,{disabled:x,onClick:c,type:"button",variant:"outline",children:"Cancel"}),e[22]=x,e[23]=c,e[24]=m):m=e[24];const h=N||s.isPending,D=N||s.isPending?"Creating…":"Create Key Pair";let P;e[25]!==h||e[26]!==D?(P=a.jsx(B,{disabled:h,type:"submit",children:D}),e[25]=h,e[26]=D,e[27]=P):P=e[27];let k;e[28]!==m||e[29]!==P?(k=a.jsxs("div",{className:"flex gap-2",children:[m,P]}),e[28]=m,e[29]=P,e[30]=k):k=e[30];let u;e[31]!==n||e[32]!==k||e[33]!==i?(u=a.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:i,children:[n,k]}),e[31]=n,e[32]=k,e[33]=i,e[34]=u):u=e[34];let K;e[35]!==l?(K=l&&a.jsx(ce,{keyMaterial:l.material,keyName:l.keyName,open:!!l}),e[35]=l,e[36]=K):K=e[36];let M;return e[37]!==u||e[38]!==K||e[39]!==f?(M=a.jsxs(a.Fragment,{children:[w,j,f,u,K]}),e[37]=u,e[38]=K,e[39]=f,e[40]=M):M=e[40],M}export{be as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/detail-row.js b/hive/services/hiveui/frontend/dist/assets/detail-row.js new file mode 100644 index 000000000..d0a9972c5 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/detail-row.js @@ -0,0 +1 @@ +import{c as i,j as n}from"./index.js";function d(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"rounded-lg border bg-card",children:s}),e[0]=s,e[1]=t):t=e[1],t}function m(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"border-b p-4",children:n.jsx("h2",{className:"font-semibold",children:s})}),e[0]=s,e[1]=t):t=e[1],t}function f(l){const e=i.c(2),{children:s}=l;let t;return e[0]!==s?(t=n.jsx("div",{className:"grid gap-4 p-4 sm:grid-cols-2",children:s}),e[0]=s,e[1]=t):t=e[1],t}const x=Object.assign(d,{Header:m,Content:f});function j(l){const e=i.c(9),{label:s,value:t}=l;let r;e[0]!==s?(r=n.jsx("dt",{className:"text-muted-foreground text-sm",children:s}),e[0]=s,e[1]=r):r=e[1];let c;e[2]!==t?(c=t||n.jsx("span",{className:"text-muted-foreground",children:"—"}),e[2]=t,e[3]=c):c=e[3];let o;e[4]!==c?(o=n.jsx("dd",{className:"mt-1 font-mono text-sm",children:c}),e[4]=c,e[5]=o):o=e[5];let a;return e[6]!==r||e[7]!==o?(a=n.jsxs("div",{children:[r,o]}),e[6]=r,e[7]=o,e[8]=a):a=e[8],a}export{x as D,j as a}; diff --git a/hive/services/hiveui/frontend/dist/assets/download.js b/hive/services/hiveui/frontend/dist/assets/download.js new file mode 100644 index 000000000..39be8b7d8 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/download.js @@ -0,0 +1 @@ +import{g as o}from"./index.js";const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D}; diff --git a/hive/services/hiveui/frontend/dist/assets/ec2.js b/hive/services/hiveui/frontend/dist/assets/ec2.js new file mode 100644 index 000000000..18488043c --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/ec2.js @@ -0,0 +1 @@ +import{ba as c,bC as i,bc as o,bD as C,bE as p,bF as f,bG as E,bH as K,bI as b,bJ as P,bK as w,c as r,bh as u,bL as m,aM as l,ax as y}from"./index.js";import{u as d}from"./useMutation.js";class S extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","CreateKeyPair",{}).n("EC2Client","CreateKeyPairCommand").sc(C).build(){}class R extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","DeleteKeyPair",{}).n("EC2Client","DeleteKeyPairCommand").sc(p).build(){}class q extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","ImportKeyPair",{}).n("EC2Client","ImportKeyPairCommand").sc(f).build(){}class $ extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RebootInstances",{}).n("EC2Client","RebootInstancesCommand").sc(E).build(){}class g extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","RunInstances",{}).n("EC2Client","RunInstancesCommand").sc(K).build(){}class v extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StartInstances",{}).n("EC2Client","StartInstancesCommand").sc(b).build(){}class Q extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","StopInstances",{}).n("EC2Client","StopInstancesCommand").sc(P).build(){}class x extends c.classBuilder().ep(i).m(function(n,t,s,a){return[o(s,n.getEndpointParameterInstructions())]}).s("AmazonEC2","TerminateInstances",{}).n("EC2Client","TerminateInstancesCommand").sc(w).build(){}const T=/\s+/;function O(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:A,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],d(t)}async function A(e){const n=new v({InstanceIds:[e]});return await m().send(n)}function H(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:D,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],d(t)}async function D(e){const n=new Q({InstanceIds:[e]});return await m().send(n)}function h(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:F,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],d(t)}async function F(e){const n=new x({InstanceIds:[e]});return await m().send(n)}function j(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:_,onSuccess:()=>{n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],d(t)}async function _(e){const n=new $({InstanceIds:[e]});return await m().send(n)}function J(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:z,onSuccess:async s=>{await n.cancelQueries(l);const a=n.getQueryData(l.queryKey);if(a&&s.Instances){const I={Instances:s.Instances,OwnerId:s.OwnerId,RequesterId:s.RequesterId,ReservationId:s.ReservationId,Groups:[]};n.setQueryData(l.queryKey,{...a,Reservations:[...a.Reservations||[],I]})}n.invalidateQueries({queryKey:["ec2","instances"]})}},e[0]=n,e[1]=t):t=e[1],d(t)}async function z(e){const n=new g({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SecurityGroupIds:e.securityGroupIds,SubnetId:e.subnetId});return await m().send(n)}function L(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:B,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],d(t)}async function B(e){const n=new S({KeyName:e.keyName,KeyType:"rsa"});return await m().send(n)}function W(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:M,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],d(t)}async function M(e){const t=e.publicKeyMaterial.trim().split(T).slice(0,2).join(" "),s=new q({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await m().send(s)}function X(){const e=r.c(2),n=u();let t;return e[0]!==n?(t={mutationFn:N,onSuccess:()=>{n.invalidateQueries(y)}},e[0]=n,e[1]=t):t=e[1],d(t)}async function N(e){const n=new R({KeyPairId:e});return await m().send(n)}export{L as a,J as b,X as c,O as d,H as e,j as f,h as g,W as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/error-banner.js b/hive/services/hiveui/frontend/dist/assets/error-banner.js new file mode 100644 index 000000000..f078c63e8 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/error-banner.js @@ -0,0 +1 @@ +import{c as o,a as d,j as n}from"./index.js";function m(a){const e=o.c(8);let s,r;e[0]!==a?({className:s,...r}=a,e[0]=a,e[1]=s,e[2]=r):(s=e[1],r=e[2]);let t;e[3]!==s?(t=d("flex select-none items-center gap-2 font-medium text-sm/relaxed leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",s),e[3]=s,e[4]=t):t=e[4];let l;return e[5]!==r||e[6]!==t?(l=n.jsx("label",{className:t,"data-slot":"label",...r}),e[5]=r,e[6]=t,e[7]=l):l=e[7],l}function p(a){const e=o.c(7),{msg:s,error:r}=a;let t;e[0]!==s?(t=s&&n.jsx("h2",{className:"text-destructive text-sm",children:s}),e[0]=s,e[1]=t):t=e[1];let l;e[2]!==r?(l=r&&n.jsx("p",{className:"text-destructive text-sm",children:r.message}),e[2]=r,e[3]=l):l=e[3];let i;return e[4]!==t||e[5]!==l?(i=n.jsxs("div",{className:"mb-6 max-w-4xl rounded-md border border-destructive bg-destructive/10 p-4",children:[t,l]}),e[4]=t,e[5]=l,e[6]=i):i=e[6],i}export{p as E,m as L}; diff --git a/hive/services/hiveui/frontend/dist/assets/geist-cyrillic-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/geist-cyrillic-wght-normal.woff2 new file mode 100644 index 000000000..2000e32fd Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/geist-cyrillic-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/geist-latin-ext-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/geist-latin-ext-wght-normal.woff2 new file mode 100644 index 000000000..9608c47c4 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/geist-latin-ext-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/geist-latin-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/geist-latin-wght-normal.woff2 new file mode 100644 index 000000000..93552f55a Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/geist-latin-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/import-key-pair.js b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js new file mode 100644 index 000000000..3df868d91 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/import-key-pair.js @@ -0,0 +1 @@ +import{c as R,u as T,j as t,i as z,B as w}from"./index.js";import{a as D,u as O,I as $}from"./zod.js";import{B as q}from"./back-link.js";import{E as G,L}from"./error-banner.js";import{P as J}from"./page-heading.js";import{T as U}from"./textarea.js";import{u as V}from"./ec2.js";import"./useMutation.js";function re(){const e=R.c(51),r=T(),s=V();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={resolver:D(z)},e[0]=g):g=e[0];const{handleSubmit:_,register:a,formState:H}=O(g),{errors:i,isSubmitting:M}=H;let N;e[1]!==s||e[2]!==r?(N=async Q=>{await s.mutateAsync(Q),r({to:"/ec2/describe-key-pairs"})},e[1]=s,e[2]=r,e[3]=N):N=e[3];const I=N;let A,K;e[4]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(q,{to:"/ec2/describe-key-pairs",children:"Back to key pairs"}),K=t.jsx(J,{title:"Import Key Pair"}),e[4]=A,e[5]=K):(A=e[4],K=e[5]);let l;e[6]!==s.error?(l=s.error&&t.jsx(G,{error:s.error,msg:"Failed to import key pair"}),e[6]=s.error,e[7]=l):l=e[7];let o;e[8]!==_||e[9]!==I?(o=_(I),e[8]=_,e[9]=I,e[10]=o):o=e[10];let P;e[11]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(L,{htmlFor:"keyName",children:"Key Pair Name"}),e[11]=P):P=e[11];let c;e[12]!==a?(c=a("keyName"),e[12]=a,e[13]=c):c=e[13];let m;e[14]!==c?(m=t.jsx($,{id:"keyName",placeholder:"my-key-pair…",...c}),e[14]=c,e[15]=m):m=e[15];let n;e[16]!==i.keyName?(n=i.keyName&&t.jsx("p",{className:"text-destructive text-xs",children:i.keyName.message}),e[16]=i.keyName,e[17]=n):n=e[17];let p;e[18]!==n||e[19]!==m?(p=t.jsxs("div",{className:"space-y-2",children:[P,m,n]}),e[18]=n,e[19]=m,e[20]=p):p=e[20];let S,v;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(L,{htmlFor:"publicKeyMaterial",children:"Public Key"}),v=t.jsx("p",{className:"text-muted-foreground text-xs",id:"publicKey-description",children:"Paste your OpenSSH public key (e.g. the contents of id_rsa.pub)"}),e[21]=S,e[22]=v):(S=e[21],v=e[22]);let y;e[23]!==a?(y=a("publicKeyMaterial"),e[23]=a,e[24]=y):y=e[24];let d;e[25]!==y?(d=t.jsx(U,{id:"publicKeyMaterial",placeholder:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC…",rows:8,...y}),e[25]=y,e[26]=d):d=e[26];let f;e[27]!==i.publicKeyMaterial?(f=i.publicKeyMaterial&&t.jsx("p",{className:"text-destructive text-sm",children:i.publicKeyMaterial.message}),e[27]=i.publicKeyMaterial,e[28]=f):f=e[28];let u;e[29]!==d||e[30]!==f?(u=t.jsxs("div",{className:"space-y-2",children:[S,v,d,f]}),e[29]=d,e[30]=f,e[31]=u):u=e[31];const E=M||s.isPending;let x;e[32]!==r?(x=()=>r({to:"/ec2/describe-key-pairs"}),e[32]=r,e[33]=x):x=e[33];let b;e[34]!==E||e[35]!==x?(b=t.jsx(w,{disabled:E,onClick:x,type:"button",variant:"outline",children:"Cancel"}),e[34]=E,e[35]=x,e[36]=b):b=e[36];const F=M||s.isPending,C=M||s.isPending?"Importing…":"Import Key Pair";let h;e[37]!==F||e[38]!==C?(h=t.jsx(w,{disabled:F,type:"submit",children:C}),e[37]=F,e[38]=C,e[39]=h):h=e[39];let j;e[40]!==b||e[41]!==h?(j=t.jsxs("div",{className:"flex gap-2",children:[b,h]}),e[40]=b,e[41]=h,e[42]=j):j=e[42];let k;e[43]!==p||e[44]!==u||e[45]!==j||e[46]!==o?(k=t.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:o,children:[p,u,j]}),e[43]=p,e[44]=u,e[45]=j,e[46]=o,e[47]=k):k=e[47];let B;return e[48]!==k||e[49]!==l?(B=t.jsxs(t.Fragment,{children:[A,K,l,k]}),e[48]=k,e[49]=l,e[50]=B):B=e[50],B}export{re as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index.css b/hive/services/hiveui/frontend/dist/assets/index.css new file mode 100644 index 000000000..5e7ce5afc --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index.css @@ -0,0 +1 @@ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:calc(var(--radius) - 2px);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{overscroll-behavior:none;border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}*{scrollbar-width:thin}body{background-color:var(--background);width:100%;min-height:100svh;color:var(--foreground);font-family:var(--font-sans),sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-mono{font-family:var(--font-mono),monospace}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.\@container\/field-group{container:field-group/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-1{bottom:calc(var(--spacing)*1)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing)*-2)}.my-1{margin-block:calc(var(--spacing)*1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.size-\[1\.2rem\]{width:1.2rem;height:1.2rem}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[calc\(--spacing\(4\.75\)\)\]{height:calc(calc(var(--spacing)*4.75))}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-72{max-height:calc(var(--spacing)*72)}.max-h-\[min\(calc\(--spacing\(72\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing)*72) - calc(var(--spacing)*9)),calc(var(--available-height) - calc(var(--spacing)*9)))}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-7{min-height:calc(var(--spacing)*7)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-8{width:calc(var(--spacing)*8)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-16{min-width:calc(var(--spacing)*16)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-56{min-width:calc(var(--spacing)*56)}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing)*7))}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-px{gap:1px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*-2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*-2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded-\[2px\]{border-radius:2px}.rounded-\[calc\(var\(--radius-sm\)\+2px\)\]{border-radius:calc(var(--radius-sm) + 2px)}.rounded-\[calc\(var\(--radius-sm\)-2px\)\]{border-radius:calc(var(--radius-sm) - 2px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:calc(var(--radius) + 2px)}.rounded-md{border-radius:var(--radius)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-border,.bg-border\/50{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border\/50{background-color:color-mix(in oklab,var(--border)50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-input\/20{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input\/20{background-color:color-mix(in oklab,var(--input)20%,transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground)10%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted)20%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.text-\[0\.625rem\]{font-size:.625rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-background{color:var(--background)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.bg-blend-color{background-blend-mode:color}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-background{--tw-ring-color:var(--background)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab,var(--foreground)10%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[orientation\=horizontal\]\/field\:text-balance:is(:where(.group\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-has-data-\[size\=lg\]\/avatar-group\:size-10:is(:where(.group\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.group-has-data-\[size\=sm\]\/avatar-group\:size-6:is(:where(.group\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing)*2)}.group-has-\[\>input\]\/input-group\:pb-2:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing)*2)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offExamples\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){right:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offExamples\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offExamples] *){left:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offExamples\]\:w-0:is(:where(.group)[data-collapsible=offExamples] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offExamples\]\:translate-x-0:is(:where(.group)[data-collapsible=offExamples] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/field\:opacity-50:is(:where(.group\/field)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[size\=default\]\/avatar\:size-2\.5:is(:where(.group\/avatar)[data-size=default] *){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.group-data-\[size\=lg\]\/avatar\:size-3:is(:where(.group\/avatar)[data-size=lg] *){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.group-data-\[size\=sm\]\/alert-dialog-content\:grid:is(:where(.group\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\[size\=sm\]\/alert-dialog-content\:grid-cols-2:is(:where(.group\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\[size\=sm\]\/avatar\:size-2:is(:where(.group\/avatar)[data-size=sm] *){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.group-data-\[size\=sm\]\/avatar\:text-xs:is(:where(.group\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing)*3)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:calc(var(--radius) + 2px)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=outline\]\/field-group\:-mb-2:is(:where(.group\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing)*-2)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing)*6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-xs\/relaxed::file-selector-button{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing)*0)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-border:after{content:var(--tw-content);border-color:var(--border)}.after\:mix-blend-darken:after{content:var(--tw-content);mix-blend-mode:darken}.group-data-\[collapsible\=offExamples\]\:after\:left-full:is(:where(.group)[data-collapsible=offExamples] *):after{content:var(--tw-content);left:100%}.last\:mt-0:last-child{margin-top:calc(var(--spacing)*0)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:pb-0:last-child{padding-bottom:calc(var(--spacing)*0)}.focus-within\:border-ring:focus-within{border-color:var(--ring)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/30:focus-within{--tw-ring-color:color-mix(in oklab,var(--ring)30%,transparent)}}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offExamples\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offExamples] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible,.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)30%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:border-inherit:focus-within{border-color:inherit}:where([data-slot=combobox-content]) .in-data-\[slot\=combobox-content\]\:focus-within\:ring-0:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--destructive)}.has-aria-invalid\:ring-2:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.has-data-checked\:bg-primary\/5:has([data-checked]){background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.has-data-\[align\=block-end\]\:rounded-md:has([data-align=block-end]),.has-data-\[align\=block-start\]\:rounded-md:has([data-align=block-start]){border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing)*1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing)*2)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing)*1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing)*2)}.has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_auto_1fr\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\[slot\=alert-dialog-media\]\:gap-x-4:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing)*4)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=combobox-chip\]\:px-1:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing)*1)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing)*0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-2:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/30:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab,var(--ring)30%,transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-2:has([data-slot][aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-\[textarea\]\:rounded-md:has(:is(textarea)){border-radius:var(--radius)}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing)*3)}.has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\[\>\[data-slot\=field\]\]\:w-full:has(>[data-slot=field]){width:100%}.has-\[\>\[data-slot\=field\]\]\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\[\>\[data-slot\=field\]\]\:rounded-md:has(>[data-slot=field]){border-radius:var(--radius)}.has-\[\>\[data-slot\=field\]\]\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing)*3)}.has-\[\>button\]\:mr-\[-0\.275rem\]:has(>button){margin-right:-.275rem}.has-\[\>button\]\:ml-\[-0\.275rem\]:has(>button){margin-left:-.275rem}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing)*0)}.has-\[\>kbd\]\:mr-\[-0\.275rem\]:has(>kbd){margin-right:-.275rem}.has-\[\>kbd\]\:ml-\[-0\.275rem\]:has(>kbd){margin-left:-.275rem}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing)*0)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-0[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-2[aria-invalid=true],.aria-invalid\:ring-\[2px\][aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-active\:bg-sidebar-accent[data-active]{background-color:var(--sidebar-accent)}.data-active\:font-medium[data-active]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-sidebar-accent-foreground[data-active]{color:var(--sidebar-accent-foreground)}.data-closed\:overflow-hidden[data-closed]{overflow:hidden}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing)*0)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted],:is(.not-data-\[variant\=destructive\]\:data-highlighted\:\*\*\:text-accent-foreground:not([data-variant=destructive])[data-highlighted] *){color:var(--accent-foreground)}.data-inset\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-open\:bg-accent[data-open]{background-color:var(--accent)}.data-open\:text-accent-foreground[data-open]{color:var(--accent-foreground)}.data-open\:opacity-100[data-open]{opacity:1}@media(hover:hover){.data-open\:hover\:bg-sidebar-accent[data-open]:hover{background-color:var(--sidebar-accent)}.data-open\:hover\:text-sidebar-accent-foreground[data-open]:hover{color:var(--sidebar-accent-foreground)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[invalid\=true\]\:text-destructive[data-invalid=true]{color:var(--destructive)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:self-stretch[data-orientation=vertical]{align-self:stretch}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing)*0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing)*1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing)*0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing)*0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing)*-1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing)*0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing)*0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing)*0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing)*-1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:border-l[data-side=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing)*0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing)*0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing)*-2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[size\=default\]\:h-7[data-size=default]{height:calc(var(--spacing)*7)}.data-\[size\=default\]\:max-w-xs[data-size=default]{max-width:var(--container-xs)}.data-\[size\=lg\]\:size-10[data-size=lg]{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.data-\[size\=md\]\:text-xs[data-size=md]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:size-6[data-size=sm]{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.data-\[size\=sm\]\:h-6[data-size=sm]{height:calc(var(--spacing)*6)}.data-\[size\=sm\]\:max-w-64[data-size=sm]{max-width:calc(var(--spacing)*64)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing)*3)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing)*3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}:is(.\*\:data-\[slot\=avatar\]\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\:data-\[slot\=avatar\]\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}.data-\[slot\=checkbox-group\]\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing)*3)}:is(.\*\:data-\[slot\=field\]\:p-2>*)[data-slot=field]{padding:calc(var(--spacing)*2)}:is(.\*\:data-\[slot\=field-group\]\:gap-4>*)[data-slot=field-group]{gap:calc(var(--spacing)*4)}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing)*1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing)*0)}:is(.\*\:data-\[slot\=input-group\]\:h-7>*)[data-slot=input-group]{height:calc(var(--spacing)*7)}:is(.\*\:data-\[slot\=input-group\]\:border-none>*)[data-slot=input-group]{--tw-border-style:none;border-style:none}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/20>*)[data-slot=input-group]{background-color:color-mix(in oklab,var(--input)20%,transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-\[calc\(var\(--radius-sm\)-2px\)\] *)[data-slot=kbd]{border-radius:calc(var(--radius-sm) - 2px)}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-md *)[data-slot=kbd]{border-radius:var(--radius)}:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\*\*\:data-\[slot\=kbd\]\:bg-muted-foreground\/10 *)[data-slot=kbd]{background-color:color-mix(in oklab,var(--muted-foreground)10%,transparent)}}:is(.\*\*\:data-\[slot\=kbd\]\:px-1 *)[data-slot=kbd]{padding-inline:calc(var(--spacing)*1)}:is(.\*\*\:data-\[slot\=kbd\]\:text-\[0\.625rem\] *)[data-slot=kbd]{font-size:.625rem}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing)*1.5)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=label\]\:text-xs\/relaxed[data-variant=label]{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.data-\[variant\=legend\]\:text-sm[data-variant=legend]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.nth-last-2\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing)*-1)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}}@media(min-width:40rem){.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:row-span-2:is(:where(.group\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:place-items-start:is(:where(.group\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:text-left:is(:where(.group\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:group-has-data-\[slot\=alert-dialog-media\]\/alert-dialog-content\:col-start-2:is(:where(.group\/alert-dialog-content)[data-size=default] *):is(:where(.group\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\:group-data-\[size\=default\]\/alert-dialog-content\:has-data-\[slot\=alert-dialog-media\]\:grid-rows-\[auto_1fr\]:is(:where(.group\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right],.data-\[size\=default\]\:sm\:max-w-sm[data-size=default]{max-width:var(--container-sm)}}@media(min-width:48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:text-xs\/relaxed{font-size:var(--text-xs);line-height:var(--leading-relaxed)}.md\:text-pretty{text-wrap:pretty}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@container field-group (min-width:28rem){.\@md\/field-group\:flex-row{flex-direction:row}.\@md\/field-group\:items-center{align-items:center}.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media(prefers-color-scheme:dark){.dark\:scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.dark\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.dark\:-rotate-90{rotate:-90deg}.dark\:rotate-0{rotate:none}.dark\:bg-destructive\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/20{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:bg-green-900{background-color:var(--color-green-900)}.dark\:bg-input\/30{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.dark\:bg-popover{background-color:var(--popover)}.dark\:bg-red-900{background-color:var(--color-red-900)}.dark\:bg-transparent{background-color:#0000}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:after\:mix-blend-lighten:after{content:var(--tw-content);mix-blend-mode:lighten}@media(hover:hover){.dark\:hover\:bg-destructive\/30:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/30:hover{background-color:color-mix(in oklab,var(--destructive)30%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:border-destructive\/50:has([aria-invalid=true]){border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-aria-invalid\:ring-destructive\/40:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:has-data-checked\:bg-primary\/10:has([data-checked]){background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:border-destructive\/50[aria-invalid=true]{border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-2\.5 svg:not([class*=size-]){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing)*2)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing)*4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing)*3)}.\[\.border-t\]\:pt-2.border-t{padding-top:calc(var(--spacing)*2)}.\[\.border-t\]\:pt-4.border-t{padding-top:calc(var(--spacing)*4)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-3:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing)*3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media(hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-lg>*):is(img:first-child){border-top-left-radius:calc(var(--radius) + 2px);border-top-right-radius:calc(var(--radius) + 2px)}:is(.\*\:\[img\:last-child\]\:rounded-b-lg>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) + 2px);border-bottom-left-radius:calc(var(--radius) + 2px)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>\*\]\:w-full>*{width:100%}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\*\]\:w-auto>*{width:auto}}.\[\&\>\.sr-only\]\:w-auto>.sr-only{width:auto}.\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (min-width:28rem){.\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}@container field-group (min-width:28rem){.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(>[data-slot=field-content]) [role=radio]{margin-top:1px}}.\[\&\>a\]\:underline>a{text-decoration-line:underline}.\[\&\>a\]\:underline-offset-4>a{text-underline-offset:4px}.\[\&\>a\:hover\]\:text-primary>a:hover{color:var(--primary)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing)*3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing)*3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-1\.5:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing)*1.5)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-1\.5:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing)*1.5)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-2\.5\!>svg{width:calc(var(--spacing)*2.5)!important;height:calc(var(--spacing)*2.5)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.group-has-data-\[size\=lg\]\/avatar-group\:\[\&\>svg\]\:size-5:is(:where(.group\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.group-has-data-\[size\=sm\]\/avatar-group\:\[\&\>svg\]\:size-3:is(:where(.group\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.group-data-\[size\=default\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=default] *)>svg,.group-data-\[size\=lg\]\/avatar\:\[\&\>svg\]\:size-2:is(:where(.group\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.group-data-\[size\=sm\]\/avatar\:\[\&\>svg\]\:hidden:is(:where(.group\/avatar)[data-size=sm] *)>svg{display:none}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3>svg:not([class*=size-]){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}[data-side=left][data-collapsible=offExamples] .\[\[data-side\=left\]\[data-collapsible\=offExamples\]_\&\]\:-right-2{right:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offExamples] .\[\[data-side\=right\]\[data-collapsible\=offExamples\]_\&\]\:-left-2{left:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-variant=legend]+.\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5{margin-top:calc(var(--spacing)*-1.5)}}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable",sans-serif;--font-mono:"JetBrains Mono Variable",monospace;--background:#f4f1ec;--foreground:#1d2930;--card:#f9f8f6;--card-foreground:#1d2930;--popover:#fbfaf9;--popover-foreground:#1d2930;--primary:#305030;--primary-foreground:#f5f3ef;--secondary:#eae5d7;--secondary-foreground:#263740;--muted:#e9e7e2;--muted-foreground:#576b75;--accent:#e7e2da;--accent-foreground:#1d2930;--destructive:#c32222;--destructive-foreground:#fff;--border:#b6c9b6;--input:#dedbd3;--ring:#3e743e;--chart-1:#2e6b2e;--chart-2:#cfa117;--chart-3:#297aa3;--chart-4:#cc8c33;--chart-5:#b82e2e;--radius:.25rem;--sidebar:#f5f3f0;--sidebar-background:#f5f3f0;--sidebar-foreground:#263740;--sidebar-primary:#305030;--sidebar-primary-foreground:#f5f3ef;--sidebar-accent:#e7e2da;--sidebar-accent-foreground:#1d2930;--sidebar-border:#c4d4c4;--sidebar-ring:#3e743e;--tactical-amber:#c2940a;--tactical-amber-dim:#d6b85c;--tactical-green:#267326;--tactical-green-dim:#7ab87a;--tactical-cyan:#24868f;--tactical-cyan-dim:#5eb2ba;--tactical-red:#bd2828;--tactical-olive:#64783a;--scanline-opacity:.015}.dark{--background:#0d1012;--foreground:#e0ddd1;--card:#14181a;--card-foreground:#e0ddd1;--popover:#111517;--popover-foreground:#e0ddd1;--primary:#fa0;--primary-foreground:#0d1012;--secondary:#323922;--secondary-foreground:#c6d2ac;--muted:#202527;--muted-foreground:#819098;--accent:#292f32;--accent-foreground:#ebe8e0;--destructive:#c32222;--destructive-foreground:#fff;--border:#203c32;--input:#292f32;--ring:#ffbf00;--chart-1:#ffbf00;--chart-2:#22c38e;--chart-3:#1aa1e6;--chart-4:#86ac39;--chart-5:#d92626;--sidebar:#111517;--sidebar-background:#111517;--sidebar-foreground:#e0ddd1;--sidebar-primary:#ffbf00;--sidebar-primary-foreground:#0d1012;--sidebar-accent:#292f32;--sidebar-accent-foreground:#ebe8e0;--sidebar-border:#203c32;--sidebar-ring:#ffbf00;--tactical-amber:#ffbf00;--tactical-amber-dim:#a17d12;--tactical-green:#22c38e;--tactical-green-dim:#20604a;--tactical-cyan:#17bfcf;--tactical-cyan-dim:#196066;--tactical-red:#d92626;--tactical-olive:#576b2e;--scanline-opacity:.03}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}} diff --git a/hive/services/hiveui/frontend/dist/assets/index.js b/hive/services/hiveui/frontend/dist/assets/index.js new file mode 100644 index 000000000..8d37a1ca8 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index.js @@ -0,0 +1,81 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/zod.js","assets/index3.js","assets/useSuspenseQuery.js","assets/page-heading.js","assets/index4.js","assets/list-card.js","assets/import-key-pair.js","assets/back-link.js","assets/error-banner.js","assets/textarea.js","assets/ec2.js","assets/useMutation.js","assets/create-key-pair.js","assets/alert-dialog.js","assets/check.js","assets/download.js","assets/run-instances.js","assets/index5.js","assets/upload-button.js","assets/trash-2.js","assets/index6.js","assets/badge.js","assets/index7.js","assets/index8.js","assets/state-badge.js","assets/index9.js","assets/_.js","assets/_id.js","assets/detail-row.js","assets/_id2.js","assets/_id3.js","assets/ami-details.js","assets/_id4.js"])))=>i.map(i=>d[i]); +function k4(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();function eA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sy={exports:{}},Fl={};var Fx;function P4(){if(Fx)return Fl;Fx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,c){var l=null;if(c!==void 0&&(l=""+c),i.key!==void 0&&(l=""+i.key),"key"in i){c={};for(var f in i)f!=="key"&&(c[f]=i[f])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:c}}return Fl.Fragment=t,Fl.jsx=n,Fl.jsxs=n,Fl}var qx;function N4(){return qx||(qx=1,sy.exports=P4()),sy.exports}var $=N4(),qh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},z4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},L4=class{#e=z4;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Cv=new L4;function B4(e){setTimeout(e,0)}var Vh=typeof window>"u"||"Deno"in globalThis;function gr(){}function $4(e,t){return typeof e=="function"?e(t):e}function U4(e){return typeof e=="number"&&e>=0&&e!==1/0}function j4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tv(e,t){return typeof e=="function"?e(t):e}function H4(e,t){return typeof e=="function"?e(t):e}function Vx(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:c,queryKey:l,stale:f}=e;if(l){if(r){if(t.queryHash!==db(l,t.options))return!1}else if(!yu(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||c&&!c(t))}function Gx(e,t){const{exact:n,status:r,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(gu(t.options.mutationKey)!==gu(c))return!1}else if(!yu(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function db(e,t){return(t?.queryKeyHashFn||gu)(e)}function gu(e){return JSON.stringify(e,(t,n)=>Av(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function yu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>yu(e[n],t[n])):!1}var F4=Object.prototype.hasOwnProperty;function tA(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Kx(e)&&Kx(t);if(!r&&!(Av(e)&&Av(t)))return t;const c=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),f=l.length,d=r?new Array(f):{};let h=0;for(let y=0;y{Cv.setTimeout(t,e)})}function V4(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?tA(e,t):t}function G4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function K4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hb=Symbol();function nA(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===hb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bge(e,t){return typeof e=="function"?e(...t):!!e}function Z4(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Q4=class extends qh{#e;#n;#t;constructor(){super(),this.#t=e=>{if(!Vh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},sA=new Q4;function Y4(){let e,t;const n=new Promise((i,c)=>{e=i,t=c});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var X4=B4;function W4(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=X4;const c=f=>{t?e.push(f):i(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{c(()=>{f(...d)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{i=f}}}var ts=W4(),J4=class extends qh{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(!Vh&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},oh=new J4;function eL(e){return Math.min(1e3*2**e,3e4)}function rA(e){return(e??"online")==="online"?oh.isOnline():!0}var Iv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function oA(e){let t=!1,n=0,r;const i=Y4(),c=()=>i.status!=="pending",l=x=>{if(!c()){const R=new Iv(x);v(R),e.onCancel?.(R)}},f=()=>{t=!0},d=()=>{t=!1},h=()=>sA.isFocused()&&(e.networkMode==="always"||oh.isOnline())&&e.canRun(),y=()=>rA(e.networkMode)&&e.canRun(),g=x=>{c()||(r?.(),i.resolve(x))},v=x=>{c()||(r?.(),i.reject(x))},b=()=>new Promise(x=>{r=R=>{(c()||h())&&x(R)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let x;const R=n===0?e.initialPromise:void 0;try{x=R??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(g).catch(C=>{if(c())return;const A=e.retry??(Vh?0:3),O=e.retryDelay??eL,D=typeof O=="function"?O(n,C):O,N=A===!0||typeof A=="number"&&nh()?void 0:b()).then(()=>{t?v(C):_()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r?.(),i),cancelRetry:f,continueRetry:d,canStart:y,start:()=>(y()?_():b().then(_),i)}}var iA=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U4(this.gcTime)&&(this.#e=Cv.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vh?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Cv.clearTimeout(this.#e),this.#e=void 0)}},tL=class extends iA{#e;#n;#t;#r;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#t=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Yx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Yx(this.options);t.data!==void 0&&(this.setState(Qx(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=V4(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(gr).catch(gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>H4(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Tv(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!j4(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const f=nA(this.options,t),h=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(y),y})();return this.#a=!1,this.options.persister?this.options.persister(f,h,this):f(h)},l=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(f),f})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=oA({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:f=>{f instanceof Iv&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Iv){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...nL(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Qx(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ts.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function nL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function Xx(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let y=!1;const g=_=>{Z4(_,()=>t.signal,()=>y=!0)},v=nA(t.options,t.fetchOptions),b=async(_,x,R)=>{if(y)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const A=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:x,direction:R?"backward":"forward",meta:t.options.meta};return g(U),U})(),O=await v(A),{maxPages:D}=t.options,N=R?K4:G4;return{pages:N(_.pages,O,D),pageParams:N(_.pageParams,x,D)}};if(i&&c.length){const _=i==="backward",x=_?sL:Wx,R={pages:c,pageParams:l},C=x(r,R);f=await b(R,C,_)}else{const _=e??c.length;do{const x=d===0?l[0]??r.initialPageParam:Wx(r,f);if(d>0&&x==null)break;f=await b(f,x),d++}while(d<_)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function Wx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function sL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var rL=class extends iA{#e;#n;#t;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||oL(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=oA({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,l)=>{this.#s({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:i}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:i})}const c=await this.#r.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,n),await this.options.onSuccess?.(c,e,this.state.context,n),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,e,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(c,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#s({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ts.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function oL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var iL=class extends qh{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new rL({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Rd(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Rd(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Rd(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Rd(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ts.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Gx(t,n))}findAll(e={}){return this.getAll().filter(t=>Gx(e,t))}notify(e){ts.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ts.batch(()=>Promise.all(e.map(t=>t.continue().catch(gr))))}};function Rd(e){return e.options.scope?.id}var aL=class extends qh{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??db(r,t);let c=this.get(i);return c||(c=new tL({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ts.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Vx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Vx(e,n)):t}notify(e){ts.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ts.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ts.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},cL=class{#e;#n;#t;#r;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new aL,this.#n=e.mutationCache||new iL,this.#t=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=sA.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=oh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const 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(Tv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,l=$4(t,c);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return ts.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ts.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ts.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ts.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gr).catch(gr)}invalidateQueries(e,t={}){return ts.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ts.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,n);return n.throwOnError||(c=c.catch(gr)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Tv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gr).catch(gr)}fetchInfiniteQuery(e){return e.behavior=Xx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gr).catch(gr)}ensureInfiniteQueryData(e){return e.behavior=Xx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return oh.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#r.set(gu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{yu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(gu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{yu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=db(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===hb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},ry={exports:{}},Ge={};var Jx;function lL(){if(Jx)return Ge;Jx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(P){return P===null||typeof P!="object"?null:(P=v&&P[v]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,R={};function C(P,te,oe){this.props=P,this.context=te,this.refs=R,this.updater=oe||_}C.prototype.isReactComponent={},C.prototype.setState=function(P,te){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,te,"setState")},C.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=C.prototype;function O(P,te,oe){this.props=P,this.context=te,this.refs=R,this.updater=oe||_}var D=O.prototype=new A;D.constructor=O,x(D,C.prototype),D.isPureReactComponent=!0;var N=Array.isArray;function U(){}var B={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function K(P,te,oe){var de=oe.ref;return{$$typeof:e,type:P,key:te,ref:de!==void 0?de:null,props:oe}}function ne(P,te){return K(P.type,te,P.props)}function le(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var te={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(oe){return te[oe]})}var Z=/\/+/g;function ye(P,te){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):te.toString(36)}function fe(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(U,U):(P.status="pending",P.then(function(te){P.status==="pending"&&(P.status="fulfilled",P.value=te)},function(te){P.status==="pending"&&(P.status="rejected",P.reason=te)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function q(P,te,oe,de,Re){var Se=typeof P;(Se==="undefined"||Se==="boolean")&&(P=null);var be=!1;if(P===null)be=!0;else switch(Se){case"bigint":case"string":case"number":be=!0;break;case"object":switch(P.$$typeof){case e:case t:be=!0;break;case y:return be=P._init,q(be(P._payload),te,oe,de,Re)}}if(be)return Re=Re(P),be=de===""?"."+ye(P,0):de,N(Re)?(oe="",be!=null&&(oe=be.replace(Z,"$&/")+"/"),q(Re,te,oe,"",function(ht){return ht})):Re!=null&&(le(Re)&&(Re=ne(Re,oe+(Re.key==null||P&&P.key===Re.key?"":(""+Re.key).replace(Z,"$&/")+"/")+be)),te.push(Re)),1;be=0;var Ye=de===""?".":de+":";if(N(P))for(var He=0;He{const t=I.useContext(aA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uL=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(aA.Provider,{value:e,children:t}));const Ov=new WeakMap,fL=new WeakMap,ih={current:[]};let oy=!1,ru=0;const eu=new Set,Cd=new Map;function lA(e){for(const t of e){if(ih.current.includes(t))continue;ih.current.push(t),t.recompute();const n=fL.get(t);if(n)for(const r of n){const i=Ov.get(r);i?.length&&lA(i)}}}function dL(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function hL(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function uA(e){if(ru>0&&!Cd.has(e)&&Cd.set(e,e.prevState),eu.add(e),!(ru>0)&&!oy)try{for(oy=!0;eu.size>0;){const t=Array.from(eu);eu.clear();for(const n of t){const r=Cd.get(n)??n.prevState;n.prevState=r,dL(n)}for(const n of t){const r=Ov.get(n);r&&(ih.current.push(n),lA(r))}for(const n of t){const r=Ov.get(n);if(r)for(const i of r)hL(i)}}}finally{oy=!1,ih.current=[],Cd.clear()}}function ou(e){ru++;try{e()}finally{if(ru--,ru===0){const t=eu.values().next().value;t&&uA(t)}}}function pL(e){return typeof e=="function"}let mL=class{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var i,c;this.listeners.add(r);const l=(c=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:c.call(i,r,this);return()=>{this.listeners.delete(r),l?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,i;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):pL(t)?this.state=t(this.prevState):this.state=t,(i=(r=this.options)==null?void 0:r.onUpdate)==null||i.call(r),uA(this)}};const ii="__TSR_index",t1="popstate",n1="beforeunload";function gL(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},i=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},c=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const y=e.getBlockers?.()??[],g=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&y.length&&g)for(const v of y){const b=ah(d.path,d.state);if(await v.blockerFn({currentLocation:t,nextLocation:b,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const h=t.state[ii];f=s1(h+1,f),c({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const h=t.state[ii];f=s1(h,f),c({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{c({task:()=>{e.go(l),i({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{c({task:()=>{e.back(l?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{c({task:()=>{e.forward(l?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[ii]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function s1(e,t){t||(t={});const n=mb();return{...t,key:n,__TSR_key:n,[ii]:e}}function yL(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let i=[];const c=()=>i,l=k=>i=k,f=(k=>k),d=(()=>ah(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const k=mb();t.history.replaceState({[ii]:0,key:k,__TSR_key:k},"")}let h=d(),y,g=!1,v=!1,b=!1,_=!1;const x=()=>h;let R,C;const A=()=>{R&&(B._ignoreSubscribers=!0,(R.isPush?t.history.pushState:t.history.replaceState)(R.state,"",R.href),B._ignoreSubscribers=!1,R=void 0,C=void 0,y=void 0)},O=(k,K,ne)=>{const le=f(K);C||(y=h),h=ah(K,ne),R={href:le,state:ne,isPush:R?.isPush||k==="push"},C||(C=Promise.resolve().then(()=>A()))},D=k=>{h=d(),B.notify({type:k})},N=async()=>{if(v){v=!1;return}const k=d(),K=k.state[ii]-h.state[ii],ne=K===1,le=K===-1,G=!ne&&!le||g;g=!1;const Z=G?"GO":le?"BACK":"FORWARD",ye=G?{type:"GO",index:K}:{type:le?"BACK":"FORWARD"};if(b)b=!1;else{const fe=c();if(typeof document<"u"&&fe.length){for(const q of fe)if(await q.blockerFn({currentLocation:h,nextLocation:k,action:Z})){v=!0,t.history.go(1),B.notify(ye);return}}}h=d(),B.notify(ye)},U=k=>{if(_){_=!1;return}let K=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const le of ne){const G=le.enableBeforeUnload??!0;if(G===!0){K=!0;break}if(typeof G=="function"&&G()===!0){K=!0;break}}if(K)return k.preventDefault(),k.returnValue=""},B=gL({getLocation:x,getLength:()=>t.history.length,pushState:(k,K)=>O("push",k,K),replaceState:(k,K)=>O("replace",k,K),back:k=>(k&&(b=!0),_=!0,t.history.back()),forward:k=>{k&&(b=!0),_=!0,t.history.forward()},go:k=>{g=!0,t.history.go(k)},createHref:k=>f(k),flush:A,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(n1,U,{capture:!0}),t.removeEventListener(t1,N)},onBlocked:()=>{y&&h!==y&&(h=y)},getBlockers:c,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(n1,U,{capture:!0}),t.addEventListener(t1,N),t.history.pushState=function(...k){const K=n.apply(t.history,k);return B._ignoreSubscribers||D("PUSH"),K},t.history.replaceState=function(...k){const K=r.apply(t.history,k);return B._ignoreSubscribers||D("REPLACE"),K},B}function vL(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function ah(e,t){const n=vL(e),r=n.indexOf("#"),i=n.indexOf("?"),c=mb();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||{[ii]:0,key:c,__TSR_key:c}}}function mb(){return(Math.random()+1).toString(36).substring(7)}const bL=!1;function vu(e){return e[e.length-1]}function SL(e){return typeof e=="function"}function ti(e,t){return SL(e)?e(t):e}const _L=Object.prototype.hasOwnProperty,r1=Object.prototype.propertyIsEnumerable;function Ws(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=t,i=a1(e)&&a1(r);if(!i&&!(ch(e)&&ch(r)))return r;const c=i?e:o1(e);if(!c)return r;const l=i?r:o1(r);if(!l)return r;const f=c.length,d=l.length,h=i?new Array(d):{};let y=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!i1(n)||!n.hasOwnProperty("isPrototypeOf"))}function i1(e){return Object.prototype.toString.call(e)==="[object Object]"}function a1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;ri||!Yi(e[l],t[l],n)))return!1;return i===c}return!1}function Ec(e){let t,n;const r=new Promise((i,c)=>{t=i,n=c});return r.status="pending",r.resolve=i=>{r.status="resolved",r.value=i,t(i),e?.(i)},r.reject=i=>{r.status="rejected",n(i)},r}function wL(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function pc(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function EL(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function c1(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return EL(t)}const fA=["http:","https:","mailto:","tel:"];function lh(e){if(!e)return!1;try{const t=new URL(e);return!fA.includes(t.protocol)}catch{return!1}}const xL={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},RL=/[&><\u2028\u2029]/g;function CL(e){return e.replace(RL,t=>xL[t])}function iy(e,t){if(!e)return e;const n=/%25|%5C/gi;let r=0,i="",c;for(;(c=n.exec(e))!==null;)i+=c1(e.slice(r,c.index))+c[0],r=n.lastIndex;return i=i+c1(r?e.slice(r):e),i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function TL(e){return/[^\u0000-\u007F]/.test(e)?e.replace(/[^\u0000-\u007F]/gu,encodeURIComponent):e}var AL="Invariant failed";function fo(e,t){if(!e)throw new Error(AL)}function uh(e){const t=new Map;let n,r;const i=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,r&&(r.next=c,c.prev=r)):(c.next.prev=void 0,n=c.next,c.next=void 0,r&&(c.prev=r,r.next=c)),r=c)};return{get(c){const l=t.get(c);if(l)return i(l),l.value},set(c,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const f=t.get(c);if(f)f.value=l,i(f);else{const d={key:c,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(c,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const xc=0,ta=1,na=2,bu=3,Gi=4,dA=5;function IL(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function gb(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),i=r===-1?e.length:r,c=e.substring(t,i);if(!c||!c.includes("$"))return n[0]=xc,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(c==="$"){const f=e.length;return n[0]=na,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(c.charCodeAt(0)===36)return n[0]=ta,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;const l=IL(c);if(l){const[f,d]=l,h=c.charCodeAt(f+1);if(h===45){if(f+2!k.skipOnParamError&&k.caseSensitive===D&&k.prefix===N&&k.suffix===U);if(B)_=B;else{const k=cy(ta,n.fullPath??n.from,D,N,U);_=k,k.depth=c,k.parent=i,i.dynamic??=[],i.dynamic.push(k)}break}case bu:{const A=d.substring(x,b[1]),O=d.substring(b[4],R),D=y&&!!(A||O),N=A?D?A:A.toLowerCase():void 0,U=O?D?O:O.toLowerCase():void 0,B=!g&&i.optional?.find(k=>!k.skipOnParamError&&k.caseSensitive===D&&k.prefix===N&&k.suffix===U);if(B)_=B;else{const k=cy(bu,n.fullPath??n.from,D,N,U);_=k,k.parent=i,k.depth=c,i.optional??=[],i.optional.push(k)}break}case na:{const A=d.substring(x,b[1]),O=d.substring(b[4],R),D=y&&!!(A||O),N=A?D?A:A.toLowerCase():void 0,U=O?D?O:O.toLowerCase():void 0,B=cy(na,n.fullPath??n.from,D,N,U);_=B,B.parent=i,B.depth=c,i.wildcard??=[],i.wildcard.push(B)}}i=_}if(g&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const b=Ki(n.fullPath??n.from);b.kind=dA,b.parent=i,c++,b.depth=c,i.pathless??=[],i.pathless.push(b),i=b}const v=(n.path||!n.children)&&!n.isRoot;if(v&&d.endsWith("/")){const b=Ki(n.fullPath??n.from);b.kind=Gi,b.parent=i,c++,b.depth=c,i.index=b,i=b}i.parse=n.options?.params?.parse??null,i.skipOnParamError=g,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,v&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Gh(e,t,d,f,i,c,l)}function ay(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Jo(e){if(e.pathless)for(const t of e.pathless)Jo(t);if(e.static)for(const t of e.static.values())Jo(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Jo(t);if(e.dynamic?.length){e.dynamic.sort(ay);for(const t of e.dynamic)Jo(t)}if(e.optional?.length){e.optional.sort(ay);for(const t of e.optional)Jo(t)}if(e.wildcard?.length){e.wildcard.sort(ay);for(const t of e.wildcard)Jo(t)}}function Ki(e){return{kind:xc,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function cy(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function OL(e,t){const n=Ki("/"),r=new Uint16Array(6);for(const i of e)Gh(!1,r,i,1,n,0);Jo(n),t.masksTree=n,t.flatCache=uh(1e3)}function ML(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=yb(e,t.masksTree);return t.flatCache.set(e,r),r}function DL(e,t,n,r,i){e||="/",r||="/";const c=t?`case\0${e}`:e;let l=i.singleCache.get(c);if(!l){l=Ki("/");const f=new Uint16Array(6);Gh(t,f,{from:e},1,l,0),i.singleCache.set(c,l)}return yb(r,l,n)}function kL(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||="/";let c;try{c=yb(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)c=null;else throw l}return c&&(c.branch=zL(c.route)),t.matchCache.set(r,c),c}function PL(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function NL(e,t=!1,n){const r=Ki(e.fullPath),i=new Uint16Array(6),c={},l={};let f=0;return Gh(t,i,e,1,r,0,h=>{if(n?.(h,f),fo(!(h.id in c),`Duplicate routes found with id: ${String(h.id)}`),c[h.id]=h,f!==0&&h.path){const y=PL(h.fullPath);(!l[y]||h.fullPath.endsWith("/"))&&(l[y]=h)}f++}),Jo(r),{processedTree:{segmentTree:r,singleCache:uh(1e3),matchCache:uh(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:l}}function yb(e,t,n=!1){const r=e.split("/"),i=BL(e,r,t,n);if(!i)return null;const[c]=hA(e,r,i);return{route:i.node.route,rawParams:c,parsedParams:i.parsedParams}}function hA(e,t,n){const r=LL(n.node);let i=null;const c={};let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;f=0;le--){const G=v.optional[le];f.push({node:G,index:b,skipped:K,depth:ne,statics:R,dynamics:C,optionals:A,extract:O,rawParams:D,parsedParams:N})}if(!U)for(let le=v.optional.length-1;le>=0;le--){const G=v.optional[le],{prefix:Z,suffix:ye}=G;if(Z||ye){const fe=G.caseSensitive?B:k??=B.toLowerCase();if(Z&&!fe.startsWith(Z)||ye&&!fe.endsWith(ye))continue}f.push({node:G,index:b+1,skipped:_,depth:ne,statics:R,dynamics:C,optionals:A+1,extract:O,rawParams:D,parsedParams:N})}}if(!U&&v.dynamic&&B)for(let K=v.dynamic.length-1;K>=0;K--){const ne=v.dynamic[K],{prefix:le,suffix:G}=ne;if(le||G){const Z=ne.caseSensitive?B:k??=B.toLowerCase();if(le&&!Z.startsWith(le)||G&&!Z.endsWith(G))continue}f.push({node:ne,index:b+1,skipped:_,depth:x+1,statics:R,dynamics:C+1,optionals:A,extract:O,rawParams:D,parsedParams:N})}if(!U&&v.staticInsensitive){const K=v.staticInsensitive.get(k??=B.toLowerCase());K&&f.push({node:K,index:b+1,skipped:_,depth:x+1,statics:R+1,dynamics:C,optionals:A,extract:O,rawParams:D,parsedParams:N})}if(!U&&v.static){const K=v.static.get(B);K&&f.push({node:K,index:b+1,skipped:_,depth:x+1,statics:R+1,dynamics:C,optionals:A,extract:O,rawParams:D,parsedParams:N})}if(v.pathless){const K=x+1;for(let ne=v.pathless.length-1;ne>=0;ne--){const le=v.pathless[ne];f.push({node:le,index:b,skipped:_,depth:K,statics:R,dynamics:C,optionals:A,extract:O,rawParams:D,parsedParams:N})}}}if(y&&d)return ql(d,y)?y:d;if(y)return y;if(d)return d;if(r&&h){let g=h.index;for(let b=0;be.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Gi)>(e.node.kind===Gi)||t.node.kind===Gi==(e.node.kind===Gi)&&t.depth>e.depth))):!0}function Zd(e){return vb(e.filter(t=>t!==void 0).join("/"))}function vb(e){return e.replace(/\/{2,}/g,"/")}function pA(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ao(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function mA(e){return ao(pA(e))}function fh(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function $L(e,t,n){return fh(e,n)===fh(t,n)}function UL({base:e,to:t,trailingSlash:n="never",cache:r}){const i=t.startsWith("/"),c=!i&&t===".";let l;if(r){l=i?t:c?e:e+"\0"+t;const g=r.get(l);if(g)return g}let f;if(c)f=e.split("/");else if(i)f=t.split("/");else{for(f=e.split("/");f.length>1&&vu(f)==="";)f.pop();const g=t.split("/");for(let v=0,b=g.length;v1&&(vu(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let d,h="";for(let g=0;g0&&(h+="/");const v=f[g];if(!v)continue;d=gb(v,0,d);const b=d[0];if(b===xc){h+=v;continue}const _=d[5],x=v.substring(0,d[1]),R=v.substring(d[4],_),C=v.substring(d[2],d[3]);b===ta?h+=x||R?`${x}{$${C}}${R}`:`$${C}`:b===na?h+=x||R?`${x}{$}${R}`:"$":h+=`${x}{-$${C}}${R}`}h=vb(h);const y=h||"/";return l&&r&&r.set(l,y),y}function jL(e){const t=new Map(e.map(i=>[encodeURIComponent(i),i])),n=Array.from(t.keys()).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return i=>i.replace(r,c=>t.get(c)??c)}function uy(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?encodeURI(r):HL(r,n)}function fy({path:e,params:t,decoder:n}){let r=!1;const i={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:i,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:i,isMissingParams:r};const c=e.length;let l=0,f,d="";for(;l{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function VL(){const e=FL();if(!e)return null;const t=e.getItem(Mv);let n=t?JSON.parse(t):{};return{state:n,set:r=>{n=ti(r,n)||n;try{e.setItem(Mv,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Td=VL(),GL=e=>e.state.__TSR_key||e.href;function KL(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let dh=!1;function ZL({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:i,location:c}){let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const f=t||window.history.state?.__TSR_key,d=l[f];dh=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const g in d){const v=d[g];if(g==="window")window.scrollTo({top:v.scrollY,left:v.scrollX,behavior:n});else if(g){const b=document.querySelector(g);b&&(b.scrollLeft=v.scrollX,b.scrollTop=v.scrollY)}}break e}const h=(c??window.location).hash.split("#",2)[1];if(h){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const v=document.getElementById(h);v&&v.scrollIntoView(g)}break e}const y={top:0,left:0,behavior:n};if(window.scrollTo(y),i)for(const g of i){if(g==="window")continue;const v=typeof g=="function"?g():document.querySelector(g);v&&v.scrollTo(y)}}dh=!1}function QL(e,t){if(!Td||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Td))return;e.isScrollRestorationSetup=!0,dh=!1;const r=e.options.getScrollRestorationKey||GL;window.history.scrollRestoration="manual";const i=c=>{if(dh||!e.isScrollRestoring)return;let l="";if(c.target===document||c.target===window)l="window";else{const d=c.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=KL(c.target)}const f=r(e.state.location);Td.set(d=>{const h=d[f]||={},y=h[l]||={};if(l==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(l){const g=document.querySelector(l);g&&(y.scrollX=g.scrollLeft||0,y.scrollY=g.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",qL(i,100),!0),e.subscribe("onRendered",c=>{const l=r(c.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(ZL({storageKey:Mv,key:l,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Td.set(f=>(f[l]||={},f)))})}function YL(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function XL(e,t=String){const n=new URLSearchParams;for(const r in e){const i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function dy(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function WL(e){const t=new URLSearchParams(e),n={};for(const[r,i]of t.entries()){const c=n[r];c==null?n[r]=dy(i):Array.isArray(c)?c.push(dy(i)):n[r]=[c,dy(i)]}return n}const JL=t6(JSON.parse),e6=n6(JSON.stringify,JSON.parse);function t6(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=WL(t);for(const r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch{}}return n}}function n6(e,t){const n=typeof t=="function";function r(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(n&&typeof i=="string")try{return t(i),e(i)}catch{}return i}return i=>{const c=XL(i,r);return c?`?${c}`:""}}const tr="__root__";function bb(e){if(e.statusCode=e.statusCode||e.code||307,typeof e.href=="string"&&lh(e.href))throw new Error(`Redirect blocked: unsafe protocol in href "${e.href}". Only ${fA.join(", ")} protocols are allowed.`);if(!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function rr(e){return e instanceof Response&&!!e.options}const Qd=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Kh=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),mc=(e,t,n=!0)=>{const r={...e.router.options.context??{}},i=n?t:t-1;for(let c=0;c<=i;c++){const l=e.matches[c];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(r,f.__routeContext,f.__beforeLoadContext)}return r},gA=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),fo(n.options.notFoundComponent);const r=e.matches.find(i=>i.routeId===n.id);fo(r,"Could not find match for route: "+n.id),e.updateMatch(r.id,i=>({...i,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,gA(e,t))},ni=(e,t,n)=>{if(!(!rr(n)&&!Ms(n))){if(rr(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const r=rr(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:r,context:mc(e,t.index),isFetching:!1,error:n})),Ms(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw rr(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(gA(e,n),n)}},yA=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,Vl=(e,t,n,r)=>{const{id:i,routeId:c}=e.matches[t],l=e.router.looseRoutesById[c];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,ni(e,e.router.getMatch(i),n);try{l.options.onError?.(n)}catch(f){n=f,ni(e,e.router.getMatch(i),n)}e.updateMatch(i,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},vA=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const i=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!Kh(e,t)&&(n.options.loader||n.options.beforeLoad||_A(n))&&typeof i=="number"&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const l=setTimeout(()=>{Qd(e)},i);r._nonReactive.pendingTimeout=l}},s6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;vA(e,t,n,r);const i=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&ni(e,c,c.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},r6=(e,t,n,r)=>{const i=e.router.getMatch(t),c=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Ec(()=>{c?.resolve()});const{paramsError:l,searchError:f}=i;l&&Vl(e,n,l,"PARSE_PARAMS"),f&&Vl(e,n,f,"VALIDATE_SEARCH"),vA(e,t,r,i);const d=new AbortController,h=e.matches[n-1]?.id;(h?e.router.getMatch(h):void 0)?.context??e.router.options.context;let g=!1;const v=()=>{g||(g=!0,e.updateMatch(t,U=>({...U,isFetching:"beforeLoad",fetchCount:U.fetchCount+1,abortController:d})))},b=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,U=>({...U,isFetching:!1}))};if(!r.options.beforeLoad){ou(()=>{v(),b()});return}i._nonReactive.beforeLoadPromise=Ec();const _={...mc(e,n,!1),...i.__routeContext},{search:x,params:R,cause:C}=i,A=Kh(e,t),O={search:x,abortController:d,params:R,preload:A,context:_,location:e.location,navigate:U=>e.router.navigate({...U,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:A?"preload":C,matches:e.matches,...e.router.options.additionalContext},D=U=>{if(U===void 0){ou(()=>{v(),b()});return}(rr(U)||Ms(U))&&(v(),Vl(e,n,U,"BEFORE_LOAD")),ou(()=>{v(),e.updateMatch(t,B=>({...B,__beforeLoadContext:U})),b()})};let N;try{if(N=r.options.beforeLoad(O),pc(N))return v(),N.catch(U=>{Vl(e,n,U,"BEFORE_LOAD")}).then(D)}catch(U){v(),Vl(e,n,U,"BEFORE_LOAD")}D(N)},o6=(e,t)=>{const{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],c=()=>f(),l=()=>r6(e,n,t,i),f=()=>{if(yA(e,n))return;const d=s6(e,n,i);return pc(d)?d.then(l):l()};return c()},i6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([c,l,f])=>{const d=c?.meta,h=c?.links,y=c?.scripts,g=c?.styles;return{meta:d,links:h,headScripts:y,headers:f,scripts:l,styles:g}})},bA=(e,t,n,r)=>{const i=e.matchPromises[n-1],{params:c,loaderDeps:l,abortController:f,cause:d}=e.router.getMatch(t),h=mc(e,n),y=Kh(e,t);return{params:c,deps:l,preload:!!y,parentMatchPromise:i,abortController:f,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:y?"preload":d,route:r,...e.router.options.additionalContext}},l1=async(e,t,n,r)=>{try{const i=e.router.getMatch(t);try{(!(bL??e.router.isServer)||i.ssr===!0)&&SA(r);const c=r.options.loader?.(bA(e,t,n,r)),l=r.options.loader&&pc(c);if((l||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(t,h=>({...h,isFetching:"loader"})),r.options.loader){const h=l?await c:c;ni(e,e.router.getMatch(t),h),h!==void 0&&e.updateMatch(t,y=>({...y,loaderData:h}))}r._lazyPromise&&await r._lazyPromise;const d=i._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,h=>({...h,error:void 0,context:mc(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let l=c;if(l?.name==="AbortError"){e.updateMatch(t,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:mc(e,n)}));return}const f=i._nonReactive.minPendingPromise;f&&await f,Ms(c)&&await r.options.notFoundComponent?.preload?.(),ni(e,e.router.getMatch(t),c);try{r.options.onError?.(c)}catch(d){l=d,ni(e,e.router.getMatch(t),d)}e.updateMatch(t,d=>({...d,error:l,context:mc(e,n),status:"error",isFetching:!1}))}}catch(i){const c=e.router.getMatch(t);c&&(c._nonReactive.loaderPromise=void 0),ni(e,c,i)}},a6=async(e,t)=>{const{id:n,routeId:r}=e.matches[t];let i=!1,c=!1;const l=e.router.looseRoutesById[r];if(!yA(e,n)){const h=e.router.getMatch(n);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!e.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const y=e.router.getMatch(n),g=y._nonReactive.error||y.error;g&&ni(e,y,g)}else{const y=Date.now()-h.updatedAt,g=Kh(e,n),v=g?l.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:l.options.staleTime??e.router.options.defaultStaleTime??0,b=l.options.shouldReload,_=typeof b=="function"?b(bA(e,n,t,l)):b,x=!!g&&!e.router.state.matches.some(O=>O.id===n),R=e.router.getMatch(n);R._nonReactive.loaderPromise=Ec(),x!==R.preload&&e.updateMatch(n,O=>({...O,preload:x}));const{status:C,invalid:A}=R;i=C==="success"&&(A||(_??y>v)),g&&l.options.preload===!1||(i&&!e.sync?(c=!0,(async()=>{try{await l1(e,n,t,l);const O=e.router.getMatch(n);O._nonReactive.loaderPromise?.resolve(),O._nonReactive.loadPromise?.resolve(),O._nonReactive.loaderPromise=void 0}catch(O){rr(O)&&await e.router.navigate(O.options)}})()):(C!=="success"||i&&e.sync)&&await l1(e,n,t,l))}}const f=e.router.getMatch(n);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const d=c?f.isFetching:!1;return d!==f.isFetching||f.invalid!==!1?(e.updateMatch(n,h=>({...h,isFetching:d,invalid:!1})),e.router.getMatch(n)):f};async function u1(e){const t=Object.assign(e,{matchPromises:[]});t.router.state.matches.some(n=>n._forcePending)&&Qd(t);try{for(let f=0;ff.status==="rejected").map(f=>f.reason);let c;for(const f of i){if(rr(f))throw f;!c&&Ms(f)&&(c=f)}for(const f of t.matches){const{id:d,routeId:h}=f,y=t.router.looseRoutesById[h];try{const g=i6(t,d,y);if(g){const v=await g;t.updateMatch(d,b=>({...b,...v}))}}catch(g){console.error(`Error executing head for route ${h}:`,g)}}if(c)throw c;const l=Qd(t);pc(l)&&await l}catch(n){if(Ms(n)&&!t.preload){const r=Qd(t);throw pc(r)&&await r,n}if(rr(n))throw n}return t.matches}async function SA(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of wA){const i=e.options[r]?.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function _A(e){for(const t of wA)if(e.options[t]?.preload)return!0;return!1}const wA=["component","errorComponent","pendingComponent","notFoundComponent"];function c6(e){return{input:({url:t})=>{for(const n of e)t=Dv(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=EA(e[n],t);return t}}}function l6(e){const t=mA(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),c=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const f=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return f===i?l.pathname="/":f.startsWith(c)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=Zd(["/",t,l.pathname]),l)}}function Dv(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function EA(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Xi(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,i=t?.href!==n.href,c=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:i,hashChanged:c}}class u6{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,i=this.basepath??r?.basepath??"/",c=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=jL(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=yL()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let v;this.resolvePathCache=uh(1e3),v=this.buildRouteTree(),this.setRoutes(v)}!this.__store&&this.latestLocation&&(this.__store=new mL(d6(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(v=>!["redirected"].includes(v.status))}}}),QL(this));let f=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(c||i!==d||l!==h){this.basepath=d;const v=[],b=mA(d);b&&b!=="/"&&v.push(l6({basepath:d})),h&&v.push(h),this.rewrite=v.length===0?void 0:v.length===1?v[0]:c6(v),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=NL(this.routeTree,this.options.caseSensitive,(r,i)=>{r.init({originalIndex:i})});return this.options.routeMasks&&OL(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const i={eventType:n,fn:r};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const i=({href:d,state:h})=>{const y=new URL(d,this.origin),g=Dv(this.rewrite,y),v=this.options.parseSearch(g.search),b=this.options.stringifySearch(v);return g.search=b,{href:g.href.replace(g.origin,""),publicHref:d,pathname:iy(g.pathname),external:!!this.rewrite&&g.origin!==this.origin,searchStr:b,search:Ws(r?.search,v),hash:iy(g.hash.split("#").reverse()[0]??""),state:Ws(r?.state,h)}},c=i(n),{__tempLocation:l,__tempKey:f}=c.state;if(l&&(!f||f===this.tempLocationKey)){const d=i(l);return d.state.key=c.state.key,d.state.__TSR_key=c.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:c}}return c},this.resolvePathWithBase=(n,r)=>UL({base:n,to:vb(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,i)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},i):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>h6({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(c=>c.status==="pending"),r=this.state.matches.filter(c=>c.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(c=>{this.cancelMatch(c.id)})},this.buildLocation=n=>{const r=(c={})=>{const l=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);c.from;const d=c.unsafeRelative==="path"?l.pathname:c.from??f.fullPath,h=this.resolvePathWithBase(d,"."),y=f.search,g={...f.params},v=c.to?this.resolvePathWithBase(h,`${c.to}`):this.resolvePathWithBase(h,"."),b=c.params===!1||c.params===null?{}:(c.params??!0)===!0?g:Object.assign(g,ti(c.params,g)),_=fy({path:v,params:b}).interpolatedPath,x=this.getMatchedRoutes(_);let R=x.matchedRoutes;if((x.foundRoute?x.foundRoute.path!=="/"&&x.routeParams["**"]:ao(_))&&(this.options.notFoundRoute?R=[...R,this.options.notFoundRoute]:f1(this.options.notFoundMode,R)),Object.keys(b).length>0)for(const G of R){const Z=G.options.params?.stringify??G.options.stringifyParams;Z&&Object.assign(b,Z(b))}const A=n.leaveParams?v:iy(fy({path:v,params:b,decoder:this.pathParamsDecoder}).interpolatedPath);let O=y;if(n._includeValidateSearch&&this.options.search?.strict){const G={};R.forEach(Z=>{if(Z.options.validateSearch)try{Object.assign(G,Yd(Z.options.validateSearch,{...G,...O}))}catch{}}),O=G}O=p6({search:O,dest:c,destRoutes:R,_includeValidateSearch:n._includeValidateSearch}),O=Ws(y,O);const D=this.options.stringifySearch(O),N=c.hash===!0?l.hash:c.hash?ti(c.hash,l.hash):void 0,U=N?`#${N}`:"";let B=c.state===!0?l.state:c.state?ti(c.state,l.state):{};B=Ws(l.state,B);const k=`${A}${D}${U}`;let K,ne,le=!1;if(this.rewrite){const G=new URL(k,this.origin),Z=EA(this.rewrite,G);K=G.href.replace(G.origin,""),Z.origin!==this.origin?(ne=Z.href,le=!0):ne=Z.pathname+Z.search+Z.hash}else K=TL(k),ne=K;return{publicHref:ne,href:K,pathname:A,search:O,searchStr:D,state:B,hash:N??"",external:le,unmaskOnReload:c.unmaskOnReload}},i=(c={},l)=>{const f=r(c);let d=l?r(l):void 0;if(!d){const h={};if(this.options.routeMasks){const y=ML(f.pathname,this.processedTree);if(y){Object.assign(h,y.rawParams);const{from:g,params:v,...b}=y.route,_=v===!1||v===null?{}:(v??!0)===!0?h:Object.assign(h,ti(v,h));l={from:n.from,...b,params:_},d=r(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?i(n,{from:n.from,...n.mask}):i(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...i})=>{const c=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(y=>{i.state[y]=this.latestLocation.state[y]});const h=Yi(i.state,this.latestLocation.state);return d.forEach(y=>{delete i.state[y]}),h},l=ao(this.latestLocation.href)===ao(i.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Ec(()=>{f?.resolve()}),l&&c())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...y}=i;d&&(y={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[i.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:r})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:i,viewTransition:c,ignoreBlocker:l,href:f,...d}={})=>{if(f){const g=this.history.location.state.__TSR_index,v=ah(f,{__TSR_index:n?g:g+1}),b=new URL(v.pathname,this.origin),_=Dv(this.rewrite,b);d.to=_.pathname,d.search=this.options.parseSearch(v.search),d.hash=v.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const y=this.commitLocation({...h,viewTransition:c,replace:n,resetScroll:r,hashScrollIntoView:i,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:r,href:i,publicHref:c,...l})=>{let f=!1;if(i)try{new URL(`${i}`),f=!0}catch{}if(f&&!r&&(r=!0),r){if(n!==void 0||!i){const h=this.buildLocation({to:n,...l});i=i??h.publicHref,c=c??h.publicHref}const d=!f&&c?c:i;if(lh(d))return Promise.resolve();if(!l.ignoreBlocker){const y=this.history.getBlockers?.()??[];for(const g of y)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:i,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(i=>!n.some(c=>c.id===i.id))}))},this.load=async n=>{let r,i,c;for(c=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Xi({resolvedLocation:h,location:d})}),this.emit({type:"onBeforeLoad",...Xi({resolvedLocation:h,location:d})}),await u1({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=[],g=[],v=[];ou(()=>{this.__store.setState(b=>{const _=b.matches,x=b.pendingMatches||b.matches;return y=_.filter(R=>!x.some(C=>C.id===R.id)),g=x.filter(R=>!_.some(C=>C.id===R.id)),v=x.filter(R=>_.some(C=>C.id===R.id)),{...b,isLoading:!1,loadedAt:Date.now(),matches:x,pendingMatches:void 0,cachedMatches:[...b.cachedMatches,...y.filter(R=>R.status!=="error"&&R.status!=="notFound")]}}),this.clearExpiredCache()}),[[y,"onLeave"],[g,"onEnter"],[v,"onStay"]].forEach(([b,_])=>{b.forEach(x=>{this.looseRoutesById[x.routeId].options[_]?.(x)})})})})}})}catch(d){rr(d)?(r=d,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Ms(d)&&(i=d),this.__store.setState(h=>({...h,statusCode:r?r.status:i?404:h.matches.some(y=>y.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.__store.state.matches.some(f=>f.status==="error")&&(l=500),l!==void 0&&this.__store.setState(f=>({...f,statusCode:l}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,l=this.state.resolvedLocation,f=typeof r.types=="function"?r.types(Xi({resolvedLocation:l,location:c})):r.types;if(f===!1){n();return}i={update:n,types:f}}else i=n;document.startViewTransition(i)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const i=this.state.pendingMatches?.some(c=>c.id===n)?"pendingMatches":this.state.matches.some(c=>c.id===n)?"matches":this.state.cachedMatches.some(c=>c.id===n)?"cachedMatches":"";i&&this.__store.setState(c=>({...c,[i]:c[i]?.map(l=>l.id===n?r(l):l)}))})},this.getMatch=n=>{const r=i=>i.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=i=>n?.filter?.(i)??!0?{...i,invalid:!0,...n?.forcePending||i.status==="error"||i.status==="notFound"?{status:"pending",error:void 0}:void 0}:i;return this.__store.setState(i=>({...i,matches:i.matches.map(r),cachedMatches:i.cachedMatches.map(r),pendingMatches:i.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(n.options.href){if(r)try{const i=new URL(r);if(this.origin&&i.origin===this.origin){const c=i.pathname+i.search+i.hash;n.options.href=c,n.headers.set("Location",c)}}catch{}}else{const i=this.buildLocation(n.options),c=this.getParsedLocationHref(i);n.options.href=c,n.headers.set("Location",c)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(c=>!r(c))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const c=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=c};this.clearCache({filter:n})},this.loadRouteChunk=SA,this.preloadRoute=async n=>{const r=this.buildLocation(n);let i=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const c=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),l=new Set([...c,...this.state.cachedMatches.map(f=>f.id)]);ou(()=>{i.forEach(f=>{l.has(f.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,f]}))})});try{return i=await u1({router:this,matches:i,location:r,preload:!0,updateMatch:(f,d)=>{c.has(f)?i=i.map(h=>h.id===f?d(h):h):this.updateMatch(f,d)}}),i}catch(f){if(rr(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:r});Ms(f)||console.error(f);return}},this.matchRoute=(n,r)=>{const i={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(i);if(r?.pending&&this.state.status!=="pending")return!1;const f=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=DL(c.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!d||n.params&&!Yi(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Yi(f.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??e6,parseSearch:t.parseSearch??JL}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:r}){this.routesById=t,this.routesByPath=n,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:c,parsedParams:l}=r;let{matchedRoutes:f}=r,d=!1;(i?i.path!=="/"&&c["**"]:ao(t.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const h=d?f1(this.options.notFoundMode,f):void 0,y=[],g=v=>v?.id?v.context??this.options.context??void 0:this.options.context??void 0;return f.forEach((v,b)=>{const _=y[b-1],[x,R,C]=(()=>{const ye=_?.search??t.search,fe=_?._strictSearch??void 0;try{const q=Yd(v.options.validateSearch,{...ye})??void 0;return[{...ye,...q},{...fe,...q},void 0]}catch(q){let X=q;if(q instanceof hh||(X=new hh(q.message,{cause:q})),n?.throwOnError)throw X;return[ye,{},X]}})(),A=v.options.loaderDeps?.({search:x})??"",O=A?JSON.stringify(A):"",{interpolatedPath:D,usedParams:N}=fy({path:v.fullPath,params:c,decoder:this.pathParamsDecoder}),U=v.id+D+O,B=this.getMatch(U),k=this.state.matches.find(ye=>ye.routeId===v.id),K=B?._strictParams??N;let ne;if(!B)try{d1(v,N,l,K)}catch(ye){if(Ms(ye)||rr(ye)?ne=ye:ne=new f6(ye.message,{cause:ye}),n?.throwOnError)throw ne}Object.assign(c,K);const le=k?"stay":"enter";let G;if(B)G={...B,cause:le,params:k?Ws(k.params,c):c,_strictParams:K,search:Ws(k?k.search:B.search,x),_strictSearch:R};else{const ye=v.options.loader||v.options.beforeLoad||v.lazyFn||_A(v)?"pending":"success";G={id:U,ssr:v.options.ssr,index:b,routeId:v.id,params:k?Ws(k.params,c):c,_strictParams:K,pathname:D,updatedAt:Date.now(),search:k?Ws(k.search,x):x,_strictSearch:R,searchError:void 0,status:ye,isFetching:!1,error:void 0,paramsError:ne,__routeContext:void 0,_nonReactive:{loadPromise:Ec()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:le,loaderDeps:k?Ws(k.loaderDeps,A):A,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}n?.preload||(G.globalNotFound=h===v.id),G.searchError=C;const Z=g(_);G.context={...Z,...G.__routeContext,...G.__beforeLoadContext},y.push(G)}),y.forEach((v,b)=>{const _=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)){const R=y[b-1],C=g(R);if(_.options.context){const A={deps:v.loaderDeps,params:v.params,context:C??{},location:t,navigate:O=>this.navigate({...O,_fromLocation:t}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:y};v.__routeContext=_.options.context(A)??void 0}v.context={...C,...v.__routeContext,...v.__beforeLoadContext}}}),y}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:r,parsedParams:i}=this.getMatchedRoutes(t.pathname),c=vu(n),l={...t.search};for(const y of n)try{Object.assign(l,Yd(y.options.validateSearch,l))}catch{}const f=vu(this.state.matches),d=f&&f.routeId===c.id&&t.pathname===this.state.location.pathname;let h;if(d)h=f.params;else{const y={...r};for(const g of n)try{d1(g,r,i??{},y)}catch{}h=y}return{matchedRoutes:n,fullPath:c.fullPath,search:l,params:h}}}class hh extends Error{}class f6 extends Error{}function d6(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Yd(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new hh("Async validation not supported");if(n.issues)throw new hh(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function h6({pathname:e,routesById:t,processedTree:n}){const r={},i=ao(e);let c,l;const f=kL(i,n,!0);return f&&(c=f.route,Object.assign(r,f.rawParams),l=Object.assign({},f.parsedParams)),{matchedRoutes:f?.branch||[t[tr]],routeParams:r,foundRoute:c,parsedParams:l}}function p6({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return m6(n)(e,t,r??!1)}function m6(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const i of e){if("search"in i.options)i.options.search?.middlewares&&t.middlewares.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const c=({search:l,next:f})=>{let d=l;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(d=i.options.preSearchFilters.reduce((y,g)=>g(y),l));const h=f(d);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((y,g)=>g(y),h):h};t.middlewares.push(c)}if(i.options.validateSearch){const c=({search:l,next:f})=>{const d=f(l);if(!t._includeValidateSearch)return d;try{return{...d,...Yd(i.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(c)}}const n=({search:i})=>{const c=t.dest;return c.search?c.search===!0?i:ti(c.search,i):{}};t.middlewares.push(n);const r=(i,c,l)=>{if(i>=l.length)return c;const f=l[i];return f({search:c,next:h=>r(i+1,h,l)})};return function(c,l,f){return t.dest=l,t._includeValidateSearch=f,r(0,c,t.middlewares)}}function f1(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return tr}function d1(e,t,n,r){const i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(const c in t)c in n&&(r[c]=n[c]);else{const c=i(r);Object.assign(r,c)}}const g6="Error preloading route! ☝️";class xA{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,i=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=tr:this.parentRoute||fo(!1);let c=i?tr:r?.path;c&&c!=="/"&&(c=pA(c));const l=r?.id||c;let f=i?tr:Zd([this.parentRoute.id===tr?"":this.parentRoute.id,l]);c===tr&&(c="/"),f!==tr&&(f=Zd(["/",f]));const d=f===tr?"/":Zd([this.parentRoute.fullPath,c]);this._path=c,this._id=f,this._fullPath=d,this._to=ao(d)},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.redirect=n=>bb({from:this.fullPath,...n}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class y6 extends xA{constructor(t){super(t)}}const v6="use",h1=pb[v6],Ad=typeof window<"u"?I.useLayoutEffect:I.useEffect;function hy(e){const t=I.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function b6(e,t,n={},r={}){I.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([c])=>{t(c)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function S6(e){const t=I.useRef(null);return I.useImperativeHandle(e,()=>t.current,[]),t}function Sb(e){const t=e.errorComponent??_b;return $.jsx(_6,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?I.createElement(t,{error:n,reset:r}):e.children})}class _6 extends I.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function _b({error:e}){const[t,n]=I.useState(!1);return $.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[$.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),$.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),$.jsx("div",{style:{height:".25rem"}}),t?$.jsx("div",{children:$.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?$.jsx("code",{children:e.message}):null})}):null]})}function w6({children:e,fallback:t=null}){return RA()?$.jsx(wc.Fragment,{children:e}):$.jsx(wc.Fragment,{children:t})}function RA(){return wc.useSyncExternalStore(E6,()=>!0,()=>!1)}function E6(){return()=>{}}var py={exports:{}},my={},gy={exports:{}},yy={};var p1;function x6(){if(p1)return yy;p1=1;var e=Mc();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,c=e.useLayoutEffect,l=e.useDebugValue;function f(g,v){var b=v(),_=r({inst:{value:b,getSnapshot:v}}),x=_[0].inst,R=_[1];return c(function(){x.value=b,x.getSnapshot=v,d(x)&&R({inst:x})},[g,b,v]),i(function(){return d(x)&&R({inst:x}),g(function(){d(x)&&R({inst:x})})},[g]),l(b),b}function d(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!n(g,b)}catch{return!0}}function h(g,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return yy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,yy}var m1;function CA(){return m1||(m1=1,gy.exports=x6()),gy.exports}var g1;function R6(){if(g1)return my;g1=1;var e=Mc(),t=CA();function n(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,c=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return my.useSyncExternalStoreWithSelector=function(h,y,g,v,b){var _=c(null);if(_.current===null){var x={hasValue:!1,value:null};_.current=x}else x=_.current;_=f(function(){function C(U){if(!A){if(A=!0,O=U,U=v(U),b!==void 0&&x.hasValue){var B=x.value;if(b(B,U))return D=B}return D=U}if(B=D,r(O,U))return B;var k=v(U);return b!==void 0&&b(B,k)?(O=U,B):(O=U,D=k)}var A=!1,O,D,N=g===void 0?null:g;return[function(){return C(y())},N===null?void 0:function(){return C(N())}]},[y,g,v,b]);var R=i(h,_[0],_[1]);return l(function(){x.hasValue=!0,x.value=R},[R]),d(R),R},my}var y1;function C6(){return y1||(y1=1,py.exports=R6()),py.exports}var TA=C6();function T6(e,t=r=>r,n={}){const r=n.equal??A6;return TA.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,r)}function A6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!t.has(r)||!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=v1(e);if(n.length!==v1(t).length)return!1;for(let r=0;r"u"?vy:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=vy,vy)}function Yn(e){const t=I.useContext(AA());return e?.warn,t}function un(e){const t=Yn({warn:e?.router===void 0}),n=e?.router||t,r=I.useRef(void 0);return T6(n.__store,i=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const c=Ws(r.current,e.select(i));return r.current=c,c}return e.select(i)}return i})}const Zh=I.createContext(void 0),I6=I.createContext(void 0);function Mr(e){const t=I.useContext(e.from?I6:Zh);return un({select:r=>{const i=r.matches.find(c=>e.from?e.from===c.routeId:c.id===t);if(fo(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function wb(e){return Mr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Eb(e){const{select:t,...n}=e;return Mr({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function xb(e){return Mr({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Rb(e){return Mr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Qh(e){const t=Yn();return I.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var by={exports:{}},qn={};var b1;function O6(){if(b1)return qn;b1=1;var e=Mc();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),by.exports=O6(),by.exports}var pi=IA();function M6(e,t){const n=Yn(),r=S6(t),{activeProps:i,inactiveProps:c,activeOptions:l,to:f,preload:d,preloadDelay:h,hashScrollIntoView:y,replace:g,startTransition:v,resetScroll:b,viewTransition:_,children:x,target:R,disabled:C,style:A,className:O,onClick:D,onFocus:N,onMouseEnter:U,onMouseLeave:B,onTouchStart:k,ignoreBlocker:K,params:ne,search:le,hash:G,state:Z,mask:ye,reloadDocument:fe,unsafeRelative:q,from:X,_fromLocation:j,...ve}=e,Ce=RA(),P=un({select:gt=>gt.location.search,structuralSharing:!0}),te=e.from,oe=I.useMemo(()=>({...e,from:te}),[n,P,te,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),de=I.useMemo(()=>n.buildLocation({...oe}),[n,oe]),Re=de.maskedLocation?de.maskedLocation.publicHref:de.publicHref,Se=de.maskedLocation?de.maskedLocation.external:de.external,be=I.useMemo(()=>L6(Re,Se,n.history,C),[C,Se,Re,n.history]),Ye=I.useMemo(()=>{if(be?.external)return lh(be.href)?void 0:be.href;if(!B6(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),lh(f)?void 0:f}catch{}},[f,be]),He=un({select:gt=>{if(Ye)return!1;if(l?.exact){if(!$L(gt.location.pathname,de.pathname,n.basepath))return!1}else{const Bt=fh(gt.location.pathname,n.basepath),$t=fh(de.pathname,n.basepath);if(!(Bt.startsWith($t)&&(Bt.length===$t.length||Bt[$t.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Yi(gt.location.search,de.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?Ce&>.location.hash===de.hash:!0}}),ht=He?ti(i,{})??D6:Sy,Ht=He?Sy:ti(c,{})??Sy,re=[O,ht.className,Ht.className].filter(Boolean).join(" "),Fe=(A||ht.style||Ht.style)&&{...A,...ht.style,...Ht.style},[Ae,Pt]=I.useState(!1),_e=I.useRef(!1),Pe=e.reloadDocument||Ye?!1:d??n.options.defaultPreload,Ve=h??n.options.defaultPreloadDelay??0,Qe=I.useCallback(()=>{n.preloadRoute({...oe}).catch(gt=>{console.warn(gt),console.warn(g6)})},[n,oe]),ut=I.useCallback(gt=>{gt?.isIntersecting&&Qe()},[Qe]);b6(r,ut,z6,{disabled:!!C||Pe!=="viewport"}),I.useEffect(()=>{_e.current||!C&&Pe==="render"&&(Qe(),_e.current=!0)},[C,Qe,Pe]);const Be=gt=>{const Bt=gt.currentTarget.getAttribute("target"),$t=R!==void 0?R:Bt;if(!C&&!$6(gt)&&!gt.defaultPrevented&&(!$t||$t==="_self")&>.button===0){gt.preventDefault(),pi.flushSync(()=>{Pt(!0)});const nn=n.subscribe("onResolved",()=>{nn(),Pt(!1)});n.navigate({...oe,replace:g,resetScroll:b,hashScrollIntoView:y,startTransition:v,viewTransition:_,ignoreBlocker:K})}};if(Ye)return{...ve,ref:r,href:Ye,...x&&{children:x},...R&&{target:R},...C&&{disabled:C},...A&&{style:A},...O&&{className:O},...D&&{onClick:D},...N&&{onFocus:N},...U&&{onMouseEnter:U},...B&&{onMouseLeave:B},...k&&{onTouchStart:k}};const Le=gt=>{C||Pe&&Qe()},tn=Le,it=gt=>{if(!(C||!Pe))if(!Ve)Qe();else{const Bt=gt.target;if(Gl.has(Bt))return;const $t=setTimeout(()=>{Gl.delete(Bt),Qe()},Ve);Gl.set(Bt,$t)}},vs=gt=>{if(C||!Pe||!Ve)return;const Bt=gt.target,$t=Gl.get(Bt);$t&&(clearTimeout($t),Gl.delete(Bt))};return{...ve,...ht,...Ht,href:be?.href,ref:r,onClick:Kl([D,Be]),onFocus:Kl([N,Le]),onMouseEnter:Kl([U,it]),onMouseLeave:Kl([B,vs]),onTouchStart:Kl([k,tn]),disabled:!!C,target:R,...Fe&&{style:Fe},...re&&{className:re},...C&&k6,...He&&P6,...Ce&&Ae&&N6}}const Sy={},D6={className:"active"},k6={role:"link","aria-disabled":!0},P6={"data-status":"active","aria-current":"page"},N6={"data-transitioning":"transitioning"},Gl=new WeakMap,z6={rootMargin:"100px"},Kl=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function L6(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function B6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}const Cr=I.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:i,...c}=M6(r,t),l=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...d}=c;return I.createElement("a",d,l)}return I.createElement(n,c,l)});function $6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let U6=class extends xA{constructor(t){super(t),this.useMatch=n=>Mr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Mr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>xb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Eb({...n,from:this.id}),this.useLoaderData=n=>wb({...n,from:this.id}),this.useNavigate=()=>Qh({from:this.fullPath}),this.Link=wc.forwardRef((n,r)=>$.jsx(Cr,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}};function j6(e){return new U6(e)}function H6(){return e=>q6(e)}class F6 extends y6{constructor(t){super(t),this.useMatch=n=>Mr({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Mr({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>xb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Eb({...n,from:this.id}),this.useLoaderData=n=>wb({...n,from:this.id}),this.useNavigate=()=>Qh({from:this.fullPath}),this.Link=wc.forwardRef((n,r)=>$.jsx(Cr,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function q6(e){return new F6(e)}function mn(e){return typeof e=="object"?new _1(e,{silent:!0}).createRoute(e):new _1(e,{silent:!0}).createRoute}class _1{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const i=j6(r);return i.isRoot=!1,i},this.silent=n?.silent}}class w1{constructor(t){this.useMatch=n=>Mr({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Mr({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>xb({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Eb({...n,from:this.options.id}),this.useLoaderData=n=>wb({...n,from:this.options.id}),this.useNavigate=()=>{const n=Yn();return Qh({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function E1(e){return typeof e=="object"?new w1(e):t=>new w1({id:e,...t})}function Mn(e,t){let n,r,i,c;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t]}).catch(d=>{if(i=d,wL(i)&&i instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),c=!0)}})),n),f=function(h){if(c)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(h1)h1(l());else throw l();return I.createElement(r,h)};return f.preload=l,f}function V6(){const e=Yn(),t=I.useRef({router:e,mounted:!1}),[n,r]=I.useState(!1),{hasPendingMatches:i,isLoading:c}=un({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),l=hy(c),f=c||n||i,d=hy(f),h=c||i,y=hy(h);return e.startTransition=g=>{r(!0),I.startTransition(()=>{g(),r(!1)})},I.useEffect(()=>{const g=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ao(e.latestLocation.publicHref)!==ao(v.publicHref)&&e.commitLocation({...v,replace:!0}),()=>{g()}},[e,e.history]),Ad(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),Ad(()=>{l&&!c&&e.emit({type:"onLoad",...Xi(e.state)})},[l,e,c]),Ad(()=>{y&&!h&&e.emit({type:"onBeforeRouteMount",...Xi(e.state)})},[h,y,e]),Ad(()=>{if(d&&!f){const g=Xi(e.state);e.emit({type:"onResolved",...g}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),g.hrefChanged&&YL(e)}},[f,d,e]),null}function G6(e){const t=un({select:n=>`not-found-${n.location.pathname}-${n.status}`});return $.jsx(Sb,{getResetKey:()=>t,onCatch:(n,r)=>{if(Ms(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(Ms(n))return e.fallback?.(n);throw n},children:e.children})}function K6(){return $.jsx("p",{children:"Not Found"})}function fc(e){return $.jsx($.Fragment,{children:e.children})}function OA(e,t,n){return t.options.notFoundComponent?$.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?$.jsx(e.options.defaultNotFoundComponent,{...n}):$.jsx(K6,{})}function Z6(){return Yn().isScrollRestoring,null}const MA=I.memo(function({matchId:t}){const n=Yn(),r=un({select:C=>{const A=C.matches.find(O=>O.id===t);return fo(A),{routeId:A.routeId,ssr:A.ssr,_displayPending:A._displayPending}},structuralSharing:!0}),i=n.routesById[r.routeId],c=i.options.pendingComponent??n.options.defaultPendingComponent,l=c?$.jsx(c,{}):null,f=i.options.errorComponent??n.options.defaultErrorComponent,d=i.options.onCatch??n.options.defaultOnCatch,h=i.isRoot?i.options.notFoundComponent??n.options.notFoundRoute?.options.component:i.options.notFoundComponent,y=r.ssr===!1||r.ssr==="data-only",g=(!i.isRoot||i.options.wrapInSuspense||y)&&(i.options.wrapInSuspense??c??(i.options.errorComponent?.preload||y))?I.Suspense:fc,v=f?Sb:fc,b=h?G6:fc,_=un({select:C=>C.loadedAt}),x=un({select:C=>{const A=C.matches.findIndex(O=>O.id===t);return C.matches[A-1]?.routeId}}),R=i.isRoot?i.options.shellComponent??fc:fc;return $.jsxs(R,{children:[$.jsx(Zh.Provider,{value:t,children:$.jsx(g,{fallback:l,children:$.jsx(v,{getResetKey:()=>_,errorComponent:f||_b,onCatch:(C,A)=>{if(Ms(C))throw C;d?.(C,A)},children:$.jsx(b,{fallback:C=>{if(!h||C.routeId&&C.routeId!==r.routeId||!C.routeId&&!i.isRoot)throw C;return I.createElement(h,C)},children:y||r._displayPending?$.jsx(w6,{fallback:l,children:$.jsx(x1,{matchId:t})}):$.jsx(x1,{matchId:t})})})})}),x===tr&&n.options.scrollRestoration?$.jsxs($.Fragment,{children:[$.jsx(Q6,{}),$.jsx(Z6,{})]}):null]})});function Q6(){const e=Yn(),t=I.useRef(void 0);return $.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Xi(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const x1=I.memo(function({matchId:t}){const n=Yn(),{match:r,key:i,routeId:c}=un({select:d=>{const h=d.matches.find(_=>_.id===t),y=h.routeId,v=(n.routesById[y].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:y,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return{key:v?JSON.stringify(v):void 0,routeId:y,match:{id:h.id,status:h.status,error:h.error,invalid:h.invalid,_forcePending:h._forcePending,_displayPending:h._displayPending}}},structuralSharing:!0}),l=n.routesById[c],f=I.useMemo(()=>{const d=l.options.component??n.options.defaultComponent;return d?$.jsx(d,{},i):$.jsx(DA,{})},[i,l.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=l.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const h=n.getMatch(r.id);if(h&&!h._nonReactive.minPendingPromise){const y=Ec();h._nonReactive.minPendingPromise=y,setTimeout(()=>{y.resolve(),h._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return fo(Ms(r.error)),OA(n,l,r.error);if(r.status==="redirected")throw fo(rr(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return f}),DA=I.memo(function(){const t=Yn(),n=I.useContext(Zh),r=un({select:h=>h.matches.find(y=>y.id===n)?.routeId}),i=t.routesById[r],c=un({select:h=>{const g=h.matches.find(v=>v.id===n);return fo(g),g.globalNotFound}}),l=un({select:h=>{const y=h.matches,g=y.findIndex(v=>v.id===n);return y[g+1]?.id}}),f=t.options.defaultPendingComponent?$.jsx(t.options.defaultPendingComponent,{}):null;if(c)return OA(t,i,void 0);if(!l)return null;const d=$.jsx(MA,{matchId:l});return r===tr?$.jsx(I.Suspense,{fallback:f,children:d}):d});function Y6(){const e=Yn(),n=e.routesById[tr].options.pendingComponent??e.options.defaultPendingComponent,r=n?$.jsx(n,{}):null,i=typeof document<"u"&&e.ssr?fc:I.Suspense,c=$.jsxs(i,{fallback:r,children:[$.jsx(V6,{}),$.jsx(X6,{})]});return e.options.InnerWrap?$.jsx(e.options.InnerWrap,{children:c}):c}function X6(){const e=Yn(),t=un({select:i=>i.matches[0]?.id}),n=un({select:i=>i.loadedAt}),r=t?$.jsx(MA,{matchId:t}):null;return $.jsx(Zh.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:$.jsx(Sb,{getResetKey:()=>n,errorComponent:_b,onCatch:i=>{i.message||i.toString()},children:r})})}const W6=e=>new J6(e);class J6 extends u6{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=mn,globalThis.createLazyFileRoute=E1):typeof window<"u"&&(window.createFileRoute=mn,window.createLazyFileRoute=E1);function eB({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=AA(),i=$.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?$.jsx(e.options.Wrap,{children:i}):i}function tB({router:e,...t}){return $.jsx(eB,{router:e,...t,children:$.jsx(Y6,{})})}function nB(e){return un({select:t=>e?.select?e.select(t.location):t.location})}function sB({tag:e,attrs:t,children:n,nonce:r}){switch(e){case"title":return $.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return $.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return $.jsx("link",{...t,nonce:r,suppressHydrationWarning:!0});case"style":return $.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return $.jsx(rB,{attrs:t,children:n});default:return null}}function rB({attrs:e,children:t}){Yn(),I.useEffect(()=>{if(e?.src){const n=(()=>{try{const c=document.baseURI||window.location.href;return new URL(e.src,c).href}catch{return e.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(c=>c.src===n))return;const i=document.createElement("script");for(const[c,l]of Object.entries(e))c!=="suppressHydrationWarning"&&l!==void 0&&l!==!1&&i.setAttribute(c,typeof l=="boolean"?"":String(l));return document.head.appendChild(i),()=>{i.parentNode&&i.parentNode.removeChild(i)}}if(typeof t=="string"){const n=typeof e?.type=="string"?e.type:"text/javascript",r=typeof e?.nonce=="string"?e.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(l=>{if(!(l instanceof HTMLScriptElement))return!1;const f=l.getAttribute("type")??"text/javascript",d=l.getAttribute("nonce")??void 0;return l.textContent===t&&f===n&&d===r}))return;const c=document.createElement("script");if(c.textContent=t,e)for(const[l,f]of Object.entries(e))l!=="suppressHydrationWarning"&&f!==void 0&&f!==!1&&c.setAttribute(l,typeof f=="boolean"?"":String(f));return document.head.appendChild(c),()=>{c.parentNode&&c.parentNode.removeChild(c)}}},[e,t]);{const{src:n,...r}=e||{};return $.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""},...r})}}const oB=()=>{const e=Yn(),t=e.options.ssr?.nonce,n=un({select:d=>d.matches.map(h=>h.meta).filter(Boolean)}),r=I.useMemo(()=>{const d=[],h={};let y;for(let g=n.length-1;g>=0;g--){const v=n[g];for(let b=v.length-1;b>=0;b--){const _=v[b];if(_)if(_.title)y||(y={tag:"title",children:_.title});else if("script:ld+json"in _)try{const x=JSON.stringify(_["script:ld+json"]);d.push({tag:"script",attrs:{type:"application/ld+json"},children:CL(x)})}catch{}else{const x=_.name??_.property;if(x){if(h[x])continue;h[x]=!0}d.push({tag:"meta",attrs:{..._,nonce:t}})}}}return y&&d.push(y),t&&d.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),d.reverse(),d},[n,t]),i=un({select:d=>{const h=d.matches.map(v=>v.links).filter(Boolean).flat(1).map(v=>({tag:"link",attrs:{...v,nonce:t}})),y=e.ssr?.manifest,g=d.matches.map(v=>y?.routes[v.routeId]?.assets??[]).filter(Boolean).flat(1).filter(v=>v.tag==="link").map(v=>({tag:"link",attrs:{...v.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...h,...g]},structuralSharing:!0}),c=un({select:d=>{const h=[];return d.matches.map(y=>e.looseRoutesById[y.routeId]).forEach(y=>e.ssr?.manifest?.routes[y.id]?.preloads?.filter(Boolean).forEach(g=>{h.push({tag:"link",attrs:{rel:"modulepreload",href:g,nonce:t}})})),h},structuralSharing:!0}),l=un({select:d=>d.matches.map(h=>h.styles).flat(1).filter(Boolean).map(({children:h,...y})=>({tag:"style",attrs:{...y,nonce:t},children:h})),structuralSharing:!0}),f=un({select:d=>d.matches.map(h=>h.headScripts).flat(1).filter(Boolean).map(({children:h,...y})=>({tag:"script",attrs:{...y,nonce:t},children:h})),structuralSharing:!0});return iB([...r,...c,...i,...l,...f],d=>JSON.stringify(d))};function iB(e,t){const n=new Set;return e.filter(r=>{const i=t(r);return n.has(i)?!1:(n.add(i),!0)})}function aB(){const e=oB(),n=Yn().options.ssr?.nonce;return $.jsx($.Fragment,{children:e.map(r=>I.createElement(sB,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var _y={exports:{}},Zl={},wy={exports:{}},Ey={};var R1;function cB(){return R1||(R1=1,(function(e){function t(q,X){var j=q.length;q.push(X);e:for(;0>>1,Ce=q[ve];if(0>>1;vei(oe,j))dei(Re,oe)?(q[ve]=Re,q[de]=j,ve=de):(q[ve]=oe,q[te]=j,ve=te);else if(dei(Re,j))q[ve]=Re,q[de]=j,ve=de;else break e}}return X}function i(q,X){var j=q.sortIndex-X.sortIndex;return j!==0?j:q.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],y=1,g=null,v=3,b=!1,_=!1,x=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function D(q){for(var X=n(h);X!==null;){if(X.callback===null)r(h);else if(X.startTime<=q)r(h),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(h)}}function N(q){if(x=!1,D(q),!_)if(n(d)!==null)_=!0,U||(U=!0,G());else{var X=n(h);X!==null&&fe(N,X.startTime-q)}}var U=!1,B=-1,k=5,K=-1;function ne(){return R?!0:!(e.unstable_now()-Kq&&ne());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,v=g.priorityLevel;var Ce=ve(g.expirationTime<=q);if(q=e.unstable_now(),typeof Ce=="function"){g.callback=Ce,D(q),X=!0;break t}g===n(d)&&r(d),D(q)}else r(d);g=n(d)}if(g!==null)X=!0;else{var P=n(h);P!==null&&fe(N,P.startTime-q),X=!1}}break e}finally{g=null,v=j,b=!1}X=void 0}}finally{X?G():U=!1}}}var G;if(typeof O=="function")G=function(){O(le)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,ye=Z.port2;Z.port1.onmessage=le,G=function(){ye.postMessage(null)}}else G=function(){C(le,0)};function fe(q,X){B=C(function(){q(e.unstable_now())},X)}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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125ve?(q.sortIndex=j,t(h,q),n(d)===null&&q===n(h)&&(x?(A(B),B=-1):x=!0,fe(N,j-ve))):(q.sortIndex=Ce,t(d,q),_||b||(_=!0,U||(U=!0,G()))),q},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(q){var X=v;return function(){var j=v;v=X;try{return q.apply(this,arguments)}finally{v=j}}}})(Ey)),Ey}var C1;function lB(){return C1||(C1=1,wy.exports=cB()),wy.exports}var T1;function uB(){if(T1)return Zl;T1=1;var e=lB(),t=Mc(),n=IA();function r(s){var o="https://react.dev/errors/"+s;if(1Ce||(s.current=ve[Ce],ve[Ce]=null,Ce--)}function oe(s,o){Ce++,ve[Ce]=s.current,s.current=o}var de=P(null),Re=P(null),Se=P(null),be=P(null);function Ye(s,o){switch(oe(Se,o),oe(Re,s),oe(de,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?dx(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=dx(o),s=hx(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}te(de),oe(de,s)}function He(){te(de),te(Re),te(Se)}function ht(s){s.memoizedState!==null&&oe(be,s);var o=de.current,a=hx(o,s.type);o!==a&&(oe(Re,s),oe(de,a))}function Ht(s){Re.current===s&&(te(de),te(Re)),be.current===s&&(te(be),$l._currentValue=j)}var re,Fe;function Ae(s){if(re===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);re=o&&o[1]||"",Fe=-1)":-1p||z[u]!==Y[p]){var ie=` +`+z[u].replace(" at new "," at ");return s.displayName&&ie.includes("")&&(ie=ie.replace("",s.displayName)),ie}while(1<=u&&0<=p);break}}}finally{Pt=!1,Error.prepareStackTrace=a}return(a=s?s.displayName||s.name:"")?Ae(a):""}function Pe(s,o){switch(s.tag){case 26:case 27:case 5:return Ae(s.type);case 16:return Ae("Lazy");case 13:return s.child!==o&&o!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return _e(s.type,!1);case 11:return _e(s.type.render,!1);case 1:return _e(s.type,!0);case 31:return Ae("Activity");default:return""}}function Ve(s){try{var o="",a=null;do o+=Pe(s,a),a=s,s=s.return;while(s);return o}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}var Qe=Object.prototype.hasOwnProperty,ut=e.unstable_scheduleCallback,Be=e.unstable_cancelCallback,Le=e.unstable_shouldYield,tn=e.unstable_requestPaint,it=e.unstable_now,vs=e.unstable_getCurrentPriorityLevel,gt=e.unstable_ImmediatePriority,Bt=e.unstable_UserBlockingPriority,$t=e.unstable_NormalPriority,nn=e.unstable_LowPriority,bs=e.unstable_IdlePriority,Ls=e.log,af=e.unstable_setDisableYieldValue,_o=null,jn=null;function cr(s){if(typeof Ls=="function"&&af(s),jn&&typeof jn.setStrictMode=="function")try{jn.setStrictMode(_o,s)}catch{}}var Hn=Math.clz32?Math.clz32:Bs,Kt=Math.log,Fn=Math.LN2;function Bs(s){return s>>>=0,s===0?32:31-(Kt(s)/Fn|0)|0}var Dn=256,lr=262144,ur=4194304;function $s(s){var o=s&42;if(o!==0)return o;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function wo(s,o,a){var u=s.pendingLanes;if(u===0)return 0;var p=0,m=s.suspendedLanes,w=s.pingedLanes;s=s.warmLanes;var T=u&134217727;return T!==0?(u=T&~m,u!==0?p=$s(u):(w&=T,w!==0?p=$s(w):a||(a=T&~s,a!==0&&(p=$s(a))))):(T=u&~m,T!==0?p=$s(T):w!==0?p=$s(w):a||(a=u&~s,a!==0&&(p=$s(a)))),p===0?0:o!==0&&o!==p&&(o&m)===0&&(m=p&-p,a=o&-o,m>=a||m===32&&(a&4194048)!==0)?o:p}function Eo(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function Kp(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 cf(){var s=ur;return ur<<=1,(ur&62914560)===0&&(ur=4194304),s}function Yc(s){for(var o=[],a=0;31>a;a++)o.push(s);return o}function Ei(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Xc(s,o,a,u,p,m){var w=s.pendingLanes;s.pendingLanes=a,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=a,s.entangledLanes&=a,s.errorRecoveryDisabledLanes&=a,s.shellSuspendCounter=0;var T=s.entanglements,z=s.expirationTimes,Y=s.hiddenUpdates;for(a=w&~a;0"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var TN=/[\n"\\]/g;function js(s){return s.replace(TN,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Xp(s,o,a,u,p,m,w,T){s.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?s.type=w:s.removeAttribute("type"),o!=null?w==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+Us(o)):s.value!==""+Us(o)&&(s.value=""+Us(o)):w!=="submit"&&w!=="reset"||s.removeAttribute("value"),o!=null?Wp(s,w,Us(o)):a!=null?Wp(s,w,Us(a)):u!=null&&s.removeAttribute("value"),p==null&&m!=null&&(s.defaultChecked=!!m),p!=null&&(s.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?s.name=""+Us(T):s.removeAttribute("name")}function i_(s,o,a,u,p,m,w,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(s.type=m),o!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||o!=null)){Yp(s);return}a=a!=null?""+Us(a):"",o=o!=null?""+Us(o):a,T||o===s.value||(s.value=o),s.defaultValue=o}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,s.checked=T?s.checked:!!u,s.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(s.name=w),Yp(s)}function Wp(s,o,a){o==="number"&&mf(s.ownerDocument)===s||s.defaultValue===""+a||(s.defaultValue=""+a)}function Ca(s,o,a,u){if(s=s.options,o){o={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sm=!1;if(Ur)try{var sl={};Object.defineProperty(sl,"passive",{get:function(){sm=!0}}),window.addEventListener("test",sl,sl),window.removeEventListener("test",sl,sl)}catch{sm=!1}var Ro=null,rm=null,yf=null;function h_(){if(yf)return yf;var s,o=rm,a=o.length,u,p="value"in Ro?Ro.value:Ro.textContent,m=p.length;for(s=0;s=il),b_=" ",S_=!1;function __(s,o){switch(s){case"keyup":return tz.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function w_(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Oa=!1;function sz(s,o){switch(s){case"compositionend":return w_(o);case"keypress":return o.which!==32?null:(S_=!0,b_);case"textInput":return s=o.data,s===b_&&S_?null:s;default:return null}}function rz(s,o){if(Oa)return s==="compositionend"||!lm&&__(s,o)?(s=h_(),yf=rm=Ro=null,Oa=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-s};s=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=O_(a)}}function D_(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?D_(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function k_(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=mf(s.document);o instanceof s.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)s=o.contentWindow;else break;o=mf(s.document)}return o}function dm(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var dz=Ur&&"documentMode"in document&&11>=document.documentMode,Ma=null,hm=null,ul=null,pm=!1;function P_(s,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pm||Ma==null||Ma!==mf(u)||(u=Ma,"selectionStart"in u&&dm(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ul&&ll(ul,u)||(ul=u,u=ud(hm,"onSelect"),0>=w,p-=w,br=1<<32-Hn(o)+p|a<Je?(ct=ke,ke=null):ct=ke.sibling;var vt=W(V,ke,Q[Je],he);if(vt===null){ke===null&&(ke=ct);break}s&&ke&&vt.alternate===null&&o(V,ke),F=m(vt,F,Je),yt===null?ze=vt:yt.sibling=vt,yt=vt,ke=ct}if(Je===Q.length)return a(V,ke),ft&&Hr(V,Je),ze;if(ke===null){for(;JeJe?(ct=ke,ke=null):ct=ke.sibling;var Ko=W(V,ke,vt.value,he);if(Ko===null){ke===null&&(ke=ct);break}s&&ke&&Ko.alternate===null&&o(V,ke),F=m(Ko,F,Je),yt===null?ze=Ko:yt.sibling=Ko,yt=Ko,ke=ct}if(vt.done)return a(V,ke),ft&&Hr(V,Je),ze;if(ke===null){for(;!vt.done;Je++,vt=Q.next())vt=pe(V,vt.value,he),vt!==null&&(F=m(vt,F,Je),yt===null?ze=vt:yt.sibling=vt,yt=vt);return ft&&Hr(V,Je),ze}for(ke=u(ke);!vt.done;Je++,vt=Q.next())vt=se(ke,V,Je,vt.value,he),vt!==null&&(s&&vt.alternate!==null&&ke.delete(vt.key===null?Je:vt.key),F=m(vt,F,Je),yt===null?ze=vt:yt.sibling=vt,yt=vt);return s&&ke.forEach(function(D4){return o(V,D4)}),ft&&Hr(V,Je),ze}function It(V,F,Q,he){if(typeof Q=="object"&&Q!==null&&Q.type===x&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:e:{for(var ze=Q.key;F!==null;){if(F.key===ze){if(ze=Q.type,ze===x){if(F.tag===7){a(V,F.sibling),he=p(F,Q.props.children),he.return=V,V=he;break e}}else if(F.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===k&&Pi(ze)===F.type){a(V,F.sibling),he=p(F,Q.props),gl(he,Q),he.return=V,V=he;break e}a(V,F);break}else o(V,F);F=F.sibling}Q.type===x?(he=Ii(Q.props.children,V.mode,he,Q.key),he.return=V,V=he):(he=Tf(Q.type,Q.key,Q.props,null,V.mode,he),gl(he,Q),he.return=V,V=he)}return w(V);case _:e:{for(ze=Q.key;F!==null;){if(F.key===ze)if(F.tag===4&&F.stateNode.containerInfo===Q.containerInfo&&F.stateNode.implementation===Q.implementation){a(V,F.sibling),he=p(F,Q.children||[]),he.return=V,V=he;break e}else{a(V,F);break}else o(V,F);F=F.sibling}he=_m(Q,V.mode,he),he.return=V,V=he}return w(V);case k:return Q=Pi(Q),It(V,F,Q,he)}if(fe(Q))return Ie(V,F,Q,he);if(G(Q)){if(ze=G(Q),typeof ze!="function")throw Error(r(150));return Q=ze.call(Q),Ue(V,F,Q,he)}if(typeof Q.then=="function")return It(V,F,Pf(Q),he);if(Q.$$typeof===O)return It(V,F,Of(V,Q),he);Nf(V,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,F!==null&&F.tag===6?(a(V,F.sibling),he=p(F,Q),he.return=V,V=he):(a(V,F),he=Sm(Q,V.mode,he),he.return=V,V=he),w(V)):a(V,F)}return function(V,F,Q,he){try{ml=0;var ze=It(V,F,Q,he);return Ha=null,ze}catch(ke){if(ke===ja||ke===Df)throw ke;var yt=_s(29,ke,null,V.mode);return yt.lanes=he,yt.return=V,yt}}}var zi=sw(!0),rw=sw(!1),Oo=!1;function km(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pm(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Mo(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Do(s,o,a){var u=s.updateQueue;if(u===null)return null;if(u=u.shared,(St&2)!==0){var p=u.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),u.pending=o,o=Cf(s),j_(s,null,a),o}return Rf(s,u,o,a),Cf(s)}function yl(s,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194048)!==0)){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,lf(s,a)}}function Nm(s,o){var a=s.updateQueue,u=s.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=w:m=m.next=w,a=a.next}while(a!==null);m===null?p=m=o:m=m.next=o}else p=m=o;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=o:s.next=o,a.lastBaseUpdate=o}var zm=!1;function vl(){if(zm){var s=Ua;if(s!==null)throw s}}function bl(s,o,a,u){zm=!1;var p=s.updateQueue;Oo=!1;var m=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var z=T,Y=z.next;z.next=null,w===null?m=Y:w.next=Y,w=z;var ie=s.alternate;ie!==null&&(ie=ie.updateQueue,T=ie.lastBaseUpdate,T!==w&&(T===null?ie.firstBaseUpdate=Y:T.next=Y,ie.lastBaseUpdate=z))}if(m!==null){var pe=p.baseState;w=0,ie=Y=z=null,T=m;do{var W=T.lane&-536870913,se=W!==T.lane;if(se?(at&W)===W:(u&W)===W){W!==0&&W===$a&&(zm=!0),ie!==null&&(ie=ie.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ie=s,Ue=T;W=o;var It=a;switch(Ue.tag){case 1:if(Ie=Ue.payload,typeof Ie=="function"){pe=Ie.call(It,pe,W);break e}pe=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=Ue.payload,W=typeof Ie=="function"?Ie.call(It,pe,W):Ie,W==null)break e;pe=g({},pe,W);break e;case 2:Oo=!0}}W=T.callback,W!==null&&(s.flags|=64,se&&(s.flags|=8192),se=p.callbacks,se===null?p.callbacks=[W]:se.push(W))}else se={lane:W,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ie===null?(Y=ie=se,z=pe):ie=ie.next=se,w|=W;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;se=T,T=se.next,se.next=null,p.lastBaseUpdate=se,p.shared.pending=null}}while(!0);ie===null&&(z=pe),p.baseState=z,p.firstBaseUpdate=Y,p.lastBaseUpdate=ie,m===null&&(p.shared.lanes=0),Lo|=w,s.lanes=w,s.memoizedState=pe}}function ow(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function iw(s,o){var a=s.callbacks;if(a!==null)for(s.callbacks=null,s=0;sm?m:8;var w=q.T,T={};q.T=T,tg(s,!1,o,a);try{var z=p(),Y=q.S;if(Y!==null&&Y(T,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ie=_z(z,u);wl(s,o,ie,Cs(s))}else wl(s,o,u,Cs(s))}catch(pe){wl(s,o,{then:function(){},status:"rejected",reason:pe},Cs())}finally{X.p=m,w!==null&&T.types!==null&&(w.types=T.types),q.T=w}}function Tz(){}function Jm(s,o,a,u){if(s.tag!==5)throw Error(r(476));var p=Bw(s).queue;Lw(s,p,o,j,a===null?Tz:function(){return $w(s),a(u)})}function Bw(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:j},next:null};var a={};return o.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:a},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function $w(s){var o=Bw(s);o.next===null&&(o=s.alternate.memoizedState),wl(s,o.next.queue,{},Cs())}function eg(){return Nn($l)}function Uw(){return Xt().memoizedState}function jw(){return Xt().memoizedState}function Az(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var a=Cs();s=Mo(a);var u=Do(o,s,a);u!==null&&(us(u,o,a),yl(u,o,a)),o={cache:Im()},s.payload=o;return}o=o.return}}function Iz(s,o,a){var u=Cs();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vf(s)?Fw(o,a):(a=vm(s,o,a,u),a!==null&&(us(a,s,u),qw(a,o,u)))}function Hw(s,o,a){var u=Cs();wl(s,o,a,u)}function wl(s,o,a,u){var p={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Vf(s))Fw(o,p);else{var m=s.alternate;if(s.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var w=o.lastRenderedState,T=m(w,a);if(p.hasEagerState=!0,p.eagerState=T,Ss(T,w))return Rf(s,o,p,0),Dt===null&&xf(),!1}catch{}if(a=vm(s,o,p,u),a!==null)return us(a,s,u),qw(a,o,u),!0}return!1}function tg(s,o,a,u){if(u={lane:2,revertLane:kg(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Vf(s)){if(o)throw Error(r(479))}else o=vm(s,a,u,2),o!==null&&us(o,s,2)}function Vf(s){var o=s.alternate;return s===Xe||o!==null&&o===Xe}function Fw(s,o){qa=Bf=!0;var a=s.pending;a===null?o.next=o:(o.next=a.next,a.next=o),s.pending=o}function qw(s,o,a){if((a&4194048)!==0){var u=o.lanes;u&=s.pendingLanes,a|=u,o.lanes=a,lf(s,a)}}var El={readContext:Nn,use:jf,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};El.useEffectEvent=Zt;var Vw={readContext:Nn,use:jf,useCallback:function(s,o){return Xn().memoizedState=[s,o===void 0?null:o],s},useContext:Nn,useEffect:Aw,useImperativeHandle:function(s,o,a){a=a!=null?a.concat([s]):null,Ff(4194308,4,Dw.bind(null,o,s),a)},useLayoutEffect:function(s,o){return Ff(4194308,4,s,o)},useInsertionEffect:function(s,o){Ff(4,2,s,o)},useMemo:function(s,o){var a=Xn();o=o===void 0?null:o;var u=s();if(Li){cr(!0);try{s()}finally{cr(!1)}}return a.memoizedState=[u,o],u},useReducer:function(s,o,a){var u=Xn();if(a!==void 0){var p=a(o);if(Li){cr(!0);try{a(o)}finally{cr(!1)}}}else p=o;return u.memoizedState=u.baseState=p,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:p},u.queue=s,s=s.dispatch=Iz.bind(null,Xe,s),[u.memoizedState,s]},useRef:function(s){var o=Xn();return s={current:s},o.memoizedState=s},useState:function(s){s=Zm(s);var o=s.queue,a=Hw.bind(null,Xe,o);return o.dispatch=a,[s.memoizedState,a]},useDebugValue:Xm,useDeferredValue:function(s,o){var a=Xn();return Wm(a,s,o)},useTransition:function(){var s=Zm(!1);return s=Lw.bind(null,Xe,s.queue,!0,!1),Xn().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,a){var u=Xe,p=Xn();if(ft){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Dt===null)throw Error(r(349));(at&127)!==0||dw(u,o,a)}p.memoizedState=a;var m={value:a,getSnapshot:o};return p.queue=m,Aw(pw.bind(null,u,m,s),[s]),u.flags|=2048,Ga(9,{destroy:void 0},hw.bind(null,u,m,a,o),null),a},useId:function(){var s=Xn(),o=Dt.identifierPrefix;if(ft){var a=Sr,u=br;a=(u&~(1<<32-Hn(u)-1)).toString(32)+a,o="_"+o+"R_"+a,a=$f++,0<\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?w.createElement(p,{is:u.is}):w.createElement(p)}}m[kn]=o,m[rs]=u;e:for(w=o.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===o)break e;for(;w.sibling===null;){if(w.return===null||w.return===o)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}o.stateNode=m;e:switch(Ln(m,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Zr(o)}}return Lt(o),mg(o,o.type,s===null?null:s.memoizedProps,o.pendingProps,a),null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==u&&Zr(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=Se.current,La(o)){if(s=o.stateNode,a=o.memoizedProps,u=null,p=Pn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}s[kn]=o,s=!!(s.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||ux(s.nodeValue,a)),s||Ao(o,!0)}else s=fd(s).createTextNode(u),s[kn]=o,o.stateNode=s}return Lt(o),null;case 31:if(a=o.memoizedState,s===null||s.memoizedState!==null){if(u=La(o),a!==null){if(s===null){if(!u)throw Error(r(318));if(s=o.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[kn]=o}else Oi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Lt(o),s=!1}else a=Rm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=a),s=!0;if(!s)return o.flags&256?(Es(o),o):(Es(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Lt(o),null;case 13:if(u=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(p=La(o),u!==null&&u.dehydrated!==null){if(s===null){if(!p)throw Error(r(318));if(p=o.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[kn]=o}else Oi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Lt(o),p=!1}else p=Rm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=p),p=!0;if(!p)return o.flags&256?(Es(o),o):(Es(o),null)}return Es(o),(o.flags&128)!==0?(o.lanes=a,o):(a=u!==null,s=s!==null&&s.memoizedState!==null,a&&(u=o.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)),a!==s&&a&&(o.child.flags|=8192),Yf(o,o.updateQueue),Lt(o),null);case 4:return He(),s===null&&Lg(o.stateNode.containerInfo),Lt(o),null;case 10:return qr(o.type),Lt(o),null;case 19:if(te(Yt),u=o.memoizedState,u===null)return Lt(o),null;if(p=(o.flags&128)!==0,m=u.rendering,m===null)if(p)Rl(u,!1);else{if(Qt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(m=Lf(s),m!==null){for(o.flags|=128,Rl(u,!1),s=m.updateQueue,o.updateQueue=s,Yf(o,s),o.subtreeFlags=0,s=a,a=o.child;a!==null;)H_(a,s),a=a.sibling;return oe(Yt,Yt.current&1|2),ft&&Hr(o,u.treeForkCount),o.child}s=s.sibling}u.tail!==null&&it()>td&&(o.flags|=128,p=!0,Rl(u,!1),o.lanes=4194304)}else{if(!p)if(s=Lf(m),s!==null){if(o.flags|=128,p=!0,s=s.updateQueue,o.updateQueue=s,Yf(o,s),Rl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!ft)return Lt(o),null}else 2*it()-u.renderingStartTime>td&&a!==536870912&&(o.flags|=128,p=!0,Rl(u,!1),o.lanes=4194304);u.isBackwards?(m.sibling=o.child,o.child=m):(s=u.last,s!==null?s.sibling=m:o.child=m,u.last=m)}return u.tail!==null?(s=u.tail,u.rendering=s,u.tail=s.sibling,u.renderingStartTime=it(),s.sibling=null,a=Yt.current,oe(Yt,p?a&1|2:a&1),ft&&Hr(o,u.treeForkCount),s):(Lt(o),null);case 22:case 23:return Es(o),Bm(),u=o.memoizedState!==null,s!==null?s.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(a&536870912)!==0&&(o.flags&128)===0&&(Lt(o),o.subtreeFlags&6&&(o.flags|=8192)):Lt(o),a=o.updateQueue,a!==null&&Yf(o,a.retryQueue),a=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==a&&(o.flags|=2048),s!==null&&te(ki),null;case 24:return a=null,s!==null&&(a=s.memoizedState.cache),o.memoizedState.cache!==a&&(o.flags|=2048),qr(sn),Lt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function Pz(s,o){switch(Em(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return qr(sn),He(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return Ht(o),null;case 31:if(o.memoizedState!==null){if(Es(o),o.alternate===null)throw Error(r(340));Oi()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 13:if(Es(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Oi()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return te(Yt),null;case 4:return He(),null;case 10:return qr(o.type),null;case 22:case 23:return Es(o),Bm(),s!==null&&te(ki),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return qr(sn),null;case 25:return null;default:return null}}function mE(s,o){switch(Em(o),o.tag){case 3:qr(sn),He();break;case 26:case 27:case 5:Ht(o);break;case 4:He();break;case 31:o.memoizedState!==null&&Es(o);break;case 13:Es(o);break;case 19:te(Yt);break;case 10:qr(o.type);break;case 22:case 23:Es(o),Bm(),s!==null&&te(ki);break;case 24:qr(sn)}}function Cl(s,o){try{var a=o.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var p=u.next;a=p;do{if((a.tag&s)===s){u=void 0;var m=a.create,w=a.inst;u=m(),w.destroy=u}a=a.next}while(a!==p)}}catch(T){xt(o,o.return,T)}}function No(s,o,a){try{var u=o.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&s)===s){var w=u.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,p=o;var z=a,Y=T;try{Y()}catch(ie){xt(p,z,ie)}}}u=u.next}while(u!==m)}}catch(ie){xt(o,o.return,ie)}}function gE(s){var o=s.updateQueue;if(o!==null){var a=s.stateNode;try{iw(o,a)}catch(u){xt(s,s.return,u)}}}function yE(s,o,a){a.props=Bi(s.type,s.memoizedProps),a.state=s.memoizedState;try{a.componentWillUnmount()}catch(u){xt(s,o,u)}}function Tl(s,o){try{var a=s.ref;if(a!==null){switch(s.tag){case 26:case 27:case 5:var u=s.stateNode;break;case 30:u=s.stateNode;break;default:u=s.stateNode}typeof a=="function"?s.refCleanup=a(u):a.current=u}}catch(p){xt(s,o,p)}}function _r(s,o){var a=s.ref,u=s.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){xt(s,o,p)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){xt(s,o,p)}else a.current=null}function vE(s){var o=s.type,a=s.memoizedProps,u=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(p){xt(s,s.return,p)}}function gg(s,o,a){try{var u=s.stateNode;n4(u,s.type,a,o),u[rs]=o}catch(p){xt(s,s.return,p)}}function bE(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ho(s.type)||s.tag===4}function yg(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||bE(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ho(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function vg(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(s,o):(o=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.appendChild(s),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=$r));else if(u!==4&&(u===27&&Ho(s.type)&&(a=s.stateNode,o=null),s=s.child,s!==null))for(vg(s,o,a),s=s.sibling;s!==null;)vg(s,o,a),s=s.sibling}function Xf(s,o,a){var u=s.tag;if(u===5||u===6)s=s.stateNode,o?a.insertBefore(s,o):a.appendChild(s);else if(u!==4&&(u===27&&Ho(s.type)&&(a=s.stateNode),s=s.child,s!==null))for(Xf(s,o,a),s=s.sibling;s!==null;)Xf(s,o,a),s=s.sibling}function SE(s){var o=s.stateNode,a=s.memoizedProps;try{for(var u=s.type,p=o.attributes;p.length;)o.removeAttributeNode(p[0]);Ln(o,u,a),o[kn]=s,o[rs]=a}catch(m){xt(s,s.return,m)}}var Qr=!1,an=!1,bg=!1,_E=typeof WeakSet=="function"?WeakSet:Set,Rn=null;function Nz(s,o){if(s=s.containerInfo,Ug=vd,s=k_(s),dm(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var w=0,T=-1,z=-1,Y=0,ie=0,pe=s,W=null;t:for(;;){for(var se;pe!==a||p!==0&&pe.nodeType!==3||(T=w+p),pe!==m||u!==0&&pe.nodeType!==3||(z=w+u),pe.nodeType===3&&(w+=pe.nodeValue.length),(se=pe.firstChild)!==null;)W=pe,pe=se;for(;;){if(pe===s)break t;if(W===a&&++Y===p&&(T=w),W===m&&++ie===u&&(z=w),(se=pe.nextSibling)!==null)break;pe=W,W=pe.parentNode}pe=se}a=T===-1||z===-1?null:{start:T,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(jg={focusedElem:s,selectionRange:a},vd=!1,Rn=o;Rn!==null;)if(o=Rn,s=o.child,(o.subtreeFlags&1028)!==0&&s!==null)s.return=o,Rn=s;else for(;Rn!==null;){switch(o=Rn,m=o.alternate,s=o.flags,o.tag){case 0:if((s&4)!==0&&(s=o.updateQueue,s=s!==null?s.events:null,s!==null))for(a=0;a title"))),Ln(m,u,a),m[kn]=s,xn(m),u=m;break e;case"link":var w=Tx("link","href",p).get(u+(a.href||""));if(w){for(var T=0;TIt&&(w=It,It=Ue,Ue=w);var V=M_(T,Ue),F=M_(T,It);if(V&&F&&(se.rangeCount!==1||se.anchorNode!==V.node||se.anchorOffset!==V.offset||se.focusNode!==F.node||se.focusOffset!==F.offset)){var Q=pe.createRange();Q.setStart(V.node,V.offset),se.removeAllRanges(),Ue>It?(se.addRange(Q),se.extend(F.node,F.offset)):(Q.setEnd(F.node,F.offset),se.addRange(Q))}}}}for(pe=[],se=T;se=se.parentNode;)se.nodeType===1&&pe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,q.T=null,a=Cg,Cg=null;var m=$o,w=eo;if(vn=0,Xa=$o=null,eo=0,(St&6)!==0)throw Error(r(331));var T=St;if(St|=4,DE(m.current),IE(m,m.current,w,a),St=T,kl(0,!1),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(_o,m)}catch{}return!0}finally{X.p=p,q.T=u,YE(s,o)}}function WE(s,o,a){o=Fs(a,o),o=og(s.stateNode,o,2),s=Do(s,o,2),s!==null&&(Ei(s,2),wr(s))}function xt(s,o,a){if(s.tag===3)WE(s,s,a);else for(;o!==null;){if(o.tag===3){WE(o,s,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Bo===null||!Bo.has(u))){s=Fs(a,s),a=Jw(2),u=Do(o,a,2),u!==null&&(eE(a,u,o,s),Ei(u,2),wr(u));break}}o=o.return}}function Og(s,o,a){var u=s.pingCache;if(u===null){u=s.pingCache=new Bz;var p=new Set;u.set(o,p)}else p=u.get(o),p===void 0&&(p=new Set,u.set(o,p));p.has(a)||(wg=!0,p.add(a),s=Fz.bind(null,s,o,a),o.then(s,s))}function Fz(s,o,a){var u=s.pingCache;u!==null&&u.delete(o),s.pingedLanes|=s.suspendedLanes&a,s.warmLanes&=~a,Dt===s&&(at&a)===a&&(Qt===4||Qt===3&&(at&62914560)===at&&300>it()-ed?(St&2)===0&&Wa(s,0):Eg|=a,Ya===at&&(Ya=0)),wr(s)}function JE(s,o){o===0&&(o=cf()),s=Ai(s,o),s!==null&&(Ei(s,o),wr(s))}function qz(s){var o=s.memoizedState,a=0;o!==null&&(a=o.retryLane),JE(s,a)}function Vz(s,o){var a=0;switch(s.tag){case 31:case 13:var u=s.stateNode,p=s.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=s.stateNode;break;case 22:u=s.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),JE(s,a)}function Gz(s,o){return ut(s,o)}var ad=null,ec=null,Mg=!1,cd=!1,Dg=!1,jo=0;function wr(s){s!==ec&&s.next===null&&(ec===null?ad=ec=s:ec=ec.next=s),cd=!0,Mg||(Mg=!0,Zz())}function kl(s,o){if(!Dg&&cd){Dg=!0;do for(var a=!1,u=ad;u!==null;){if(s!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var w=u.suspendedLanes,T=u.pingedLanes;m=(1<<31-Hn(42|s)+1)-1,m&=p&~(w&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,sx(u,m))}else m=at,m=wo(u,u===Dt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Eo(u,m)||(a=!0,sx(u,m));u=u.next}while(a);Dg=!1}}function Kz(){ex()}function ex(){cd=Mg=!1;var s=0;jo!==0&&r4()&&(s=jo);for(var o=it(),a=null,u=ad;u!==null;){var p=u.next,m=tx(u,o);m===0?(u.next=null,a===null?ad=p:a.next=p,p===null&&(ec=a)):(a=u,(s!==0||(m&3)!==0)&&(cd=!0)),u=p}vn!==0&&vn!==5||kl(s),jo!==0&&(jo=0)}function tx(s,o){for(var a=s.suspendedLanes,u=s.pingedLanes,p=s.expirationTimes,m=s.pendingLanes&-62914561;0T)break;var ie=z.transferSize,pe=z.initiatorType;ie&&fx(pe)&&(z=z.responseEnd,w+=ie*(z"u"?null:document;function Ex(s,o,a){var u=tc;if(u&&typeof o=="string"&&o){var p=js(o);p='link[rel="'+s+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),wx.has(p)||(wx.add(p),s={rel:s,crossOrigin:a,href:o},u.querySelector(p)===null&&(o=u.createElement("link"),Ln(o,"link",s),xn(o),u.head.appendChild(o)))}}function h4(s){to.D(s),Ex("dns-prefetch",s,null)}function p4(s,o){to.C(s,o),Ex("preconnect",s,o)}function m4(s,o,a){to.L(s,o,a);var u=tc;if(u&&s&&o){var p='link[rel="preload"][as="'+js(o)+'"]';o==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+js(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+js(a.imageSizes)+'"]')):p+='[href="'+js(s)+'"]';var m=p;switch(o){case"style":m=nc(s);break;case"script":m=sc(s)}Qs.has(m)||(s=g({rel:"preload",href:o==="image"&&a&&a.imageSrcSet?void 0:s,as:o},a),Qs.set(m,s),u.querySelector(p)!==null||o==="style"&&u.querySelector(Ll(m))||o==="script"&&u.querySelector(Bl(m))||(o=u.createElement("link"),Ln(o,"link",s),xn(o),u.head.appendChild(o)))}}function g4(s,o){to.m(s,o);var a=tc;if(a&&s){var u=o&&typeof o.as=="string"?o.as:"script",p='link[rel="modulepreload"][as="'+js(u)+'"][href="'+js(s)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=sc(s)}if(!Qs.has(m)&&(s=g({rel:"modulepreload",href:s},o),Qs.set(m,s),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bl(m)))return}u=a.createElement("link"),Ln(u,"link",s),xn(u),a.head.appendChild(u)}}}function y4(s,o,a){to.S(s,o,a);var u=tc;if(u&&s){var p=xa(u).hoistableStyles,m=nc(s);o=o||"default";var w=p.get(m);if(!w){var T={loading:0,preload:null};if(w=u.querySelector(Ll(m)))T.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},a),(a=Qs.get(m))&&Zg(s,a);var z=w=u.createElement("link");xn(z),Ln(z,"link",s),z._p=new Promise(function(Y,ie){z.onload=Y,z.onerror=ie}),z.addEventListener("load",function(){T.loading|=1}),z.addEventListener("error",function(){T.loading|=2}),T.loading|=4,hd(w,o,u)}w={type:"stylesheet",instance:w,count:1,state:T},p.set(m,w)}}}function v4(s,o){to.X(s,o);var a=tc;if(a&&s){var u=xa(a).hoistableScripts,p=sc(s),m=u.get(p);m||(m=a.querySelector(Bl(p)),m||(s=g({src:s,async:!0},o),(o=Qs.get(p))&&Qg(s,o),m=a.createElement("script"),xn(m),Ln(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function b4(s,o){to.M(s,o);var a=tc;if(a&&s){var u=xa(a).hoistableScripts,p=sc(s),m=u.get(p);m||(m=a.querySelector(Bl(p)),m||(s=g({src:s,async:!0,type:"module"},o),(o=Qs.get(p))&&Qg(s,o),m=a.createElement("script"),xn(m),Ln(m,"link",s),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function xx(s,o,a,u){var p=(p=Se.current)?dd(p):null;if(!p)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(o=nc(a.href),a=xa(p).hoistableStyles,u=a.get(o),u||(u={type:"style",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){s=nc(a.href);var m=xa(p).hoistableStyles,w=m.get(s);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(s,w),(m=p.querySelector(Ll(s)))&&!m._p&&(w.instance=m,w.state.loading=5),Qs.has(s)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qs.set(s,a),m||S4(p,s,a,w.state))),o&&u===null)throw Error(r(528,""));return w}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=a.async,a=a.src,typeof a=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=sc(a),a=xa(p).hoistableScripts,u=a.get(o),u||(u={type:"script",instance:null,count:0,state:null},a.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function nc(s){return'href="'+js(s)+'"'}function Ll(s){return'link[rel="stylesheet"]['+s+"]"}function Rx(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function S4(s,o,a,u){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=s.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),Ln(o,"link",a),xn(o),s.head.appendChild(o))}function sc(s){return'[src="'+js(s)+'"]'}function Bl(s){return"script[async]"+s}function Cx(s,o,a){if(o.count++,o.instance===null)switch(o.type){case"style":var u=s.querySelector('style[data-href~="'+js(a.href)+'"]');if(u)return o.instance=u,xn(u),u;var p=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(s.ownerDocument||s).createElement("style"),xn(u),Ln(u,"style",p),hd(u,a.precedence,s),o.instance=u;case"stylesheet":p=nc(a.href);var m=s.querySelector(Ll(p));if(m)return o.state.loading|=4,o.instance=m,xn(m),m;u=Rx(a),(p=Qs.get(p))&&Zg(u,p),m=(s.ownerDocument||s).createElement("link"),xn(m);var w=m;return w._p=new Promise(function(T,z){w.onload=T,w.onerror=z}),Ln(m,"link",u),o.state.loading|=4,hd(m,a.precedence,s),o.instance=m;case"script":return m=sc(a.src),(p=s.querySelector(Bl(m)))?(o.instance=p,xn(p),p):(u=a,(p=Qs.get(m))&&(u=g({},a),Qg(u,p)),s=s.ownerDocument||s,p=s.createElement("script"),xn(p),Ln(p,"link",u),s.head.appendChild(p),o.instance=p);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,hd(u,a.precedence,s));return o.instance}function hd(s,o,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,w=0;w title"):null)}function _4(s,o,a){if(a===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(s=o.disabled,typeof o.precedence=="string"&&s==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Ix(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function w4(s,o,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=nc(u.href),m=o.querySelector(Ll(p));if(m){o=m._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(s.count++,s=md.bind(s),o.then(s,s)),a.state.loading|=4,a.instance=m,xn(m);return}m=o.ownerDocument||o,u=Rx(u),(p=Qs.get(p))&&Zg(u,p),m=m.createElement("link"),xn(m);var w=m;w._p=new Promise(function(T,z){w.onload=T,w.onerror=z}),Ln(m,"link",u),a.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,o),(o=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=md.bind(s),o.addEventListener("load",a),o.addEventListener("error",a))}}var Yg=0;function E4(s,o){return s.stylesheets&&s.count===0&&yd(s,s.stylesheets),0Yg?50:800)+o);return s.unsuspend=a,function(){s.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function md(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yd(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var gd=null;function yd(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,gd=new Map,o.forEach(x4,s),gd=null,md.call(s))}function x4(s,o){if(!(o.state.loading&4)){var a=gd.get(s);if(a)var u=a.get(null);else{a=new Map,gd.set(s,a);for(var p=s.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_y.exports=uB(),_y.exports}var dB=fB();const hB=eA(dB);var xy={exports:{}},Ry={};var I1;function pB(){if(I1)return Ry;I1=1;var e=Mc().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ry.c=function(t){return e.H.useMemoCache(t)},Ry}var O1;function mB(){return O1||(O1=1,xy.exports=pB()),xy.exports}var Ct=mB();const kA=I.createContext(void 0);function gB(e,t){try{const n=localStorage.getItem(e);if(n==="light"||n==="dark"||n==="system")return n}catch{}return t}function yB(e){const t=Ct.c(14),{children:n,defaultTheme:r,storageKey:i}=e,c=r===void 0?"system":r,l=i===void 0?"ui-theme":i;let f;t[0]!==c||t[1]!==l?(f=()=>gB(l,c),t[0]=c,t[1]=l,t[2]=f):f=t[2];const[d,h]=I.useState(f);let y,g;t[3]!==d?(y=()=>{const R=window.document.documentElement;if(R.classList.remove("light","dark"),d==="system"){const C=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";R.classList.add(C);return}R.classList.add(d)},g=[d],t[3]=d,t[4]=y,t[5]=g):(y=t[4],g=t[5]),I.useEffect(y,g);let v;t[6]!==l?(v=R=>{try{localStorage.setItem(l,R)}catch{}h(R)},t[6]=l,t[7]=v):v=t[7];let b;t[8]!==v||t[9]!==d?(b={theme:d,setTheme:v},t[8]=v,t[9]=d,t[10]=b):b=t[10];const _=b;let x;return t[11]!==n||t[12]!==_?(x=$.jsx(kA.Provider,{value:_,children:n}),t[11]=n,t[12]=_,t[13]=x):x=t[13],x}function vB(){const e=I.useContext(kA);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function kv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const iu={};function Yh(e,t,n,r,i){let c={...Pv(e,iu)};return t&&(c=tu(c,t)),n&&(c=tu(c,n)),r&&(c=tu(c,r)),i&&(c=tu(c,i)),c}function bB(e){if(e.length===0)return iu;if(e.length===1)return Pv(e[0],iu);let t={...Pv(e[0],iu)};for(let n=1;n=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function PA(e){return typeof e=="function"}function Pv(e,t){return PA(e)?e(t):e??iu}function wB(e,t){return t?e?n=>{if(EB(n)){const i=n;Nv(i);const c=t(i);return i.baseUIHandlerPrevented||e?.(i),c}const r=t(n);return e?.(n),r}:t:e}function Nv(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function NA(e,t){return t?e?t+" "+e:t:e}function EB(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function go(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const M1={};function Dr(e,t){const n=I.useRef(M1);return n.current===M1&&(n.current=e(t)),n}function ph(e,t,n,r){const i=Dr(zA).current;return RB(i,e,t,n,r)&&LA(i,[e,t,n,r]),i.callback}function xB(e){const t=Dr(zA).current;return CB(t,e)&&LA(t,e),t.callback}function zA(){return{callback:null,cleanup:null,refs:[]}}function RB(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function CB(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function LA(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i{for(let i=0;i=e}function D1(e){if(!I.isValidElement(e))return null;const t=e,n=t.props;return(Cb(19)?n?.ref:t.ref)??null}function AB(e,t){const n={};for(const r in e){const i=e[r];if(t?.hasOwnProperty(r)){const c=t[r](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function IB(e,t){return typeof e=="function"?e(t):e}function OB(e,t){return typeof e=="function"?e(t):e}function BA(){}const wge=Object.freeze([]),Is=Object.freeze({}),MB={style:{transition:"none"}},DB="data-base-ui-click-trigger",Ege={fallbackAxisSide:"none"},kB={fallbackAxisSide:"end"},PB={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function ir(e,t,n={}){const r=t.render,i=NB(t,n);if(n.enabled===!1)return null;const c=n.state??Is;return zB(e,r,i,c)}function NB(e,t={}){const{className:n,style:r,render:i}=e,{state:c=Is,ref:l,props:f,stateAttributesMapping:d,enabled:h=!0}=t,y=h?IB(n,c):void 0,g=h?OB(r,c):void 0,v=h?AB(c,d):Is,b=h?kv(v,Array.isArray(f)?bB(f):f)??Is:Is;return typeof document<"u"&&(h?Array.isArray(l)?b.ref=xB([b.ref,D1(i),...l]):b.ref=ph(b.ref,D1(i),l):ph(null,null)),h?(y!==void 0&&(b.className=NA(b.className,y)),g!==void 0&&(b.style=kv(b.style,g)),b):Is}function zB(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Yh(n,t.props);return i.ref=n.ref,I.cloneElement(t,i)}if(e&&typeof e=="string")return LB(e,n);throw new Error(go(8))}function LB(e,t){return e==="button"?I.createElement("button",{type:"button",...t,key:t.key}):e==="img"?I.createElement("img",{alt:"",...t,key:t.key}):I.createElement(e,t)}function $A(e){return ir(e.defaultTagName??"div",e,e)}function UA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,P1=jA,HA=(e,t)=>n=>{var r;if(t?.variants==null)return P1(e,n?.class,n?.className);const{variants:i,defaultVariants:c}=t,l=Object.keys(i).map(h=>{const y=n?.[h],g=c?.[h];if(y===null)return null;const v=k1(y)||k1(g);return i[h][v]}),f=n&&Object.entries(n).reduce((h,y)=>{let[g,v]=y;return v===void 0||(h[g]=v),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,y)=>{let{class:g,className:v,...b}=y;return Object.entries(b).every(_=>{let[x,R]=_;return Array.isArray(R)?R.includes({...c,...f}[x]):{...c,...f}[x]===R})?[...h,g,v]:h},[]);return P1(e,l,d,n?.class,n?.className)};const FA=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const BB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const $B=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const N1=e=>{const t=$B(e);return t.charAt(0).toUpperCase()+t.slice(1)};var UB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const jB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const HB=I.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:l,...f},d)=>I.createElement("svg",{ref:d,...UB,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:FA("lucide",i),...!c&&!jB(f)&&{"aria-hidden":"true"},...f},[...l.map(([h,y])=>I.createElement(h,y)),...Array.isArray(c)?c:[c]]));const vr=(e,t)=>{const n=I.forwardRef(({className:r,...i},c)=>I.createElement(HB,{ref:c,iconNode:t,className:FA(`lucide-${BB(N1(e))}`,`lucide-${e}`,r),...i}));return n.displayName=N1(e),n};const FB=[["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"}]],qB=vr("circle-alert",FB);const VB=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],GB=vr("hard-drive",VB);const KB=[["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"}]],ZB=vr("house",KB);const QB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],YB=vr("image",QB);const XB=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],WB=vr("key",XB);const JB=[["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"}]],e$=vr("log-out",JB);const t$=[["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"}]],n$=vr("moon",t$);const s$=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],r$=vr("panel-left",s$);const o$=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],z1=vr("server",o$);const i$=[["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"}]],a$=vr("sun",i$);const c$=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],l$=vr("x",c$);function Xh(){return typeof window<"u"}function mi(e){return Tb(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kr(e){var t;return(t=(Tb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tb(e){return Xh()?e instanceof Node||e instanceof hn(e).Node:!1}function _t(e){return Xh()?e instanceof Element||e instanceof hn(e).Element:!1}function wn(e){return Xh()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function zv(e){return!Xh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const u$=new Set(["inline","contents"]);function la(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ks(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!u$.has(i)}const f$=new Set(["table","td","th"]);function d$(e){return f$.has(mi(e))}const h$=[":popover-open",":modal"];function Wh(e){return h$.some(t=>{try{return e.matches(t)}catch{return!1}})}const p$=["transform","translate","scale","rotate","perspective"],m$=["transform","translate","scale","rotate","perspective","filter"],g$=["paint","layout","strict","content"];function Ab(e){const t=Jh(),n=_t(e)?ks(e):e;return p$.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||m$.some(r=>(n.willChange||"").includes(r))||g$.some(r=>(n.contain||"").includes(r))}function y$(e){let t=ho(e);for(;wn(t)&&!uo(t);){if(Ab(t))return t;if(Wh(t))return null;t=ho(t)}return null}function Jh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const v$=new Set(["html","body","#document"]);function uo(e){return v$.has(mi(e))}function ks(e){return hn(e).getComputedStyle(e)}function ep(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ho(e){if(mi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zv(e)&&e.host||kr(e);return zv(t)?t.host:t}function qA(e){const t=ho(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&la(t)?t:qA(t)}function ai(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qA(e),c=i===((r=e.ownerDocument)==null?void 0:r.body),l=hn(i);if(c){const f=Lv(l);return t.concat(l,l.visualViewport||[],la(i)?i:[],f&&n?ai(f):[])}return t.concat(i,ai(i,[],n))}function Lv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Cy=pb[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],b$=Cy&&Cy!==I.useLayoutEffect?Cy:e=>e();function Ze(e){const t=Dr(S$).current;return t.next=e,b$(t.effect),t.trampoline}function S$(){const e={next:void 0,callback:_$,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function _$(){}const w$=()=>{},mt=typeof document<"u"?I.useLayoutEffect:w$,E$=I.createContext(void 0);function x$(e=!1){const t=I.useContext(E$);if(t===void 0&&!e)throw new Error(go(16));return t}function R$(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:c}=e,l=r&&t!==!1,f=r&&t===!1;return{props:I.useMemo(()=>{const h={onKeyDown(y){n&&t&&y.key!=="Tab"&&y.preventDefault()}};return r||(h.tabIndex=i,!c&&n&&(h.tabIndex=t?i:-1)),(c&&(t||l)||!c&&n)&&(h["aria-disabled"]=n),c&&(!t||f)&&(h.disabled=n),h},[r,n,t,l,f,c,i])}}function VA(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,c=I.useRef(null),l=x$(!0)!==void 0,f=Ze(()=>{const v=c.current;return!!(v?.tagName==="A"&&v?.href)}),{props:d}=R$({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),h=I.useCallback(()=>{const v=c.current;C$(v)&&l&&t&&d.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,d.disabled,l]);mt(h,[h]);const y=I.useCallback((v={})=>{const{onClick:b,onMouseDown:_,onKeyUp:x,onKeyDown:R,onPointerDown:C,...A}=v;return Yh({type:i?"button":void 0,onClick(D){if(t){D.preventDefault();return}b?.(D)},onMouseDown(D){t||_?.(D)},onKeyDown(D){if(t||(Nv(D),R?.(D)),D.baseUIHandlerPrevented)return;const N=D.target===D.currentTarget&&!i&&!f()&&!t,U=D.key==="Enter",B=D.key===" ";N&&((B||U)&&D.preventDefault(),U&&b?.(D))},onKeyUp(D){t||(Nv(D),x?.(D)),!D.baseUIHandlerPrevented&&D.target===D.currentTarget&&!i&&!t&&D.key===" "&&b?.(D)},onPointerDown(D){if(t){D.preventDefault();return}C?.(D)}},i?void 0:{role:"button"},d,A)},[t,d,i,f]),g=Ze(v=>{c.current=v,h()});return{getButtonProps:y,buttonRef:g}}function C$(e){return wn(e)&&e.tagName==="BUTTON"}const T$=I.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,...d}=t,{getButtonProps:h,buttonRef:y}=VA({disabled:c,focusableWhenDisabled:l,native:f}),g=I.useMemo(()=>({disabled:c}),[c]);return ir("button",t,{state:g,ref:[n,y],props:[d,h]})}),A$=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),GA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),mh="-",L1=[],O$="arbitrary..",M$=e=>{const t=k$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return D$(l);const f=l.split(mh),d=f[0]===""&&f.length>1?1:0;return KA(f,d,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const d=r[l],h=n[l];return d?h?A$(h,d):d:h||L1}return n[l]||L1}}},KA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],c=n.nextPart.get(i);if(c){const h=KA(e,t+1,c);if(h)return h}const l=n.validators;if(l===null)return;const f=t===0?e.join(mh):e.slice(t).join(mh),d=l.length;for(let h=0;he.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?O$+r:void 0})(),k$=e=>{const{theme:t,classGroups:n}=e;return P$(n,t)},P$=(e,t)=>{const n=GA();for(const r in e){const i=e[r];Ib(i,n,r,t)}return n},Ib=(e,t,n,r)=>{const i=e.length;for(let c=0;c{if(typeof e=="string"){z$(e,t,n);return}if(typeof e=="function"){L$(e,t,n,r);return}B$(e,t,n,r)},z$=(e,t,n)=>{const r=e===""?t:ZA(t,e);r.classGroupId=n},L$=(e,t,n,r)=>{if($$(e)){Ib(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(I$(n,e))},B$=(e,t,n,r)=>{const i=Object.entries(e),c=i.length;for(let l=0;l{let n=e;const r=t.split(mh),i=r.length;for(let c=0;c"isThemeGetter"in e&&e.isThemeGetter===!0,U$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(c,l)=>{n[c]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let l=n[c];if(l!==void 0)return l;if((l=r[c])!==void 0)return i(c,l),l},set(c,l){c in n?n[c]=l:i(c,l)}}},Bv="!",B1=":",j$=[],$1=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),H$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const c=[];let l=0,f=0,d=0,h;const y=i.length;for(let x=0;xd?h-d:void 0;return $1(c,b,v,_)};if(t){const i=t+B1,c=r;r=l=>l.startsWith(i)?c(l.slice(i.length)):$1(j$,!1,l,void 0,!0)}if(n){const i=r;r=c=>n({className:c,parseClassName:i})}return r},F$=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let c=0;c0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},q$=e=>({cache:U$(e.cacheSize),parseClassName:H$(e),sortModifiers:F$(e),...M$(e)}),V$=/\s+/,G$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:c}=t,l=[],f=e.trim().split(V$);let d="";for(let h=f.length-1;h>=0;h-=1){const y=f[h],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:_,maybePostfixModifierPosition:x}=n(y);if(g){d=y+(d.length>0?" "+d:d);continue}let R=!!x,C=r(R?_.substring(0,x):_);if(!C){if(!R){d=y+(d.length>0?" "+d:d);continue}if(C=r(_),!C){d=y+(d.length>0?" "+d:d);continue}R=!1}const A=v.length===0?"":v.length===1?v[0]:c(v).join(":"),O=b?A+Bv:A,D=O+C;if(l.indexOf(D)>-1)continue;l.push(D);const N=i(C,R);for(let U=0;U0?" "+d:d)}return d},K$=(...e)=>{let t=0,n,r,i="";for(;t{if(typeof e=="string")return e;let t,n="";for(let r=0;r{let n,r,i,c;const l=d=>{const h=t.reduce((y,g)=>g(y),e());return n=q$(h),r=n.cache.get,i=n.cache.set,c=f,f(d)},f=d=>{const h=r(d);if(h)return h;const y=G$(d,n);return i(d,y),y};return c=l,(...d)=>c(K$(...d))},Q$=[],bn=e=>{const t=n=>n[e]||Q$;return t.isThemeGetter=!0,t},YA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,XA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Y$=/^\d+\/\d+$/,X$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,J$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oc=e=>Y$.test(e),tt=e=>!!e&&!Number.isNaN(Number(e)),Zo=e=>!!e&&Number.isInteger(Number(e)),Ty=e=>e.endsWith("%")&&tt(e.slice(0,-1)),no=e=>X$.test(e),nU=()=>!0,sU=e=>W$.test(e)&&!J$.test(e),WA=()=>!1,rU=e=>eU.test(e),oU=e=>tU.test(e),iU=e=>!Oe(e)&&!Me(e),aU=e=>Dc(e,tI,WA),Oe=e=>YA.test(e),ji=e=>Dc(e,nI,sU),Ay=e=>Dc(e,dU,tt),U1=e=>Dc(e,JA,WA),cU=e=>Dc(e,eI,oU),Id=e=>Dc(e,sI,rU),Me=e=>XA.test(e),Ql=e=>kc(e,nI),lU=e=>kc(e,hU),j1=e=>kc(e,JA),uU=e=>kc(e,tI),fU=e=>kc(e,eI),Od=e=>kc(e,sI,!0),Dc=(e,t,n)=>{const r=YA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},kc=(e,t,n=!1)=>{const r=XA.exec(e);return r?r[1]?t(r[1]):n:!1},JA=e=>e==="position"||e==="percentage",eI=e=>e==="image"||e==="url",tI=e=>e==="length"||e==="size"||e==="bg-size",nI=e=>e==="length",dU=e=>e==="number",hU=e=>e==="family-name",sI=e=>e==="shadow",pU=()=>{const e=bn("color"),t=bn("font"),n=bn("text"),r=bn("font-weight"),i=bn("tracking"),c=bn("leading"),l=bn("breakpoint"),f=bn("container"),d=bn("spacing"),h=bn("radius"),y=bn("shadow"),g=bn("inset-shadow"),v=bn("text-shadow"),b=bn("drop-shadow"),_=bn("blur"),x=bn("perspective"),R=bn("aspect"),C=bn("ease"),A=bn("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...D(),Me,Oe],U=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],k=()=>[Me,Oe,d],K=()=>[oc,"full","auto",...k()],ne=()=>[Zo,"none","subgrid",Me,Oe],le=()=>["auto",{span:["full",Zo,Me,Oe]},Zo,Me,Oe],G=()=>[Zo,"auto",Me,Oe],Z=()=>["auto","min","max","fr",Me,Oe],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...k()],X=()=>[oc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],j=()=>[e,Me,Oe],ve=()=>[...D(),j1,U1,{position:[Me,Oe]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",uU,aU,{size:[Me,Oe]}],te=()=>[Ty,Ql,ji],oe=()=>["","none","full",h,Me,Oe],de=()=>["",tt,Ql,ji],Re=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[tt,Ty,j1,U1],Ye=()=>["","none",_,Me,Oe],He=()=>["none",tt,Me,Oe],ht=()=>["none",tt,Me,Oe],Ht=()=>[tt,Me,Oe],re=()=>[oc,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[no],breakpoint:[no],color:[nU],container:[no],"drop-shadow":[no],ease:["in","out","in-out"],font:[iU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[no],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[no],shadow:[no],spacing:["px",tt],text:[no],"text-shadow":[no],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oc,Oe,Me,R]}],container:["container"],columns:[{columns:[tt,Oe,Me,f]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Zo,"auto",Me,Oe]}],basis:[{basis:[oc,"full","auto",f,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tt,oc,"auto","initial","none",Oe]}],grow:[{grow:["",tt,Me,Oe]}],shrink:[{shrink:["",tt,Me,Oe]}],order:[{order:[Zo,"first","last","none",Me,Oe]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Ql,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Me,Ay]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ty,Oe]}],"font-family":[{font:[lU,Oe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Me,Oe]}],"line-clamp":[{"line-clamp":[tt,"none",Me,Ay]}],leading:[{leading:[c,...k()]}],"list-image":[{"list-image":["none",Me,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Me,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[tt,"from-font","auto",Me,ji]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[tt,"auto",Me,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me,Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Me,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zo,Me,Oe],radial:["",Me,Oe],conic:[Zo,Me,Oe]},fU,cU]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tt,Me,Oe]}],"outline-w":[{outline:["",tt,Ql,ji]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",y,Od,Id]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",g,Od,Id]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[tt,ji]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",v,Od,Id]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[tt,Me,Oe]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[tt]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Me,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[tt]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Me,Oe]}],filter:[{filter:["","none",Me,Oe]}],blur:[{blur:Ye()}],brightness:[{brightness:[tt,Me,Oe]}],contrast:[{contrast:[tt,Me,Oe]}],"drop-shadow":[{"drop-shadow":["","none",b,Od,Id]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",tt,Me,Oe]}],"hue-rotate":[{"hue-rotate":[tt,Me,Oe]}],invert:[{invert:["",tt,Me,Oe]}],saturate:[{saturate:[tt,Me,Oe]}],sepia:[{sepia:["",tt,Me,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",Me,Oe]}],"backdrop-blur":[{"backdrop-blur":Ye()}],"backdrop-brightness":[{"backdrop-brightness":[tt,Me,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[tt,Me,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tt,Me,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tt,Me,Oe]}],"backdrop-invert":[{"backdrop-invert":["",tt,Me,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[tt,Me,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[tt,Me,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",tt,Me,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Me,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tt,"initial",Me,Oe]}],ease:[{ease:["linear","initial",C,Me,Oe]}],delay:[{delay:[tt,Me,Oe]}],animate:[{animate:["none",A,Me,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Me,Oe]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:Ht()}],"skew-x":[{"skew-x":Ht()}],"skew-y":[{"skew-y":Ht()}],transform:[{transform:[Me,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me,Oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Me,Oe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[tt,Ql,ji,Ay]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mU=Z$(pU);function Jt(...e){return mU(jA(e))}function xge(e){return e?new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Unknown"}function Rge(e){if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(2)} ${t[n]}`}const gU=/\/$/;function Cge(e){return e.replace(gU,"")}function yU(e){return e&&(e.endsWith("/")?e:`${e}/`)}function vU(e,t){return e.startsWith(t)?e:`${t}${e}`}function Tge(e,t){return e.startsWith(t)?e.slice(t.length):e}const bU=HA("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent bg-clip-padding font-medium text-xs/relaxed outline-none transition-all focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function Rc(e){const t=Ct.c(12);let n,r,i,c;t[0]!==e?({className:n,variant:i,size:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(n=t[1],r=t[2],i=t[3],c=t[4]);const l=i===void 0?"default":i,f=c===void 0?"default":c;let d;t[5]!==n||t[6]!==f||t[7]!==l?(d=Jt(bU({variant:l,size:f,className:n})),t[5]=n,t[6]=f,t[7]=l,t[8]=d):d=t[8];let h;return t[9]!==r||t[10]!==d?(h=$.jsx(T$,{className:d,"data-slot":"button",...r}),t[9]=r,t[10]=d,t[11]=h):h=t[11],h}const SU={...pb};let H1=0;function _U(e,t="mui"){const[n,r]=I.useState(e),i=e||n;return I.useEffect(()=>{n==null&&(H1+=1,r(`${t}-${H1}`))},[n,t]),i}const F1=SU.useId;function Pu(e,t){if(F1!==void 0){const n=F1();return e??(t?`${t}-${n}`:n)}return _U(e,t)}function Ob(e){return Pu(e,"base-ui")}const wU=[];function rI(e){I.useEffect(e,wU)}const Yl=0;class ui{static create(){return new ui}currentId=Yl;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Yl,n()},t)}isStarted(){return this.currentId!==Yl}clear=()=>{this.currentId!==Yl&&(clearTimeout(this.currentId),this.currentId=Yl)};disposeEffect=()=>this.clear}function fi(){const e=Dr(ui.create).current;return rI(e.disposeEffect),e}function ua(e){return e?.ownerDocument||document}const Pc=typeof navigator<"u",Iy=RU(),oI=TU(),iI=CU(),EU=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),aI=Iy.platform==="MacIntel"&&Iy.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Iy.platform),cI=Pc&&/apple/i.test(navigator.vendor),$v=Pc&&/android/i.test(oI)||/android/i.test(iI),xU=Pc&&oI.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,lI=iI.includes("jsdom/");function RU(){if(!Pc)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function CU(){if(!Pc)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function TU(){if(!Pc)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const Uv="data-base-ui-focusable",uI="active",fI="selected",dI="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Age="ArrowLeft",Ige="ArrowRight",Oge="ArrowUp",Mge="ArrowDown";function ei(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function bt(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&zv(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ns(e){return"composedPath"in e?e.composedPath()[0]:e.target}function pr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function AU(e){return e.matches("html,body")}function _n(e){return e?.ownerDocument||document}function hI(e){return wn(e)&&e.matches(dI)}function q1(e){return e?e.getAttribute("role")==="combobox"&&hI(e):!1}function IU(e){if(!e||lI)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function jv(e){return e?e.hasAttribute(Uv)?e:e.querySelector(`[${Uv}]`)||e:null}function Wi(e,t,n=!0){return e.filter(i=>i.parentId===t&&(!n||i.context?.open)).flatMap(i=>[i,...Wi(e,i.id,n)])}function V1(e,t){let n=[],r=e.find(i=>i.id===t)?.parentId;for(;r;){const i=e.find(c=>c.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function OU(e){e.preventDefault(),e.stopPropagation()}function MU(e){return"nativeEvent"in e}function DU(e){return e.mozInputSource===0&&e.isTrusted?!0:$v&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kU(e){return lI?!1:!$v&&e.width===0&&e.height===0||$v&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Su(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function PU(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const NU=["top","right","bottom","left"],Cc=Math.min,As=Math.max,gh=Math.round,Md=Math.floor,Ir=e=>({x:e,y:e}),zU={left:"right",right:"left",bottom:"top",top:"bottom"},LU={start:"end",end:"start"};function Hv(e,t,n){return As(e,Cc(t,n))}function po(e,t){return typeof e=="function"?e(t):e}function hs(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function Mb(e){return e==="x"?"y":"x"}function Db(e){return e==="y"?"height":"width"}const BU=new Set(["top","bottom"]);function or(e){return BU.has(hs(e))?"y":"x"}function kb(e){return Mb(or(e))}function $U(e,t,n){n===void 0&&(n=!1);const r=gi(e),i=kb(e),c=Db(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(l=yh(l)),[l,yh(l)]}function UU(e){const t=yh(e);return[Fv(e),t,Fv(t)]}function Fv(e){return e.replace(/start|end/g,t=>LU[t])}const G1=["left","right"],K1=["right","left"],jU=["top","bottom"],HU=["bottom","top"];function FU(e,t,n){switch(e){case"top":case"bottom":return n?t?K1:G1:t?G1:K1;case"left":case"right":return t?jU:HU;default:return[]}}function qU(e,t,n,r){const i=gi(e);let c=FU(hs(e),n==="start",r);return i&&(c=c.map(l=>l+"-"+i),t&&(c=c.concat(c.map(Fv)))),c}function yh(e){return e.replace(/left|right|bottom|top/g,t=>zU[t])}function VU(e){return{top:0,right:0,bottom:0,left:0,...e}}function pI(e){return typeof e!="number"?VU(e):{top:e,right:e,bottom:e,left:e}}function vh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var GU=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],bh=GU.join(","),mI=typeof Element>"u",Tc=mI?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sh=!mI&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},_h=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),c=i===""||i==="true",l=c||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):_h(t.parentNode));return l},KU=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},gI=function(t,n,r){if(_h(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(bh));return n&&Tc.call(t,bh)&&i.unshift(t),i=i.filter(r),i},wh=function(t,n,r){for(var i=[],c=Array.from(t);c.length;){var l=c.shift();if(!_h(l,!1))if(l.tagName==="SLOT"){var f=l.assignedElements(),d=f.length?f:l.children,h=wh(d,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:l,candidates:h})}else{var y=Tc.call(l,bh);y&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),v=!_h(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&v){var b=wh(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,b):i.push({scopeParent:l,candidates:b})}else c.unshift.apply(c,l.children)}}return i},yI=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},vI=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||KU(t))&&!yI(t)?0:t.tabIndex},ZU=function(t,n){var r=vI(t);return r<0&&n&&!yI(t)?0:r},QU=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},bI=function(t){return t.tagName==="INPUT"},YU=function(t){return bI(t)&&t.type==="hidden"},XU=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},WU=function(t,n){for(var r=0;rsummary:first-of-type"),f=l?t.parentElement:t;if(Tc.call(f,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var d=t;t;){var h=t.parentElement,y=Sh(t);if(h&&!h.shadowRoot&&i(h)===!0)return Z1(t);t.assignedSlot?t=t.assignedSlot:!h&&y!==t.ownerDocument?t=y.host:t=h}t=d}if(n5(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Z1(t);return!1},r5=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},SI=function(t){var n=[],r=[];return t.forEach(function(i,c){var l=!!i.scopeParent,f=l?i.scopeParent:i,d=ZU(f,l),h=l?SI(i.candidates):f;d===0?l?n.push.apply(n,h):n.push(f):r.push({documentOrder:c,tabIndex:d,item:i,isScope:l,content:h})}),r.sort(QU).reduce(function(i,c){return c.isScope?i.push.apply(i,c.content):i.push(c.content),i},[]).concat(n)},tp=function(t,n){n=n||{};var r;return n.getShadowRoot?r=wh([t],n.includeContainer,{filter:Vv.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:o5}):r=gI(t,n.includeContainer,Vv.bind(null,n)),SI(r)},i5=function(t,n){n=n||{};var r;return n.getShadowRoot?r=wh([t],n.includeContainer,{filter:qv.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=gI(t,n.includeContainer,qv.bind(null,n)),r},_I=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Tc.call(t,bh)===!1?!1:Vv(n,t)};const Nu=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wI(e,t){const n=tp(e,Nu()),r=n.length;if(r===0)return;const i=ei(_n(e)),c=n.indexOf(i),l=c===-1?t===1?0:r-1:c+t;return n[l]}function EI(e){return wI(_n(e).body,1)||e}function xI(e){return wI(_n(e).body,-1)||e}function au(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!bt(n,r)}function a5(e){tp(e,Nu()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Q1(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Pb="none",Eh="trigger-press",yr="trigger-hover",Xd="trigger-focus",RI="outside-press",Dge="item-press",c5="close-press",CI="focus-out",Nb="escape-key",kge="list-navigation",Pge="cancel-open",l5="disabled",TI="imperative-action",Nge="window-resize";function qt(e,t,n,r){let i=!1,c=!1;const l=Is;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){c=!0},get isCanceled(){return i},get isPropagationAllowed(){return c},trigger:n,...l}}const AI=I.createContext(void 0);function fa(e){const t=I.useContext(AI);if(e===!1&&t===void 0)throw new Error(go(27));return t}let _u=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const u5={[_u.startingStyle]:""},f5={[_u.endingStyle]:""},zb={transitionStatus(e){return e==="starting"?u5:e==="ending"?f5:null}};let Zi=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=_u.startingStyle]="startingStyle",e[e.endingStyle=_u.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),Gv=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const d5={[Gv.popupOpen]:""},h5={[Gv.popupOpen]:"",[Gv.pressed]:""},p5={[Zi.open]:""},m5={[Zi.closed]:""},g5={[Zi.anchorHidden]:""},y5={open(e){return e?d5:null}},zge={open(e){return e?h5:null}},zu={open(e){return e?p5:m5},anchorHidden(e){return e?g5:null}},v5={...zu,...zb},b5=I.forwardRef(function(t,n){const{render:r,className:i,forceRender:c=!1,...l}=t,{store:f}=fa(),d=f.useState("open"),h=f.useState("nested"),y=f.useState("mounted"),g=f.useState("transitionStatus"),v=I.useMemo(()=>({open:d,transitionStatus:g}),[d,g]);return ir("div",t,{state:v,ref:[f.context.backdropRef,n],stateAttributesMapping:v5,props:[{role:"presentation",hidden:!y,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!h})}),S5=I.forwardRef(function(t,n){const{render:r,className:i,disabled:c=!1,nativeButton:l=!0,...f}=t,{store:d}=fa(),h=d.useState("open");function y(_){h&&d.setOpen(!1,qt(c5,_.nativeEvent))}const{getButtonProps:g,buttonRef:v}=VA({disabled:c,native:l}),b=I.useMemo(()=>({disabled:c}),[c]);return ir("button",t,{state:b,ref:[n,v],props:[{onClick:y},f,g]})}),_5=I.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fa(),d=Ob(c);return f.useSyncedValueWithCleanup("descriptionElementId",d),ir("p",t,{ref:n,props:[{id:d},l]})});function Ar(e){const t=Dr(w5,e).current;return t.next=e,mt(t.effect),t}function w5(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function E5(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const x5=I.createContext(null),R5=I.createContext(null),np=()=>I.useContext(x5)?.id||null,Lu=e=>{const t=I.useContext(R5);return e??t};function Ac(e){return`data-base-ui-${e}`}function Wd(e,t,n){if(n&&!Su(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const II=I.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ui,currentIdRef:{current:null},currentContextRef:{current:null}});function C5(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=I.useRef(n),c=I.useRef(n),l=I.useRef(null),f=I.useRef(null),d=fi();return $.jsx(II.Provider,{value:I.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:c,currentIdRef:l,timeoutMs:r,currentContextRef:f,timeout:d}),[r,d]),children:t})}function T5(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:i=!0,open:c}=t,l=I.useContext(II),{currentIdRef:f,delayRef:d,timeoutMs:h,initialDelayRef:y,currentContextRef:g,hasProvider:v,timeout:b}=l,[_,x]=I.useState(!1);return mt(()=>{function R(){x(!1),g.current?.setIsInstantPhase(!1),f.current=null,g.current=null,d.current=y.current}if(i&&f.current&&!c&&f.current===r){if(x(!1),h){const C=r;return b.start(h,()=>{n.select("open")||f.current&&f.current!==C||R()}),()=>{b.clear()}}R()}},[i,c,r,f,d,h,y,g,b,n]),mt(()=>{if(!i||!c)return;const R=g.current,C=f.current;b.clear(),g.current={onOpenChange:n.setOpen,setIsInstantPhase:x},f.current=r,d.current={open:0,close:Wd(y.current,"close")},C!==null&&C!==r?(x(!0),R?.setIsInstantPhase(!0),R?.onOpenChange(!1,qt(Pb))):(x(!1),R?.setIsInstantPhase(!1))},[i,c,r,n,f,d,h,y,g,b]),mt(()=>()=>{g.current=null},[g]),I.useMemo(()=>({hasProvider:v,delayRef:d,isInstantPhase:_}),[v,d,_])}const OI={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},MI={...OI,position:"fixed",top:0,left:0},Lge={...OI,position:"absolute"},Dd=null;class A5{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const kd=new A5;class Tr{static create(){return new Tr}static request(t){return kd.request(t)}static cancel(t){return kd.cancel(t)}currentId=Dd;request(t){this.cancel(),this.currentId=kd.request(()=>{this.currentId=Dd,t()})}cancel=()=>{this.currentId!==Dd&&(kd.cancel(this.currentId),this.currentId=Dd)};disposeEffect=()=>this.cancel}function DI(){const e=Dr(Tr.create).current;return rI(e.disposeEffect),e}const xh=I.forwardRef(function(t,n){const[r,i]=I.useState();mt(()=>{cI&&i("button")},[]);const c={tabIndex:0,role:r};return $.jsx("span",{...t,ref:n,style:MI,"aria-hidden":r?void 0:!0,...c,"data-base-ui-focus-guard":""})});let Y1=0;function Oy(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Y1);const c=()=>e?.focus({preventScroll:n});i?c():Y1=requestAnimationFrame(c)}const gc={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function X1(e){return e==="inert"?gc.inert:e==="aria-hidden"?gc["aria-hidden"]:gc.none}let Pd=new WeakSet,Nd={},My=0;const kI=e=>e&&(e.host||kI(e.parentNode)),I5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=kI(n);return e.contains(r)?r:null}).filter(n=>n!=null);function O5(e,t,n,r){const i="data-base-ui-inert",c=r?"inert":n?"aria-hidden":null,l=I5(t,e),f=new Set,d=new Set(l),h=[];Nd[i]||(Nd[i]=new WeakMap);const y=Nd[i];l.forEach(g),v(t),f.clear();function g(b){!b||f.has(b)||(f.add(b),b.parentNode&&g(b.parentNode))}function v(b){!b||d.has(b)||[].forEach.call(b.children,_=>{if(mi(_)!=="script")if(f.has(_))v(_);else{const x=c?_.getAttribute(c):null,R=x!==null&&x!=="false",C=X1(c),A=(C.get(_)||0)+1,O=(y.get(_)||0)+1;C.set(_,A),y.set(_,O),h.push(_),A===1&&R&&Pd.add(_),O===1&&_.setAttribute(i,""),!R&&c&&_.setAttribute(c,c==="inert"?"":"true")}})}return My+=1,()=>{h.forEach(b=>{const _=X1(c),R=(_.get(b)||0)-1,C=(y.get(b)||0)-1;_.set(b,R),y.set(b,C),R||(!Pd.has(b)&&c&&b.removeAttribute(c),Pd.delete(b)),C||b.removeAttribute(i)}),My-=1,My||(gc.inert=new WeakMap,gc["aria-hidden"]=new WeakMap,gc.none=new WeakMap,Pd=new WeakSet,Nd={})}}function M5(e,t=!1,n=!1){const r=_n(e[0]).body;return O5(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const PI=I.createContext(null),NI=()=>I.useContext(PI),D5=Ac("portal");function zI(e={}){const{ref:t,container:n,componentProps:r=Is,elementProps:i,elementState:c}=e,l=Pu(),d=NI()?.portalNode,[h,y]=I.useState(null),[g,v]=I.useState(null),b=Ze(C=>{C!==null&&v(C)}),_=I.useRef(null);mt(()=>{if(n===null){_.current&&(_.current=null,v(null),y(null));return}if(l==null)return;const C=(n&&(Tb(n)?n:n.current))??d??document.body;if(C==null){_.current&&(_.current=null,v(null),y(null));return}_.current!==C&&(_.current=C,v(null),y(C))},[n,d,l]);const x=ir("div",r,{ref:[t,b],state:c,props:[{id:l,[D5]:""},i]});return{portalNode:g,portalSubtree:h&&x?pi.createPortal(x,h):null}}const k5=I.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,renderGuards:f,...d}=t,{portalNode:h,portalSubtree:y}=zI({container:i,ref:n,componentProps:t,elementProps:d}),g=I.useRef(null),v=I.useRef(null),b=I.useRef(null),_=I.useRef(null),[x,R]=I.useState(null),C=x?.modal,A=x?.open,O=typeof f=="boolean"?f:!!x&&!x.modal&&x.open&&!!h;I.useEffect(()=>{if(!h||C)return;function N(U){h&&U.relatedTarget&&au(U)&&(U.type==="focusin"?Q1:a5)(h)}return h.addEventListener("focusin",N,!0),h.addEventListener("focusout",N,!0),()=>{h.removeEventListener("focusin",N,!0),h.removeEventListener("focusout",N,!0)}},[h,C]),I.useEffect(()=>{!h||A||Q1(h)},[A,h]);const D=I.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:v,beforeInsideRef:b,afterInsideRef:_,portalNode:h,setFocusManagerState:R}),[h]);return $.jsxs(I.Fragment,{children:[y,$.jsxs(PI.Provider,{value:D,children:[O&&h&&$.jsx(xh,{"data-type":"outside",ref:g,onFocus:N=>{if(au(N,h))b.current?.focus();else{const U=x?x.domReference:null;xI(U)?.focus()}}}),O&&h&&$.jsx("span",{"aria-owns":h.id,style:PB}),h&&pi.createPortal(r,h),O&&h&&$.jsx(xh,{"data-type":"outside",ref:v,onFocus:N=>{if(au(N,h))_.current?.focus();else{const U=x?x.domReference:null;EI(U)?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,qt(CI,N.nativeEvent))}}})]})]})});function ro(e){return e==null?e:"current"in e?e.current:e}function P5(e,t){const n=hn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const W1=20;let si=[];function Lb(){si=si.filter(e=>e.isConnected)}function N5(e){Lb(),e&&mi(e)!=="body"&&(si.push(e),si.length>W1&&(si=si.slice(-W1)))}function Dy(){return Lb(),si[si.length-1]}function z5(e){if(!e)return null;const t=Nu();return _I(e,t)?e:tp(e,t)[0]||e}function L5(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():ks(e).display!=="none"}function J1(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Nu(),i=i5(e,n).filter(l=>{const f=l.getAttribute("data-tabindex")||"";return _I(l,n)||l.hasAttribute("data-tabindex")&&!f.startsWith("-")}),c=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function B5(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],initialFocus:c=!0,returnFocus:l=!0,restoreFocus:f=!1,modal:d=!0,closeOnFocusOut:h=!0,openInteractionType:y="",getInsideElements:g=()=>[],nextFocusableElement:v,previousFocusableElement:b,beforeContentFocusGuardRef:_,externalTree:x}=e,R="rootStore"in t?t.rootStore:t,C=R.useState("open"),A=R.useState("domReferenceElement"),O=R.useState("floatingElement"),{events:D,dataRef:N}=R.context,U=Ze(()=>N.current.floatingContext?.nodeId),B=Ze(g),k=c===!1,K=q1(A)&&k,ne=Ar(i),le=Ar(c),G=Ar(l),Z=Ar(y),ye=Lu(x),fe=NI(),q=I.useRef(null),X=I.useRef(null),j=I.useRef(!1),ve=I.useRef(!1),Ce=I.useRef(!1),P=I.useRef(-1),te=I.useRef(""),oe=I.useRef(""),de=I.useRef(null),Re=I.useRef(null),Se=ph(de,_,fe?.beforeInsideRef),be=ph(Re,fe?.afterInsideRef),Ye=fi(),He=fi(),ht=DI(),Ht=fe!=null,re=jv(O),Fe=Ze((_e=re)=>_e?tp(_e,Nu()):[]),Ae=Ze(_e=>{const Pe=Fe(_e);return ne.current.map(()=>Pe).filter(Boolean).flat()});I.useEffect(()=>{if(r||!d)return;function _e(Ve){Ve.key==="Tab"&&bt(re,ei(_n(re)))&&Fe().length===0&&!K&&OU(Ve)}const Pe=_n(re);return Pe.addEventListener("keydown",_e),()=>{Pe.removeEventListener("keydown",_e)}},[r,A,re,d,ne,K,Fe,Ae]),I.useEffect(()=>{if(r||!O)return;function _e(Pe){const Ve=ns(Pe),ut=Fe().indexOf(Ve);ut!==-1&&(P.current=ut)}return O.addEventListener("focusin",_e),()=>{O.removeEventListener("focusin",_e)}},[r,O,Fe]),I.useEffect(()=>{if(r||!C)return;const _e=_n(re);function Pe(){Ce.current=!1}function Ve(ut){const Be=ns(ut),Le=bt(O,Be)||bt(A,Be)||bt(fe?.portalNode,Be);Ce.current=!Le,oe.current=ut.pointerType||"keyboard"}function Qe(){oe.current="keyboard"}return _e.addEventListener("pointerdown",Ve,!0),_e.addEventListener("pointerup",Pe,!0),_e.addEventListener("pointercancel",Pe,!0),_e.addEventListener("keydown",Qe,!0),()=>{_e.removeEventListener("pointerdown",Ve,!0),_e.removeEventListener("pointerup",Pe,!0),_e.removeEventListener("pointercancel",Pe,!0),_e.removeEventListener("keydown",Qe,!0)}},[r,O,A,re,C,fe]),I.useEffect(()=>{if(r||!h)return;function _e(){ve.current=!0,He.start(0,()=>{ve.current=!1})}function Pe(Be){const Le=Be.relatedTarget,tn=Be.currentTarget,it=ns(Be);queueMicrotask(()=>{const vs=U(),gt=R.context.triggerElements,Bt=Le?.hasAttribute(Ac("focus-guard"))&&[de.current,Re.current,fe?.beforeInsideRef.current,fe?.afterInsideRef.current,fe?.beforeOutsideRef.current,fe?.afterOutsideRef.current,ro(b),ro(v)].includes(Le),$t=!(bt(A,Le)||bt(O,Le)||bt(Le,O)||bt(fe?.portalNode,Le)||Le!=null&>.hasElement(Le)||gt.hasMatchingElement(nn=>bt(nn,Le))||Bt||ye&&(Wi(ye.nodesRef.current,vs).find(nn=>bt(nn.context?.elements.floating,Le)||bt(nn.context?.elements.domReference,Le))||V1(ye.nodesRef.current,vs).find(nn=>[nn.context?.elements.floating,jv(nn.context?.elements.floating)].includes(Le)||nn.context?.elements.domReference===Le)));if(tn===A&&re&&J1(re,ne),f&&tn!==A&&!L5(it)&&ei(_n(re))===_n(re).body){if(wn(re)&&(re.focus(),f==="popup")){ht.request(()=>{re.focus()});return}const nn=P.current,bs=Fe(),Ls=bs[nn]||bs[bs.length-1]||re;wn(Ls)&&Ls.focus()}if(N.current.insideReactTree){N.current.insideReactTree=!1;return}(K||!d)&&Le&&$t&&!ve.current&&(K||Le!==Dy())&&(j.current=!0,R.setOpen(!1,qt(CI,Be)))})}function Ve(){Ce.current||(N.current.insideReactTree=!0,Ye.start(0,()=>{N.current.insideReactTree=!1}))}const Qe=wn(A)?A:null,ut=[];if(!(!O&&!Qe))return Qe&&(Qe.addEventListener("focusout",Pe),Qe.addEventListener("pointerdown",_e),ut.push(()=>{Qe.removeEventListener("focusout",Pe),Qe.removeEventListener("pointerdown",_e)})),O&&(O.addEventListener("focusout",Pe),fe&&(O.addEventListener("focusout",Ve,!0),ut.push(()=>{O.removeEventListener("focusout",Ve,!0)})),ut.push(()=>{O.removeEventListener("focusout",Pe)})),()=>{ut.forEach(Be=>{Be()})}},[r,A,O,re,d,ye,fe,R,h,f,Fe,K,U,ne,N,Ye,He,ht,v,b]),I.useEffect(()=>{if(r||!O||!C)return;const _e=Array.from(fe?.portalNode?.querySelectorAll(`[${Ac("portal")}]`)||[]),Ve=(ye?V1(ye.nodesRef.current,U()):[]).find(Be=>q1(Be.context?.elements.domReference||null))?.context?.elements.domReference,Qe=[O,Ve,..._e,...B(),q.current,X.current,de.current,Re.current,fe?.beforeOutsideRef.current,fe?.afterOutsideRef.current,ro(b),ro(v),K?A:null].filter(Be=>Be!=null),ut=M5(Qe,d||K);return()=>{ut()}},[C,r,A,O,d,ne,fe,K,ye,U,B,v,b]),mt(()=>{if(!C||r||!wn(re))return;const _e=_n(re),Pe=ei(_e);queueMicrotask(()=>{const Ve=Ae(re),Qe=le.current,ut=typeof Qe=="function"?Qe(Z.current||""):Qe;if(ut===void 0||ut===!1)return;let Be;ut===!0||ut===null?Be=Ve[0]||re:Be=ro(ut),Be=Be||Ve[0]||re,!bt(re,Pe)&&Oy(Be,{preventScroll:Be===re})})},[r,C,re,k,Ae,le,Z]),mt(()=>{if(r||!re)return;const _e=_n(re),Pe=ei(_e);N5(Pe);function Ve(Be){if(Be.open||(te.current=P5(Be.nativeEvent,oe.current)),Be.reason===yr&&Be.nativeEvent.type==="mouseleave"&&(j.current=!0),Be.reason===RI)if(Be.nested)j.current=!1;else if(DU(Be.nativeEvent)||kU(Be.nativeEvent))j.current=!1;else{let Le=!1;document.createElement("div").focus({get preventScroll(){return Le=!0,!1}}),Le?j.current=!1:j.current=!0}}D.on("openchange",Ve);const Qe=_e.createElement("span");Qe.setAttribute("tabindex","-1"),Qe.setAttribute("aria-hidden","true"),Object.assign(Qe.style,MI),Ht&&A&&A.insertAdjacentElement("afterend",Qe);function ut(){const Be=G.current;let Le=typeof Be=="function"?Be(te.current):Be;if(Le===void 0||Le===!1)return null;if(Le===null&&(Le=!0),typeof Le=="boolean"){const it=A||Dy();return it&&it.isConnected?it:Qe}const tn=A||Dy()||Qe;return ro(Le)||tn}return()=>{D.off("openchange",Ve);const Be=ei(_e),Le=bt(O,Be)||ye&&Wi(ye.nodesRef.current,U(),!1).some(it=>bt(it.context?.elements.floating,Be)),tn=ut();queueMicrotask(()=>{const it=z5(tn),vs=typeof G.current!="boolean";G.current&&!j.current&&wn(it)&&(!(!vs&&it!==Be&&Be!==_e.body)||Le)&&it.focus({preventScroll:!0}),Qe.remove()})}},[r,O,re,G,N,D,ye,Ht,A,U]),I.useEffect(()=>{queueMicrotask(()=>{j.current=!1})},[r]),I.useEffect(()=>{if(r||!C)return;function _e(Ve){ns(Ve)?.closest(`[${DB}]`)&&(ve.current=!0)}const Pe=_n(re);return Pe.addEventListener("pointerdown",_e,!0),()=>{Pe.removeEventListener("pointerdown",_e,!0)}},[r,C,re]),mt(()=>{if(!r&&fe)return fe.setFocusManagerState({modal:d,closeOnFocusOut:h,open:C,onOpenChange:R.setOpen,domReference:A}),()=>{fe.setFocusManagerState(null)}},[r,fe,d,C,R,h,A]),mt(()=>{if(!(r||!re))return J1(re,ne),()=>{queueMicrotask(Lb)}},[r,re,ne]);const Pt=!r&&(d?!K:!0)&&(Ht||d);return $.jsxs(I.Fragment,{children:[Pt&&$.jsx(xh,{"data-type":"inside",ref:Se,onFocus:_e=>{if(d){const Pe=Ae();Oy(Pe[Pe.length-1])}else fe?.portalNode&&(j.current=!1,au(_e,fe.portalNode)?EI(A)?.focus():ro(b??fe.beforeOutsideRef)?.focus())}}),n,Pt&&$.jsx(xh,{"data-type":"inside",ref:be,onFocus:_e=>{d?Oy(Ae()[0]):fe?.portalNode&&(h&&(j.current=!0),au(_e,fe.portalNode)?xI(A)?.focus():ro(v??fe.afterOutsideRef)?.focus())}})]})}function $5(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){const c=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",f=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let h=c.width,y=c.height,g=c.x,v=c.y;return n==null&&t.x&&l&&(n=c.x-t.x),r==null&&t.y&&f&&(r=c.y-t.y),g-=n||0,v-=r||0,h=0,y=0,!i||d?(h=t.axis==="y"?c.width:0,y=t.axis==="x"?c.height:0,g=l&&t.x!=null?t.x:g,v=f&&t.y!=null?t.y:v):i&&!d&&(y=t.axis==="x"?c.height:y,h=t.axis==="y"?c.width:h),i=!0,{width:h,height:y,x:g,y:v,top:v,right:g+h,bottom:v+y,left:g}}}}function eR(e){return e!=null&&e.clientX!=null}function U5(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:f=!0,axis:d="both",x:h=null,y=null}=t,g=I.useRef(!1),v=I.useRef(null),[b,_]=I.useState(),[x,R]=I.useState([]),C=Ze((U,B,k)=>{g.current||l.current.openEvent&&!eR(l.current.openEvent)||n.set("positionReference",$5(k??c,{x:U,y:B,axis:d,dataRef:l,pointerType:b}))}),A=Ze(U=>{h!=null||y!=null||(r?v.current||R([]):C(U.clientX,U.clientY,U.currentTarget))}),O=Su(b)?i:r,D=I.useCallback(()=>{if(!O||!f||h!=null||y!=null)return;const U=hn(i);function B(k){const K=ns(k);bt(i,K)?(U.removeEventListener("mousemove",B),v.current=null):C(k.clientX,k.clientY)}if(!l.current.openEvent||eR(l.current.openEvent)){U.addEventListener("mousemove",B);const k=()=>{U.removeEventListener("mousemove",B),v.current=null};return v.current=k,k}n.set("positionReference",c)},[O,f,h,y,i,l,c,n,C]);I.useEffect(()=>D(),[D,x]),I.useEffect(()=>{f&&!i&&(g.current=!1)},[f,i]),I.useEffect(()=>{!f&&r&&(g.current=!0)},[f,r]),mt(()=>{f&&(h!=null||y!=null)&&(g.current=!1,C(h,y))},[f,h,y,C]);const N=I.useMemo(()=>{function U(B){_(B.pointerType)}return{onPointerDown:U,onPointerEnter:U,onMouseMove:A,onMouseEnter:A}},[A]);return I.useMemo(()=>f?{reference:N,trigger:N}:{},[f,N])}function tR(e,t,n){let{reference:r,floating:i}=e;const c=or(t),l=kb(t),f=Db(l),d=hs(t),h=c==="y",y=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[f]/2-i[f]/2;let b;switch(d){case"top":b={x:y,y:r.y-i.height};break;case"bottom":b={x:y,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:g};break;case"left":b={x:r.x-i.width,y:g};break;default:b={x:r.x,y:r.y}}switch(gi(t)){case"start":b[l]-=v*(n&&h?-1:1);break;case"end":b[l]+=v*(n&&h?-1:1);break}return b}const j5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:c=[],platform:l}=n,f=c.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:g}=tR(h,r,d),v=r,b={},_=0;for(let x=0;xye<=0)){var le,G;const ye=(((le=c.flip)==null?void 0:le.index)||0)+1,fe=B[ye];if(fe&&(!(g==="alignment"?A!==or(fe):!1)||ne.every(j=>or(j.placement)===A?j.overflows[0]>0:!0)))return{data:{index:ye,overflows:ne},reset:{placement:fe}};let q=(G=ne.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:G.placement;if(!q)switch(b){case"bestFit":{var Z;const X=(Z=ne.filter(j=>{if(U){const ve=or(j.placement);return ve===A||ve==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ve=>ve>0).reduce((ve,Ce)=>ve+Ce,0)]).sort((j,ve)=>j[1]-ve[1])[0])==null?void 0:Z[0];X&&(q=X);break}case"initialPlacement":q=f;break}if(i!==q)return{reset:{placement:q}}}return{}}}};function nR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sR(e){return NU.some(t=>e[t]>=0)}const F5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=po(e,t);switch(r){case"referenceHidden":{const c=await wu(t,{...i,elementContext:"reference"}),l=nR(c,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:sR(l)}}}case"escaped":{const c=await wu(t,{...i,altBoundary:!0}),l=nR(c,n.floating);return{data:{escapedOffsets:l,escaped:sR(l)}}}default:return{}}}}},LI=new Set(["left","top"]);async function q5(e,t){const{placement:n,platform:r,elements:i}=e,c=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=hs(n),f=gi(n),d=or(n)==="y",h=LI.has(l)?-1:1,y=c&&d?-1:1,g=po(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof _=="number"&&(b=f==="end"?_*-1:_),d?{x:b*y,y:v*h}:{x:v*h,y:b*y}}const V5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:c,placement:l,middlewareData:f}=t,d=await q5(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:c+d.y,data:{...d,placement:l}}}}},G5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:c=!0,crossAxis:l=!1,limiter:f={fn:R=>{let{x:C,y:A}=R;return{x:C,y:A}}},...d}=po(e,t),h={x:n,y:r},y=await wu(t,d),g=or(hs(i)),v=Mb(g);let b=h[v],_=h[g];if(c){const R=v==="y"?"top":"left",C=v==="y"?"bottom":"right",A=b+y[R],O=b-y[C];b=Hv(A,b,O)}if(l){const R=g==="y"?"top":"left",C=g==="y"?"bottom":"right",A=_+y[R],O=_-y[C];_=Hv(A,_,O)}const x=f.fn({...t,[v]:b,[g]:_});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:c,[g]:l}}}}}},K5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:c,middlewareData:l}=t,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=po(e,t),y={x:n,y:r},g=or(i),v=Mb(g);let b=y[v],_=y[g];const x=po(f,t),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const O=v==="y"?"height":"width",D=c.reference[v]-c.floating[O]+R.mainAxis,N=c.reference[v]+c.reference[O]-R.mainAxis;bN&&(b=N)}if(h){var C,A;const O=v==="y"?"width":"height",D=LI.has(hs(i)),N=c.reference[g]-c.floating[O]+(D&&((C=l.offset)==null?void 0:C[g])||0)+(D?0:R.crossAxis),U=c.reference[g]+c.reference[O]+(D?0:((A=l.offset)==null?void 0:A[g])||0)-(D?R.crossAxis:0);_U&&(_=U)}return{[v]:b,[g]:_}}}},Z5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:c,platform:l,elements:f}=t,{apply:d=()=>{},...h}=po(e,t),y=await wu(t,h),g=hs(i),v=gi(i),b=or(i)==="y",{width:_,height:x}=c.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=v===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(C=g,R=v==="end"?"top":"bottom");const A=x-y.top-y.bottom,O=_-y.left-y.right,D=Cc(x-y[R],A),N=Cc(_-y[C],O),U=!t.middlewareData.shift;let B=D,k=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(B=A),U&&!v){const ne=As(y.left,0),le=As(y.right,0),G=As(y.top,0),Z=As(y.bottom,0);b?k=_-2*(ne!==0||le!==0?ne+le:As(y.left,y.right)):B=x-2*(G!==0||Z!==0?G+Z:As(y.top,y.bottom))}await d({...t,availableWidth:k,availableHeight:B});const K=await l.getDimensions(f.floating);return _!==K.width||x!==K.height?{reset:{rects:!0}}:{}}}};function BI(e){const t=ks(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),c=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=gh(n)!==c||gh(r)!==l;return f&&(n=c,r=l),{width:n,height:r,$:f}}function Bb(e){return _t(e)?e:e.contextElement}function yc(e){const t=Bb(e);if(!wn(t))return Ir(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:c}=BI(t);let l=(c?gh(n.width):n.width)/r,f=(c?gh(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const Q5=Ir(0);function $I(e){const t=hn(e);return!Jh()||!t.visualViewport?Q5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function sa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),c=Bb(e);let l=Ir(1);t&&(r?_t(r)&&(l=yc(r)):l=yc(e));const f=Y5(c,n,r)?$I(c):Ir(0);let d=(i.left+f.x)/l.x,h=(i.top+f.y)/l.y,y=i.width/l.x,g=i.height/l.y;if(c){const v=hn(c),b=r&&_t(r)?hn(r):r;let _=v,x=Lv(_);for(;x&&r&&b!==_;){const R=yc(x),C=x.getBoundingClientRect(),A=ks(x),O=C.left+(x.clientLeft+parseFloat(A.paddingLeft))*R.x,D=C.top+(x.clientTop+parseFloat(A.paddingTop))*R.y;d*=R.x,h*=R.y,y*=R.x,g*=R.y,d+=O,h+=D,_=hn(x),x=Lv(_)}}return vh({width:y,height:g,x:d,y:h})}function sp(e,t){const n=ep(e).scrollLeft;return t?t.left+n:sa(kr(e)).left+n}function UI(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-sp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function X5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const c=i==="fixed",l=kr(r),f=t?Wh(t.floating):!1;if(r===l||f&&c)return n;let d={scrollLeft:0,scrollTop:0},h=Ir(1);const y=Ir(0),g=wn(r);if((g||!g&&!c)&&((mi(r)!=="body"||la(l))&&(d=ep(r)),wn(r))){const b=sa(r);h=yc(r),y.x=b.x+r.clientLeft,y.y=b.y+r.clientTop}const v=l&&!g&&!c?UI(l,d):Ir(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+y.x+v.x,y:n.y*h.y-d.scrollTop*h.y+y.y+v.y}}function W5(e){return Array.from(e.getClientRects())}function J5(e){const t=kr(e),n=ep(e),r=e.ownerDocument.body,i=As(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=As(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+sp(e);const f=-n.scrollTop;return ks(r).direction==="rtl"&&(l+=As(t.clientWidth,r.clientWidth)-i),{width:i,height:c,x:l,y:f}}const rR=25;function e8(e,t){const n=hn(e),r=kr(e),i=n.visualViewport;let c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(i){c=i.width,l=i.height;const y=Jh();(!y||y&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const h=sp(r);if(h<=0){const y=r.ownerDocument,g=y.body,v=getComputedStyle(g),b=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(r.clientWidth-g.clientWidth-b);_<=rR&&(c-=_)}else h<=rR&&(c+=h);return{width:c,height:l,x:f,y:d}}const t8=new Set(["absolute","fixed"]);function n8(e,t){const n=sa(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,c=wn(e)?yc(e):Ir(1),l=e.clientWidth*c.x,f=e.clientHeight*c.y,d=i*c.x,h=r*c.y;return{width:l,height:f,x:d,y:h}}function oR(e,t,n){let r;if(t==="viewport")r=e8(e,n);else if(t==="document")r=J5(kr(e));else if(_t(t))r=n8(t,n);else{const i=$I(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return vh(r)}function jI(e,t){const n=ho(e);return n===t||!_t(n)||uo(n)?!1:ks(n).position==="fixed"||jI(n,t)}function s8(e,t){const n=t.get(e);if(n)return n;let r=ai(e,[],!1).filter(f=>_t(f)&&mi(f)!=="body"),i=null;const c=ks(e).position==="fixed";let l=c?ho(e):e;for(;_t(l)&&!uo(l);){const f=ks(l),d=Ab(l);!d&&f.position==="fixed"&&(i=null),(c?!d&&!i:!d&&f.position==="static"&&!!i&&t8.has(i.position)||la(l)&&!d&&jI(e,l))?r=r.filter(y=>y!==l):i=f,l=ho(l)}return t.set(e,r),r}function r8(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Wh(t)?[]:s8(t,this._c):[].concat(n),r],f=l[0],d=l.reduce((h,y)=>{const g=oR(t,y,i);return h.top=As(g.top,h.top),h.right=Cc(g.right,h.right),h.bottom=Cc(g.bottom,h.bottom),h.left=As(g.left,h.left),h},oR(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function o8(e){const{width:t,height:n}=BI(e);return{width:t,height:n}}function i8(e,t,n){const r=wn(t),i=kr(t),c=n==="fixed",l=sa(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const d=Ir(0);function h(){d.x=sp(i)}if(r||!r&&!c)if((mi(t)!=="body"||la(i))&&(f=ep(t)),r){const b=sa(t,!0,c,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else i&&h();c&&!r&&i&&h();const y=i&&!r&&!c?UI(i,f):Ir(0),g=l.left+f.scrollLeft-d.x-y.x,v=l.top+f.scrollTop-d.y-y.y;return{x:g,y:v,width:l.width,height:l.height}}function ky(e){return ks(e).position==="static"}function iR(e,t){if(!wn(e)||ks(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kr(e)===n&&(n=n.ownerDocument.body),n}function HI(e,t){const n=hn(e);if(Wh(e))return n;if(!wn(e)){let i=ho(e);for(;i&&!uo(i);){if(_t(i)&&!ky(i))return i;i=ho(i)}return n}let r=iR(e,t);for(;r&&d$(r)&&ky(r);)r=iR(r,t);return r&&uo(r)&&ky(r)&&!Ab(r)?n:r||y$(e)||n}const a8=async function(e){const t=this.getOffsetParent||HI,n=this.getDimensions,r=await n(e.floating);return{reference:i8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function c8(e){return ks(e).direction==="rtl"}const l8={convertOffsetParentRelativeRectToViewportRelativeRect:X5,getDocumentElement:kr,getClippingRect:r8,getOffsetParent:HI,getElementRects:a8,getClientRects:W5,getDimensions:o8,getScale:yc,isElement:_t,isRTL:c8};function FI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u8(e,t){let n=null,r;const i=kr(e);function c(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),c();const h=e.getBoundingClientRect(),{left:y,top:g,width:v,height:b}=h;if(f||t(),!v||!b)return;const _=Md(g),x=Md(i.clientWidth-(y+v)),R=Md(i.clientHeight-(g+b)),C=Md(y),O={rootMargin:-_+"px "+-x+"px "+-R+"px "+-C+"px",threshold:As(0,Cc(1,d))||1};let D=!0;function N(U){const B=U[0].intersectionRatio;if(B!==d){if(!D)return l();B?l(!1,B):r=setTimeout(()=>{l(!1,1e-7)},1e3)}B===1&&!FI(h,e.getBoundingClientRect())&&l(),D=!1}try{n=new IntersectionObserver(N,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,O)}n.observe(e)}return l(!0),c}function aR(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Bb(e),y=i||c?[...h?ai(h):[],...ai(t)]:[];y.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),c&&C.addEventListener("resize",n)});const g=h&&f?u8(h,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(C=>{let[A]=C;A&&A.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(t)})),n()}),h&&!d&&b.observe(h),b.observe(t));let _,x=d?sa(e):null;d&&R();function R(){const C=sa(e);x&&!FI(x,C)&&n(),x=C,_=requestAnimationFrame(R)}return n(),()=>{var C;y.forEach(A=>{i&&A.removeEventListener("scroll",n),c&&A.removeEventListener("resize",n)}),g?.(),(C=b)==null||C.disconnect(),b=null,d&&cancelAnimationFrame(_)}}const f8=V5,d8=G5,h8=H5,p8=Z5,m8=F5,g8=K5,y8=(e,t,n)=>{const r=new Map,i={platform:l8,...n},c={...i.platform,_c:r};return j5(e,t,{...i,platform:c})};var v8=typeof document<"u",b8=function(){},Jd=v8?I.useLayoutEffect:b8;function Rh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const c=i[r];if(!(c==="_owner"&&e.$$typeof)&&!Rh(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function qI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cR(e,t){const n=qI(e);return Math.round(t*n)/n}function Py(e){const t=I.useRef(e);return Jd(()=>{t.current=e}),t}function S8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:c,floating:l}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[y,g]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=I.useState(r);Rh(v,r)||b(r);const[_,x]=I.useState(null),[R,C]=I.useState(null),A=I.useCallback(j=>{j!==U.current&&(U.current=j,x(j))},[]),O=I.useCallback(j=>{j!==B.current&&(B.current=j,C(j))},[]),D=c||_,N=l||R,U=I.useRef(null),B=I.useRef(null),k=I.useRef(y),K=d!=null,ne=Py(d),le=Py(i),G=Py(h),Z=I.useCallback(()=>{if(!U.current||!B.current)return;const j={placement:t,strategy:n,middleware:v};le.current&&(j.platform=le.current),y8(U.current,B.current,j).then(ve=>{const Ce={...ve,isPositioned:G.current!==!1};ye.current&&!Rh(k.current,Ce)&&(k.current=Ce,pi.flushSync(()=>{g(Ce)}))})},[v,t,n,le,G]);Jd(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(j=>({...j,isPositioned:!1})))},[h]);const ye=I.useRef(!1);Jd(()=>(ye.current=!0,()=>{ye.current=!1}),[]),Jd(()=>{if(D&&(U.current=D),N&&(B.current=N),D&&N){if(ne.current)return ne.current(D,N,Z);Z()}},[D,N,Z,ne,K]);const fe=I.useMemo(()=>({reference:U,floating:B,setReference:A,setFloating:O}),[A,O]),q=I.useMemo(()=>({reference:D,floating:N}),[D,N]),X=I.useMemo(()=>{const j={position:n,left:0,top:0};if(!q.floating)return j;const ve=cR(q.floating,y.x),Ce=cR(q.floating,y.y);return f?{...j,transform:"translate("+ve+"px, "+Ce+"px)",...qI(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ve,top:Ce}},[n,f,q.floating,y.x,y.y]);return I.useMemo(()=>({...y,update:Z,refs:fe,elements:q,floatingStyles:X}),[y,Z,fe,q,X])}const _8=(e,t)=>({...f8(e),options:[e,t]}),w8=(e,t)=>({...d8(e),options:[e,t]}),E8=(e,t)=>({...g8(e),options:[e,t]}),x8=(e,t)=>({...h8(e),options:[e,t]}),R8=(e,t)=>({...p8(e),options:[e,t]}),C8=(e,t)=>({...m8(e),options:[e,t]}),T8={intentional:"onClick",sloppy:"onPointerDown"};function A8(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function VI(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:f,dataRef:d}=n.context,{enabled:h=!0,escapeKey:y=!0,outsidePress:g=!0,outsidePressEvent:v="sloppy",referencePress:b=!1,referencePressEvent:_="sloppy",ancestorScroll:x=!1,bubbles:R,externalTree:C}=t,A=Lu(C),O=Ze(typeof g=="function"?g:()=>!1),D=typeof g=="function"?O:g,N=I.useRef(!1),{escapeKey:U,outsidePress:B}=A8(R),k=I.useRef(null),K=fi(),ne=fi(),le=Ze(()=>{ne.clear(),d.current.insideReactTree=!1}),G=I.useRef(!1),Z=I.useRef(""),ye=Ze(re=>{Z.current=re.pointerType}),fe=Ze(()=>{const re=Z.current,Fe=re==="pen"||!re?"mouse":re,Ae=typeof v=="function"?v():v;return typeof Ae=="string"?Ae:Ae[Fe]}),q=Ze(re=>{if(!r||!h||!y||re.key!=="Escape"||G.current)return;const Fe=d.current.floatingContext?.nodeId,Ae=A?Wi(A.nodesRef.current,Fe):[];if(!U&&Ae.length>0){let Pe=!0;if(Ae.forEach(Ve=>{Ve.context?.open&&!Ve.context.dataRef.current.__escapeKeyBubbles&&(Pe=!1)}),!Pe)return}const Pt=MU(re)?re.nativeEvent:re,_e=qt(Nb,Pt);n.setOpen(!1,_e),!U&&!_e.isPropagationAllowed&&re.stopPropagation()}),X=Ze(re=>{const Fe=fe();return Fe==="intentional"&&re.type!=="click"||Fe==="sloppy"&&re.type==="click"}),j=Ze(()=>{d.current.insideReactTree=!0,ne.start(0,le)}),ve=Ze((re,Fe=!1)=>{if(X(re)){le();return}if(d.current.insideReactTree){le();return}if(fe()==="intentional"&&Fe||typeof D=="function"&&!D(re))return;const Ae=ns(re),Pt=`[${Ac("inert")}]`,_e=_n(n.select("floatingElement")).querySelectorAll(Pt),Pe=n.context.triggerElements;if(Ae&&(Pe.hasElement(Ae)||Pe.hasMatchingElement(Le=>bt(Le,Ae))))return;let Ve=_t(Ae)?Ae:null;for(;Ve&&!uo(Ve);){const Le=ho(Ve);if(uo(Le)||!_t(Le))break;Ve=Le}if(_e.length&&_t(Ae)&&!AU(Ae)&&!bt(Ae,n.select("floatingElement"))&&Array.from(_e).every(Le=>!bt(Ve,Le)))return;if(wn(Ae)&&!("touches"in re)){const Le=uo(Ae),tn=ks(Ae),it=/auto|scroll/,vs=Le||it.test(tn.overflowX),gt=Le||it.test(tn.overflowY),Bt=vs&&Ae.clientWidth>0&&Ae.scrollWidth>Ae.clientWidth,$t=gt&&Ae.clientHeight>0&&Ae.scrollHeight>Ae.clientHeight,nn=tn.direction==="rtl",bs=$t&&(nn?re.offsetX<=Ae.offsetWidth-Ae.clientWidth:re.offsetX>Ae.clientWidth),Ls=Bt&&re.offsetY>Ae.clientHeight;if(bs||Ls)return}const Qe=d.current.floatingContext?.nodeId,ut=A&&Wi(A.nodesRef.current,Qe).some(Le=>pr(re,Le.context?.elements.floating));if(pr(re,n.select("floatingElement"))||pr(re,n.select("domReferenceElement"))||ut)return;const Be=A?Wi(A.nodesRef.current,Qe):[];if(Be.length>0){let Le=!0;if(Be.forEach(tn=>{tn.context?.open&&!tn.context.dataRef.current.__outsidePressBubbles&&(Le=!1)}),!Le)return}n.setOpen(!1,qt(RI,re)),le()}),Ce=Ze(re=>{fe()!=="sloppy"||re.pointerType==="touch"||!n.select("open")||!h||pr(re,n.select("floatingElement"))||pr(re,n.select("domReferenceElement"))||ve(re)}),P=Ze(re=>{if(fe()!=="sloppy"||!n.select("open")||!h||pr(re,n.select("floatingElement"))||pr(re,n.select("domReferenceElement")))return;const Fe=re.touches[0];Fe&&(k.current={startTime:Date.now(),startX:Fe.clientX,startY:Fe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},K.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}),te=Ze(re=>{const Fe=ns(re);function Ae(){P(re),Fe?.removeEventListener(re.type,Ae)}Fe?.addEventListener(re.type,Ae)}),oe=Ze(re=>{const Fe=N.current;if(N.current=!1,K.clear(),re.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown)return;const Ae=ns(re);function Pt(){re.type==="pointerdown"?Ce(re):ve(re,Fe),Ae?.removeEventListener(re.type,Pt)}Ae?.addEventListener(re.type,Pt)}),de=Ze(re=>{if(fe()!=="sloppy"||!k.current||pr(re,n.select("floatingElement"))||pr(re,n.select("domReferenceElement")))return;const Fe=re.touches[0];if(!Fe)return;const Ae=Math.abs(Fe.clientX-k.current.startX),Pt=Math.abs(Fe.clientY-k.current.startY),_e=Math.sqrt(Ae*Ae+Pt*Pt);_e>5&&(k.current.dismissOnTouchEnd=!0),_e>10&&(ve(re),K.clear(),k.current=null)}),Re=Ze(re=>{const Fe=ns(re);function Ae(){de(re),Fe?.removeEventListener(re.type,Ae)}Fe?.addEventListener(re.type,Ae)}),Se=Ze(re=>{fe()!=="sloppy"||!k.current||pr(re,n.select("floatingElement"))||pr(re,n.select("domReferenceElement"))||(k.current.dismissOnTouchEnd&&ve(re),K.clear(),k.current=null)}),be=Ze(re=>{const Fe=ns(re);function Ae(){Se(re),Fe?.removeEventListener(re.type,Ae)}Fe?.addEventListener(re.type,Ae)});I.useEffect(()=>{if(!r||!h)return;d.current.__escapeKeyBubbles=U,d.current.__outsidePressBubbles=B;const re=new ui;function Fe(Ve){n.setOpen(!1,qt(Pb,Ve))}function Ae(){re.clear(),G.current=!0}function Pt(){re.start(Jh()?5:0,()=>{G.current=!1})}const _e=_n(i);_e.addEventListener("pointerdown",ye,!0),y&&(_e.addEventListener("keydown",q),_e.addEventListener("compositionstart",Ae),_e.addEventListener("compositionend",Pt)),D&&(_e.addEventListener("click",oe,!0),_e.addEventListener("pointerdown",oe,!0),_e.addEventListener("touchstart",te,!0),_e.addEventListener("touchmove",Re,!0),_e.addEventListener("touchend",be,!0),_e.addEventListener("mousedown",oe,!0));let Pe=[];return x&&(_t(l)&&(Pe=ai(l)),_t(i)&&(Pe=Pe.concat(ai(i))),!_t(c)&&c&&c.contextElement&&(Pe=Pe.concat(ai(c.contextElement)))),Pe=Pe.filter(Ve=>Ve!==_e.defaultView?.visualViewport),Pe.forEach(Ve=>{Ve.addEventListener("scroll",Fe,{passive:!0})}),()=>{_e.removeEventListener("pointerdown",ye,!0),y&&(_e.removeEventListener("keydown",q),_e.removeEventListener("compositionstart",Ae),_e.removeEventListener("compositionend",Pt)),D&&(_e.removeEventListener("click",oe,!0),_e.removeEventListener("pointerdown",oe,!0),_e.removeEventListener("touchstart",te,!0),_e.removeEventListener("touchmove",Re,!0),_e.removeEventListener("touchend",be,!0),_e.removeEventListener("mousedown",oe,!0)),Pe.forEach(Ve=>{Ve.removeEventListener("scroll",Fe)}),re.clear(),N.current=!1}},[d,i,c,l,y,D,r,f,x,h,U,B,q,ve,oe,Ce,te,Re,be,ye,n]),I.useEffect(le,[D,le]);const Ye=I.useMemo(()=>({onKeyDown:q,...b&&{[T8[_]]:re=>{n.setOpen(!1,qt(Eh,re.nativeEvent))},..._!=="intentional"&&{onClick(re){n.setOpen(!1,qt(Eh,re.nativeEvent))}}}}),[q,n,b,_]),He=Ze(re=>{const Fe=ns(re.nativeEvent);!bt(n.select("floatingElement"),Fe)||re.button!==0||(N.current=!0)}),ht=Ze(re=>{!r||!h||re.button!==0||(N.current=!0)}),Ht=I.useMemo(()=>({onKeyDown:q,onPointerDown:He,onMouseDown:He,onMouseUp:He,onClickCapture:j,onMouseDownCapture(re){j(),ht(re)},onPointerDownCapture(re){j(),ht(re)},onMouseUpCapture:j,onTouchEndCapture:j,onTouchMoveCapture:j}),[q,He,j,ht]);return I.useMemo(()=>h?{reference:Ye,floating:Ht,trigger:Ye}:{},[h,Ye,Ht])}var Ch=Symbol("NOT_FOUND");function I8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function O8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function M8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var lR=e=>Array.isArray(e)?e:[e];function D8(e){const t=Array.isArray(e[0])?e[0]:e;return M8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function k8(e,t){const n=[],{length:r}=e;for(let i=0;it(f,h.key));if(d>-1){const h=n[d];return d>0&&(n.splice(d,1),n.unshift(h)),h.value}return Ch}function i(f,d){r(f)===Ch&&(n.unshift({key:f,value:d}),n.length>e&&n.pop())}function c(){return n}function l(){n=[]}return{get:r,put:i,getEntries:c,clear:l}}var z8=(e,t)=>e===t;function L8(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let c=0;cc(b.value,y));v&&(y=v.value,f!==0&&f--)}d.put(arguments,y)}return y}return h.clearCache=()=>{d.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var $8=class{constructor(e){this.value=e}deref(){return this.value}},U8=typeof WeakRef<"u"?WeakRef:$8,j8=0,uR=1;function zd(){return{s:j8,v:void 0,o:null,p:null}}function GI(e,t={}){let n=zd();const{resultEqualityCheck:r}=t;let i,c=0;function l(){let f=n;const{length:d}=arguments;for(let g=0,v=d;g{n=zd(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}function KI(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let c=0,l=0,f,d={},h=i.pop();typeof h=="object"&&(d=h,h=i.pop()),I8(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const y={...n,...d},{memoize:g,memoizeOptions:v=[],argsMemoize:b=GI,argsMemoizeOptions:_=[]}=y,x=lR(v),R=lR(_),C=D8(i),A=g(function(){return c++,h.apply(null,arguments)},...x),O=b(function(){l++;const N=k8(C,arguments);return f=A.apply(null,N),f},...R);return Object.assign(O,{resultFunc:h,memoizedResultFunc:A,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:g,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var H8=KI(GI),F8=Object.assign((e,t=H8)=>{O8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(c=>e[c]);return t(r,(...c)=>c.reduce((l,f,d)=>(l[n[d]]=f,l),{}))},{withTypes:()=>F8});KI({memoize:B8,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ot=(e,t,n,r,i,c,...l)=>{if(l.length>0)throw new Error(go(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var q8=CA();const V8=Cb(19),G8=V8?Z8:Q8;function K8(e,t,n,r,i){return G8(e,t,n,r,i)}function Z8(e,t,n,r,i){const c=I.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return q8.useSyncExternalStore(e.subscribe,c,c)}function Q8(e,t,n,r,i){return TA.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>t(c,n,r,i))}class cu{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){cu.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||cu.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};cu.prototype.setState.call(this,t)}}class $b extends cu{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){I.useDebugValue(t),mt(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;mt(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);mt(()=>{n.update(t)},[n,...r])}useControlledProp(t,n,r){I.useDebugValue(t);const i=this,c=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,c),!c&&!Object.is(this.state[t],r)&&super.setState({...this.state,[t]:r})),mt(()=>{c&&!Object.is(i.state[t],n)&&super.setState({...i.state,[t]:n})},[i,t,n,r,c])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}update(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.update(n)}setState(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.setState({...this.state,...n})}select=(t,n,r,i)=>{const c=this.selectors[t];return c(this.state,n,r,i)};useState=(t,n,r,i)=>{I.useDebugValue(t);const c=this.selectors[t];return K8(this,c,n,r,i)};useContextCallback(t,n){I.useDebugValue(t);const r=Ze(n??BA);this.context[t]=r}useStateSetter(t){const n=I.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(c=>{const l=r(c);if(!Object.is(i,l)){const f=i;i=l,n(l,f,this)}})}}const Y8={open:ot(e=>e.open),domReferenceElement:ot(e=>e.domReferenceElement),referenceElement:ot(e=>e.positionReference??e.referenceElement),floatingElement:ot(e=>e.floatingElement),floatingId:ot(e=>e.floatingId)};class Ub extends $b{constructor(t){const{nested:n,noEmit:r,onOpenChange:i,triggerElements:c,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:E5(),nested:n,noEmit:r,triggerElements:c},Y8)}setOpen=(t,n)=>{if((!t||!this.state.open||PU(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function X8(e,t=!1,n=!1){const[r,i]=I.useState(e&&t?"idle":void 0),[c,l]=I.useState(e);return e&&!c&&(l(!0),i("starting")),!e&&c&&r!=="ending"&&!n&&i("ending"),!e&&!c&&r==="ending"&&i(void 0),mt(()=>{if(!e&&c&&r!=="ending"&&n){const f=Tr.request(()=>{i("ending")});return()=>{Tr.cancel(f)}}},[e,c,r,n]),mt(()=>{if(!e||t)return;const f=Tr.request(()=>{i(void 0)});return()=>{Tr.cancel(f)}},[t,e]),mt(()=>{if(!e||!t)return;e&&c&&r!=="idle"&&i("starting");const f=Tr.request(()=>{i("idle")});return()=>{Tr.cancel(f)}},[t,e,c,i,r]),I.useMemo(()=>({mounted:c,setMounted:l,transitionStatus:r}),[c,r])}function W8(e,t=!1,n=!0){const r=DI();return Ze((i,c=null)=>{r.cancel();function l(){pi.flushSync(i)}const f=ro(e);if(f==null)return;const d=f;if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{let h=function(){const g=_u.startingStyle;if(!d.hasAttribute(g)){r.request(y);return}const v=new MutationObserver(()=>{d.hasAttribute(g)||(v.disconnect(),y())});v.observe(d,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>v.disconnect(),{once:!0})},y=function(){Promise.all(d.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||l()}).catch(()=>{const g=d.getAnimations();if(n){if(c?.aborted)return;l()}else g.length>0&&g.some(v=>v.pending||v.playState!=="finished")&&y()})};if(t){h();return}r.request(y)}})}function jb(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,c=Ze(i),l=W8(r,n,!1);I.useEffect(()=>{if(!t)return;const f=new AbortController;return l(c,f.signal),()=>{f.abort()}},[t,n,c,l])}function J8(e,t){const n=I.useRef(null),r=I.useRef(null);return I.useCallback(i=>{if(e!==void 0){if(n.current!==null){const c=n.current,l=r.current,f=t.context.triggerElements.getById(c);l&&f===l&&t.context.triggerElements.delete(c),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function ej(e,t,n,r){const i=n.useState("isMountedByTrigger",e),c=J8(e,n),l=Ze(f=>{if(c(f),!f||!n.select("open"))return;const d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:f,...r});return}d==null&&n.update({activeTriggerId:e,activeTriggerElement:f,...r})});return mt(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function ZI(e){const t=e.useState("open");mt(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function QI(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=X8(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=Ze(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return jb({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}class rp{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function tj(){return new Ub({open:!1,floatingElement:null,referenceElement:null,triggerElements:new rp,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function YI(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:tj(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Is,inactiveTriggerProps:Is,popupProps:Is}}const XI={open:ot(e=>e.open),mounted:ot(e=>e.mounted),transitionStatus:ot(e=>e.transitionStatus),floatingRootContext:ot(e=>e.floatingRootContext),preventUnmountingOnClose:ot(e=>e.preventUnmountingOnClose),payload:ot(e=>e.payload),activeTriggerId:ot(e=>e.activeTriggerId),activeTriggerElement:ot(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ot((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:ot((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:ot((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:ot((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ot(e=>e.popupProps),popupElement:ot(e=>e.popupElement),positionerElement:ot(e=>e.positionerElement)};function nj(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Pu(),c=np()!=null,l=Dr(()=>new Ub({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new rp,floatingId:i,nested:c,noEmit:e.noEmit||!1})).current;return mt(()=>{const f={open:t,floatingId:i};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=_t(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=c,l.context.noEmit=e.noEmit||!1,l}function sj(e={}){const{nodeId:t,externalTree:n}=e,r=nj(e),i=e.rootContext||r,c={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,f]=I.useState(null),d=I.useRef(null),h=Lu(n);mt(()=>{c.domReference&&(d.current=c.domReference)},[c.domReference]);const y=S8({...e,elements:{...c,...l&&{reference:l}}}),g=I.useCallback(B=>{const k=_t(B)?{getBoundingClientRect:()=>B.getBoundingClientRect(),getClientRects:()=>B.getClientRects(),contextElement:B}:B;f(k),y.refs.setReference(k)},[y.refs]),[v,b]=I.useState(null),[_,x]=I.useState(null);i.useSyncedValue("referenceElement",v),i.useSyncedValue("domReferenceElement",_t(v)?v:null),i.useSyncedValue("floatingElement",_);const R=I.useCallback(B=>{(_t(B)||B===null)&&(d.current=B,b(B)),(_t(y.refs.reference.current)||y.refs.reference.current===null||B!==null&&!_t(B))&&y.refs.setReference(B)},[y.refs,b]),C=I.useCallback(B=>{x(B),y.refs.setFloating(B)},[y.refs]),A=I.useMemo(()=>({...y.refs,setReference:R,setFloating:C,setPositionReference:g,domReference:d}),[y.refs,R,C,g]),O=I.useMemo(()=>({...y.elements,domReference:c.domReference}),[y.elements,c.domReference]),D=i.useState("open"),N=i.useState("floatingId"),U=I.useMemo(()=>({...y,dataRef:i.context.dataRef,open:D,onOpenChange:i.setOpen,events:i.context.events,floatingId:N,refs:A,elements:O,nodeId:t,rootStore:i}),[y,A,O,t,i,D,N]);return mt(()=>{i.context.dataRef.current.floatingContext=U;const B=h?.nodesRef.current.find(k=>k.id===t);B&&(B.context=U)}),I.useMemo(()=>({...y,context:U,refs:A,elements:O,rootStore:i}),[y,A,O,U,i])}function WI(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,c=Pu(),l=np()!=null,f=t.useState("open"),d=t.useState("activeTriggerElement"),h=t.useState(r?"popupElement":"positionerElement"),y=t.context.triggerElements,g=Dr(()=>new Ub({open:f,referenceElement:d,floatingElement:h,triggerElements:y,onOpenChange:i,floatingId:c,nested:l,noEmit:n})).current;return mt(()=>{const v={open:f,floatingId:c,referenceElement:d,floatingElement:h};_t(d)&&(v.domReferenceElement=d),g.state.positionReference===g.state.referenceElement&&(v.positionReference=d),g.update(v)},[f,c,d,h,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const Ny=xU&&cI;function rj(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:c=!0,visibleOnly:l=!0,delay:f}=t,d=I.useRef(!1),h=I.useRef(null),y=fi(),g=I.useRef(!0);I.useEffect(()=>{const b=n.select("domReferenceElement");if(!c)return;const _=hn(b);function x(){const A=n.select("domReferenceElement");!n.select("open")&&wn(A)&&A===ei(_n(A))&&(d.current=!0)}function R(){g.current=!0}function C(){g.current=!1}return _.addEventListener("blur",x),Ny&&(_.addEventListener("keydown",R,!0),_.addEventListener("pointerdown",C,!0)),()=>{_.removeEventListener("blur",x),Ny&&(_.removeEventListener("keydown",R,!0),_.removeEventListener("pointerdown",C,!0))}},[n,c]),I.useEffect(()=>{if(!c)return;function b(_){if(_.reason===Eh||_.reason===Nb){const x=n.select("domReferenceElement");_t(x)&&(h.current=x,d.current=!0)}}return r.on("openchange",b),()=>{r.off("openchange",b)}},[r,c,n]);const v=I.useMemo(()=>({onMouseLeave(){d.current=!1,h.current=null},onFocus(b){const _=b.currentTarget;if(d.current){if(h.current===_)return;d.current=!1,h.current=null}const x=ns(b.nativeEvent);if(l&&_t(x)){if(Ny&&!b.relatedTarget){if(!g.current&&!hI(x))return}else if(!IU(x))return}const R=b.relatedTarget&&n.context.triggerElements.hasElement(b.relatedTarget),{nativeEvent:C,currentTarget:A}=b,O=typeof f=="function"?f():f;if(n.select("open")&&R||O===0||O===void 0){n.setOpen(!0,qt(Xd,C,A));return}y.start(O,()=>{d.current||n.setOpen(!0,qt(Xd,C,A))})},onBlur(b){d.current=!1,h.current=null;const _=b.relatedTarget,x=b.nativeEvent,R=_t(_)&&_.hasAttribute(Ac("focus-guard"))&&_.getAttribute("data-type")==="outside";y.start(0,()=>{const C=n.select("domReferenceElement"),A=ei(C?C.ownerDocument:document);if(!_&&A===C||bt(i.current.floatingContext?.refs.floating.current,A)||bt(C,A)||R)return;const O=_??A;if(_t(O)){const D=n.context.triggerElements;if(D.hasElement(O)||D.hasMatchingElement(N=>bt(N,O)))return}n.setOpen(!1,qt(Xd,x))})}}),[i,n,l,y,f]);return I.useMemo(()=>c?{reference:v,trigger:v}:{},[c,v])}const Kv=Ac("safe-polygon"),oj=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${dI}`;function ij(e){return e?!!e.closest(oj):!1}function JI(e){const t=I.useRef(void 0),n=I.useRef(!1),r=I.useRef(void 0),i=I.useRef(!0),c=I.useRef(!1),l=I.useRef(()=>{}),f=I.useRef(!1),d=fi(),h=fi(),y=I.useRef(void 0);return I.useMemo(()=>{const g=e.context.dataRef.current;return g.hoverInteractionState||(g.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:i,performedPointerEventsMutationRef:c,unbindMouseMoveRef:l,restTimeoutPendingRef:f,openChangeTimeout:d,restTimeout:h,handleCloseOptionsRef:y}),g.hoverInteractionState},[e,t,n,r,i,c,l,f,d,h,y])}const aj=new Set(["click","mousedown"]);function cj(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),c=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:f=!0,closeDelay:d=0,externalTree:h}=t,{pointerTypeRef:y,interactedInsideRef:g,handlerRef:v,performedPointerEventsMutationRef:b,unbindMouseMoveRef:_,restTimeoutPendingRef:x,openChangeTimeout:R,handleCloseOptionsRef:C}=JI(n),A=Lu(h),O=np(),D=Ze(()=>g.current?!0:l.current.openEvent?aj.has(l.current.openEvent.type):!1),N=Ze(()=>{const ne=l.current.openEvent?.type;return ne?.includes("mouse")&&ne!=="mousedown"}),U=I.useCallback((ne,le=!0)=>{const G=lj(d,y.current);G&&!v.current?R.start(G,()=>n.setOpen(!1,qt(yr,ne))):le&&(R.clear(),n.setOpen(!1,qt(yr,ne)))},[d,v,n,y,R]),B=Ze(()=>{_.current(),v.current=void 0}),k=Ze(()=>{if(b.current){const ne=_n(i).body;ne.style.pointerEvents="",ne.removeAttribute(Kv),b.current=!1}}),K=Ze(ne=>{const le=ns(ne);if(!ij(le)){g.current=!1;return}g.current=!0});mt(()=>{r||(y.current=void 0,x.current=!1,g.current=!1,B(),k())},[r,y,x,g,B,k]),I.useEffect(()=>()=>{B()},[B]),I.useEffect(()=>k,[k]),mt(()=>{if(f&&r&&C.current?.blockPointerEvents&&N()&&_t(c)&&i){b.current=!0;const ne=_n(i).body;ne.setAttribute(Kv,"");const le=c,G=i,Z=A?.nodesRef.current.find(ye=>ye.id===O)?.context?.elements.floating;return Z&&(Z.style.pointerEvents=""),ne.style.pointerEvents="none",le.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{ne.style.pointerEvents="",le.style.pointerEvents="",G.style.pointerEvents=""}}},[f,r,c,i,C,N,A,O,b]),I.useEffect(()=>{if(!f)return;function ne(ye){if(D()||!l.current.floatingContext||!n.select("open"))return;const fe=n.context.triggerElements;ye.relatedTarget&&fe.hasElement(ye.relatedTarget)||(k(),B(),D()||U(ye))}function le(ye){R.clear(),k(),v.current?.(ye),B()}function G(ye){D()||U(ye,!1)}const Z=i;return Z&&(Z.addEventListener("mouseleave",ne),Z.addEventListener("mouseenter",le),Z.addEventListener("mouseleave",G),Z.addEventListener("pointerdown",K,!0)),()=>{Z&&(Z.removeEventListener("mouseleave",ne),Z.removeEventListener("mouseenter",le),Z.removeEventListener("mouseleave",G),Z.removeEventListener("pointerdown",K,!0))}})}function lj(e,t){return t&&!Su(t)?0:typeof e=="function"?e():e}function zy(e){return typeof e=="function"?e():e}const uj={current:null};function fj(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:c=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:y=!0,triggerElementRef:g=uj,externalTree:v,isActiveTrigger:b=!0}=t,_=Lu(v),{pointerTypeRef:x,interactedInsideRef:R,handlerRef:C,blockMouseMoveRef:A,performedPointerEventsMutationRef:O,unbindMouseMoveRef:D,restTimeoutPendingRef:N,openChangeTimeout:U,restTimeout:B,handleCloseOptionsRef:k}=JI(n),K=Ar(f),ne=Ar(l),le=Ar(h);b&&(k.current=K.current?.__options);const G=Ze(()=>R.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),Z=I.useCallback((X,j=!0)=>{const ve=Wd(ne.current,"close",x.current);ve&&!C.current?U.start(ve,()=>n.setOpen(!1,qt(yr,X))):j&&(U.clear(),n.setOpen(!1,qt(yr,X)))},[ne,C,n,x,U]),ye=Ze(()=>{D.current(),C.current=void 0}),fe=Ze(()=>{if(O.current){const X=_n(n.select("domReferenceElement")).body;X.style.pointerEvents="",X.removeAttribute(Kv),O.current=!1}});I.useEffect(()=>{if(!c)return;function X(j){j.open||(U.clear(),B.clear(),A.current=!0,N.current=!1)}return i.on("openchange",X),()=>{i.off("openchange",X)}},[c,i,U,B,A,N]);const q=Ze(X=>{if(G()||!r.current.floatingContext)return;const j=n.context.triggerElements;if(X.relatedTarget&&j.hasElement(X.relatedTarget))return;const ve=g.current;K.current?.({...r.current.floatingContext,tree:_,x:X.clientX,y:X.clientY,onClose(){fe(),ye(),!G()&&ve===n.select("domReferenceElement")&&Z(X)}})(X)});return I.useEffect(()=>{if(!c)return;const X=g.current??(b?n.select("domReferenceElement"):null);if(!_t(X))return;function j(P){if(U.clear(),A.current=!1,d&&!Su(x.current)||zy(le.current)>0&&!Wd(ne.current,"open"))return;const te=Wd(ne.current,"open",x.current),oe=n.select("domReferenceElement"),de=n.context.triggerElements,Re=(de.hasElement(P.target)||de.hasMatchingElement(He=>bt(He,P.target)))&&(!oe||!bt(oe,P.target)),Se=P.currentTarget??null,be=n.select("open"),Ye=!be||Re;Re&&be?n.setOpen(!0,qt(yr,P,Se)):te?U.start(te,()=>{Ye&&n.setOpen(!0,qt(yr,P,Se))}):Ye&&n.setOpen(!0,qt(yr,P,Se))}function ve(P){if(G()){fe();return}D.current();const te=n.select("domReferenceElement"),oe=_n(te);B.clear(),N.current=!1;const de=n.context.triggerElements;if(P.relatedTarget&&de.hasElement(P.relatedTarget))return;if(K.current&&r.current.floatingContext){n.select("open")||U.clear();const Se=g.current;C.current=K.current({...r.current.floatingContext,tree:_,x:P.clientX,y:P.clientY,onClose(){fe(),ye(),!G()&&Se===n.select("domReferenceElement")&&Z(P,!0)}});const be=C.current;be(P),oe.addEventListener("mousemove",be),D.current=()=>{oe.removeEventListener("mousemove",be)};return}(x.current!=="touch"||!bt(n.select("floatingElement"),P.relatedTarget))&&Z(P)}function Ce(P){q(P)}return n.select("open")&&X.addEventListener("mouseleave",Ce),y&&X.addEventListener("mousemove",j,{once:!0}),X.addEventListener("mouseenter",j),X.addEventListener("mouseleave",ve),()=>{X.removeEventListener("mouseleave",Ce),y&&X.removeEventListener("mousemove",j),X.removeEventListener("mouseenter",j),X.removeEventListener("mouseleave",ve)}},[ye,fe,A,r,ne,Z,n,c,K,q,b,G,d,y,x,le,B,N,U,g,_,D,C]),I.useMemo(()=>{function X(j){x.current=j.pointerType}return{onPointerDown:X,onPointerEnter:X,onMouseMove(j){const{nativeEvent:ve}=j,Ce=j.currentTarget,P=n.select("domReferenceElement"),te=n.context.triggerElements,oe=n.select("open"),de=(te.hasElement(j.target)||te.hasMatchingElement(Se=>bt(Se,j.target)))&&(!P||!bt(P,j.target));if(d&&!Su(x.current)||oe&&!de||zy(le.current)===0||!de&&N.current&&j.movementX**2+j.movementY**2<2)return;B.clear();function Re(){if(N.current=!1,G())return;const Se=n.select("open");!A.current&&(!Se||de)&&n.setOpen(!0,qt(yr,ve,Ce))}x.current==="touch"?pi.flushSync(()=>{Re()}):de&&oe?Re():(N.current=!0,B.start(zy(le.current),Re))}}},[A,G,d,n,x,le,B,N])}function e2(e=[]){const t=e.map(h=>h?.reference),n=e.map(h=>h?.floating),r=e.map(h=>h?.item),i=e.map(h=>h?.trigger),c=I.useCallback(h=>Ld(h,e,"reference"),t),l=I.useCallback(h=>Ld(h,e,"floating"),n),f=I.useCallback(h=>Ld(h,e,"item"),r),d=I.useCallback(h=>Ld(h,e,"trigger"),i);return I.useMemo(()=>({getReferenceProps:c,getFloatingProps:l,getItemProps:f,getTriggerProps:d}),[c,l,f,d])}function Ld(e,t,n){const r=new Map,i=n==="item",c={};n==="floating"&&(c.tabIndex=-1,c[Uv]="");for(const l in e)i&&e&&(l===uI||l===fI)||(c[l]=e[l]);for(let l=0;lr.get(i)?.map(f=>f(...l)).find(f=>f!==void 0))):e[i]=c)}}const dj=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hj(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),c=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{enabled:f=!0,role:d="dialog"}=t,h=Pu(),y=c?.id||h,g=I.useMemo(()=>jv(l)?.id||i,[l,i]),v=dj.get(d)??d,_=np()!=null,x=I.useMemo(()=>v==="tooltip"||d==="label"?Is:{"aria-haspopup":v==="alertdialog"?"dialog":v,"aria-expanded":"false",...v==="listbox"&&{role:"combobox"},...v==="menu"&&_&&{role:"menuitem"},...d==="select"&&{"aria-autocomplete":"none"},...d==="combobox"&&{"aria-autocomplete":"list"}},[v,_,d]),R=I.useMemo(()=>v==="tooltip"||d==="label"?{[`aria-${d==="label"?"labelledby":"describedby"}`]:r?g:void 0}:{...x,"aria-expanded":r?"true":"false","aria-controls":r?g:void 0,...v==="menu"&&{id:y}},[v,g,r,y,d,x]),C=I.useMemo(()=>{const O={id:g,...v&&{role:v}};return v==="tooltip"||d==="label"?O:{...O,...v==="menu"&&{"aria-labelledby":y}}},[v,g,y,d]),A=I.useCallback(({active:O,selected:D})=>{const N={role:"option",...O&&{id:`${g}-fui-option`}};switch(d){case"select":case"combobox":return{...N,"aria-selected":D}}return{}},[g,d]);return I.useMemo(()=>f?{reference:R,floating:C,item:A,trigger:x}:{},[f,R,C,x,A])}function dR(e,t){const[n,r]=e;let i=!1;const c=t.length;for(let l=0,f=c-1;l=r!=g>=r&&n<=(y-d)*(r-h)/(g-h)+d&&(i=!i)}return i}function pj(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function mj(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new ui;let c=!1,l=null,f=null,d=typeof performance<"u"?performance.now():0;function h(g,v){const b=performance.now(),_=b-d;if(l===null||f===null||_===0)return l=g,f=v,d=b,null;const x=g-l,R=v-f,A=Math.sqrt(x*x+R*R)/_;return l=g,f=v,d=b,A}const y=({x:g,y:v,placement:b,elements:_,onClose:x,nodeId:R,tree:C})=>function(O){function D(){i.clear(),x()}if(i.clear(),!_.domReference||!_.floating||b==null||g==null||v==null)return;const{clientX:N,clientY:U}=O,B=[N,U],k=ns(O),K=O.type==="mouseleave",ne=bt(_.floating,k),le=bt(_.domReference,k),G=_.domReference.getBoundingClientRect(),Z=_.floating.getBoundingClientRect(),ye=b.split("-")[0],fe=g>Z.right-Z.width/2,q=v>Z.bottom-Z.height/2,X=pj(B,G),j=Z.width>G.width,ve=Z.height>G.height,Ce=(j?G:Z).left,P=(j?G:Z).right,te=(ve?G:Z).top,oe=(ve?G:Z).bottom;if(ne&&(c=!0,!K))return;if(le&&(c=!1),le&&!K){c=!0;return}if(K&&_t(O.relatedTarget)&&bt(_.floating,O.relatedTarget)||C&&Wi(C.nodesRef.current,R).some(({context:Se})=>Se?.open))return;if(ye==="top"&&v>=G.bottom-1||ye==="bottom"&&v<=G.top+1||ye==="left"&&g>=G.right-1||ye==="right"&&g<=G.left+1)return D();let de=[];switch(ye){case"top":de=[[Ce,G.top+1],[Ce,Z.bottom-1],[P,Z.bottom-1],[P,G.top+1]];break;case"bottom":de=[[Ce,Z.top+1],[Ce,G.bottom-1],[P,G.bottom-1],[P,Z.top+1]];break;case"left":de=[[Z.right-1,oe],[Z.right-1,te],[G.left+1,te],[G.left+1,oe]];break;case"right":de=[[G.right-1,oe],[G.right-1,te],[Z.left+1,te],[Z.left+1,oe]];break}function Re([Se,be]){switch(ye){case"top":{const Ye=[j?Se+t/2:fe?Se+t*4:Se-t*4,be+t+1],He=[j?Se-t/2:fe?Se+t*4:Se-t*4,be+t+1],ht=[[Z.left,fe||j?Z.bottom-t:Z.top],[Z.right,fe?j?Z.bottom-t:Z.top:Z.bottom-t]];return[Ye,He,...ht]}case"bottom":{const Ye=[j?Se+t/2:fe?Se+t*4:Se-t*4,be-t],He=[j?Se-t/2:fe?Se+t*4:Se-t*4,be-t],ht=[[Z.left,fe||j?Z.top+t:Z.bottom],[Z.right,fe?j?Z.top+t:Z.bottom:Z.top+t]];return[Ye,He,...ht]}case"left":{const Ye=[Se+t+1,ve?be+t/2:q?be+t*4:be-t*4],He=[Se+t+1,ve?be-t/2:q?be+t*4:be-t*4];return[...[[q||ve?Z.right-t:Z.left,Z.top],[q?ve?Z.right-t:Z.left:Z.right-t,Z.bottom]],Ye,He]}case"right":{const Ye=[Se-t,ve?be+t/2:q?be+t*4:be-t*4],He=[Se-t,ve?be-t/2:q?be+t*4:be-t*4],ht=[[q||ve?Z.left+t:Z.right,Z.top],[q?ve?Z.left+t:Z.right:Z.left+t,Z.bottom]];return[Ye,He,...ht]}default:return[]}}if(!dR([N,U],de)){if(c&&!X)return D();if(!K&&r){const Se=h(O.clientX,O.clientY);if(Se!==null&&Se<.1)return D()}dR([N,U],Re([g,v]))?!c&&r&&i.start(40,D):D()}};return y.__options={blockPointerEvents:n},y}let gj=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),yj=(function(e){return e[e.open=Zi.open]="open",e[e.closed=Zi.closed]="closed",e[e.startingStyle=Zi.startingStyle]="startingStyle",e[e.endingStyle=Zi.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const t2=I.createContext(void 0);function vj(){const e=I.useContext(t2);if(e===void 0)throw new Error(go(26));return e}const n2="ArrowUp",s2="ArrowDown",r2="ArrowLeft",o2="ArrowRight",i2="Home",a2="End",bj=new Set([r2,o2]),Sj=new Set([n2,s2]),_j=new Set([...bj,...Sj]);[..._j];const wj=new Set([n2,s2,r2,o2,i2,a2]),Ej={...zu,...zb,nestedDialogOpen(e){return e?{[yj.nestedDialogOpen]:""}:null}},xj=I.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:c,render:l,...f}=t,{store:d}=fa(),h=d.useState("descriptionElementId"),y=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),v=d.useState("popupProps"),b=d.useState("modal"),_=d.useState("mounted"),x=d.useState("nested"),R=d.useState("nestedOpenDialogCount"),C=d.useState("open"),A=d.useState("openMethod"),O=d.useState("titleElementId"),D=d.useState("transitionStatus"),N=d.useState("role");vj(),jb({open:C,ref:d.context.popupRef,onComplete(){C&&d.context.onOpenChangeComplete?.(!0)}});function U(le){return le==="touch"?d.context.popupRef.current:!0}const B=c===void 0?U:c,k=R>0,K=I.useMemo(()=>({open:C,nested:x,transitionStatus:D,nestedDialogOpen:k}),[C,x,D,k]),ne=ir("div",t,{state:K,props:[v,{"aria-labelledby":O??void 0,"aria-describedby":h??void 0,role:N,tabIndex:-1,hidden:!_,onKeyDown(le){wj.has(le.key)&&le.stopPropagation()},style:{[gj.nestedDialogs]:R}},f],ref:[n,d.context.popupRef,d.useStateSetter("popupElement")],stateAttributesMapping:Ej});return $.jsx(B5,{context:g,openInteractionType:A,disabled:!_,closeOnFocusOut:!y,initialFocus:B,returnFocus:i,modal:b!==!1,restoreFocus:"popup",children:ne})});function Rj(e){return Cb(19)?e:e?"true":void 0}const Cj=I.forwardRef(function(t,n){const{cutout:r,...i}=t;let c;if(r){const l=r?.getBoundingClientRect();c=`polygon( + 0% 0%, + 100% 0%, + 100% 100%, + 0% 100%, + 0% 0%, + ${l.left}px ${l.top}px, + ${l.left}px ${l.bottom}px, + ${l.right}px ${l.bottom}px, + ${l.right}px ${l.top}px, + ${l.left}px ${l.top}px + )`}return $.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),Tj=I.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:c}=fa(),l=c.useState("mounted"),f=c.useState("modal"),d=c.useState("open");return l||r?$.jsx(t2.Provider,{value:r,children:$.jsxs(k5,{ref:n,...i,children:[l&&f===!0&&$.jsx(Cj,{ref:c.context.internalBackdropRef,inert:Rj(!d)}),t.children]})}):null});let hR={},pR={},mR="";function Aj(e){if(typeof document>"u")return!1;const t=ua(e);return hn(t).innerWidth-t.documentElement.clientWidth>0}function Ij(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const r=ua(e).documentElement,i={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY};r.style.scrollbarGutter="stable",r.style.overflowY="scroll";const c=r.offsetWidth;r.style.overflowY="hidden";const l=r.offsetWidth;return Object.assign(r.style,i),c===l}function Oj(e){const t=ua(e),n=t.documentElement,r=t.body,i=la(n)?n:r,c=i.style.overflow;return i.style.overflow="hidden",()=>{i.style.overflow=c}}function Mj(e){const t=ua(e),n=t.documentElement,r=t.body,i=hn(n);let c=0,l=0,f=!1;const d=Tr.create();if(EU&&(i.visualViewport?.scale??1)!==1)return()=>{};function h(){const v=i.getComputedStyle(n),b=i.getComputedStyle(r),R=(v.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=n.scrollTop,l=n.scrollLeft,hR={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},mR=n.style.scrollBehavior,pR={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const C=n.scrollHeight>n.clientHeight,A=n.scrollWidth>n.clientWidth,O=v.overflowY==="scroll"||b.overflowY==="scroll",D=v.overflowX==="scroll"||b.overflowX==="scroll",N=Math.max(0,i.innerWidth-r.clientWidth),U=Math.max(0,i.innerHeight-r.clientHeight),B=parseFloat(b.marginTop)+parseFloat(b.marginBottom),k=parseFloat(b.marginLeft)+parseFloat(b.marginRight),K=la(n)?n:r;if(f=Ij(e),f){n.style.scrollbarGutter=R,K.style.overflowY="hidden",K.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(C||O)&&(n.style.overflowY="scroll"),(A||D)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:B||U?`calc(100dvh - ${B+U}px)`:"100dvh",width:k||N?`calc(100vw - ${k+N}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=c,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function y(){Object.assign(n.style,hR),Object.assign(r.style,pR),f||(n.scrollTop=c,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=mR)}function g(){y(),d.request(h)}return h(),i.addEventListener("resize",g),()=>{d.cancel(),y(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class Dj{lockCount=0;restore=null;timeoutLock=ui.create();timeoutUnlock=ui.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=ua(t).documentElement,i=hn(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=BA;return}const c=aI||!Aj(t);this.restore=c?Oj(t):Mj(t)}}const kj=new Dj;function Pj(e=!0,t=null){mt(()=>{if(e)return kj.acquire(t)},[e,t])}function Nj(e){const t=I.useRef(""),n=I.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:I.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i&&e(i,i.pointerType),e(i,t.current),t.current=""},[e]),onPointerDown:n}}function zj(e){const[t,n]=I.useState(null),r=Ze((f,d)=>{e||n(d||(aI?"touch":""))}),i=I.useCallback(()=>{n(null)},[]),{onClick:c,onPointerDown:l}=Nj(r);return I.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:c,onPointerDown:l}}),[t,i,c,l])}function Lj(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),c=t.useState("disablePointerDismissal"),l=t.useState("modal"),f=t.useState("popupElement"),{openMethod:d,triggerProps:h,reset:y}=zj(i);ZI(t);const{forceUnmount:g}=QI(i,t,()=>{y()}),v=Ze(ne=>{const le=qt(ne);return le.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},le}),b=I.useCallback(()=>{t.setOpen(!1,v(TI))},[t,v]);I.useImperativeHandle(r,()=>({unmount:g,close:b}),[g,b]);const _=WI({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[x,R]=I.useState(0),C=x===0,A=hj(_),O=VI(_,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(ne){if("button"in ne&&ne.button!==0||"touches"in ne&&ne.touches.length!==1)return!1;const le=ns(ne);if(C&&!c){const G=le;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===G||t.context.backdropRef.current===G||bt(G,f)&&!G?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:C});Pj(i&&l===!0,f);const{getReferenceProps:D,getFloatingProps:N,getTriggerProps:U}=e2([A,O]);t.useContextCallback("onNestedDialogOpen",ne=>{R(ne+1)}),t.useContextCallback("onNestedDialogClose",()=>{R(0)}),I.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(x),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,x]);const B=I.useMemo(()=>D(h),[D,h]),k=I.useMemo(()=>U(h),[U,h]),K=I.useMemo(()=>N(),[N]);t.useSyncedValues({openMethod:d,activeTriggerProps:B,inactiveTriggerProps:k,popupProps:K,floatingRootContext:_,nestedOpenDialogCount:x})}const Bj={...XI,modal:ot(e=>e.modal),nested:ot(e=>e.nested),nestedOpenDialogCount:ot(e=>e.nestedOpenDialogCount),disablePointerDismissal:ot(e=>e.disablePointerDismissal),openMethod:ot(e=>e.openMethod),descriptionElementId:ot(e=>e.descriptionElementId),titleElementId:ot(e=>e.titleElementId),viewportElement:ot(e=>e.viewportElement),role:ot(e=>e.role)};class $j extends $b{constructor(t){super(Uj(t),{popupRef:I.createRef(),backdropRef:I.createRef(),internalBackdropRef:I.createRef(),triggerElements:new rp,onOpenChange:void 0,onOpenChangeComplete:void 0},Bj)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;const r={open:t,nativeEvent:n.event,reason:n.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",r);const i={open:t},c=n.trigger?.id??null;(c||t)&&(i.activeTriggerId=c,i.activeTriggerElement=n.trigger??null),this.update(i)}}function Uj(e={}){return{...YI(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function jj(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:c,disablePointerDismissal:l=!1,modal:f=!0,actionsRef:d,handle:h,triggerId:y,defaultTriggerId:g=null}=e,v=fa(!0),b=!!v,_=Dr(()=>h?.store??new $j({open:n??r,activeTriggerId:y!==void 0?y:g,modal:f,disablePointerDismissal:l,nested:b})).current;_.useControlledProp("open",n,r),_.useControlledProp("activeTriggerId",y,g),_.useSyncedValues({disablePointerDismissal:l,nested:b,modal:f}),_.useContextCallback("onOpenChange",i),_.useContextCallback("onOpenChangeComplete",c);const x=_.useState("payload");Lj({store:_,actionsRef:d,parentContext:v?.store.context});const R=I.useMemo(()=>({store:_}),[_]);return $.jsx(AI.Provider,{value:R,children:typeof t=="function"?t({payload:x}):t})}const Hj=I.forwardRef(function(t,n){const{render:r,className:i,id:c,...l}=t,{store:f}=fa(),d=Ob(c);return f.useSyncedValueWithCleanup("titleElementId",d),ir("h2",t,{ref:n,props:[{id:d},l]})});function Fj(e){const t=Ct.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=$.jsx(jj,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function qj(e){const t=Ct.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=$.jsx(Tj,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function Vj(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/80 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx(b5,{className:i,"data-slot":"sheet-overlay",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Gj(e){const t=Ct.c(17);let n,r,i,c,l;t[0]!==e?({className:r,children:n,side:c,showCloseButton:l,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5]);const f=c===void 0?"right":c,d=l===void 0?!0:l;let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=$.jsx(Vj,{}),t[6]=h):h=t[6];let y;t[7]!==r?(y=Jt("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 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=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",r),t[7]=r,t[8]=y):y=t[8];let g;t[9]!==d?(g=d&&$.jsxs(S5,{"data-slot":"sheet-close",render:$.jsx(Rc,{className:"absolute top-4 right-4",size:"icon-sm",variant:"ghost"}),children:[$.jsx(l$,{}),$.jsx("span",{className:"sr-only",children:"Close"})]}),t[9]=d,t[10]=g):g=t[10];let v;return t[11]!==n||t[12]!==i||t[13]!==f||t[14]!==y||t[15]!==g?(v=$.jsxs(qj,{children:[h,$.jsxs(xj,{className:y,"data-side":f,"data-slot":"sheet-content",...i,children:[n,g]})]}),t[11]=n,t[12]=i,t[13]=f,t[14]=y,t[15]=g,t[16]=v):v=t[16],v}function Kj(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("flex flex-col gap-1.5 p-6",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("div",{className:i,"data-slot":"sheet-header",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Zj(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("font-medium text-foreground text-sm",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx(Hj,{className:i,"data-slot":"sheet-title",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Qj(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("text-muted-foreground text-xs/relaxed",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx(_5,{className:i,"data-slot":"sheet-description",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const c2=I.createContext(void 0);function Bu(e){const t=I.useContext(c2);if(t===void 0&&!e)throw new Error(go(72));return t}const Yj={...XI,disabled:ot(e=>e.disabled),instantType:ot(e=>e.instantType),isInstantPhase:ot(e=>e.isInstantPhase),trackCursorAxis:ot(e=>e.trackCursorAxis),disableHoverablePopup:ot(e=>e.disableHoverablePopup),lastOpenChangeReason:ot(e=>e.openChangeReason),closeDelay:ot(e=>e.closeDelay),hasViewport:ot(e=>e.hasViewport)};class Hb extends $b{constructor(t){super({...Xj(),...t},{popupRef:I.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new rp},Yj)}setOpen=(t,n)=>{const r=n.reason,i=r===yr,c=t&&r===Xd,l=!t&&(r===Eh||r===Nb);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const f=()=>{const d={open:t,openChangeReason:r};c?d.instantType="focus":l?d.instantType="dismiss":r===yr&&(d.instantType=void 0);const h=n.trigger?.id??null;(h||t)&&(d.activeTriggerId=h,d.activeTriggerElement=n.trigger??null),this.update(d)};i?pi.flushSync(f):f()};static useStore(t,n){const r=Dr(()=>new Hb(n)).current,i=t??r,c=WI({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=c,i}}function Xj(){return{...YI(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}function Wj(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:c="none",actionsRef:l,onOpenChange:f,onOpenChangeComplete:d,handle:h,triggerId:y,defaultTriggerId:g=null,children:v}=e,b=Hb.useStore(h?.store,{open:r??n,activeTriggerId:y!==void 0?y:g});b.useControlledProp("open",r,n),b.useControlledProp("activeTriggerId",y,g),b.useContextCallback("onOpenChange",f),b.useContextCallback("onOpenChangeComplete",d);const _=b.useState("open"),x=!t&&_,R=b.useState("activeTriggerId"),C=b.useState("payload");b.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:i}),mt(()=>{_&&t&&b.setOpen(!1,qt(l5))},[_,t,b]),b.useSyncedValue("disabled",t),ZI(b);const{forceUnmount:A,transitionStatus:O}=QI(x,b),D=b.useState("isInstantPhase"),N=b.useState("instantType"),U=b.useState("lastOpenChangeReason"),B=I.useRef(null);mt(()=>{O==="ending"&&U===Pb||O!=="ending"&&D?(N!=="delay"&&(B.current=N),b.set("instantType","delay")):B.current!==null&&(b.set("instantType",B.current),B.current=null)},[O,D,U,N,b]),mt(()=>{x&&R==null&&b.set("payload",void 0)},[b,R,x]);const k=I.useCallback(()=>{b.setOpen(!1,Jj(b,TI))},[b]);I.useImperativeHandle(l,()=>({unmount:A,close:k}),[A,k]);const K=b.useState("floatingRootContext"),ne=rj(K,{enabled:!t}),le=VI(K,{enabled:!t,referencePress:!0}),G=U5(K,{enabled:!t&&c!=="none",axis:c==="none"?void 0:c}),{getReferenceProps:Z,getFloatingProps:ye,getTriggerProps:fe}=e2([ne,le,G]),q=I.useMemo(()=>Z(),[Z]),X=I.useMemo(()=>fe(),[fe]),j=I.useMemo(()=>ye(),[ye]);return b.useSyncedValues({activeTriggerProps:q,inactiveTriggerProps:X,popupProps:j}),$.jsx(c2.Provider,{value:b,children:typeof v=="function"?v({payload:C}):v})}function Jj(e,t){const n=qt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}const l2=I.createContext(void 0);function e9(){return I.useContext(l2)}const t9=600,n9=I.forwardRef(function(t,n){const{className:r,render:i,handle:c,payload:l,disabled:f,delay:d,closeDelay:h,id:y,...g}=t,v=Bu(!0),b=c?.store??v;if(!b)throw new Error(go(82));const _=Ob(y),x=b.useState("isTriggerActive",_),R=b.useState("isOpenedByTrigger",_),C=b.useState("floatingRootContext"),A=I.useRef(null),O=d??t9,D=h??0,{registerTrigger:N,isMountedByThisTrigger:U}=ej(_,A,b,{payload:l,closeDelay:D}),B=e9(),{delayRef:k,isInstantPhase:K,hasProvider:ne}=T5(C,{open:R});b.useSyncedValue("isInstantPhase",K);const le=b.useState("disabled"),G=f??le,Z=b.useState("trackCursorAxis"),ye=b.useState("disableHoverablePopup"),fe=fj(C,{enabled:!G,mouseOnly:!0,move:!1,handleClose:!ye&&Z!=="both"?mj():null,restMs(){const ve=B?.delay,Ce=typeof k.current=="object"?k.current.open:void 0;let P=O;return ne&&(Ce!==0?P=d??ve??O:P=0),P},delay(){const ve=typeof k.current=="object"?k.current.close:void 0;let Ce=D;return h==null&&ne&&(Ce=ve),{close:Ce}},triggerElementRef:A,isActiveTrigger:x}),q=I.useMemo(()=>({open:R}),[R]),X=b.useState("triggerProps",U);return ir("button",t,{state:q,ref:[n,N,A],props:[fe,X,{id:_},g],stateAttributesMapping:y5})}),u2=I.createContext(void 0);function s9(){const e=I.useContext(u2);if(e===void 0)throw new Error(go(70));return e}const r9=I.forwardRef(function(t,n){const{children:r,container:i,className:c,render:l,...f}=t,{portalNode:d,portalSubtree:h}=zI({container:i,ref:n,componentProps:t,elementProps:f});return!h&&!d?null:$.jsxs(I.Fragment,{children:[h,d&&pi.createPortal(r,d)]})}),o9=I.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Bu().useState("mounted")||r?$.jsx(u2.Provider,{value:r,children:$.jsx(r9,{ref:n,...i})}):null}),f2=I.createContext(void 0);function d2(){const e=I.useContext(f2);if(e===void 0)throw new Error(go(71));return e}const i9=I.createContext(void 0);function a9(){return I.useContext(i9)?.direction??"ltr"}const c9=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:c,platform:l,elements:f,middlewareData:d}=t,{element:h,padding:y=0,offsetParent:g="real"}=po(e,t)||{};if(h==null)return{};const v=pI(y),b={x:n,y:r},_=kb(i),x=Db(_),R=await l.getDimensions(h),C=_==="y",A=C?"top":"left",O=C?"bottom":"right",D=C?"clientHeight":"clientWidth",N=c.reference[x]+c.reference[_]-b[_]-c.floating[x],U=b[_]-c.reference[_],B=g==="real"?await l.getOffsetParent?.(h):f.floating;let k=f.floating[D]||c.floating[x];(!k||!await l.isElement?.(B))&&(k=f.floating[D]||c.floating[x]);const K=N/2-U/2,ne=k/2-R[x]/2-1,le=Math.min(v[A],ne),G=Math.min(v[O],ne),Z=le,ye=k-R[x]-G,fe=k/2-R[x]/2+K,q=Hv(Z,fe,ye),X=!d.arrow&&gi(i)!=null&&fe!==q&&c.reference[x]/2-(fe({...c9(e),options:[e,t]}),u9={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,c=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await C8().fn(e)).data?.referenceHidden||c}}}},eh={sideX:"left",sideY:"top"},f9={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:c,strategy:l,placement:f}=e,d=hn(i),h=d.getComputedStyle(i);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:t,y:n,data:eh};const g=await c.getOffsetParent?.(i);let v={width:0,height:0};if(l==="fixed"&&d?.visualViewport)v={width:d.visualViewport.width,height:d.visualViewport.height};else if(g===d){const A=ua(i);v={width:A.documentElement.clientWidth,height:A.documentElement.clientHeight}}else await c.isElement?.(g)&&(v=await c.getDimensions(g));const b=hs(f);let _=t,x=n;b==="left"&&(_=v.width-(t+r.width)),b==="top"&&(x=v.height-(n+r.height));const R=b==="left"?"right":eh.sideX,C=b==="top"?"bottom":eh.sideY;return{x:_,y:x,data:{sideX:R,sideY:C}}}};function h2(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function gR(e,t,n){const{rects:r,placement:i}=e;return{side:h2(t,hs(i),n),align:gi(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function d9(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:d=5,sticky:h=!1,arrowPadding:y=5,disableAnchorTracking:g=!1,keepMounted:v=!1,floatingRootContext:b,mounted:_,collisionAvoidance:x,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:A,lazyFlip:O=!1,externalTree:D}=e,[N,U]=I.useState(null);!_&&N!==null&&U(null);const B=x.side||"flip",k=x.align||"flip",K=x.fallbackAxisSide||"end",ne=typeof t=="function"?t:void 0,le=Ze(ne),G=ne?le:t,Z=Ar(t),fe=a9()==="rtl",q=N||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":fe?"left":"right","inline-start":fe?"right":"left"}[r],X=c==="center"?q:`${q}-${c}`;let j=d;const ve=1,Ce=r==="bottom"?ve:0,P=r==="top"?ve:0,te=r==="right"?ve:0,oe=r==="left"?ve:0;typeof j=="number"?j={top:j+Ce,right:j+oe,bottom:j+P,left:j+te}:j&&(j={top:(j.top||0)+Ce,right:(j.right||0)+oe,bottom:(j.bottom||0)+P,left:(j.left||0)+te});const de={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:j},Re=I.useRef(null),Se=Ar(i),be=Ar(l),ht=[_8(Kt=>{const Fn=gR(Kt,r,fe),Bs=typeof Se.current=="function"?Se.current(Fn):Se.current,Dn=typeof be.current=="function"?be.current(Fn):be.current;return{mainAxis:Bs,crossAxis:Dn,alignmentAxis:Dn}},[typeof i!="function"?i:0,typeof l!="function"?l:0,fe,r])],Ht=k==="none"&&B!=="shift",re=!Ht&&(h||R||B==="shift"),Fe=B==="none"?null:x8({...de,padding:{top:j.top+ve,right:j.right+ve,bottom:j.bottom+ve,left:j.left+ve},mainAxis:!R&&B==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:K}),Ae=Ht?null:w8(Kt=>{const Fn=ua(Kt.elements.floating).documentElement;return{...de,rootBoundary:R?{x:0,y:0,width:Fn.clientWidth,height:Fn.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:re,limiter:h||R?void 0:E8(Bs=>{if(!Re.current)return{};const{width:Dn,height:lr}=Re.current.getBoundingClientRect(),ur=or(hs(Bs.placement)),$s=ur==="y"?Dn:lr,wo=ur==="y"?j.left+j.right:j.top+j.bottom;return{offset:$s/2+wo/2}})}},[de,h,R,j,k]);B==="shift"||k==="shift"||c==="center"?ht.push(Ae,Fe):ht.push(Fe,Ae),ht.push(R8({...de,apply({elements:{floating:Kt},rects:{reference:Fn},availableWidth:Bs,availableHeight:Dn}){Object.entries({"--available-width":`${Bs}px`,"--available-height":`${Dn}px`,"--anchor-width":`${Fn.width}px`,"--anchor-height":`${Fn.height}px`}).forEach(([lr,ur])=>{Kt.style.setProperty(lr,ur)})}}),l9(()=>({element:Re.current||document.createElement("div"),padding:y,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(Kt){const{elements:Fn,middlewareData:Bs,placement:Dn,rects:lr,y:ur}=Kt,$s=hs(Dn),wo=or($s),Eo=Re.current,Kp=Bs.arrow?.x||0,cf=Bs.arrow?.y||0,Yc=Eo?.clientWidth||0,Ei=Eo?.clientHeight||0,Xc=Kp+Yc/2,Wc=cf+Ei/2,lf=Math.abs(Bs.shift?.y||0),uf=lr.reference.height/2,Lr=typeof i=="function"?i(gR(Kt,r,fe)):i,Jc=lf>Lr,ff={top:`${Xc}px calc(100% + ${Lr}px)`,bottom:`${Xc}px ${-Lr}px`,left:`calc(100% + ${Lr}px) ${Wc}px`,right:`${-Lr}px ${Wc}px`}[$s],df=`${Xc}px ${lr.reference.y+uf-ur}px`;return Fn.floating.style.setProperty("--transform-origin",re&&wo==="y"&&Jc?df:ff),{}}},u9,A),mt(()=>{!_&&b&&b.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[_,b]);const Pt=I.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:_e,elements:Pe,x:Ve,y:Qe,middlewareData:ut,update:Be,placement:Le,context:tn,isPositioned:it,floatingStyles:vs}=sj({rootContext:b,placement:X,middleware:ht,strategy:n,whileElementsMounted:v?void 0:(...Kt)=>aR(...Kt,Pt),nodeId:C,externalTree:D}),{sideX:gt,sideY:Bt}=ut.adaptiveOrigin||eh,$t=it?n:"fixed",nn=I.useMemo(()=>A?{position:$t,[gt]:Ve,[Bt]:Qe}:{position:$t,...vs},[A,$t,gt,Ve,Bt,Qe,vs]),bs=I.useRef(null);mt(()=>{if(!_)return;const Kt=Z.current,Fn=typeof Kt=="function"?Kt():Kt,Dn=(yR(Fn)?Fn.current:Fn)||null||null;Dn!==bs.current&&(_e.setPositionReference(Dn),bs.current=Dn)},[_,_e,G,Z]),I.useEffect(()=>{if(!_)return;const Kt=Z.current;typeof Kt!="function"&&yR(Kt)&&Kt.current!==bs.current&&(_e.setPositionReference(Kt.current),bs.current=Kt.current)},[_,_e,G,Z]),I.useEffect(()=>{if(v&&_&&Pe.domReference&&Pe.floating)return aR(Pe.domReference,Pe.floating,Be,Pt)},[v,_,Pe,Be,Pt]);const Ls=hs(Le),af=h2(r,Ls,fe),_o=gi(Le)||"center",jn=!!ut.hide?.referenceHidden;mt(()=>{O&&_&&it&&U(Ls)},[O,_,it,Ls]);const cr=I.useMemo(()=>({position:"absolute",top:ut.arrow?.y,left:ut.arrow?.x}),[ut.arrow]),Hn=ut.arrow?.centerOffset!==0;return I.useMemo(()=>({positionerStyles:nn,arrowStyles:cr,arrowRef:Re,arrowUncentered:Hn,side:af,align:_o,physicalSide:Ls,anchorHidden:jn,refs:_e,context:tn,isPositioned:it,update:Be}),[nn,cr,Re,Hn,af,_o,Ls,jn,_e,tn,it,Be])}function yR(e){return e!=null&&"current"in e}function p2(e){return e==="starting"?MB:Is}const h9=I.forwardRef(function(t,n){const{render:r,className:i,anchor:c,positionMethod:l="absolute",side:f="top",align:d="center",sideOffset:h=0,alignOffset:y=0,collisionBoundary:g="clipping-ancestors",collisionPadding:v=5,arrowPadding:b=5,sticky:_=!1,disableAnchorTracking:x=!1,collisionAvoidance:R=kB,...C}=t,A=Bu(),O=s9(),D=A.useState("open"),N=A.useState("mounted"),U=A.useState("trackCursorAxis"),B=A.useState("disableHoverablePopup"),k=A.useState("floatingRootContext"),K=A.useState("instantType"),ne=A.useState("transitionStatus"),le=A.useState("hasViewport"),G=d9({anchor:c,positionMethod:l,floatingRootContext:k,mounted:N,side:f,sideOffset:h,align:d,alignOffset:y,collisionBoundary:g,collisionPadding:v,sticky:_,arrowPadding:b,disableAnchorTracking:x,keepMounted:O,collisionAvoidance:R,adaptiveOrigin:le?f9:void 0}),Z=I.useMemo(()=>{const X={};return(!D||U==="both"||B)&&(X.pointerEvents="none"),{role:"presentation",hidden:!N,style:{...G.positionerStyles,...X}}},[D,U,B,N,G.positionerStyles]),ye=I.useMemo(()=>({open:D,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:U!=="none"?"tracking-cursor":K}),[D,G.side,G.align,G.anchorHidden,U,K]),fe=I.useMemo(()=>({...ye,arrowRef:G.arrowRef,arrowStyles:G.arrowStyles,arrowUncentered:G.arrowUncentered}),[ye,G.arrowRef,G.arrowStyles,G.arrowUncentered]),q=ir("div",t,{state:ye,props:[Z,p2(ne),C],ref:[n,A.useStateSetter("positionerElement")],stateAttributesMapping:zu});return $.jsx(f2.Provider,{value:fe,children:q})}),p9={...zu,...zb},m9=I.forwardRef(function(t,n){const{className:r,render:i,...c}=t,l=Bu(),{side:f,align:d}=d2(),h=l.useState("open"),y=l.useState("instantType"),g=l.useState("transitionStatus"),v=l.useState("popupProps"),b=l.useState("floatingRootContext");jb({open:h,ref:l.context.popupRef,onComplete(){h&&l.context.onOpenChangeComplete?.(!0)}});const _=l.useState("disabled"),x=l.useState("closeDelay");cj(b,{enabled:!_,closeDelay:x});const R=I.useMemo(()=>({open:h,side:f,align:d,instant:y,transitionStatus:g}),[h,f,d,y,g]);return ir("div",t,{state:R,ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[v,p2(g),c],stateAttributesMapping:p9})}),g9=I.forwardRef(function(t,n){const{className:r,render:i,...c}=t,f=Bu().useState("instantType"),{open:d,arrowRef:h,side:y,align:g,arrowUncentered:v,arrowStyles:b}=d2(),_=I.useMemo(()=>({open:d,side:y,align:g,uncentered:v,instant:f}),[d,y,g,v,f]);return ir("div",t,{state:_,ref:[n,h],props:[{style:b,"aria-hidden":!0},c],stateAttributesMapping:zu})}),y9=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,c=I.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=I.useMemo(()=>({open:n,close:r}),[n,r]);return $.jsx(l2.Provider,{value:c,children:$.jsx(C5,{delay:l,timeoutMs:i,children:t.children})})};function v9(e){const t=Ct.c(6);let n,r;t[0]!==e?({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const i=r===void 0?0:r;let c;return t[3]!==i||t[4]!==n?(c=$.jsx(y9,{"data-slot":"tooltip-provider",delay:i,...n}),t[3]=i,t[4]=n,t[5]=c):c=t[5],c}function b9(e){const t=Ct.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=$.jsx(v9,{children:$.jsx(Wj,{"data-slot":"tooltip",...n})}),t[2]=n,t[3]=r):r=t[3],r}function S9(e){const t=Ct.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=$.jsx(n9,{"data-slot":"tooltip-trigger",...n}),t[2]=n,t[3]=r):r=t[3],r}function _9(e){const t=Ct.c(21);let n,r,i,c,l,f,d;t[0]!==e?({className:r,side:c,sideOffset:l,align:f,alignOffset:d,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=c===void 0?"top":c,y=l===void 0?4:l,g=f===void 0?"center":f,v=d===void 0?0:d;let b;t[8]!==r?(b=Jt("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 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:rounded-md",r),t[8]=r,t[9]=b):b=t[9];let _;t[10]===Symbol.for("react.memo_cache_sentinel")?(_=$.jsx(g9,{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=right]:top-1/2! data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=right]:-left-1 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2"}),t[10]=_):_=t[10];let x;t[11]!==n||t[12]!==i||t[13]!==b?(x=$.jsxs(m9,{className:b,"data-slot":"tooltip-content",...i,children:[n,_]}),t[11]=n,t[12]=i,t[13]=b,t[14]=x):x=t[14];let R;return t[15]!==g||t[16]!==v||t[17]!==h||t[18]!==y||t[19]!==x?(R=$.jsx(o9,{children:$.jsx(h9,{align:g,alignOffset:v,className:"isolate z-50",side:h,sideOffset:y,children:x})}),t[15]=g,t[16]=v,t[17]=h,t[18]=y,t[19]=x,t[20]=R):R=t[20],R}const w9=768,m2=`(max-width: ${w9-1}px)`;function E9(e){const t=window.matchMedia(m2);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function x9(){return window.matchMedia(m2).matches}function R9(){return I.useSyncExternalStore(E9,x9)}const C9="sidebar_state",T9=3600*24*7,A9="12rem",I9="16rem",O9="3rem",M9="b",g2=I.createContext(null);function op(){const e=I.useContext(g2);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function D9(e){const t=Ct.c(36);let n,r,i,c,l,f,d;t[0]!==e?({defaultOpen:d,open:i,onOpenChange:l,className:r,style:f,children:n,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=d):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6],d=t[7]);const h=d===void 0?!0:d,y=R9(),[g,v]=I.useState(!1),[b,_]=I.useState(h),x=i??b;let R;t[8]!==x||t[9]!==l?(R=ye=>{const fe=typeof ye=="function"?ye(x):ye;l?l(fe):_(fe),document.cookie=`${C9}=${fe}; path=/; max-age=${T9}`},t[8]=x,t[9]=l,t[10]=R):R=t[10];const C=R;let A;t[11]!==y||t[12]!==C?(A=()=>y?v(P9):C(k9),t[11]=y,t[12]=C,t[13]=A):A=t[13];const O=A;let D,N;t[14]!==O?(D=()=>{const ye=fe=>{fe.key===M9&&(fe.metaKey||fe.ctrlKey)&&(fe.preventDefault(),O())};return window.addEventListener("keydown",ye),()=>window.removeEventListener("keydown",ye)},N=[O],t[14]=O,t[15]=D,t[16]=N):(D=t[15],N=t[16]),I.useEffect(D,N);const U=x?"expanded":"collapsed";let B;t[17]!==y||t[18]!==x||t[19]!==g||t[20]!==C||t[21]!==U||t[22]!==O?(B={state:U,open:x,setOpen:C,isMobile:y,openMobile:g,setOpenMobile:v,toggleSidebar:O},t[17]=y,t[18]=x,t[19]=g,t[20]=C,t[21]=U,t[22]=O,t[23]=B):B=t[23];const k=B;let K;t[24]!==r?(K=Jt("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),t[24]=r,t[25]=K):K=t[25];let ne;t[26]!==f?(ne={"--sidebar-width":A9,"--sidebar-width-icon":O9,...f},t[26]=f,t[27]=ne):ne=t[27];const le=ne;let G;t[28]!==n||t[29]!==c||t[30]!==K||t[31]!==le?(G=$.jsx("div",{className:K,"data-slot":"sidebar-wrapper",style:le,...c,children:n}),t[28]=n,t[29]=c,t[30]=K,t[31]=le,t[32]=G):G=t[32];let Z;return t[33]!==k||t[34]!==G?(Z=$.jsx(g2.Provider,{value:k,children:G}),t[33]=k,t[34]=G,t[35]=Z):Z=t[35],Z}function k9(e){return!e}function P9(e){return!e}function N9(e){const t=Ct.c(46);let n,r,i,c,l,f;t[0]!==e?({side:c,variant:l,collapsible:f,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c,t[5]=l,t[6]=f):(n=t[1],r=t[2],i=t[3],c=t[4],l=t[5],f=t[6]);const d=c===void 0?"left":c,h=l===void 0?"sidebar":l,y=f===void 0?"offExamples":f,{isMobile:g,state:v,openMobile:b,setOpenMobile:_}=op();if(y==="none"){let K;t[7]!==r?(K=Jt("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),t[7]=r,t[8]=K):K=t[8];let ne;return t[9]!==n||t[10]!==i||t[11]!==K?(ne=$.jsx("div",{className:K,"data-slot":"sidebar",...i,children:n}),t[9]=n,t[10]=i,t[11]=K,t[12]=ne):ne=t[12],ne}if(g){let K;t[13]===Symbol.for("react.memo_cache_sentinel")?(K={"--sidebar-width":I9},t[13]=K):K=t[13];let ne;t[14]===Symbol.for("react.memo_cache_sentinel")?(ne=$.jsxs(Kj,{className:"sr-only",children:[$.jsx(Zj,{children:"Sidebar"}),$.jsx(Qj,{children:"Displays the mobile sidebar."})]}),t[14]=ne):ne=t[14];let le;t[15]!==n?(le=$.jsx("div",{className:"flex h-full w-full flex-col",children:n}),t[15]=n,t[16]=le):le=t[16];let G;t[17]!==d||t[18]!==le?(G=$.jsxs(Gj,{className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:d,style:K,children:[ne,le]}),t[17]=d,t[18]=le,t[19]=G):G=t[19];let Z;return t[20]!==b||t[21]!==i||t[22]!==_||t[23]!==G?(Z=$.jsx(Fj,{onOpenChange:_,open:b,...i,children:G}),t[20]=b,t[21]=i,t[22]=_,t[23]=G,t[24]=Z):Z=t[24],Z}const x=v==="collapsed"?y:"",R=h==="floating"||h==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let C;t[25]!==R?(C=Jt("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180",R),t[25]=R,t[26]=C):C=t[26];let A;t[27]!==C?(A=$.jsx("div",{className:C,"data-slot":"sidebar-gap"}),t[27]=C,t[28]=A):A=t[28];const O=d==="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)]",D=h==="floating"||h==="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";let N;t[29]!==r||t[30]!==O||t[31]!==D?(N=Jt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",O,D,r),t[29]=r,t[30]=O,t[31]=D,t[32]=N):N=t[32];let U;t[33]!==n?(U=$.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]=U):U=t[34];let B;t[35]!==i||t[36]!==N||t[37]!==U?(B=$.jsx("div",{className:N,"data-slot":"sidebar-container",...i,children:U}),t[35]=i,t[36]=N,t[37]=U,t[38]=B):B=t[38];let k;return t[39]!==d||t[40]!==v||t[41]!==B||t[42]!==x||t[43]!==A||t[44]!==h?(k=$.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":x,"data-side":d,"data-slot":"sidebar","data-state":v,"data-variant":h,children:[A,B]}),t[39]=d,t[40]=v,t[41]=B,t[42]=x,t[43]=A,t[44]=h,t[45]=k):k=t[45],k}function z9(e){const t=Ct.c(15);let n,r,i;t[0]!==e?({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{toggleSidebar:c}=op();let l;t[4]!==n?(l=Jt(n),t[4]=n,t[5]=l):l=t[5];let f;t[6]!==r||t[7]!==c?(f=g=>{r?.(g),c()},t[6]=r,t[7]=c,t[8]=f):f=t[8];let d,h;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=$.jsx(r$,{}),h=$.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),t[9]=d,t[10]=h):(d=t[9],h=t[10]);let y;return t[11]!==i||t[12]!==l||t[13]!==f?(y=$.jsxs(Rc,{className:l,"data-sidebar":"trigger","data-slot":"sidebar-trigger",onClick:f,size:"icon-lg",variant:"ghost",...i,children:[d,h]}),t[11]=i,t[12]=l,t[13]=f,t[14]=y):y=t[14],y}function L9(e){const t=Ct.c(9);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{toggleSidebar:i}=op();let c;t[3]!==n?(c=Jt("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 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 hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:after:left-full","[[data-side=left][data-collapsible=offExamples]_&]:-right-2","[[data-side=right][data-collapsible=offExamples]_&]:-left-2",n),t[3]=n,t[4]=c):c=t[4];let l;return t[5]!==r||t[6]!==c||t[7]!==i?(l=$.jsx("button",{"aria-label":"Toggle Sidebar",className:c,"data-sidebar":"rail","data-slot":"sidebar-rail",onClick:i,tabIndex:-1,title:"Toggle Sidebar",...r}),t[5]=r,t[6]=c,t[7]=i,t[8]=l):l=t[8],l}function B9(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("flex flex-col gap-2 p-2",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("div",{className:i,"data-sidebar":"footer","data-slot":"sidebar-footer",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function $9(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("div",{className:i,"data-sidebar":"content","data-slot":"sidebar-content",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Ly(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("relative flex w-full min-w-0 flex-col px-2 py-1",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("div",{className:i,"data-sidebar":"group","data-slot":"sidebar-group",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function By(e){const t=Ct.c(10);let n,r,i,c;if(t[0]!==e){const{className:d,render:h,...y}=e;n=h,c=$A,r="div",i=Yh({className:Jt("flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",d)},y),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=c}else n=t[1],r=t[2],i=t[3],c=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},t[5]=l):l=t[5];let f;return t[6]!==n||t[7]!==r||t[8]!==i?(f={defaultTagName:r,props:i,render:n,state:l},t[6]=n,t[7]=r,t[8]=i,t[9]=f):f=t[9],c(f)}function Bd(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("flex w-full min-w-0 flex-col gap-px",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("ul",{className:i,"data-sidebar":"menu","data-slot":"sidebar-menu",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function Hi(e){const t=Ct.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]!==n?(i=Jt("group/menu-item relative",n),t[3]=n,t[4]=i):i=t[4];let c;return t[5]!==r||t[6]!==i?(c=$.jsx("li",{className:i,"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}const U9=HA("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 outline-hidden ring-sidebar-ring transition-[width,height,padding] 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 group-has-data-[sidebar=menu-action]/menu-item:pr-8 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 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{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 Fi(e){const t=Ct.c(15);let{render:n,isActive:r,variant:i,size:c,tooltip:l,className:f,...d}=e;const h=r===void 0?!1:r,y=i===void 0?"default":i,g=c===void 0?"default":c,{isMobile:v,state:b}=op(),_="button",x=Yh({className:Jt(U9({variant:y,size:g}),f)},d),R=l?S9:n;let C;t[0]!==h||t[1]!==g?(C={slot:"sidebar-menu-button",sidebar:"menu-button",size:g,active:h},t[0]=h,t[1]=g,t[2]=C):C=t[2];let A;t[3]!==x||t[4]!==R||t[5]!==C?(A={defaultTagName:_,props:x,render:R,state:C},t[3]=x,t[4]=R,t[5]=C,t[6]=A):A=t[6];const O=$A(A);if(!l)return O;if(typeof l=="string"){let B;t[7]!==l?(B={children:l},t[7]=l,t[8]=B):B=t[8],l=B}const D=b!=="collapsed"||v;let N;t[9]!==D||t[10]!==l?(N=$.jsx(_9,{align:"center",hidden:D,side:"right",...l}),t[9]=D,t[10]=l,t[11]=N):N=t[11];let U;return t[12]!==O||t[13]!==N?(U=$.jsxs(b9,{children:[O,N]}),t[12]=O,t[13]=N,t[14]=U):U=t[14],U}function j9(){const e=Ct.c(8),{theme:t,setTheme:n}=vB();let 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];const i=r;let c,l,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=$.jsx(a$,{className:"size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),l=$.jsx(n$,{className:"absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),f=$.jsx("span",{className:"sr-only",children:"Toggle theme"}),e[3]=c,e[4]=l,e[5]=f):(c=e[3],l=e[4],f=e[5]);let d;return e[6]!==i?(d=$.jsxs(Rc,{className:"rounded-full",onClick:i,size:"icon-sm",variant:"ghost",children:[c,l,f]}),e[6]=i,e[7]=d):d=e[7],d}function y2(){const e=Ct.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Jt("z-50 flex h-10 shrink-0 items-center gap-2 border-sidebar-border border-b bg-sidebar px-4 text-sidebar-foreground","sticky top-0"),n=$.jsx(z9,{className:"-ml-1"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=$.jsxs("header",{className:t,children:[n,$.jsx("div",{className:"flex w-full justify-end",children:$.jsx(j9,{})})]}),e[2]=r):r=e[2],r}function H9(){const e=Ct.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=$.jsx("h1",{className:"font-bold text-4xl",children:"404"}),n=$.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=$.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[t,n,$.jsx(Cr,{to:"/",children:$.jsx(Rc,{variant:"outline",children:"Go back home"})})]}),e[2]=r):r=e[2],r}function ge(e,t,n){function r(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const h=l.prototype,y=Object.keys(h);for(let g=0;gn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class vc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class v2 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const b2={};function ra(e){return b2}function S2(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Zv(e,t){return typeof t=="bigint"?t.toString():t}function Fb(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function qb(e){return e==null}function Vb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function F9(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]))}const c=n>i?n:i,l=Number.parseInt(e.toFixed(c).replace(".","")),f=Number.parseInt(t.toFixed(c).replace(".",""));return l%f/10**c}const vR=Symbol("evaluating");function Rt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==vR)return r===void 0&&(r=vR,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function da(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function yi(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function bR(e){return JSON.stringify(e)}function q9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const _2="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Th(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const V9=Fb(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Eu(e){if(Th(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Th(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function w2(e){return Eu(e)?{...e}:Array.isArray(e)?[...e]:e}const G9=new Set(["string","number","symbol"]);function ip(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vi(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function $e(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function K9(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Z9={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Q9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=yi(e._zod.def,{get shape(){const l={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(l[f]=n.shape[f])}return da(this,"shape",l),l},checks:[]});return vi(e,c)}function Y9(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=yi(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete l[f]}return da(this,"shape",l),l},checks:[]});return vi(e,c)}function X9(e,t){if(!Eu(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const c=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(c,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=yi(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return da(this,"shape",c),c}});return vi(e,i)}function W9(e,t){if(!Eu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=yi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return da(this,"shape",r),r}});return vi(e,n)}function J9(e,t){const n=yi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return da(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return vi(e,n)}function eH(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=yi(t._zod.def,{get shape(){const f=t._zod.def.shape,d={...f};if(n)for(const h in n){if(!(h in f))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(d[h]=e?new e({type:"optional",innerType:f[h]}):f[h])}else for(const h in f)d[h]=e?new e({type:"optional",innerType:f[h]}):f[h];return da(this,"shape",d),d},checks:[]});return vi(t,l)}function tH(e,t,n){const r=yi(t._zod.def,{get shape(){const i=t._zod.def.shape,c={...i};if(n)for(const l in n){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=new e({type:"nonoptional",innerType:i[l]}))}else for(const l in i)c[l]=new e({type:"nonoptional",innerType:i[l]});return da(this,"shape",c),c}});return vi(t,r)}function dc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function $d(e){return typeof e=="string"?e:e?.message}function oa(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=$d(e.inst?._zod.def?.error?.(e))??$d(t?.error?.(e))??$d(n.customError?.(e))??$d(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Gb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xu(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const x2=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Zv,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},R2=ge("$ZodError",x2),ap=ge("$ZodError",x2,{Parent:Error});function nH(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function sH(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>r({issues:l}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)n._errors.push(t(c));else{let l=n,f=0;for(;f(t,n,r,i)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise)throw new vc;if(l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>oa(d,c,ra())));throw _2(f,i?.callee),f}return l.value},Bge=cp(ap),lp=e=>async(t,n,r,i)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(i?.Err??e)(l.issues.map(d=>oa(d,c,ra())));throw _2(f,i?.callee),f}return l.value},$ge=lp(ap),up=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new vc;return c.issues.length?{success:!1,error:new(e??R2)(c.issues.map(l=>oa(l,i,ra())))}:{success:!0,data:c.value}},rH=up(ap),fp=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(l=>oa(l,i,ra())))}:{success:!0,data:c.value}},oH=fp(ap),iH=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return cp(e)(t,n,i)},aH=e=>(t,n,r)=>cp(e)(t,n,r),cH=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return lp(e)(t,n,i)},lH=e=>async(t,n,r)=>lp(e)(t,n,r),uH=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return up(e)(t,n,i)},fH=e=>(t,n,r)=>up(e)(t,n,r),dH=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return fp(e)(t,n,i)},hH=e=>async(t,n,r)=>fp(e)(t,n,r),pH=/^[cC][^\s-]{8,}$/,mH=/^[0-9a-z]+$/,gH=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yH=/^[0-9a-vA-V]{20}$/,vH=/^[A-Za-z0-9]{27}$/,bH=/^[a-zA-Z0-9_-]{21}$/,SH=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_H=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,SR=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wH=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,EH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xH(){return new RegExp(EH,"u")}const RH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,TH=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,AH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,IH=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,C2=/^[A-Za-z0-9_-]*$/,OH=/^\+[1-9]\d{6,14}$/,T2="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",MH=new RegExp(`^${T2}$`);function A2(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function DH(e){return new RegExp(`^${A2(e)}$`)}function kH(e){const t=A2({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${T2}T(?:${r})$`)}const PH=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},NH=/^-?\d+$/,zH=/^-?\d+(?:\.\d+)?$/,LH=/^[^A-Z]*$/,BH=/^[^a-z]*$/,ps=ge("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),I2={number:"number",bigint:"bigint",object:"date"},O2=ge("$ZodCheckLessThan",(e,t)=>{ps.init(e,t);const n=I2[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{ps.init(e,t);const n=I2[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,c=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$H=ge("$ZodCheckMultipleOf",(e,t)=>{ps.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):F9(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),UH=ge("$ZodCheckNumberFormat",(e,t)=>{ps.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,c]=Z9[t.format];e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=t.format,f.minimum=i,f.maximum=c,n&&(f.pattern=NH)}),e._zod.check=l=>{const f=l.value;if(n){if(!Number.isInteger(f)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?l.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}fc&&l.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),jH=ge("$ZodCheckMaxLength",(e,t)=>{var n;ps.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!qb(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=r.value;if(i.length<=t.maximum)return;const l=Gb(i);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),HH=ge("$ZodCheckMinLength",(e,t)=>{var n;ps.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!qb(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const l=Gb(i);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),FH=ge("$ZodCheckLengthEquals",(e,t)=>{var n;ps.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!qb(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,c=i.length;if(c===t.length)return;const l=Gb(i),f=c>t.length;r.issues.push({origin:l,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),dp=ge("$ZodCheckStringFormat",(e,t)=>{var n,r;ps.init(e,t),e._zod.onattach.push(i=>{const c=i._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qH=ge("$ZodCheckRegex",(e,t)=>{dp.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),VH=ge("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=LH),dp.init(e,t)}),GH=ge("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=BH),dp.init(e,t)}),KH=ge("$ZodCheckIncludes",(e,t)=>{ps.init(e,t);const n=ip(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),ZH=ge("$ZodCheckStartsWith",(e,t)=>{ps.init(e,t);const n=new RegExp(`^${ip(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),QH=ge("$ZodCheckEndsWith",(e,t)=>{ps.init(e,t);const n=new RegExp(`.*${ip(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),YH=ge("$ZodCheckOverwrite",(e,t)=>{ps.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class XH{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` +`).filter(l=>l),i=Math.min(...r.map(l=>l.length-l.trimStart().length)),c=r.map(l=>l.slice(i)).map(l=>" ".repeat(this.indent*2)+l);for(const l of c)this.content.push(l)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(c=>` ${c}`)];return new t(...n,i.join(` +`))}}const WH={major:4,minor:3,patch:6},gn=ge("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=WH;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const c of i._zod.onattach)c(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,f,d)=>{let h=dc(l),y;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(l))continue}else if(h)continue;const v=l.issues.length,b=g._zod.check(l);if(b instanceof Promise&&d?.async===!1)throw new vc;if(y||b instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await b,l.issues.length!==v&&(h||(h=dc(l,v)))});else{if(l.issues.length===v)continue;h||(h=dc(l,v))}}return y?y.then(()=>l):l},c=(l,f,d)=>{if(dc(l))return l.aborted=!0,l;const h=i(f,r,d);if(h instanceof Promise){if(d.async===!1)throw new vc;return h.then(y=>e._zod.parse(y,d))}return e._zod.parse(h,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const h=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(y=>c(y,l,f)):c(h,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new vc;return d.then(h=>i(h,r,f))}return i(d,r,f)}}Rt(e,"~standard",()=>({validate:i=>{try{const c=rH(e,i);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return oH(e,i).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),Kb=ge("$ZodString",(e,t)=>{gn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??PH(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),jt=ge("$ZodStringFormat",(e,t)=>{dp.init(e,t),Kb.init(e,t)}),JH=ge("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_H),jt.init(e,t)}),e7=ge("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=SR(r))}else t.pattern??(t.pattern=SR());jt.init(e,t)}),t7=ge("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=wH),jt.init(e,t)}),n7=ge("$ZodURL",(e,t)=>{jt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),s7=ge("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xH()),jt.init(e,t)}),r7=ge("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bH),jt.init(e,t)}),o7=ge("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=pH),jt.init(e,t)}),i7=ge("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mH),jt.init(e,t)}),a7=ge("$ZodULID",(e,t)=>{t.pattern??(t.pattern=gH),jt.init(e,t)}),c7=ge("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yH),jt.init(e,t)}),l7=ge("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=vH),jt.init(e,t)}),u7=ge("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=kH(t)),jt.init(e,t)}),f7=ge("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=MH),jt.init(e,t)}),d7=ge("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=DH(t)),jt.init(e,t)}),h7=ge("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=SH),jt.init(e,t)}),p7=ge("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=RH),jt.init(e,t),e._zod.bag.format="ipv4"}),m7=ge("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=CH),jt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),g7=ge("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=TH),jt.init(e,t)}),y7=ge("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=AH),jt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,c]=r;if(!c)throw new Error;const l=Number(c);if(`${l}`!==c)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function D2(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const v7=ge("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=IH),jt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{D2(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function b7(e){if(!C2.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return D2(n)}const S7=ge("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=C2),jt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{b7(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),_7=ge("$ZodE164",(e,t)=>{t.pattern??(t.pattern=OH),jt.init(e,t)});function w7(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const E7=ge("$ZodJWT",(e,t)=>{jt.init(e,t),e._zod.check=n=>{w7(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),k2=ge("$ZodNumber",(e,t)=>{gn.init(e,t),e._zod.pattern=e._zod.bag.pattern??zH,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const c=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...c?{received:c}:{}}),n}}),x7=ge("$ZodNumberFormat",(e,t)=>{UH.init(e,t),k2.init(e,t)}),R7=ge("$ZodUnknown",(e,t)=>{gn.init(e,t),e._zod.parse=n=>n}),C7=ge("$ZodNever",(e,t)=>{gn.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function _R(e,t,n){e.issues.length&&t.issues.push(...E2(n,e.issues)),t.value[n]=e.value}const T7=ge("$ZodArray",(e,t)=>{gn.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const c=[];for(let l=0;l_R(h,n,l))):_R(d,n,l)}return c.length?Promise.all(c).then(()=>n):n}});function Ah(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...E2(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function P2(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=K9(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function N2(e,t,n,r,i,c){const l=[],f=i.keySet,d=i.catchall._zod,h=d.def.type,y=d.optout==="optional";for(const g in t){if(f.has(g))continue;if(h==="never"){l.push(g);continue}const v=d.run({value:t[g],issues:[]},r);v instanceof Promise?e.push(v.then(b=>Ah(b,n,g,t,y))):Ah(v,n,g,t,y)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:c}),e.length?Promise.all(e).then(()=>n):n}const A7=ge("$ZodObject",(e,t)=>{if(gn.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Fb(()=>P2(t));Rt(e._zod,"propValues",()=>{const f=t.shape,d={};for(const h in f){const y=f[h]._zod;if(y.values){d[h]??(d[h]=new Set);for(const g of y.values)d[h].add(g)}}return d});const i=Th,c=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=r.value);const h=f.value;if(!i(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const y=[],g=l.shape;for(const v of l.keys){const b=g[v],_=b._zod.optout==="optional",x=b._zod.run({value:h[v],issues:[]},d);x instanceof Promise?y.push(x.then(R=>Ah(R,f,v,h,_))):Ah(x,f,v,h,_)}return c?N2(y,h,f,d,r.value,e):y.length?Promise.all(y).then(()=>f):f}}),I7=ge("$ZodObjectJIT",(e,t)=>{A7.init(e,t);const n=e._zod.parse,r=Fb(()=>P2(t)),i=v=>{const b=new XH(["shape","payload","ctx"]),_=r.value,x=O=>{const D=bR(O);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};b.write("const input = payload.value;");const R=Object.create(null);let C=0;for(const O of _.keys)R[O]=`key_${C++}`;b.write("const newResult = {};");for(const O of _.keys){const D=R[O],N=bR(O),B=v[O]?._zod?.optout==="optional";b.write(`const ${D} = ${x(O)};`),B?b.write(` + if (${D}.issues.length) { + if (${N} in input) { + payload.issues = payload.issues.concat(${D}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${N}, ...iss.path] : [${N}] + }))); + } + } + + if (${D}.value === undefined) { + if (${N} in input) { + newResult[${N}] = undefined; + } + } else { + newResult[${N}] = ${D}.value; + } + + `):b.write(` + if (${D}.issues.length) { + payload.issues = payload.issues.concat(${D}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${N}, ...iss.path] : [${N}] + }))); + } + + if (${D}.value === undefined) { + if (${N} in input) { + newResult[${N}] = undefined; + } + } else { + newResult[${N}] = ${D}.value; + } + + `)}b.write("payload.value = newResult;"),b.write("return payload;");const A=b.compile();return(O,D)=>A(v,O,D)};let c;const l=Th,f=!b2.jitless,h=f&&V9.value,y=t.catchall;let g;e._zod.parse=(v,b)=>{g??(g=r.value);const _=v.value;return l(_)?f&&h&&b?.async===!1&&b.jitless!==!0?(c||(c=i(t.shape)),v=c(v,b),y?N2([],_,v,b,g,e):v):n(v,b):(v.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),v)}});function wR(e,t,n,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const i=e.filter(c=>!dc(c));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(c=>c.issues.map(l=>oa(l,r,ra())))}),t)}const O7=ge("$ZodUnion",(e,t)=>{gn.init(e,t),Rt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Rt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Rt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Rt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${i.map(c=>Vb(c.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,c)=>{if(n)return r(i,c);let l=!1;const f=[];for(const d of t.options){const h=d._zod.run({value:i.value,issues:[]},c);if(h instanceof Promise)f.push(h),l=!0;else{if(h.issues.length===0)return h;f.push(h)}}return l?Promise.all(f).then(d=>wR(d,i,e,c)):wR(f,i,e,c)}}),M7=ge("$ZodIntersection",(e,t)=>{gn.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,c=t.left._zod.run({value:i,issues:[]},r),l=t.right._zod.run({value:i,issues:[]},r);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(([d,h])=>ER(n,d,h)):ER(n,c,l)}});function Qv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Eu(e)&&Eu(t)){const n=Object.keys(t),r=Object.keys(e).filter(c=>n.indexOf(c)!==-1),i={...e,...t};for(const c of r){const l=Qv(e[c],t[c]);if(!l.valid)return{valid:!1,mergeErrorPath:[c,...l.mergeErrorPath]};i[c]=l.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;rf.l&&f.r).map(([f])=>f);if(c.length&&i&&e.issues.push({...i,keys:c}),dc(e))return e;const l=Qv(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const D7=ge("$ZodEnum",(e,t)=>{gn.init(e,t);const n=S2(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>G9.has(typeof i)).map(i=>typeof i=="string"?ip(i):i.toString()).join("|")})$`),e._zod.parse=(i,c)=>{const l=i.value;return r.has(l)||i.issues.push({code:"invalid_value",values:n,input:l,inst:e}),i}}),k7=ge("$ZodTransform",(e,t)=>{gn.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new v2(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(l=>(n.value=l,n));if(i instanceof Promise)throw new vc;return n.value=i,n}});function xR(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const z2=ge("$ZodOptional",(e,t)=>{gn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Rt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Rt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Vb(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>xR(c,n.value)):xR(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),P7=ge("$ZodExactOptional",(e,t)=>{z2.init(e,t),Rt(e._zod,"values",()=>t.innerType._zod.values),Rt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),N7=ge("$ZodNullable",(e,t)=>{gn.init(e,t),Rt(e._zod,"optin",()=>t.innerType._zod.optin),Rt(e._zod,"optout",()=>t.innerType._zod.optout),Rt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Vb(n.source)}|null)$`):void 0}),Rt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),z7=ge("$ZodDefault",(e,t)=>{gn.init(e,t),e._zod.optin="optional",Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>RR(c,t)):RR(i,t)}});function RR(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const L7=ge("$ZodPrefault",(e,t)=>{gn.init(e,t),e._zod.optin="optional",Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),B7=ge("$ZodNonOptional",(e,t)=>{gn.init(e,t),Rt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>CR(c,e)):CR(i,e)}});function CR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const $7=ge("$ZodCatch",(e,t)=>{gn.init(e,t),Rt(e._zod,"optin",()=>t.innerType._zod.optin),Rt(e._zod,"optout",()=>t.innerType._zod.optout),Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(c=>(n.value=c.value,c.issues.length&&(n.value=t.catchValue({...n,error:{issues:c.issues.map(l=>oa(l,r,ra()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>oa(c,r,ra()))},input:n.value}),n.issues=[]),n)}}),U7=ge("$ZodPipe",(e,t)=>{gn.init(e,t),Rt(e._zod,"values",()=>t.in._zod.values),Rt(e._zod,"optin",()=>t.in._zod.optin),Rt(e._zod,"optout",()=>t.out._zod.optout),Rt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(n,r);return c instanceof Promise?c.then(l=>Ud(l,t.in,r)):Ud(c,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(c=>Ud(c,t.out,r)):Ud(i,t.out,r)}});function Ud(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const j7=ge("$ZodReadonly",(e,t)=>{gn.init(e,t),Rt(e._zod,"propValues",()=>t.innerType._zod.propValues),Rt(e._zod,"values",()=>t.innerType._zod.values),Rt(e._zod,"optin",()=>t.innerType?._zod?.optin),Rt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(TR):TR(i)}});function TR(e){return e.value=Object.freeze(e.value),e}const H7=ge("$ZodCustom",(e,t)=>{ps.init(e,t),gn.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(c=>AR(c,n,r,e));AR(i,n,r,e)}});function AR(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(xu(i))}}var IR;class F7{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function q7(){return new F7}(IR=globalThis).__zod_globalRegistry??(IR.__zod_globalRegistry=q7());const nu=globalThis.__zod_globalRegistry;function V7(e,t){return new e({type:"string",...$e(t)})}function G7(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function OR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function K7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function Z7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function Q7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function Y7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function X7(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function W7(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function J7(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function eF(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function tF(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function nF(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function sF(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function rF(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function oF(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function iF(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function aF(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function cF(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function lF(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function uF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function fF(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function dF(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}function hF(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function pF(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function mF(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function gF(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function yF(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$e(t)})}function vF(e){return new e({type:"unknown"})}function bF(e,t){return new e({type:"never",...$e(t)})}function MR(e,t){return new O2({check:"less_than",...$e(t),value:e,inclusive:!1})}function $y(e,t){return new O2({check:"less_than",...$e(t),value:e,inclusive:!0})}function DR(e,t){return new M2({check:"greater_than",...$e(t),value:e,inclusive:!1})}function Uy(e,t){return new M2({check:"greater_than",...$e(t),value:e,inclusive:!0})}function kR(e,t){return new $H({check:"multiple_of",...$e(t),value:e})}function L2(e,t){return new jH({check:"max_length",...$e(t),maximum:e})}function Ih(e,t){return new HH({check:"min_length",...$e(t),minimum:e})}function B2(e,t){return new FH({check:"length_equals",...$e(t),length:e})}function SF(e,t){return new qH({check:"string_format",format:"regex",...$e(t),pattern:e})}function _F(e){return new VH({check:"string_format",format:"lowercase",...$e(e)})}function wF(e){return new GH({check:"string_format",format:"uppercase",...$e(e)})}function EF(e,t){return new KH({check:"string_format",format:"includes",...$e(t),includes:e})}function xF(e,t){return new ZH({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function RF(e,t){return new QH({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function Nc(e){return new YH({check:"overwrite",tx:e})}function CF(e){return Nc(t=>t.normalize(e))}function TF(){return Nc(e=>e.trim())}function AF(){return Nc(e=>e.toLowerCase())}function IF(){return Nc(e=>e.toUpperCase())}function OF(){return Nc(e=>q9(e))}function MF(e,t,n){return new e({type:"array",element:t,...$e(n)})}function DF(e,t,n){return new e({type:"custom",check:"custom",fn:t,...$e(n)})}function kF(e){const t=PF(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(xu(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(xu(i))}},e(n.value,n)));return t}function PF(e,t){const n=new ps({check:"custom",...$e(t)});return n._zod.check=e,n}function $2(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??nu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function $n(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,c=t.seen.get(e);if(c)return c.count++,n.schemaPath.includes(e)&&(c.cycle=n.path),c.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,y);else{const v=l.schema,b=t.processors[i.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);b(e,t,v,y)}const g=e._zod.parent;g&&(l.ref||(l.ref=g),$n(g,t,y),t.seen.get(g).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(l.schema,d),t.io==="input"&&Wn(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function U2(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const d=r.get(f);if(d&&d!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const i=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(l[0])?.id,v=e.external.uri??(_=>_);if(g)return{ref:v(g)};const b=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=b,{defId:b,ref:`${v("__shared")}#/${f}/${b}`}}if(l[1]===n)return{ref:"#"};const h=`#/${f}/`,y=l[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},c=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:d,defId:h}=i(l);f.def={...f.schema},h&&(f.defId=h);const y=f.schema;for(const g in y)delete y[g];y.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){c(l);continue}if(e.external){const h=e.external.registry.get(l[0])?.id;if(t!==l[0]&&h){c(l);continue}}if(e.metadataRegistry.get(l[0])?.id){c(l);continue}if(f.cycle){c(l);continue}if(f.count>1&&e.reused==="ref"){c(l);continue}}}function j2(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const d=f.def??f.schema,h={...d},y=f.ref;if(f.ref=null,y){r(y);const v=e.seen.get(y),b=v.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(b)):Object.assign(d,b),Object.assign(d,h),l._zod.parent===y)for(const x in d)x==="$ref"||x==="allOf"||x in h||delete d[x];if(b.$ref&&v.def)for(const x in d)x==="$ref"||x==="allOf"||x in v.def&&JSON.stringify(d[x])===JSON.stringify(v.def[x])&&delete d[x]}const g=l._zod.parent;if(g&&g!==y){r(g);const v=e.seen.get(g);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const b in d)b==="$ref"||b==="allOf"||b in v.def&&JSON.stringify(d[b])===JSON.stringify(v.def[b])&&delete d[b]}e.override({zodSchema:l,jsonSchema:d,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);const c=e.external?.defs??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(c[f.defId]=f.def)}e.external||Object.keys(c).length>0&&(e.target==="draft-2020-12"?i.$defs=c:i.definitions=c);try{const l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Oh(t,"input",e.processors),output:Oh(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Wn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Wn(r.element,n);if(r.type==="set")return Wn(r.valueType,n);if(r.type==="lazy")return Wn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Wn(r.innerType,n);if(r.type==="intersection")return Wn(r.left,n)||Wn(r.right,n);if(r.type==="record"||r.type==="map")return Wn(r.keyType,n)||Wn(r.valueType,n);if(r.type==="pipe")return Wn(r.in,n)||Wn(r.out,n);if(r.type==="object"){for(const i in r.shape)if(Wn(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(Wn(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(Wn(i,n))return!0;return!!(r.rest&&Wn(r.rest,n))}return!1}const NF=(e,t={})=>n=>{const r=$2({...n,processors:t});return $n(e,r),U2(r,e),j2(r,e)},Oh=(e,t,n={})=>r=>{const{libraryOptions:i,target:c}=r??{},l=$2({...i??{},target:c,io:t,processors:n});return $n(e,l),U2(l,e),j2(l,e)},zF={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LF=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:c,maximum:l,format:f,patterns:d,contentEncoding:h}=e._zod.bag;if(typeof c=="number"&&(i.minLength=c),typeof l=="number"&&(i.maxLength=l),f&&(i.format=zF[f]??f,i.format===""&&delete i.format,f==="time"&&delete i.format),h&&(i.contentEncoding=h),d&&d.size>0){const y=[...d];y.length===1?i.pattern=y[0].source:y.length>1&&(i.allOf=[...y.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},BF=(e,t,n,r)=>{const i=n,{minimum:c,maximum:l,format:f,multipleOf:d,exclusiveMaximum:h,exclusiveMinimum:y}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=y,i.exclusiveMinimum=!0):i.exclusiveMinimum=y),typeof c=="number"&&(i.minimum=c,typeof y=="number"&&t.target!=="draft-04"&&(y>=c?delete i.minimum:delete i.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=h,i.exclusiveMaximum=!0):i.exclusiveMaximum=h),typeof l=="number"&&(i.maximum=l,typeof h=="number"&&t.target!=="draft-04"&&(h<=l?delete i.maximum:delete i.exclusiveMaximum)),typeof d=="number"&&(i.multipleOf=d)},$F=(e,t,n,r)=>{n.not={}},UF=(e,t,n,r)=>{},jF=(e,t,n,r)=>{const i=e._zod.def,c=S2(i.entries);c.every(l=>typeof l=="number")&&(n.type="number"),c.every(l=>typeof l=="string")&&(n.type="string"),n.enum=c},HF=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},FF=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},qF=(e,t,n,r)=>{const i=n,c=e._zod.def,{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(i.minItems=l),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=$n(c.element,t,{...r,path:[...r.path,"items"]})},VF=(e,t,n,r)=>{const i=n,c=e._zod.def;i.type="object",i.properties={};const l=c.shape;for(const h in l)i.properties[h]=$n(l[h],t,{...r,path:[...r.path,"properties",h]});const f=new Set(Object.keys(l)),d=new Set([...f].filter(h=>{const y=c.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));d.size>0&&(i.required=Array.from(d)),c.catchall?._zod.def.type==="never"?i.additionalProperties=!1:c.catchall?c.catchall&&(i.additionalProperties=$n(c.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},GF=(e,t,n,r)=>{const i=e._zod.def,c=i.inclusive===!1,l=i.options.map((f,d)=>$n(f,t,{...r,path:[...r.path,c?"oneOf":"anyOf",d]}));c?n.oneOf=l:n.anyOf=l},KF=(e,t,n,r)=>{const i=e._zod.def,c=$n(i.left,t,{...r,path:[...r.path,"allOf",0]}),l=$n(i.right,t,{...r,path:[...r.path,"allOf",1]}),f=h=>"allOf"in h&&Object.keys(h).length===1,d=[...f(c)?c.allOf:[c],...f(l)?l.allOf:[l]];n.allOf=d},ZF=(e,t,n,r)=>{const i=e._zod.def,c=$n(i.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[c,{type:"null"}]},QF=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},YF=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},XF=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},WF=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType;let l;try{l=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},JF=(e,t,n,r)=>{const i=e._zod.def,c=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;$n(c,t,r);const l=t.seen.get(e);l.ref=c},eq=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType,n.readOnly=!0},H2=(e,t,n,r)=>{const i=e._zod.def;$n(i.innerType,t,r);const c=t.seen.get(e);c.ref=i.innerType},tq=ge("ZodISODateTime",(e,t)=>{u7.init(e,t),Gt.init(e,t)});function nq(e){return hF(tq,e)}const sq=ge("ZodISODate",(e,t)=>{f7.init(e,t),Gt.init(e,t)});function rq(e){return pF(sq,e)}const oq=ge("ZodISOTime",(e,t)=>{d7.init(e,t),Gt.init(e,t)});function iq(e){return mF(oq,e)}const aq=ge("ZodISODuration",(e,t)=>{h7.init(e,t),Gt.init(e,t)});function cq(e){return gF(aq,e)}const lq=(e,t)=>{R2.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>sH(e,n)},flatten:{value:n=>nH(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Zv,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Zv,2)}},isEmpty:{get(){return e.issues.length===0}}})},ar=ge("ZodError",lq,{Parent:Error}),uq=cp(ar),fq=lp(ar),dq=up(ar),hq=fp(ar),pq=iH(ar),mq=aH(ar),gq=cH(ar),yq=lH(ar),vq=uH(ar),bq=fH(ar),Sq=dH(ar),_q=hH(ar),yn=ge("ZodType",(e,t)=>(gn.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Oh(e,"input"),output:Oh(e,"output")}}),e.toJSONSchema=NF(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(yi(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>vi(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>uq(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>dq(e,n,r),e.parseAsync=async(n,r)=>fq(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>hq(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>pq(e,n,r),e.decode=(n,r)=>mq(e,n,r),e.encodeAsync=async(n,r)=>gq(e,n,r),e.decodeAsync=async(n,r)=>yq(e,n,r),e.safeEncode=(n,r)=>vq(e,n,r),e.safeDecode=(n,r)=>bq(e,n,r),e.safeEncodeAsync=async(n,r)=>Sq(e,n,r),e.safeDecodeAsync=async(n,r)=>_q(e,n,r),e.refine=(n,r)=>e.check(mV(n,r)),e.superRefine=n=>e.check(gV(n)),e.overwrite=n=>e.check(Nc(n)),e.optional=()=>zR(e),e.exactOptional=()=>nV(e),e.nullable=()=>LR(e),e.nullish=()=>zR(LR(e)),e.nonoptional=n=>cV(e,n),e.array=()=>Gq(e),e.or=n=>Qq([e,n]),e.and=n=>Xq(e,n),e.transform=n=>BR(e,eV(n)),e.default=n=>oV(e,n),e.prefault=n=>aV(e,n),e.catch=n=>uV(e,n),e.pipe=n=>BR(e,n),e.readonly=()=>hV(e),e.describe=n=>{const r=e.clone();return nu.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return nu.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return nu.get(e);const r=e.clone();return nu.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),F2=ge("_ZodString",(e,t)=>{Kb.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>LF(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(SF(...r)),e.includes=(...r)=>e.check(EF(...r)),e.startsWith=(...r)=>e.check(xF(...r)),e.endsWith=(...r)=>e.check(RF(...r)),e.min=(...r)=>e.check(Ih(...r)),e.max=(...r)=>e.check(L2(...r)),e.length=(...r)=>e.check(B2(...r)),e.nonempty=(...r)=>e.check(Ih(1,...r)),e.lowercase=r=>e.check(_F(r)),e.uppercase=r=>e.check(wF(r)),e.trim=()=>e.check(TF()),e.normalize=(...r)=>e.check(CF(...r)),e.toLowerCase=()=>e.check(AF()),e.toUpperCase=()=>e.check(IF()),e.slugify=()=>e.check(OF())}),wq=ge("ZodString",(e,t)=>{Kb.init(e,t),F2.init(e,t),e.email=n=>e.check(G7(Eq,n)),e.url=n=>e.check(X7(xq,n)),e.jwt=n=>e.check(dF($q,n)),e.emoji=n=>e.check(W7(Rq,n)),e.guid=n=>e.check(OR(PR,n)),e.uuid=n=>e.check(K7(jd,n)),e.uuidv4=n=>e.check(Z7(jd,n)),e.uuidv6=n=>e.check(Q7(jd,n)),e.uuidv7=n=>e.check(Y7(jd,n)),e.nanoid=n=>e.check(J7(Cq,n)),e.guid=n=>e.check(OR(PR,n)),e.cuid=n=>e.check(eF(Tq,n)),e.cuid2=n=>e.check(tF(Aq,n)),e.ulid=n=>e.check(nF(Iq,n)),e.base64=n=>e.check(lF(zq,n)),e.base64url=n=>e.check(uF(Lq,n)),e.xid=n=>e.check(sF(Oq,n)),e.ksuid=n=>e.check(rF(Mq,n)),e.ipv4=n=>e.check(oF(Dq,n)),e.ipv6=n=>e.check(iF(kq,n)),e.cidrv4=n=>e.check(aF(Pq,n)),e.cidrv6=n=>e.check(cF(Nq,n)),e.e164=n=>e.check(fF(Bq,n)),e.datetime=n=>e.check(nq(n)),e.date=n=>e.check(rq(n)),e.time=n=>e.check(iq(n)),e.duration=n=>e.check(cq(n))});function ci(e){return V7(wq,e)}const Gt=ge("ZodStringFormat",(e,t)=>{jt.init(e,t),F2.init(e,t)}),Eq=ge("ZodEmail",(e,t)=>{t7.init(e,t),Gt.init(e,t)}),PR=ge("ZodGUID",(e,t)=>{JH.init(e,t),Gt.init(e,t)}),jd=ge("ZodUUID",(e,t)=>{e7.init(e,t),Gt.init(e,t)}),xq=ge("ZodURL",(e,t)=>{n7.init(e,t),Gt.init(e,t)}),Rq=ge("ZodEmoji",(e,t)=>{s7.init(e,t),Gt.init(e,t)}),Cq=ge("ZodNanoID",(e,t)=>{r7.init(e,t),Gt.init(e,t)}),Tq=ge("ZodCUID",(e,t)=>{o7.init(e,t),Gt.init(e,t)}),Aq=ge("ZodCUID2",(e,t)=>{i7.init(e,t),Gt.init(e,t)}),Iq=ge("ZodULID",(e,t)=>{a7.init(e,t),Gt.init(e,t)}),Oq=ge("ZodXID",(e,t)=>{c7.init(e,t),Gt.init(e,t)}),Mq=ge("ZodKSUID",(e,t)=>{l7.init(e,t),Gt.init(e,t)}),Dq=ge("ZodIPv4",(e,t)=>{p7.init(e,t),Gt.init(e,t)}),kq=ge("ZodIPv6",(e,t)=>{m7.init(e,t),Gt.init(e,t)}),Pq=ge("ZodCIDRv4",(e,t)=>{g7.init(e,t),Gt.init(e,t)}),Nq=ge("ZodCIDRv6",(e,t)=>{y7.init(e,t),Gt.init(e,t)}),zq=ge("ZodBase64",(e,t)=>{v7.init(e,t),Gt.init(e,t)}),Lq=ge("ZodBase64URL",(e,t)=>{S7.init(e,t),Gt.init(e,t)}),Bq=ge("ZodE164",(e,t)=>{_7.init(e,t),Gt.init(e,t)}),$q=ge("ZodJWT",(e,t)=>{E7.init(e,t),Gt.init(e,t)}),Uq=ge("ZodNumber",(e,t)=>{k2.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>BF(e,r,i),e.gt=(r,i)=>e.check(DR(r,i)),e.gte=(r,i)=>e.check(Uy(r,i)),e.min=(r,i)=>e.check(Uy(r,i)),e.lt=(r,i)=>e.check(MR(r,i)),e.lte=(r,i)=>e.check($y(r,i)),e.max=(r,i)=>e.check($y(r,i)),e.int=r=>e.check(Yv(r)),e.safe=r=>e.check(Yv(r)),e.positive=r=>e.check(DR(0,r)),e.nonnegative=r=>e.check(Uy(0,r)),e.negative=r=>e.check(MR(0,r)),e.nonpositive=r=>e.check($y(0,r)),e.multipleOf=(r,i)=>e.check(kR(r,i)),e.step=(r,i)=>e.check(kR(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),jq=ge("ZodNumberFormat",(e,t)=>{x7.init(e,t),Uq.init(e,t)});function Yv(e){return yF(jq,e)}const Hq=ge("ZodUnknown",(e,t)=>{R7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>UF()});function NR(){return vF(Hq)}const Fq=ge("ZodNever",(e,t)=>{C7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$F(e,n,r)});function qq(e){return bF(Fq,e)}const Vq=ge("ZodArray",(e,t)=>{T7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>qF(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Ih(n,r)),e.nonempty=n=>e.check(Ih(1,n)),e.max=(n,r)=>e.check(L2(n,r)),e.length=(n,r)=>e.check(B2(n,r)),e.unwrap=()=>e.element});function Gq(e,t){return MF(Vq,e,t)}const Kq=ge("ZodObject",(e,t)=>{I7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>VF(e,n,r,i),Rt(e,"shape",()=>t.shape),e.keyof=()=>Wq(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:NR()}),e.loose=()=>e.clone({...e._zod.def,catchall:NR()}),e.strict=()=>e.clone({...e._zod.def,catchall:qq()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>X9(e,n),e.safeExtend=n=>W9(e,n),e.merge=n=>J9(e,n),e.pick=n=>Q9(e,n),e.omit=n=>Y9(e,n),e.partial=(...n)=>eH(q2,e,n[0]),e.required=(...n)=>tH(V2,e,n[0])});function hp(e,t){const n={type:"object",shape:e??{},...$e(t)};return new Kq(n)}const Zq=ge("ZodUnion",(e,t)=>{O7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>GF(e,n,r,i),e.options=t.options});function Qq(e,t){return new Zq({type:"union",options:e,...$e(t)})}const Yq=ge("ZodIntersection",(e,t)=>{M7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>KF(e,n,r,i)});function Xq(e,t){return new Yq({type:"intersection",left:e,right:t})}const Xv=ge("ZodEnum",(e,t)=>{D7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(r,i,c)=>jF(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const c={};for(const l of r)if(n.has(l))c[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Xv({...t,checks:[],...$e(i),entries:c})},e.exclude=(r,i)=>{const c={...t.entries};for(const l of r)if(n.has(l))delete c[l];else throw new Error(`Key ${l} not found in enum`);return new Xv({...t,checks:[],...$e(i),entries:c})}});function Wq(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Xv({type:"enum",entries:n,...$e(t)})}const Jq=ge("ZodTransform",(e,t)=>{k7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>FF(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new v2(e.constructor.name);n.addIssue=c=>{if(typeof c=="string")n.issues.push(xu(c,n.value,t));else{const l=c;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(xu(l))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(c=>(n.value=c,n)):(n.value=i,n)}});function eV(e){return new Jq({type:"transform",transform:e})}const q2=ge("ZodOptional",(e,t)=>{z2.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>H2(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function zR(e){return new q2({type:"optional",innerType:e})}const tV=ge("ZodExactOptional",(e,t)=>{P7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>H2(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function nV(e){return new tV({type:"optional",innerType:e})}const sV=ge("ZodNullable",(e,t)=>{N7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ZF(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function LR(e){return new sV({type:"nullable",innerType:e})}const rV=ge("ZodDefault",(e,t)=>{z7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>YF(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oV(e,t){return new rV({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():w2(t)}})}const iV=ge("ZodPrefault",(e,t)=>{L7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>XF(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function aV(e,t){return new iV({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():w2(t)}})}const V2=ge("ZodNonOptional",(e,t)=>{B7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>QF(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function cV(e,t){return new V2({type:"nonoptional",innerType:e,...$e(t)})}const lV=ge("ZodCatch",(e,t)=>{$7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>WF(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uV(e,t){return new lV({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const fV=ge("ZodPipe",(e,t)=>{U7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>JF(e,n,r,i),e.in=t.in,e.out=t.out});function BR(e,t){return new fV({type:"pipe",in:e,out:t})}const dV=ge("ZodReadonly",(e,t)=>{j7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eq(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function hV(e){return new dV({type:"readonly",innerType:e})}const pV=ge("ZodCustom",(e,t)=>{H7.init(e,t),yn.init(e,t),e._zod.processJSONSchema=(n,r,i)=>HF(e,n)});function mV(e,t={}){return DF(pV,e,t)}function gV(e){return kF(e)}const Zb="hive:v1:aws-credentials",yV=hp({accessKeyId:ci().min(16,"Access Key ID must be at least 16 characters"),secretAccessKey:ci().min(1,"Secret Access Key is required")});let oo;function pp(){if(oo!==void 0)return oo;try{const e=localStorage.getItem(Zb);if(!e)return oo=null,null;const t=JSON.parse(e),n=yV.safeParse(t);return oo=n.success?n.data:null,oo}catch{return oo=null,null}}function Uge(e){try{localStorage.setItem(Zb,JSON.stringify(e)),oo=e}catch{oo=e}}function vV(){try{localStorage.removeItem(Zb)}catch{}oo=null}const G2=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),K2=e=>({httpHandler:e.httpHandler()});var Ru;(function(e){e.HTTP="http",e.HTTPS="https"})(Ru||(Ru={}));var Mh;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Mh||(Mh={}));const Wv="__smithy_context";class On{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new On({...t,headers:{...t.headers}});return n.query&&(n.query=bV(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return On.clone(this)}}function bV(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class ia{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const SV=e=>t=>async n=>{if(!On.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let c=r.hostname;r.port!=null&&(c+=`:${r.port}`),r.headers.host=c}return t(n)},_V={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Z2=e=>({applyToStack:t=>{t.add(SV(e),_V)}}),wV=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:h}=f,y=d??t.inputFilterSensitiveLog,g=h??t.outputFilterSensitiveLog,{$metadata:v,...b}=r.output;return l?.info?.({clientName:i,commandName:c,input:y(n.input),output:g(b),metadata:v}),r}catch(r){const{clientName:i,commandName:c,logger:l,dynamoDbDocumentClientOptions:f={}}=t,{overrideInputFilterSensitiveLog:d}=f,h=d??t.inputFilterSensitiveLog;throw l?.error?.({clientName:i,commandName:c,input:h(n.input),error:r,metadata:r.$metadata}),r}},EV={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Q2=e=>({applyToStack:t=>{t.add(wV(),EV)}}),xV={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},RV=()=>e=>async t=>e(t),Y2=e=>({applyToStack:t=>{t.add(RV(),xV)}}),yo=e=>e[Wv]||(e[Wv]={}),Ds=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},CV=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(const r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function TV(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const AV=(e,t)=>(n,r)=>async i=>{const c=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),l=e.authSchemePreference?await e.authSchemePreference():[],f=CV(c,l),d=TV(e.httpAuthSchemes),h=yo(r),y=[];for(const g of f){const v=d.get(g.schemeId);if(!v){y.push(`HttpAuthScheme \`${g.schemeId}\` was not enabled for this service.`);continue}const b=v.identityProvider(await t.identityProviderConfigProvider(e));if(!b){y.push(`HttpAuthScheme \`${g.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:_={},signingProperties:x={}}=g.propertiesExtractor?.(e,r)||{};g.identityProperties=Object.assign(g.identityProperties||{},_),g.signingProperties=Object.assign(g.signingProperties||{},x),h.selectedHttpAuthScheme={httpAuthOption:g,identity:await b(g.identityProperties),signer:v.signer};break}if(!h.selectedHttpAuthScheme)throw new Error(y.join(` +`));return n(i)},IV={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},X2=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(AV(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),IV)}}),OV={name:"serializerMiddleware"},MV=e=>t=>{throw t},DV=(e,t)=>{},kV=e=>(t,n)=>async r=>{if(!On.isInstance(r.request))return t(r);const c=yo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c,h=await t({...r,request:await d.sign(r.request,f,l)}).catch((d.errorHandler||MV)(l));return(d.successHandler||DV)(h.response,l),h},W2={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},J2=e=>({applyToStack:t=>{t.addRelativeTo(kV(),W2)}}),bc=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},eO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$R=Object.entries(eO).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),PV=eO.split(""),Sc=6,lu=8,NV=63,aa=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=Sc;const f=i/4*3;c>>=l%lu;const d=Math.floor(l/lu);for(let h=0;h>y)}}return new Uint8Array(n)},mo=e=>new TextEncoder().encode(e),Cu=e=>typeof e=="string"?mo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),ha=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function di(e){let t;typeof e=="string"?t=mo(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let c=0;c>y]}i+="==".slice(0,4-d)}return i}class Ji extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?Ji.mutate(aa(t)):Ji.mutate(mo(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,Ji.prototype),t}transformToString(t="utf-8"){return t==="base64"?di(this):ha(this)}}const UR=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),zV=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:l}=t,f=n!==void 0&&r!==void 0&&i!==void 0&&c!==void 0&&l!==void 0,d=f?l(i,e):void 0,h=e.getReader();return new ReadableStream({async pull(y){const{value:g,done:v}=await h.read();if(v){if(y.enqueue(`0\r +`),f){const b=n(await d);y.enqueue(`${c}:${b}\r +`),y.enqueue(`\r +`)}y.close()}else y.enqueue(`${(r(g)||0).toString(16)}\r +${g}\r +`)}})};async function LV(e,t){let n=0;const r=[],i=e.getReader();let c=!1;for(;!c;){const{done:d,value:h}=await i.read();if(h&&(r.push(h),n+=h?.byteLength??0),n>=t)break;c=d}i.releaseLock();const l=new Uint8Array(Math.min(t,n));let f=0;for(const d of r){if(d.byteLength>l.byteLength-f){l.set(d.subarray(0,l.byteLength-f),f);break}else l.set(d,f);f+=d.length}return l}const ea=e=>encodeURIComponent(e).replace(/[!'()*]/g,BV),BV=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function $V(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=ea(n),Array.isArray(r))for(let i=0,c=r.length;i{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const jy={supported:void 0};class mp{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new mp(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),jy.supported===void 0&&(jy.supported=typeof Request<"u"&&"keepalive"in jR("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,c=this.config.keepAlive===!0,l=this.config.credentials;if(n?.aborted){const A=new Error("Request aborted");return A.name="AbortError",Promise.reject(A)}let f=t.path;const d=$V(t.query||{});d&&(f+=`?${d}`),t.fragment&&(f+=`#${t.fragment}`);let h="";if(t.username!=null||t.password!=null){const A=t.username??"",O=t.password??"";h=`${A}:${O}@`}const{port:y,method:g}=t,v=`${t.protocol}//${h}${t.hostname}${y?`:${y}`:""}${f}`,b=g==="GET"||g==="HEAD"?void 0:t.body,_={body:b,headers:new Headers(t.headers),method:g,credentials:l};this.config?.cache&&(_.cache=this.config.cache),b&&(_.duplex="half"),typeof AbortController<"u"&&(_.signal=n),jy.supported&&(_.keepalive=c),typeof this.config.requestInit=="function"&&Object.assign(_,this.config.requestInit(t));let x=()=>{};const R=jR(v,_),C=[fetch(R).then(A=>{const O=A.headers,D={};for(const U of O.entries())D[U[0]]=U[1];return A.body!=null?{response:new ia({headers:D,reason:A.statusText,statusCode:A.status,body:A.body})}:A.blob().then(U=>({response:new ia({headers:D,reason:A.statusText,statusCode:A.status,body:U})}))}),UV(i)];return n&&C.push(new Promise((A,O)=>{const D=()=>{const N=new Error("Request aborted");N.name="AbortError",O(N)};if(typeof n.addEventListener=="function"){const N=n;N.addEventListener("abort",D,{once:!0}),x=()=>N.removeEventListener("abort",D)}else n.onabort=D})),Promise.race(C).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const Qb=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):jV(e):HV(e);async function jV(e){const t=await FV(e),n=aa(t);return new Uint8Array(n)}async function HV(e){const t=[],n=e.getReader();let r=!1,i=0;for(;!r;){const{done:f,value:d}=await n.read();d&&(t.push(d),i+=d.length),r=f}const c=new Uint8Array(i);let l=0;for(const f of t)c.set(f,l),l+=f.length;return c}function FV(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const i=r.result??"",c=i.indexOf(","),l=c>-1?c+1:i.length;t(i.substring(l))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const tO={},Jv={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),tO[e]=t,Jv[t]=e}function nO(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n{if(!FR(e)&&!UR(e)){const i=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let t=!1;const n=async()=>{if(t)throw new Error(HR);return t=!0,await Qb(e)},r=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async i=>{const c=await n();if(i==="base64")return di(c);if(i==="hex")return fs(c);if(i===void 0||i==="utf8"||i==="utf-8")return ha(c);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(c);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(HR);if(t=!0,FR(e))return r(e);if(UR(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},FR=e=>typeof Blob=="function"&&e instanceof Blob;async function qV(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const ri=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Ji.mutate(e);if(!e)return Ji.mutate(new Uint8Array);const n=t.streamCollector(e);return Ji.mutate(await n)};function Dh(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const th=e=>typeof e=="function"?e():e,rO=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i}),VV=e=>(t,n)=>async r=>{const{response:i}=await t(r),{operationSchema:c}=yo(n),[,l,f,d,h,y]=c??[];try{const g=await e.protocol.deserializeResponse(rO(l,f,d,h,y),{...e,...n},i);return{response:i,output:g}}catch(g){if(Object.defineProperty(g,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in g)){const v="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{g.message+=` + `+v}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(v):n.logger?.warn?.(v)}typeof g.$responseBodyText<"u"&&g.$response&&(g.$response.body=g.$responseBodyText);try{if(ia.isInstance(i)){const{headers:b={}}=i,_=Object.entries(b);g.$metadata={httpStatusCode:i.statusCode,requestId:Hy(/^x-[\w-]+-request-?id$/,_),extendedRequestId:Hy(/^x-[\w-]+-id-2$/,_),cfId:Hy(/^x-[\w-]+-cf-id$/,_)}}}catch{}}throw g}},Hy=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],GV=e=>(t,n)=>async r=>{const{operationSchema:i}=yo(n),[,c,l,f,d,h]=i??[],y=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,g=await e.protocol.serializeRequest(rO(c,l,f,d,h),r.input,{...e,...n,endpoint:y});return t({...r,request:g})},KV={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ZV={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function oO(e){return{applyToStack:t=>{t.add(GV(e),ZV),t.add(VV(e),KV),e.protocol.setSerdeContext(e)}}}function hc(e){if(typeof e=="object")return e;e=e|0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return t}const qR={it:Symbol.for("@smithy/nor-struct-it")};class wt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=wt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;const r=[];let i=t,c=t;for(this._isMemberSchema=!1;Fy(i);)r.push(i[1]),i=i[0],c=th(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let l=r.length-1;l>=0;--l){const f=r[l];Object.assign(this.memberTraits,hc(f))}}else this.memberTraits=0;if(c instanceof wt){const l=this.memberTraits;Object.assign(this,c),this.memberTraits=Object.assign({},l,c.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??c.memberName;return}if(this.schema=th(c),QV(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(c),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){const n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){const n=th(t);if(n instanceof wt)return n;if(Fy(n)){const[r,i]=n;if(r instanceof wt)return Object.assign(r.getMergedTraits(),hc(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new wt(n)}getSchema(){const t=this.schema;return t[0]===0?t[4]:t}getName(t=!1){const{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){const t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){const n=this.getSchema()[0];return n===3||n===-3||n===4}isUnionSchema(){return this.getSchema()[0]===4}isBlobSchema(){const t=this.getSchema();return t===21||t===42}isTimestampSchema(){const t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return hc(this.memberTraits)}getOwnTraits(){return hc(this.traits)}getKeySchema(){const[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema(),i=t?15:r[4]??0;return Xl([i,0],"key")}getValueSchema(){const t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],c=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(c!=null)return Xl([c,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){const n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){const r=n[4].indexOf(t),i=n[5][r];return Xl(Fy(i)?i:[i,0],t)}if(this.isDocumentSchema())return Xl([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){const t={};try{for(const[n,r]of this.structIterator())t[n]=r}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(const[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const t=this.getSchema(),n=t[4].length;let r=t[qR.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,QV=e=>Array.isArray(e)&&e.length>=5;class Mt{namespace;schemas;exceptions;static registries=new Map;constructor(t,n=new Map,r=new Map){this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return Mt.registries.has(t)||Mt.registries.set(t,new Mt(t)),Mt.registries.get(t)}register(t,n){const r=this.normalizeShapeId(t);Mt.for(r.split("#")[0]).schemas.set(r,n)}getSchema(t){const n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){const r=t,i=Mt.for(r[1]);i.schemas.set(r[1]+"#"+r[2],r),i.exceptions.set(r,n)}getErrorCtor(t){const n=t;return Mt.for(n[1]).exceptions.get(n)}getBaseException(){for(const t of this.exceptions.keys())if(Array.isArray(t)){const[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}const YV=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&rG.warn(sG(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},XV=Math.ceil(2**127*(2-2**-23)),VR=e=>{const t=YV(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>XV)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},WV=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},GR=e=>iO(e,16),KR=e=>iO(e,8),iO=(e,t)=>{const n=WV(e);if(n!==void 0&&JV(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},JV=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},eG=e=>VR(typeof e=="string"?Yb(e):e),tG=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Yb=e=>{const t=e.match(tG);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},eb=e=>GR(typeof e=="string"?Yb(e):e),nG=e=>KR(typeof e=="string"?Yb(e):e),sG=e=>String(new TypeError(e).stack||e).split(` +`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` +`),rG={warn:console.warn},oG=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function kh(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),c=e.getUTCHours(),l=e.getUTCMinutes(),f=e.getUTCSeconds(),d=i<10?`0${i}`:`${i}`,h=c<10?`0${c}`:`${c}`,y=l<10?`0${l}`:`${l}`,g=f<10?`0${f}`:`${f}`;return`${oG[r]}, ${d} ${Xb[n]} ${t} ${h}:${y}:${g} GMT`}const iG=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),aG=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),cG=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),jge=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=iG.exec(e);if(t){const[n,r,i,c,l,f,d,h]=t;return qy(eb(Ph(c)),Vy(i),_c(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h})}if(t=aG.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return fG(qy(lG(c),Vy(i),_c(r,"day",1,31),{hours:l,minutes:f,seconds:d,fractionalMilliseconds:h}))}if(t=cG.exec(e),t){const[n,r,i,c,l,f,d,h]=t;return qy(eb(Ph(h)),Vy(r),_c(i.trimLeft(),"day",1,31),{hours:c,minutes:l,seconds:f,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},qy=(e,t,n,r)=>{const i=t-1;return hG(e,i,n),new Date(Date.UTC(e,i,n,_c(r.hours,"hour",0,23),_c(r.minutes,"minute",0,59),_c(r.seconds,"seconds",0,60),mG(r.fractionalMilliseconds)))},lG=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+eb(Ph(e));return ne.getTime()-new Date().getTime()>uG?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Vy=e=>{const t=Xb.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},dG=[31,28,31,30,31,30,31,31,30,31,30,31],hG=(e,t,n)=>{let r=dG[t];if(t===1&&pG(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${Xb[t]} in ${e}: ${n}`)},pG=e=>e%4===0&&(e%100!==0||e%400===0),_c=(e,t,n,r)=>{const i=nG(Ph(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},mG=e=>e==null?0:eG("0."+e)*1e3,Ph=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),gp=()=>{if(ZR)return ZR();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Vn[e[0]]+Vn[e[1]]+Vn[e[2]]+Vn[e[3]]+"-"+Vn[e[4]]+Vn[e[5]]+"-"+Vn[e[6]]+Vn[e[7]]+"-"+Vn[e[8]]+Vn[e[9]]+"-"+Vn[e[10]]+Vn[e[11]]+Vn[e[12]]+Vn[e[13]]+Vn[e[14]]+Vn[e[15]]},oi=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};oi.from=e=>e&&typeof e=="object"&&(e instanceof oi||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?oi(String(e)):oi(JSON.stringify(e));oi.fromObject=oi.from;function gG(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const Wb="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Jb="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",e0="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",aO="(\\d?\\d)",cO="(\\d{4})",yG=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),vG=new RegExp(`^${Wb}, ${aO} ${Jb} ${cO} ${e0} GMT$`),bG=new RegExp(`^${Wb}, ${aO}-${Jb}-(\\d\\d) ${e0} GMT$`),SG=new RegExp(`^${Wb} ${Jb} ( [1-9]|\\d\\d) ${e0} ${cO}$`),_G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wG=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},EG=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=yG.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,i,c,l,f,,d,h]=t;io(r,1,12),io(i,1,31),io(c,0,23),io(l,0,59),io(f,0,60);const y=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(c),Number(l),Number(f),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(y.setUTCFullYear(Number(n)),h.toUpperCase()!="Z"){const[,g,v,b]=/([+-])(\d\d):(\d\d)/.exec(h)||[void 0,"+",0,0],_=g==="-"?1:-1;y.setTime(y.getTime()+_*(Number(v)*60*60*1e3+Number(b)*60*1e3))}return y},xG=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,c,l,f,d;if((d=vG.exec(e))?[,t,n,r,i,c,l,f]=d:(d=bG.exec(e))?([,t,n,r,i,c,l,f]=d,r=(Number(r)+1900).toString()):(d=SG.exec(e))&&([,n,t,i,c,l,f,r]=d),r&&l){const h=Date.UTC(Number(r),_G.indexOf(n),Number(t),Number(i),Number(c),Number(l),f?Math.round(parseFloat(`0.${f}`)*1e3):0);io(t,1,31),io(i,0,23),io(c,0,59),io(l,0,60);const y=new Date(h);return y.setUTCFullYear(Number(r)),y}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function io(e,t,n){const r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}function RG(e,t,n){if(!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t),i=[];let c="";for(let l=0;l{const t=e.length,n=[];let r=!1,i,c=0;for(let l=0;l{l=l.trim();const f=l.length;return f<2?l:(l[0]==='"'&&l[f-1]==='"'&&(l=l.slice(1,f-1)),l.replace(/\\"/g,'"'))})},QR=/^-?\d*(\.\d+)?$/;class $u{string;type;constructor(t,n){if(this.string=t,this.type=n,!QR.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;const n=t;return $u.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&QR.test(n.string)}}const CG="modulepreload",TG=function(e){return"/"+e},YR={},En=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");i=d(n.map(h=>{if(h=TG(h),h in YR)return;YR[h]=!0;const y=h.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":CG,y||(v.as="script"),v.crossOrigin="",v.href=h,f&&v.setAttribute("nonce",f),document.head.appendChild(v),y)return new Promise((b,_)=>{v.addEventListener("load",b),v.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return i.then(l=>{for(const f of l||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};class yp{serdeContext;setSerdeContext(t){this.serdeContext=t}}class uO extends yp{options;constructor(t){super(),this.options=t}getRequestType(){return On}getResponseType(){return ia}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,n){if("url"in n){t.protocol=n.url.protocol,t.hostname=n.url.hostname,t.port=n.url.port?Number(n.url.port):void 0,t.path=n.url.pathname,t.fragment=n.url.hash||void 0,t.username=n.url.username||void 0,t.password=n.url.password||void 0,t.query||(t.query={});for(const[r,i]of n.url.searchParams.entries())t.query[r]=i;return t}else return t.protocol=n.protocol,t.hostname=n.hostname,t.port=n.port?Number(n.port):void 0,t.path=n.path,t.query={...n.query},t}setHostPrefix(t,n,r){if(this.serdeContext?.disableHostPrefix)return;const i=wt.of(n.input),c=hc(n.traits??{});if(c.endpoint){let l=c.endpoint?.[0];if(typeof l=="string"){const f=[...i.structIterator()].filter(([,d])=>d.getMergedTraits().hostLabel);for(const[d]of f){const h=r[d];if(typeof h!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);l=l.replace(`{${d}}`,h)}t.hostname=l+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:t}=await En(async()=>{const{EventStreamSerde:n}=await import("./index2.js");return{EventStreamSerde:n}},[]);return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,n,r,i,c){return[]}getEventStreamMarshaller(){const t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class AG extends uO{async serializeRequest(t,n,r){const i={...n??{}},c=this.serializer,l={},f={},d=await r.endpoint(),h=wt.of(t?.input),y=h.getSchema();let g=!1,v;const b=new On({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:l,headers:f,body:void 0});if(d){this.updateServiceEndpoint(b,d),this.setHostPrefix(b,t,i);const _=hc(t.traits);if(_.http){b.method=_.http[0];const[x,R]=_.http[1].split("?");b.path=="/"?b.path=x:b.path+=x;const C=new URLSearchParams(R??"");Object.assign(l,Object.fromEntries(C))}}for(const[_,x]of h.structIterator()){const R=x.getMergedTraits()??{},C=i[_];if(C==null&&!x.isIdempotencyToken()){if(R.httpLabel&&(b.path.includes(`{${_}+}`)||b.path.includes(`{${_}}`)))throw new Error(`No value provided for input HTTP label: ${_}.`);continue}if(R.httpPayload)x.isStreaming()?x.isStructSchema()?i[_]&&(v=await this.serializeEventStream({eventStream:i[_],requestSchema:h})):v=C:(c.write(x,C),v=c.flush()),delete i[_];else if(R.httpLabel){c.write(x,C);const A=c.flush();b.path.includes(`{${_}+}`)?b.path=b.path.replace(`{${_}+}`,A.split("/").map(Dh).join("/")):b.path.includes(`{${_}}`)&&(b.path=b.path.replace(`{${_}}`,Dh(A))),delete i[_]}else if(R.httpHeader)c.write(x,C),f[R.httpHeader.toLowerCase()]=String(c.flush()),delete i[_];else if(typeof R.httpPrefixHeaders=="string"){for(const[A,O]of Object.entries(C)){const D=R.httpPrefixHeaders+A;c.write([x.getValueSchema(),{httpHeader:D}],O),f[D.toLowerCase()]=c.flush()}delete i[_]}else R.httpQuery||R.httpQueryParams?(this.serializeQuery(x,C,l),delete i[_]):g=!0}return g&&i&&(c.write(y,i),v=c.flush()),b.headers=f,b.query=l,b.body=v,b}serializeQuery(t,n,r){const i=this.serializer,c=t.getMergedTraits();if(c.httpQueryParams){for(const[l,f]of Object.entries(n))if(!(l in r)){const d=t.getValueSchema();Object.assign(d.getMergedTraits(),{...c,httpQuery:l,httpQueryParams:void 0}),this.serializeQuery(d,f,r)}return}if(t.isListSchema()){const l=!!t.getMergedTraits().sparse,f=[];for(const d of n){i.write([t.getValueSchema(),c],d);const h=i.flush();(l||h!==void 0)&&f.push(h)}r[c.httpQuery]=f}else i.write([t,c],n),r[c.httpQuery]=i.flush()}async deserializeResponse(t,n,r){const i=this.deserializer,c=wt.of(t.output),l={};if(r.statusCode>=300){const d=await ri(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=await this.deserializeHttpMessage(c,n,r,l);if(f.length){const d=await ri(r.body,n);if(d.byteLength>0){const h=await i.read(c,d);for(const y of f)l[y]=h[y]}}else f.discardResponseBody&&await ri(r.body,n);return l.$metadata=this.deserializeMetadata(r),l}async deserializeHttpMessage(t,n,r,i,c){let l;i instanceof Set?l=c:l=i;let f=!0;const d=this.deserializer,h=wt.of(t),y=[];for(const[g,v]of h.structIterator()){const b=v.getMemberTraits();if(b.httpPayload){if(f=!1,v.isStreaming())v.isStructSchema()?l[g]=await this.deserializeEventStream({response:r,responseSchema:h}):l[g]=sO(r.body);else if(r.body){const x=await ri(r.body,n);x.byteLength>0&&(l[g]=await d.read(v,x))}}else if(b.httpHeader){const _=String(b.httpHeader).toLowerCase(),x=r.headers[_];if(x!=null)if(v.isListSchema()){const R=v.getValueSchema();R.getMergedTraits().httpHeader=_;let C;R.isTimestampSchema()&&R.getSchema()===4?C=RG(x,",",2):C=lO(x);const A=[];for(const O of C)A.push(await d.read(R,O.trim()));l[g]=A}else l[g]=await d.read(v,x)}else if(b.httpPrefixHeaders!==void 0){l[g]={};for(const[_,x]of Object.entries(r.headers))if(_.startsWith(b.httpPrefixHeaders)){const R=v.getValueSchema();R.getMergedTraits().httpHeader=_,l[g][_.slice(b.httpPrefixHeaders.length)]=await d.read(R,x)}}else b.httpResponseCode?l[g]=r.statusCode:y.push(g)}return y.discardResponseBody=f,y}}class IG extends uO{async serializeRequest(t,n,r){const i=this.serializer,c={},l={},f=await r.endpoint(),d=wt.of(t?.input),h=d.getSchema();let y;const g=new On({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:c,headers:l,body:void 0});f&&(this.updateServiceEndpoint(g,f),this.setHostPrefix(g,t,n));const v={...n};if(n){const b=d.getEventStreamMember();if(b){if(v[b]){const _={};for(const[x,R]of d.structIterator())x!==b&&v[x]&&(i.write(R,v[x]),_[x]=i.flush());y=await this.serializeEventStream({eventStream:v[b],requestSchema:d,initialRequest:_})}}else i.write(h,v),y=i.flush()}return g.headers=l,g.query=c,g.body=y,g.method="POST",g}async deserializeResponse(t,n,r){const i=this.deserializer,c=wt.of(t.output),l={};if(r.statusCode>=300){const d=await ri(r.body,n);throw d.byteLength>0&&Object.assign(l,await i.read(15,d)),await this.handleError(t,n,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const d in r.headers){const h=r.headers[d];delete r.headers[d],r.headers[d.toLowerCase()]=h}const f=c.getEventStreamMember();if(f)l[f]=await this.deserializeEventStream({response:r,responseSchema:c,initialResponseContainer:l});else{const d=await ri(r.body,n);d.byteLength>0&&Object.assign(l,await i.read(c,d))}return l.$metadata=this.deserializeMetadata(r),l}}function vp(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:c}=e.getMergedTraits();return(t.httpBindings?typeof r=="string"||i?6:c||n?5:void 0:void 0)??t.timestampFormat.default}class fO extends yp{settings;constructor(t){super(),this.settings=t}read(t,n){const r=wt.of(t);if(r.isListSchema())return lO(n).map(i=>this.read(r.getValueSchema(),i));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??aa)(n);if(r.isTimestampSchema())switch(vp(r,this.settings)){case 5:return EG(n);case 6:return xG(n);case 7:return wG(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isStringSchema()){const i=r.getMergedTraits().mediaType;let c=n;if(i)return r.getMergedTraits().httpHeader&&(c=this.base64ToUtf8(c)),(i==="application/json"||i.endsWith("+json"))&&(c=oi.from(c)),c}return r.isNumericSchema()?Number(n):r.isBigIntegerSchema()?BigInt(n):r.isBigDecimalSchema()?new $u(n,"bigDecimal"):r.isBooleanSchema()?String(n).toLowerCase()==="true":n}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??ha)((this.serdeContext?.base64Decoder??aa)(t))}}class OG extends yp{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new fO(n)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,n){const r=wt.of(t),i=r.getMergedTraits(),c=this.serdeContext?.utf8Encoder??ha;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(r,c(n));if(i.httpPayload){if(r.isBlobSchema()){const l=this.serdeContext?.utf8Decoder??mo;return typeof n=="string"?l(n):n}else if(r.isStringSchema())return"byteLength"in n?c(n):n}return this.codecDeserializer.read(r,n)}}class MG extends yp{settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,n){const r=wt.of(t);switch(typeof n){case"object":if(n===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(n instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${n} when schema expected Date in ${r.getName(!0)}`);switch(vp(r,this.settings)){case 5:this.stringBuffer=n.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=kh(n);break;case 7:this.stringBuffer=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",n),this.stringBuffer=String(n.getTime()/1e3)}return}if(r.isBlobSchema()&&"byteLength"in n){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(n);return}if(r.isListSchema()&&Array.isArray(n)){let l="";for(const f of n){this.write([r.getValueSchema(),r.getMergedTraits()],f);const d=this.flush(),h=r.getValueSchema().isTimestampSchema()?d:gG(d);l!==""&&(l+=", "),l+=h}this.stringBuffer=l;return}this.stringBuffer=JSON.stringify(n,null,2);break;case"string":const i=r.getMergedTraits().mediaType;let c=n;if(i&&((i==="application/json"||i.endsWith("+json"))&&(c=oi.from(c)),r.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??di)(c.toString());return}this.stringBuffer=n;break;default:r.isIdempotencyToken()?this.stringBuffer=gp():this.stringBuffer=String(n)}}flush(){const t=this.stringBuffer;return this.stringBuffer="",t}}class DG{codecSerializer;stringSerializer;buffer;constructor(t,n,r=new MG(n)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){const r=wt.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){const t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}function kG(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class dO{authSchemes=new Map;constructor(t){for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const PG=e=>function(n){return hO(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,LG=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let i,c,l,f=!1;const d=async h=>{c||(c=r(h));try{i=await c,l=!0,f=!1}finally{c=void 0}return i};return t===void 0?async h=>((!l||h?.forceRefresh)&&(i=await d(h)),i):async h=>((!l||h?.forceRefresh)&&(i=await d(h)),f?i:n(i)?(t(i)&&await d(h),i):(f=!0,i))},BG=void 0;function $G(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function pO(e){const t=bc(e.userAgentAppId??BG),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!$G(r)){const i=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?i?.warn("userAgentAppId must be a string or undefined."):r.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class mO{capacity;data=new Map;parameters=[];constructor({size:t,params:n}){this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const i=this.data.keys();let c=0;for(;;){const{value:l,done:f}=i.next();if(this.data.delete(l),f||++c>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const i of r){const c=String(t[i]??"");if(c.includes("|;"))return!1;n+=c+"|;"}return n}}const UG=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),gO=e=>UG.test(e)||e.startsWith("[")&&e.endsWith("]"),jG=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),bp=(e,t=!1)=>{if(!t)return jG.test(e);const n=e.split(".");for(const r of n)if(!bp(r))return!1;return!0},Tu={},Au="endpoints";function hi(e){return typeof e!="object"||e==null?e:"ref"in e?`$${hi(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(hi).join(", ")})`:JSON.stringify(e,null,2)}class Ps extends Error{constructor(t){super(t),this.name="EndpointError"}}const HG=(e,t)=>e===t,FG=e=>{const t=e.split("."),n=[];for(const r of t){const i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new Ps(`Path: '${e}' does not end with ']'`);const c=r.slice(i+1,-1);if(Number.isNaN(parseInt(c)))throw new Ps(`Invalid array index: '${c}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(c)}else n.push(r)}return n},yO=(e,t)=>FG(t).reduce((n,r)=>{if(typeof n!="object")throw new Ps(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),qG=e=>e!=null,VG=e=>!e,Gy={[Ru.HTTP]:80,[Ru.HTTPS]:443},GG=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:v,port:b,protocol:_="",path:x="",query:R={}}=e,C=new URL(`${_}//${v}${b?`:${b}`:""}${x}`);return C.search=Object.entries(R).map(([A,O])=>`${A}=${O}`).join("&"),C}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:i,pathname:c,protocol:l,search:f}=t;if(f)return null;const d=l.slice(0,-1);if(!Object.values(Ru).includes(d))return null;const h=gO(i),y=n.includes(`${r}:${Gy[d]}`)||typeof e=="string"&&e.includes(`${r}:${Gy[d]}`),g=`${r}${y?`:${Gy[d]}`:""}`;return{scheme:d,authority:g,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:h}},KG=(e,t)=>e===t,ZG=(e,t,n,r)=>t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),YG={booleanEquals:HG,getAttr:yO,isSet:qG,isValidHostLabel:bp,not:VG,parseURL:GG,stringEquals:KG,substring:ZG,uriEncode:QG},vO=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Sp=(e,t,n)=>{if(typeof e=="string")return vO(e,n);if(e.fn)return SO.callFunction(e,n);if(e.ref)return XG(e,n);throw new Ps(`'${t}': ${String(e)} is not a string, function or reference.`)},bO=({fn:e,argv:t},n)=>{const r=t.map(c=>["boolean","number"].includes(typeof c)?c:SO.evaluateExpression(c,"arg",n)),i=e.split(".");return i[0]in Tu&&i[1]!=null?Tu[i[0]][i[1]](...r):YG[e](...r)},SO={evaluateExpression:Sp,callFunction:bO},WG=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Ps(`'${e}' is already defined in Reference Record.`);const r=bO(t,n);return n.logger?.debug?.(`${Au} evaluateCondition: ${hi(t)} = ${hi(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},t0=(e=[],t)=>{const n={};for(const r of e){const{result:i,toAssign:c}=WG(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!i)return{result:i};c&&(n[c.name]=c.value,t.logger?.debug?.(`${Au} assign: ${c.name} := ${hi(c.value)}`))}return{result:!0,referenceRecord:n}},JG=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:i.map(c=>{const l=Sp(c,"Header value entry",t);if(typeof l!="string")throw new Ps(`Header '${r}' value '${l}' is not a string`);return l})}),{}),_O=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:EO.getEndpointProperty(i,t)}),{}),wO=(e,t)=>{if(Array.isArray(e))return e.map(n=>wO(n,t));switch(typeof e){case"string":return vO(e,t);case"object":if(e===null)throw new Ps(`Unexpected endpoint property: ${e}`);return EO.getEndpointProperties(e,t);case"boolean":return e;default:throw new Ps(`Unexpected endpoint property type: ${typeof e}`)}},EO={getEndpointProperty:wO,getEndpointProperties:_O},eK=(e,t)=>{const n=Sp(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new Ps(`Endpoint URL must be a string, got ${typeof n}`)},tK=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:i,referenceRecord:c}=t0(n,t);if(!i)return;const l={...t,referenceRecord:{...t.referenceRecord,...c}},{url:f,properties:d,headers:h}=r;return t.logger?.debug?.(`${Au} Resolving endpoint from template: ${hi(r)}`),{...h!=null&&{headers:JG(h,l)},...d!=null&&{properties:_O(d,l)},url:eK(f,l)}},nK=(e,t)=>{const{conditions:n,error:r}=e,{result:i,referenceRecord:c}=t0(n,t);if(i)throw new Ps(Sp(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))},xO=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=tK(n,t);if(r)return r}else if(n.type==="error")nK(n,t);else if(n.type==="tree"){const r=RO.evaluateTreeRule(n,t);if(r)return r}else throw new Ps(`Unknown endpoint rule: ${n}`);throw new Ps("Rules evaluation failed")},sK=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:c}=t0(n,t);if(i)return RO.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...c}})},RO={evaluateRules:xO,evaluateTreeRule:sK},CO=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:i,rules:c}=e;t.logger?.debug?.(`${Au} Initial EndpointParams: ${hi(n)}`);const l=Object.entries(i).filter(([,h])=>h.default!=null).map(([h,y])=>[h,y.default]);if(l.length>0)for(const[h,y]of l)n[h]=n[h]??y;const f=Object.entries(i).filter(([,h])=>h.required).map(([h])=>h);for(const h of f)if(n[h]==null)throw new Ps(`Missing required parameter: '${h}'`);const d=xO(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${Au} Resolved endpoint: ${hi(d)}`),d},TO=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!TO(n))return!1;return!0}return!(!bp(e)||e.length<3||e.length>63||e!==e.toLowerCase()||gO(e))},XR=":",rK="/",oK=e=>{const t=e.split(XR);if(t.length<6)return null;const[n,r,i,c,l,...f]=t;if(n!=="arn"||r===""||i===""||f.join(XR)==="")return null;const d=f.map(h=>h.split(rK)).flat();return{partition:r,service:i,region:c,accountId:l,resourceId:d}},iK=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],aK={partitions:iK};let cK=aK;const lK=e=>{const{partitions:t}=cK;for(const r of t){const{regions:i,outputs:c}=r;for(const[l,f]of Object.entries(i))if(l===e)return{...c,...f}}for(const r of t){const{regionRegex:i,outputs:c}=r;if(new RegExp(i).test(e))return{...c}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},n0={isVirtualHostableS3Bucket:TO,parseArn:oK,partition:lK};Tu.aws=n0;function uK(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}const Iu=e=>{if(typeof e=="string")return Iu(new URL(e));const{hostname:t,pathname:n,port:r,protocol:i,search:c}=e;let l;return c&&(l=uK(c)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:l}};function fK(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function mr(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const WR=e=>ia.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,s0=e=>new Date(Date.now()+e),dK=(e,t)=>Math.abs(s0(t).getTime()-e)>=3e5,JR=(e,t)=>{const n=Date.parse(e);return dK(n,t)?n-Date.now():t},uu=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},AO=async e=>{const t=uu("context",e.context),n=uu("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],c=await uu("signer",n.signer)(r),l=e?.signingRegion,f=e?.signingRegionSet,d=e?.signingName;return{config:n,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}};class r0{async sign(t,n,r){if(!On.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await AO(r),{config:c,signer:l}=i;let{signingRegion:f,signingName:d}=i;const h=r.context;if(h?.authSchemes?.length??!1){const[g,v]=h.authSchemes;g?.name==="sigv4a"&&v?.name==="sigv4"&&(f=v?.signingRegion??f,d=v?.signingName??d)}return await l.sign(t,{signingDate:s0(c.systemClockOffset),signingRegion:f,signingService:d})}errorHandler(t){return n=>{const r=n.ServerTime??WR(n.$response);if(r){const i=uu("config",t.config),c=i.systemClockOffset;i.systemClockOffset=JR(r,i.systemClockOffset),i.systemClockOffset!==c&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=WR(t);if(r){const i=uu("config",n.config);i.systemClockOffset=JR(r,i.systemClockOffset)}}}class hK extends r0{async sign(t,n,r){if(!On.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:c,signingRegion:l,signingRegionSet:f,signingName:d}=await AO(r),y=(await i.sigv4aSigningRegionSet?.()??f??[l]).join(",");return await c.sign(t,{signingDate:s0(i.systemClockOffset),signingRegion:y,signingService:d})}}const pK=(e,t,n)=>{let r,i,c,l=!1;const f=async()=>{i||(i=e());try{r=await i,c=!0,l=!1}finally{i=void 0}return r};return async d=>((!c||d?.forceRefresh)&&(r=await f()),r)},mK=e=>(e.sigv4aSigningRegionSet=bc(e.sigv4aSigningRegionSet),e),gK="X-Amz-Algorithm",yK="X-Amz-Credential",IO="X-Amz-Date",vK="X-Amz-SignedHeaders",bK="X-Amz-Expires",OO="X-Amz-Signature",MO="X-Amz-Security-Token",DO="authorization",kO=IO.toLowerCase(),SK="date",_K=[DO,kO,SK],wK=OO.toLowerCase(),tb="x-amz-content-sha256",EK=MO.toLowerCase(),xK={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},RK=/^proxy-/,CK=/^sec-/,Ky="AWS4-HMAC-SHA256",TK="AWS4-HMAC-SHA256-PAYLOAD",AK="UNSIGNED-PAYLOAD",IK=50,PO="aws4_request",OK=3600*24*7,Hd={},Zy=[],Qy=(e,t,n)=>`${e}/${t}/${n}/${PO}`,MK=async(e,t,n,r,i)=>{const c=await eC(e,t.secretAccessKey,t.accessKeyId),l=`${n}:${r}:${i}:${fs(c)}:${t.sessionToken}`;if(l in Hd)return Hd[l];for(Zy.push(l);Zy.length>IK;)delete Hd[Zy.shift()];let f=`AWS4${t.secretAccessKey}`;for(const d of[n,r,i,PO])f=await eC(e,f,d);return Hd[l]=f},eC=(e,t,n)=>{const r=new e(t);return r.update(Cu(n)),r.digest()},tC=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const c=i.toLowerCase();(c in xK||t?.has(c)||RK.test(c)||CK.test(c))&&(!n||n&&!n.has(c))||(r[c]=e[i].trim().replace(/\s+/g," "))}return r},DK=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",Yy=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===tb)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||DK(t)){const r=new n;return r.update(Cu(t)),fs(await r.digest())}return AK};class kK{format(t){const n=[];for(const c of Object.keys(t)){const l=mo(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=mo(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const y=new Uint8Array(9);return y[0]=8,y.set(NK.fromNumber(t.value.valueOf()).bytes,1),y;case"uuid":if(!PK.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(nO(t.value.replace(/\-/g,"")),1),g}}}var nC;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(nC||(nC={}));const PK=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let NK=class NO{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&sC(n),new NO(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&sC(t),parseInt(fs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function sC(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const zK=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},LK=(e,t={})=>{const{headers:n,query:r={}}=On.clone(e);for(const i of Object.keys(n)){const c=i.toLowerCase();(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))&&(r[i]=n[i],delete n[i])}return{...e,headers:n,query:r}},rC=e=>{e=On.clone(e);for(const t of Object.keys(e.headers))_K.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},BK=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===wK)continue;const i=ea(r);t.push(i);const c=e[r];typeof c=="string"?n[i]=`${i}=${ea(c)}`:Array.isArray(c)&&(n[i]=c.slice(0).reduce((l,f)=>l.concat([`${i}=${ea(f)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},$K=e=>UK(e).toISOString().replace(/\.\d{3}Z$/,"Z"),UK=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class jK{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){this.service=i,this.sha256=c,this.uriEscapePath=l,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Ds(r),this.credentialProvider=Ds(n)}createCanonicalRequest(t,n,r){const i=Object.keys(n).sort();return`${t.method} +${this.getCanonicalPath(t)} +${BK(t)} +${i.map(c=>`${c}:${n[c]}`).join(` +`)} + +${i.join(";")} +${r}`}async createStringToSign(t,n,r,i){const c=new this.sha256;c.update(Cu(r));const l=await c.digest();return`${i} +${t} +${n} +${fs(l)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const c of t.split("/"))c?.length!==0&&c!=="."&&(c===".."?n.pop():n.push(c));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return ea(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=$K(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class nb extends jK{headerFormatter=new kK;constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l=!0}){super({applyChecksum:t,credentials:n,region:r,service:i,sha256:c,uriEscapePath:l})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:c,unhoistableHeaders:l,signableHeaders:f,hoistableHeaders:d,signingRegion:h,signingService:y}=n,g=await this.credentialProvider();this.validateResolvedCredentials(g);const v=h??await this.regionProvider(),{longDate:b,shortDate:_}=this.formatDate(r);if(i>OK)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const x=Qy(_,v,y??this.service),R=LK(rC(t),{unhoistableHeaders:l,hoistableHeaders:d});g.sessionToken&&(R.query[MO]=g.sessionToken),R.query[gK]=Ky,R.query[yK]=`${g.accessKeyId}/${x}`,R.query[IO]=b,R.query[bK]=i.toString(10);const C=tC(R,c,f);return R.query[vK]=this.getCanonicalHeaderList(C),R.query[OO]=await this.getSignature(b,x,this.getSigningKey(g,v,_,y),this.createCanonicalRequest(R,C,await Yy(t,this.sha256))),R}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:c,signingService:l}){const f=c??await this.regionProvider(),{shortDate:d,longDate:h}=this.formatDate(r),y=Qy(d,f,l??this.service),g=await Yy({headers:{},body:n},this.sha256),v=new this.sha256;v.update(t);const b=fs(await v.digest()),_=[TK,h,y,i,b,g].join(` +`);return this.signString(_,{signingDate:r,signingRegion:f,signingService:l})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:i,priorSignature:t.priorSignature}).then(l=>({message:t.message,signature:l}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=r??await this.regionProvider(),{shortDate:f}=this.formatDate(n),d=new this.sha256(await this.getSigningKey(c,l,f,i));return d.update(Cu(t)),fs(await d.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:c,signingService:l}={}){const f=await this.credentialProvider();this.validateResolvedCredentials(f);const d=c??await this.regionProvider(),h=rC(t),{longDate:y,shortDate:g}=this.formatDate(n),v=Qy(g,d,l??this.service);h.headers[kO]=y,f.sessionToken&&(h.headers[EK]=f.sessionToken);const b=await Yy(h,this.sha256);!zK(tb,h.headers)&&this.applyChecksum&&(h.headers[tb]=b);const _=tC(h,i,r),x=await this.getSignature(y,v,this.getSigningKey(f,d,g,l),this.createCanonicalRequest(h,_,b));return h.headers[DO]=`${Ky} Credential=${f.accessKeyId}/${v}, SignedHeaders=${this.getCanonicalHeaderList(_)}, Signature=${x}`,h}async getSignature(t,n,r,i){const c=await this.createStringToSign(t,n,i,Ky),l=new this.sha256(await r);return l.update(Cu(c)),fs(await l.digest())}getSigningKey(t,n,r,i){return MK(this.sha256,t,r,n,i||this.service)}}const zO=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(h){h&&h!==t&&h!==r&&(n=!0),t=h;const y=HK(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),g=FK(e,y);if(n&&!g.attributed){const v=typeof t=="object"&&t!==null;r=async b=>{const x=await g(b);return v&&(!x.$source||Object.keys(x.$source).length===0)?fK(x,"CREDENTIALS_CODE","e"):x},r.memoized=g.memoized,r.configBound=g.configBound,r.attributed=!0}else r=g},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:i=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:l}=e;let f;return e.signer?f=bc(e.signer):e.regionInfoProvider?f=()=>bc(e.region)().then(async h=>[await e.regionInfoProvider(h,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},h]).then(([h,y])=>{const{signingRegion:g,signingService:v}=h;e.signingRegion=e.signingRegion||g||y,e.signingName=e.signingName||v||e.serviceId;const b={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},_=e.signerConstructor||nb;return new _(b)}):f=async h=>{h=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await bc(e.region)(),properties:{}},h);const y=h.signingRegion,g=h.signingName;e.signingRegion=e.signingRegion||y,e.signingName=e.signingName||g||e.serviceId;const v={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:i},b=e.signerConstructor||nb;return new b(v)},Object.assign(e,{systemClockOffset:c,signingEscapePath:i,signer:f})};function HK(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=LG(t,zG,hO):n?r=bc(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function FK(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const oC=typeof TextEncoder=="function"?new TextEncoder:null,LO=e=>{if(typeof e=="string"){if(oC)return oC.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},qi=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},Qo=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Nh=()=>{let e=[],t=[],n=!1;const r=new Set,i=g=>g.sort((v,b)=>iC[b.step]-iC[v.step]||aC[b.priority||"normal"]-aC[v.priority||"normal"]),c=g=>{let v=!1;const b=_=>{const x=qi(_.name,_.aliases);if(x.includes(g)){v=!0;for(const R of x)r.delete(R);return!1}return!0};return e=e.filter(b),t=t.filter(b),v},l=g=>{let v=!1;const b=_=>{if(_.middleware===g){v=!0;for(const x of qi(_.name,_.aliases))r.delete(x);return!1}return!0};return e=e.filter(b),t=t.filter(b),v},f=g=>(e.forEach(v=>{g.add(v.middleware,{...v})}),t.forEach(v=>{g.addRelativeTo(v.middleware,{...v})}),g.identifyOnResolve?.(y.identifyOnResolve()),g),d=g=>{const v=[];return g.before.forEach(b=>{b.before.length===0&&b.after.length===0?v.push(b):v.push(...d(b))}),v.push(g),g.after.reverse().forEach(b=>{b.before.length===0&&b.after.length===0?v.push(b):v.push(...d(b))}),v},h=(g=!1)=>{const v=[],b=[],_={};return e.forEach(R=>{const C={...R,before:[],after:[]};for(const A of qi(C.name,C.aliases))_[A]=C;v.push(C)}),t.forEach(R=>{const C={...R,before:[],after:[]};for(const A of qi(C.name,C.aliases))_[A]=C;b.push(C)}),b.forEach(R=>{if(R.toMiddleware){const C=_[R.toMiddleware];if(C===void 0){if(g)return;throw new Error(`${R.toMiddleware} is not found when adding ${Qo(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}R.relation==="after"&&C.after.push(R),R.relation==="before"&&C.before.push(R)}}),i(v).map(d).reduce((R,C)=>(R.push(...C),R),[])},y={add:(g,v={})=>{const{name:b,override:_,aliases:x}=v,R={step:"initialize",priority:"normal",middleware:g,...v},C=qi(b,x);if(C.length>0){if(C.some(A=>r.has(A))){if(!_)throw new Error(`Duplicate middleware name '${Qo(b,x)}'`);for(const A of C){const O=e.findIndex(N=>N.name===A||N.aliases?.some(U=>U===A));if(O===-1)continue;const D=e[O];if(D.step!==R.step||R.priority!==D.priority)throw new Error(`"${Qo(D.name,D.aliases)}" middleware with ${D.priority} priority in ${D.step} step cannot be overridden by "${Qo(b,x)}" middleware with ${R.priority} priority in ${R.step} step.`);e.splice(O,1)}}for(const A of C)r.add(A)}e.push(R)},addRelativeTo:(g,v)=>{const{name:b,override:_,aliases:x}=v,R={middleware:g,...v},C=qi(b,x);if(C.length>0){if(C.some(A=>r.has(A))){if(!_)throw new Error(`Duplicate middleware name '${Qo(b,x)}'`);for(const A of C){const O=t.findIndex(N=>N.name===A||N.aliases?.some(U=>U===A));if(O===-1)continue;const D=t[O];if(D.toMiddleware!==R.toMiddleware||D.relation!==R.relation)throw new Error(`"${Qo(D.name,D.aliases)}" middleware ${D.relation} "${D.toMiddleware}" middleware cannot be overridden by "${Qo(b,x)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);t.splice(O,1)}}for(const A of C)r.add(A)}t.push(R)},clone:()=>f(Nh()),use:g=>{g.applyToStack(y)},remove:g=>typeof g=="string"?c(g):l(g),removeByTag:g=>{let v=!1;const b=_=>{const{tags:x,name:R,aliases:C}=_;if(x&&x.includes(g)){const A=qi(R,C);for(const O of A)r.delete(O);return v=!0,!1}return!0};return e=e.filter(b),t=t.filter(b),v},concat:g=>{const v=f(Nh());return v.use(g),v.identifyOnResolve(n||v.identifyOnResolve()||(g.identifyOnResolve?.()??!1)),v},applyToStack:f,identify:()=>h(!0).map(g=>{const v=g.step??g.relation+" "+g.toMiddleware;return Qo(g.name,g.aliases)+" - "+v}),identifyOnResolve(g){return typeof g=="boolean"&&(n=g),n},resolve:(g,v)=>{for(const b of h().map(_=>_.middleware).reverse())g=b(g,v);return n&&console.log(y.identify()),g}};return y},iC={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},aC={high:3,normal:2,low:1};class BO{config;middlewareStack=Nh();initConfig;handlers;constructor(t){this.config=t;const{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){const i=typeof n!="function"?n:void 0,c=typeof n=="function"?n:r,l=i===void 0&&this.config.cacheMiddleware===!0;let f;if(l){this.handlers||(this.handlers=new WeakMap);const d=this.handlers;d.has(t.constructor)?f=d.get(t.constructor):(f=t.resolveMiddleware(this.middlewareStack,this.config,i),d.set(t.constructor,f))}else delete this.handlers,f=t.resolveMiddleware(this.middlewareStack,this.config,i);if(c)f(t).then(d=>c(null,d.output),d=>c(d)).catch(()=>{});else return f(t).then(d=>d.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}const Xy="***SensitiveInformation***";function sb(e,t){if(t==null)return t;const n=wt.of(e);if(n.getMergedTraits().sensitive)return Xy;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return Xy}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return Xy}else if(n.isStructSchema()&&typeof t=="object"){const r=t,i={};for(const[c,l]of n.structIterator())r[c]!=null&&(i[c]=sb(l,r[c]));return i}return t}class Pr{middlewareStack=Nh();schema;static classBuilder(){return new qK}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,smithyContext:h,additionalContext:y,CommandCtor:g}){for(const R of i.bind(this)(g,t,n,r))this.middlewareStack.use(R);const v=t.concat(this.middlewareStack),{logger:b}=n,_={logger:b,clientName:c,commandName:l,inputFilterSensitiveLog:f,outputFilterSensitiveLog:d,[Wv]:{commandInstance:this,...h},...y},{requestHandler:x}=n;return v.resolve(R=>x.handle(R.request,r||{}),_)}}class qK{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends Pr{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,c){const l=t._operationSchema,f=l?.[4]??l?.input,d=l?.[5]??l?.output;return this.resolveMiddlewareWithContext(r,i,c,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(l?sb.bind(null,f):h=>h),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(l?sb.bind(null,d):h=>h),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class Qi extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return Qi.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===Qi?Qi.isInstance(t):Qi.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const cC=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},$O=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},VK=e=>{const t=[];for(const n in Mh){const r=Mh[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},GK=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},KK=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),ZK=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},UO=e=>Object.assign(VK(e),KK(e)),jO=e=>Object.assign(GK(e),ZK(e)),HO=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=HO(e[n]));return e};class o0{trace(){}debug(){}info(){}warn(){}error(){}}class FO{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,n){const r=n.getMemberSchemas(),i=Object.values(r).find(c=>!!c.getMergedTraits().httpPayload);if(i){const c=i.getMergedTraits().mediaType;return c||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(l=>{const{httpQuery:f,httpQueryParams:d,httpHeader:h,httpLabel:y,httpPrefixHeaders:g}=l.getMergedTraits();return!f&&!d&&!h&&!y&&g===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,c,l){let f=n,d=t;t.includes("#")&&([f,d]=t.split("#"));const h={$metadata:c,$fault:r.statusCode<500?"client":"server"},y=Mt.for(f);try{return{errorSchema:l?.(y,d)??y.getSchema(t),errorMetadata:h}}catch{i.message=i.message??i.Message??"UnknownError";const v=Mt.for("smithy.ts.sdk.synthetic."+f),b=v.getBaseException();if(b){const _=v.getErrorCtor(b)??Error;throw this.decorateServiceException(Object.assign(new _({name:d}),h),i)}throw this.decorateServiceException(Object.assign(new Error(d),h),i)}}decorateServiceException(t,n={}){if(this.queryCompat){const r=t.Message??n.Message,i=cC(t,n);r&&(i.message=r),i.Error={...i.Error,Type:i.Error.Type,Code:i.Error.Code,Message:i.Error.message??i.Error.Message??r};const c=i.$metadata.requestId;return c&&(i.RequestId=c),i}return cC(t,n)}setQueryCompatError(t,n){const r=n.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[i,c]=r.split(";"),l=Object.entries(t),f={Code:i,Type:c};Object.assign(t,f);for(const[d,h]of l)f[d==="message"?"Message":d]=h;delete f.__type,t.Error=f}}queryCompatOutput(t,n){t.Error&&(n.Error=t.Error),t.Type&&(n.Type=t.Type),t.Code&&(n.Code=t.Code)}findQueryCompatibleError(t,n){try{return t.getSchema(n)}catch{return t.find(i=>wt.of(i).getMergedTraits().awsQueryError?.[0]===n)}}}class _p{serdeContext;setSerdeContext(t){this.serdeContext=t}}function*qO(e,t){if(e.isUnitSchema())return;const n=e.getSchema();for(let r=0;rr!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}}function YK(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function XK(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class rb{value;constructor(t){this.value=t}toString(){return XK(""+this.value)}}class es{name;children;attributes={};static of(t,n,r){const i=new es(t);return n!==void 0&&i.addChildNode(new rb(n)),r!==void 0&&i.withName(r),i}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const i=es.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(l=>{l.withName(r),this.c(l)})}lc(t,n,r,i){if(t[n]!=null){const c=i(),l=new es(r);c.map(f=>{l.c(f)}),this.c(l)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const i of Object.keys(r)){const c=r[i];c!=null&&(n+=` ${i}="${YK(""+c)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}}let Wy;function WK(e){Wy||(Wy=new DOMParser);const t=Wy.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const n=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const i=r;if(i.attributes.length===0&&i.childNodes.length===0)return"";const c={},l=Array.from(i.attributes);for(const d of l)c[`${d.name}`]=d.value;const f=Array.from(i.childNodes);for(const d of f){const h=n(d);if(h!=null){const y=d.nodeName;if(f.length===1&&l.length===0&&y==="#text")return h;c[y]?Array.isArray(c[y])?c[y].push(h):c[y]=[c[y],h]:c[y]=h}else if(f.length===1&&l.length===0)return i.textContent}return c}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}class VO extends _p{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new fO(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,n,r){const i=wt.of(t),c=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(c).find(h=>!!h.getMemberTraits().eventPayload)){const h={},y=Object.keys(c)[0];return c[y].isBlobSchema()?h[y]=n:h[y]=this.read(c[y],n),h}const f=(this.serdeContext?.utf8Encoder??ha)(n),d=this.parseXml(f);return this.readSchema(t,r?d[r]:d)}readSchema(t,n){const r=wt.of(t);if(r.isUnitSchema())return;const i=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(n))return this.readSchema(r,[n]);if(n==null)return n;if(typeof n=="object"){const c=!!i.sparse,l=!!i.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),h=[],y=d.getMergedTraits().xmlName??"member",g=l?n:(n[0]??n)[y],v=Array.isArray(g)?g:[g];for(const b of v)(b!=null||c)&&h.push(this.readSchema(d,b));return h}const f={};if(r.isMapSchema()){const d=r.getKeySchema(),h=r.getValueSchema();let y;l?y=Array.isArray(n)?n:[n]:y=Array.isArray(n.entry)?n.entry:[n.entry];const g=d.getMergedTraits().xmlName??"key",v=h.getMergedTraits().xmlName??"value";for(const b of y){const _=b[g],x=b[v];(x!=null||c)&&(f[_]=this.readSchema(h,x))}return f}if(r.isStructSchema()){const d=r.isUnionSchema();let h;d&&(h=new QK(n,f));for(const[y,g]of r.structIterator()){const v=g.getMergedTraits(),b=v.httpPayload?v.xmlName??g.getName():g.getMemberTraits().xmlName??y;d&&h.mark(b),n[b]!=null&&(f[y]=this.readSchema(g,n[b]))}return d&&h.writeUnknown(),f}if(r.isDocumentSchema())return n;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,n)}parseXml(t){if(t.length){let n;try{n=WK(t)}catch(l){throw l&&typeof l=="object"&&Object.defineProperty(l,"$responseBodyText",{value:t}),l}const r="#text",i=Object.keys(n)[0],c=n[i];return c[r]&&(c[i]=c[r],delete c[r]),HO(c)}return{}}}class JK extends _p{settings;buffer;constructor(t){super(),this.settings=t}write(t,n,r=""){this.buffer===void 0&&(this.buffer="");const i=wt.of(t);if(r&&!r.endsWith(".")&&(r+="."),i.isBlobSchema())(typeof n=="string"||n instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??di)(n)));else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema())n!=null?(this.writeKey(r),this.writeValue(String(n))):i.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(gp()));else if(i.isBigIntegerSchema())n!=null&&(this.writeKey(r),this.writeValue(String(n)));else if(i.isBigDecimalSchema())n!=null&&(this.writeKey(r),this.writeValue(n instanceof $u?n.string:String(n)));else if(i.isTimestampSchema()){if(n instanceof Date)switch(this.writeKey(r),vp(i,this.settings)){case 5:this.writeValue(n.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(kh(n));break;case 7:this.writeValue(String(n.getTime()/1e3));break}}else if(i.isDocumentSchema())Array.isArray(n)?this.write(79,n,r):n instanceof Date?this.write(4,n,r):n instanceof Uint8Array?this.write(21,n,r):n&&typeof n=="object"?this.write(143,n,r):(this.writeKey(r),this.writeValue(String(n)));else if(i.isListSchema()){if(Array.isArray(n))if(n.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const c=i.getValueSchema(),l=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let f=1;for(const d of n){if(d==null)continue;const h=this.getKey("member",c.getMergedTraits().xmlName),y=l?`${r}${f}`:`${r}${h}.${f}`;this.write(c,d,y),++f}}}else if(i.isMapSchema()){if(n&&typeof n=="object"){const c=i.getKeySchema(),l=i.getValueSchema(),f=i.getMergedTraits().xmlFlattened;let d=1;for(const[h,y]of Object.entries(n)){if(y==null)continue;const g=this.getKey("key",c.getMergedTraits().xmlName),v=f?`${r}${d}.${g}`:`${r}entry.${d}.${g}`,b=this.getKey("value",l.getMergedTraits().xmlName),_=f?`${r}${d}.${b}`:`${r}entry.${d}.${b}`;this.write(c,h,v),this.write(l,y,_),++d}}}else if(i.isStructSchema()){if(n&&typeof n=="object"){let c=!1;for(const[l,f]of qO(i,n)){if(n[l]==null&&!f.isIdempotencyToken())continue;const d=this.getKey(l,f.getMergedTraits().xmlName),h=`${r}${d}`;this.write(f,n[l],h),c=!0}if(!c&&i.isUnionSchema()){const{$unknown:l}=n;if(Array.isArray(l)){const[f,d]=l,h=`${r}${f}`;this.write(15,d,h)}}}}else if(!i.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,n){const r=n??t;return this.settings.capitalizeKeys?r[0].toUpperCase()+r.slice(1):r}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${Dh(t)}=`}writeValue(t){this.buffer+=Dh(t)}}class eZ extends IG{options;serializer;deserializer;mixin=new FO;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new JK(n),this.deserializer=new VO(n)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r);i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":"application/x-www-form-urlencoded"}),(th(t.input)==="unit"||!i.body)&&(i.body="");const c=t.name.split("#")[1]??t.name;return i.body=`Action=${c}&Version=${this.options.version}`+i.body,i.body.endsWith("&")&&(i.body=i.body.slice(-1)),i}async deserializeResponse(t,n,r){const i=this.deserializer,c=wt.of(t.output),l={};if(r.statusCode>=300){const g=await ri(r.body,n);g.byteLength>0&&Object.assign(l,await i.read(15,g)),await this.handleError(t,n,r,l,this.deserializeMetadata(r))}for(const g in r.headers){const v=r.headers[g];delete r.headers[g],r.headers[g.toLowerCase()]=v}const f=t.name.split("#")[1]??t.name,d=c.isStructSchema()&&this.useNestedResult()?f+"Result":void 0,h=await ri(r.body,n);return h.byteLength>0&&Object.assign(l,await i.read(c,h,d)),{$metadata:this.deserializeMetadata(r),...l}}useNestedResult(){return!0}async handleError(t,n,r,i,c){const l=this.loadQueryErrorCode(r,i)??"Unknown",f=this.loadQueryError(i),d=this.loadQueryErrorMessage(i);f.message=d,f.Error={Type:f.Type,Code:f.Code,Message:d};const{errorSchema:h,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,f,c,this.mixin.findQueryCompatibleError),g=wt.of(h),v=Mt.for(h[1]).getErrorCtor(h)??Error,b=new v(d),_={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[x,R]of g.structIterator()){const C=R.getMergedTraits().xmlName??x,A=f[C]??i[C];_[x]=this.deserializer.readSchema(R,A)}throw this.mixin.decorateServiceException(Object.assign(b,y,{$fault:g.getMergedTraits().error,message:d},_),i)}loadQueryErrorCode(t,n){const r=(n.Errors?.[0]?.Error??n.Errors?.Error??n.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const n=this.loadQueryError(t);return n?.message??n?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class tZ extends eZ{options;constructor(t){super(t),this.options=t;const n={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1};Object.assign(this.serializer.settings,n)}useNestedResult(){return!1}}const nZ=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class sZ extends _p{settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,n){const r=wt.of(t);if(r.isStringSchema()&&typeof n=="string")this.stringBuffer=n;else if(r.isBlobSchema())this.byteBuffer="byteLength"in n?n:(this.serdeContext?.base64Decoder??aa)(n);else{this.buffer=this.writeStruct(r,n,void 0);const i=r.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(r.getName())}}flush(){if(this.byteBuffer!==void 0){const n=this.byteBuffer;return delete this.byteBuffer,n}if(this.stringBuffer!==void 0){const n=this.stringBuffer;return delete this.stringBuffer,n}const t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,n,r){const i=t.getMergedTraits(),c=t.isMemberSchema()&&!i.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():i.xmlName??t.getName();if(!c||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);const l=es.of(c),[f,d]=this.getXmlnsAttribute(t,r);for(const[y,g]of qO(t,n)){const v=n[y];if(v!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){l.addAttribute(g.getMergedTraits().xmlName??y,this.writeSimple(g,v));continue}if(g.isListSchema())this.writeList(g,v,l,d);else if(g.isMapSchema())this.writeMap(g,v,l,d);else if(g.isStructSchema())l.addChildNode(this.writeStruct(g,v,d));else{const b=es.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,v,b,d),l.addChildNode(b)}}}const{$unknown:h}=n;if(h&&t.isUnionSchema()&&Array.isArray(h)&&Object.keys(n).length===1){const[y,g]=h,v=es.of(y);if(typeof g!="string")if(n instanceof es||n instanceof rb)l.addChildNode(n);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,v,d),l.addChildNode(v)}return d&&l.addAttribute(f,d),l}writeList(t,n,r,i){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);const c=t.getMergedTraits(),l=t.getValueSchema(),f=l.getMergedTraits(),d=!!f.sparse,h=!!c.xmlFlattened,[y,g]=this.getXmlnsAttribute(t,i),v=(b,_)=>{if(l.isListSchema())this.writeList(l,Array.isArray(_)?_:[_],b,g);else if(l.isMapSchema())this.writeMap(l,_,b,g);else if(l.isStructSchema()){const x=this.writeStruct(l,_,g);b.addChildNode(x.withName(h?c.xmlName??t.getMemberName():f.xmlName??"member"))}else{const x=es.of(h?c.xmlName??t.getMemberName():f.xmlName??"member");this.writeSimpleInto(l,_,x,g),b.addChildNode(x)}};if(h)for(const b of n)(d||b!=null)&&v(r,b);else{const b=es.of(c.xmlName??t.getMemberName());g&&b.addAttribute(y,g);for(const _ of n)(d||_!=null)&&v(b,_);r.addChildNode(b)}}writeMap(t,n,r,i,c=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);const l=t.getMergedTraits(),f=t.getKeySchema(),h=f.getMergedTraits().xmlName??"key",y=t.getValueSchema(),g=y.getMergedTraits(),v=g.xmlName??"value",b=!!g.sparse,_=!!l.xmlFlattened,[x,R]=this.getXmlnsAttribute(t,i),C=(A,O,D)=>{const N=es.of(h,O),[U,B]=this.getXmlnsAttribute(f,R);B&&N.addAttribute(U,B),A.addChildNode(N);let k=es.of(v);y.isListSchema()?this.writeList(y,D,k,R):y.isMapSchema()?this.writeMap(y,D,k,R,!0):y.isStructSchema()?k=this.writeStruct(y,D,R):this.writeSimpleInto(y,D,k,R),A.addChildNode(k)};if(_){for(const[A,O]of Object.entries(n))if(b||O!=null){const D=es.of(l.xmlName??t.getMemberName());C(D,A,O),r.addChildNode(D)}}else{let A;c||(A=es.of(l.xmlName??t.getMemberName()),R&&A.addAttribute(x,R),r.addChildNode(A));for(const[O,D]of Object.entries(n))if(b||D!=null){const N=es.of("entry");C(N,O,D),(c?r:A).addChildNode(N)}}}writeSimple(t,n){if(n===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const r=wt.of(t);let i=null;if(n&&typeof n=="object")if(r.isBlobSchema())i=(this.serdeContext?.base64Encoder??di)(n);else if(r.isTimestampSchema()&&n instanceof Date)switch(vp(r,this.settings)){case 5:i=n.toISOString().replace(".000Z","Z");break;case 6:i=kh(n);break;case 7:i=String(n.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",n),i=kh(n);break}else{if(r.isBigDecimalSchema()&&n)return n instanceof $u?n.string:String(n);throw r.isMapSchema()||r.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${r.getName(!0)}`)}if((r.isBooleanSchema()||r.isNumericSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema())&&(i=String(n)),r.isStringSchema()&&(n===void 0&&r.isIdempotencyToken()?i=gp():i=String(n)),i===null)throw new Error(`Unhandled schema-value pair ${r.getName(!0)}=${n}`);return i}writeSimpleInto(t,n,r,i){const c=this.writeSimple(t,n),l=wt.of(t),f=new rb(c),[d,h]=this.getXmlnsAttribute(l,i);h&&r.addAttribute(d,h),r.addChildNode(f)}getXmlnsAttribute(t,n){const r=t.getMergedTraits(),[i,c]=r.xmlNamespace??[];return c&&c!==n?[i?`xmlns:${i}`:"xmlns",c]:[void 0,void 0]}}class rZ extends _p{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new sZ(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new VO(this.settings);return t.setSerdeContext(this.serdeContext),t}}class oZ extends AG{codec;serializer;deserializer;mixin=new FO;constructor(t){super(t);const n={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new rZ(n),this.serializer=new DG(this.codec.createSerializer(),n),this.deserializer=new OG(this.codec.createDeserializer(),n)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,n,r){const i=await super.serializeRequest(t,n,r),c=wt.of(t.input);if(!i.headers["content-type"]){const l=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);l&&(i.headers["content-type"]=l)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("'+i.body),i}async deserializeResponse(t,n,r){return super.deserializeResponse(t,n,r)}async handleError(t,n,r,i,c){const l=nZ(r,i)??"Unknown",{errorSchema:f,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,i,c),h=wt.of(f),y=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",g=Mt.for(f[1]).getErrorCtor(f)??Error,v=new g(y);await this.deserializeHttpMessage(f,n,r,i);const b={};for(const[_,x]of h.structIterator()){const R=x.getMergedTraits().xmlName??_,C=i.Error?.[R]??i[R];b[_]=this.codec.createDeserializer().readSchema(x,C)}throw this.mixin.decorateServiceException(Object.assign(v,d,{$fault:h.getMergedTraits().error,message:y},b),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(const[,n]of t.structIterator())if(n.getMergedTraits().httpPayload)return!(n.isStructSchema()||n.isMapSchema()||n.isListSchema());return!1}}const iZ=/\d{12}\.ddb/;async function aZ(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&mr(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const c=await t.retryStrategy();typeof c.acquireInitialRetryToken=="function"?c.constructor?.name?.includes("Adaptive")?mr(e,"RETRY_MODE_ADAPTIVE","F"):mr(e,"RETRY_MODE_STANDARD","E"):mr(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const c=e.endpointV2;switch(String(c?.url?.hostname).match(iZ)&&mr(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":mr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":mr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":mr(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const c=i;c.accountId&&mr(e,"RESOLVED_ACCOUNT_ID","T");for(const[l,f]of Object.entries(c.$source??{}))mr(e,l,f)}}const lC="user-agent",Jy="x-amz-user-agent",uC=" ",ev="/",cZ=/[^!$%&'*+\-.^_`|~\w]/g,lZ=/[^!$%&'*+\-.^_`|~\w#]/g,fC="-",uZ=1024;function fZ(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=uZ){t.length?t+=","+r:t+=r;continue}break}return t}const dZ=e=>(t,n)=>async r=>{const{request:i}=r;if(!On.isInstance(i))return t(r);const{headers:c}=i,l=n?.userAgent?.map(Fd)||[],f=(await e.defaultUserAgentProvider()).map(Fd);await aZ(n,e,r);const d=n;f.push(`m/${fZ(Object.assign({},n.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const h=e?.customUserAgent?.map(Fd)||[],y=await e.userAgentAppId();y&&f.push(Fd(["app",`${y}`]));const g=[].concat([...f,...l,...h]).join(uC),v=[...f.filter(b=>b.startsWith("aws-sdk-")),...h].join(uC);return e.runtime!=="browser"?(v&&(c[Jy]=c[Jy]?`${c[lC]} ${v}`:v),c[lC]=g):c[Jy]=g,t({...r,request:i})},Fd=e=>{const t=e[0].split(ev).map(l=>l.replace(cZ,fC)).join(ev),n=e[1]?.replace(lZ,fC),r=t.indexOf(ev),i=t.substring(0,r);let c=t.substring(r+1);return i==="api"&&(c=c.toLowerCase()),[i,c,n].filter(l=>l&&l.length>0).reduce((l,f,d)=>{switch(d){case 0:return f;case 1:return`${l}/${f}`;default:return`${l}#${f}`}},"")},hZ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},GO=e=>({applyToStack:t=>{t.add(dZ(e),hZ)}}),KO=!1,ZO=!1,dC=new Set,pZ=(e,t=bp)=>{if(!dC.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else dC.add(e)},QO=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),mZ=e=>QO(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,YO=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const r=typeof t=="function"?await t():t,i=mZ(r);return pZ(i),i},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return QO(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},hC="content-length";function gZ(e){return t=>async n=>{const r=n.request;if(On.isInstance(r)){const{body:i,headers:c}=r;if(i&&Object.keys(c).map(l=>l.toLowerCase()).indexOf(hC)===-1)try{const l=e(i);r.headers={...r.headers,[hC]:String(l)}}catch{}}return t({...n,request:r})}}const yZ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},XO=e=>({applyToStack:t=>{t.add(gZ(e.bodyLengthChecker),yZ)}}),vZ=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),EZ(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!wZ(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},bZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,SZ=/(\d+\.){3}\d+/,_Z=/\.\./,wZ=e=>bZ.test(e)&&!SZ.test(e)&&!_Z.test(e),EZ=e=>{const[t,n,r,,,i]=e.split(":"),c=t==="arn"&&e.split(":").length>=6,l=!!(c&&n&&r&&i);if(c&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return l},xZ=(e,t,n,r=!1)=>{const i=async()=>{let c;return r?c=n.clientContextParams?.[e]??n[e]??n[t]:c=n[e]??n[t],typeof c=="function"?c():c};return e==="credentialScope"||t==="CredentialScope"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.credentialScope??c?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const c=typeof n.credentials=="function"?await n.credentials():n.credentials;return c?.accountId??c?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const c=await i();if(c&&typeof c=="object"){if("url"in c)return c.url.href;if("hostname"in c){const{protocol:l,hostname:f,port:d,path:h}=c;return`${l}//${f}${d?":"+d:""}${h}`}}return c}:i},WO=async e=>{},JO=e=>typeof e=="object"?"url"in e?Iu(e.url):e:Iu(e),RZ=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let l;n.serviceConfiguredEndpoint?l=await n.serviceConfiguredEndpoint():l=await WO(n.serviceId),l&&(n.endpoint=()=>Promise.resolve(JO(l)),n.isCustomEndpoint=!0)}const i=await eM(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},eM=async(e,t,n)=>{const r={},i=t?.getEndpointParameterInstructions?.()||{};for(const[c,l]of Object.entries(i))switch(l.type){case"staticContextParams":r[c]=l.value;break;case"contextParams":r[c]=e[l.name];break;case"clientContextParams":case"builtInParams":r[c]=await xZ(l.name,c,n,l.type!=="builtInParams")();break;case"operationContextParams":r[c]=l.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(l))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await vZ(r),r},CZ=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&kG(r,"ENDPOINT_OVERRIDE","N");const c=await RZ(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c,r.authSchemes=c.properties?.authSchemes;const l=r.authSchemes?.[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;const d=yo(r)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return n({...i})},TZ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:OV.name},vo=(e,t)=>({applyToStack:n=>{n.addRelativeTo(CZ({config:e,instructions:t}),TZ)}}),tM=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,c=n!=null?async()=>JO(await Ds(n)()):void 0,f=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Ds(r??!1),useFipsEndpoint:Ds(i??!1)});let d;return f.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=WO(e.serviceId)),d),f};var Ic;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Ic||(Ic={}));const Ou=3,nM=Ic.STANDARD,AZ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],IZ=["TimeoutError","RequestTimeout","RequestTimeoutException"],OZ=[500,502,503,504],MZ=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],DZ=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],kZ=e=>e?.$retryable!==void 0,PZ=e=>e.$metadata?.clockSkewCorrected,NZ=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},sM=e=>e.$metadata?.httpStatusCode===429||AZ.includes(e.name)||e.$retryable?.throttling==!0,i0=(e,t=0)=>kZ(e)||PZ(e)||IZ.includes(e.name)||MZ.includes(e?.code||"")||DZ.includes(e?.code||"")||OZ.includes(e.$metadata?.httpStatusCode||0)||NZ(e)||e.cause!==void 0&&t<=10&&i0(e.cause,t+1),zZ=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!i0(e)}return!1};class a0{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>a0.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),sM(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}const ob=100,rM=20*1e3,LZ=500,pC=500,BZ=5,$Z=10,UZ=1,jZ="amz-sdk-invocation-id",HZ="amz-sdk-request",FZ=()=>{let e=ob;return{computeNextBackoffDelay:r=>Math.floor(Math.min(rM,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},mC=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(rM,e),getRetryCost:()=>n});class oM{maxAttempts;mode=Ic.STANDARD;capacity=pC;retryBackoffStrategy=FZ();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return mC({retryDelay:ob,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const i=n.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?LZ:ob);const c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,c):c,f=this.getCapacityCost(i);return this.capacity-=f,mC({retryDelay:l,retryCount:t.getRetryCount()+1,retryCost:f})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(pC,this.capacity+(t.getRetryCost()??UZ))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Ou}`),Ou}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?$Z:BZ}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class qZ{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Ic.ADAPTIVE;constructor(t,n){this.maxAttemptsProvider=t;const{rateLimiter:r}=n??{};this.rateLimiter=r??new a0,this.standardRetryStrategy=new oM(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const VZ=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),iM=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,i=Ds(r??Ou);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await Ds(n)()===Ic.ADAPTIVE?new qZ(i):new oM(i))})},GZ=e=>e?.body instanceof ReadableStream,KZ=e=>(t,n)=>async r=>{let i=await e.retryStrategy();const c=await e.maxAttempts();if(ZZ(i)){i=i;let l=await i.acquireInitialRetryToken(n.partition_id),f=new Error,d=0,h=0;const{request:y}=r,g=On.isInstance(y);for(g&&(y.headers[jZ]=gp());;)try{g&&(y.headers[HZ]=`attempt=${d+1}; max=${c}`);const{response:v,output:b}=await t(r);return i.recordSuccess(l),b.$metadata.attempts=d+1,b.$metadata.totalRetryDelay=h,{response:v,output:b}}catch(v){const b=QZ(v);if(f=VZ(v),g&&GZ(y))throw(n.logger instanceof o0?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{l=await i.refreshRetryTokenForRetry(l,b)}catch{throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=d+1,f.$metadata.totalRetryDelay=h,f}d=l.getRetryCount();const _=l.getRetryDelay();h+=_,await new Promise(x=>setTimeout(x,_))}}else return i=i,i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},ZZ=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",QZ=e=>{const t={error:e,errorType:YZ(e)},n=WZ(e.$response);return n&&(t.retryAfterHint=n),t},YZ=e=>sM(e)?"THROTTLING":i0(e)?"TRANSIENT":zZ(e)?"SERVER_ERROR":"CLIENT_ERROR",XZ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},aM=e=>({applyToStack:t=>{t.add(KZ(e),XZ)}}),WZ=e=>{if(!ia.isInstance(e))return;const t=Object.keys(e.headers).find(c=>c.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)},JZ=async(e,t,n)=>({operation:yo(t).operation,region:await Ds(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function eQ(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ec2",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const tQ=e=>{const t=[];switch(e.operation){default:t.push(eQ(e))}return t},nQ=e=>{const t=zO(e);return Object.assign(t,{authSchemePreference:Ds(e.authSchemePreference??[])})},sQ=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"ec2"}),zc={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},rQ="3.975.0",oQ={version:rQ},cM=e=>new TextEncoder().encode(e);var iQ=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:cM;function ca(e){return e instanceof Uint8Array?e:typeof e=="string"?iQ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function zh(e){return typeof e=="string"?e.length===0:e.byteLength===0}function aQ(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function cQ(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n0&&c[c.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var er=64,hQ=32,pQ=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),mQ=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],gQ=Math.pow(2,53)-1,nh=(function(){function e(){this.state=Int32Array.from(mQ),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>gQ)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===er&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%er>=er-8){for(var i=this.bufferLength;i>>24&255,c[i*4+1]=this.state[i]>>>16&255,c[i*4+2]=this.state[i]>>>8&255,c[i*4+3]=this.state[i]>>>0&255;return c},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],c=r[1],l=r[2],f=r[3],d=r[4],h=r[5],y=r[6],g=r[7],v=0;v>>17|b<<15)^(b>>>19|b<<13)^b>>>10;b=this.temp[v-15];var x=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;this.temp[v]=(_+this.temp[v-7]|0)+(x+this.temp[v-16]|0)}var R=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&y)|0)+(g+(pQ[v]+this.temp[v]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&c^i&l^c&l)|0;g=y,y=h,h=d,d=f+R|0,f=l,l=c,c=i,i=R+C|0}r[0]+=i,r[1]+=c,r[2]+=l,r[3]+=f,r[4]+=d,r[5]+=h,r[6]+=y,r[7]+=g},e})(),yQ=(function(){function e(t){this.secret=t,this.hash=new nh,this.reset()}return e.prototype.update=function(t){if(!(zh(t)||this.error))try{this.hash.update(ca(t))}catch(n){this.error=n}},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 uM(this,void 0,void 0,function(){return fM(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new nh,this.secret){this.outer=new nh;var t=vQ(this.secret),n=new Uint8Array(er);n.set(t);for(var r=0;rer){var n=new nh;n.update(t),t=n.digest()}var r=new Uint8Array(er);return r.set(t),r}var bQ=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function dM(e){if(SQ(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return _Q(t)}return!1}function SQ(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function _Q(e){return e&&bQ.every(function(t){return typeof e[t]=="function"})}var hM=(function(){function e(t){dM(li())?this.hash=new fQ(t):this.hash=new yQ(t)}return e.prototype.update=function(t,n){this.hash.update(ca(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const pM=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"?window.navigator:void 0,i=r?.userAgent??"",c=r?.userAgentData?.platform??yC.os(i)??"other",l=void 0,f=r?.userAgentData?.brands??[],d=f[f.length-1],h=d?.brand??yC.browser(i)??"unknown",y=d?.version??"unknown",g=[["aws-sdk-js",t],["ua","2.1"],[`os/${c}`,l],["lang/js"],["md/browser",`${h}_${y}`]];e&&g.push([`api/${e}`,t]);const v=await n?.userAgentAppId?.();return v&&g.push([`app/${v}`]),g},yC={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}},mM=e=>()=>Promise.reject(e),wQ=["in-region","cross-region","mobile","standard","legacy"],gM=({defaultsMode:e}={})=>pK(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(EQ()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${wQ.join(", ")}, got ${t}`)}}),EQ=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t=="string"&&t!=="4g"||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints=="number"&&e?.maxTouchPoints>1},yM="required",nr="fn",sr="argv",Lc="ref",vC=!0,bC="isSet",Mu="booleanEquals",ic="error",ac="endpoint",so="tree",c0="PartitionResult",l0="getAttr",SC={[yM]:!1,type:"string"},_C={[yM]:!0,default:!1,type:"boolean"},wC={[Lc]:"Endpoint"},vM={[nr]:Mu,[sr]:[{[Lc]:"UseFIPS"},!0]},bM={[nr]:Mu,[sr]:[{[Lc]:"UseDualStack"},!0]},Ys={},EC={[nr]:l0,[sr]:[{[Lc]:c0},"supportsFIPS"]},SM={[Lc]:c0},xC={[nr]:Mu,[sr]:[!0,{[nr]:l0,[sr]:[SM,"supportsDualStack"]}]},RC=[vM],CC=[bM],TC=[{[Lc]:"Region"}],xQ={parameters:{Region:SC,UseDualStack:_C,UseFIPS:_C,Endpoint:SC},rules:[{conditions:[{[nr]:bC,[sr]:[wC]}],rules:[{conditions:RC,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ic},{conditions:CC,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ic},{endpoint:{url:wC,properties:Ys,headers:Ys},type:ac}],type:so},{conditions:[{[nr]:bC,[sr]:TC}],rules:[{conditions:[{[nr]:"aws.partition",[sr]:TC,assign:c0}],rules:[{conditions:[vM,bM],rules:[{conditions:[{[nr]:Mu,[sr]:[vC,EC]},xC],rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ys,headers:Ys},type:ac}],type:so},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ic}],type:so},{conditions:RC,rules:[{conditions:[{[nr]:Mu,[sr]:[EC,vC]}],rules:[{conditions:[{[nr]:"stringEquals",[sr]:[{[nr]:l0,[sr]:[SM,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ec2.{Region}.amazonaws.com",properties:Ys,headers:Ys},type:ac},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ys,headers:Ys},type:ac}],type:so},{error:"FIPS is enabled but this partition does not support FIPS",type:ic}],type:so},{conditions:CC,rules:[{conditions:[xC],rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ys,headers:Ys},type:ac}],type:so},{error:"DualStack is enabled but this partition does not support DualStack",type:ic}],type:so},{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dnsSuffix}",properties:Ys,headers:Ys},type:ac}],type:so}],type:so},{error:"Invalid Configuration: Missing Region",type:ic}]},RQ=xQ,CQ=new mO({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),TQ=(e,t={})=>CQ.get(e,()=>CO(RQ,{endpointParams:e,logger:t.logger}));Tu.aws=n0;const AQ=e=>({apiVersion:"2016-11-15",base64Decoder:e?.base64Decoder??aa,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??TQ,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??tQ,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new r0}],logger:e?.logger??new o0,protocol:e?.protocol??tZ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ec2",xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15",version:"2016-11-15",serviceTarget:"AmazonEC2"},serviceId:e?.serviceId??"EC2",urlParser:e?.urlParser??Iu,utf8Decoder:e?.utf8Decoder??mo,utf8Encoder:e?.utf8Encoder??ha}),IQ=e=>{const t=gM(e),n=()=>t().then($O),r=AQ(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??LO,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??pM({serviceId:r.serviceId,clientVersion:oQ.version}),maxAttempts:e?.maxAttempts??Ou,region:e?.region??mM("Region is missing"),requestHandler:mp.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||nM),sha256:e?.sha256??hM,streamCollector:e?.streamCollector??Qb,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(KO)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ZO))}},_M=e=>({setRegion(t){e.region=t},region(){return e.region}}),wM=e=>({region:e.region()}),OQ=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},MQ=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),DQ=(e,t)=>{const n=Object.assign(_M(e),UO(e),G2(e),OQ(e));return t.forEach(r=>r.configure(n)),Object.assign(e,wM(n),jO(n),K2(n),MQ(n))};class kQ extends BO{config;constructor(...[t]){const n=IQ(t||{});super(n),this.initConfig=n;const r=sQ(n),i=pO(r),c=iM(i),l=YO(c),f=l,d=tM(f),h=nQ(d),y=DQ(h,t?.extensions||[]);this.config=y,this.middlewareStack.use(oO(this.config)),this.middlewareStack.use(GO(this.config)),this.middlewareStack.use(aM(this.config)),this.middlewareStack.use(XO(this.config)),this.middlewareStack.use(Z2(this.config)),this.middlewareStack.use(Q2(this.config)),this.middlewareStack.use(Y2(this.config)),this.middlewareStack.use(X2(this.config,{httpAuthSchemeParametersProvider:JZ,identityProviderConfigProvider:async g=>new dO({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(J2(this.config))}destroy(){super.destroy()}}class u0 extends Qi{constructor(t){super(t),Object.setPrototypeOf(this,u0.prototype)}}const PQ="AssociateCarrierIpAddress",EM="AdditionalInfo",NQ="AttachmentId",zQ="AmiLaunchIndex",LQ="AttachmentLimitType",BQ="AssociatePublicIpAddress",$Q="AutoRecoverySupported",UQ="AllRegions",xM="AssociatedResource",RM="AutoRecovery",CM="AmdSevSnp",jQ="ArchitectureTypeList",f0="AttachTime",d0="AvailabilityZone",h0="AvailabilityZoneId",TM="Accelerators",HQ="Affinity",AM="Arn",IM="Architecture",OM="Association",FQ="Attachment",qQ="Attachments",VQ="BaselineBandwidthInGbps",MM="BaselineBandwidthInMbps",p0="BlockDeviceMapping",GQ="BlockDeviceMappingList",KQ="BlockDeviceMappingRequestList",m0="BlockDeviceMappings",ZQ="BlockDurationMinutes",DM="BaselineIops",kM="BootMode",QQ="BootModeTypeList",YQ="BareMetal",XQ="BurstablePerformanceSupported",PM="BaselineThroughputInMBps",NM="BandwidthWeighting",WQ="BandwidthWeightingTypeList",JQ="BandwidthWeightings",eY="CapacityBlockId",tY="CoreCountList",zM="CoreCount",nY="CpuCredits",sY="CreationDate",rY="CurrentGeneration",oY="CarrierIp",iY="CurrentInstanceBootMode",aY="CoreInfo",cY="CreateKeyPair",lY="CreateKeyPairRequest",g0="CpuOptions",uY="CustomerOwnedIp",fY="CpuOptionsRequest",y0="CapacityReservationId",LM="CapacityReservationPreference",BM="CapacityReservationResourceGroupArn",dY="CapacityReservationSpecificationResponse",v0="CapacityReservationSpecification",b0="CapacityReservationTarget",hY="CapacityReservationTargetResponse",pY="CreditSpecificationRequest",mY="CreditSpecification",gY="CurrentState",$M="ClientToken",yY="ConnectionTrackingConfiguration",vY="ConnectionTrackingSpecification",bY="ConnectionTrackingSpecificationRequest",SY="ConnectionTrackingSpecificationResponse",UM="CreateTime",jM="Code",HM="Configured",bi="Count",_Y="DisableApiStop",wY="DisableApiTermination",EY="DefaultCores",xY="DefaultEnaQueueCountPerInterface",RY="DedicatedHostsSupported",FM="DeviceIndex",CY="DiskInfoList",TY="DescribeImagesRequest",AY="DescribeImagesResult",IY="DescribeInstancesRequest",OY="DescribeInstancesResult",MY="DescribeInstanceTypesRequest",DY="DescribeInstanceTypesResult",kY="DescribeInstanceTypes",PY="DescribeImages",NY="DescribeInstances",zY="DiskInfo",LY="DeleteKeyPair",BY="DeleteKeyPairRequest",$Y="DeleteKeyPairResult",UY="DescribeKeyPairsRequest",jY="DescribeKeyPairsResult",HY="DescribeKeyPairs",qM="DeviceName",FY="DefaultNetworkCardIndex",Uu="DeleteOnTermination",qY="DeregistrationProtection",ms="DryRun",VY="DescribeRegionsRequest",GY="DescribeRegionsResult",KY="DescribeRegions",ZY="DefaultThreadsPerCore",QY="DeprecationTime",YY="DefaultVCpus",XY="DescribeVolumesRequest",WY="DescribeVolumesResult",JY="DescribeVolumes",S0="Description",eX="Device",tX="Disks",nX="EbsBlockDevice",sX="ExecutableByStringList",VM="ExecutableBy",wp="EbsCardIndex",rX="EbsCardInfoList",oX="EbsCardInfo",iX="EbsCards",aX="ElasticGpuAssociation",cX="ElasticGpuAssociationId",lX="ElasticGpuAssociationList",uX="ElasticGpuAssociationState",fX="ElasticGpuAssociationTime",dX="ElasticGpuAssociations",hX="ElasticGpuId",GM="ElasticGpuSpecification",pX="ElasticGpuSpecifications",KM="ElasticInferenceAccelerator",mX="ElasticInferenceAcceleratorAssociation",gX="ElasticInferenceAcceleratorAssociationId",yX="ElasticInferenceAcceleratorAssociationList",vX="ElasticInferenceAcceleratorAssociationState",bX="ElasticInferenceAcceleratorAssociationTime",SX="ElasticInferenceAcceleratorArn",_X="ElasticInferenceAcceleratorAssociations",ZM="ElasticInferenceAccelerators",wX="EbsInstanceBlockDevice",EX="EncryptionInTransitSupported",QM="EbsInfo",YM="EfaInfo",XM="EbsOptimized",WM="EbsOptimizedInfo",xX="EnclaveOptionsRequest",RX="EbsOptimizedSupport",_0="EnclaveOptions",CX="EnablePrimaryIpv6",JM="EnaQueueCount",eD="EnableResourceNameDnsAAAARecord",tD="EnableResourceNameDnsARecord",nD="EnaSrdEnabled",sD="EnaSrdSpecification",TX="EnaSrdSpecificationRequest",AX="EnaSrdSupported",rD="EnaSrdUdpEnabled",oD="EnaSrdUdpSpecification",IX="EnaSrdUdpSpecificationRequest",OX="EfaSupported",iD="EncryptionSupport",w0="EnaSupport",MX="ExecutableUsers",aD="Ebs",E0="Enabled",cD="Encrypted",DX="Endpoint",lD="Force",kX="FpgaDeviceInfo",PX="FpgaDeviceInfoList",NX="FpgaDeviceMemoryInfo",zX="FlexibleEnaQueuesSupport",uD="FpgaInfo",LX="FilterList",BX="FastRestored",fD="FreeTierEligible",Bc="Filters",Si="Filter",$X="Fpgas",x0="Groups",UX="GpuDeviceInfo",jX="GpuDeviceInfoList",HX="GpuDeviceMemoryInfo",FX="GroupIdentifierList",dD="GpuInfo",hD="GroupId",qX="GroupIdentifier",pD="GroupName",VX="GpuPartitionSize",GX="Gpus",mD="HttpEndpoint",KX="HostId",R0="HibernationOptions",ZX="HibernationOptionsRequest",gD="HttpProtocolIpv6",yD="HttpPutResponseHopLimit",QX="HostResourceGroupArn",YX="HibernationSupported",vD="HttpTokens",bD="HostnameType",XX="Hibernate",C0="Hypervisor",WX="Id",T0="Ipv6Addresses",SD="Ipv6AddressCount",JX="InstanceAttachmentEnaSrdSpecification",eW="InstanceAttachmentEnaSrdUdpSpecification",_D="InferenceAcceleratorInfo",tW="Ipv4AddressesPerInterface",nW="Ipv6AddressesPerInterface",sW="ImageAllowed",A0="Ipv6Address",rW="InstanceBlockDeviceMapping",oW="InstanceBlockDeviceMappingList",iW="IncludeDeprecated",aW="InferenceDeviceInfo",cW="InferenceDeviceInfoList",lW="InferenceDeviceMemoryInfo",uW="IncludeDisabled",bo="InstanceId",fW="InstanceIpv6Address",dW="InstanceIpv6AddressList",hW="InstanceInterruptionBehavior",I0="IamInstanceProfile",pW="InstanceIpv4PrefixList",mW="InstanceIpv6PrefixList",gW="IamInstanceProfileSpecification",yW="InstanceIpv4Prefix",vW="InstanceIpv6Prefix",bW="InstanceInitiatedShutdownBehavior",SW="ImageIdStringList",_W="InstanceIdStringList",ju="ImageId",wW="ImageIds",Hu="InstanceIds",EW="ImportKeyPair",xW="ImportKeyPairRequest",RW="ImportKeyPairResult",CW="ImageLocation",TW="ImageList",AW="InstanceLifecycle",IW="InstanceList",OW="InstanceMaintenanceOptions",MW="InstanceMaintenanceOptionsRequest",DW="InstanceMarketOptionsRequest",kW="InstanceMetadataOptionsRequest",PW="InstanceMetadataOptionsResponse",NW="InstanceMarketOptions",wD="InstanceMetadataTags",zW="InstanceNetworkInterface",LW="InstanceNetworkInterfaceAssociation",BW="InstanceNetworkInterfaceAttachment",$W="InstanceNetworkInterfaceList",UW="InstanceNetworkInterfaceSpecification",jW="InstanceNetworkInterfaceSpecificationList",HW="InstanceNetworkPerformanceOptions",FW="InstanceNetworkPerformanceOptionsRequest",qW="ImageOwnerAlias",VW="IpOwnerId",GW="InstanceOwningService",KW="Ipv6PrefixCount",ZW="Ipv4PrefixCount",QW="InstancePrivateIpAddress",YW="InstancePrivateIpAddressList",XW="IsPrimaryIpv6",WW="IncludePublicKey",JW="Ipv4PrefixList",eJ="Ipv6PrefixList",tJ="Ipv4PrefixSpecificationRequest",nJ="Ipv6PrefixSpecificationRequest",ED="Ipv6Prefixes",O0="Ipv6Prefix",xD="Ipv4Prefixes",M0="Ipv4Prefix",sJ="InstanceStateChange",rJ="InstanceStateChangeList",RD="InstanceStorageInfo",oJ="InstanceStorageSupported",iJ="ImdsSupport",aJ="InstanceState",cJ="Ipv6Supported",Ep="InstanceType",lJ="InstanceTypeInfoList",uJ="InstanceTypeInfo",fJ="ImageType",CD="InstanceTypes",TD="InterfaceType",dJ="Images",hJ="Image",pJ="Instance",mJ="Instances",AD="Iops",gJ="Key",yJ="KeyFormat",D0="KeyFingerprint",k0="KernelId",ID="KmsKeyId",vJ="KeyMaterial",Nr="KeyName",bJ="KeyNameStringList",SJ="KeyNames",_J="KeyPairs",pa="KeyPairId",wJ="KeyPairIdStringList",EJ="KeyPairIds",xJ="KeyPairInfo",RJ="KeyPairList",CJ="KeyPair",OD="KeyType",MD="LicenseConfigurationArn",TJ="LicenseConfigurationRequest",AJ="LicenseConfiguration",IJ="LogicalGpuCount",OJ="LicenseList",MJ="LastLaunchedTime",DJ="LicenseSpecifications",kJ="LicenseSpecificationListRequest",PJ="LicenseSpecification",NJ="LaunchTemplate",zJ="LaunchTemplateId",LJ="LaunchTemplateName",BJ="LaunchTemplateSpecification",$J="LaunchTime",UJ="Licenses",jJ="MultiAttachEnabled",DD="MediaAcceleratorInfo",HJ="MacAddress",kD="MaximumBandwidthInMbps",FJ="MaxCount",qJ="MinCount",VJ="MediaDeviceInfo",GJ="MediaDeviceInfoList",KJ="MediaDeviceMemoryInfo",ZJ="MaximumEbsAttachments",QJ="MaximumEbsCards",YJ="MaximumEfaInterfaces",XJ="MaximumEnaQueueCount",WJ="MaximumEnaQueueCountPerInterface",PD="MaximumIops",ma="MemoryInfo",JJ="MaximumNetworkCards",ND="MaximumNetworkInterfaces",zD="MetadataOptions",LD="MaintenanceOptions",eee="MaxPrice",xp="MaxResults",tee="MarketType",BD="MaximumThroughputInMBps",Fu="Manufacturer",nee="Managed",see="Message",P0="Monitoring",So="Name",ree="NetworkCards",N0="NetworkCardIndex",oee="NetworkCardInfoList",iee="NetworkCardInfo",aee="NoDevice",cee="NeuronDeviceCoreInfo",lee="NeuronDeviceInfo",uee="NeuronDeviceInfoList",fee="NeuronDeviceMemoryInfo",dee="NeuronDevices",hee="NitroEnclavesSupport",$D="NetworkInterfaceId",UD="NetworkInterfaces",jD="NetworkInfo",HD="NeuronInfo",FD="NetworkPerformanceOptions",qD="NetworkPerformance",VD="NvmeSupport",GD="NitroTpmInfo",pee="NitroTpmSupport",mee="NitroTpmSupportedVersionsList",_i="NextToken",z0="OutpostArn",L0="OwnerId",gee="OptInStatus",yee="OperatorRequest",vee="OperatorResponse",bee="OwnerStringList",qu="Operator",See="Owners",KD="Owner",ZD="Principal",_ee="PeakBandwidthInGbps",wee="ProductCodeId",Eee="ProductCodeList",xee="ProductCodeType",Ree="ProductCode",QD="ProductCodes",B0="PrivateDnsName",YD="PrivateDnsNameOptions",Cee="PrivateDnsNameOptionsRequest",Tee="PrivateDnsNameOptionsResponse",XD="PublicDnsName",WD="PlatformDetails",JD="PlacementGroupInfo",Aee="PlacementGroupStrategyList",Iee="PublicIp",Oee="PrivateIpAddressSpecification",Mee="PrivateIpAddressSpecificationList",$c="PrivateIpAddress",ek="PrivateIpAddresses",Dee="PublicIpAddress",kee="PrimaryIpv6",tk="ProcessorInfo",Pee="PublicKey",Nee="PublicKeyMaterial",zee="PartitionNumber",Lee="PhcSupport",Bee="PreviousState",nk="Platform",$0="Placement",sk="Primary",$ee="Public",Uee="Return",rk="RootDeviceName",ok="RootDeviceType",jee="RootDeviceTypeList",Hee="RunInstancesMonitoringEnabled",Fee="RebootInstancesRequest",qee="RunInstancesRequest",Vee="RunInstancesUserData",U0="RamdiskId",Gee="ReservationId",Kee="RebootInstances",Zee="RequesterId",Qee="RunInstances",Yee="RegionList",Xee="ReservationList",Wee="RebootMigrationSupport",Jee="RebootMigration",j0="RegionName",ete="RegionNameStringList",tte="RegionNames",nte="ResourceType",ste="Regions",rte="Region",ote="Reservations",ite="Reservation",ate="SupportedAdditionalProcessorFeatureList",cte="SupportedArchitectures",lte="SupportedBootModes",ute="SustainedClockSpeedInGhz",ik="SourceDestCheck",fte="SpreadDomain",dte="SupportedFeatures",ak="SecurityGroups",H0="SecurityGroupId",hte="SecurityGroupIdStringList",pte="SecurityGroupIds",mte="SecurityGroupStringList",ck="SecurityGroup",gte="SizeInGB",yte="SourceImageId",vte="SourceInstanceId",Uc="SizeInMiB",bte="SpotInstanceRequestId",Ste="SourceImageRegion",_te="StartInstancesRequest",wte="StartInstancesResult",Ete="StopInstancesRequest",xte="StopInstancesResult",Rte="SpotInstanceType",lk="SnapshotId",Cte="StartingInstances",Tte="StartInstances",Ate="StoppingInstances",Ite="StopInstances",Rp="SubnetId",Ote="SpotMarketOptions",uk="SriovNetSupport",Mte="SpotOptions",fk="SkipOsShutdown",Dte="SecondaryPrivateIpAddressCount",kte="SupportedRootDeviceTypes",F0="StateReason",Pte="SupportedStrategies",Nte="StateTransitionReason",zte="SseType",Lte="SupportedUsageClasses",Bte="SensitiveUserData",$te="SourceVolumeId",Ute="SupportedVirtualizationTypes",jte="SupportedVersions",Hte="Size",jc="State",q0="Status",ga="Tags",dk="TcpEstablishedTimeout",Fte="TotalFpgaMemoryInMiB",qte="TotalGpuMemoryInMiB",Vte="TerminateInstances",Gte="TotalInferenceMemoryInMiB",Kte="TerminateInstancesRequest",Zte="TerminateInstancesResult",Qte="TerminatingInstances",Yte="TagList",Xte="TotalMediaMemoryInMiB",Wte="TotalNeuronDeviceMemoryInMiB",hk="ThreadsPerCore",Jte="ThreadsPerCoreList",V0="TagSpecifications",ene="TotalSizeInGB",tne="TagSpecificationList",Cp="TagSpecification",pk="TpmSupport",mk="Tag",nne="Tenancy",gk="Throughput",G0="Type",sne="UsageClassTypeList",rne="UserData",yk="UsageOperation",one="UsageOperationUpdateTime",vk="UdpStreamTimeout",bk="UdpTimeout",Sk="Value",ine="VolumeAttachmentList",ane="VolumeAttachment",_k="VCpuInfo",cne="ValidCores",wk="VpcId",Ek="VolumeInitializationRate",lne="VolumeIdStringList",Vu="VolumeId",une="VolumeIds",fne="VolumeList",dne="VirtualName",hne="VolumeOwnerId",pne="ValueStringList",mne="VolumeSize",xk="VolumeType",gne="VirtualizationTypeList",yne="ValidThreadsPerCore",Rk="VirtualizationType",vne="ValidUntil",bne="Values",Ck="Version",Sne="Volumes",_ne="Volume",wne="WorkloadsList",Ene="Workloads",Tk="additionalInfo",xne="attachmentId",Rne="amiLaunchIndex",Cne="attachmentLimitType",Tne="associatePublicIpAddress",Ane="autoRecoverySupported",Ak="associatedResource",Ine="autoRecovery",One="amdSevSnp",Mne="attachmentSet",K0="attachTime",Z0="availabilityZone",Ik="availabilityZoneId",Ok="accelerators",Dne="affinity",Mk="arn",Dk="architecture",kk="association",kne="attachment",Pne="baselineBandwidthInGbps",Pk="baselineBandwidthInMbps",Nk="blockDeviceMapping",zk="baselineIops",Lk="bootMode",Nne="bareMetal",zne="burstablePerformanceSupported",Bk="baselineThroughputInMBps",Lne="bandwidthWeighting",Bne="bandwidthWeightings",$ne="capacityBlockId",Une="coreCount",jne="creationDate",Hne="currentGeneration",Fne="carrierIp",qne="currentInstanceBootMode",Vne="coreInfo",Gne="cpuOptions",Kne="customerOwnedIp",$k="capacityReservationId",Zne="capacityReservationPreference",Qne="capacityReservationResourceGroupArn",Yne="capacityReservationSpecification",Xne="capacityReservationTarget",Wne="currentState",Uk="clientToken",Jne="connectionTrackingConfiguration",jk="createTime",Hk="code",ese="configured",ya="count",tse="disableApiTermination",nse="defaultCores",sse="defaultEnaQueueCountPerInterface",rse="dedicatedHostsSupported",Fk="deviceIndex",qk="deviceName",ose="defaultNetworkCardIndex",ise="dnsName",Gu="deleteOnTermination",ase="deregistrationProtection",Ns="dryRun",cse="defaultThreadsPerCore",lse="deprecationTime",use="defaultVCpus",Q0="description",fse="device",dse="disks",Y0="ebsCardIndex",hse="ebsCardSet",pse="elasticGpuAssociationId",mse="elasticGpuAssociationState",gse="elasticGpuAssociationSet",yse="elasticGpuAssociationTime",vse="elasticGpuId",bse="elasticInferenceAcceleratorArn",Sse="elasticInferenceAcceleratorAssociationId",_se="elasticInferenceAcceleratorAssociationState",wse="elasticInferenceAcceleratorAssociationSet",Ese="elasticInferenceAcceleratorAssociationTime",xse="encryptionInTransitSupported",Rse="ebsInfo",Cse="efaInfo",Vk="ebsOptimized",Tse="ebsOptimizedInfo",Ase="ebsOptimizedSupport",Ise="enclaveOptions",Ose="enaQueueCount",E="ec2QueryName",Mse="enableResourceNameDnsAAAARecord",Dse="enableResourceNameDnsARecord",kse="enaSrdEnabled",Pse="enaSrdSpecification",Nse="enaSrdSupported",zse="enaSrdUdpEnabled",Lse="enaSrdUdpSpecification",Bse="efaSupported",Gk="encryptionSupport",X0="enaSupport",Kk="ebs",Zk="enabled",Qk="encrypted",$se="flexibleEnaQueuesSupport",Use="fpgaInfo",jse="fastRestored",Yk="freeTierEligible",Hse="force",Fse="fpgas",qse="gpuInfo",Xk="groupId",Wk="groupName",Vse="gpuPartitionSize",W0="groupSet",Gse="gpus",J0="hypervisor",Kse="httpEndpoint",Zse="hostId",Qse="hibernationOptions",Yse="httpProtocolIpv6",Xse="httpPutResponseHopLimit",Wse="hostResourceGroupArn",Jse="hibernationSupported",ere="httpTokens",tre="hostnameType",nre="id",sre="ipv6AddressCount",rre="inferenceAcceleratorInfo",ore="ipv4AddressesPerInterface",ire="ipv6AddressesPerInterface",Jk="ipv6AddressesSet",are="imageAllowed",cre="ipAddress",e3="ipv6Address",eS="instanceId",t3="iamInstanceProfile",lre="instanceInitiatedShutdownBehavior",n3="imageId",ure="imageLocation",fre="instanceLifecycle",dre="instanceMetadataTags",hre="imageOwnerAlias",pre="imageOwnerId",mre="ipOwnerId",gre="instanceOwningService",yre="isPrimaryIpv6",vre="ipv4PrefixSet",bre="ipv6PrefixSet",Sre="ipv4Prefix",_re="ipv6Prefix",wre="isPublic",Ere="instanceStorageInfo",xre="instanceStorageSupported",Rre="imagesSet",Cre="imageState",Tre="imdsSupport",Tp="instancesSet",Are="instanceState",Ire="ipv6Supported",s3="instanceType",Ore="instanceTypeSet",Mre="idempotencyToken",Dre="imageType",kre="interfaceType",r3="iops",je="item",Pre="key",tS="keyFingerprint",o3="kernelId",i3="kmsKeyId",Nre="keyMaterial",Ku="keyName",Ap="keyPairId",zre="keySet",Lre="keyType",Bre="licenseConfigurationArn",$re="logicalGpuCount",Ure="lastLaunchedTime",jre="licenseSet",Hre="launchTime",Fre="multiAttachEnabled",qre="mediaAcceleratorInfo",Vre="macAddress",a3="maximumBandwidthInMbps",Gre="maximumEbsAttachments",Kre="maximumEbsCards",Zre="maximumEfaInterfaces",Qre="maximumEnaQueueCount",Yre="maximumEnaQueueCountPerInterface",c3="maximumIops",Hc="memoryInfo",Xre="maximumNetworkCards",l3="maximumNetworkInterfaces",Wre="metadataOptions",Jre="maintenanceOptions",u3="maxResults",f3="maximumThroughputInMBps",Zu="manufacturer",eoe="managed",toe="message",noe="monitoring",wi="name",soe="networkCards",d3="networkCardIndex",roe="noDevice",ooe="neuronDevices",ioe="nitroEnclavesSupport",h3="networkInterfaceId",aoe="networkInterfaceSet",coe="networkInterface",loe="networkInfo",uoe="neuronInfo",foe="networkPerformanceOptions",p3="networkPerformance",m3="nvmeSupport",doe="nitroTpmInfo",hoe="nitroTpmSupport",Fc="nextToken",nS="outpostArn",g3="ownerId",poe="optInStatus",Ip="operator",moe="principal",goe="peakBandwidthInGbps",y3="productCodes",yoe="productCode",voe="privateDnsNameOptions",sS="privateDnsName",boe="publicDnsName",v3="platformDetails",Soe="placementGroupInfo",_oe="publicIp",b3="privateIpAddressesSet",qc="privateIpAddress",woe="processorInfo",Eoe="publicKey",xoe="publicKeyMaterial",Roe="partitionNumber",Coe="phcSupport",Toe="previousState",S3="platform",Aoe="placement",_3="primary",Ioe="return",w3="rootDeviceName",E3="rootDeviceType",Ooe="regionEndpoint",Moe="reservationId",x3="ramdiskId",Doe="regionInfo",koe="requesterId",Poe="rebootMigrationSupport",Noe="rebootMigration",zoe="regionName",Loe="reservationSet",Boe="resourceType",$oe="reason",Uoe="supportedArchitectures",joe="supportedBootModes",Hoe="sustainedClockSpeedInGhz",R3="sourceDestCheck",Foe="spreadDomain",qoe="supportedFeatures",Voe="sizeInGB",Goe="sourceInstanceId",Koe="sourceImageId",Vc="sizeInMiB",Zoe="sourceImageRegion",Qoe="spotInstanceRequestId",C3="snapshotId",rS="subnetId",T3="sriovNetSupport",Yoe="secondaryPrivateIpAddressCount",Xoe="supportedRootDeviceTypes",A3="stateReason",Woe="supportedStrategies",Joe="sseType",eie="supportedUsageClasses",tie="sourceVolumeId",nie="supportedVirtualizationTypes",sie="supportedVersions",rie="size",I3="smithy.ts.sdk.synthetic.com.amazonaws.ec2",O3="state",Qu="status",oie="tenancy",iie="tcpEstablishedTimeout",aie="totalFpgaMemoryInMiB",cie="totalGpuMemoryInMiB",lie="totalInferenceMemoryInMiB",uie="totalMediaMemoryInMiB",fie="totalNeuronDeviceMemoryInMiB",die="threadsPerCore",Gc="tagSet",hie="totalSizeInGB",M3="tpmSupport",D3="throughput",k3="type",P3="usageOperation",pie="usageOperationUpdateTime",mie="udpStreamTimeout",gie="udpTimeout",yie="value",vie="vCpuInfo",bie="validCores",N3="vpcId",Sie="volumeInitializationRate",oS="volumeId",_ie="virtualName",wie="volumeOwnerId",Eie="volumeSet",xie="volumeSize",z3="volumeType",Rie="validThreadsPerCore",L3="virtualizationType",Cie="version",Tie="workloadSet",S="xmlName",H="com.amazonaws.ec2";var Aie=[0,H,Vee,8,0],Iie=[0,H,Bte,8,0],B3=[3,H,p0,0,[aD,aee,qM,dne],[[()=>tae,{[E]:"Ebs",[S]:Kk}],[0,{[E]:"NoDevice",[S]:roe}],[0,{[E]:"DeviceName",[S]:qk}],[0,{[E]:"VirtualName",[S]:_ie}]]],Oie=[3,H,v0,0,[LM,b0],[0,()=>Die]],Mie=[3,H,dY,0,[LM,b0],[[0,{[E]:"CapacityReservationPreference",[S]:Zne}],[()=>kie,{[E]:"CapacityReservationTarget",[S]:Xne}]]],Die=[3,H,b0,0,[y0,BM],[0,0]],kie=[3,H,hY,0,[y0,BM],[[0,{[E]:"CapacityReservationId",[S]:$k}],[0,{[E]:"CapacityReservationResourceGroupArn",[S]:Qne}]]],Pie=[3,H,bY,0,[dk,vk,bk],[1,1,1]],Nie=[3,H,SY,0,[dk,vk,bk],[[1,{[E]:"TcpEstablishedTimeout",[S]:iie}],[1,{[E]:"UdpStreamTimeout",[S]:mie}],[1,{[E]:"UdpTimeout",[S]:gie}]]],zie=[3,H,g0,0,[zM,hk,CM],[[1,{[E]:"CoreCount",[S]:Une}],[1,{[E]:"ThreadsPerCore",[S]:die}],[0,{[E]:"AmdSevSnp",[S]:One}]]],Lie=[3,H,fY,0,[zM,hk,CM],[1,1,0]],Bie=[3,H,lY,0,[Nr,OD,V0,yJ,ms],[0,0,[()=>lS,{[S]:Cp}],0,[2,{[E]:"DryRun",[S]:Ns}]],1],$ie=[3,H,pY,0,[nY],[0],1],Uie=[3,H,BY,0,[Nr,pa,ms],[0,0,[2,{[E]:"DryRun",[S]:Ns}]]],jie=[3,H,$Y,0,[Uee,pa],[[2,{[E]:"Return",[S]:Ioe}],[0,{[E]:"KeyPairId",[S]:Ap}]]],Hie=[3,H,TY,0,[MX,wW,See,iW,uW,xp,_i,ms,Bc],[[()=>nle,{[S]:VM}],[()=>ole,{[S]:ju}],[()=>Tle,{[S]:KD}],2,2,1,0,[2,{[E]:"DryRun",[S]:Ns}],[()=>Kc,{[S]:Si}]]],Fie=[3,H,AY,0,[_i,dJ],[[0,{[E]:"NextToken",[S]:Fc}],[()=>ile,{[E]:"ImagesSet",[S]:Rre}]]],qie=[3,H,IY,0,[Hu,ms,Bc,_i,xp],[[()=>Yu,{[S]:bo}],[2,{[E]:"DryRun",[S]:Ns}],[()=>Kc,{[S]:Si}],[0,{[E]:"NextToken",[S]:Fc}],[1,{[E]:"MaxResults",[S]:u3}]]],Vie=[3,H,OY,0,[_i,ote],[[0,{[E]:"NextToken",[S]:Fc}],[()=>Dle,{[E]:"ReservationSet",[S]:Loe}]]],Gie=[3,H,MY,0,[ms,CD,Bc,xp,_i],[2,[64,{[S]:Ep}],[()=>Kc,{[S]:Si}],1,0]],Kie=[3,H,DY,0,[CD,_i],[[()=>mle,{[E]:"InstanceTypeSet",[S]:Ore}],[0,{[E]:"NextToken",[S]:Fc}]]],Zie=[3,H,UY,0,[SJ,EJ,WW,ms,Bc],[[()=>vle,{[S]:Nr}],[()=>ble,{[S]:pa}],2,[2,{[E]:"DryRun",[S]:Ns}],[()=>Kc,{[S]:Si}]]],Qie=[3,H,jY,0,[_J],[[()=>Sle,{[E]:"KeySet",[S]:zre}]]],Yie=[3,H,VY,0,[tte,UQ,ms,Bc],[[()=>Mle,{[S]:j0}],2,[2,{[E]:"DryRun",[S]:Ns}],[()=>Kc,{[S]:Si}]]],Xie=[3,H,GY,0,[ste],[[()=>Ole,{[E]:"RegionInfo",[S]:Doe}]]],Wie=[3,H,XY,0,[une,ms,Bc,_i,xp],[[()=>jle,{[S]:Vu}],[2,{[E]:"DryRun",[S]:Ns}],[()=>Kc,{[S]:Si}],[0,{[E]:"NextToken",[S]:Fc}],[1,{[E]:"MaxResults",[S]:u3}]]],Jie=[3,H,WY,0,[_i,Sne],[[0,{[E]:"NextToken",[S]:Fc}],[()=>Hle,{[E]:"VolumeSet",[S]:Eie}]]],eae=[3,H,zY,0,[gte,bi,G0],[[1,{[E]:"SizeInGB",[S]:Voe}],[1,{[E]:"Count",[S]:ya}],[0,{[E]:"Type",[S]:k3}]]],tae=[3,H,nX,0,[Uu,AD,lk,mne,xk,ID,gk,z0,d0,cD,Ek,h0,wp],[[2,{[E]:"DeleteOnTermination",[S]:Gu}],[1,{[E]:"Iops",[S]:r3}],[0,{[E]:"SnapshotId",[S]:C3}],[1,{[E]:"VolumeSize",[S]:xie}],[0,{[E]:"VolumeType",[S]:z3}],[0,{[E]:"KmsKeyId",[S]:i3}],[1,{[E]:"Throughput",[S]:D3}],[0,{[E]:"OutpostArn",[S]:nS}],[0,{[E]:"AvailabilityZone",[S]:Z0}],[2,{[E]:"Encrypted",[S]:Qk}],1,0,1]],nae=[3,H,oX,0,[wp,MM,PM,DM,kD,BD,PD],[[1,{[E]:"EbsCardIndex",[S]:Y0}],[1,{[E]:"BaselineBandwidthInMbps",[S]:Pk}],[1,{[E]:"BaselineThroughputInMBps",[S]:Bk}],[1,{[E]:"BaselineIops",[S]:zk}],[1,{[E]:"MaximumBandwidthInMbps",[S]:a3}],[1,{[E]:"MaximumThroughputInMBps",[S]:f3}],[1,{[E]:"MaximumIops",[S]:c3}]]],sae=[3,H,QM,0,[RX,iD,WM,VD,ZJ,LQ,QJ,iX],[[0,{[E]:"EbsOptimizedSupport",[S]:Ase}],[0,{[E]:"EncryptionSupport",[S]:Gk}],[()=>oae,{[E]:"EbsOptimizedInfo",[S]:Tse}],[0,{[E]:"NvmeSupport",[S]:m3}],[1,{[E]:"MaximumEbsAttachments",[S]:Gre}],[0,{[E]:"AttachmentLimitType",[S]:Cne}],[1,{[E]:"MaximumEbsCards",[S]:Kre}],[()=>Xce,{[E]:"EbsCardSet",[S]:hse}]]],rae=[3,H,wX,0,[f0,Uu,q0,Vu,xM,hne,qu,wp],[[4,{[E]:"AttachTime",[S]:K0}],[2,{[E]:"DeleteOnTermination",[S]:Gu}],[0,{[E]:"Status",[S]:Qu}],[0,{[E]:"VolumeId",[S]:oS}],[0,{[E]:"AssociatedResource",[S]:Ak}],[0,{[E]:"VolumeOwnerId",[S]:wie}],[()=>Op,{[E]:"Operator",[S]:Ip}],[1,{[E]:"EbsCardIndex",[S]:Y0}]]],oae=[3,H,WM,0,[MM,PM,DM,kD,BD,PD],[[1,{[E]:"BaselineBandwidthInMbps",[S]:Pk}],[1,{[E]:"BaselineThroughputInMBps",[S]:Bk}],[1,{[E]:"BaselineIops",[S]:zk}],[1,{[E]:"MaximumBandwidthInMbps",[S]:a3}],[1,{[E]:"MaximumThroughputInMBps",[S]:f3}],[1,{[E]:"MaximumIops",[S]:c3}]]],iae=[3,H,YM,0,[YJ],[[1,{[E]:"MaximumEfaInterfaces",[S]:Zre}]]],aae=[3,H,aX,0,[hX,cX,uX,fX],[[0,{[E]:"ElasticGpuId",[S]:vse}],[0,{[E]:"ElasticGpuAssociationId",[S]:pse}],[0,{[E]:"ElasticGpuAssociationState",[S]:mse}],[0,{[E]:"ElasticGpuAssociationTime",[S]:yse}]]],cae=[3,H,GM,0,[G0],[0],1],lae=[3,H,KM,0,[G0,bi],[0,1],1],uae=[3,H,mX,0,[SX,gX,vX,bX],[[0,{[E]:"ElasticInferenceAcceleratorArn",[S]:bse}],[0,{[E]:"ElasticInferenceAcceleratorAssociationId",[S]:Sse}],[0,{[E]:"ElasticInferenceAcceleratorAssociationState",[S]:_se}],[4,{[E]:"ElasticInferenceAcceleratorAssociationTime",[S]:Ese}]]],fae=[3,H,TX,0,[nD,oD],[2,()=>dae]],dae=[3,H,IX,0,[rD],[2]],hae=[3,H,_0,0,[E0],[[2,{[E]:"Enabled",[S]:Zk}]]],pae=[3,H,xX,0,[E0],[2]],mae=[3,H,Si,0,[So,bne],[0,[()=>Ble,{[S]:Sk}]]],gae=[3,H,kX,0,[So,Fu,bi,ma],[[0,{[E]:"Name",[S]:wi}],[0,{[E]:"Manufacturer",[S]:Zu}],[1,{[E]:"Count",[S]:ya}],[()=>yae,{[E]:"MemoryInfo",[S]:Hc}]]],yae=[3,H,NX,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],vae=[3,H,uD,0,[$X,Fte],[[()=>sle,{[E]:"Fpgas",[S]:Fse}],[1,{[E]:"TotalFpgaMemoryInMiB",[S]:aie}]]],bae=[3,H,UX,0,[So,Fu,bi,IJ,VX,Ene,ma],[[0,{[E]:"Name",[S]:wi}],[0,{[E]:"Manufacturer",[S]:Zu}],[1,{[E]:"Count",[S]:ya}],[1,{[E]:"LogicalGpuCount",[S]:$re}],[1,{[E]:"GpuPartitionSize",[S]:Vse}],[()=>Fle,{[E]:"WorkloadSet",[S]:Tie}],[()=>Sae,{[E]:"MemoryInfo",[S]:Hc}]]],Sae=[3,H,HX,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],_ae=[3,H,dD,0,[GX,qte],[[()=>rle,{[E]:"Gpus",[S]:Gse}],[1,{[E]:"TotalGpuMemoryInMiB",[S]:cie}]]],wae=[3,H,qX,0,[hD,pD],[[0,{[E]:"GroupId",[S]:Xk}],[0,{[E]:"GroupName",[S]:Wk}]]],Eae=[3,H,R0,0,[HM],[[2,{[E]:"Configured",[S]:ese}]]],xae=[3,H,ZX,0,[HM],[2]],Rae=[3,H,I0,0,[AM,WX],[[0,{[E]:"Arn",[S]:Mk}],[0,{[E]:"Id",[S]:nre}]]],Cae=[3,H,gW,0,[AM,So],[[0,{[E]:"Arn",[S]:Mk}],[0,{[E]:"Name",[S]:wi}]]],Tae=[3,H,hJ,0,[WD,yk,m0,S0,w0,C0,qW,So,rk,ok,uk,F0,ga,Rk,kM,pk,QY,iJ,vte,qY,MJ,sW,yte,Ste,fD,ju,CW,jc,L0,sY,$ee,QD,IM,fJ,k0,U0,nk],[[0,{[E]:"PlatformDetails",[S]:v3}],[0,{[E]:"UsageOperation",[S]:P3}],[()=>Gce,{[E]:"BlockDeviceMapping",[S]:Nk}],[0,{[E]:"Description",[S]:Q0}],[2,{[E]:"EnaSupport",[S]:X0}],[0,{[E]:"Hypervisor",[S]:J0}],[0,{[E]:"ImageOwnerAlias",[S]:hre}],[0,{[E]:"Name",[S]:wi}],[0,{[E]:"RootDeviceName",[S]:w3}],[0,{[E]:"RootDeviceType",[S]:E3}],[0,{[E]:"SriovNetSupport",[S]:T3}],[()=>H3,{[E]:"StateReason",[S]:A3}],[()=>va,{[E]:"TagSet",[S]:Gc}],[0,{[E]:"VirtualizationType",[S]:L3}],[0,{[E]:"BootMode",[S]:Lk}],[0,{[E]:"TpmSupport",[S]:M3}],[0,{[E]:"DeprecationTime",[S]:lse}],[0,{[E]:"ImdsSupport",[S]:Tre}],[0,{[E]:"SourceInstanceId",[S]:Goe}],[0,{[E]:"DeregistrationProtection",[S]:ase}],[0,{[E]:"LastLaunchedTime",[S]:Ure}],[2,{[E]:"ImageAllowed",[S]:are}],[0,{[E]:"SourceImageId",[S]:Koe}],[0,{[E]:"SourceImageRegion",[S]:Zoe}],[2,{[E]:"FreeTierEligible",[S]:Yk}],[0,{[E]:"ImageId",[S]:n3}],[0,{[E]:"ImageLocation",[S]:ure}],[0,{[E]:"ImageState",[S]:Cre}],[0,{[E]:"ImageOwnerId",[S]:pre}],[0,{[E]:"CreationDate",[S]:jne}],[2,{[E]:"IsPublic",[S]:wre}],[()=>F3,{[E]:"ProductCodes",[S]:y3}],[0,{[E]:"Architecture",[S]:Dk}],[0,{[E]:"ImageType",[S]:Dre}],[0,{[E]:"KernelId",[S]:o3}],[0,{[E]:"RamdiskId",[S]:x3}],[0,{[E]:"Platform",[S]:S3}]]],Aae=[3,H,xW,0,[Nr,Nee,V0,ms],[[0,{[E]:"KeyName",[S]:Ku}],[21,{[E]:"PublicKeyMaterial",[S]:xoe}],[()=>lS,{[S]:Cp}],[2,{[E]:"DryRun",[S]:Ns}]],2],Iae=[3,H,RW,0,[D0,Nr,pa,ga],[[0,{[E]:"KeyFingerprint",[S]:tS}],[0,{[E]:"KeyName",[S]:Ku}],[0,{[E]:"KeyPairId",[S]:Ap}],[()=>va,{[E]:"TagSet",[S]:Gc}]]],Oae=[3,H,_D,0,[TM,Gte],[[()=>ale,{[E]:"Accelerators",[S]:Ok}],[1,{[E]:"TotalInferenceMemoryInMiB",[S]:lie}]]],Mae=[3,H,aW,0,[bi,So,Fu,ma],[[1,{[E]:"Count",[S]:ya}],[0,{[E]:"Name",[S]:wi}],[0,{[E]:"Manufacturer",[S]:Zu}],[()=>Dae,{[E]:"MemoryInfo",[S]:Hc}]]],Dae=[3,H,lW,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],kae=[3,H,pJ,0,[IM,m0,$M,XM,w0,C0,I0,AW,dX,_X,UD,z0,rk,ok,ak,ik,bte,uk,F0,ga,Rk,g0,eY,y0,v0,R0,UJ,zD,_0,kM,WD,yk,one,YD,A0,pk,LD,iY,FD,qu,bo,ju,jc,B0,XD,Nte,Nr,zQ,QD,Ep,$J,$0,k0,U0,nk,P0,Rp,wk,$c,Dee],[[0,{[E]:"Architecture",[S]:Dk}],[()=>cle,{[E]:"BlockDeviceMapping",[S]:Nk}],[0,{[E]:"ClientToken",[S]:Uk}],[2,{[E]:"EbsOptimized",[S]:Vk}],[2,{[E]:"EnaSupport",[S]:X0}],[0,{[E]:"Hypervisor",[S]:J0}],[()=>Rae,{[E]:"IamInstanceProfile",[S]:t3}],[0,{[E]:"InstanceLifecycle",[S]:fre}],[()=>Wce,{[E]:"ElasticGpuAssociationSet",[S]:gse}],[()=>ele,{[E]:"ElasticInferenceAcceleratorAssociationSet",[S]:wse}],[()=>dle,{[E]:"NetworkInterfaceSet",[S]:aoe}],[0,{[E]:"OutpostArn",[S]:nS}],[0,{[E]:"RootDeviceName",[S]:w3}],[0,{[E]:"RootDeviceType",[S]:E3}],[()=>iS,{[E]:"GroupSet",[S]:W0}],[2,{[E]:"SourceDestCheck",[S]:R3}],[0,{[E]:"SpotInstanceRequestId",[S]:Qoe}],[0,{[E]:"SriovNetSupport",[S]:T3}],[()=>H3,{[E]:"StateReason",[S]:A3}],[()=>va,{[E]:"TagSet",[S]:Gc}],[0,{[E]:"VirtualizationType",[S]:L3}],[()=>zie,{[E]:"CpuOptions",[S]:Gne}],[0,{[E]:"CapacityBlockId",[S]:$ne}],[0,{[E]:"CapacityReservationId",[S]:$k}],[()=>Mie,{[E]:"CapacityReservationSpecification",[S]:Yne}],[()=>Eae,{[E]:"HibernationOptions",[S]:Qse}],[()=>_le,{[E]:"LicenseSet",[S]:jre}],[()=>qae,{[E]:"MetadataOptions",[S]:Wre}],[()=>hae,{[E]:"EnclaveOptions",[S]:Ise}],[0,{[E]:"BootMode",[S]:Lk}],[0,{[E]:"PlatformDetails",[S]:v3}],[0,{[E]:"UsageOperation",[S]:P3}],[4,{[E]:"UsageOperationUpdateTime",[S]:pie}],[()=>wce,{[E]:"PrivateDnsNameOptions",[S]:voe}],[0,{[E]:"Ipv6Address",[S]:e3}],[0,{[E]:"TpmSupport",[S]:M3}],[()=>Uae,{[E]:"MaintenanceOptions",[S]:Jre}],[0,{[E]:"CurrentInstanceBootMode",[S]:qne}],[()=>Zae,{[E]:"NetworkPerformanceOptions",[S]:foe}],[()=>Op,{[E]:"Operator",[S]:Ip}],[0,{[E]:"InstanceId",[S]:eS}],[0,{[E]:"ImageId",[S]:n3}],[()=>ib,{[E]:"InstanceState",[S]:Are}],[0,{[E]:"PrivateDnsName",[S]:sS}],[0,{[E]:"DnsName",[S]:ise}],[0,{[E]:"Reason",[S]:$oe}],[0,{[E]:"KeyName",[S]:Ku}],[1,{[E]:"AmiLaunchIndex",[S]:Rne}],[()=>F3,{[E]:"ProductCodes",[S]:y3}],[0,{[E]:"InstanceType",[S]:s3}],[4,{[E]:"LaunchTime",[S]:Hre}],[()=>U3,{[E]:"Placement",[S]:Aoe}],[0,{[E]:"KernelId",[S]:o3}],[0,{[E]:"RamdiskId",[S]:x3}],[0,{[E]:"Platform",[S]:S3}],[()=>fce,{[E]:"Monitoring",[S]:noe}],[0,{[E]:"SubnetId",[S]:rS}],[0,{[E]:"VpcId",[S]:N3}],[0,{[E]:"PrivateIpAddress",[S]:qc}],[0,{[E]:"IpAddress",[S]:cre}]]],Pae=[3,H,JX,0,[nD,oD],[[2,{[E]:"EnaSrdEnabled",[S]:kse}],[()=>Nae,{[E]:"EnaSrdUdpSpecification",[S]:Lse}]]],Nae=[3,H,eW,0,[rD],[[2,{[E]:"EnaSrdUdpEnabled",[S]:zse}]]],zae=[3,H,rW,0,[qM,aD],[[0,{[E]:"DeviceName",[S]:qk}],[()=>rae,{[E]:"Ebs",[S]:Kk}]]],Lae=[3,H,yW,0,[M0],[[0,{[E]:"Ipv4Prefix",[S]:Sre}]]],Bae=[3,H,fW,0,[A0,XW],[[0,{[E]:"Ipv6Address",[S]:e3}],[2,{[E]:"IsPrimaryIpv6",[S]:yre}]]],$ae=[3,H,vW,0,[O0],[[0,{[E]:"Ipv6Prefix",[S]:_re}]]],Uae=[3,H,OW,0,[RM,Jee],[[0,{[E]:"AutoRecovery",[S]:Ine}],[0,{[E]:"RebootMigration",[S]:Noe}]]],jae=[3,H,MW,0,[RM],[0]],Hae=[3,H,DW,0,[tee,Mte],[0,()=>Oce]],Fae=[3,H,kW,0,[vD,yD,mD,gD,wD],[0,1,0,0,0]],qae=[3,H,PW,0,[jc,vD,yD,mD,gD,wD],[[0,{[E]:"State",[S]:O3}],[0,{[E]:"HttpTokens",[S]:ere}],[1,{[E]:"HttpPutResponseHopLimit",[S]:Xse}],[0,{[E]:"HttpEndpoint",[S]:Kse}],[0,{[E]:"HttpProtocolIpv6",[S]:Yse}],[0,{[E]:"InstanceMetadataTags",[S]:dre}]]],Vae=[3,H,zW,0,[OM,FQ,S0,x0,T0,HJ,$D,L0,B0,$c,ek,ik,q0,Rp,wk,TD,xD,ED,yY,qu],[[()=>$3,{[E]:"Association",[S]:kk}],[()=>Gae,{[E]:"Attachment",[S]:kne}],[0,{[E]:"Description",[S]:Q0}],[()=>iS,{[E]:"GroupSet",[S]:W0}],[()=>aS,{[E]:"Ipv6AddressesSet",[S]:Jk}],[0,{[E]:"MacAddress",[S]:Vre}],[0,{[E]:"NetworkInterfaceId",[S]:h3}],[0,{[E]:"OwnerId",[S]:g3}],[0,{[E]:"PrivateDnsName",[S]:sS}],[0,{[E]:"PrivateIpAddress",[S]:qc}],[()=>ple,{[E]:"PrivateIpAddressesSet",[S]:b3}],[2,{[E]:"SourceDestCheck",[S]:R3}],[0,{[E]:"Status",[S]:Qu}],[0,{[E]:"SubnetId",[S]:rS}],[0,{[E]:"VpcId",[S]:N3}],[0,{[E]:"InterfaceType",[S]:kre}],[()=>lle,{[E]:"Ipv4PrefixSet",[S]:vre}],[()=>ule,{[E]:"Ipv6PrefixSet",[S]:bre}],[()=>Nie,{[E]:"ConnectionTrackingConfiguration",[S]:Jne}],[()=>Op,{[E]:"Operator",[S]:Ip}]]],$3=[3,H,LW,0,[oY,uY,VW,XD,Iee],[[0,{[E]:"CarrierIp",[S]:Fne}],[0,{[E]:"CustomerOwnedIp",[S]:Kne}],[0,{[E]:"IpOwnerId",[S]:mre}],[0,{[E]:"PublicDnsName",[S]:boe}],[0,{[E]:"PublicIp",[S]:_oe}]]],Gae=[3,H,BW,0,[f0,NQ,Uu,FM,q0,N0,sD,JM],[[4,{[E]:"AttachTime",[S]:K0}],[0,{[E]:"AttachmentId",[S]:xne}],[2,{[E]:"DeleteOnTermination",[S]:Gu}],[1,{[E]:"DeviceIndex",[S]:Fk}],[0,{[E]:"Status",[S]:Qu}],[1,{[E]:"NetworkCardIndex",[S]:d3}],[()=>Pae,{[E]:"EnaSrdSpecification",[S]:Pse}],[1,{[E]:"EnaQueueCount",[S]:Ose}]]],Kae=[3,H,UW,0,[BQ,Uu,S0,FM,x0,SD,T0,$D,$c,ek,Dte,Rp,PQ,TD,N0,xD,ZW,ED,KW,kee,sD,vY,JM],[[2,{[E]:"AssociatePublicIpAddress",[S]:Tne}],[2,{[E]:"DeleteOnTermination",[S]:Gu}],[0,{[E]:"Description",[S]:Q0}],[1,{[E]:"DeviceIndex",[S]:Fk}],[()=>q3,{[S]:H0}],[1,{[E]:"Ipv6AddressCount",[S]:sre}],[()=>aS,{[E]:"Ipv6Addresses",[S]:Jk}],[0,{[E]:"NetworkInterfaceId",[S]:h3}],[0,{[E]:"PrivateIpAddress",[S]:qc}],[()=>Ile,{[E]:"PrivateIpAddresses",[S]:b3}],[1,{[E]:"SecondaryPrivateIpAddressCount",[S]:Yoe}],[0,{[E]:"SubnetId",[S]:rS}],2,0,1,[()=>gle,{[S]:M0}],1,[()=>yle,{[S]:O0}],1,2,()=>fae,()=>Pie,1]],Zae=[3,H,HW,0,[NM],[[0,{[E]:"BandwidthWeighting",[S]:Lne}]]],Qae=[3,H,FW,0,[NM],[0]],Yae=[3,H,QW,0,[OM,sk,B0,$c],[[()=>$3,{[E]:"Association",[S]:kk}],[2,{[E]:"Primary",[S]:_3}],[0,{[E]:"PrivateDnsName",[S]:sS}],[0,{[E]:"PrivateIpAddress",[S]:qc}]]],ib=[3,H,aJ,0,[jM,So],[[1,{[E]:"Code",[S]:Hk}],[0,{[E]:"Name",[S]:wi}]]],Xae=[3,H,sJ,0,[bo,gY,Bee],[[0,{[E]:"InstanceId",[S]:eS}],[()=>ib,{[E]:"CurrentState",[S]:Wne}],[()=>ib,{[E]:"PreviousState",[S]:Toe}]]],Wae=[3,H,RD,0,[ene,tX,VD,iD],[[1,{[E]:"TotalSizeInGB",[S]:hie}],[()=>Yce,{[E]:"Disks",[S]:dse}],[0,{[E]:"NvmeSupport",[S]:m3}],[0,{[E]:"EncryptionSupport",[S]:Gk}]]],Jae=[3,H,uJ,0,[Ep,rY,fD,Lte,kte,Ute,YQ,C0,tk,_k,ma,oJ,RD,QM,jD,dD,uD,JD,_D,YX,XQ,RY,$Q,lte,hee,pee,GD,DD,HD,Lee,Wee],[[0,{[E]:"InstanceType",[S]:s3}],[2,{[E]:"CurrentGeneration",[S]:Hne}],[2,{[E]:"FreeTierEligible",[S]:Yk}],[()=>Lle,{[E]:"SupportedUsageClasses",[S]:eie}],[()=>kle,{[E]:"SupportedRootDeviceTypes",[S]:Xoe}],[()=>$le,{[E]:"SupportedVirtualizationTypes",[S]:nie}],[2,{[E]:"BareMetal",[S]:Nne}],[0,{[E]:"Hypervisor",[S]:J0}],[()=>xce,{[E]:"ProcessorInfo",[S]:woe}],[()=>$ce,{[E]:"VCpuInfo",[S]:vie}],[()=>uce,{[E]:"MemoryInfo",[S]:Hc}],[2,{[E]:"InstanceStorageSupported",[S]:xre}],[()=>Wae,{[E]:"InstanceStorageInfo",[S]:Ere}],[()=>sae,{[E]:"EbsInfo",[S]:Rse}],[()=>hce,{[E]:"NetworkInfo",[S]:loe}],[()=>_ae,{[E]:"GpuInfo",[S]:qse}],[()=>vae,{[E]:"FpgaInfo",[S]:Use}],[()=>Sce,{[E]:"PlacementGroupInfo",[S]:Soe}],[()=>Oae,{[E]:"InferenceAcceleratorInfo",[S]:rre}],[2,{[E]:"HibernationSupported",[S]:Jse}],[2,{[E]:"BurstablePerformanceSupported",[S]:zne}],[2,{[E]:"DedicatedHostsSupported",[S]:rse}],[2,{[E]:"AutoRecoverySupported",[S]:Ane}],[()=>Zce,{[E]:"SupportedBootModes",[S]:joe}],[0,{[E]:"NitroEnclavesSupport",[S]:ioe}],[0,{[E]:"NitroTpmSupport",[S]:hoe}],[()=>vce,{[E]:"NitroTpmInfo",[S]:doe}],[()=>ace,{[E]:"MediaAcceleratorInfo",[S]:qre}],[()=>yce,{[E]:"NeuronInfo",[S]:uoe}],[0,{[E]:"PhcSupport",[S]:Coe}],[0,{[E]:"RebootMigrationSupport",[S]:Poe}]]],ece=[3,H,tJ,0,[M0],[0]],tce=[3,H,nJ,0,[O0],[0]],nce=[3,H,CJ,0,[pa,ga,Nr,D0,vJ],[[0,{[E]:"KeyPairId",[S]:Ap}],[()=>va,{[E]:"TagSet",[S]:Gc}],[0,{[E]:"KeyName",[S]:Ku}],[0,{[E]:"KeyFingerprint",[S]:tS}],[()=>Iie,{[E]:"KeyMaterial",[S]:Nre}]]],sce=[3,H,xJ,0,[pa,OD,ga,Pee,UM,Nr,D0],[[0,{[E]:"KeyPairId",[S]:Ap}],[0,{[E]:"KeyType",[S]:Lre}],[()=>va,{[E]:"TagSet",[S]:Gc}],[0,{[E]:"PublicKey",[S]:Eoe}],[4,{[E]:"CreateTime",[S]:jk}],[0,{[E]:"KeyName",[S]:Ku}],[0,{[E]:"KeyFingerprint",[S]:tS}]]],rce=[3,H,BJ,0,[zJ,LJ,Ck],[0,0,0]],oce=[3,H,AJ,0,[MD],[[0,{[E]:"LicenseConfigurationArn",[S]:Bre}]]],ice=[3,H,TJ,0,[MD],[0]],ace=[3,H,DD,0,[TM,Xte],[[()=>Ele,{[E]:"Accelerators",[S]:Ok}],[1,{[E]:"TotalMediaMemoryInMiB",[S]:uie}]]],cce=[3,H,VJ,0,[bi,So,Fu,ma],[[1,{[E]:"Count",[S]:ya}],[0,{[E]:"Name",[S]:wi}],[0,{[E]:"Manufacturer",[S]:Zu}],[()=>lce,{[E]:"MemoryInfo",[S]:Hc}]]],lce=[3,H,KJ,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],uce=[3,H,ma,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],fce=[3,H,P0,0,[jc],[[0,{[E]:"State",[S]:O3}]]],dce=[3,H,iee,0,[N0,qD,ND,VQ,_ee,xY,XJ,WJ],[[1,{[E]:"NetworkCardIndex",[S]:d3}],[0,{[E]:"NetworkPerformance",[S]:p3}],[1,{[E]:"MaximumNetworkInterfaces",[S]:l3}],[1,{[E]:"BaselineBandwidthInGbps",[S]:Pne}],[1,{[E]:"PeakBandwidthInGbps",[S]:goe}],[1,{[E]:"DefaultEnaQueueCountPerInterface",[S]:sse}],[1,{[E]:"MaximumEnaQueueCount",[S]:Qre}],[1,{[E]:"MaximumEnaQueueCountPerInterface",[S]:Yre}]]],hce=[3,H,jD,0,[qD,ND,JJ,FY,ree,tW,nW,cJ,w0,OX,YM,EX,AX,JQ,zX],[[0,{[E]:"NetworkPerformance",[S]:p3}],[1,{[E]:"MaximumNetworkInterfaces",[S]:l3}],[1,{[E]:"MaximumNetworkCards",[S]:Xre}],[1,{[E]:"DefaultNetworkCardIndex",[S]:ose}],[()=>xle,{[E]:"NetworkCards",[S]:soe}],[1,{[E]:"Ipv4AddressesPerInterface",[S]:ore}],[1,{[E]:"Ipv6AddressesPerInterface",[S]:ire}],[2,{[E]:"Ipv6Supported",[S]:Ire}],[0,{[E]:"EnaSupport",[S]:X0}],[2,{[E]:"EfaSupported",[S]:Bse}],[()=>iae,{[E]:"EfaInfo",[S]:Cse}],[2,{[E]:"EncryptionInTransitSupported",[S]:xse}],[2,{[E]:"EnaSrdSupported",[S]:Nse}],[()=>Vce,{[E]:"BandwidthWeightings",[S]:Bne}],[0,{[E]:"FlexibleEnaQueuesSupport",[S]:$se}]]],pce=[3,H,cee,0,[bi,Ck],[[1,{[E]:"Count",[S]:ya}],[1,{[E]:"Version",[S]:Cie}]]],mce=[3,H,lee,0,[bi,So,aY,ma],[[1,{[E]:"Count",[S]:ya}],[0,{[E]:"Name",[S]:wi}],[()=>pce,{[E]:"CoreInfo",[S]:Vne}],[()=>gce,{[E]:"MemoryInfo",[S]:Hc}]]],gce=[3,H,fee,0,[Uc],[[1,{[E]:"SizeInMiB",[S]:Vc}]]],yce=[3,H,HD,0,[dee,Wte],[[()=>Rle,{[E]:"NeuronDevices",[S]:ooe}],[1,{[E]:"TotalNeuronDeviceMemoryInMiB",[S]:fie}]]],vce=[3,H,GD,0,[jte],[[()=>Cle,{[E]:"SupportedVersions",[S]:sie}]]],bce=[3,H,yee,0,[ZD],[0]],Op=[3,H,vee,0,[nee,ZD],[[2,{[E]:"Managed",[S]:eoe}],[0,{[E]:"Principal",[S]:moe}]]],U3=[3,H,$0,0,[h0,HQ,pD,zee,KX,nne,fte,QX,hD,d0],[[0,{[E]:"AvailabilityZoneId",[S]:Ik}],[0,{[E]:"Affinity",[S]:Dne}],[0,{[E]:"GroupName",[S]:Wk}],[1,{[E]:"PartitionNumber",[S]:Roe}],[0,{[E]:"HostId",[S]:Zse}],[0,{[E]:"Tenancy",[S]:oie}],[0,{[E]:"SpreadDomain",[S]:Foe}],[0,{[E]:"HostResourceGroupArn",[S]:Wse}],[0,{[E]:"GroupId",[S]:Xk}],[0,{[E]:"AvailabilityZone",[S]:Z0}]]],Sce=[3,H,JD,0,[Pte],[[()=>Ale,{[E]:"SupportedStrategies",[S]:Woe}]]],_ce=[3,H,Cee,0,[bD,tD,eD],[0,2,2]],wce=[3,H,Tee,0,[bD,tD,eD],[[0,{[E]:"HostnameType",[S]:tre}],[2,{[E]:"EnableResourceNameDnsARecord",[S]:Dse}],[2,{[E]:"EnableResourceNameDnsAAAARecord",[S]:Mse}]]],Ece=[3,H,Oee,0,[sk,$c],[[2,{[E]:"Primary",[S]:_3}],[0,{[E]:"PrivateIpAddress",[S]:qc}]]],xce=[3,H,tk,0,[cte,ute,dte,Fu],[[()=>qce,{[E]:"SupportedArchitectures",[S]:Uoe}],[1,{[E]:"SustainedClockSpeedInGhz",[S]:Hoe}],[()=>Nle,{[E]:"SupportedFeatures",[S]:qoe}],[0,{[E]:"Manufacturer",[S]:Zu}]]],Rce=[3,H,Ree,0,[wee,xee],[[0,{[E]:"ProductCode",[S]:yoe}],[0,{[E]:"Type",[S]:k3}]]],Cce=[3,H,Fee,0,[Hu,ms],[[()=>Yu,{[S]:bo}],[2,{[E]:"DryRun",[S]:Ns}]],1],Tce=[3,H,rte,0,[gee,j0,DX],[[0,{[E]:"OptInStatus",[S]:poe}],[0,{[E]:"RegionName",[S]:zoe}],[0,{[E]:"RegionEndpoint",[S]:Ooe}]]],j3=[3,H,ite,0,[Gee,L0,Zee,x0,mJ],[[0,{[E]:"ReservationId",[S]:Moe}],[0,{[E]:"OwnerId",[S]:g3}],[0,{[E]:"RequesterId",[S]:koe}],[()=>iS,{[E]:"GroupSet",[S]:W0}],[()=>fle,{[E]:"InstancesSet",[S]:Tp}]]],Ace=[3,H,Hee,0,[E0],[[2,{[E]:"Enabled",[S]:Zk}]],1],Ice=[3,H,qee,0,[FJ,qJ,m0,ju,Ep,SD,T0,k0,Nr,P0,$0,U0,pte,ak,Rp,rne,GM,ZM,V0,NJ,NW,mY,g0,v0,R0,DJ,zD,_0,YD,LD,_Y,CX,FD,qu,ms,wY,bW,$c,$M,EM,UD,I0,XM],[1,1,[()=>Kce,{[S]:p0}],0,0,1,[()=>aS,{[S]:A0}],0,0,[()=>Ace,0],[()=>U3,0],0,[()=>q3,{[S]:H0}],[()=>Ple,{[S]:ck}],0,[()=>Aie,0],[()=>Jce,0],[()=>tle,{[S]:KM}],[()=>lS,{[S]:Cp}],()=>rce,()=>Hae,()=>$ie,()=>Lie,()=>Oie,()=>xae,[()=>wle,{[S]:PJ}],()=>Fae,()=>pae,()=>_ce,()=>jae,2,2,()=>Qae,()=>bce,[2,{[E]:"DryRun",[S]:Ns}],[2,{[E]:"DisableApiTermination",[S]:tse}],[0,{[E]:"InstanceInitiatedShutdownBehavior",[S]:lre}],[0,{[E]:"PrivateIpAddress",[S]:qc}],[0,{[E]:"ClientToken",[Mre]:1,[S]:Uk}],[0,{[E]:"AdditionalInfo",[S]:Tk}],[()=>hle,{[E]:"NetworkInterface",[S]:coe}],[()=>Cae,{[E]:"IamInstanceProfile",[S]:t3}],[2,{[E]:"EbsOptimized",[S]:Vk}]],2],Oce=[3,H,Ote,0,[eee,Rte,ZQ,vne,hW],[0,0,1,4,0]],Mce=[3,H,_te,0,[Hu,EM,ms],[[()=>Yu,{[S]:bo}],[0,{[E]:"AdditionalInfo",[S]:Tk}],[2,{[E]:"DryRun",[S]:Ns}]],1],Dce=[3,H,wte,0,[Cte],[[()=>cS,{[E]:"InstancesSet",[S]:Tp}]]],H3=[3,H,F0,0,[jM,see],[[0,{[E]:"Code",[S]:Hk}],[0,{[E]:"Message",[S]:toe}]]],kce=[3,H,Ete,0,[Hu,XX,fk,ms,lD],[[()=>Yu,{[S]:bo}],2,2,[2,{[E]:"DryRun",[S]:Ns}],[2,{[E]:"Force",[S]:Hse}]],1],Pce=[3,H,xte,0,[Ate],[[()=>cS,{[E]:"InstancesSet",[S]:Tp}]]],Nce=[3,H,mk,0,[gJ,Sk],[[0,{[E]:"Key",[S]:Pre}],[0,{[E]:"Value",[S]:yie}]]],zce=[3,H,Cp,0,[nte,ga],[[0,{[E]:"ResourceType",[S]:Boe}],[()=>va,{[S]:mk}]]],Lce=[3,H,Kte,0,[Hu,lD,fk,ms],[[()=>Yu,{[S]:bo}],2,2,[2,{[E]:"DryRun",[S]:Ns}]],1],Bce=[3,H,Zte,0,[Qte],[[()=>cS,{[E]:"InstancesSet",[S]:Tp}]]],$ce=[3,H,_k,0,[YY,EY,ZY,cne,yne],[[1,{[E]:"DefaultVCpus",[S]:use}],[1,{[E]:"DefaultCores",[S]:nse}],[1,{[E]:"DefaultThreadsPerCore",[S]:cse}],[()=>Qce,{[E]:"ValidCores",[S]:bie}],[()=>zle,{[E]:"ValidThreadsPerCore",[S]:Rie}]]],Uce=[3,H,_ne,0,[h0,z0,$te,AD,ga,xk,BX,jJ,gk,zte,qu,Ek,Vu,Hte,lk,d0,jc,UM,qQ,cD,ID],[[0,{[E]:"AvailabilityZoneId",[S]:Ik}],[0,{[E]:"OutpostArn",[S]:nS}],[0,{[E]:"SourceVolumeId",[S]:tie}],[1,{[E]:"Iops",[S]:r3}],[()=>va,{[E]:"TagSet",[S]:Gc}],[0,{[E]:"VolumeType",[S]:z3}],[2,{[E]:"FastRestored",[S]:jse}],[2,{[E]:"MultiAttachEnabled",[S]:Fre}],[1,{[E]:"Throughput",[S]:D3}],[0,{[E]:"SseType",[S]:Joe}],[()=>Op,{[E]:"Operator",[S]:Ip}],[1,{[E]:"VolumeInitializationRate",[S]:Sie}],[0,{[E]:"VolumeId",[S]:oS}],[1,{[E]:"Size",[S]:rie}],[0,{[E]:"SnapshotId",[S]:C3}],[0,{[E]:"AvailabilityZone",[S]:Z0}],[0,{[E]:"Status",[S]:Qu}],[4,{[E]:"CreateTime",[S]:jk}],[()=>Ule,{[E]:"AttachmentSet",[S]:Mne}],[2,{[E]:"Encrypted",[S]:Qk}],[0,{[E]:"KmsKeyId",[S]:i3}]]],jce=[3,H,ane,0,[Uu,xM,GW,wp,Vu,bo,eX,jc,f0],[[2,{[E]:"DeleteOnTermination",[S]:Gu}],[0,{[E]:"AssociatedResource",[S]:Ak}],[0,{[E]:"InstanceOwningService",[S]:gre}],[1,{[E]:"EbsCardIndex",[S]:Y0}],[0,{[E]:"VolumeId",[S]:oS}],[0,{[E]:"InstanceId",[S]:eS}],[0,{[E]:"Device",[S]:fse}],[0,{[E]:"Status",[S]:Qu}],[4,{[E]:"AttachTime",[S]:K0}]]],Hce="unit",Fce=[-3,I3,"EC2ServiceException",0,[],[]];Mt.for(I3).registerError(Fce,u0);var qce=[1,H,jQ,0,[0,{[S]:je}]],Vce=[1,H,WQ,0,[0,{[S]:je}]],Gce=[1,H,GQ,0,[()=>B3,{[S]:je}]],Kce=[1,H,KQ,0,[()=>B3,{[S]:p0}]],Zce=[1,H,QQ,0,[0,{[S]:je}]],Qce=[1,H,tY,0,[1,{[S]:je}]],Yce=[1,H,CY,0,[()=>eae,{[S]:je}]],Xce=[1,H,rX,0,[()=>nae,{[S]:je}]],Wce=[1,H,lX,0,[()=>aae,{[S]:je}]],Jce=[1,H,pX,0,[()=>cae,{[S]:je}]],ele=[1,H,yX,0,[()=>uae,{[S]:je}]],tle=[1,H,ZM,0,[()=>lae,{[S]:je}]],nle=[1,H,sX,0,[0,{[S]:VM}]],Kc=[1,H,LX,0,[()=>mae,{[S]:Si}]],sle=[1,H,PX,0,[()=>gae,{[S]:je}]],rle=[1,H,jX,0,[()=>bae,{[S]:je}]],iS=[1,H,FX,0,[()=>wae,{[S]:je}]],ole=[1,H,SW,0,[0,{[S]:ju}]],ile=[1,H,TW,0,[()=>Tae,{[S]:je}]],ale=[1,H,cW,0,[()=>Mae,0]],cle=[1,H,oW,0,[()=>zae,{[S]:je}]],Yu=[1,H,_W,0,[0,{[S]:bo}]],lle=[1,H,pW,0,[()=>Lae,{[S]:je}]],aS=[1,H,dW,0,[()=>Bae,{[S]:je}]],ule=[1,H,mW,0,[()=>$ae,{[S]:je}]],fle=[1,H,IW,0,[()=>kae,{[S]:je}]],dle=[1,H,$W,0,[()=>Vae,{[S]:je}]],hle=[1,H,jW,0,[()=>Kae,{[S]:je}]],ple=[1,H,YW,0,[()=>Yae,{[S]:je}]],cS=[1,H,rJ,0,[()=>Xae,{[S]:je}]],mle=[1,H,lJ,0,[()=>Jae,{[S]:je}]],gle=[1,H,JW,0,[()=>ece,{[S]:je}]],yle=[1,H,eJ,0,[()=>tce,{[S]:je}]],vle=[1,H,bJ,0,[0,{[S]:Nr}]],ble=[1,H,wJ,0,[0,{[S]:pa}]],Sle=[1,H,RJ,0,[()=>sce,{[S]:je}]],_le=[1,H,OJ,0,[()=>oce,{[S]:je}]],wle=[1,H,kJ,0,[()=>ice,{[S]:je}]],Ele=[1,H,GJ,0,[()=>cce,{[S]:je}]],xle=[1,H,oee,0,[()=>dce,{[S]:je}]],Rle=[1,H,uee,0,[()=>mce,{[S]:je}]],Cle=[1,H,mee,0,[0,{[S]:je}]],Tle=[1,H,bee,0,[0,{[S]:KD}]],Ale=[1,H,Aee,0,[0,{[S]:je}]],Ile=[1,H,Mee,0,[()=>Ece,{[S]:je}]],F3=[1,H,Eee,0,[()=>Rce,{[S]:je}]],Ole=[1,H,Yee,0,[()=>Tce,{[S]:je}]],Mle=[1,H,ete,0,[0,{[S]:j0}]],Dle=[1,H,Xee,0,[()=>j3,{[S]:je}]],kle=[1,H,jee,0,[0,{[S]:je}]],q3=[1,H,hte,0,[0,{[S]:H0}]],Ple=[1,H,mte,0,[0,{[S]:ck}]],Nle=[1,H,ate,0,[0,{[S]:je}]],va=[1,H,Yte,0,[()=>Nce,{[S]:je}]],lS=[1,H,tne,0,[()=>zce,{[S]:je}]],zle=[1,H,Jte,0,[1,{[S]:je}]],Lle=[1,H,sne,0,[0,{[S]:je}]],Ble=[1,H,pne,0,[0,{[S]:je}]],$le=[1,H,gne,0,[0,{[S]:je}]],Ule=[1,H,ine,0,[()=>jce,{[S]:je}]],jle=[1,H,lne,0,[0,{[S]:Vu}]],Hle=[1,H,fne,0,[()=>Uce,{[S]:je}]],Fle=[1,H,wne,0,[0,{[S]:je}]],Hge=[9,H,cY,0,()=>Bie,()=>nce],Fge=[9,H,LY,0,()=>Uie,()=>jie],qle=[9,H,PY,0,()=>Hie,()=>Fie],Vle=[9,H,NY,0,()=>qie,()=>Vie],Gle=[9,H,kY,0,()=>Gie,()=>Kie],Kle=[9,H,HY,0,()=>Zie,()=>Qie],Zle=[9,H,KY,0,()=>Yie,()=>Xie],Qle=[9,H,JY,0,()=>Wie,()=>Jie],qge=[9,H,EW,0,()=>Aae,()=>Iae],Vge=[9,H,Kee,0,()=>Cce,()=>Hce],Gge=[9,H,Qee,0,()=>Ice,()=>j3],Kge=[9,H,Tte,0,()=>Mce,()=>Dce],Zge=[9,H,Ite,0,()=>kce,()=>Pce],Qge=[9,H,Vte,0,()=>Lce,()=>Bce];class V3 extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeImages",{}).n("EC2Client","DescribeImagesCommand").sc(qle).build(){}class G3 extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstances",{}).n("EC2Client","DescribeInstancesCommand").sc(Vle).build(){}class Yle extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeInstanceTypes",{}).n("EC2Client","DescribeInstanceTypesCommand").sc(Gle).build(){}class K3 extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeKeyPairs",{}).n("EC2Client","DescribeKeyPairsCommand").sc(Kle).build(){}class Xle extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeRegions",{}).n("EC2Client","DescribeRegionsCommand").sc(Zle).build(){}class Z3 extends Pr.classBuilder().ep(zc).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions())]}).s("AmazonEC2","DescribeVolumes",{}).n("EC2Client","DescribeVolumesCommand").sc(Qle).build(){}function Wle(e){return t=>async n=>{const{request:r}=n;if(e.expectContinueHeader!==!1&&On.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof e.expectContinueHeader=="number")try{i=(Number(r.headers?.["content-length"])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else i=!!e.expectContinueHeader;i&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}const Jle={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},eue=e=>({applyToStack:t=>{t.add(Wle(e),Jle)}}),Q3={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},tue=Q3.WHEN_SUPPORTED,Yge={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},nue=Q3.WHEN_SUPPORTED;var ab;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(ab||(ab={}));var AC;(function(e){e.HEADER="header",e.TRAILER="trailer"})(AC||(AC={}));const Xge=ab.CRC32;var Wge=(function(){function e(){this.crc32=new Lh}return e.prototype.update=function(t){zh(t)||this.crc32.update(ca(t))},e.prototype.digest=function(){return uM(this,void 0,void 0,function(){return fM(this,function(t){return[2,aQ(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Lh},e})(),Lh=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=dQ(t),c=i.next();!c.done;c=i.next()){var l=c.value;this.checksum=this.checksum>>>8^rue[(this.checksum^l)&255]}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})(),sue=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],rue=cQ(sue);const oue=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Ds(t??tue),responseChecksumValidation:Ds(n??nue),requestStreamBufferSize:Number(r??0)})},iue=e=>(t,n)=>async r=>{const i=await e.region(),c=e.region;let l=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),l=()=>Object.defineProperty(e,"region",{writable:!0,value:c}));try{const f=await t(r);if(n.__s3RegionRedirect){l();const d=await e.region();if(i!==d)throw new Error("Region was not restored following S3 region redirect.")}return f}catch(f){throw l(),f}},aue={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function cue(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){const c=i?.$metadata?.httpStatusCode,l=n.commandName==="HeadBucketCommand",f=i?.$response?.headers?.["x-amz-bucket-region"];if(f&&(c===301||c===400&&(i?.name==="IllegalLocationConstraintException"||l))){try{const d=f;n.logger?.debug(`Redirecting from ${await e.region()} to ${d}`),n.__s3RegionRedirect=d}catch(d){throw new Error("Region redirect failed: "+d)}return t(r)}}throw i}}}const lue={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},uue=e=>({applyToStack:t=>{t.add(cue(e),lue),t.addRelativeTo(iue(e),aue)}});class uS{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+uS.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const i=await r.identity;i.expiration&&i.expiration.getTime()(l.expiration?.getTime()??0){i.set(r,new tv(Promise.resolve(h)))})),l)):i.set(r,new tv(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(i=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+i)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}const fue="Directory",due="S3Express",hue="sigv4-s3express",pue="X-Amz-S3session-Token",mue=pue.toLowerCase(),gue=e=>(t,n)=>async r=>{if(n.endpointV2){const i=n.endpointV2,c=i.properties?.authSchemes?.[0]?.name===hue;if((i.properties?.backend===due||i.properties?.bucketType===fue)&&(mr(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),c){const f=r.input.Bucket;if(f){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=d,On.isInstance(r.request)&&d.sessionToken&&(r.request.headers[mue]=d.sessionToken)}}}return t(r)},yue={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},vue=e=>({applyToStack:t=>{t.add(gue(e),yue)}}),bue=async(e,t,n,r)=>{const i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},Sue=e=>t=>{throw t},_ue=(e,t)=>{},wue=e=>(t,n)=>async r=>{if(!On.isInstance(r.request))return t(r);const c=yo(n).selectedHttpAuthScheme;if(!c)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:f,signer:d}=c;let h;n.s3ExpressIdentity?h=await bue(n.s3ExpressIdentity,l,r.request,await e.signer()):h=await d.sign(r.request,f,l);const y=await t({...r,request:h}).catch((d.errorHandler||Sue)(l));return(d.successHandler||_ue)(y.response,l),y},Eue=e=>({applyToStack:t=>{t.addRelativeTo(wue(e),W2)}}),xue=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:c,disableMultiregionAccessPoints:l,followRegionRedirects:f,s3ExpressIdentityProvider:d,bucketEndpoint:h,expectContinueHeader:y}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:c??!1,disableMultiregionAccessPoints:l??!1,followRegionRedirects:f??!1,s3ExpressIdentityProvider:d??new fS(async g=>n().send(new r({Bucket:g}))),bucketEndpoint:h??!1,expectContinueHeader:y??2097152})},Rue={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Cue=3e3,Tue=e=>(t,n)=>async r=>{const i=await t(r),{response:c}=i;if(!ia.isInstance(c))return i;const{statusCode:l,body:f}=c;if(l<200||l>=300||!(typeof f?.stream=="function"||typeof f?.pipe=="function"||typeof f?.tee=="function"))return i;let h=f,y=f;f&&typeof f=="object"&&!(f instanceof Uint8Array)&&([h,y]=await qV(f)),c.body=y;const g=await Aue(h,{streamCollector:async b=>LV(b,Cue)});typeof h?.destroy=="function"&&h.destroy();const v=e.utf8Encoder(g.subarray(g.length-16));if(g.length===0&&Rue[n.commandName]){const b=new Error("S3 aborted request");throw b.name="InternalError",b}return v&&v.endsWith("")&&(c.statusCode=400),i},Aue=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Iue={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},dS=e=>({applyToStack:t=>{t.addRelativeTo(Tue(e),Iue)}}),Oue=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function Mue(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const i=n.endpointV2;if(i){const c=r.input.Bucket;if(typeof c=="string")try{const l=new URL(c);n.endpointV2={...i,url:l}}catch(l){const f=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${c} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(f):n.logger?.warn?.(f),l}}}return t(r)}}const Due={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function kue({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!Oue(r)&&r.indexOf("/")>=0){const i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}const Pue={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Nue=e=>({applyToStack:t=>{t.add(kue(e),Pue),t.addRelativeTo(Mue(e),Due)}}),zue=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),cb="X-Amz-S3session-Token",IC=cb.toLowerCase();class Lue extends nb{async signWithCredentials(t,n,r){const i=OC(n);t.headers[IC]=n.sessionToken;const c=this;return MC(c,i),c.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const i=OC(n);return delete t.headers[IC],t.headers[cb]=n.sessionToken,t.query=t.query??{},t.query[cb]=n.sessionToken,MC(this,i),this.presign(t,r)}}function OC(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function MC(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}class Y3{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new Lue(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const hS="required",M="type",ce="rules",L="conditions",J="fn",ee="argv",De="ref",We="assign",we="url",Ee="properties",co="backend",In="authSchemes",fn="disableDoubleEncoding",dn="signingName",Bn="signingRegion",xe="headers",pS="signingRegionSet",Bue=6,$ue=!1,Er=!0,Os="isSet",en="booleanEquals",Te="error",Bh="aws.partition",pt="stringEquals",Ft="getAttr",Vt="name",kt="substring",DC="bucketSuffix",mS="parseURL",me="endpoint",ue="tree",$h="aws.isVirtualHostableS3Bucket",Uh="{url#scheme}://{Bucket}.{url#authority}{url#path}",Or="not",kC="accessPointSuffix",sh="{url#scheme}://{url#authority}{url#path}",X3="hardwareType",W3="regionPrefix",PC="bucketAliasSuffix",lb="outpostId",ba="isValidHostLabel",gS="sigv4a",Du="s3-outposts",Oc="s3",J3="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",eP="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",NC="https://{Bucket}.s3.{partitionResult#dnsSuffix}",tP="aws.parseArn",nP="bucketArn",sP="arnType",jh="",yS="s3-object-lambda",rP="accesspoint",vS="accessPointName",zC="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",LC="mrapPartition",BC="outpostType",$C="arnPrefix",oP="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",UC="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",jC="https://s3.{partitionResult#dnsSuffix}",cc={[hS]:!1,[M]:"string"},lc={[hS]:!0,default:!1,[M]:"boolean"},Wl={[hS]:!1,[M]:"boolean"},Js={[J]:en,[ee]:[{[De]:"Accelerate"},!0]},Nt={[J]:en,[ee]:[{[De]:"UseFIPS"},!0]},Ot={[J]:en,[ee]:[{[De]:"UseDualStack"},!0]},Wt={[J]:Os,[ee]:[{[De]:"Endpoint"}]},iP={[J]:Bh,[ee]:[{[De]:"Region"}],[We]:"partitionResult"},HC={[J]:pt,[ee]:[{[J]:Ft,[ee]:[{[De]:"partitionResult"},Vt]},"aws-cn"]},fu={[J]:Os,[ee]:[{[De]:"Bucket"}]},dt={[De]:"Bucket"},FC={[L]:[Js],[Te]:"S3Express does not support S3 Accelerate.",[M]:Te},qC={[L]:[Wt,{[J]:mS,[ee]:[{[De]:"Endpoint"}],[We]:"url"}],[ce]:[{[L]:[{[J]:Os,[ee]:[{[De]:"DisableS3ExpressSessionAuth"}]},{[J]:en,[ee]:[{[De]:"DisableS3ExpressSessionAuth"},!0]}],[ce]:[{[L]:[{[J]:en,[ee]:[{[J]:Ft,[ee]:[{[De]:"url"},"isIp"]},!0]}],[ce]:[{[L]:[{[J]:"uriEncode",[ee]:[dt],[We]:"uri_encoded_bucket"}],[ce]:[{[me]:{[we]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me}],[M]:ue}],[M]:ue},{[L]:[{[J]:$h,[ee]:[dt,!1]}],[ce]:[{[me]:{[we]:Uh,[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me}],[M]:ue},{[Te]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Te}],[M]:ue},{[L]:[{[J]:en,[ee]:[{[J]:Ft,[ee]:[{[De]:"url"},"isIp"]},!0]}],[ce]:[{[L]:[{[J]:"uriEncode",[ee]:[dt],[We]:"uri_encoded_bucket"}],[ce]:[{[me]:{[we]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me}],[M]:ue}],[M]:ue},{[L]:[{[J]:$h,[ee]:[dt,!1]}],[ce]:[{[me]:{[we]:Uh,[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me}],[M]:ue},{[Te]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Te}],[M]:ue},Jn={[J]:mS,[ee]:[{[De]:"Endpoint"}],[We]:"url"},nv={[J]:en,[ee]:[{[J]:Ft,[ee]:[{[De]:"url"},"isIp"]},!0]},aP={[De]:"url"},cP={[J]:"uriEncode",[ee]:[dt],[We]:"uri_encoded_bucket"},Ts={[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:"s3express",[Bn]:"{Region}"}]},qe={},lP={[J]:$h,[ee]:[dt,!1]},VC={[Te]:"S3Express bucket name is not a valid virtual hostable name.",[M]:Te},GC={[J]:Os,[ee]:[{[De]:"UseS3ExpressControlEndpoint"}]},KC={[J]:en,[ee]:[{[De]:"UseS3ExpressControlEndpoint"},!0]},Ke={[J]:Or,[ee]:[Wt]},rt={[J]:en,[ee]:[{[De]:"UseDualStack"},!1]},et={[J]:en,[ee]:[{[De]:"UseFIPS"},!1]},qd={[Te]:"Unrecognized S3Express bucket name format.",[M]:Te},ZC={[J]:Or,[ee]:[fu]},QC={[De]:X3},YC={[L]:[Ke],[Te]:"Expected a endpoint to be specified but no endpoint was found",[M]:Te},Vd={[In]:[{[fn]:!0,[Vt]:gS,[dn]:Du,[pS]:["*"]},{[fn]:!0,[Vt]:"sigv4",[dn]:Du,[Bn]:"{Region}"}]},sv={[J]:en,[ee]:[{[De]:"ForcePathStyle"},!1]},Uue={[De]:"ForcePathStyle"},cn={[J]:en,[ee]:[{[De]:"Accelerate"},!1]},Sn={[J]:pt,[ee]:[{[De]:"Region"},"aws-global"]},Cn={[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:Oc,[Bn]:"us-east-1"}]},lt={[J]:Or,[ee]:[Sn]},Tn={[J]:en,[ee]:[{[De]:"UseGlobalEndpoint"},!0]},XC={[we]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:{[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:Oc,[Bn]:"{Region}"}]},[xe]:{}},pn={[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:Oc,[Bn]:"{Region}"}]},An={[J]:en,[ee]:[{[De]:"UseGlobalEndpoint"},!1]},WC={[we]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},JC={[we]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},eT={[we]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},rv={[J]:en,[ee]:[{[J]:Ft,[ee]:[aP,"isIp"]},!1]},ov={[we]:J3,[Ee]:pn,[xe]:{}},ub={[we]:Uh,[Ee]:pn,[xe]:{}},tT={[me]:ub,[M]:me},iv={[we]:eP,[Ee]:pn,[xe]:{}},nT={[we]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},Gd={[Te]:"Invalid region: region was not a valid DNS name.",[M]:Te},ds={[De]:nP},uP={[De]:sP},av={[J]:Ft,[ee]:[ds,"service"]},bS={[De]:vS},sT={[L]:[Ot],[Te]:"S3 Object Lambda does not support Dual-stack",[M]:Te},rT={[L]:[Js],[Te]:"S3 Object Lambda does not support S3 Accelerate",[M]:Te},oT={[L]:[{[J]:Os,[ee]:[{[De]:"DisableAccessPoints"}]},{[J]:en,[ee]:[{[De]:"DisableAccessPoints"},!0]}],[Te]:"Access points are not supported for this operation",[M]:Te},cv={[L]:[{[J]:Os,[ee]:[{[De]:"UseArnRegion"}]},{[J]:en,[ee]:[{[De]:"UseArnRegion"},!1]},{[J]:Or,[ee]:[{[J]:pt,[ee]:[{[J]:Ft,[ee]:[ds,"region"]},"{Region}"]}]}],[Te]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[M]:Te},fP={[J]:Ft,[ee]:[{[De]:"bucketPartition"},Vt]},dP={[J]:Ft,[ee]:[ds,"accountId"]},lv={[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:yS,[Bn]:"{bucketArn#region}"}]},iT={[Te]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[M]:Te},uv={[Te]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[M]:Te},fv={[Te]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[M]:Te},dv={[Te]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[M]:Te},aT={[Te]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[M]:Te},cT={[Te]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[M]:Te},Jl={[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:Oc,[Bn]:"{bucketArn#region}"}]},lT={[In]:[{[fn]:!0,[Vt]:gS,[dn]:Du,[pS]:["*"]},{[fn]:!0,[Vt]:"sigv4",[dn]:Du,[Bn]:"{bucketArn#region}"}]},uT={[J]:tP,[ee]:[dt]},fT={[we]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:pn,[xe]:{}},dT={[we]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:pn,[xe]:{}},hT={[we]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:pn,[xe]:{}},hv={[we]:oP,[Ee]:pn,[xe]:{}},pT={[we]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:pn,[xe]:{}},mT={[De]:"UseObjectLambdaEndpoint"},pv={[In]:[{[fn]:!0,[Vt]:"sigv4",[dn]:yS,[Bn]:"{Region}"}]},gT={[we]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},yT={[we]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},vT={[we]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},mv={[we]:sh,[Ee]:pn,[xe]:{}},bT={[we]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Ee]:pn,[xe]:{}},gv=[{[De]:"Region"}],jue=[{[De]:"Endpoint"}],Hue=[dt],yv=[Js],uc=[Wt,Jn],ST=[{[J]:Os,[ee]:[{[De]:"DisableS3ExpressSessionAuth"}]},{[J]:en,[ee]:[{[De]:"DisableS3ExpressSessionAuth"},!0]}],Fue=[cP],vv=[lP],Xs=[iP],bv=[Nt,Ot],du=[Nt,rt],hu=[et,Ot],pu=[et,rt],_T=[{[J]:kt,[ee]:[dt,6,14,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,14,16,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],xr=[{[L]:[Nt,Ot],[me]:{[we]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:{}},[M]:me},{[L]:du,[me]:{[we]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:{}},[M]:me},{[L]:hu,[me]:{[we]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:{}},[M]:me},{[L]:pu,[me]:{[we]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:{}},[M]:me}],wT=[{[J]:kt,[ee]:[dt,6,15,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],ET=[{[J]:kt,[ee]:[dt,6,19,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,19,21,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],xT=[{[J]:kt,[ee]:[dt,6,20,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],RT=[{[J]:kt,[ee]:[dt,6,26,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,26,28,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],Rr=[{[L]:[Nt,Ot],[me]:{[we]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me},{[L]:du,[me]:{[we]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me},{[L]:hu,[me]:{[we]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me},{[L]:pu,[me]:{[we]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[Ee]:{[co]:"S3Express",[In]:[{[fn]:!0,[Vt]:"sigv4-s3express",[dn]:"s3express",[Bn]:"{Region}"}]},[xe]:{}},[M]:me}],CT=[dt,0,7,!0],TT=[{[J]:kt,[ee]:[dt,7,15,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,15,17,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],AT=[{[J]:kt,[ee]:[dt,7,16,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,16,18,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],IT=[{[J]:kt,[ee]:[dt,7,20,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,20,22,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],OT=[{[J]:kt,[ee]:[dt,7,21,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,21,23,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],MT=[{[J]:kt,[ee]:[dt,7,27,!0],[We]:"s3expressAvailabilityZoneId"},{[J]:kt,[ee]:[dt,27,29,!0],[We]:"s3expressAvailabilityZoneDelim"},{[J]:pt,[ee]:[{[De]:"s3expressAvailabilityZoneDelim"},"--"]}],que=[fu],DT=[{[J]:ba,[ee]:[{[De]:lb},!1]}],kT=[{[J]:pt,[ee]:[{[De]:W3},"beta"]}],Vue=["*"],PT=[{[J]:ba,[ee]:[{[De]:"Region"},!1]}],Yo=[{[J]:pt,[ee]:[{[De]:"Region"},"us-east-1"]}],Sv=[{[J]:pt,[ee]:[uP,rP]}],NT=[{[J]:Ft,[ee]:[ds,"resourceId[1]"],[We]:vS},{[J]:Or,[ee]:[{[J]:pt,[ee]:[bS,jh]}]}],Gue=[ds,"resourceId[1]"],zT=[Ot],_v=[{[J]:Or,[ee]:[{[J]:pt,[ee]:[{[J]:Ft,[ee]:[ds,"region"]},jh]}]}],LT=[{[J]:Or,[ee]:[{[J]:Os,[ee]:[{[J]:Ft,[ee]:[ds,"resourceId[2]"]}]}]}],Kue=[ds,"resourceId[2]"],wv=[{[J]:Bh,[ee]:[{[J]:Ft,[ee]:[ds,"region"]}],[We]:"bucketPartition"}],BT=[{[J]:pt,[ee]:[fP,{[J]:Ft,[ee]:[{[De]:"partitionResult"},Vt]}]}],Ev=[{[J]:ba,[ee]:[{[J]:Ft,[ee]:[ds,"region"]},!0]}],xv=[{[J]:ba,[ee]:[dP,!1]}],$T=[{[J]:ba,[ee]:[bS,!1]}],Kd=[Nt],UT=[{[J]:ba,[ee]:[{[De]:"Region"},!0]}],Zue={parameters:{Bucket:cc,Region:cc,UseFIPS:lc,UseDualStack:lc,Endpoint:cc,ForcePathStyle:lc,Accelerate:lc,UseGlobalEndpoint:lc,UseObjectLambdaEndpoint:Wl,Key:cc,Prefix:cc,CopySource:cc,DisableAccessPoints:Wl,DisableMultiRegionAccessPoints:lc,UseArnRegion:Wl,UseS3ExpressControlEndpoint:Wl,DisableS3ExpressSessionAuth:Wl},[ce]:[{[L]:[{[J]:Os,[ee]:gv}],[ce]:[{[L]:[Js,Nt],error:"Accelerate cannot be used with FIPS",[M]:Te},{[L]:[Ot,Wt],error:"Cannot set dual-stack in combination with a custom endpoint.",[M]:Te},{[L]:[Wt,Nt],error:"A custom endpoint cannot be combined with FIPS",[M]:Te},{[L]:[Wt,Js],error:"A custom endpoint cannot be combined with S3 Accelerate",[M]:Te},{[L]:[Nt,iP,HC],error:"Partition does not support FIPS",[M]:Te},{[L]:[fu,{[J]:kt,[ee]:[dt,0,Bue,Er],[We]:DC},{[J]:pt,[ee]:[{[De]:DC},"--x-s3"]}],[ce]:[FC,qC,{[L]:[GC,KC],[ce]:[{[L]:Xs,[ce]:[{[L]:[cP,Ke],[ce]:[{[L]:bv,endpoint:{[we]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:du,endpoint:{[we]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:hu,endpoint:{[we]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:pu,endpoint:{[we]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Ts,[xe]:qe},[M]:me}],[M]:ue}],[M]:ue}],[M]:ue},{[L]:vv,[ce]:[{[L]:Xs,[ce]:[{[L]:ST,[ce]:[{[L]:_T,[ce]:xr,[M]:ue},{[L]:wT,[ce]:xr,[M]:ue},{[L]:ET,[ce]:xr,[M]:ue},{[L]:xT,[ce]:xr,[M]:ue},{[L]:RT,[ce]:xr,[M]:ue},qd],[M]:ue},{[L]:_T,[ce]:Rr,[M]:ue},{[L]:wT,[ce]:Rr,[M]:ue},{[L]:ET,[ce]:Rr,[M]:ue},{[L]:xT,[ce]:Rr,[M]:ue},{[L]:RT,[ce]:Rr,[M]:ue},qd],[M]:ue}],[M]:ue},VC],[M]:ue},{[L]:[fu,{[J]:kt,[ee]:CT,[We]:kC},{[J]:pt,[ee]:[{[De]:kC},"--xa-s3"]}],[ce]:[FC,qC,{[L]:vv,[ce]:[{[L]:Xs,[ce]:[{[L]:ST,[ce]:[{[L]:TT,[ce]:xr,[M]:ue},{[L]:AT,[ce]:xr,[M]:ue},{[L]:IT,[ce]:xr,[M]:ue},{[L]:OT,[ce]:xr,[M]:ue},{[L]:MT,[ce]:xr,[M]:ue},qd],[M]:ue},{[L]:TT,[ce]:Rr,[M]:ue},{[L]:AT,[ce]:Rr,[M]:ue},{[L]:IT,[ce]:Rr,[M]:ue},{[L]:OT,[ce]:Rr,[M]:ue},{[L]:MT,[ce]:Rr,[M]:ue},qd],[M]:ue}],[M]:ue},VC],[M]:ue},{[L]:[ZC,GC,KC],[ce]:[{[L]:Xs,[ce]:[{[L]:uc,endpoint:{[we]:sh,[Ee]:Ts,[xe]:qe},[M]:me},{[L]:bv,endpoint:{[we]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:du,endpoint:{[we]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:hu,endpoint:{[we]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:qe},[M]:me},{[L]:pu,endpoint:{[we]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[Ee]:Ts,[xe]:qe},[M]:me}],[M]:ue}],[M]:ue},{[L]:[fu,{[J]:kt,[ee]:[dt,49,50,Er],[We]:X3},{[J]:kt,[ee]:[dt,8,12,Er],[We]:W3},{[J]:kt,[ee]:CT,[We]:PC},{[J]:kt,[ee]:[dt,32,49,Er],[We]:lb},{[J]:Bh,[ee]:gv,[We]:"regionPartition"},{[J]:pt,[ee]:[{[De]:PC},"--op-s3"]}],[ce]:[{[L]:DT,[ce]:[{[L]:vv,[ce]:[{[L]:[{[J]:pt,[ee]:[QC,"e"]}],[ce]:[{[L]:kT,[ce]:[YC,{[L]:uc,endpoint:{[we]:"https://{Bucket}.ec2.{url#authority}",[Ee]:Vd,[xe]:qe},[M]:me}],[M]:ue},{endpoint:{[we]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ee]:Vd,[xe]:qe},[M]:me}],[M]:ue},{[L]:[{[J]:pt,[ee]:[QC,"o"]}],[ce]:[{[L]:kT,[ce]:[YC,{[L]:uc,endpoint:{[we]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Ee]:Vd,[xe]:qe},[M]:me}],[M]:ue},{endpoint:{[we]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Ee]:Vd,[xe]:qe},[M]:me}],[M]:ue},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[M]:Te}],[M]:ue},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[M]:Te}],[M]:ue},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[M]:Te}],[M]:ue},{[L]:que,[ce]:[{[L]:[Wt,{[J]:Or,[ee]:[{[J]:Os,[ee]:[{[J]:mS,[ee]:jue}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[M]:Te},{[L]:[sv,lP],[ce]:[{[L]:Xs,[ce]:[{[L]:PT,[ce]:[{[L]:[Js,HC],error:"S3 Accelerate cannot be used in this region",[M]:Te},{[L]:[Ot,Nt,cn,Ke,Sn],endpoint:{[we]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Ot,Nt,cn,Ke,lt,Tn],[ce]:[{endpoint:XC,[M]:me}],[M]:ue},{[L]:[Ot,Nt,cn,Ke,lt,An],endpoint:XC,[M]:me},{[L]:[rt,Nt,cn,Ke,Sn],endpoint:{[we]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,Nt,cn,Ke,lt,Tn],[ce]:[{endpoint:WC,[M]:me}],[M]:ue},{[L]:[rt,Nt,cn,Ke,lt,An],endpoint:WC,[M]:me},{[L]:[Ot,et,Js,Ke,Sn],endpoint:{[we]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Ot,et,Js,Ke,lt,Tn],[ce]:[{endpoint:JC,[M]:me}],[M]:ue},{[L]:[Ot,et,Js,Ke,lt,An],endpoint:JC,[M]:me},{[L]:[Ot,et,cn,Ke,Sn],endpoint:{[we]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Ot,et,cn,Ke,lt,Tn],[ce]:[{endpoint:eT,[M]:me}],[M]:ue},{[L]:[Ot,et,cn,Ke,lt,An],endpoint:eT,[M]:me},{[L]:[rt,et,cn,Wt,Jn,nv,Sn],endpoint:{[we]:J3,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,et,cn,Wt,Jn,rv,Sn],endpoint:{[we]:Uh,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,et,cn,Wt,Jn,nv,lt,Tn],[ce]:[{[L]:Yo,endpoint:ov,[M]:me},{endpoint:ov,[M]:me}],[M]:ue},{[L]:[rt,et,cn,Wt,Jn,rv,lt,Tn],[ce]:[{[L]:Yo,endpoint:ub,[M]:me},tT],[M]:ue},{[L]:[rt,et,cn,Wt,Jn,nv,lt,An],endpoint:ov,[M]:me},{[L]:[rt,et,cn,Wt,Jn,rv,lt,An],endpoint:ub,[M]:me},{[L]:[rt,et,Js,Ke,Sn],endpoint:{[we]:eP,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,et,Js,Ke,lt,Tn],[ce]:[{[L]:Yo,endpoint:iv,[M]:me},{endpoint:iv,[M]:me}],[M]:ue},{[L]:[rt,et,Js,Ke,lt,An],endpoint:iv,[M]:me},{[L]:[rt,et,cn,Ke,Sn],endpoint:{[we]:NC,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,et,cn,Ke,lt,Tn],[ce]:[{[L]:Yo,endpoint:{[we]:NC,[Ee]:pn,[xe]:qe},[M]:me},{endpoint:nT,[M]:me}],[M]:ue},{[L]:[rt,et,cn,Ke,lt,An],endpoint:nT,[M]:me}],[M]:ue},Gd],[M]:ue}],[M]:ue},{[L]:[Wt,Jn,{[J]:pt,[ee]:[{[J]:Ft,[ee]:[aP,"scheme"]},"http"]},{[J]:$h,[ee]:[dt,Er]},sv,et,rt,cn],[ce]:[{[L]:Xs,[ce]:[{[L]:PT,[ce]:[tT],[M]:ue},Gd],[M]:ue}],[M]:ue},{[L]:[sv,{[J]:tP,[ee]:Hue,[We]:nP}],[ce]:[{[L]:[{[J]:Ft,[ee]:[ds,"resourceId[0]"],[We]:sP},{[J]:Or,[ee]:[{[J]:pt,[ee]:[uP,jh]}]}],[ce]:[{[L]:[{[J]:pt,[ee]:[av,yS]}],[ce]:[{[L]:Sv,[ce]:[{[L]:NT,[ce]:[sT,rT,{[L]:_v,[ce]:[oT,{[L]:LT,[ce]:[cv,{[L]:wv,[ce]:[{[L]:Xs,[ce]:[{[L]:BT,[ce]:[{[L]:Ev,[ce]:[{[L]:[{[J]:pt,[ee]:[dP,jh]}],error:"Invalid ARN: Missing account id",[M]:Te},{[L]:xv,[ce]:[{[L]:$T,[ce]:[{[L]:uc,endpoint:{[we]:zC,[Ee]:lv,[xe]:qe},[M]:me},{[L]:Kd,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:lv,[xe]:qe},[M]:me},{endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:lv,[xe]:qe},[M]:me}],[M]:ue},iT],[M]:ue},uv],[M]:ue},fv],[M]:ue},dv],[M]:ue}],[M]:ue}],[M]:ue},aT],[M]:ue},{error:"Invalid ARN: bucket ARN is missing a region",[M]:Te}],[M]:ue},cT],[M]:ue},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[M]:Te}],[M]:ue},{[L]:Sv,[ce]:[{[L]:NT,[ce]:[{[L]:_v,[ce]:[{[L]:Sv,[ce]:[{[L]:_v,[ce]:[oT,{[L]:LT,[ce]:[cv,{[L]:wv,[ce]:[{[L]:Xs,[ce]:[{[L]:[{[J]:pt,[ee]:[fP,"{partitionResult#name}"]}],[ce]:[{[L]:Ev,[ce]:[{[L]:[{[J]:pt,[ee]:[av,Oc]}],[ce]:[{[L]:xv,[ce]:[{[L]:$T,[ce]:[{[L]:yv,error:"Access Points do not support S3 Accelerate",[M]:Te},{[L]:bv,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:Jl,[xe]:qe},[M]:me},{[L]:du,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:Jl,[xe]:qe},[M]:me},{[L]:hu,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:Jl,[xe]:qe},[M]:me},{[L]:[et,rt,Wt,Jn],endpoint:{[we]:zC,[Ee]:Jl,[xe]:qe},[M]:me},{[L]:pu,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:Jl,[xe]:qe},[M]:me}],[M]:ue},iT],[M]:ue},uv],[M]:ue},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[M]:Te}],[M]:ue},fv],[M]:ue},dv],[M]:ue}],[M]:ue}],[M]:ue},aT],[M]:ue}],[M]:ue}],[M]:ue},{[L]:[{[J]:ba,[ee]:[bS,Er]}],[ce]:[{[L]:zT,error:"S3 MRAP does not support dual-stack",[M]:Te},{[L]:Kd,error:"S3 MRAP does not support FIPS",[M]:Te},{[L]:yv,error:"S3 MRAP does not support S3 Accelerate",[M]:Te},{[L]:[{[J]:en,[ee]:[{[De]:"DisableMultiRegionAccessPoints"},Er]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[M]:Te},{[L]:[{[J]:Bh,[ee]:gv,[We]:LC}],[ce]:[{[L]:[{[J]:pt,[ee]:[{[J]:Ft,[ee]:[{[De]:LC},Vt]},{[J]:Ft,[ee]:[ds,"partition"]}]}],[ce]:[{endpoint:{[we]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Ee]:{[In]:[{[fn]:Er,name:gS,[dn]:Oc,[pS]:Vue}]},[xe]:qe},[M]:me}],[M]:ue},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[M]:Te}],[M]:ue}],[M]:ue},{error:"Invalid Access Point Name",[M]:Te}],[M]:ue},cT],[M]:ue},{[L]:[{[J]:pt,[ee]:[av,Du]}],[ce]:[{[L]:zT,error:"S3 Outposts does not support Dual-stack",[M]:Te},{[L]:Kd,error:"S3 Outposts does not support FIPS",[M]:Te},{[L]:yv,error:"S3 Outposts does not support S3 Accelerate",[M]:Te},{[L]:[{[J]:Os,[ee]:[{[J]:Ft,[ee]:[ds,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[M]:Te},{[L]:[{[J]:Ft,[ee]:Gue,[We]:lb}],[ce]:[{[L]:DT,[ce]:[cv,{[L]:wv,[ce]:[{[L]:Xs,[ce]:[{[L]:BT,[ce]:[{[L]:Ev,[ce]:[{[L]:xv,[ce]:[{[L]:[{[J]:Ft,[ee]:Kue,[We]:BC}],[ce]:[{[L]:[{[J]:Ft,[ee]:[ds,"resourceId[3]"],[We]:vS}],[ce]:[{[L]:[{[J]:pt,[ee]:[{[De]:BC},rP]}],[ce]:[{[L]:uc,endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Ee]:lT,[xe]:qe},[M]:me},{endpoint:{[we]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Ee]:lT,[xe]:qe},[M]:me}],[M]:ue},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[M]:Te}],[M]:ue},{error:"Invalid ARN: expected an access point name",[M]:Te}],[M]:ue},{error:"Invalid ARN: Expected a 4-component resource",[M]:Te}],[M]:ue},uv],[M]:ue},fv],[M]:ue},dv],[M]:ue}],[M]:ue}],[M]:ue},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[M]:Te}],[M]:ue},{error:"Invalid ARN: The Outpost Id was not set",[M]:Te}],[M]:ue},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[M]:Te}],[M]:ue},{error:"Invalid ARN: No ARN type specified",[M]:Te}],[M]:ue},{[L]:[{[J]:kt,[ee]:[dt,0,4,$ue],[We]:$C},{[J]:pt,[ee]:[{[De]:$C},"arn:"]},{[J]:Or,[ee]:[{[J]:Os,[ee]:[uT]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[M]:Te},{[L]:[{[J]:en,[ee]:[Uue,Er]},uT],error:"Path-style addressing cannot be used with ARN buckets",[M]:Te},{[L]:Fue,[ce]:[{[L]:Xs,[ce]:[{[L]:[cn],[ce]:[{[L]:[Ot,Ke,Nt,Sn],endpoint:{[we]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Ot,Ke,Nt,lt,Tn],[ce]:[{endpoint:fT,[M]:me}],[M]:ue},{[L]:[Ot,Ke,Nt,lt,An],endpoint:fT,[M]:me},{[L]:[rt,Ke,Nt,Sn],endpoint:{[we]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,Ke,Nt,lt,Tn],[ce]:[{endpoint:dT,[M]:me}],[M]:ue},{[L]:[rt,Ke,Nt,lt,An],endpoint:dT,[M]:me},{[L]:[Ot,Ke,et,Sn],endpoint:{[we]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Ot,Ke,et,lt,Tn],[ce]:[{endpoint:hT,[M]:me}],[M]:ue},{[L]:[Ot,Ke,et,lt,An],endpoint:hT,[M]:me},{[L]:[rt,Wt,Jn,et,Sn],endpoint:{[we]:oP,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,Wt,Jn,et,lt,Tn],[ce]:[{[L]:Yo,endpoint:hv,[M]:me},{endpoint:hv,[M]:me}],[M]:ue},{[L]:[rt,Wt,Jn,et,lt,An],endpoint:hv,[M]:me},{[L]:[rt,Ke,et,Sn],endpoint:{[we]:UC,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[rt,Ke,et,lt,Tn],[ce]:[{[L]:Yo,endpoint:{[we]:UC,[Ee]:pn,[xe]:qe},[M]:me},{endpoint:pT,[M]:me}],[M]:ue},{[L]:[rt,Ke,et,lt,An],endpoint:pT,[M]:me}],[M]:ue},{error:"Path-style addressing cannot be used with S3 Accelerate",[M]:Te}],[M]:ue}],[M]:ue}],[M]:ue},{[L]:[{[J]:Os,[ee]:[mT]},{[J]:en,[ee]:[mT,Er]}],[ce]:[{[L]:Xs,[ce]:[{[L]:UT,[ce]:[sT,rT,{[L]:uc,endpoint:{[we]:sh,[Ee]:pv,[xe]:qe},[M]:me},{[L]:Kd,endpoint:{[we]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Ee]:pv,[xe]:qe},[M]:me},{endpoint:{[we]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Ee]:pv,[xe]:qe},[M]:me}],[M]:ue},Gd],[M]:ue}],[M]:ue},{[L]:[ZC],[ce]:[{[L]:Xs,[ce]:[{[L]:UT,[ce]:[{[L]:[Nt,Ot,Ke,Sn],endpoint:{[we]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Nt,Ot,Ke,lt,Tn],[ce]:[{endpoint:gT,[M]:me}],[M]:ue},{[L]:[Nt,Ot,Ke,lt,An],endpoint:gT,[M]:me},{[L]:[Nt,rt,Ke,Sn],endpoint:{[we]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[Nt,rt,Ke,lt,Tn],[ce]:[{endpoint:yT,[M]:me}],[M]:ue},{[L]:[Nt,rt,Ke,lt,An],endpoint:yT,[M]:me},{[L]:[et,Ot,Ke,Sn],endpoint:{[we]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[et,Ot,Ke,lt,Tn],[ce]:[{endpoint:vT,[M]:me}],[M]:ue},{[L]:[et,Ot,Ke,lt,An],endpoint:vT,[M]:me},{[L]:[et,rt,Wt,Jn,Sn],endpoint:{[we]:sh,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[et,rt,Wt,Jn,lt,Tn],[ce]:[{[L]:Yo,endpoint:mv,[M]:me},{endpoint:mv,[M]:me}],[M]:ue},{[L]:[et,rt,Wt,Jn,lt,An],endpoint:mv,[M]:me},{[L]:[et,rt,Ke,Sn],endpoint:{[we]:jC,[Ee]:Cn,[xe]:qe},[M]:me},{[L]:[et,rt,Ke,lt,Tn],[ce]:[{[L]:Yo,endpoint:{[we]:jC,[Ee]:pn,[xe]:qe},[M]:me},{endpoint:bT,[M]:me}],[M]:ue},{[L]:[et,rt,Ke,lt,An],endpoint:bT,[M]:me}],[M]:ue},Gd],[M]:ue}],[M]:ue}],[M]:ue},{error:"A region must be set when sending requests to S3.",[M]:Te}]},Que=Zue,Yue=new mO({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),hP=(e,t={})=>Yue.get(e,()=>CO(Que,{endpointParams:e,logger:t.logger}));Tu.aws=n0;const Xue=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const i=await e(t,n,r),c=yo(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);const l=await eM(r,{getEndpointParameterInstructions:c},t);return Object.assign(i,l)},Wue=async(e,t,n)=>({operation:yo(t).operation,region:await Ds(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Jue=Xue(Wue);function pP(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function mP(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const efe=(e,t,n)=>i=>{const l=e(i).properties?.authSchemes;if(!l)return t(i);const f=[];for(const d of l){const{name:h,properties:y={},...g}=d,v=h.toLowerCase();h!==v&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${h}' to '${v}'`);let b;if(v==="sigv4a"){b="aws.auth#sigv4a";const R=l.find(C=>{const A=C.name.toLowerCase();return A!=="sigv4a"&&A.startsWith("sigv4")});if(Y3.sigv4aDependency()==="none"&&R)continue}else if(v.startsWith("sigv4"))b="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${v}'`);const _=n[b];if(!_)throw new Error(`Could not find HttpAuthOption create function for '${b}'`);const x=_(i);x.schemeId=b,x.signingProperties={...x.signingProperties||{},...g,...y},f.push(x)}return f},tfe=e=>{const t=[];switch(e.operation){default:t.push(pP(e)),t.push(mP(e))}return t},nfe=efe(hP,tfe,{"aws.auth#sigv4":pP,"aws.auth#sigv4a":mP}),sfe=e=>{const t=zO(e),n=mK(t);return Object.assign(n,{authSchemePreference:Ds(e.authSchemePreference??[])})},rfe=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:e.clientContextParams??{}}),SS={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Un extends Qi{constructor(t){super(t),Object.setPrototypeOf(this,Un.prototype)}}class _S extends Un{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,_S.prototype)}}class wS extends Un{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,wS.prototype)}}class ES extends Un{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,ES.prototype)}}class xS extends Un{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,xS.prototype)}}class RS extends Un{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,RS.prototype)}}class CS extends Un{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,CS.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class TS extends Un{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,TS.prototype)}}class AS extends Un{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,AS.prototype)}}class IS extends Un{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,IS.prototype)}}class OS extends Un{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,OS.prototype)}}class MS extends Un{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,MS.prototype)}}class DS extends Un{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,DS.prototype)}}class kS extends Un{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,kS.prototype)}}class PS extends Un{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,PS.prototype)}}const ofe="ACL",jT="AccessKeyId",ife="AcceptRanges",afe="AccessTier",Sa="Bucket",cfe="BucketArn",lfe="BucketAlreadyExists",ufe="BucketAlreadyOwnedByYou",ffe="BypassGovernanceRetention",Xu="BucketKeyEnabled",gP="BucketRegion",yP="Body",vP="Buckets",bP="ChecksumAlgorithm",SP="CacheControl",NS="ChecksumCRC32",zS="ChecksumCRC32C",LS="ChecksumCRC64NVME",_P="Cache-Control",dfe="CreationDate",wP="Content-Disposition",EP="ContentDisposition",xP="Content-Encoding",RP="ContentEncoding",CP="ContentLanguage",TP="Content-Language",AP="Content-Length",IP="ContentLength",hfe="Content-MD5",pfe="ContentMD5",mfe="ChecksumMode",gfe="CommonPrefix",yfe="CommonPrefixList",vfe="CommonPrefixes",bfe="ContentRange",Sfe="Content-Range",BS="ChecksumSHA1",$S="ChecksumSHA256",_fe="CreateSessionOutput",wfe="CreateSessionResult",Efe="CreateSessionRequest",xfe="CreateSession",US="ChecksumType",OP="Content-Type",MP="ContentType",Mp="ContinuationToken",Rfe="Contents",HT="Credentials",DP="DeleteMarker",Cfe="DisplayName",Tfe="DeleteObjectOutput",Afe="DeleteObjectRequest",Ife="DeleteObject",kP="Delimiter",Hh="Expiration",Dp="ExpectedBucketOwner",FT="ExpiresString",Ofe="EncryptionTypeMismatch",ku="ETag",PP="EncodingType",Fh="Expires",Mfe="FetchOwner",Dfe="GrantFullControl",kfe="GetObject",Pfe="GetObjectOutput",Nfe="GetObjectRequest",zfe="GrantRead",Lfe="GrantReadACP",Bfe="GrantWriteACP",$fe="ID",jS="IfMatch",Ufe="IfMatchLastModifiedTime",jfe="IfMatchSize",Hfe="If-Modified-Since",Ffe="IfModifiedSince",HS="If-Match",NP="IfNoneMatch",zP="If-None-Match",qfe="InvalidObjectState",Vfe="IdempotencyParameterMismatch",Gfe="InvalidRequest",Kfe="IsRestoreInProgress",Zfe="IsTruncated",Qfe="IfUnmodifiedSince",Yfe="If-Unmodified-Since",Xfe="InvalidWriteOffset",kp="Key",Wfe="KeyCount",Jfe="ListAllMyBucketsResult",ede="ListBuckets",tde="ListBucketsOutput",nde="ListBucketsRequest",sde="ListBucketResult",LP="LastModified",rde="Last-Modified",ode="ListObjectsV2",ide="ListObjectsV2Output",ade="ListObjectsV2Request",BP="Metadata",cde="MaxBuckets",lde="MFA",$P="MaxKeys",ude="MissingMeta",UP="Name",fde="NextContinuationToken",dde="NotFound",hde="NoSuchBucket",pde="NoSuchKey",mde="NoSuchUpload",FS="Owner",gde="ObjectAlreadyInActiveTierError",jP="ObjectLockLegalHoldStatus",HP="ObjectLockMode",FP="ObjectLockRetainUntilDate",yde="ObjectList",vde="ObjectNotInActiveTierError",bde="OptionalObjectAttributes",Sde="Object",Wu="Prefix",_de="PartsCount",wde="PartNumber",Ede="PutObject",xde="PutObjectOutput",Rde="PutObjectRequest",Pp="RequestCharged",Cde="ResponseCacheControl",Tde="ResponseContentDisposition",Ade="ResponseContentEncoding",Ide="ResponseContentLanguage",Ode="ResponseContentType",Mde="ResponseExpires",Dde="RestoreExpiryDate",Np="RequestPayer",kde="ReplicationStatus",qP="RestoreStatus",qT="Range",Pde="Restore",VP="StartAfter",VT="SecretAccessKey",Nde="StreamingBlob",zp="StorageClass",zde="SessionCredentialValue",Lde="SessionCredentials",Bde="SessionMode",Ju="ServerSideEncryption",Lp="SSECustomerAlgorithm",qS="SSECustomerKey",Bp="SSECustomerKeyMD5",ef="SSEKMSEncryptionContext",Zc="SSEKMSKeyId",GT="SessionToken",GP="Size",$de="TagCount",Ude="TooManyParts",jde="Tagging",tf="VersionId",Hde="WriteOffsetBytes",KP="WebsiteRedirectLocation",Fde="accept-ranges",qde="bucket-region",gs="client",ZP="continuation-token",Vde="delimiter",ys="error",Gde="encoding-type",Kde="fetch-owner",Qc="http",QP="httpChecksum",zs="httpError",ae="httpHeader",YP="httpPrefixHeaders",ln="httpQuery",Zde="max-buckets",Qde="max-keys",XP="prefix",Yde="partNumber",Xde="response-cache-control",Wde="response-content-disposition",Jde="response-content-encoding",ehe="response-content-language",the="response-content-type",nhe="response-expires",she="streaming",rhe="start-after",WP="smithy.ts.sdk.synthetic.com.amazonaws.s3",JP="versionId",fb="xmlFlattened",lo="xmlName",ohe="x-amz-acl",ihe="x-amz-bypass-governance-retention",VS="x-amz-checksum-crc32",GS="x-amz-checksum-crc32c",KS="x-amz-checksum-crc64nvme",ahe="x-amz-checksum-mode",ZS="x-amz-checksum-sha1",QS="x-amz-checksum-sha256",che="x-amz-create-session-mode",eN="x-amz-checksum-type",tN="x-amz-delete-marker",nN="x-amz-expiration",$p="x-amz-expected-bucket-owner",lhe="x-amz-grant-full-control",uhe="x-amz-grant-read",fhe="x-amz-grant-read-acp",dhe="x-amz-grant-write-acp",hhe="x-amz-if-match-last-modified-time",phe="x-amz-if-match-size",sN="x-amz-meta-",mhe="x-amz-mfa",ghe="x-amz-missing-meta",yhe="x-amz-mp-parts-count",rN="x-amz-object-lock-legal-hold",oN="x-amz-object-lock-mode",iN="x-amz-object-lock-retain-until-date",vhe="x-amz-optional-object-attributes",bhe="x-amz-object-size",She="x-amz-restore",Up="x-amz-request-charged",jp="x-amz-request-payer",_he="x-amz-replication-status",aN="x-amz-storage-class",whe="x-amz-sdk-checksum-algorithm",nf="x-amz-server-side-encryption",sf="x-amz-server-side-encryption-aws-kms-key-id",rf="x-amz-server-side-encryption-bucket-key-enabled",Hp="x-amz-server-side-encryption-context",Fp="x-amz-server-side-encryption-customer-algorithm",cN="x-amz-server-side-encryption-customer-key",qp="x-amz-server-side-encryption-customer-key-MD5",Ehe="x-amz-tagging",xhe="x-amz-tagging-count",YS="x-amz-version-id",Rhe="x-amz-write-offset-bytes",lN="x-amz-website-redirect-location",Ne="com.amazonaws.s3";var KT=[0,Ne,zde,8,0],uN=[0,Ne,qS,8,0],Vp=[0,Ne,ef,8,0],of=[0,Ne,Zc,8,0],fN=[0,Ne,Nde,{[she]:1},42],Che=[3,Ne,Sa,0,[UP,dfe,gP,cfe],[0,4,0,0]],The=[-3,Ne,lfe,{[ys]:gs,[zs]:409},[],[]];Mt.for(Ne).registerError(The,ES);var Ahe=[-3,Ne,ufe,{[ys]:gs,[zs]:409},[],[]];Mt.for(Ne).registerError(Ahe,xS);var Ihe=[3,Ne,gfe,0,[Wu],[0]],Ohe=[3,Ne,_fe,{[lo]:wfe},[HT,Ju,Zc,ef,Xu],[[()=>tpe,{[lo]:HT}],[0,{[ae]:nf}],[()=>of,{[ae]:sf}],[()=>Vp,{[ae]:Hp}],[2,{[ae]:rf}]],1],Mhe=[3,Ne,Efe,0,[Sa,Bde,Ju,Zc,ef,Xu],[[0,1],[0,{[ae]:che}],[0,{[ae]:nf}],[()=>of,{[ae]:sf}],[()=>Vp,{[ae]:Hp}],[2,{[ae]:rf}]],1],Dhe=[3,Ne,Tfe,0,[DP,tf,Pp],[[2,{[ae]:tN}],[0,{[ae]:YS}],[0,{[ae]:Up}]]],khe=[3,Ne,Afe,0,[Sa,kp,lde,tf,Np,ffe,Dp,jS,Ufe,jfe],[[0,1],[0,1],[0,{[ae]:mhe}],[0,{[ln]:JP}],[0,{[ae]:jp}],[2,{[ae]:ihe}],[0,{[ae]:$p}],[0,{[ae]:HS}],[6,{[ae]:hhe}],[1,{[ae]:phe}]],2],Phe=[-3,Ne,Ofe,{[ys]:gs,[zs]:400},[],[]];Mt.for(Ne).registerError(Phe,IS);var Nhe=[3,Ne,Pfe,0,[yP,DP,ife,Hh,Pde,LP,IP,ku,NS,zS,LS,BS,$S,US,ude,tf,SP,EP,RP,CP,bfe,MP,Fh,FT,KP,Ju,BP,Lp,Bp,Zc,Xu,zp,Pp,kde,_de,$de,HP,FP,jP],[[()=>fN,16],[2,{[ae]:tN}],[0,{[ae]:Fde}],[0,{[ae]:nN}],[0,{[ae]:She}],[4,{[ae]:rde}],[1,{[ae]:AP}],[0,{[ae]:ku}],[0,{[ae]:VS}],[0,{[ae]:GS}],[0,{[ae]:KS}],[0,{[ae]:ZS}],[0,{[ae]:QS}],[0,{[ae]:eN}],[1,{[ae]:ghe}],[0,{[ae]:YS}],[0,{[ae]:_P}],[0,{[ae]:wP}],[0,{[ae]:xP}],[0,{[ae]:TP}],[0,{[ae]:Sfe}],[0,{[ae]:OP}],[4,{[ae]:Fh}],[0,{[ae]:FT}],[0,{[ae]:lN}],[0,{[ae]:nf}],[128,{[YP]:sN}],[0,{[ae]:Fp}],[0,{[ae]:qp}],[()=>of,{[ae]:sf}],[2,{[ae]:rf}],[0,{[ae]:aN}],[0,{[ae]:Up}],[0,{[ae]:_he}],[1,{[ae]:yhe}],[1,{[ae]:xhe}],[0,{[ae]:oN}],[5,{[ae]:iN}],[0,{[ae]:rN}]]],zhe=[3,Ne,Nfe,0,[Sa,kp,jS,Ffe,NP,Qfe,qT,Cde,Tde,Ade,Ide,Ode,Mde,tf,Lp,qS,Bp,Np,wde,Dp,mfe],[[0,1],[0,1],[0,{[ae]:HS}],[4,{[ae]:Hfe}],[0,{[ae]:zP}],[4,{[ae]:Yfe}],[0,{[ae]:qT}],[0,{[ln]:Xde}],[0,{[ln]:Wde}],[0,{[ln]:Jde}],[0,{[ln]:ehe}],[0,{[ln]:the}],[6,{[ln]:nhe}],[0,{[ln]:JP}],[0,{[ae]:Fp}],[()=>uN,{[ae]:cN}],[0,{[ae]:qp}],[0,{[ae]:jp}],[1,{[ln]:Yde}],[0,{[ae]:$p}],[0,{[ae]:ahe}]],2],Lhe=[-3,Ne,Vfe,{[ys]:gs,[zs]:400},[],[]];Mt.for(Ne).registerError(Lhe,kS);var Bhe=[-3,Ne,qfe,{[ys]:gs,[zs]:403},[zp,afe],[0,0]];Mt.for(Ne).registerError(Bhe,CS);var $he=[-3,Ne,Gfe,{[ys]:gs,[zs]:400},[],[]];Mt.for(Ne).registerError($he,OS);var Uhe=[-3,Ne,Xfe,{[ys]:gs,[zs]:400},[],[]];Mt.for(Ne).registerError(Uhe,MS);var jhe=[3,Ne,tde,{[lo]:Jfe},[vP,FS,Mp,Wu],[[()=>rpe,0],()=>dN,0,0]],Hhe=[3,Ne,nde,0,[cde,Mp,Wu,gP],[[1,{[ln]:Zde}],[0,{[ln]:ZP}],[0,{[ln]:XP}],[0,{[ln]:qde}]]],Fhe=[3,Ne,ide,{[lo]:sde},[Zfe,Rfe,UP,Wu,kP,$P,vfe,PP,Wfe,Mp,fde,VP,Pp],[2,[()=>ipe,{[fb]:1}],0,0,0,1,[()=>ope,{[fb]:1}],0,1,0,0,0,[0,{[ae]:Up}]]],qhe=[3,Ne,ade,0,[Sa,kP,PP,$P,Wu,Mp,Mfe,VP,Np,Dp,bde],[[0,1],[0,{[ln]:Vde}],[0,{[ln]:Gde}],[1,{[ln]:Qde}],[0,{[ln]:XP}],[0,{[ln]:ZP}],[2,{[ln]:Kde}],[0,{[ln]:rhe}],[0,{[ae]:jp}],[0,{[ae]:$p}],[64,{[ae]:vhe}]],1],Vhe=[-3,Ne,hde,{[ys]:gs,[zs]:404},[],[]];Mt.for(Ne).registerError(Vhe,RS);var Ghe=[-3,Ne,pde,{[ys]:gs,[zs]:404},[],[]];Mt.for(Ne).registerError(Ghe,TS);var Khe=[-3,Ne,mde,{[ys]:gs,[zs]:404},[],[]];Mt.for(Ne).registerError(Khe,_S);var Zhe=[-3,Ne,dde,{[ys]:gs},[],[]];Mt.for(Ne).registerError(Zhe,AS);var Qhe=[3,Ne,Sde,0,[kp,LP,ku,bP,US,GP,zp,FS,qP],[0,4,0,[64,{[fb]:1}],0,1,0,()=>dN,()=>epe]],Yhe=[-3,Ne,gde,{[ys]:gs,[zs]:403},[],[]];Mt.for(Ne).registerError(Yhe,PS);var Xhe=[-3,Ne,vde,{[ys]:gs,[zs]:403},[],[]];Mt.for(Ne).registerError(Xhe,wS);var dN=[3,Ne,FS,0,[Cfe,$fe],[0,0]],Whe=[3,Ne,xde,0,[Hh,ku,NS,zS,LS,BS,$S,US,Ju,tf,Lp,Bp,Zc,ef,Xu,GP,Pp],[[0,{[ae]:nN}],[0,{[ae]:ku}],[0,{[ae]:VS}],[0,{[ae]:GS}],[0,{[ae]:KS}],[0,{[ae]:ZS}],[0,{[ae]:QS}],[0,{[ae]:eN}],[0,{[ae]:nf}],[0,{[ae]:YS}],[0,{[ae]:Fp}],[0,{[ae]:qp}],[()=>of,{[ae]:sf}],[()=>Vp,{[ae]:Hp}],[2,{[ae]:rf}],[1,{[ae]:bhe}],[0,{[ae]:Up}]]],Jhe=[3,Ne,Rde,0,[Sa,kp,ofe,yP,SP,EP,RP,CP,IP,pfe,MP,bP,NS,zS,LS,BS,$S,Fh,jS,NP,Dfe,zfe,Lfe,Bfe,Hde,BP,Ju,zp,KP,Lp,qS,Bp,Zc,ef,Xu,Np,jde,HP,FP,jP,Dp],[[0,1],[0,1],[0,{[ae]:ohe}],[()=>fN,16],[0,{[ae]:_P}],[0,{[ae]:wP}],[0,{[ae]:xP}],[0,{[ae]:TP}],[1,{[ae]:AP}],[0,{[ae]:hfe}],[0,{[ae]:OP}],[0,{[ae]:whe}],[0,{[ae]:VS}],[0,{[ae]:GS}],[0,{[ae]:KS}],[0,{[ae]:ZS}],[0,{[ae]:QS}],[4,{[ae]:Fh}],[0,{[ae]:HS}],[0,{[ae]:zP}],[0,{[ae]:lhe}],[0,{[ae]:uhe}],[0,{[ae]:fhe}],[0,{[ae]:dhe}],[1,{[ae]:Rhe}],[128,{[YP]:sN}],[0,{[ae]:nf}],[0,{[ae]:aN}],[0,{[ae]:lN}],[0,{[ae]:Fp}],[()=>uN,{[ae]:cN}],[0,{[ae]:qp}],[()=>of,{[ae]:sf}],[()=>Vp,{[ae]:Hp}],[2,{[ae]:rf}],[0,{[ae]:jp}],[0,{[ae]:Ehe}],[0,{[ae]:oN}],[5,{[ae]:iN}],[0,{[ae]:rN}],[0,{[ae]:$p}]],2],epe=[3,Ne,qP,0,[Kfe,Dde],[2,4]],tpe=[3,Ne,Lde,0,[jT,VT,GT,Hh],[[0,{[lo]:jT}],[()=>KT,{[lo]:VT}],[()=>KT,{[lo]:GT}],[4,{[lo]:Hh}]],4],npe=[-3,Ne,Ude,{[ys]:gs,[zs]:400},[],[]];Mt.for(Ne).registerError(npe,DS);var spe=[-3,WP,"S3ServiceException",0,[],[]];Mt.for(WP).registerError(spe,Un);var rpe=[1,Ne,vP,0,[()=>Che,{[lo]:Sa}]],ope=[1,Ne,yfe,0,()=>Ihe],ipe=[1,Ne,yde,0,[()=>Qhe,0]],ape=[9,Ne,xfe,{[Qc]:["GET","/?session",200]},()=>Mhe,()=>Ohe],Jge=[9,Ne,Ife,{[Qc]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>khe,()=>Dhe],eye=[9,Ne,kfe,{[QP]:"-",[Qc]:["GET","/{Key+}?x-id=GetObject",200]},()=>zhe,()=>Nhe],cpe=[9,Ne,ede,{[Qc]:["GET","/?x-id=ListBuckets",200]},()=>Hhe,()=>jhe],lpe=[9,Ne,ode,{[Qc]:["GET","/?list-type=2",200]},()=>qhe,()=>Fhe],tye=[9,Ne,Ede,{[QP]:"-",[Qc]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Jhe,()=>Whe];class upe extends Pr.classBuilder().ep({...SS,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions()),dS(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(ape).build(){}const fpe="3.975.0",dpe={version:fpe};function ZT(e){return typeof e=="string"?e.length===0:e.byteLength===0}var hN={name:"SHA-1"},QT={name:"HMAC",hash:hN},hpe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),ppe=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){li().crypto.subtle.importKey("raw",YT(t),QT,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!ZT(t)){var n=YT(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return li().crypto.subtle.sign(QT,n,t.toHash).then(function(r){return new Uint8Array(r)})}):ZT(this.toHash)?Promise.resolve(hpe):Promise.resolve().then(function(){return li().crypto.subtle.digest(hN,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function YT(e){return typeof e=="string"?cM(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var mpe=(function(){function e(t){if(dM(li()))this.hash=new ppe(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(ca(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();class mu{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&XT(n),new mu(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&XT(t),parseInt(fs(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function XT(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class gpe{toUtf8;fromUtf8;constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const c of Object.keys(t)){const l=this.fromUtf8(c);n.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(t[c]))}const r=new Uint8Array(n.reduce((c,l)=>c+l.byteLength,0));let i=0;for(const c of n)r.set(c,i),i+=c.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const c=new DataView(new ArrayBuffer(3+t.value.byteLength));c.setUint8(0,6),c.setUint16(1,t.value.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(t.value,3),l;case"string":const f=this.fromUtf8(t.value),d=new DataView(new ArrayBuffer(3+f.byteLength));d.setUint8(0,7),d.setUint16(1,f.byteLength,!1);const h=new Uint8Array(d.buffer);return h.set(f,3),h;case"timestamp":const y=new Uint8Array(9);return y[0]=8,y.set(mu.fromNumber(t.value.valueOf()).bytes,1),y;case"uuid":if(!Rpe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const g=new Uint8Array(17);return g[0]=9,g.set(nO(t.value.replace(/\-/g,"")),1),g}}parse(t){const n={};let r=0;for(;r{if(typeof f!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+f);t=f,n=4,r=new Uint8Array(f),new DataView(r.buffer).setUint32(0,f,!1)},l=async function*(){const f=e[Symbol.asyncIterator]();for(;;){const{value:d,done:h}=await f.next();if(h){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const y=d.length;let g=0;for(;g({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),Lpe=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};class Bpe{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new Npe({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=$pe(t)?zpe(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?Lpe(r):r}}const $pe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,Upe=e=>new Bpe(e);async function jpe(e,t,n=1024*1024){const r=e.size;let i=0;for(;i{r.update(i)}),r.digest()},Xo=64,Fpe=16,qpe=[1732584193,4023233417,2562383102,271733878];class Vpe{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(t){if(Gpe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=Kpe(t);let r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===Xo&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:i}=this,c=i*8;if(n.setUint8(this.bufferLength++,128),r%Xo>=Xo-8){for(let l=this.bufferLength;l>>0,!0),n.setUint32(Xo-4,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(Fpe));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],i=n[1],c=n[2],l=n[3];r=Gn(r,i,c,l,t.getUint32(0,!0),7,3614090360),l=Gn(l,r,i,c,t.getUint32(4,!0),12,3905402710),c=Gn(c,l,r,i,t.getUint32(8,!0),17,606105819),i=Gn(i,c,l,r,t.getUint32(12,!0),22,3250441966),r=Gn(r,i,c,l,t.getUint32(16,!0),7,4118548399),l=Gn(l,r,i,c,t.getUint32(20,!0),12,1200080426),c=Gn(c,l,r,i,t.getUint32(24,!0),17,2821735955),i=Gn(i,c,l,r,t.getUint32(28,!0),22,4249261313),r=Gn(r,i,c,l,t.getUint32(32,!0),7,1770035416),l=Gn(l,r,i,c,t.getUint32(36,!0),12,2336552879),c=Gn(c,l,r,i,t.getUint32(40,!0),17,4294925233),i=Gn(i,c,l,r,t.getUint32(44,!0),22,2304563134),r=Gn(r,i,c,l,t.getUint32(48,!0),7,1804603682),l=Gn(l,r,i,c,t.getUint32(52,!0),12,4254626195),c=Gn(c,l,r,i,t.getUint32(56,!0),17,2792965006),i=Gn(i,c,l,r,t.getUint32(60,!0),22,1236535329),r=Kn(r,i,c,l,t.getUint32(4,!0),5,4129170786),l=Kn(l,r,i,c,t.getUint32(24,!0),9,3225465664),c=Kn(c,l,r,i,t.getUint32(44,!0),14,643717713),i=Kn(i,c,l,r,t.getUint32(0,!0),20,3921069994),r=Kn(r,i,c,l,t.getUint32(20,!0),5,3593408605),l=Kn(l,r,i,c,t.getUint32(40,!0),9,38016083),c=Kn(c,l,r,i,t.getUint32(60,!0),14,3634488961),i=Kn(i,c,l,r,t.getUint32(16,!0),20,3889429448),r=Kn(r,i,c,l,t.getUint32(36,!0),5,568446438),l=Kn(l,r,i,c,t.getUint32(56,!0),9,3275163606),c=Kn(c,l,r,i,t.getUint32(12,!0),14,4107603335),i=Kn(i,c,l,r,t.getUint32(32,!0),20,1163531501),r=Kn(r,i,c,l,t.getUint32(52,!0),5,2850285829),l=Kn(l,r,i,c,t.getUint32(8,!0),9,4243563512),c=Kn(c,l,r,i,t.getUint32(28,!0),14,1735328473),i=Kn(i,c,l,r,t.getUint32(48,!0),20,2368359562),r=Zn(r,i,c,l,t.getUint32(20,!0),4,4294588738),l=Zn(l,r,i,c,t.getUint32(32,!0),11,2272392833),c=Zn(c,l,r,i,t.getUint32(44,!0),16,1839030562),i=Zn(i,c,l,r,t.getUint32(56,!0),23,4259657740),r=Zn(r,i,c,l,t.getUint32(4,!0),4,2763975236),l=Zn(l,r,i,c,t.getUint32(16,!0),11,1272893353),c=Zn(c,l,r,i,t.getUint32(28,!0),16,4139469664),i=Zn(i,c,l,r,t.getUint32(40,!0),23,3200236656),r=Zn(r,i,c,l,t.getUint32(52,!0),4,681279174),l=Zn(l,r,i,c,t.getUint32(0,!0),11,3936430074),c=Zn(c,l,r,i,t.getUint32(12,!0),16,3572445317),i=Zn(i,c,l,r,t.getUint32(24,!0),23,76029189),r=Zn(r,i,c,l,t.getUint32(36,!0),4,3654602809),l=Zn(l,r,i,c,t.getUint32(48,!0),11,3873151461),c=Zn(c,l,r,i,t.getUint32(60,!0),16,530742520),i=Zn(i,c,l,r,t.getUint32(8,!0),23,3299628645),r=Qn(r,i,c,l,t.getUint32(0,!0),6,4096336452),l=Qn(l,r,i,c,t.getUint32(28,!0),10,1126891415),c=Qn(c,l,r,i,t.getUint32(56,!0),15,2878612391),i=Qn(i,c,l,r,t.getUint32(20,!0),21,4237533241),r=Qn(r,i,c,l,t.getUint32(48,!0),6,1700485571),l=Qn(l,r,i,c,t.getUint32(12,!0),10,2399980690),c=Qn(c,l,r,i,t.getUint32(40,!0),15,4293915773),i=Qn(i,c,l,r,t.getUint32(4,!0),21,2240044497),r=Qn(r,i,c,l,t.getUint32(32,!0),6,1873313359),l=Qn(l,r,i,c,t.getUint32(60,!0),10,4264355552),c=Qn(c,l,r,i,t.getUint32(24,!0),15,2734768916),i=Qn(i,c,l,r,t.getUint32(52,!0),21,1309151649),r=Qn(r,i,c,l,t.getUint32(16,!0),6,4149444226),l=Qn(l,r,i,c,t.getUint32(44,!0),10,3174756917),c=Qn(c,l,r,i,t.getUint32(8,!0),15,718787259),i=Qn(i,c,l,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=c+n[2]&4294967295,n[3]=l+n[3]&4294967295}reset(){this.state=Uint32Array.from(qpe),this.buffer=new DataView(new ArrayBuffer(Xo)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function Gp(e,t,n,r,i,c){return t=(t+e&4294967295)+(r+c&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function Gn(e,t,n,r,i,c,l){return Gp(t&n|~t&r,e,t,i,c,l)}function Kn(e,t,n,r,i,c,l){return Gp(t&r|n&~r,e,t,i,c,l)}function Zn(e,t,n,r,i,c,l){return Gp(t^n^r,e,t,i,c,l)}function Qn(e,t,n,r,i,c,l){return Gp(n^(t|~r),e,t,i,c,l)}function Gpe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function Kpe(e){return typeof e=="string"?mo(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const Zpe=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??aa,base64Encoder:e?.base64Encoder??di,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??hP,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??zV,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??nfe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new r0},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new hK}],logger:e?.logger??new o0,protocol:e?.protocol??oZ,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??sO,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??Y3,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Iu,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??mo,utf8Encoder:e?.utf8Encoder??ha}),Qpe=e=>{const t=gM(e),n=()=>t().then($O),r=Zpe(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??LO,credentialDefaultProvider:e?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??pM({serviceId:r.serviceId,clientVersion:dpe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Upe,maxAttempts:e?.maxAttempts??Ou,md5:e?.md5??Vpe,region:e?.region??mM("Region is missing"),requestHandler:mp.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||nM),sha1:e?.sha1??mpe,sha256:e?.sha256??hM,streamCollector:e?.streamCollector??Qb,streamHasher:e?.streamHasher??Hpe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(KO)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ZO))}},Ype=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){const c=t.findIndex(l=>l.schemeId===i.schemeId);c===-1?t.push(i):t.splice(c,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},Xpe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Wpe=(e,t)=>{const n=Object.assign(_M(e),UO(e),G2(e),Ype(e));return t.forEach(r=>r.configure(n)),Object.assign(e,wM(n),jO(n),K2(n),Xpe(n))};class Jpe extends BO{config;constructor(...[t]){const n=Qpe(t||{});super(n),this.initConfig=n;const r=rfe(n),i=pO(r),c=oue(i),l=iM(c),f=YO(l),d=f,h=tM(d),y=zue(h),g=sfe(y),v=xue(g,{session:[()=>this,upe]}),b=Wpe(v,t?.extensions||[]);this.config=b,this.middlewareStack.use(oO(this.config)),this.middlewareStack.use(GO(this.config)),this.middlewareStack.use(aM(this.config)),this.middlewareStack.use(XO(this.config)),this.middlewareStack.use(Z2(this.config)),this.middlewareStack.use(Q2(this.config)),this.middlewareStack.use(Y2(this.config)),this.middlewareStack.use(X2(this.config,{httpAuthSchemeParametersProvider:Jue,identityProviderConfigProvider:async _=>new dO({"aws.auth#sigv4":_.credentials,"aws.auth#sigv4a":_.credentials})})),this.middlewareStack.use(J2(this.config)),this.middlewareStack.use(Nue(this.config)),this.middlewareStack.use(eue(this.config)),this.middlewareStack.use(uue(this.config)),this.middlewareStack.use(vue(this.config)),this.middlewareStack.use(Eue(this.config))}destroy(){super.destroy()}}class eme extends Pr.classBuilder().ep(SS).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions()),dS(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(cpe).build(){}class tme extends Pr.classBuilder().ep({...SS,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[vo(r,t.getEndpointParameterInstructions()),dS(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(lpe).build(){}let rh=null,su=null;function zr(){if(!rh){const e=pp();if(!e)throw new Error("AWS credentials not configured");rh=new kQ({endpoint:"https://localhost:9999",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey}})}return rh}function mN(){if(!su){const e=pp();if(!e)throw new Error("AWS credentials not configured");su=new Jpe({endpoint:"https://localhost:8443",region:"ap-southeast-2",credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey},forcePathStyle:!0}),su.middlewareStack.use({applyToStack:t=>{t.add(n=>r=>{const i=r.request;return i?.path?.endsWith("/")&&i.path!=="/"&&(i.path=i.path.slice(0,-1)),n(r)},{step:"build",name:"removeTrailingSlash"})}})}return su}function nme(){rh=null,su=null}function gN(){const e=Ct.c(58);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:sme},e[0]=t):t=e[0];const n=nB(t),r=Qh(),i=cA();let c;e[1]!==r||e[2]!==i?(c=function(){vV(),nme(),i.clear(),r({to:"/login"})},e[1]=r,e[2]=i,e[3]=c):c=e[3];const l=c;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=$.jsx(By,{children:"General"}),e[4]=f):f=e[4];const d=n==="/";let h,y;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=$.jsx(ZB,{className:"size-4"}),y=$.jsx("span",{children:"Dashboard"}),e[5]=h,e[6]=y):(h=e[5],y=e[6]);let g;e[7]!==d?(g=$.jsxs(Ly,{children:[f,$.jsx(Bd,{children:$.jsx(Hi,{children:$.jsx(Cr,{to:"/",children:$.jsxs(Fi,{isActive:d,tooltip:"Dashboard",children:[h,y]})})})})]}),e[7]=d,e[8]=g):g=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=$.jsx(By,{children:"EC2"}),e[9]=v):v=e[9];let b;e[10]!==n?(b=n.startsWith("/ec2/describe-instances")||n.startsWith("/ec2/run-instances"),e[10]=n,e[11]=b):b=e[11];let _,x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=$.jsx(z1,{className:"size-4"}),_=$.jsx("span",{children:"Instances"}),e[12]=_,e[13]=x):(_=e[12],x=e[13]);let R;e[14]!==b?(R=$.jsx(Hi,{children:$.jsx(Cr,{to:"/ec2/describe-instances",children:$.jsxs(Fi,{isActive:b,tooltip:"EC2 Instances",children:[x,_]})})}),e[14]=b,e[15]=R):R=e[15];let C;e[16]!==n?(C=n.startsWith("/ec2/describe-images"),e[16]=n,e[17]=C):C=e[17];let A,O;e[18]===Symbol.for("react.memo_cache_sentinel")?(A=$.jsx(YB,{className:"size-4"}),O=$.jsx("span",{children:"Images"}),e[18]=A,e[19]=O):(A=e[18],O=e[19]);let D;e[20]!==C?(D=$.jsx(Hi,{children:$.jsx(Cr,{to:"/ec2/describe-images",children:$.jsxs(Fi,{isActive:C,tooltip:"Images",children:[A,O]})})}),e[20]=C,e[21]=D):D=e[21];let N;e[22]!==n?(N=n.startsWith("/ec2/describe-key-pairs"),e[22]=n,e[23]=N):N=e[23];let U,B;e[24]===Symbol.for("react.memo_cache_sentinel")?(U=$.jsx(WB,{className:"size-4"}),B=$.jsx("span",{children:"Key Pairs"}),e[24]=U,e[25]=B):(U=e[24],B=e[25]);let k;e[26]!==N?(k=$.jsx(Hi,{children:$.jsx(Cr,{to:"/ec2/describe-key-pairs",children:$.jsxs(Fi,{isActive:N,tooltip:"Key Pairs",children:[U,B]})})}),e[26]=N,e[27]=k):k=e[27];let K;e[28]!==n?(K=n.startsWith("/ec2/describe-volumes"),e[28]=n,e[29]=K):K=e[29];let ne,le;e[30]===Symbol.for("react.memo_cache_sentinel")?(ne=$.jsx(GB,{className:"size-4"}),le=$.jsx("span",{children:"Volumes"}),e[30]=ne,e[31]=le):(ne=e[30],le=e[31]);let G;e[32]!==K?(G=$.jsx(Hi,{children:$.jsx(Cr,{to:"/ec2/describe-volumes",children:$.jsxs(Fi,{isActive:K,tooltip:"Volumes",children:[ne,le]})})}),e[32]=K,e[33]=G):G=e[33];let Z;e[34]!==R||e[35]!==D||e[36]!==k||e[37]!==G?(Z=$.jsxs(Ly,{children:[v,$.jsxs(Bd,{children:[R,D,k,G]})]}),e[34]=R,e[35]=D,e[36]=k,e[37]=G,e[38]=Z):Z=e[38];let ye;e[39]===Symbol.for("react.memo_cache_sentinel")?(ye=$.jsx(By,{children:"S3"}),e[39]=ye):ye=e[39];let fe;e[40]!==n?(fe=n.startsWith("/s3/ls"),e[40]=n,e[41]=fe):fe=e[41];let q,X;e[42]===Symbol.for("react.memo_cache_sentinel")?(q=$.jsx(z1,{className:"size-4"}),X=$.jsx("span",{children:"Buckets"}),e[42]=q,e[43]=X):(q=e[42],X=e[43]);let j;e[44]!==fe?(j=$.jsxs(Ly,{children:[ye,$.jsx(Bd,{children:$.jsx(Hi,{children:$.jsx(Cr,{to:"/s3/ls",children:$.jsxs(Fi,{isActive:fe,tooltip:"Buckets",children:[q,X]})})})})]}),e[44]=fe,e[45]=j):j=e[45];let ve;e[46]!==Z||e[47]!==j||e[48]!==g?(ve=$.jsxs($9,{children:[g,Z,j]}),e[46]=Z,e[47]=j,e[48]=g,e[49]=ve):ve=e[49];let Ce,P;e[50]===Symbol.for("react.memo_cache_sentinel")?(Ce=$.jsx(e$,{className:"size-4"}),P=$.jsx("span",{children:"Sign out"}),e[50]=Ce,e[51]=P):(Ce=e[50],P=e[51]);let te;e[52]!==l?(te=$.jsx(B9,{children:$.jsx(Bd,{children:$.jsx(Hi,{children:$.jsxs(Fi,{onClick:l,tooltip:"Sign out",children:[Ce,P]})})})}),e[52]=l,e[53]=te):te=e[53];let oe;e[54]===Symbol.for("react.memo_cache_sentinel")?(oe=$.jsx(L9,{}),e[54]=oe):oe=e[54];let de;return e[55]!==ve||e[56]!==te?(de=$.jsxs(N9,{collapsible:"icon",children:[ve,te,oe]}),e[55]=ve,e[56]=te,e[57]=de):de=e[57],de}function sme(e){return e.pathname}function rme(e){const t=Ct.c(18),{error:n,reset:r}=e,i=Yn(),c=cA();let l;t[0]!==c||t[1]!==r||t[2]!==i?(l=function(){c.invalidateQueries(),r(),i.invalidate()},t[0]=c,t[1]=r,t[2]=i,t[3]=l):l=t[3];const f=l;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=$.jsx(gN,{}),t[4]=d):d=t[4];let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=$.jsx(y2,{}),t[5]=h):h=t[5];let y,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(y=$.jsx("div",{className:"flex justify-center",children:$.jsx(qB,{className:"size-12 text-destructive"})}),g=$.jsx("h1",{className:"font-semibold text-2xl",children:"Something went wrong"}),t[6]=y,t[7]=g):(y=t[6],g=t[7]);const v=n.message||"An unexpected error occurred";let b;t[8]!==v?(b=$.jsx("p",{className:"text-muted-foreground",children:v}),t[8]=v,t[9]=b):b=t[9];let _;t[10]!==f?(_=$.jsx(Rc,{onClick:f,variant:"default",children:"Try Again"}),t[10]=f,t[11]=_):_=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=$.jsx(Cr,{to:"/",children:$.jsx(Rc,{variant:"outline",children:"Go Home"})}),t[12]=x):x=t[12];let R;t[13]!==_?(R=$.jsxs("div",{className:"flex justify-center gap-2",children:[_,x]}),t[13]=_,t[14]=R):R=t[14];let C;return t[15]!==R||t[16]!==b?(C=$.jsxs($.Fragment,{children:[d,$.jsxs("main",{className:"flex flex-1 flex-col",children:[h,$.jsx("div",{className:"flex flex-1 items-center justify-center p-6 pt-0",children:$.jsxs("div",{className:"max-w-md space-y-4 text-center",children:[y,g,b,R]})})]})]}),t[15]=R,t[16]=b,t[17]=C):C=t[17],C}const XS=H6()({head:()=>({meta:[{title:"Mulga"}]}),component:()=>$.jsxs($.Fragment,{children:[$.jsx(aB,{}),$.jsx(gN,{}),$.jsxs("main",{className:"flex flex-1 flex-col",children:[$.jsx(y2,{}),$.jsx("div",{className:"flex flex-1 flex-col p-8",children:$.jsx(DA,{})})]})]}),errorComponent:rme,notFoundComponent:H9}),ome=()=>En(()=>import("./login.js"),__vite__mapDeps([0,1])),ime=mn("/login")({beforeLoad:()=>{if(pp())throw bb({to:"/"})},component:Mn(ome,"component")}),ame=()=>En(()=>import("./route.js"),[]),cme=mn("/_auth")({beforeLoad:()=>{if(!pp())throw bb({to:"/login"})},component:Mn(ame,"component")}),lme={queryKey:["ec2","instances"],queryFn:async()=>{try{const e=new G3({});return await zr().send(e)}catch{throw new Error("Failed to fetch EC2 instances")}},staleTime:5e3},ume=e=>({queryKey:["ec2","instances",e],queryFn:async()=>{try{const t=new G3({InstanceIds:[e]});return await zr().send(t)}catch{throw new Error("Failed to fetch EC2 instance")}},staleTime:5e3}),fme={queryKey:["ec2","instances","types"],queryFn:async()=>{try{const e=new Yle({Filters:[{Name:"capacity",Values:["true"]}]});return await zr().send(e)}catch{throw new Error("Failed to fetch EC2 instance types")}},staleTime:5e3},yN={queryKey:["ec2","images"],queryFn:async()=>{try{const e=new V3({});return await zr().send(e)}catch{throw new Error("Failed to fetch EC2 images")}},staleTime:3e5},vN=e=>({queryKey:["ec2","images",e??"none"],queryFn:async()=>{try{if(!e)return{Images:[],$metadata:{}};const t=new V3({ImageIds:[e]});return await zr().send(t)}catch{throw new Error("Failed to fetch EC2 image")}},staleTime:3e5}),bN={queryKey:["ec2","keypairs"],queryFn:async()=>{try{const e=new K3({});return await zr().send(e)}catch{throw new Error("Failed to fetch key pairs")}},staleTime:3e5},dme=e=>({queryKey:["ec2","keypairs",e],queryFn:async()=>{try{const t=new K3({KeyPairIds:[e]});return await zr().send(t)}catch{throw new Error("Failed to fetch key pair")}},staleTime:3e5}),hme={queryKey:["ec2","regions"],queryFn:async()=>{try{const e=new Xle({});return await zr().send(e)}catch{throw new Error("Failed to fetch regions")}},staleTime:3e5},pme={queryKey:["ec2","volumes"],queryFn:async()=>{try{const e=new Z3({});return await zr().send(e)}catch{throw new Error("Failed to fetch volumes")}},staleTime:5e3},mme=e=>({queryKey:["ec2","volumes",e],queryFn:async()=>{try{const t=new Z3({VolumeIds:[e]});return await zr().send(t)}catch{throw new Error("Failed to fetch volume")}},staleTime:5e3}),gme=()=>En(()=>import("./index3.js"),__vite__mapDeps([2,3,4])),yme=mn("/_auth/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(hme)},head:()=>({meta:[{title:"Dashboard | Mulga"}]}),component:Mn(gme,"component")}),vme={queryKey:["s3","buckets"],queryFn:async()=>{try{const e=new eme({});return await mN().send(e)}catch{throw new Error("Failed to fetch S3 buckets")}},staleTime:5e3},SN=(e,t)=>({queryKey:["s3","buckets",e,"objects",t??""],queryFn:async()=>{try{const n=new tme({Bucket:e,Prefix:t,Delimiter:"/"});return await mN().send(n)}catch{throw new Error("Failed to fetch S3 bucket objects")}},staleTime:5e3}),bme=()=>En(()=>import("./index4.js"),__vite__mapDeps([5,3,6,4])),Sme=mn("/_auth/s3/ls/")({head:()=>({meta:[{title:"Buckets | S3 | Mulga"}]}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(vme)},component:Mn(bme,"component")}),sye=hp({imageId:ci("Please select an Image"),instanceType:ci("Please select an instance type"),keyName:ci("Please select a key pair"),count:Yv("Instance count must be a whole number").min(1,"Instance count must be at least 1")}),rye=hp({keyName:ci().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters")}),oye=hp({keyName:ci().min(1,"Key name is required").max(255,"Key name must be 255 characters or less").regex(/^[\w\s._\-:/()#,@[\]+=&;{}!$*]+$/,"Key name contains invalid characters"),publicKeyMaterial:ci().min(1,"Public key is required").refine(e=>e.trim().length>0,"Public key cannot be empty")}),_me=()=>En(()=>import("./import-key-pair.js"),__vite__mapDeps([7,1,8,9,4,10,11,12])),wme=mn("/_auth/ec2/(key)/import-key-pair")({head:()=>({meta:[{title:"Import Key Pair | EC2 | Mulga"}]}),component:Mn(_me,"component")}),Eme=()=>En(()=>import("./create-key-pair.js"),__vite__mapDeps([13,1,8,9,4,11,12,14,10,15,16])),xme=mn("/_auth/ec2/(key)/create-key-pair")({head:()=>({meta:[{title:"Create Key Pair | EC2 | Mulga"}]}),component:Mn(Eme,"component")}),Rme=()=>En(()=>import("./run-instances.js"),__vite__mapDeps([17,1,3,8,9,4,15,11,12])),Cme=mn("/_auth/ec2/(instances)/run-instances")({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(yN),e.queryClient.ensureQueryData(bN),e.queryClient.ensureQueryData(fme)])},head:()=>({meta:[{title:"Run Instances | EC2 | Mulga"}]}),component:Mn(Rme,"component")}),Tme=()=>En(()=>import("./route2.js"),[]),Ame=mn("/_auth/s3/ls/$bucket")({component:Mn(Tme,"component")}),Ime=()=>En(()=>import("./index5.js"),__vite__mapDeps([18,3,8,4,19,14,16,20,12])),Ome=mn("/_auth/s3/ls/$bucket/")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(SN(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:Mn(Ime,"component")}),Mme=()=>En(()=>import("./index6.js"),__vite__mapDeps([21,3,6,4,22])),Dme=mn("/_auth/ec2/(volumes)/describe-volumes/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(pme)},head:()=>({meta:[{title:"Volumes | EC2 | Mulga"}]}),component:Mn(Mme,"component")}),kme=()=>En(()=>import("./index7.js"),__vite__mapDeps([23,3,6,4])),Pme=mn("/_auth/ec2/(key)/describe-key-pairs/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(bN)},head:()=>({meta:[{title:"Key Pairs | EC2 | Mulga"}]}),component:Mn(kme,"component")}),Nme=()=>En(()=>import("./index8.js"),__vite__mapDeps([24,3,6,4,25])),zme=mn("/_auth/ec2/(instances)/describe-instances/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(lme)},head:()=>({meta:[{title:"Instances | EC2 | Mulga"}]}),component:Mn(Nme,"component")}),Lme=()=>En(()=>import("./index9.js"),__vite__mapDeps([26,3,6,4,22])),Bme=mn("/_auth/ec2/(images)/describe-images/")({loader:async({context:e})=>{await e.queryClient.ensureQueryData(yN)},head:()=>({meta:[{title:"Images | EC2 | Mulga"}]}),component:Mn(Lme,"component")}),$me=()=>En(()=>import("./_.js"),__vite__mapDeps([27,3,8,19,14,16,20,12])),Ume=mn("/_auth/s3/ls/$bucket/$")({loader:async({context:e,params:t})=>{const n=yU(t._splat||"");await e.queryClient.ensureQueryData(SN(t.bucket,n))},head:({params:e})=>({meta:[{title:`${vU(e._splat||"",`${e.bucket}/`)} | S3 | Mulga`}]}),component:Mn($me,"component")}),jme=()=>En(()=>import("./_id.js"),__vite__mapDeps([28,3,8,29,4,22])),Hme=mn("/_auth/ec2/(volumes)/describe-volumes/$id")({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(mme(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:Mn(jme,"component")}),Fme=()=>En(()=>import("./_id2.js"),__vite__mapDeps([30,3,8,29,4,14,11,12,20])),qme=mn("/_auth/ec2/(key)/describe-key-pairs/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(dme(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??"Key Pair"} | EC2 | Mulga`}]}),component:Mn(Fme,"component")}),Vme=()=>En(()=>import("./_id3.js"),__vite__mapDeps([31,3,8,29,4,25,32,11,12,20])),Gme=mn("/_auth/ec2/(instances)/describe-instances/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData(ume(t.id)),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(vN(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??"Instance"} | EC2 | Mulga`}]}),component:Mn(Vme,"component")}),Kme=()=>En(()=>import("./_id4.js"),__vite__mapDeps([33,3,8,4,22,32,29])),Zme=mn("/_auth/ec2/(images)/describe-images/$id")({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(vN(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??"Image"} | EC2 | Mulga`}]}),component:Mn(Kme,"component")}),Qme=ime.update({id:"/login",path:"/login",getParentRoute:()=>XS}),ss=cme.update({id:"/_auth",getParentRoute:()=>XS}),Yme=yme.update({id:"/",path:"/",getParentRoute:()=>ss}),Xme=Sme.update({id:"/s3/ls/",path:"/s3/ls/",getParentRoute:()=>ss}),Wme=wme.update({id:"/ec2/(key)/import-key-pair",path:"/ec2/import-key-pair",getParentRoute:()=>ss}),Jme=xme.update({id:"/ec2/(key)/create-key-pair",path:"/ec2/create-key-pair",getParentRoute:()=>ss}),ege=Cme.update({id:"/ec2/(instances)/run-instances",path:"/ec2/run-instances",getParentRoute:()=>ss}),WS=Ame.update({id:"/s3/ls/$bucket",path:"/s3/ls/$bucket",getParentRoute:()=>ss}),tge=Ome.update({id:"/",path:"/",getParentRoute:()=>WS}),nge=Dme.update({id:"/ec2/(volumes)/describe-volumes/",path:"/ec2/describe-volumes/",getParentRoute:()=>ss}),sge=Pme.update({id:"/ec2/(key)/describe-key-pairs/",path:"/ec2/describe-key-pairs/",getParentRoute:()=>ss}),rge=zme.update({id:"/ec2/(instances)/describe-instances/",path:"/ec2/describe-instances/",getParentRoute:()=>ss}),oge=Bme.update({id:"/ec2/(images)/describe-images/",path:"/ec2/describe-images/",getParentRoute:()=>ss}),ige=Ume.update({id:"/$",path:"/$",getParentRoute:()=>WS}),age=Hme.update({id:"/ec2/(volumes)/describe-volumes/$id",path:"/ec2/describe-volumes/$id",getParentRoute:()=>ss}),cge=qme.update({id:"/ec2/(key)/describe-key-pairs/$id",path:"/ec2/describe-key-pairs/$id",getParentRoute:()=>ss}),lge=Gme.update({id:"/ec2/(instances)/describe-instances/$id",path:"/ec2/describe-instances/$id",getParentRoute:()=>ss}),uge=Zme.update({id:"/ec2/(images)/describe-images/$id",path:"/ec2/describe-images/$id",getParentRoute:()=>ss}),fge={AuthS3LsBucketSplatRoute:ige,AuthS3LsBucketIndexRoute:tge},dge=WS._addFileChildren(fge),hge={AuthIndexRoute:Yme,AuthS3LsBucketRouteRoute:dge,AuthEc2instancesRunInstancesRoute:ege,AuthEc2keyCreateKeyPairRoute:Jme,AuthEc2keyImportKeyPairRoute:Wme,AuthS3LsIndexRoute:Xme,AuthEc2imagesDescribeImagesIdRoute:uge,AuthEc2instancesDescribeInstancesIdRoute:lge,AuthEc2keyDescribeKeyPairsIdRoute:cge,AuthEc2volumesDescribeVolumesIdRoute:age,AuthEc2imagesDescribeImagesIndexRoute:oge,AuthEc2instancesDescribeInstancesIndexRoute:rge,AuthEc2keyDescribeKeyPairsIndexRoute:sge,AuthEc2volumesDescribeVolumesIndexRoute:nge},pge=ss._addFileChildren(hge),mge={AuthRouteRoute:pge,LoginRoute:Qme},gge=XS._addFileChildren(mge)._addFileTypes(),_N=new cL,yge=W6({routeTree:gge,context:{queryClient:_N},defaultPreload:"intent",scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Rv=document.getElementById("app");Rv&&!Rv.innerHTML&&hB.createRoot(Rv).render($.jsx(I.StrictMode,{children:$.jsx(yB,{defaultTheme:"system",storageKey:"hive-ui-theme",children:$.jsx(uL,{client:_N,children:$.jsx(D9,{children:$.jsx(tB,{router:yge})})})})}));export{K8 as $,Oge as A,Rc as B,Ar as C,np as D,Is as E,Lu as F,mt as G,q1 as H,Ze as I,Oy as J,ei as K,_n as L,bt as M,kge as N,DA as O,wn as P,ns as Q,CI as R,DU as S,kU as T,wge as U,go as V,ot as W,X8 as X,zj as Y,Dr as Z,cu as _,Jt as a,aQ as a$,RI as a0,jb as a1,nj as a2,VI as a3,e2 as a4,Yh as a5,ph as a6,Lge as a7,MI as a8,Pb as a9,BA as aA,Ob as aB,_t as aC,wc as aD,Bge as aE,$ge as aF,R2 as aG,Ome as aH,Cge as aI,SN as aJ,pme as aK,Cr as aL,lme as aM,Ume as aN,yU as aO,Tge as aP,vU as aQ,UR as aR,di as aS,ab as aT,Xge as aU,Q3 as aV,DK as aW,zh as aX,ca as aY,uM as aZ,fM as a_,VA as aa,ir as ab,ua as ac,Pge as ad,zge as ae,y5 as af,k5 as ag,Ege as ah,Pj as ai,d9 as aj,Cj as ak,Rj as al,zu as am,hn as an,EU as ao,pi as ap,B5 as aq,Nge as ar,zb as as,p2 as at,wj as au,Dge as av,yN as aw,bN as ax,fme as ay,sye as az,HA as b,Cv as b$,dQ as b0,cQ as b1,Wge as b2,Cu as b3,On as b4,mr as b5,Yge as b6,o0 as b7,ia as b8,jge as b9,ume as bA,vN as bB,zc as bC,Hge as bD,Fge as bE,qge as bF,Vge as bG,Gge as bH,Kge as bI,Zge as bJ,Qge as bK,zr as bL,qh as bM,vge as bN,gu as bO,oL as bP,ts as bQ,gr as bR,bge as bS,Zme as bT,$A as bU,Y4 as bV,H4 as bW,Tv as bX,Vh as bY,U4 as bZ,j4 as b_,Pr as ba,SS as bb,vo as bc,dS as bd,Jge as be,eye as bf,tye as bg,cA as bh,mN as bi,Rge as bj,Hme as bk,xge as bl,mme as bm,qme as bn,dme as bo,fa as bp,$j as bq,Lj as br,AI as bs,_5 as bt,Hj as bu,S5 as bv,xj as bw,Tj as bx,b5 as by,Gme as bz,Ct as c,sA as c0,nL as c1,V4 as c2,ha as c3,mo as c4,yV as d,hme as e,vme as f,vr as g,rye as h,oye as i,$ as j,OU as k,Mge as l,Age as m,Ige as n,Md as o,DI as p,fi as q,I as r,Uge as s,Su as t,Qh as u,PU as v,qt as w,Eh as x,hI as y,jv as z}; diff --git a/hive/services/hiveui/frontend/dist/assets/index2.js b/hive/services/hiveui/frontend/dist/assets/index2.js new file mode 100644 index 000000000..79837a41b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index2.js @@ -0,0 +1 @@ +import{c3 as z,c4 as x}from"./index.js";class T{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:a,serializer:n,deserializer:o,serdeContext:m,defaultContentType:y}){this.marshaller=a,this.serializer=n,this.deserializer=o,this.serdeContext=m,this.defaultContentType=y}async serializeEventStream({eventStream:a,requestSchema:n,initialRequest:o}){const m=this.marshaller,y=n.getEventStreamMember(),p=n.getMemberSchema(y),d=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};d.write(n,o);const t=d.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of a)yield r}};return m.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:i,eventType:l,explicitPayloadContentType:c}=this.writeEventBody(t,p,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:c??f},...e},body:i}})}async deserializeEventStream({response:a,responseSchema:n,initialResponseContainer:o}){const m=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=m.deserialize(a.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",i=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,i);return delete l[y],{[f]:!0,...l}}else if(e in d){const l=d[e];if(l.isStructSchema()){const c={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?c[s]=i:g.isStringSchema()?c[s]=(this.serdeContext?.utf8Encoder??z)(i):g.isStructSchema()&&(c[s]=await this.deserializer.read(g,i));else if(v){const b=t[e].headers[s]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?c[s]=BigInt(b.toString()):c[s]=Number(b):c[s]=b)}}if(u)return{[e]:c};if(i.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,i)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(a,n,o){const m=this.serializer;let y=a,p=null,d;const f=n.getSchema()[4].includes(a),h={};if(f){const t=n.getMemberSchema(a);if(t.isStructSchema()){for(const[e,i]of t.structIterator()){const{eventHeader:l,eventPayload:c}=i.getMergedTraits();if(c)p=e;else if(l){const u=o[a][e];let s="binary";i.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":i.isTimestampSchema()?s="timestamp":i.isStringSchema()?s="string":i.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[a][e])}}if(p!==null){const e=t.getMemberSchema(p);e.isBlobSchema()?d="application/octet-stream":e.isStringSchema()&&(d="text/plain"),m.write(e,o[a][p])}else m.write(t,o[a])}else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[a];y=t,m.write(15,e)}const S=m.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??x)(S):S,eventType:y,explicitPayloadContentType:d,additionalHeaders:h}}}export{T as EventStreamSerde}; diff --git a/hive/services/hiveui/frontend/dist/assets/index3.js b/hive/services/hiveui/frontend/dist/assets/index3.js new file mode 100644 index 000000000..23ebaadb5 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index3.js @@ -0,0 +1 @@ +import{c as n,e as r,j as i}from"./index.js";import{u as a}from"./useSuspenseQuery.js";import{P as p}from"./page-heading.js";function g(){const e=n.c(2),{data:t}=a(r),s=`${t?.Regions?.[0]?.RegionName} Dashboard`;let o;return e[0]!==s?(o=i.jsx(p,{title:s}),e[0]=s,e[1]=o):o=e[1],o}export{g as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index4.js b/hive/services/hiveui/frontend/dist/assets/index4.js new file mode 100644 index 000000000..2f3c9141e --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index4.js @@ -0,0 +1 @@ +import{c as i,f as m,j as t}from"./index.js";import{u as c}from"./useSuspenseQuery.js";import{L as l}from"./list-card.js";import{P as u}from"./page-heading.js";function N(){const e=i.c(5),{data:n}=c(m);let s;e[0]!==n.Buckets?(s=n.Buckets||[],e[0]=n.Buckets,e[1]=s):s=e[1];const r=s;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(u,{title:"S3 Buckets"}),e[2]=a):a=e[2];let o;return e[3]!==r?(o=t.jsxs(t.Fragment,{children:[a,r.length>0?t.jsx("div",{className:"space-y-4",children:r.map(p)}):t.jsx("p",{className:"text-muted-foreground",children:"No buckets found."})]}),e[3]=r,e[4]=o):o=e[4],o}function p(e){return e.Name?t.jsx(l,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${e.CreationDate.toLocaleString()}`:void 0,title:e.Name,to:"/s3/ls/$bucket"},e.Name):null}export{N as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index5.js b/hive/services/hiveui/frontend/dist/assets/index5.js new file mode 100644 index 000000000..9c76ff069 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index5.js @@ -0,0 +1 @@ +import{c as g,aH as b,j as s,aI as P,aJ as y}from"./index.js";import{u as k}from"./useSuspenseQuery.js";import{B as N}from"./back-link.js";import{P as B}from"./page-heading.js";import{F as C,O,U as K}from"./upload-button.js";import"./alert-dialog.js";import"./download.js";import"./trash-2.js";import"./useMutation.js";function U(){const e=g.c(26),{bucket:t}=b.useParams();let u;e[0]!==t?(u=y(t),e[0]=t,e[1]=u):u=e[1];const{data:i}=k(u);let x;e[2]!==i.Contents?(x=i.Contents||[],e[2]=i.Contents,e[3]=x):x=e[3];const n=x;let d;e[4]!==i.CommonPrefixes?(d=i.CommonPrefixes||[],e[4]=i.CommonPrefixes,e[5]=d):d=e[5];const o=d;let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(N,{to:"/s3/ls",children:"Back to buckets"}),e[6]=h):h=e[6];let r;e[7]!==t?(r=s.jsx(K,{bucket:t}),e[7]=t,e[8]=r):r=e[8];let m;e[9]!==t||e[10]!==r?(m=s.jsx(B,{actions:r,title:t}),e[9]=t,e[10]=r,e[11]=m):m=e[11];let a;e[12]!==t||e[13]!==o?(a=o.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Folders"}),s.jsx("div",{className:"space-y-2",children:o.map(l=>{if(!l.Prefix)return null;const j=P(l.Prefix);return s.jsx(C,{bucketName:t,folderName:j,fullPrefix:l.Prefix},l.Prefix)})})]}),e[12]=t,e[13]=o,e[14]=a):a=e[14];let c;e[15]!==t||e[16]!==n?(c=n.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h2",{className:"mb-3 font-semibold text-lg",children:"Objects"}),n.map(l=>l.Key?s.jsx(O,{bucketName:t,displayName:l.Key,fullKey:l.Key,object:l},l.Key):null)]}),e[15]=t,e[16]=n,e[17]=c):c=e[17];let f;e[18]!==o.length||e[19]!==n.length?(f=n.length===0&&o.length===0&&s.jsx("p",{className:"text-muted-foreground",children:"No objects found in this bucket."}),e[18]=o.length,e[19]=n.length,e[20]=f):f=e[20];let p;return e[21]!==m||e[22]!==a||e[23]!==c||e[24]!==f?(p=s.jsxs(s.Fragment,{children:[h,m,a,c,f]}),e[21]=m,e[22]=a,e[23]=c,e[24]=f,e[25]=p):p=e[25],p}export{U as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index6.js b/hive/services/hiveui/frontend/dist/assets/index6.js new file mode 100644 index 000000000..01d8337b1 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index6.js @@ -0,0 +1 @@ +import{c as l,aK as m,j as t}from"./index.js";import{u as n}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as c}from"./page-heading.js";import{B as d}from"./badge.js";function h(){const e=l.c(5),{data:r}=n(m);let s;e[0]!==r.Volumes?(s=r.Volumes||[],e[0]=r.Volumes,e[1]=s):s=e[1];const o=s;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(c,{title:"EC2 Volumes"}),e[2]=a):a=e[2];let i;return e[3]!==o?(i=t.jsxs(t.Fragment,{children:[a,o.length>0?t.jsx("div",{className:"space-y-4",children:o.map(p)}):t.jsx("p",{className:"text-muted-foreground",children:"No volumes found."})]}),e[3]=o,e[4]=i):i=e[4],i}function p(e){return e.VolumeId?t.jsx(u,{badge:e.State?t.jsx(d,{variant:e.State==="available"?"default":"outline",children:e.State}):void 0,params:{id:e.VolumeId},subtitle:`${e.Size} GiB • ${e.VolumeType}`,title:e.VolumeId,to:"/ec2/describe-volumes/$id"},e.VolumeId):null}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index7.js b/hive/services/hiveui/frontend/dist/assets/index7.js new file mode 100644 index 000000000..2ad836dae --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index7.js @@ -0,0 +1 @@ +import{c as m,ax as l,j as t,aL as n,B as c}from"./index.js";import{u as p}from"./useSuspenseQuery.js";import{L as d}from"./list-card.js";import{P as y}from"./page-heading.js";function P(){const e=m.c(4),{data:r}=p(l);let s;if(e[0]!==r.KeyPairs){const a=[...r.KeyPairs||[]].sort(x);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(n,{to:"/ec2/import-key-pair",children:t.jsx(c,{variant:"outline",children:"Import Key Pair"})}),e[2]=i):i=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(y,{actions:t.jsxs("div",{className:"flex gap-2",children:[i,t.jsx(n,{to:"/ec2/create-key-pair",children:t.jsx(c,{children:"Create Key Pair"})})]}),title:"EC2 Key Pairs"}),e[3]=o):o=e[3],s=t.jsxs(t.Fragment,{children:[o,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(u)}):t.jsx("p",{className:"text-muted-foreground",children:"No key pairs found."})]}),e[0]=r.KeyPairs,e[1]=s}else s=e[1];return s}function u(e){return e.KeyPairId?t.jsx(d,{params:{id:e.KeyPairId},subtitle:`${e.KeyPairId} • ${e.KeyType}`,title:e.KeyName??"",to:"/ec2/describe-key-pairs/$id"},e.KeyPairId):null}function x(e,r){const s=e.KeyName?.toLowerCase()??"",a=r.KeyName?.toLowerCase()??"";return s.localeCompare(a)}export{P as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index8.js b/hive/services/hiveui/frontend/dist/assets/index8.js new file mode 100644 index 000000000..a8faf31ad --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index8.js @@ -0,0 +1 @@ +import{c as o,aM as c,j as t,aL as i,B as m}from"./index.js";import{u as d}from"./useSuspenseQuery.js";import{L as u}from"./list-card.js";import{P as l}from"./page-heading.js";import{S as p}from"./state-badge.js";function y(){const e=o.c(3),{data:a}=d(c);let s;if(e[0]!==a.Reservations){const r=a.Reservations?.flatMap(I)||[];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(l,{actions:t.jsx(i,{to:"/ec2/run-instances",children:t.jsx(m,{children:"Run Instances"})}),title:"EC2 Instances"}),e[2]=n):n=e[2],s=t.jsxs(t.Fragment,{children:[n,r.length>0?t.jsx("div",{className:"space-y-4",children:r.map(f)}):t.jsx("p",{className:"text-muted-foreground",children:"No instances found."})]}),e[0]=a.Reservations,e[1]=s}else s=e[1];return s}function f(e){return e.InstanceId?t.jsx(u,{badge:t.jsx(p,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType} • ${e.ImageId}`,title:e.InstanceId,to:"/ec2/describe-instances/$id"},e.InstanceId):null}function I(e){return e.Instances||[]}export{y as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/index9.js b/hive/services/hiveui/frontend/dist/assets/index9.js new file mode 100644 index 000000000..a3d9a0eb3 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/index9.js @@ -0,0 +1 @@ +import{c as n,aw as i,j as t}from"./index.js";import{u as l}from"./useSuspenseQuery.js";import{L as c}from"./list-card.js";import{P as d}from"./page-heading.js";import{B as u}from"./badge.js";function h(){const e=n.c(5),{data:m}=l(i);let s;e[0]!==m.Images?(s=m.Images||[],e[0]=m.Images,e[1]=s):s=e[1];const a=s;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(d,{title:"EC2 Images"}),e[2]=r):r=e[2];let o;return e[3]!==a?(o=t.jsxs(t.Fragment,{children:[r,a.length>0?t.jsx("div",{className:"space-y-4",children:a.map(p)}):t.jsx("p",{className:"text-muted-foreground",children:"No images found."})]}),e[3]=a,e[4]=o):o=e[4],o}function p(e){return e.ImageId?t.jsx(c,{badge:e.State?t.jsx(u,{variant:e.State==="available"?"default":"outline",children:e.State}):void 0,params:{id:e.ImageId},subtitle:e.Name,title:e.ImageId,to:"/ec2/describe-images/$id"},e.ImageId):null}export{h as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-cyrillic-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-cyrillic-wght-normal.woff2 new file mode 100644 index 000000000..8ee2d7085 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-cyrillic-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-greek-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-greek-wght-normal.woff2 new file mode 100644 index 000000000..6084d3934 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-greek-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-ext-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-ext-wght-normal.woff2 new file mode 100644 index 000000000..01769d9e6 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-ext-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-wght-normal.woff2 new file mode 100644 index 000000000..cd5102a44 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-latin-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-vietnamese-wght-normal.woff2 b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-vietnamese-wght-normal.woff2 new file mode 100644 index 000000000..b6a3fa103 Binary files /dev/null and b/hive/services/hiveui/frontend/dist/assets/jetbrains-mono-vietnamese-wght-normal.woff2 differ diff --git a/hive/services/hiveui/frontend/dist/assets/list-card.js b/hive/services/hiveui/frontend/dist/assets/list-card.js new file mode 100644 index 000000000..efc9813dd --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/list-card.js @@ -0,0 +1 @@ +import{c as u,j as m,aL as h}from"./index.js";function b(x){const e=u.c(22);let s,l,i,t,r;e[0]!==x?({title:r,subtitle:t,badge:s,children:l,...i}=x,e[0]=x,e[1]=s,e[2]=l,e[3]=i,e[4]=t,e[5]=r):(s=e[1],l=e[2],i=e[3],t=e[4],r=e[5]);let a;e[6]!==r?(a=m.jsx("h3",{className:"font-semibold",children:r}),e[6]=r,e[7]=a):a=e[7];let c;e[8]!==t?(c=t&&m.jsx("p",{className:"mt-1 font-medium text-muted-foreground text-sm",children:t}),e[8]=t,e[9]=c):c=e[9];let n;e[10]!==l||e[11]!==a||e[12]!==c?(n=m.jsxs("div",{className:"flex-1",children:[a,c,l]}),e[10]=l,e[11]=a,e[12]=c,e[13]=n):n=e[13];let o;e[14]!==s?(o=s&&m.jsx("div",{className:"ml-4",children:s}),e[14]=s,e[15]=o):o=e[15];let d;e[16]!==n||e[17]!==o?(d=m.jsxs("div",{className:"flex items-start justify-between",children:[n,o]}),e[16]=n,e[17]=o,e[18]=d):d=e[18];let f;return e[19]!==i||e[20]!==d?(f=m.jsx(h,{className:"block rounded-lg border bg-card p-4 transition-colors hover:bg-accent",...i,children:d}),e[19]=i,e[20]=d,e[21]=f):f=e[21],f}export{b as L}; diff --git a/hive/services/hiveui/frontend/dist/assets/login.js b/hive/services/hiveui/frontend/dist/assets/login.js new file mode 100644 index 000000000..236bc947d --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/login.js @@ -0,0 +1 @@ +import{c as u,a as p,j as r,b as D,u as P,d as R,s as L,B as X}from"./index.js";import{a as B,u as G,I as $}from"./zod.js";function O(t){const e=u.c(10);let l,s,a;e[0]!==t?({className:l,size:a,...s}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=a):(l=e[1],s=e[2],a=e[3]);const i=a===void 0?"default":a;let o;e[4]!==l?(o=p("group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-card-foreground text-xs/relaxed ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",l),e[4]=l,e[5]=o):o=e[5];let c;return e[6]!==s||e[7]!==i||e[8]!==o?(c=r.jsx("div",{className:o,"data-size":i,"data-slot":"card",...s}),e[6]=s,e[7]=i,e[8]=o,e[9]=c):c=e[9],c}function T(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"card-header",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function V(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("font-medium text-sm",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"card-title",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function Y(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("text-muted-foreground text-xs/relaxed",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"card-description",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function q(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("px-4 group-data-[size=sm]/card:px-3",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"card-content",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function H(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"field-group",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const J=D("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"@md/field-group:flex-row flex-col @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:[&>*]:w-auto [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function z(t){const e=u.c(11);let l,s,a;e[0]!==t?({className:l,orientation:a,...s}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=a):(l=e[1],s=e[2],a=e[3]);const i=a===void 0?"vertical":a;let o;e[4]!==l||e[5]!==i?(o=p(J({orientation:i}),l),e[4]=l,e[5]=i,e[6]=o):o=e[6];let c;return e[7]!==i||e[8]!==s||e[9]!==o?(c=r.jsx("div",{className:o,"data-orientation":i,"data-slot":"field",role:"group",...s}),e[7]=i,e[8]=s,e[9]=o,e[10]=c):c=e[10],c}function F(t){const e=u.c(8);let l,s;e[0]!==t?({className:l,...s}=t,e[0]=t,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let a;e[3]!==l?(a=p("flex w-fit items-center gap-2 font-medium text-xs/relaxed leading-snug group-data-[disabled=true]/field:opacity-50",l),e[3]=l,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{className:a,"data-slot":"field-label",...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function k(t){const e=u.c(15);let l,s,a,i;e[0]!==t?({className:s,children:l,errors:a,...i}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=a,e[4]=i):(l=e[1],s=e[2],a=e[3],i=e[4]);let o;e:{if(l){o=l;break e}if(!a?.length){o=null;break e}let m;e[5]!==a?(m=[...new Map(a.map(W)).values()],e[5]=a,e[6]=m):m=e[6];const f=m;if(f?.length===1){o=f[0]?.message;break e}let d;e[7]!==f?(d=r.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:f.map(U)}),e[7]=f,e[8]=d):d=e[8],o=d}const c=o;if(!c)return null;let n;e[9]!==s?(n=p("font-normal text-destructive text-xs/relaxed",s),e[9]=s,e[10]=n):n=e[10];let x;return e[11]!==c||e[12]!==i||e[13]!==n?(x=r.jsx("div",{className:n,"data-slot":"field-error",role:"alert",...i,children:c}),e[11]=c,e[12]=i,e[13]=n,e[14]=x):x=e[14],x}function U(t){return t?.message&&r.jsx("li",{children:t.message},t.message)}function W(t){return[t?.message,t]}function te(){const t=u.c(39),e=P();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={resolver:B(R)},t[0]=l):l=t[0];const{register:s,handleSubmit:a,formState:i}=G(l),{errors:o,isSubmitting:c}=i;let n;t[1]!==e?(n=function(M){L(M),e({to:"/"})},t[1]=e,t[2]=n):n=t[2];const x=n;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(V,{children:"AWS Credentials"}),t[3]=m):m=t[3];let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsxs(T,{children:[m,r.jsxs(Y,{children:["Run ",r.jsx("code",{children:"cat ~/hive/config/hive.toml"})," to get your credentials"]})]}),t[4]=f):f=t[4];let d;t[5]!==a||t[6]!==x?(d=a(x),t[5]=a,t[6]=x,t[7]=d):d=t[7];let A;t[8]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx(F,{children:r.jsx("label",{htmlFor:"accessKeyId",children:"Access Key ID"})}),t[8]=A):A=t[8];const _=!!o.accessKeyId;let g;t[9]!==s?(g=s("accessKeyId"),t[9]=s,t[10]=g):g=t[10];let h;t[11]!==_||t[12]!==g?(h=r.jsx($,{"aria-invalid":_,autoComplete:"username",id:"accessKeyId",placeholder:"AKIAIOSFODNN7EXAMPLE",...g}),t[11]=_,t[12]=g,t[13]=h):h=t[13];let b;t[14]!==o.accessKeyId?(b=r.jsx(k,{errors:[o.accessKeyId]}),t[14]=o.accessKeyId,t[15]=b):b=t[15];let j;t[16]!==b||t[17]!==h?(j=r.jsxs(z,{children:[A,h,b]}),t[16]=b,t[17]=h,t[18]=j):j=t[18];let I;t[19]===Symbol.for("react.memo_cache_sentinel")?(I=r.jsx(F,{children:r.jsx("label",{htmlFor:"secretAccessKey",children:"Secret Access Key"})}),t[19]=I):I=t[19];const E=!!o.secretAccessKey;let v;t[20]!==s?(v=s("secretAccessKey"),t[20]=s,t[21]=v):v=t[21];let y;t[22]!==E||t[23]!==v?(y=r.jsx($,{"aria-invalid":E,autoComplete:"current-password",id:"secretAccessKey",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",...v}),t[22]=E,t[23]=v,t[24]=y):y=t[24];let N;t[25]!==o.secretAccessKey?(N=r.jsx(k,{errors:[o.secretAccessKey]}),t[25]=o.secretAccessKey,t[26]=N):N=t[26];let w;t[27]!==y||t[28]!==N?(w=r.jsxs(z,{children:[I,y,N]}),t[27]=y,t[28]=N,t[29]=w):w=t[29];let K;t[30]!==c?(K=r.jsx(X,{className:"w-full",disabled:c,type:"submit",children:"Sign In"}),t[30]=c,t[31]=K):K=t[31];let S;t[32]!==j||t[33]!==w||t[34]!==K?(S=r.jsxs(H,{children:[j,w,K]}),t[32]=j,t[33]=w,t[34]=K,t[35]=S):S=t[35];let C;return t[36]!==S||t[37]!==d?(C=r.jsx("div",{className:"flex flex-1 items-center justify-center",children:r.jsxs(O,{className:"w-full max-w-sm",children:[f,r.jsx(q,{children:r.jsx("form",{onSubmit:d,children:S})})]})}),t[36]=S,t[37]=d,t[38]=C):C=t[38],C}export{te as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/page-heading.js b/hive/services/hiveui/frontend/dist/assets/page-heading.js new file mode 100644 index 000000000..bdf637290 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/page-heading.js @@ -0,0 +1 @@ +import{c as o,j as n}from"./index.js";function f(m){const e=o.c(12),{title:x,subtitle:r,actions:c}=m;let t;e[0]!==x?(t=n.jsx("h1",{className:"text-3xl",children:x}),e[0]=x,e[1]=t):t=e[1];let s;e[2]!==r?(s=r&&n.jsx("p",{className:"mt-1 text-muted-foreground",children:r}),e[2]=r,e[3]=s):s=e[3];let i;e[4]!==t||e[5]!==s?(i=n.jsxs("div",{children:[t,s]}),e[4]=t,e[5]=s,e[6]=i):i=e[6];let l;e[7]!==c?(l=c&&n.jsx("div",{children:c}),e[7]=c,e[8]=l):l=e[8];let a;return e[9]!==i||e[10]!==l?(a=n.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[i,l]}),e[9]=i,e[10]=l,e[11]=a):a=e[11],a}export{f as P}; diff --git a/hive/services/hiveui/frontend/dist/assets/route.js b/hive/services/hiveui/frontend/dist/assets/route.js new file mode 100644 index 000000000..493046d25 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/route.js @@ -0,0 +1 @@ +import{c as o,j as s,O as n}from"./index.js";const r=()=>{const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(n,{}),e[0]=t):t=e[0],t};export{r as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/route2.js b/hive/services/hiveui/frontend/dist/assets/route2.js new file mode 100644 index 000000000..493046d25 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/route2.js @@ -0,0 +1 @@ +import{c as o,j as s,O as n}from"./index.js";const r=()=>{const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(n,{}),e[0]=t):t=e[0],t};export{r as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/run-instances.js b/hive/services/hiveui/frontend/dist/assets/run-instances.js new file mode 100644 index 000000000..314339a48 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/run-instances.js @@ -0,0 +1 @@ +import{g as Jt,A as jt,k as Re,l as Je,m as Fe,n as Ue,o as Ut,r as l,p as Zt,q as He,t as Bt,v as In,w as xe,x as ht,y as Tn,E as en,z as tn,C as De,D as Mn,F as Cn,G as Y,H as En,I as de,J as An,K as _t,L as Pn,M as Ge,N as xt,P as zt,Q as On,R as nn,S as Nn,T as Vn,U as At,V as ut,j as y,W as q,X as Lt,Y as kn,Z as Pt,_ as jn,$ as N,a0 as Ln,a1 as ft,a2 as Dn,a3 as Hn,a4 as Fn,a5 as rn,a6 as sn,a7 as Un,a8 as Bn,a9 as Dt,aa as on,ab as Ve,ac as Ot,ad as _n,ae as zn,af as Wn,ag as Kn,ah as $n,ai as qn,aj as Yn,ak as Gn,al as Xn,am as ln,an as Wt,ao as Qn,ap as Jn,aq as Zn,ar as er,as as cn,at as tr,au as nr,av as yt,c as Ke,a as $e,u as rr,aw as sr,ax as or,ay as ir,az as lr,B as Kt}from"./index.js";import{b as cr,c as an,d as un,e as $t,f as ar,g as ur,h as fr,u as dr,a as pr,C as bt,I as mr}from"./zod.js";import{u as Rt}from"./useSuspenseQuery.js";import{B as gr}from"./back-link.js";import{E as qt,L as st}from"./error-banner.js";import{P as hr}from"./page-heading.js";import{C as xr}from"./check.js";import{b as yr}from"./ec2.js";import"./useMutation.js";const br=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fn=Jt("chevron-down",br);const Rr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wr=Jt("chevron-up",Rr);function ot(t,e,n){return Math.floor(t/e)!==n}function Xe(t,e){return e<0||e>=t.current.length}function wt(t,e){return he(t,{disabledIndices:e})}function Yt(t,e){return he(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function he(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:s,amount:o=1}={}){let r=e;do r+=n?-o:o;while(r>=0&&r<=t.current.length-1&&Qe(t,r,s));return r}function Sr(t,{event:e,orientation:n,loopFocus:s,rtl:o,cols:r,disabledIndices:a,minIndex:u,maxIndex:d,prevIndex:m,stopEvent:g=!1}){let p=m;const b=[],A={};let R=!1;{let c=null,w=-1;t.current.forEach((i,f)=>{if(i==null)return;const v=i.closest('[role="row"]');v&&(R=!0),(v!==c||w===-1)&&(c=v,w+=1,b[w]=[]),b[w].push(f),A[f]=w})}const x=R&&b.length>0&&b.some(c=>c.length!==r);function T(c){if(!x||m===-1)return;const w=A[m];if(w==null)return;const i=b[w].indexOf(m);let f=c==="up"?w-1:w+1;s&&(f<0?f=b.length-1:f>=b.length&&(f=0));const v=new Set;for(;f>=0&&f=0;k-=1){const re=V[k];if(!Qe(t,re,a))return re}f=c==="up"?f-1:f+1,s&&(f<0?f=b.length-1:f>=b.length&&(f=0))}}if(e.key===jt){const c=T("up");if(c!==void 0)g&&Re(e),p=c;else{if(g&&Re(e),m===-1)p=d;else if(p=he(t,{startingIndex:p,amount:r,decrement:!0,disabledIndices:a}),s&&(m-rw?f:f-r}Xe(t,p)&&(p=m)}}if(e.key===Je){const c=T("down");c!==void 0?(g&&Re(e),p=c):(g&&Re(e),m===-1?p=u:(p=he(t,{startingIndex:m,amount:r,disabledIndices:a}),s&&m+r>d&&(p=he(t,{startingIndex:m%r-r,amount:r,disabledIndices:a}))),Xe(t,p)&&(p=m))}if(n==="both"){const c=Ut(m/r);e.key===(o?Fe:Ue)&&(g&&Re(e),m%r!==r-1?(p=he(t,{startingIndex:m,disabledIndices:a}),s&&ot(p,r,c)&&(p=he(t,{startingIndex:m-m%r-1,disabledIndices:a}))):s&&(p=he(t,{startingIndex:m-m%r-1,disabledIndices:a})),ot(p,r,c)&&(p=m)),e.key===(o?Ue:Fe)&&(g&&Re(e),m%r!==0?(p=he(t,{startingIndex:m,decrement:!0,disabledIndices:a}),s&&ot(p,r,c)&&(p=he(t,{startingIndex:m+(r-m%r),decrement:!0,disabledIndices:a}))):s&&(p=he(t,{startingIndex:m+(r-m%r),decrement:!0,disabledIndices:a})),ot(p,r,c)&&(p=m));const w=Ut(d/r)===c;Xe(t,p)&&(s&&w?p=e.key===(o?Ue:Fe)?d:he(t,{startingIndex:m-m%r-1,disabledIndices:a}):p=m)}return p}function vr(t,e,n){const s=[];let o=0;return t.forEach(({width:r,height:a},u)=>{let d=!1;for(n&&(o=0);!d;){const m=[];for(let g=0;gs[g]==null)?(m.forEach(g=>{s[g]=u}),d=!0):o+=1}}),[...s]}function Ir(t,e,n,s,o){if(t===-1)return-1;const r=n.indexOf(t),a=e[t];switch(o){case"tl":return r;case"tr":return a?r+a.width-1:r;case"bl":return a?r+(a.height-1)*s:r;case"br":return n.lastIndexOf(t);default:return-1}}function Tr(t,e){return e.flatMap((n,s)=>t.includes(n)?[s]:[])}function Qe(t,e,n){if(typeof n=="function")return n(e);if(n)return n.includes(e);const s=t.current[e];return s?s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true":!1}function Mr(t,e={}){const n="rootStore"in t?t.rootStore:t,s=n.context.dataRef,{enabled:o=!0,event:r="click",toggle:a=!0,ignoreMouse:u=!1,stickIfOpen:d=!0,touchOpenDelay:m=0}=e,g=l.useRef(void 0),p=Zt(),b=He(),A=l.useMemo(()=>({onPointerDown(R){g.current=R.pointerType},onMouseDown(R){const x=g.current,T=R.nativeEvent,c=n.select("open");if(R.button!==0||r==="click"||Bt(x,!0)&&u)return;const w=s.current.openEvent,i=w?.type,f=n.select("domReferenceElement")!==R.currentTarget,v=c&&f||!(c&&a&&(!(w&&d)||i==="click"||i==="mousedown"));if(Tn(T.target)){const B=xe(ht,T,T.target);v&&x==="touch"&&m>0?b.start(m,()=>{n.setOpen(!0,B)}):n.setOpen(v,B);return}const V=R.currentTarget;p.request(()=>{const B=xe(ht,T,V);v&&x==="touch"&&m>0?b.start(m,()=>{n.setOpen(!0,B)}):n.setOpen(v,B)})},onClick(R){if(r==="mousedown-only")return;const x=g.current;if(r==="mousedown"&&x){g.current=void 0;return}if(Bt(x,!0)&&u)return;const T=n.select("open"),c=s.current.openEvent,w=n.select("domReferenceElement")!==R.currentTarget,i=T&&w||!(T&&a&&(!(c&&d)||In(c))),f=xe(ht,R.nativeEvent,R.currentTarget);i&&x==="touch"&&m>0?b.start(m,()=>{n.setOpen(!0,f)}):n.setOpen(i,f)},onKeyDown(){g.current=void 0}}),[s,r,u,n,d,a,p,b,m]);return l.useMemo(()=>o?{reference:A}:en,[o,A])}const Cr="Escape";function dt(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function it(t,e){return dt(e,t===jt||t===Je,t===Fe||t===Ue)}function St(t,e,n){return dt(e,t===Je,n?t===Fe:t===Ue)||t==="Enter"||t===" "||t===""}function Er(t,e,n){return dt(e,n?t===Fe:t===Ue,t===Je)}function Ar(t,e,n,s){const o=n?t===Ue:t===Fe,r=t===jt;return e==="both"||e==="horizontal"&&s&&s>1?t===Cr:dt(e,o,r)}function Pr(t,e){const n="rootStore"in t?t.rootStore:t,s=n.useState("open"),o=n.useState("floatingElement"),r=n.useState("domReferenceElement"),a=n.context.dataRef,{listRef:u,activeIndex:d,onNavigate:m=()=>{},enabled:g=!0,selectedIndex:p=null,allowEscape:b=!1,loopFocus:A=!1,nested:R=!1,rtl:x=!1,virtual:T=!1,focusItemOnOpen:c="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:i=!0,disabledIndices:f=void 0,orientation:v="vertical",parentOrientation:V,cols:B=1,scrollItemIntoView:k=!0,itemSizes:re,dense:ae=!1,id:W,resetOnPointerLeave:K=!0,externalTree:z}=e,L=tn(o),ee=De(L),F=Mn(),te=Cn(z);Y(()=>{a.current.orientation=v},[a,v]);const I=En(r),U=l.useRef(c),S=l.useRef(p??-1),E=l.useRef(null),ie=l.useRef(!0),M=de(h=>{m(S.current===-1?null:S.current,h)}),oe=l.useRef(M),G=l.useRef(!!o),O=l.useRef(s),_=l.useRef(!1),ue=l.useRef(!1),ve=De(f),H=De(s),fe=De(k),X=De(p),me=De(K),we=de(()=>{function h(Z){T?te?.events.emit("virtualfocus",Z):An(Z,{sync:_.current,preventScroll:!0})}const j=u.current[S.current],C=ue.current;j&&h(j),(_.current?Z=>Z():requestAnimationFrame)(()=>{const Z=u.current[S.current]||j;if(!Z)return;j||h(Z);const le=fe.current;le&&Q&&(C||!ie.current)&&Z.scrollIntoView?.(typeof le=="boolean"?{block:"nearest",inline:"nearest"}:le)})});Y(()=>{g&&(s&&o?(S.current=p??-1,U.current&&p!=null&&(ue.current=!0,M())):G.current&&(S.current=-1,oe.current()))},[g,s,o,p,M]),Y(()=>{if(g){if(!s){_.current=!1;return}if(o)if(d==null){if(_.current=!1,X.current!=null)return;if(G.current&&(S.current=-1,we()),(!O.current||!G.current)&&U.current&&(E.current!=null||U.current===!0&&E.current==null)){let h=0;const j=()=>{u.current[0]==null?(h<2&&(h?requestAnimationFrame:queueMicrotask)(j),h+=1):(S.current=E.current==null||St(E.current,v,x)||R?wt(u):Yt(u),E.current=null,M())};j()}}else Xe(u,d)||(S.current=d,we(),ue.current=!1)}},[g,s,o,d,X,R,u,v,x,M,we,ve]),Y(()=>{if(!g||o||!te||T||!G.current)return;const h=te.nodesRef.current,j=h.find(Z=>Z.id===F)?.context?.elements.floating,C=_t(Pn(o)),$=h.some(Z=>Z.context&&Ge(Z.context.elements.floating,C));j&&!$&&ie.current&&j.focus({preventScroll:!0})},[g,o,te,F,T]),Y(()=>{oe.current=M,O.current=s,G.current=!!o}),Y(()=>{s||(E.current=null,U.current=c)},[s,c]);const pe=d!=null,Q=l.useMemo(()=>{function h(C){if(!H.current)return;const $=u.current.indexOf(C.currentTarget);$!==-1&&S.current!==$&&(S.current=$,M(C))}return{onFocus(C){_.current=!0,h(C)},onClick:({currentTarget:C})=>C.focus({preventScroll:!0}),onMouseMove(C){_.current=!0,ue.current=!1,w&&h(C)},onPointerLeave(C){if(!H.current||!ie.current||C.pointerType==="touch")return;_.current=!0;const $=C.relatedTarget;!w||u.current.includes($)||me.current&&(S.current=-1,M(C),T||ee.current?.focus({preventScroll:!0}))}}},[H,ee,w,u,M,me,T]),J=l.useCallback(()=>V??te?.nodesRef.current.find(h=>h.id===F)?.context?.dataRef?.current.orientation,[F,te,V]),ye=de(h=>{if(ie.current=!1,_.current=!0,h.which===229||!H.current&&h.currentTarget===ee.current)return;if(R&&Ar(h.key,v,x,B)){it(h.key,J())||Re(h),n.setOpen(!1,xe(xt,h.nativeEvent)),zt(r)&&(T?te?.events.emit("virtualfocus",r):r.focus());return}const j=S.current,C=wt(u,f),$=Yt(u,f);if(I||(h.key==="Home"&&(Re(h),S.current=C,M(h)),h.key==="End"&&(Re(h),S.current=$,M(h))),B>1){const Z=re||Array.from({length:u.current.length},()=>({width:1,height:1})),le=vr(Z,B,ae),ge=le.findIndex(Se=>Se!=null&&!Qe(u,Se,f)),be=le.reduce((Se,Me,Le)=>Me!=null&&!Qe(u,Me,f)?Le:Se,-1),je=le[Sr({current:le.map(Se=>Se!=null?u.current[Se]:null)},{event:h,orientation:v,loopFocus:A,rtl:x,cols:B,disabledIndices:Tr([...(typeof f!="function"?f:null)||u.current.map((Se,Me)=>Qe(u,Me,f)?Me:void 0),void 0],le),minIndex:ge,maxIndex:be,prevIndex:Ir(S.current>$?C:S.current,Z,le,B,h.key===Je?"bl":h.key===(x?Fe:Ue)?"tr":"tl"),stopEvent:!0})];if(je!=null&&(S.current=je,M(h)),v==="both")return}if(it(h.key,v)){if(Re(h),s&&!T&&_t(h.currentTarget.ownerDocument)===h.currentTarget){S.current=St(h.key,v,x)?C:$,M(h);return}St(h.key,v,x)?A?j>=$?b&&j!==u.current.length?S.current=-1:(_.current=!1,S.current=C):S.current=he(u,{startingIndex:j,disabledIndices:f}):S.current=Math.min($,he(u,{startingIndex:j,disabledIndices:f})):A?j<=C?b&&j!==-1?S.current=u.current.length:(_.current=!1,S.current=$):S.current=he(u,{startingIndex:j,decrement:!0,disabledIndices:f}):S.current=Math.max(C,he(u,{startingIndex:j,decrement:!0,disabledIndices:f})),Xe(u,S.current)&&(S.current=-1),M(h)}}),se=l.useMemo(()=>T&&s&&pe&&{"aria-activedescendant":`${W}-${d}`},[T,s,pe,W,d]),ne=l.useMemo(()=>({"aria-orientation":v==="both"?void 0:v,...I?{}:se,onKeyDown(h){if(h.key==="Tab"&&h.shiftKey&&s&&!T){const j=On(h.nativeEvent);if(j&&!Ge(ee.current,j))return;Re(h),n.setOpen(!1,xe(nn,h.nativeEvent)),zt(r)&&r.focus();return}ye(h)},onPointerMove(){ie.current=!0}}),[se,ye,ee,v,I,n,s,T,r]),Te=l.useMemo(()=>{function h(C){c==="auto"&&Nn(C.nativeEvent)&&(U.current=!T)}function j(C){U.current=c,c==="auto"&&Vn(C.nativeEvent)&&(U.current=!0)}return{onKeyDown(C){const $=n.select("open");ie.current=!1;const Z=C.key.startsWith("Arrow"),le=Er(C.key,J(),x),ge=it(C.key,v),be=(R?le:ge)||C.key==="Enter"||C.key.trim()==="";if(T&&$)return ye(C);if(!(!$&&!i&&Z)){if(be){const je=it(C.key,J());E.current=R&&je?null:C.key}if(R){le&&(Re(C),$?(S.current=wt(u,ve.current),M(C)):n.setOpen(!0,xe(xt,C.nativeEvent,C.currentTarget)));return}ge&&(X.current!=null&&(S.current=X.current),Re(C),!$&&i?n.setOpen(!0,xe(xt,C.nativeEvent,C.currentTarget)):ye(C),$&&M(C))}},onFocus(C){n.select("open")&&!T&&(S.current=-1,M(C))},onPointerDown:j,onPointerEnter:j,onMouseDown:h,onClick:h}},[ye,ve,c,u,R,M,n,i,v,J,x,X,T]),Ae=l.useMemo(()=>({...se,...Te}),[se,Te]);return l.useMemo(()=>g?{reference:Ae,floating:ne,item:Q,trigger:Te}:{},[g,Ae,ne,Te,Q])}function Or(t,e){const n="rootStore"in t?t.rootStore:t,s=n.useState("open"),o=n.context.dataRef,{listRef:r,activeIndex:a,onMatch:u,onTypingChange:d,enabled:m=!0,findMatch:g=null,resetMs:p=750,ignoreKeys:b=At,selectedIndex:A=null}=e,R=He(),x=l.useRef(""),T=l.useRef(A??a??-1),c=l.useRef(null);Y(()=>{s&&(R.clear(),c.current=null,x.current="")},[s,R]),Y(()=>{s&&x.current===""&&(T.current=A??a??-1)},[s,A,a]);const w=de(V=>{V?o.current.typing||(o.current.typing=V,d?.(V)):o.current.typing&&(o.current.typing=V,d?.(V))}),i=de(V=>{function B(K,z,L){const ee=g?g(z,L):z.find(F=>F?.toLocaleLowerCase().indexOf(L.toLocaleLowerCase())===0);return ee?K.indexOf(ee):-1}const k=r.current;if(x.current.length>0&&x.current[0]!==" "&&(B(k,k,x.current)===-1?w(!1):V.key===" "&&Re(V)),k==null||b.includes(V.key)||V.key.length!==1||V.ctrlKey||V.metaKey||V.altKey)return;s&&V.key!==" "&&(Re(V),w(!0)),k.every(K=>K?K[0]?.toLocaleLowerCase()!==K[1]?.toLocaleLowerCase():!0)&&x.current===V.key&&(x.current="",T.current=c.current),x.current+=V.key,R.start(p,()=>{x.current="",T.current=c.current,w(!1)});const ae=T.current,W=B(k,[...k.slice((ae||0)+1),...k.slice(0,(ae||0)+1)],x.current);W!==-1?(u?.(W),c.current=W):V.key!==" "&&(x.current="",w(!1))}),f=l.useMemo(()=>({onKeyDown:i}),[i]),v=l.useMemo(()=>({onKeyDown:i,onKeyUp(V){V.key===" "&&w(!1)}}),[i,w]);return l.useMemo(()=>m?{reference:f,floating:v}:{},[m,f,v])}function Nr(t){const e=l.useRef(!0);e.current&&(e.current=!1,t())}const dn=l.createContext(null),pn=l.createContext(null);function ke(){const t=l.useContext(dn);if(t===null)throw new Error(ut(60));return t}function mn(){const t=l.useContext(pn);if(t===null)throw new Error(ut(61));return t}const Vr=(t,e)=>Object.is(t,e);function We(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function vt(t,e,n){return!t||t.length===0?!1:t.some(s=>s===void 0?!1:We(s,e,n))}function Nt(t,e,n){return!t||t.length===0?-1:t.findIndex(s=>s===void 0?!1:We(s,e,n))}function kr(t,e,n){return t.filter(s=>!We(s,e,n))}function Vt(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function gn(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function jr(t){if(!Array.isArray(t))return t!=null&&!("null"in t);if(gn(t)){for(const e of t)for(const n of e.items)if(n&&n.value==null&&n.label!=null)return!0;return!1}for(const e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Lr(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return Vt(t)}function ze(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?Vt(t.value):Vt(t)}function hn(t,e,n){function s(){return Lr(t,n)}if(n&&t!=null)return n(t);if(t&&typeof t=="object"&&"label"in t&&t.label!=null)return t.label;if(e&&!Array.isArray(e))return e[t]??s();if(Array.isArray(e)){const o=gn(e)?e.flatMap(r=>r.items):e;if(t==null||typeof t!="object"){const r=o.find(a=>a.value===t);return r&&r.label!=null?r.label:s()}if("value"in t){const r=o.find(a=>a&&a.value===t.value);if(r&&r.label!=null)return r.label}}return s()}function Dr(t,e,n){return t.reduce((s,o,r)=>(r>0&&s.push(", "),s.push(y.jsx(l.Fragment,{children:hn(o,e,n)},r)),s),[])}const P={id:q(t=>t.id),modal:q(t=>t.modal),multiple:q(t=>t.multiple),items:q(t=>t.items),itemToStringLabel:q(t=>t.itemToStringLabel),itemToStringValue:q(t=>t.itemToStringValue),isItemEqualToValue:q(t=>t.isItemEqualToValue),value:q(t=>t.value),hasSelectedValue:q(t=>{const{value:e,multiple:n,itemToStringValue:s}=t;return e==null?!1:n&&Array.isArray(e)?e.length>0:ze(e,s)!==""}),hasNullItemLabel:q((t,e)=>e?jr(t.items):!1),open:q(t=>t.open),mounted:q(t=>t.mounted),forceMount:q(t=>t.forceMount),transitionStatus:q(t=>t.transitionStatus),openMethod:q(t=>t.openMethod),activeIndex:q(t=>t.activeIndex),selectedIndex:q(t=>t.selectedIndex),isActive:q((t,e)=>t.activeIndex===e),isSelected:q((t,e,n)=>{const s=t.isItemEqualToValue,o=t.value;return t.multiple?Array.isArray(o)&&o.some(r=>We(r,n,s)):t.selectedIndex===e&&t.selectedIndex!==null?!0:We(o,n,s)}),isSelectedByFocus:q((t,e)=>t.selectedIndex===e),popupProps:q(t=>t.popupProps),triggerProps:q(t=>t.triggerProps),triggerElement:q(t=>t.triggerElement),positionerElement:q(t=>t.positionerElement),listElement:q(t=>t.listElement),scrollUpArrowVisible:q(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:q(t=>t.scrollDownArrowVisible),hasScrollArrows:q(t=>t.hasScrollArrows)};function Hr(t,e){const n=l.useRef(t),s=de(e);Y(()=>{n.current!==t&&s(n.current)},[t,s]),Y(()=>{n.current=t},[t])}function Fr(t){const{id:e,value:n,defaultValue:s=null,onValueChange:o,open:r,defaultOpen:a=!1,onOpenChange:u,name:d,disabled:m=!1,readOnly:g=!1,required:p=!1,modal:b=!0,actionsRef:A,inputRef:R,onOpenChangeComplete:x,items:T,multiple:c=!1,itemToStringLabel:w,itemToStringValue:i,isItemEqualToValue:f=Vr,highlightItemOnHover:v=!0,children:V}=t,{clearErrors:B}=cr(),{setDirty:k,setTouched:re,setFocused:ae,shouldValidateOnChange:W,validityData:K,setFilled:z,name:L,disabled:ee,validation:F,validationMode:te}=an(),I=un({id:e}),U=ee||m,S=L??d,[E,ie]=$t({controlled:n,default:c?s??At:s,name:"Select",state:"value"}),[M,oe]=$t({controlled:r,default:a,name:"Select",state:"open"}),G=l.useRef([]),O=l.useRef([]),_=l.useRef(null),ue=l.useRef(null),ve=l.useRef(0),H=l.useRef(null),fe=l.useRef([]),X=l.useRef(!1),me=l.useRef(!1),we=l.useRef(null),pe=l.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Q=l.useRef(!1),{mounted:J,setMounted:ye,transitionStatus:se}=Lt(M),{openMethod:ne,triggerProps:Te,reset:Ae}=kn(M),h=Pt(()=>new jn({id:I,modal:b,multiple:c,itemToStringLabel:w,itemToStringValue:i,isItemEqualToValue:f,value:E,open:M,mounted:J,transitionStatus:se,items:T,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,j=N(h,P.activeIndex),C=N(h,P.selectedIndex),$=N(h,P.triggerElement),Z=N(h,P.positionerElement),le=l.useMemo(()=>c&&Array.isArray(E)&&E.length===0?"":ze(E,i),[c,E,i]),ge=l.useMemo(()=>c&&Array.isArray(E)?E.map(D=>ze(D,i)):ze(E,i),[c,E,i]),be=De(h.state.triggerElement);ar({id:I,commit:F.commit,value:E,controlRef:be,name:S,getValue:()=>ge});const je=l.useRef(E);Y(()=>{E!==je.current&&h.set("forceMount",!0)},[h,E]),Y(()=>{z(c?Array.isArray(E)&&E.length>0:E!=null)},[c,E,z]),Y(function(){if(M)return;const ce=fe.current;if(c){const Ee=Array.isArray(E)?E:[];if(Ee.length===0){h.set("selectedIndex",null);return}const Ie=Ee[Ee.length-1],rt=Nt(ce,Ie,f);h.set("selectedIndex",rt===-1?null:rt);return}const Ce=Nt(ce,E,f);h.set("selectedIndex",Ce===-1?null:Ce)},[c,M,E,fe,f,h]),Hr(E,()=>{B(S),k(E!==K.initialValue),W()?F.commit(E):F.commit(E,!0)});const Se=de((D,ce)=>{if(u?.(D,ce),!ce.isCanceled&&(oe(D),!D&&(ce.reason===nn||ce.reason===Ln)&&(re(!0),ae(!1),te==="onBlur"&&F.commit(E)),!D&&h.state.activeIndex!==null)){const Ce=G.current[h.state.activeIndex];queueMicrotask(()=>{Ce?.setAttribute("tabindex","-1")})}}),Me=de(()=>{ye(!1),h.set("activeIndex",null),Ae(),x?.(!1)});ft({enabled:!A,open:M,ref:_,onComplete(){M||Me()}}),l.useImperativeHandle(A,()=>({unmount:Me}),[Me]);const Le=de((D,ce)=>{o?.(D,ce),!ce.isCanceled&&ie(D)}),Pe=de(()=>{const D=h.state.listElement||_.current;if(!D)return;const ce=D.scrollTop,Ce=D.scrollTop+D.clientHeight,Ee=ce>1,Ie=Cern(Be(),Te,I?{id:I}:en),[Be,Te,I]);Nr(()=>{h.update({popupProps:_e(),triggerProps:Ye})}),Y(()=>{h.update({id:I,modal:b,multiple:c,value:E,open:M,mounted:J,transitionStatus:se,popupProps:_e(),triggerProps:Ye,items:T,itemToStringLabel:w,itemToStringValue:i,isItemEqualToValue:f,openMethod:ne})},[h,I,b,c,E,M,J,se,_e,Ye,T,w,i,f,ne]);const tt=l.useMemo(()=>({store:h,name:S,required:p,disabled:U,readOnly:g,multiple:c,itemToStringLabel:w,itemToStringValue:i,highlightItemOnHover:v,setValue:Le,setOpen:Se,listRef:G,popupRef:_,scrollHandlerRef:ue,handleScrollArrowVisibility:Pe,scrollArrowsMountedCountRef:ve,getItemProps:et,events:Oe.context.events,valueRef:H,valuesRef:fe,labelsRef:O,typingRef:X,selectionRef:pe,selectedItemTextRef:we,validation:F,onOpenChangeComplete:x,keyboardActiveRef:me,alignItemWithTriggerActiveRef:Q,initialValueRef:je}),[h,S,p,U,g,c,w,i,v,Le,Se,et,Oe.context.events,F,x,Pe]),nt=sn(R,F.inputRef),mt=c&&Array.isArray(E)&&E.length>0,gt=l.useMemo(()=>!c||!Array.isArray(E)||!S?null:E.map(D=>{const ce=ze(D,i);return y.jsx("input",{type:"hidden",name:S,value:ce},ce)}),[c,E,S,i]);return y.jsx(dn.Provider,{value:tt,children:y.jsxs(pn.Provider,{value:Oe,children:[V,y.jsx("input",{...F.getInputValidationProps({onFocus(){h.state.triggerElement?.focus({focusVisible:!0})},onChange(D){if(D.nativeEvent.defaultPrevented)return;const ce=D.target.value,Ce=xe(Dt,D.nativeEvent);function Ee(){if(c)return;const Ie=fe.current.find(rt=>ze(rt,i).toLowerCase()===ce.toLowerCase());Ie!=null&&(k(Ie!==K.initialValue),Le(Ie,Ce),W()&&F.commit(Ie))}h.set("forceMount",!0),queueMicrotask(Ee)}}),name:c?void 0:S,value:le,disabled:U,required:p&&!mt,readOnly:g,ref:nt,style:S?Un:Bn,tabIndex:-1,"aria-hidden":!0}),gt]})})}function Ur(t){const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,"::before"),s=window.getComputedStyle(t,"::after");if(!(n.content!=="none"||s.content!=="none"))return e;const r=parseFloat(n.width)||0,a=parseFloat(n.height)||0,u=parseFloat(s.width)||0,d=parseFloat(s.height)||0,m=Math.max(e.width,r,u),g=Math.max(e.height,a,d),p=m-e.width,b=g-e.height;return{left:e.left-p/2,right:e.right+p/2,top:e.top-b/2,bottom:e.bottom+b/2}}const lt=2,Br=400,Gt=200,_r={...zn,...fr,value:()=>null},zr=l.forwardRef(function(e,n){const{render:s,className:o,id:r,disabled:a=!1,nativeButton:u=!0,...d}=e,{setTouched:m,setFocused:g,validationMode:p,state:b,disabled:A}=an(),{labelId:R}=ur(),{store:x,setOpen:T,selectionRef:c,validation:w,readOnly:i,required:f,alignItemWithTriggerActiveRef:v,disabled:V,keyboardActiveRef:B}=ke(),k=A||V||a,re=N(x,P.open),ae=N(x,P.value),W=N(x,P.triggerProps),K=N(x,P.positionerElement),z=N(x,P.listElement),L=N(x,P.id),ee=N(x,P.hasSelectedValue),F=!ee&&re,te=N(x,P.hasNullItemLabel,F),I=r??L;un({id:I});const U=De(K),S=l.useRef(null),{getButtonProps:E,buttonRef:ie}=on({disabled:k,native:u}),M=de(X=>{x.set("triggerElement",X)}),oe=sn(n,S,ie,M),G=He(),O=He(),_=He(),ue=He();l.useEffect(()=>{if(re)return!(ee||te)?_.start(Br,()=>{c.current.allowUnselectedMouseUp=!0,c.current.allowSelectedMouseUp=!0}):ue.start(Gt,()=>{c.current.allowUnselectedMouseUp=!0,_.start(Gt,()=>{c.current.allowSelectedMouseUp=!0})}),()=>{_.clear(),ue.clear()};c.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},O.clear()},[re,ee,te,c,O,_,ue]);const ve=l.useMemo(()=>z?.id??tn(K)?.id,[z,K]),H=rn(W,{id:I,role:"combobox","aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-controls":re?ve:void 0,"aria-labelledby":R,"aria-readonly":i||void 0,"aria-required":f||void 0,tabIndex:k?-1:0,ref:oe,onFocus(X){g(!0),re&&v.current&&T(!1,xe(Dt,X.nativeEvent)),G.start(0,()=>{x.set("forceMount",!0)})},onBlur(X){Ge(K,X.relatedTarget)||(m(!0),g(!1),p==="onBlur"&&w.commit(ae))},onPointerMove(){B.current=!1},onKeyDown(){B.current=!0},onMouseDown(X){if(re)return;const me=Ot(X.currentTarget);function we(pe){if(!S.current)return;const Q=pe.target;if(Ge(S.current,Q)||Ge(U.current,Q)||Q===S.current)return;const J=Ur(S.current);pe.clientX>=J.left-lt&&pe.clientX<=J.right+lt&&pe.clientY>=J.top-lt&&pe.clientY<=J.bottom+lt||T(!1,xe(_n,pe))}O.start(0,()=>{me.addEventListener("mouseup",we,{once:!0})})}},w.getValidationProps,d,E);H.role="combobox";const fe=l.useMemo(()=>({...b,open:re,disabled:k,value:ae,readOnly:i,placeholder:!ee}),[b,re,k,ae,i,ee]);return Ve("button",e,{ref:[n,S],state:fe,stateAttributesMapping:_r,props:H})}),Wr={value:()=>null},Kr=l.forwardRef(function(e,n){const{className:s,render:o,children:r,placeholder:a,...u}=e,{store:d,valueRef:m}=ke(),g=N(d,P.value),p=N(d,P.items),b=N(d,P.itemToStringLabel),A=N(d,P.hasSelectedValue),R=!A&&a!=null&&r==null,x=N(d,P.hasNullItemLabel,R),T=l.useMemo(()=>({value:g,placeholder:!A}),[g,A]);let c=null;return typeof r=="function"?c=r(g):r!=null?c=r:!A&&a!=null&&!x?c=a:Array.isArray(g)?c=Dr(g,p,b):c=hn(g,p,b),Ve("span",e,{state:T,ref:[n,m],props:[{children:c},u],stateAttributesMapping:Wr})}),$r=l.forwardRef(function(e,n){const{className:s,render:o,...r}=e,{store:a}=ke(),u=N(a,P.open),d=l.useMemo(()=>({open:u}),[u]);return Ve("span",e,{state:d,ref:n,props:[{"aria-hidden":!0,children:"▼"},r],stateAttributesMapping:Wn})}),qr=l.createContext(void 0),Yr=l.forwardRef(function(e,n){const{store:s}=ke(),o=N(s,P.mounted),r=N(s,P.forceMount);return o||r?y.jsx(qr.Provider,{value:!0,children:y.jsx(Kn,{ref:n,...e})}):null}),xn=l.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Gr(){return l.useContext(xn)}function Xr(t){const{children:e,elementsRef:n,labelsRef:s,onMapChange:o}=t,r=de(o),a=l.useRef(0),u=Pt(Jr).current,d=Pt(Qr).current,[m,g]=l.useState(0),p=l.useRef(m),b=de((c,w)=>{d.set(c,w??null),p.current+=1,g(p.current)}),A=de(c=>{d.delete(c),p.current+=1,g(p.current)}),R=l.useMemo(()=>{const c=new Map;return Array.from(d.keys()).filter(i=>i.isConnected).sort(Zr).forEach((i,f)=>{const v=d.get(i)??{};c.set(i,{...v,index:f})}),c},[d,m]);Y(()=>{if(typeof MutationObserver!="function"||R.size===0)return;const c=new MutationObserver(w=>{const i=new Set,f=v=>i.has(v)?i.delete(v):i.add(v);w.forEach(v=>{v.removedNodes.forEach(f),v.addedNodes.forEach(f)}),i.size===0&&(p.current+=1,g(p.current))});return R.forEach((w,i)=>{i.parentElement&&c.observe(i.parentElement,{childList:!0})}),()=>{c.disconnect()}},[R]),Y(()=>{p.current===m&&(n.current.length!==R.size&&(n.current.length=R.size),s&&s.current.length!==R.size&&(s.current.length=R.size),a.current=R.size),r(R)},[r,R,n,s,m]),Y(()=>()=>{n.current=[]},[n]),Y(()=>()=>{s&&(s.current=[])},[s]);const x=de(c=>(u.add(c),()=>{u.delete(c)}));Y(()=>{u.forEach(c=>c(R))},[u,R]);const T=l.useMemo(()=>({register:b,unregister:A,subscribeMapChange:x,elementsRef:n,labelsRef:s,nextIndexRef:a}),[b,A,x,n,s,a]);return y.jsx(xn.Provider,{value:T,children:e})}function Qr(){return new Map}function Jr(){return new Set}function Zr(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const yn=l.createContext(void 0);function Ht(){const t=l.useContext(yn);if(!t)throw new Error(ut(59));return t}function at(t,e){t&&Object.assign(t.style,e)}const bn={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},es={position:"fixed"},ts=l.forwardRef(function(e,n){const{anchor:s,positionMethod:o="absolute",className:r,render:a,side:u="bottom",align:d="center",sideOffset:m=0,alignOffset:g=0,collisionBoundary:p="clipping-ancestors",collisionPadding:b,arrowPadding:A=5,sticky:R=!1,disableAnchorTracking:x,alignItemWithTrigger:T=!0,collisionAvoidance:c=$n,...w}=e,{store:i,listRef:f,labelsRef:v,alignItemWithTriggerActiveRef:V,selectedItemTextRef:B,valuesRef:k,initialValueRef:re,popupRef:ae,setValue:W}=ke(),K=mn(),z=N(i,P.open),L=N(i,P.mounted),ee=N(i,P.modal),F=N(i,P.value),te=N(i,P.openMethod),I=N(i,P.positionerElement),U=N(i,P.triggerElement),S=N(i,P.isItemEqualToValue),E=l.useRef(null),ie=l.useRef(null),[M,oe]=l.useState(T),G=L&&M&&te!=="touch";!L&&M!==T&&oe(T),Y(()=>{L||(P.scrollUpArrowVisible(i.state)&&i.set("scrollUpArrowVisible",!1),P.scrollDownArrowVisible(i.state)&&i.set("scrollDownArrowVisible",!1))},[i,L]),l.useImperativeHandle(V,()=>G),qn((G||ee)&&z&&te!=="touch",U);const O=Yn({anchor:s,floatingRootContext:K,positionMethod:o,mounted:L,side:u,sideOffset:m,align:d,alignOffset:g,arrowPadding:A,collisionBoundary:p,collisionPadding:b,sticky:R,disableAnchorTracking:x??G,collisionAvoidance:c,keepMounted:!0}),_=G?"none":O.side,ue=G?es:O.positionerStyles,ve=l.useMemo(()=>{const Q={};return z||(Q.pointerEvents="none"),{role:"presentation",hidden:!L,style:{...ue,...Q}}},[z,L,ue]),H=l.useMemo(()=>({open:z,side:_,align:O.align,anchorHidden:O.anchorHidden}),[z,_,O.align,O.anchorHidden]),fe=de(Q=>{i.set("positionerElement",Q)}),X=Ve("div",e,{ref:[n,fe],state:H,stateAttributesMapping:ln,props:[ve,w]}),me=l.useRef(0),we=de(Q=>{if(Q.size===0&&me.current===0||k.current.length===0)return;const J=me.current;if(me.current=Q.size,Q.size===J)return;const ye=xe(Dt);if(J!==0&&!i.state.multiple&&F!==null&&Nt(k.current,F,S)===-1){const ne=re.current,Ae=ne!=null&&vt(k.current,ne,S)?ne:null;W(Ae,ye),Ae===null&&(i.set("selectedIndex",null),B.current=null)}if(J!==0&&i.state.multiple&&Array.isArray(F)){const se=F.filter(ne=>vt(k.current,ne,S));(se.length!==F.length||se.some(ne=>!vt(F,ne,S)))&&(W(se,ye),se.length===0&&(i.set("selectedIndex",null),B.current=null))}if(z&&G){i.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const se={height:""};at(I,se),at(ae.current,se)}}),pe=l.useMemo(()=>({...O,side:_,alignItemWithTriggerActive:G,setControlledAlignItemWithTrigger:oe,scrollUpArrowRef:E,scrollDownArrowRef:ie}),[O,_,G,oe]);return y.jsx(Xr,{elementsRef:f,labelsRef:v,onMapChange:we,children:y.jsxs(yn.Provider,{value:pe,children:[L&&ee&&y.jsx(Gn,{inert:Xn(!z),cutout:U}),X]})})});function Rn(t){const e=t.currentTarget.getBoundingClientRect();return e.top+1<=t.clientY&&t.clientY<=e.bottom-1&&e.left+1<=t.clientX&&t.clientX<=e.right-1}const ct="base-ui-disable-scrollbar",kt={className:ct,getElement(t){return y.jsx("style",{nonce:t,href:ct,precedence:"base-ui:low",children:`.${ct}{scrollbar-width:none}.${ct}::-webkit-scrollbar{display:none}`})}},ns=l.createContext(void 0);function rs(t){return l.useContext(ns)}function ss(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const os=l.createContext(void 0),is={disableStyleElements:!1};function ls(){return l.useContext(os)??is}const cs={...ln,...cn},as=l.forwardRef(function(e,n){const{render:s,className:o,...r}=e,{store:a,popupRef:u,onOpenChangeComplete:d,setOpen:m,valueRef:g,selectedItemTextRef:p,keyboardActiveRef:b,multiple:A,handleScrollArrowVisibility:R,scrollHandlerRef:x,highlightItemOnHover:T}=ke(),{side:c,align:w,alignItemWithTriggerActive:i,setControlledAlignItemWithTrigger:f,scrollDownArrowRef:v,scrollUpArrowRef:V}=Ht(),B=rs()!=null,k=mn(),{nonce:re,disableStyleElements:ae}=ls(),W=He(),K=N(a,P.id),z=N(a,P.open),L=N(a,P.mounted),ee=N(a,P.popupProps),F=N(a,P.transitionStatus),te=N(a,P.triggerElement),I=N(a,P.positionerElement),U=N(a,P.listElement),S=l.useRef(0),E=l.useRef(!1),ie=l.useRef(0),M=l.useRef(!1),oe=l.useRef({}),G=Zt(),O=de(H=>{if(!I||!u.current||!M.current)return;if(E.current||!i){R();return}const fe=I.style.top==="0px",X=I.style.bottom==="0px",me=I.getBoundingClientRect().height,we=Ot(I),pe=getComputedStyle(I),Q=parseFloat(pe.marginTop),J=parseFloat(pe.marginBottom),ye=Xt(getComputedStyle(u.current)),se=we.documentElement.clientHeight-Q-J,ne=H.scrollTop,Te=H.scrollHeight,Ae=H.clientHeight,h=Te-Ae;let j=0,C=null,$=!1;if(fe){const Z=h-ne,le=me+Z,ge=Math.min(le,se);j=ge,ge!==se?C=h:$=!0}else if(X){const Z=ne-0,le=me+Z,ge=Math.min(le,se),be=le-se;j=ge,ge!==se?C=0:($=!0,ne=ye)&&(E.current=!0),R()});l.useImperativeHandle(x,()=>O,[O]),ft({open:z,ref:u,onComplete(){z&&d?.(!0)}});const _=l.useMemo(()=>({open:z,transitionStatus:F,side:c,align:w}),[z,F,c,w]);Y(()=>{!I||!u.current||Object.keys(oe.current).length||(oe.current={top:I.style.top||"0",left:I.style.left||"0",right:I.style.right,height:I.style.height,bottom:I.style.bottom,minHeight:I.style.minHeight,maxHeight:I.style.maxHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom})},[u,I]),Y(()=>{z||i||(M.current=!1,E.current=!1,S.current=0,ie.current=0,at(I,oe.current))},[z,i,I,u]),Y(()=>{const H=u.current;if(!(!z||!te||!I||!H||a.state.transitionStatus==="ending")){if(!i){M.current=!0,G.request(R),H.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const fe=fs(H);H.style.removeProperty("--transform-origin");try{const X=getComputedStyle(I),me=getComputedStyle(H),we=Ot(te),pe=Wt(I),Q=te.getBoundingClientRect(),J=I.getBoundingClientRect(),ye=Q.left,se=Q.height,ne=U||H,Te=ne.scrollHeight,Ae=parseFloat(me.borderBottomWidth),h=parseFloat(X.marginTop)||10,j=parseFloat(X.marginBottom)||10,C=parseFloat(X.minHeight)||100,$=Xt(me),Z=5,le=5,ge=20,be=we.documentElement.clientHeight-h-j,je=we.documentElement.clientWidth,Se=be-Q.bottom+se,Me=p.current,Le=g.current;let Pe,Oe=0,Ze=0;if(Me&&Le){const D=Le.getBoundingClientRect();Pe=Me.getBoundingClientRect();const ce=D.left-ye,Ce=Pe.left-J.left,Ee=D.top-Q.top+D.height/2,Ie=Pe.top-J.top+Pe.height/2;Oe=ce-Ce,Ze=Ie-Ee}const qe=Se+Ze+j+Ae;let Ne=Math.min(be,qe);const pt=be-h-j,Be=qe-Ne,_e=Math.max(Z,ye+Oe),et=je-le,Ye=Math.max(0,_e+J.width-et);I.style.left=`${_e-Ye}px`,I.style.height=`${Ne}px`,I.style.maxHeight="auto",I.style.marginTop=`${h}px`,I.style.marginBottom=`${j}px`,H.style.height="100%";const tt=ne.scrollHeight-ne.clientHeight,nt=Be>=tt;nt&&(Ne=Math.min(be,J.height)-(Be-tt));const mt=Q.topbe-ge||Nef(!1));return}if(nt){const D=Math.max(0,be-qe);I.style.top=J.height>=pt?"0":`${D}px`,I.style.height=`${Ne}px`,ne.scrollTop=ne.scrollHeight-ne.clientHeight,S.current=Math.max(C,Ne)}else I.style.bottom="0",S.current=Math.max(C,Ne),ne.scrollTop=Be;if(Pe){const D=J.top,ce=J.height,Ce=Pe.top+Pe.height/2,Ee=ce>0?(Ce-D)/ce*100:50,Ie=ss(Ee,0,100);H.style.setProperty("--transform-origin",`50% ${Ie}%`)}(S.current===be||Ne>=$)&&(E.current=!0),R(),setTimeout(()=>{M.current=!0})}finally{fe()}})}},[a,z,I,te,g,p,u,R,i,f,G,v,V,U]),l.useEffect(()=>{if(!i||!I||!z)return;const H=Wt(I);function fe(X){m(!1,xe(er,X))}return H.addEventListener("resize",fe),()=>{H.removeEventListener("resize",fe)}},[m,i,I,z]);const ue={...U?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":A||void 0,id:`${K}-list`},onKeyDown(H){b.current=!0,B&&nr.has(H.key)&&H.stopPropagation()},onMouseMove(){b.current=!1},onPointerLeave(H){if(!T||Rn(H)||H.pointerType==="touch")return;const fe=H.currentTarget;W.start(0,()=>{a.set("activeIndex",null),fe.focus({preventScroll:!0})})},onScroll(H){U||x.current?.(H.currentTarget)},...i&&{style:U?{height:"100%"}:bn}},ve=Ve("div",e,{ref:[n,u],state:_,stateAttributesMapping:cs,props:[ee,ue,tr(F),{className:!U&&i?kt.className:void 0},r]});return y.jsxs(l.Fragment,{children:[!ae&&kt.getElement(re),y.jsx(Zn,{context:k,modal:!1,disabled:!L,restoreFocus:!0,children:ve})]})});function Xt(t){const e=t.maxHeight||"";return e.endsWith("px")&&parseFloat(e)||1/0}const Qt={transform:"none",scale:"1",translate:"0 0"};function us(t,e,n){n?t.setProperty(e,n):t.removeProperty(e)}function fs(t){const{style:e}=t,n={},s=Object.keys(Qt);for(const o of s)n[o]=e.getPropertyValue(o),e.setProperty(o,Qt[o]);return()=>{for(const o of s)us(e,o,n[o])}}const ds=l.forwardRef(function(e,n){const{className:s,render:o,...r}=e,{store:a,scrollHandlerRef:u}=ke(),{alignItemWithTriggerActive:d}=Ht(),m=N(a,P.hasScrollArrows),g=N(a,P.openMethod),p=N(a,P.multiple),A={id:`${N(a,P.id)}-list`,role:"listbox","aria-multiselectable":p||void 0,onScroll(x){u.current?.(x.currentTarget)},...d&&{style:bn},className:m&&g!=="touch"?kt.className:void 0},R=de(x=>{a.set("listElement",x)});return Ve("div",e,{ref:[n,R],props:[A,r]})});let wn=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function ps(t={}){const{label:e,metadata:n,textRef:s,indexGuessBehavior:o,index:r}=t,{register:a,unregister:u,subscribeMapChange:d,elementsRef:m,labelsRef:g,nextIndexRef:p}=Gr(),b=l.useRef(-1),[A,R]=l.useState(r??(o===wn.GuessFromOrder?()=>{if(b.current===-1){const c=p.current;p.current+=1,b.current=c}return b.current}:-1)),x=l.useRef(null),T=l.useCallback(c=>{if(x.current=c,A!==-1&&c!==null&&(m.current[A]=c,g)){const w=e!==void 0;g.current[A]=w?e:s?.current?.textContent??c.textContent}},[A,m,g,e,s]);return Y(()=>{if(r!=null)return;const c=x.current;if(c)return a(c,n),()=>{u(c)}},[r,a,u,n]),Y(()=>{if(r==null)return d(c=>{const w=x.current?c.get(x.current)?.index:null;w!=null&&R(w)})},[r,d,R]),l.useMemo(()=>({ref:T,index:A}),[A,T])}const Sn=l.createContext(void 0);function Ft(){const t=l.useContext(Sn);if(!t)throw new Error(ut(57));return t}const ms=l.memo(l.forwardRef(function(e,n){const{render:s,className:o,value:r=null,label:a,disabled:u=!1,nativeButton:d=!1,...m}=e,g=l.useRef(null),p=ps({label:a,textRef:g,indexGuessBehavior:wn.GuessFromOrder}),{store:b,getItemProps:A,setOpen:R,setValue:x,selectionRef:T,typingRef:c,valuesRef:w,keyboardActiveRef:i,multiple:f,highlightItemOnHover:v}=ke(),V=He(),B=N(b,P.isActive,p.index),k=N(b,P.isSelected,p.index,r),re=N(b,P.isSelectedByFocus,p.index),ae=N(b,P.isItemEqualToValue),W=p.index,K=W!==-1,z=l.useRef(null),L=De(W);Y(()=>{if(!K)return;const O=w.current;return O[W]=r,()=>{delete O[W]}},[K,W,r,w]),Y(()=>{if(!K)return;const O=b.state.value;let _=O;f&&Array.isArray(O)&&O.length>0&&(_=O[O.length-1]),_!==void 0&&We(_,r,ae)&&b.set("selectedIndex",W)},[K,W,f,ae,b,r]);const ee=l.useMemo(()=>({disabled:u,selected:k,highlighted:B}),[u,k,B]),F=A({active:B,selected:k});F.onFocus=void 0,F.id=void 0;const te=l.useRef(null),I=l.useRef("mouse"),U=l.useRef(!1),{getButtonProps:S,buttonRef:E}=on({disabled:u,focusableWhenDisabled:!0,native:d});function ie(O){const _=b.state.value;if(f){const ue=Array.isArray(_)?_:[],ve=k?kr(ue,r,ae):[...ue,r];x(ve,xe(yt,O))}else x(r,xe(yt,O)),R(!1,xe(yt,O))}const M={role:"option","aria-selected":k,tabIndex:B?0:-1,onFocus(){b.set("activeIndex",W)},onMouseEnter(){!i.current&&b.state.selectedIndex===null&&b.set("activeIndex",W)},onMouseMove(){v&&b.set("activeIndex",W)},onMouseLeave(O){!v||i.current||Rn(O)||V.start(0,()=>{b.state.activeIndex===W&&b.set("activeIndex",null)})},onTouchStart(){T.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(O){te.current=O.key,b.set("activeIndex",W)},onClick(O){U.current=!1,!(O.type==="keydown"&&te.current===null)&&(u||te.current===" "&&c.current||I.current!=="touch"&&!B||(te.current=null,ie(O.nativeEvent)))},onPointerEnter(O){I.current=O.pointerType},onPointerDown(O){I.current=O.pointerType,U.current=!0},onMouseUp(O){if(u)return;if(U.current){U.current=!1;return}const _=!T.current.allowSelectedMouseUp&&k,ue=!T.current.allowUnselectedMouseUp&&!k;_||ue||I.current!=="touch"&&!B||ie(O.nativeEvent)}},oe=Ve("div",e,{ref:[E,n,p.ref,z],state:ee,props:[F,M,m,S]}),G=l.useMemo(()=>({selected:k,indexRef:L,textRef:g,selectedByFocus:re,hasRegistered:K}),[k,L,g,re,K]);return y.jsx(Sn.Provider,{value:G,children:oe})})),gs=l.forwardRef(function(e,n){const s=e.keepMounted??!1,{selected:o}=Ft();return s||o?y.jsx(hs,{...e,ref:n}):null}),hs=l.memo(l.forwardRef((t,e)=>{const{render:n,className:s,keepMounted:o,...r}=t,{selected:a}=Ft(),u=l.useRef(null),{transitionStatus:d,setMounted:m}=Lt(a),g=l.useMemo(()=>({selected:a,transitionStatus:d}),[a,d]),p=Ve("span",t,{ref:[e,u],state:g,props:[{"aria-hidden":!0,children:"✔️"},r],stateAttributesMapping:cn});return ft({open:a,ref:u,onComplete(){a||m(!1)}}),p})),xs=l.memo(l.forwardRef(function(e,n){const{indexRef:s,textRef:o,selectedByFocus:r,hasRegistered:a}=Ft(),{selectedItemTextRef:u}=ke(),{className:d,render:m,...g}=e,p=l.useCallback(A=>{if(!A||!a)return;const R=u.current===null||!u.current.isConnected;(r||R&&s.current===0)&&(u.current=A)},[u,s,r,a]);return Ve("div",e,{ref:[p,n,o],props:g})})),vn=l.forwardRef(function(e,n){const{render:s,className:o,direction:r,keepMounted:a=!1,...u}=e,{store:d,popupRef:m,listRef:g,handleScrollArrowVisibility:p,scrollArrowsMountedCountRef:b}=ke(),{side:A,scrollDownArrowRef:R,scrollUpArrowRef:x}=Ht(),T=r==="up"?P.scrollUpArrowVisible:P.scrollDownArrowVisible,c=N(d,T),w=N(d,P.openMethod),i=c&&w!=="touch",f=He(),v=r==="up"?x:R,{transitionStatus:V,setMounted:B}=Lt(i);Y(()=>(b.current+=1,d.state.hasScrollArrows||d.set("hasScrollArrows",!0),()=>{b.current=Math.max(0,b.current-1),b.current===0&&d.state.hasScrollArrows&&d.set("hasScrollArrows",!1)}),[d,b]),ft({open:i,ref:v,onComplete(){i||B(!1)}});const k=l.useMemo(()=>({direction:r,visible:i,side:A,transitionStatus:V}),[r,i,A,V]),ae=Ve("div",e,{ref:[n,v],state:k,props:[{"aria-hidden":!0,children:r==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(K){if(K.movementX===0&&K.movementY===0||f.isStarted())return;d.set("activeIndex",null);function z(){const L=d.state.listElement??m.current;if(!L)return;d.set("activeIndex",null),p();const ee=L.scrollTop===0,F=Math.round(L.scrollTop+L.clientHeight)>=L.scrollHeight;if(g.current.length===0&&(r==="up"?d.set("scrollUpArrowVisible",!ee):d.set("scrollDownArrowVisible",!F)),r==="up"&&ee||r==="down"&&F){f.clear();return}if((d.state.listElement||m.current)&&g.current&&g.current.length>0){const I=g.current,U=v.current?.offsetHeight||0;if(r==="up"){let S=0;const E=L.scrollTop+U;for(let M=0;M=E){S=M;break}}const ie=Math.max(0,S-1);if(ieE){S=Math.max(0,M-1);break}}const ie=Math.min(I.length-1,S+1);if(ie>S){const M=I[ie];M&&(L.scrollTop=M.offsetTop+M.offsetHeight-L.clientHeight+U)}else L.scrollTop=L.scrollHeight-L.clientHeight}}f.start(40,z)}f.start(40,z)},onMouseLeave(){f.clear()}},u]});return i||a?ae:null}),ys=l.forwardRef(function(e,n){return y.jsx(vn,{...e,ref:n,direction:"down"})}),bs=l.forwardRef(function(e,n){return y.jsx(vn,{...e,ref:n,direction:"up"})}),It=Fr;function Tt(t){const e=Ke.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let o;e[3]!==n?(o=$e("flex flex-1 text-left",n),e[3]=n,e[4]=o):o=e[4];let r;return e[5]!==s||e[6]!==o?(r=y.jsx(Kr,{className:o,"data-slot":"select-value",...s}),e[5]=s,e[6]=o,e[7]=r):r=e[7],r}function Mt(t){const e=Ke.c(15);let n,s,o,r,a;e[0]!==t?({className:s,size:a,id:o,children:n,...r}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a):(n=e[1],s=e[2],o=e[3],r=e[4],a=e[5]);const u=a===void 0?"default":a;let d;e[6]!==s?(d=$e("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed outline-none transition-colors focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=default]:h-7 data-[size=sm]:h-6 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",s),e[6]=s,e[7]=d):d=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=y.jsx($r,{render:y.jsx(fn,{className:"pointer-events-none size-3.5 text-muted-foreground"})}),e[8]=m):m=e[8];let g;return e[9]!==n||e[10]!==o||e[11]!==r||e[12]!==u||e[13]!==d?(g=y.jsxs(zr,{className:d,"data-size":u,"data-slot":"select-trigger",id:o,...r,children:[n,m]}),e[9]=n,e[10]=o,e[11]=r,e[12]=u,e[13]=d,e[14]=g):g=e[14],g}function Ct(t){const e=Ke.c(26);let n,s,o,r,a,u,d,m;e[0]!==t?({className:s,children:n,side:r,sideOffset:a,align:u,alignOffset:d,alignItemWithTrigger:m,...o}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u,e[7]=d,e[8]=m):(n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],u=e[6],d=e[7],m=e[8]);const g=r===void 0?"bottom":r,p=a===void 0?4:a,b=u===void 0?"center":u,A=d===void 0?0:d,R=m===void 0?!0:m;let x;e[9]!==s?(x=$e("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",s),e[9]=s,e[10]=x):x=e[10];let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=y.jsx(Rs,{}),e[11]=T):T=e[11];let c;e[12]!==n?(c=y.jsx(ds,{children:n}),e[12]=n,e[13]=c):c=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=y.jsx(ws,{}),e[14]=w):w=e[14];let i;e[15]!==o||e[16]!==x||e[17]!==c?(i=y.jsxs(as,{className:x,"data-slot":"select-content",...o,children:[T,c,w]}),e[15]=o,e[16]=x,e[17]=c,e[18]=i):i=e[18];let f;return e[19]!==b||e[20]!==R||e[21]!==A||e[22]!==g||e[23]!==p||e[24]!==i?(f=y.jsx(Yr,{children:y.jsx(ts,{align:b,alignItemWithTrigger:R,alignOffset:A,className:"isolate z-50",side:g,sideOffset:p,children:i})}),e[19]=b,e[20]=R,e[21]=A,e[22]=g,e[23]=p,e[24]=i,e[25]=f):f=e[25],f}function Et(t){const e=Ke.c(13);let n,s,o;e[0]!==t?({className:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=o):(n=e[1],s=e[2],o=e[3]);let r;e[4]!==s?(r=$e("relative flex min-h-7 w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",s),e[4]=s,e[5]=r):r=e[5];let a;e[6]!==n?(a=y.jsx(xs,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:n}),e[6]=n,e[7]=a):a=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(gs,{render:y.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center"}),children:y.jsx(xr,{className:"pointer-events-none"})}),e[8]=u):u=e[8];let d;return e[9]!==o||e[10]!==r||e[11]!==a?(d=y.jsxs(ms,{className:r,"data-slot":"select-item",...o,children:[a,u]}),e[9]=o,e[10]=r,e[11]=a,e[12]=d):d=e[12],d}function Rs(t){const e=Ke.c(9);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let o;e[3]!==n?(o=$e("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(wr,{}),e[5]=r):r=e[5];let a;return e[6]!==s||e[7]!==o?(a=y.jsx(bs,{className:o,"data-slot":"select-scroll-up-button",...s,children:r}),e[6]=s,e[7]=o,e[8]=a):a=e[8],a}function ws(t){const e=Ke.c(9);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let o;e[3]!==n?(o=$e("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",n),e[3]=n,e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(fn,{}),e[5]=r):r=e[5];let a;return e[6]!==s||e[7]!==o?(a=y.jsx(ys,{className:o,"data-slot":"select-scroll-down-button",...s,children:r}),e[6]=s,e[7]=o,e[8]=a):a=e[8],a}const Ss=["sg-placeholder"],vs="subnet-placeholder";function ks(){const t=rr(),{data:e}=Rt(sr),{data:n}=Rt(or),{data:s}=Rt(ir),o=yr(),r=e.Images??[],a=n.KeyPairs??[],u=s.InstanceTypes?.flatMap(i=>i.InstanceType?[i.InstanceType]:[])??[],d=s.InstanceTypes?.reduce((i,f)=>{const v=f.InstanceType;return v&&(i[v]=(i[v]||0)+1),i},{})??{},m=Object.keys(d).sort(),{control:g,handleSubmit:p,register:b,watch:A,formState:{errors:R,isSubmitting:x}}=dr({resolver:pr(lr.refine(i=>i.count<=(d[i.instanceType]??1),{message:"Cannot exceed available capacity",path:["count"]})),defaultValues:{count:1}}),T=A("instanceType"),c=T?d[T]??1:1,w=async i=>{await o.mutateAsync({...i,securityGroupIds:Ss,subnetId:vs}),t({to:"/ec2/describe-instances"})};return y.jsxs(y.Fragment,{children:[y.jsx(gr,{to:"/ec2/describe-instances",children:"Back to instances"}),y.jsx(hr,{title:"Run EC2 Instances"}),u.length===0&&y.jsx(qt,{msg:"No compute available. No new instances can be created until compute is available."}),o.error&&y.jsx(qt,{error:o.error,msg:"Failed to create instance"}),y.jsxs("form",{className:"max-w-4xl space-y-6",onSubmit:p(w),children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx(st,{htmlFor:"imageId",children:"Image"}),y.jsx(bt,{control:g,name:"imageId",render:({field:i})=>{const f=r.find(v=>v.ImageId===i.value);return y.jsxs(It,{onValueChange:v=>i.onChange(v),value:i.value??"",children:[y.jsx(Mt,{className:"w-full",id:"imageId",children:y.jsx(Tt,{children:f?`${f.Name||"Unnamed"} (${f.Architecture})`:""})}),y.jsx(Ct,{children:r.map(v=>y.jsxs(Et,{value:v.ImageId??"",children:[v.Name||"Unnamed"," (",v.Architecture,")"]},v.ImageId))})]})}}),R.imageId&&y.jsx("p",{className:"text-destructive text-sm",children:R.imageId.message})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(st,{htmlFor:"instanceType",children:"Instance Type"}),y.jsx(bt,{control:g,name:"instanceType",render:({field:i})=>y.jsxs(It,{onValueChange:f=>i.onChange(f),value:i.value?i.value:"",children:[y.jsx(Mt,{className:"w-full",id:"instanceType",children:y.jsx(Tt,{})}),y.jsx(Ct,{children:m.map(f=>y.jsxs(Et,{value:f,children:[f," (",d[f]," available)"]},f))})]})}),R.instanceType&&y.jsx("p",{className:"text-destructive text-sm",children:R.instanceType.message})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(st,{htmlFor:"keyName",children:"Key Pair"}),y.jsx(bt,{control:g,name:"keyName",render:({field:i})=>y.jsxs(It,{onValueChange:f=>i.onChange(f),value:i.value?i.value:"",children:[y.jsx(Mt,{className:"w-full",id:"keyName",children:y.jsx(Tt,{})}),y.jsx(Ct,{children:a.map(f=>y.jsx(Et,{value:f.KeyName??"",children:f.KeyName},f.KeyPairId))})]})}),R.keyName&&y.jsx("p",{className:"text-destructive text-sm",children:R.keyName.message})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(st,{htmlFor:"count",children:"Number of Instances"}),y.jsx(mr,{id:"count",type:"number",...b("count",{valueAsNumber:!0})}),y.jsx("p",{className:"text-muted-foreground text-xs",id:"count-description",children:T&&`Available capacity for ${T}: ${c}`}),R.count&&y.jsx("p",{className:"text-destructive text-sm",children:R.count.message})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Kt,{disabled:x||o.isPending,onClick:()=>t({to:"/ec2/describe-instances"}),type:"button",variant:"outline",children:"Cancel"}),y.jsx(Kt,{disabled:x||o.isPending||u.length===0,type:"submit",children:x||o.isPending?"Creating…":"Create Instance"})]})]})]})}export{ks as component}; diff --git a/hive/services/hiveui/frontend/dist/assets/state-badge.js b/hive/services/hiveui/frontend/dist/assets/state-badge.js new file mode 100644 index 000000000..768a9017f --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/state-badge.js @@ -0,0 +1 @@ +import{c as d,j as g}from"./index.js";function o(n){const e=d.c(3),{state:t}=n;let a="bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-100";t==="running"?a="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100":t==="stopped"&&(a="bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100");const s=`rounded-full px-2 py-1 text-xs ${a}`;let r;return e[0]!==t||e[1]!==s?(r=g.jsx("div",{className:s,children:t}),e[0]=t,e[1]=s,e[2]=r):r=e[2],r}export{o as S}; diff --git a/hive/services/hiveui/frontend/dist/assets/textarea.js b/hive/services/hiveui/frontend/dist/assets/textarea.js new file mode 100644 index 000000000..afa9530e4 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/textarea.js @@ -0,0 +1 @@ +import{c as n,a as o,j as d}from"./index.js";function c(s){const e=n.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=o("field-sizing-content flex min-h-16 w-full resize-none rounded-md border border-input bg-input/20 px-2 py-2 text-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=d.jsx("textarea",{className:t,"data-slot":"textarea",...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T}; diff --git a/hive/services/hiveui/frontend/dist/assets/trash-2.js b/hive/services/hiveui/frontend/dist/assets/trash-2.js new file mode 100644 index 000000000..7b651d25b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/trash-2.js @@ -0,0 +1 @@ +import{g as a}from"./index.js";const t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],o=a("trash-2",t);export{o as T}; diff --git a/hive/services/hiveui/frontend/dist/assets/upload-button.js b/hive/services/hiveui/frontend/dist/assets/upload-button.js new file mode 100644 index 000000000..228283f09 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/upload-button.js @@ -0,0 +1 @@ +import{g as ee,aR as be,aS as ge,aT as d,aU as $,aV as P,aW as Fe,aX as Se,aY as ke,aZ as we,a_ as Re,a$ as _e,b0 as Me,b1 as Ne,b2 as Le,b3 as He,b4 as te,b5 as y,b6 as I,b7 as je,b8 as Oe,b9 as ve,ba as se,bb as ne,bc as re,bd as ue,be as Te,bf as Pe,bg as Ue,c as U,j as u,aL as qe,bh as de,bi as ae,r as xe,bj as Ie,B as ze}from"./index.js";import{a as Ke,b as $e,c as We,e as Ve,d as Ge,h as Qe,f as Xe,g as Ye}from"./alert-dialog.js";import{D as Ze}from"./download.js";import{T as Je}from"./trash-2.js";import{u as me}from"./useMutation.js";const et=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],tt=ee("file",et);const st=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],nt=ee("folder",st);const rt=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],at=ee("upload",rt),ct=typeof ReadableStream=="function"?ReadableStream:function(){};class ot extends ct{}const it=({expectedChecksum:t,checksum:e,source:s,checksumSourceLocation:n,base64Encoder:r})=>{if(!be(s))throw new Error(`@smithy/util-stream: unsupported source type ${s?.constructor?.name??s} in ChecksumStream.`);const a=r??ge;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const c=new TransformStream({start(){},async transform(i,l){e.update(i),l.enqueue(i)},async flush(i){const l=await e.digest(),m=a(l);if(t!==m){const C=new Error(`Checksum mismatch: expected "${t}" but received "${m}" in response header "${n}".`);i.error(C)}else i.terminate()}});s.pipeThrough(c);const o=c.readable;return Object.setPrototypeOf(o,ot.prototype),o};class lt{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const n=this.byteArrays[0];return this.reset(),n}const e=this.allocByteArray(this.byteLength);let s=0;for(let n=0;nnew Uint8Array(l))];let o=-1;const i=async l=>{const{value:m,done:C}=await n.read(),x=m;if(C){if(o!==-1){const f=z(c,o);L(f)>0&&l.enqueue(f)}l.close()}else{const f=mt(x,!1);if(o!==f&&(o>=0&&l.enqueue(z(c,o)),o=f),o===-1){l.enqueue(x);return}const E=L(x);a+=E;const A=L(c[o]);if(E>=e&&A===0)l.enqueue(x);else{const p=xt(c,o,x);!r&&a>e*2&&(r=!0,s?.warn(`@smithy/util-stream - stream chunk size ${E} is below threshold of ${e}, automatically buffering.`)),p>=e?l.enqueue(z(c,o)):await i(l)}}};return new ReadableStream({pull:i})}const dt=ut;function xt(t,e,s){switch(e){case 0:return t[0]+=s,L(t[0]);case 1:case 2:return t[e].push(s),L(t[e])}}function z(t,e){switch(e){case 0:const s=t[0];return t[0]="",s;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function L(t){return t?.byteLength??t?.length??0}function mt(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}const W=[d.CRC32,d.CRC32C,d.CRC64NVME,d.SHA1,d.SHA256],Ct=[d.SHA256,d.SHA1,d.CRC32,d.CRC32C,d.CRC64NVME],ht=(t,{requestChecksumRequired:e,requestAlgorithmMember:s,requestChecksumCalculation:n})=>{if(!s)return n===P.WHEN_SUPPORTED||e?$:void 0;if(!t[s])return;const r=t[s];if(!W.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${W}.`);return r},ce=t=>t===d.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`,ft=(t,e)=>{const s=t.toLowerCase();for(const n of Object.keys(e))if(s===n.toLowerCase())return!0;return!1},Et=(t,e)=>{const s=t.toLowerCase();for(const n of Object.keys(e))if(n.toLowerCase().startsWith(s))return!0;return!1},Ce=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Fe(t);var At=(function(){function t(){this.crc32c=new le}return t.prototype.update=function(e){Se(e)||this.crc32c.update(ke(e))},t.prototype.digest=function(){return we(this,void 0,void 0,function(){return Re(this,function(e){return[2,_e(this.crc32c.digest())]})})},t.prototype.reset=function(){this.crc32c=new le},t})(),le=(function(){function t(){this.checksum=4294967295}return t.prototype.update=function(e){var s,n;try{for(var r=Me(e),a=r.next();!a.done;a=r.next()){var c=a.value;this.checksum=this.checksum>>>8^Dt[(this.checksum^c)&255]}}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return this},t.prototype.digest=function(){return(this.checksum^4294967295)>>>0},t})(),pt=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],Dt=Ne(pt);const Bt=()=>{const e=new Array(8);for(let s=0;s<8;s++){const n=new Array(512);for(let r=0;r<256;r++){let a=BigInt(r);for(let c=0;c<8*(s+1);c++)a&1n?a=a>>1n^0x9a6c9329ac4bc9b5n:a=a>>1n;n[r*2]=Number(a>>32n&0xffffffffn),n[r*2+1]=Number(a&0xffffffffn)}e[s]=new Uint32Array(n)}return e};let K,N,V,G,Q,X,Y,Z,J;const yt=()=>{K||(K=Bt(),[N,V,G,Q,X,Y,Z,J]=K)};class bt{c1=0;c2=0;constructor(){yt(),this.reset()}update(e){const s=e.length;let n=0,r=this.c1,a=this.c2;for(;n+8<=s;){const c=((a^e[n++])&255)<<1,o=((a>>>8^e[n++])&255)<<1,i=((a>>>16^e[n++])&255)<<1,l=((a>>>24^e[n++])&255)<<1,m=((r^e[n++])&255)<<1,C=((r>>>8^e[n++])&255)<<1,x=((r>>>16^e[n++])&255)<<1,f=((r>>>24^e[n++])&255)<<1;r=J[c]^Z[o]^Y[i]^X[l]^Q[m]^G[C]^V[x]^N[f],a=J[c+1]^Z[o+1]^Y[i+1]^X[l+1]^Q[m+1]^G[C+1]^V[x+1]^N[f+1]}for(;n>>8|(r&255)<<24)>>>0,r=r>>>8^N[c],a^=N[c+1],n++}this.c1=r,this.c2=a}async digest(){const e=this.c1^4294967295,s=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,s>>>24,s>>>16&255,s>>>8&255,s&255])}reset(){this.c1=4294967295,this.c2=4294967295}}const gt=()=>Le,he=(t,e)=>{switch(t){case d.MD5:return e.md5;case d.CRC32:return gt();case d.CRC32C:return At;case d.CRC64NVME:return bt;case d.SHA1:return e.sha1;case d.SHA256:return e.sha256;default:throw new Error(`Unsupported checksum algorithm: ${t}`)}},fe=(t,e)=>{const s=new t;return s.update(He(e||"")),s.digest()},Ft={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},St=(t,e)=>(s,n)=>async r=>{if(!te.isInstance(r.request)||Et("x-amz-checksum-",r.request.headers))return s(r);const{request:a,input:c}=r,{body:o,headers:i}=a,{base64Encoder:l,streamHasher:m}=t,{requestChecksumRequired:C,requestAlgorithmMember:x}=e,f=await t.requestChecksumCalculation(),E=x?.name,A=x?.httpHeader;E&&!c[E]&&(f===P.WHEN_SUPPORTED||C)&&(c[E]=$,A&&(i[A]=$));const p=ht(c,{requestChecksumRequired:C,requestAlgorithmMember:x?.name,requestChecksumCalculation:f});let B=o,b=i;if(p){switch(p){case d.CRC32:y(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case d.CRC32C:y(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case d.CRC64NVME:y(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case d.SHA1:y(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case d.SHA256:y(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const h=ce(p),D=he(p,t);if(Ce(o)){const{getAwsChunkedEncodingStream:g,bodyLengthChecker:F}=t;B=g(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?dt(o,t.requestStreamBufferSize,n.logger):o,{base64Encoder:l,bodyLengthChecker:F,checksumLocationName:h,checksumAlgorithmFn:D,streamHasher:m}),b={...i,"content-encoding":i["content-encoding"]?`${i["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":i["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":h},delete b["content-length"]}else if(!ft(h,i)){const g=await fe(D,o);b={...i,[h]:l(g)}}}try{return await s({...r,request:{...a,headers:b,body:B}})}catch(h){if(h instanceof Error&&h.name==="InvalidChunkSizeError")try{h.message.endsWith(".")||(h.message+="."),h.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw h}},kt={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},wt=(t,e)=>(s,n)=>async r=>{const a=r.input,{requestValidationModeMember:c}=e,o=await t.requestChecksumCalculation(),i=await t.responseChecksumValidation();switch(o){case P.WHEN_REQUIRED:y(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case P.WHEN_SUPPORTED:y(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(i){case I.WHEN_REQUIRED:y(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case I.WHEN_SUPPORTED:y(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return c&&!a[c]&&i===I.WHEN_SUPPORTED&&(a[c]="ENABLED"),s(r)},Ee=(t=[])=>{const e=[];for(const s of Ct)!t.includes(s)||!W.includes(s)||e.push(s);return e},Rt=t=>{const e=t.lastIndexOf("-");if(e!==-1){const s=t.slice(e+1);if(!s.startsWith("0")){const n=parseInt(s,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1},_t=async(t,{checksumAlgorithmFn:e,base64Encoder:s})=>s(await fe(e,t)),Mt=async(t,{config:e,responseAlgorithms:s,logger:n})=>{const r=Ee(s),{body:a,headers:c}=t;for(const o of r){const i=ce(o),l=c[i];if(l){let m;try{m=he(o,e)}catch(f){if(o===d.CRC64NVME){n?.warn(`Skipping ${d.CRC64NVME} checksum validation: ${f.message}`);continue}throw f}const{base64Encoder:C}=e;if(Ce(a)){t.body=it({expectedChecksum:l,checksumSourceLocation:i,checksum:new m,source:a,base64Encoder:C});return}const x=await _t(a,{checksumAlgorithmFn:m,base64Encoder:C});if(x===l)break;throw new Error(`Checksum mismatch: expected "${x}" but received "${l}" in response header "${i}".`)}}},Nt={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},Lt=(t,e)=>(s,n)=>async r=>{if(!te.isInstance(r.request))return s(r);const a=r.input,c=await s(r),o=c.response,{requestValidationModeMember:i,responseAlgorithms:l}=e;if(i&&a[i]==="ENABLED"){const{clientName:m,commandName:C}=n;if(m==="S3Client"&&C==="GetObjectCommand"&&Ee(l).every(f=>{const E=ce(f),A=o.headers[E];return!A||Rt(A)}))return c;await Mt(o,{config:t,responseAlgorithms:l,logger:n.logger})}return c},Ae=(t,e)=>({applyToStack:s=>{s.add(St(t,e),Ft),s.addRelativeTo(wt(t,e),kt),s.addRelativeTo(Lt(t,e),Nt)}}),Ht="content-length",jt="x-amz-decoded-content-length";function Ot(){return(t,e)=>async s=>{const{request:n}=s;if(te.isInstance(n)&&!(Ht in n.headers)&&!(jt in n.headers)){const r="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof je)?e.logger.warn(r):console.warn(r)}return t({...s})}}const vt={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},Tt=t=>({applyToStack:e=>{e.add(Ot(),vt)}}),Pt=t=>(e,s)=>async n=>{const r=await e(n),{response:a}=r;if(Oe.isInstance(a)&&a.headers.expires){a.headers.expiresstring=a.headers.expires;try{ve(a.headers.expires)}catch(c){s.logger?.warn(`AWS SDK Warning for ${s.clientName}::${s.commandName} response parsing (${a.headers.expires}): ${c}`),delete a.headers.expires}}return r},Ut={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},qt=t=>({applyToStack:e=>{e.addRelativeTo(Pt(),Ut)}});function It(t){return e=>async s=>{const n={...s.input},r=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const a of r){const c=n[a.target];if(c){let o;typeof c=="string"?Kt(c,t)?o=t.base64Decoder(c):(o=t.utf8Decoder(c),n[a.target]=t.base64Encoder(o)):(o=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):new Uint8Array(c),n[a.target]=t.base64Encoder(o));const i=new t.md5;i.update(o),n[a.hash]=t.base64Encoder(await i.digest())}}return e({...s,input:n})}}const zt={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},pe=t=>({applyToStack:e=>{e.add(It(t),zt)}});function Kt(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}class $t extends se.classBuilder().ep({...ne,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,s,n,r){return[re(n,e.getEndpointParameterInstructions()),ue(n)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(Te).build(){}class Wt extends se.classBuilder().ep({...ne,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,s,n,r){return[re(n,e.getEndpointParameterInstructions()),Ae(n,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),pe(n),qt()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(Pe).build(){}class Vt extends se.classBuilder().ep({...ne,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,s,n,r){return[re(n,e.getEndpointParameterInstructions()),Ae(n,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Tt(),ue(n),pe(n)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(Ue).build(){}function ns(t){const e=U.c(9),{folderName:s,fullPrefix:n,bucketName:r}=t;let a;e[0]!==r||e[1]!==n?(a={bucket:r,_splat:n},e[0]=r,e[1]=n,e[2]=a):a=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u.jsx(nt,{className:"size-5 text-muted-foreground"}),e[3]=c):c=e[3];let o;e[4]!==s?(o=u.jsx("span",{className:"font-medium",children:s}),e[4]=s,e[5]=o):o=e[5];let i;return e[6]!==a||e[7]!==o?(i=u.jsxs(qe,{className:"flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent",params:a,to:"/s3/ls/$bucket/$",children:[c,o]}),e[6]=a,e[7]=o,e[8]=i):i=e[8],i}function Gt(){const t=U.c(2),e=de();let s;return t[0]!==e?(s={mutationFn:Qt,onSuccess:(n,r)=>{e.invalidateQueries({queryKey:["s3","buckets",r.bucket,"objects"]})}},t[0]=e,t[1]=s):s=t[1],me(s)}async function Qt(t){const{bucket:e,key:s,file:n}=t,r=await n.arrayBuffer(),a=new Uint8Array(r),c=new Vt({Bucket:e,Key:s,Body:a,ContentType:n.type});return await ae().send(c)}function Xt(){const t=U.c(2),e=de();let s;return t[0]!==e?(s={mutationFn:Yt,onSuccess:(n,r)=>{e.invalidateQueries({queryKey:["s3","buckets",r.bucket,"objects"]})}},t[0]=e,t[1]=s):s=t[1],me(s)}async function Yt(t){const{bucket:e,key:s}=t,n=new $t({Bucket:e,Key:s});return await ae().send(n)}function rs(t){const e=U.c(46),{object:s,bucketName:n,displayName:r,fullKey:a}=t,[c,o]=xe.useState(!1),i=Xt();let l;e[0]!==n||e[1]!==r||e[2]!==a?(l=async function(){try{const Be=new Wt({Bucket:n,Key:a}),oe=await ae().send(Be);if(oe.Body){const ye=await oe.Body.transformToByteArray(),ie=URL.createObjectURL(new Blob([ye])),M=document.createElement("a");M.href=ie,M.download=r,document.body.appendChild(M),M.click(),document.body.removeChild(M),URL.revokeObjectURL(ie)}}catch{throw new Error("Failed to download object")}},e[0]=n,e[1]=r,e[2]=a,e[3]=l):l=e[3];const m=l;let C;e[4]!==n||e[5]!==i||e[6]!==a?(C=async function(){await i.mutateAsync({bucket:n,key:a}),o(!1)},e[4]=n,e[5]=i,e[6]=a,e[7]=C):C=e[7];const x=C,f=s.Key;let E;e[8]===Symbol.for("react.memo_cache_sentinel")?(E=u.jsx(tt,{className:"size-5 text-muted-foreground"}),e[8]=E):E=e[8];let A;e[9]!==r?(A=u.jsx("h3",{className:"font-medium",children:r}),e[9]=r,e[10]=A):A=e[10];let p;e[11]!==s.LastModified?(p=s.LastModified&&u.jsxs("p",{className:"text-muted-foreground text-sm",children:["Last Modified: ",s.LastModified.toLocaleString()]}),e[11]=s.LastModified,e[12]=p):p=e[12];let B;e[13]!==A||e[14]!==p?(B=u.jsxs("div",{className:"flex items-center gap-3",children:[E,u.jsxs("div",{children:[A,p]})]}),e[13]=A,e[14]=p,e[15]=B):B=e[15];const b=s.Size||0;let h;e[16]!==b?(h=Ie(b),e[16]=b,e[17]=h):h=e[17];let D;e[18]!==h?(D=u.jsx("div",{className:"text-muted-foreground text-sm",children:h}),e[18]=h,e[19]=D):D=e[19];let g;e[20]===Symbol.for("react.memo_cache_sentinel")?(g=u.jsx(Ze,{className:"size-4"}),e[20]=g):g=e[20];let F;e[21]!==m?(F=u.jsx("button",{className:"rounded-md p-2 transition-colors hover:bg-accent",onClick:m,type:"button",children:g}),e[21]=m,e[22]=F):F=e[22];let H;e[23]===Symbol.for("react.memo_cache_sentinel")?(H=()=>o(!0),e[23]=H):H=e[23];let j;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=u.jsx("button",{className:"rounded-md p-2 text-destructive transition-colors hover:bg-accent",onClick:H,type:"button",children:u.jsx(Je,{className:"size-4"})}),e[24]=j):j=e[24];let S;e[25]!==D||e[26]!==F?(S=u.jsxs("div",{className:"flex items-center gap-3",children:[D,F,j]}),e[25]=D,e[26]=F,e[27]=S):S=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=u.jsx(Ke,{children:"Delete Object"}),e[28]=O):O=e[28];let k;e[29]!==r?(k=u.jsxs($e,{children:[O,u.jsxs(We,{children:["Are you sure you want to delete ",u.jsx("strong",{children:r}),"? This action cannot be undone."]})]}),e[29]=r,e[30]=k):k=e[30];let v;e[31]===Symbol.for("react.memo_cache_sentinel")?(v=u.jsx(Ve,{children:"Cancel"}),e[31]=v):v=e[31];const q=i.isPending?"Deleting…":"Delete";let w;e[32]!==x||e[33]!==q?(w=u.jsxs(Ge,{children:[v,u.jsx(Qe,{className:"bg-destructive hover:bg-destructive/90",onClick:x,children:q})]}),e[32]=x,e[33]=q,e[34]=w):w=e[34];let R;e[35]!==k||e[36]!==w?(R=u.jsxs(Xe,{children:[k,w]}),e[35]=k,e[36]=w,e[37]=R):R=e[37];let _;e[38]!==c||e[39]!==R?(_=u.jsx(Ye,{onOpenChange:o,open:c,children:R}),e[38]=c,e[39]=R,e[40]=_):_=e[40];let T;return e[41]!==s.Key||e[42]!==S||e[43]!==_||e[44]!==B?(T=u.jsxs("div",{className:"flex items-center justify-between rounded-lg border bg-card p-4",children:[B,S,_]},f),e[41]=s.Key,e[42]=S,e[43]=_,e[44]=B,e[45]=T):T=e[45],T}function as({bucket:t,prefix:e=""}){const s=xe.useRef(null),n=Gt();async function r(a){const c=a.target.files;if(!(!c||c.length===0))try{await Promise.all(Array.from(c).map(o=>{const i=`${e}${o.name}`;return n.mutateAsync({bucket:t,key:i,file:o})}))}finally{s.current&&(s.current.value="")}}return u.jsxs(u.Fragment,{children:[u.jsx("input",{accept:"*/*",className:"hidden",multiple:!0,onChange:r,ref:s,type:"file"}),u.jsxs(ze,{disabled:n.isPending,onClick:()=>s.current?.click(),size:"sm",children:[u.jsx(at,{className:"mr-2 size-4"}),n.isPending?"Uploading…":"Upload Files"]})]})}export{ns as F,rs as O,as as U}; diff --git a/hive/services/hiveui/frontend/dist/assets/useMutation.js b/hive/services/hiveui/frontend/dist/assets/useMutation.js new file mode 100644 index 000000000..6ecbf8256 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useMutation.js @@ -0,0 +1 @@ +import{bM as l,bN as b,bO as a,bP as d,bQ as h,bh as p,r as o,bR as m,bS as v}from"./index.js";var y=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),b(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&a(s.mutationKey)!==a(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,r=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#e.onSuccess?.(t.data,s,r,e)}catch(i){Promise.reject(i)}try{this.#e.onSettled?.(t.data,null,s,r,e)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#e.onError?.(t.error,s,r,e)}catch(i){Promise.reject(i)}try{this.#e.onSettled?.(void 0,t.error,s,r,e)}catch(i){Promise.reject(i)}}}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const r=p(),[e]=o.useState(()=>new y(r,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const i=o.useSyncExternalStore(o.useCallback(n=>e.subscribe(h.batchCalls(n)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((n,c)=>{e.mutate(n,c).catch(m)},[e]);if(i.error&&v(e.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:u,mutateAsync:i.mutate}}export{O as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js new file mode 100644 index 000000000..8dfb2c92b --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/useSuspenseQuery.js @@ -0,0 +1 @@ +import{bM as X,bV as N,bW as l,bN as Q,bX as g,bR as M,bY as _,bZ as B,b_ as Y,b$ as C,c0 as Z,c1 as $,c2 as A,bQ as V,r as d,bS as z,bh as G}from"./index.js";var J=class extends X{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=N(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#u;#r;#i;#b;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),j(this.#t,this.options)?this.#c():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return x(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return x(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!Q(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&H(this.#t,s,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||g(this.options.staleTime,this.#t)!==g(e.staleTime,this.#t))&&this.#v();const i=this.#R();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||i!==this.#a)&&this.#m(i)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return tt(this,s)&&(this.#e=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(M)),e}#v(){this.#y();const t=g(this.options.staleTime,this.#t);if(_||this.#e.isStale||!B(t))return;const s=Y(this.#e.dataUpdatedAt,t)+1;this.#o=C.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#R(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#m(t){this.#S(),this.#a=t,!(_||l(this.options.enabled,this.#t)===!1||!B(this.#a)||this.#a===0)&&(this.#h=C.setInterval(()=>{(this.options.refetchIntervalInBackground||Z.isFocused())&&this.#c()},this.#a))}#g(){this.#v(),this.#m(this.#R())}#y(){this.#o&&(C.clearTimeout(this.#o),this.#o=void 0)}#S(){this.#h&&(C.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#e,u=this.#n,n=this.#u,v=t!==s?t.state:this.#p,{state:h}=t;let a={...h},R=!1,o;if(e._optimisticResults){const c=this.hasListeners(),m=!c&&j(t,e),S=c&&H(t,s,e,r);(m||S)&&(a={...a,...$(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:y,errorUpdatedAt:U,status:b}=a;o=a.data;let D=!1;if(e.placeholderData!==void 0&&o===void 0&&b==="pending"){let c;i?.isPlaceholderData&&e.placeholderData===n?.placeholderData?(c=i.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(b="success",o=A(i?.data,c,e),R=!0)}if(e.select&&o!==void 0&&!D)if(i&&o===u?.data&&e.select===this.#b)o=this.#l;else try{this.#b=e.select,o=e.select(o),o=A(i?.data,o,e),this.#l=o,this.#i=null}catch(c){this.#i=c}this.#i&&(y=this.#i,o=this.#l,U=Date.now(),b="error");const I=a.fetchStatus==="fetching",T=b==="pending",w=b==="error",F=T&&I,k=o!==void 0,p={status:b,fetchStatus:a.fetchStatus,isPending:T,isSuccess:b==="success",isError:w,isInitialLoading:F,isLoading:F,data:o,dataUpdatedAt:a.dataUpdatedAt,error:y,errorUpdatedAt:U,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>v.dataUpdateCount||a.errorUpdateCount>v.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:w&&!k,isPaused:a.fetchStatus==="paused",isPlaceholderData:R,isRefetchError:w&&k,isStale:P(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=p.data!==void 0,m=p.status==="error"&&!c,S=E=>{m?E.reject(p.error):c&&E.resolve(p.data)},L=()=>{const E=this.#r=p.promise=N();S(E)},O=this.#r;switch(O.status){case"pending":t.queryHash===s.queryHash&&S(O);break;case"fulfilled":(m||p.data!==O.value)&&L();break;case"rejected":(!m||p.error!==O.reason)&&L();break}}return p}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Q(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#f.size)return!0;const u=new Set(i??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(n=>{const f=n;return this.#e[f]!==t[f]&&u.has(f)})};this.#E({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#E(t){V.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function q(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function j(t,e){return q(t,e)||t.state.data!==void 0&&x(t,e,e.refetchOnMount)}function x(t,e,s){if(l(e.enabled,t)!==!1&&g(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&P(t,e)}return!1}function H(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&P(t,s)}function P(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(g(e.staleTime,t))}function tt(t,e){return!Q(t.getCurrentResult(),e)}var K=d.createContext(!1),et=()=>d.useContext(K);K.Provider;function st(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rt=d.createContext(st()),it=()=>d.useContext(rt),at=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?z(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},nt=t=>{d.useEffect(()=>{t.clearReset()},[t])},ot=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||z(s,[t.error,r])),ht=(t,e)=>e.state.data===void 0,ct=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},ut=(t,e)=>t.isLoading&&t.isFetching&&!e,lt=(t,e)=>t?.suspense&&e.isPending,W=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function dt(t,e,s){const r=et(),i=it(),u=G(),n=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(n);const f=u.getQueryCache().get(n.queryHash);n._optimisticResults=r?"isRestoring":"optimistic",ct(n),at(n,i,f),nt(i);const v=!u.getQueryCache().get(n.queryHash),[h]=d.useState(()=>new e(u,n)),a=h.getOptimisticResult(n),R=!r&&t.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(o=>{const y=R?h.subscribe(V.batchCalls(o)):M;return h.updateResult(),y},[h,R]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),d.useEffect(()=>{h.setOptions(n)},[n,h]),lt(n,a))throw W(n,h,i);if(ot({result:a,errorResetBoundary:i,throwOnError:n.throwOnError,query:f,suspense:n.suspense}))throw a.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(n,a),n.experimental_prefetchInRender&&!_&&ut(a,r)&&(v?W(n,h,i):f?.promise)?.catch(M).finally(()=>{h.updateResult()}),n.notifyOnChangeProps?a:h.trackResult(a)}function bt(t,e){return dt({...t,enabled:!0,suspense:!0,throwOnError:ht,placeholderData:void 0},J)}export{bt as u}; diff --git a/hive/services/hiveui/frontend/dist/assets/zod.js b/hive/services/hiveui/frontend/dist/assets/zod.js new file mode 100644 index 000000000..2a3f2f469 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/assets/zod.js @@ -0,0 +1 @@ +import{r as ee,aA as re,V as jt,E as et,aB as Wt,G as he,aC as qt,I as mt,ap as Ht,ab as $t,w as zt,a9 as Gt,j as bt,c as Kt,a as Yt,aD as b,aE as Zt,aF as Jt,aG as Qt}from"./index.js";let tt=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const Xt={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},er={valid(e){return e===null?null:e?{[tt.valid]:""}:{[tt.invalid]:""}}},tr=ee.createContext({invalid:void 0,name:void 0,validityData:{state:Xt,errors:[],error:"",value:"",initialValue:null},setValidityData:re,disabled:void 0,touched:!1,setTouched:re,dirty:!1,setDirty:re,filled:!1,setFilled:re,focused:!1,setFocused:re,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(e=et)=>e,getInputValidationProps:(e=et)=>e,inputRef:{current:null},commit:async()=>{}}});function Se(e=!0){const r=ee.useContext(tr);if(r.setValidityData===re&&!e)throw new Error(jt(28));return r}const rr=ee.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:re,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function sr(){return ee.useContext(rr)}const ir=ee.createContext({controlId:void 0,setControlId:re,labelId:void 0,setLabelId:re,messageIds:[],setMessageIds:re,getDescriptionProps:e=>e});function Vt(){return ee.useContext(ir)}function ar(e,r){return{...e,state:{...e.state,valid:!r&&e.state.valid}}}function nr({controlled:e,default:r,name:t,state:s="value"}){const{current:l}=ee.useRef(e!==void 0),[a,o]=ee.useState(r),d=l?e:a,V=ee.useCallback(E=>{l||o(E)},[]);return[d,V]}function lr(e={}){const{id:r,implicit:t=!1,controlRef:s}=e,{controlId:l,setControlId:a}=Vt(),o=Wt(r);return he(()=>{if(!(!t&&!r||a===re)){if(t){const d=s?.current;qt(d)&&d.closest("label")!=null?a(r??null):a(l??o)}else r&&a(r);return()=>{r&&a(void 0)}}},[r,s,l,a,t,o]),l??o}function or(e){const{enabled:r=!0,value:t,id:s,name:l,controlRef:a,commit:o}=e,{formRef:d}=sr(),{invalid:V,markedDirtyRef:E,validityData:R,setValidityData:m}=Se(),F=mt(e.getValue);he(()=>{if(!r)return;let h=t;h===void 0&&(h=F()),R.initialValue===null&&h!==null&&m(O=>({...O,initialValue:h}))},[r,m,t,R.initialValue,F]),he(()=>{!r||!s||d.current.fields.set(s,{getValue:F,name:l,controlRef:a,validityData:ar(R,V),validate(h=!0){let O=t;O===void 0&&(O=F()),E.current=!0,h?Ht.flushSync(()=>o(O)):o(O)}})},[o,a,r,d,F,s,V,E,l,R,t]),he(()=>{const h=d.current.fields;return()=>{s&&h.delete(s)}},[d,s])}const ur=ee.forwardRef(function(r,t){const{render:s,className:l,id:a,name:o,value:d,disabled:V=!1,onValueChange:E,defaultValue:R,...m}=r,{state:F,name:h,disabled:O}=Se(),T=O||V,L=h??o,M=ee.useMemo(()=>({...F,disabled:T}),[F,T]),{setTouched:_,setDirty:H,validityData:x,setFocused:w,setFilled:W,validationMode:te,validation:q}=Se(),{labelId:X}=Vt(),z=lr({id:a});he(()=>{const S=d!=null;q.inputRef.current?.value||S&&d!==""?W(!0):S&&d===""&&W(!1)},[q.inputRef,W,d]);const[le,p]=nr({controlled:d,default:R,name:"FieldControl",state:"value"}),C=d!==void 0,U=mt((S,N)=>{E?.(S,N),!N.isCanceled&&p(S)});return or({id:z,name:L,commit:q.commit,value:le,getValue:()=>q.inputRef.current?.value,controlRef:q.inputRef}),$t("input",r,{ref:t,state:M,props:[{id:z,disabled:T,name:L,ref:q.inputRef,"aria-labelledby":X,...C?{value:le}:{defaultValue:R},onChange(S){const N=S.currentTarget.value;U(N,zt(Gt,S.nativeEvent)),H(N!==x.initialValue),W(N!=="")},onFocus(){w(!0)},onBlur(S){_(!0),w(!1),te==="onBlur"&&q.commit(S.currentTarget.value)},onKeyDown(S){S.currentTarget.tagName==="INPUT"&&S.key==="Enter"&&(_(!0),q.commit(S.currentTarget.value))}},q.getInputValidationProps(),m],stateAttributesMapping:er})}),dr=ee.forwardRef(function(r,t){return bt.jsx(ur,{ref:t,...r})});function Ur(e){const r=Kt.c(10);let t,s,l;r[0]!==e?({className:t,type:l,...s}=e,r[0]=e,r[1]=t,r[2]=s,r[3]=l):(t=r[1],s=r[2],l=r[3]);let a;r[4]!==t?(a=Yt("h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm outline-none transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-xs/relaxed placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),r[4]=t,r[5]=a):a=r[5];let o;return r[6]!==s||r[7]!==a||r[8]!==l?(o=bt.jsx(dr,{className:a,"data-slot":"input",type:l,...s}),r[6]=s,r[7]=a,r[8]=l,r[9]=o):o=r[9],o}var Ve=e=>e.type==="checkbox",ue=e=>e instanceof Date,Z=e=>e==null;const _t=e=>typeof e=="object";var j=e=>!Z(e)&&!Array.isArray(e)&&_t(e)&&!ue(e),Ft=e=>j(e)&&e.target?Ve(e.target)?e.target.checked:e.target.value:e,fr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,xt=(e,r)=>e.has(fr(r)),cr=e=>{const r=e.constructor&&e.constructor.prototype;return j(r)&&r.hasOwnProperty("isPrototypeOf")},Me=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function P(e){if(e instanceof Date)return new Date(e);const r=typeof FileList<"u"&&e instanceof FileList;if(Me&&(e instanceof Blob||r))return e;const t=Array.isArray(e);if(!t&&!(j(e)&&cr(e)))return e;const s=t?[]:Object.create(Object.getPrototypeOf(e));for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(s[l]=P(e[l]));return s}var pe=e=>/^\w*$/.test(e),I=e=>e===void 0,Ue=e=>Array.isArray(e)?e.filter(Boolean):[],Le=e=>Ue(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,r,t)=>{if(!r||!j(e))return t;const s=(pe(r)?[r]:Le(r)).reduce((l,a)=>Z(l)?l:l[a],e);return I(s)||s===e?I(e[r])?t:e[r]:s},J=e=>typeof e=="boolean",Y=e=>typeof e=="function",k=(e,r,t)=>{let s=-1;const l=pe(r)?[r]:Le(r),a=l.length,o=a-1;for(;++sb.useContext(pt);var wt=(e,r,t,s=!0)=>{const l={defaultValues:r._defaultValues};for(const a in e)Object.defineProperty(l,a,{get:()=>{const o=a;return r._proxyFormState[o]!==se.all&&(r._proxyFormState[o]=!s||se.all),t&&(t[o]=!0),e[o]}});return l};const Pe=typeof window<"u"?b.useLayoutEffect:b.useEffect;function yr(e){const r=Ne(),{control:t=r,disabled:s,name:l,exact:a}=e||{},[o,d]=b.useState(t._formState),V=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Pe(()=>t._subscribe({name:l,formState:V.current,exact:a,callback:E=>{!s&&d({...t._formState,...E})}}),[l,s,a]),b.useEffect(()=>{V.current.isValid&&t._setValid(!0)},[t]),b.useMemo(()=>wt(o,t,V.current,!1),[o,t])}var Q=e=>typeof e=="string",Re=(e,r,t,s,l)=>Q(e)?(s&&r.watch.add(e),y(t,e,l)):Array.isArray(e)?e.map(a=>(s&&r.watch.add(a),y(t,a))):(s&&(r.watchAll=!0),t),Oe=e=>Z(e)||!_t(e);function ie(e,r,t=new WeakSet){if(Oe(e)||Oe(r))return Object.is(e,r);if(ue(e)&&ue(r))return Object.is(e.getTime(),r.getTime());const s=Object.keys(e),l=Object.keys(r);if(s.length!==l.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const a of s){const o=e[a];if(!l.includes(a))return!1;if(a!=="ref"){const d=r[a];if(ue(o)&&ue(d)||j(o)&&j(d)||Array.isArray(o)&&Array.isArray(d)?!ie(o,d,t):!Object.is(o,d))return!1}}return!0}function vr(e){const r=Ne(),{control:t=r,name:s,defaultValue:l,disabled:a,exact:o,compute:d}=e||{},V=b.useRef(l),E=b.useRef(d),R=b.useRef(void 0),m=b.useRef(t),F=b.useRef(s);E.current=d;const[h,O]=b.useState(()=>{const x=t._getWatch(s,V.current);return E.current?E.current(x):x}),T=b.useCallback(x=>{const w=Re(s,t._names,x||t._formValues,!1,V.current);return E.current?E.current(w):w},[t._formValues,t._names,s]),L=b.useCallback(x=>{if(!a){const w=Re(s,t._names,x||t._formValues,!1,V.current);if(E.current){const W=E.current(w);ie(W,R.current)||(O(W),R.current=W)}else O(w)}},[t._formValues,t._names,a,s]);Pe(()=>((m.current!==t||!ie(F.current,s))&&(m.current=t,F.current=s,L()),t._subscribe({name:s,formState:{values:!0},exact:o,callback:x=>{L(x.values)}})),[t,o,s,L]),b.useEffect(()=>t._removeUnmounted());const M=m.current!==t,_=F.current,H=b.useMemo(()=>{if(a)return null;const x=!M&&!ie(_,s);return M||x?T():null},[a,M,s,_,T]);return H!==null?H:h}function gr(e){const r=Ne(),{name:t,disabled:s,control:l=r,shouldUnregister:a,defaultValue:o,exact:d=!0}=e,V=xt(l._names.array,t),E=b.useMemo(()=>y(l._formValues,t,y(l._defaultValues,t,o)),[l,t,o]),R=vr({control:l,name:t,defaultValue:E,exact:d}),m=yr({control:l,name:t,exact:d}),F=b.useRef(e),h=b.useRef(void 0),O=b.useRef(l.register(t,{...e.rules,value:R,...J(e.disabled)?{disabled:e.disabled}:{}}));F.current=e;const T=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(m.errors,t)},isDirty:{enumerable:!0,get:()=>!!y(m.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!y(m.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!y(m.validatingFields,t)},error:{enumerable:!0,get:()=>y(m.errors,t)}}),[m,t]),L=b.useCallback(x=>O.current.onChange({target:{value:Ft(x),name:t},type:_e.CHANGE}),[t]),M=b.useCallback(()=>O.current.onBlur({target:{value:y(l._formValues,t),name:t},type:_e.BLUR}),[t,l._formValues]),_=b.useCallback(x=>{const w=y(l._fields,t);w&&w._f&&x&&(w._f.ref={focus:()=>Y(x.focus)&&x.focus(),select:()=>Y(x.select)&&x.select(),setCustomValidity:W=>Y(x.setCustomValidity)&&x.setCustomValidity(W),reportValidity:()=>Y(x.reportValidity)&&x.reportValidity()})},[l._fields,t]),H=b.useMemo(()=>({name:t,value:R,...J(s)||m.disabled?{disabled:m.disabled||s}:{},onChange:L,onBlur:M,ref:_}),[t,s,m.disabled,L,M,_,R]);return b.useEffect(()=>{const x=l._options.shouldUnregister||a,w=h.current;w&&w!==t&&!V&&l.unregister(w),l.register(t,{...F.current.rules,...J(F.current.disabled)?{disabled:F.current.disabled}:{}});const W=(te,q)=>{const X=y(l._fields,te);X&&X._f&&(X._f.mount=q)};if(W(t,!0),x){const te=P(y(l._options.defaultValues,t,F.current.defaultValue));k(l._defaultValues,t,te),I(y(l._formValues,t))&&k(l._formValues,t,te)}return!V&&l.register(t),h.current=t,()=>{(V?x&&!l._state.action:x)?l.unregister(t):W(t,!1)}},[t,l,V,a]),b.useEffect(()=>{l._setDisabledField({disabled:s,name:t})},[s,t,l]),b.useMemo(()=>({field:H,formState:m,fieldState:T}),[H,m,T])}const Lr=e=>e.render(gr(e)),hr=b.createContext(null);hr.displayName="HookFormContext";var Be=(e,r,t,s,l)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:l||!0}}:{},me=e=>Array.isArray(e)?e:[e],rt=()=>{let e=[];return{get observers(){return e},next:l=>{for(const a of e)a.next&&a.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(a=>a!==l)}}),unsubscribe:()=>{e=[]}}};function Et(e,r){const t={};for(const s in e)if(e.hasOwnProperty(s)){const l=e[s],a=r[s];if(l&&j(l)&&a){const o=Et(l,a);j(o)&&(t[s]=o)}else e[s]&&(t[s]=a)}return t}var K=e=>j(e)&&!Object.keys(e).length,je=e=>e.type==="file",Fe=e=>{if(!Me)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Ct=e=>e.type==="select-multiple",We=e=>e.type==="radio",mr=e=>We(e)||Ve(e),ke=e=>Fe(e)&&e.isConnected;function br(e,r){const t=r.slice(0,-1).length;let s=0;for(;s{for(const r in e)if(Y(e[r]))return!0;return!1};function At(e){return Array.isArray(e)||j(e)&&!_r(e)}function Ie(e,r={}){for(const t in e){const s=e[t];At(s)?(r[t]=Array.isArray(s)?[]:{},Ie(s,r[t])):I(s)||(r[t]=!0)}return r}function fe(e,r,t){t||(t=Ie(r));for(const s in e){const l=e[s];if(At(l))I(r)||Oe(t[s])?t[s]=Ie(l,Array.isArray(l)?[]:{}):fe(l,Z(r)?{}:r[s],t[s]);else{const a=r[s];t[s]=!ie(l,a)}}return t}const st={value:!1,isValid:!1},it={value:!0,isValid:!0};var Dt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!I(e[0].attributes.value)?I(e[0].value)||e[0].value===""?it:{value:e[0].value,isValid:!0}:it:st}return st},kt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>I(e)?e:r?e===""?NaN:e&&+e:t&&Q(e)?new Date(e):s?s(e):e;const at={isValid:!1,value:null};var St=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,at):at;function nt(e){const r=e.ref;return je(r)?r.files:We(r)?St(e.refs).value:Ct(r)?[...r.selectedOptions].map(({value:t})=>t):Ve(r)?Dt(e.refs).value:kt(I(r.value)?e.ref.value:r.value,e)}var Fr=(e,r,t,s)=>{const l={};for(const a of e){const o=y(r,a);o&&k(l,a,o._f)}return{criteriaMode:t,names:[...e],fields:l,shouldUseNativeValidation:s}},xe=e=>e instanceof RegExp,ge=e=>I(e)?e:xe(e)?e.source:j(e)?xe(e.value)?e.value.source:e.value:e,lt=e=>({isOnSubmit:!e||e===se.onSubmit,isOnBlur:e===se.onBlur,isOnChange:e===se.onChange,isOnAll:e===se.all,isOnTouch:e===se.onTouched});const ot="AsyncFunction";var xr=e=>!!e&&!!e.validate&&!!(Y(e.validate)&&e.validate.constructor.name===ot||j(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===ot)),pr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ut=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const be=(e,r,t,s)=>{for(const l of t||Object.keys(e)){const a=y(e,l);if(a){const{_f:o,...d}=a;if(o){if(o.refs&&o.refs[0]&&r(o.refs[0],l)&&!s)return!0;if(o.ref&&r(o.ref,o.name)&&!s)return!0;if(be(d,r))break}else if(j(d)&&be(d,r))break}}};function dt(e,r,t){const s=y(e,t);if(s||pe(t))return{error:s,name:t};const l=t.split(".");for(;l.length;){const a=l.join("."),o=y(r,a),d=y(e,a);if(o&&!Array.isArray(o)&&t!==a)return{name:t};if(d&&d.type)return{name:a,error:d};if(d&&d.root&&d.root.type)return{name:`${a}.root`,error:d.root};l.pop()}return{name:t}}var wr=(e,r,t,s)=>{t(e);const{name:l,...a}=e;return K(a)||Object.keys(a).length>=Object.keys(r).length||Object.keys(a).find(o=>r[o]===(!s||se.all))},Er=(e,r,t)=>!e||!r||e===r||me(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),Cr=(e,r,t,s,l)=>l.isOnAll?!1:!t&&l.isOnTouch?!(r||e):(t?s.isOnBlur:l.isOnBlur)?!e:(t?s.isOnChange:l.isOnChange)?e:!0,Ar=(e,r)=>!Ue(y(e,r)).length&&B(e,r),Dr=(e,r,t)=>{const s=me(y(e,t));return k(s,"root",r[t]),k(e,t,s),e};function ft(e,r,t="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||J(e)&&!e)return{type:t,message:Q(e)?e:"",ref:r}}var de=e=>j(e)&&!xe(e)?e:{value:e,message:""},ct=async(e,r,t,s,l,a)=>{const{ref:o,refs:d,required:V,maxLength:E,minLength:R,min:m,max:F,pattern:h,validate:O,name:T,valueAsNumber:L,mount:M}=e._f,_=y(t,T);if(!M||r.has(T))return{};const H=d?d[0]:o,x=p=>{l&&H.reportValidity&&(H.setCustomValidity(J(p)?"":p||""),H.reportValidity())},w={},W=We(o),te=Ve(o),q=W||te,X=(L||je(o))&&I(o.value)&&I(_)||Fe(o)&&o.value===""||_===""||Array.isArray(_)&&!_.length,z=Be.bind(null,T,s,w),le=(p,C,U,$=ae.maxLength,S=ae.minLength)=>{const N=p?C:U;w[T]={type:p?$:S,message:N,ref:o,...z(p?$:S,N)}};if(a?!Array.isArray(_)||!_.length:V&&(!q&&(X||Z(_))||J(_)&&!_||te&&!Dt(d).isValid||W&&!St(d).isValid)){const{value:p,message:C}=Q(V)?{value:!!V,message:V}:de(V);if(p&&(w[T]={type:ae.required,message:C,ref:H,...z(ae.required,C)},!s))return x(C),w}if(!X&&(!Z(m)||!Z(F))){let p,C;const U=de(F),$=de(m);if(!Z(_)&&!isNaN(_)){const S=o.valueAsNumber||_&&+_;Z(U.value)||(p=S>U.value),Z($.value)||(C=S<$.value)}else{const S=o.valueAsDate||new Date(_),N=ve=>new Date(new Date().toDateString()+" "+ve),ce=o.type=="time",ye=o.type=="week";Q(U.value)&&_&&(p=ce?N(_)>N(U.value):ye?_>U.value:S>new Date(U.value)),Q($.value)&&_&&(C=ce?N(_)+p.value,$=!Z(C.value)&&_.length<+C.value;if((U||$)&&(le(U,p.message,C.message),!s))return x(w[T].message),w}if(h&&!X&&Q(_)){const{value:p,message:C}=de(h);if(xe(p)&&!_.match(p)&&(w[T]={type:ae.pattern,message:C,ref:o,...z(ae.pattern,C)},!s))return x(C),w}if(O){if(Y(O)){const p=await O(_,t),C=ft(p,H);if(C&&(w[T]={...C,...z(ae.validate,C.message)},!s))return x(C.message),w}else if(j(O)){let p={};for(const C in O){if(!K(p)&&!s)break;const U=ft(await O[C](_,t),H,C);U&&(p={...U,...z(C,U.message)},x(U.message),s&&(w[T]=p))}if(!K(p)&&(w[T]={ref:H,...p},!s))return w}}return x(!0),w};const kr={mode:se.onSubmit,reValidateMode:se.onChange,shouldFocusError:!0};function Sr(e={}){let r={...kr,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Y(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},l=j(r.defaultValues)||j(r.values)?P(r.defaultValues||r.values)||{}:{},a=r.shouldUnregister?{}:P(l),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},V,E=0;const R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...R};let F={...m};const h={array:rt(),state:rt()},O=r.criteriaMode===se.all,T=i=>n=>{clearTimeout(E),E=setTimeout(i,n)},L=async i=>{if(!o.keepIsValid&&!r.disabled&&(m.isValid||F.isValid||i)){let n;r.resolver?(n=K((await q()).errors),M()):n=await z(s,!0),n!==t.isValid&&h.state.next({isValid:n})}},M=(i,n)=>{!r.disabled&&(m.isValidating||m.validatingFields||F.isValidating||F.validatingFields)&&((i||Array.from(d.mount)).forEach(u=>{u&&(n?k(t.validatingFields,u,n):B(t.validatingFields,u))}),h.state.next({validatingFields:t.validatingFields,isValidating:!K(t.validatingFields)}))},_=(i,n=[],u,v,c=!0,f=!0)=>{if(v&&u&&!r.disabled){if(o.action=!0,f&&Array.isArray(y(s,i))){const g=u(y(s,i),v.argA,v.argB);c&&k(s,i,g)}if(f&&Array.isArray(y(t.errors,i))){const g=u(y(t.errors,i),v.argA,v.argB);c&&k(t.errors,i,g),Ar(t.errors,i)}if((m.touchedFields||F.touchedFields)&&f&&Array.isArray(y(t.touchedFields,i))){const g=u(y(t.touchedFields,i),v.argA,v.argB);c&&k(t.touchedFields,i,g)}(m.dirtyFields||F.dirtyFields)&&(t.dirtyFields=fe(l,a)),h.state.next({name:i,isDirty:p(i,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else k(a,i,n)},H=(i,n)=>{k(t.errors,i,n),h.state.next({errors:t.errors})},x=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},w=(i,n,u,v)=>{const c=y(s,i);if(c){const f=y(a,i,I(u)?y(l,i):u);I(f)||v&&v.defaultChecked||n?k(a,i,n?f:nt(c._f)):$(i,f),o.mount&&!o.action&&L()}},W=(i,n,u,v,c)=>{let f=!1,g=!1;const A={name:i};if(!r.disabled){if(!u||v){(m.isDirty||F.isDirty)&&(g=t.isDirty,t.isDirty=A.isDirty=p(),f=g!==A.isDirty);const D=ie(y(l,i),n);g=!!y(t.dirtyFields,i),D?B(t.dirtyFields,i):k(t.dirtyFields,i,!0),A.dirtyFields=t.dirtyFields,f=f||(m.dirtyFields||F.dirtyFields)&&g!==!D}if(u){const D=y(t.touchedFields,i);D||(k(t.touchedFields,i,u),A.touchedFields=t.touchedFields,f=f||(m.touchedFields||F.touchedFields)&&D!==u)}f&&c&&h.state.next(A)}return f?A:{}},te=(i,n,u,v)=>{const c=y(t.errors,i),f=(m.isValid||F.isValid)&&J(n)&&t.isValid!==n;if(r.delayError&&u?(V=T(()=>H(i,u)),V(r.delayError)):(clearTimeout(E),V=null,u?k(t.errors,i,u):B(t.errors,i)),(u?!ie(c,u):c)||!K(v)||f){const g={...v,...f&&J(n)?{isValid:n}:{},errors:t.errors,name:i};t={...t,...g},h.state.next(g)}},q=async i=>(M(i,!0),await r.resolver(a,r.context,Fr(i||d.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),X=async i=>{const{errors:n}=await q(i);if(M(i),i)for(const u of i){const v=y(n,u);v?k(t.errors,u,v):B(t.errors,u)}else t.errors=n;return n},z=async(i,n,u={valid:!0})=>{for(const v in i){const c=i[v];if(c){const{_f:f,...g}=c;if(f){const A=d.array.has(f.name),D=c._f&&xr(c._f);D&&m.validatingFields&&M([f.name],!0);const G=await ct(c,d.disabled,a,O,r.shouldUseNativeValidation&&!n,A);if(D&&m.validatingFields&&M([f.name]),G[f.name]&&(u.valid=!1,n||e.shouldUseNativeValidation))break;!n&&(y(G,f.name)?A?Dr(t.errors,G,f.name):k(t.errors,f.name,G[f.name]):B(t.errors,f.name))}!K(g)&&await z(g,n,u)}}return u.valid},le=()=>{for(const i of d.unMount){const n=y(s,i);n&&(n._f.refs?n._f.refs.every(u=>!ke(u)):!ke(n._f.ref))&&we(i)}d.unMount=new Set},p=(i,n)=>!r.disabled&&(i&&n&&k(a,i,n),!ie(qe(),l)),C=(i,n,u)=>Re(i,d,{...o.mount?a:I(n)?l:Q(i)?{[i]:n}:n},u,n),U=i=>Ue(y(o.mount?a:l,i,r.shouldUnregister?y(l,i,[]):[])),$=(i,n,u={})=>{const v=y(s,i);let c=n;if(v){const f=v._f;f&&(!f.disabled&&k(a,i,kt(n,f)),c=Fe(f.ref)&&Z(n)?"":n,Ct(f.ref)?[...f.ref.options].forEach(g=>g.selected=c.includes(g.value)):f.refs?Ve(f.ref)?f.refs.forEach(g=>{(!g.defaultChecked||!g.disabled)&&(Array.isArray(c)?g.checked=!!c.find(A=>A===g.value):g.checked=c===g.value||!!c)}):f.refs.forEach(g=>g.checked=g.value===c):je(f.ref)?f.ref.value="":(f.ref.value=c,f.ref.type||h.state.next({name:i,values:P(a)})))}(u.shouldDirty||u.shouldTouch)&&W(i,c,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&ve(i)},S=(i,n,u)=>{for(const v in n){if(!n.hasOwnProperty(v))return;const c=n[v],f=i+"."+v,g=y(s,f);(d.array.has(i)||j(c)||g&&!g._f)&&!ue(c)?S(f,c,u):$(f,c,u)}},N=(i,n,u={})=>{const v=y(s,i),c=d.array.has(i),f=P(n);k(a,i,f),c?(h.array.next({name:i,values:P(a)}),(m.isDirty||m.dirtyFields||F.isDirty||F.dirtyFields)&&u.shouldDirty&&h.state.next({name:i,dirtyFields:fe(l,a),isDirty:p(i,f)})):v&&!v._f&&!Z(f)?S(i,f,u):$(i,f,u),ut(i,d)?h.state.next({...t,name:i,values:P(a)}):h.state.next({name:o.mount?i:void 0,values:P(a)})},ce=async i=>{o.mount=!0;const n=i.target;let u=n.name,v=!0;const c=y(s,u),f=D=>{v=Number.isNaN(D)||ue(D)&&isNaN(D.getTime())||ie(D,y(a,u,D))},g=lt(r.mode),A=lt(r.reValidateMode);if(c){let D,G;const oe=n.type?nt(c._f):Ft(i),ne=i.type===_e.BLUR||i.type===_e.FOCUS_OUT,Nt=!pr(c._f)&&!r.resolver&&!y(t.errors,u)&&!c._f.deps||Cr(ne,y(t.touchedFields,u),t.isSubmitted,A,g),Ae=ut(u,d,ne);k(a,u,oe),ne?(!n||!n.readOnly)&&(c._f.onBlur&&c._f.onBlur(i),V&&V(0)):c._f.onChange&&c._f.onChange(i);const De=W(u,oe,ne),Pt=!K(De)||Ae;if(!ne&&h.state.next({name:u,type:i.type,values:P(a)}),Nt)return(m.isValid||F.isValid)&&(r.mode==="onBlur"?ne&&L():ne||L()),Pt&&h.state.next({name:u,...Ae?{}:De});if(!ne&&Ae&&h.state.next({...t}),r.resolver){const{errors:Qe}=await q([u]);if(M([u]),f(oe),v){const Bt=dt(t.errors,s,u),Xe=dt(Qe,s,Bt.name||u);D=Xe.error,u=Xe.name,G=K(Qe)}}else M([u],!0),D=(await ct(c,d.disabled,a,O,r.shouldUseNativeValidation))[u],M([u]),f(oe),v&&(D?G=!1:(m.isValid||F.isValid)&&(G=await z(s,!0)));v&&(c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&ve(c._f.deps),te(u,G,D,De))}},ye=(i,n)=>{if(y(t.errors,n)&&i.focus)return i.focus(),1},ve=async(i,n={})=>{let u,v;const c=me(i);if(r.resolver){const f=await X(I(i)?i:c);u=K(f),v=i?!c.some(g=>y(f,g)):u}else i?(v=(await Promise.all(c.map(async f=>{const g=y(s,f);return await z(g&&g._f?{[f]:g}:g)}))).every(Boolean),!(!v&&!t.isValid)&&L()):v=u=await z(s);return h.state.next({...!Q(i)||(m.isValid||F.isValid)&&u!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:u}:{},errors:t.errors}),n.shouldFocus&&!v&&be(s,ye,i?c:d.mount),v},qe=(i,n)=>{let u={...o.mount?a:l};return n&&(u=Et(n.dirtyFields?t.dirtyFields:t.touchedFields,u)),I(i)?u:Q(i)?y(u,i):i.map(v=>y(u,v))},He=(i,n)=>({invalid:!!y((n||t).errors,i),isDirty:!!y((n||t).dirtyFields,i),error:y((n||t).errors,i),isValidating:!!y(t.validatingFields,i),isTouched:!!y((n||t).touchedFields,i)}),Rt=i=>{i&&me(i).forEach(n=>B(t.errors,n)),h.state.next({errors:i?t.errors:{}})},$e=(i,n,u)=>{const v=(y(s,i,{_f:{}})._f||{}).ref,c=y(t.errors,i)||{},{ref:f,message:g,type:A,...D}=c;k(t.errors,i,{...D,...n,ref:v}),h.state.next({name:i,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&v&&v.focus&&v.focus()},Ot=(i,n)=>Y(i)?h.state.subscribe({next:u=>"values"in u&&i(C(void 0,n),u)}):C(i,n,!0),ze=i=>h.state.subscribe({next:n=>{Er(i.name,n.name,i.exact)&&wr(n,i.formState||m,Lt,i.reRenderRoot)&&i.callback({values:{...a},...t,...n,defaultValues:l})}}).unsubscribe,It=i=>(o.mount=!0,F={...F,...i.formState},ze({...i,formState:{...R,...i.formState}})),we=(i,n={})=>{for(const u of i?me(i):d.mount)d.mount.delete(u),d.array.delete(u),n.keepValue||(B(s,u),B(a,u)),!n.keepError&&B(t.errors,u),!n.keepDirty&&B(t.dirtyFields,u),!n.keepTouched&&B(t.touchedFields,u),!n.keepIsValidating&&B(t.validatingFields,u),!r.shouldUnregister&&!n.keepDefaultValue&&B(l,u);h.state.next({values:P(a)}),h.state.next({...t,...n.keepDirty?{isDirty:p()}:{}}),!n.keepIsValid&&L()},Ge=({disabled:i,name:n})=>{if(J(i)&&o.mount||i||d.disabled.has(n)){const c=d.disabled.has(n)!==!!i;i?d.disabled.add(n):d.disabled.delete(n),c&&o.mount&&!o.action&&L()}},Ee=(i,n={})=>{let u=y(s,i);const v=J(n.disabled)||J(r.disabled);return k(s,i,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:i}},name:i,mount:!0,...n}}),d.mount.add(i),u?Ge({disabled:J(n.disabled)?n.disabled:r.disabled,name:i}):w(i,!0,n.value),{...v?{disabled:n.disabled||r.disabled}:{},...r.progressive?{required:!!n.required,min:ge(n.min),max:ge(n.max),minLength:ge(n.minLength),maxLength:ge(n.maxLength),pattern:ge(n.pattern)}:{},name:i,onChange:ce,onBlur:ce,ref:c=>{if(c){Ee(i,n),u=y(s,i);const f=I(c.value)&&c.querySelectorAll&&c.querySelectorAll("input,select,textarea")[0]||c,g=mr(f),A=u._f.refs||[];if(g?A.find(D=>D===f):f===u._f.ref)return;k(s,i,{_f:{...u._f,...g?{refs:[...A.filter(ke),f,...Array.isArray(y(l,i))?[{}]:[]],ref:{type:f.type,name:i}}:{ref:f}}}),w(i,!1,void 0,f)}else u=y(s,i,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&!(xt(d.array,i)&&o.action)&&d.unMount.add(i)}}},Ce=()=>r.shouldFocusError&&be(s,ye,d.mount),Tt=i=>{J(i)&&(h.state.next({disabled:i}),be(s,(n,u)=>{const v=y(s,u);v&&(n.disabled=v._f.disabled||i,Array.isArray(v._f.refs)&&v._f.refs.forEach(c=>{c.disabled=v._f.disabled||i}))},0,!1))},Ke=(i,n)=>async u=>{let v;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let c=P(a);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:f,values:g}=await q();M(),t.errors=f,c=P(g)}else await z(s);if(d.disabled.size)for(const f of d.disabled)B(c,f);if(B(t.errors,"root"),K(t.errors)){h.state.next({errors:{}});try{await i(c,u)}catch(f){v=f}}else n&&await n({...t.errors},u),Ce(),setTimeout(Ce);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:K(t.errors)&&!v,submitCount:t.submitCount+1,errors:t.errors}),v)throw v},Mt=(i,n={})=>{y(s,i)&&(I(n.defaultValue)?N(i,P(y(l,i))):(N(i,n.defaultValue),k(l,i,P(n.defaultValue))),n.keepTouched||B(t.touchedFields,i),n.keepDirty||(B(t.dirtyFields,i),t.isDirty=n.defaultValue?p(i,P(y(l,i))):p()),n.keepError||(B(t.errors,i),m.isValid&&L()),h.state.next({...t}))},Ye=(i,n={})=>{const u=i?P(i):l,v=P(u),c=K(i),f=c?l:v;if(n.keepDefaultValues||(l=u),!n.keepValues){if(n.keepDirtyValues){const g=new Set([...d.mount,...Object.keys(fe(l,a))]);for(const A of Array.from(g)){const D=y(t.dirtyFields,A),G=y(a,A),oe=y(f,A);D&&!I(G)?k(f,A,G):!D&&!I(oe)&&N(A,oe)}}else{if(Me&&I(i))for(const g of d.mount){const A=y(s,g);if(A&&A._f){const D=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(Fe(D)){const G=D.closest("form");if(G){G.reset();break}}}}if(n.keepFieldsRef)for(const g of d.mount)N(g,y(f,g));else s={}}a=r.shouldUnregister?n.keepDefaultValues?P(l):{}:P(f),h.array.next({values:{...f}}),h.state.next({values:{...f}})}d={mount:n.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!m.isValid||!!n.keepIsValid||!!n.keepDirtyValues||!r.shouldUnregister&&!K(f),o.watch=!!r.shouldUnregister,o.keepIsValid=!!n.keepIsValid,o.action=!1,n.keepErrors||(t.errors={}),h.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:c?!1:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!ie(i,l)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:c?{}:n.keepDirtyValues?n.keepDefaultValues&&a?fe(l,a):t.dirtyFields:n.keepDefaultValues&&i?fe(l,i):n.keepDirty?t.dirtyFields:{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},Ze=(i,n)=>Ye(Y(i)?i(a):i,{...r.resetOptions,...n}),Ut=(i,n={})=>{const u=y(s,i),v=u&&u._f;if(v){const c=v.refs?v.refs[0]:v.ref;c.focus&&setTimeout(()=>{c.focus(),n.shouldSelect&&Y(c.select)&&c.select()})}},Lt=i=>{t={...t,...i}},Je={control:{register:Ee,unregister:we,getFieldState:He,handleSubmit:Ke,setError:$e,_subscribe:ze,_runSchema:q,_updateIsValidating:M,_focusError:Ce,_getWatch:C,_getDirty:p,_setValid:L,_setFieldArray:_,_setDisabledField:Ge,_setErrors:x,_getFieldArray:U,_reset:Ye,_resetDefaultValues:()=>Y(r.defaultValues)&&r.defaultValues().then(i=>{Ze(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:Tt,_subjects:h,_proxyFormState:m,get _fields(){return s},get _formValues(){return a},get _state(){return o},set _state(i){o=i},get _defaultValues(){return l},get _names(){return d},set _names(i){d=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:It,trigger:ve,register:Ee,handleSubmit:Ke,watch:Ot,setValue:N,getValues:qe,reset:Ze,resetField:Mt,clearErrors:Rt,unregister:we,setError:$e,setFocus:Ut,getFieldState:He};return{...Je,formControl:Je}}function Nr(e={}){const r=b.useRef(void 0),t=b.useRef(void 0),[s,l]=b.useState({isDirty:!1,isValidating:!1,isLoading:Y(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Y(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:s},e.defaultValues&&!Y(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...d}=Sr(e);r.current={...d,formState:s}}const a=r.current.control;return a._options=e,Pe(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>l({...a._formState}),reRenderRoot:!0});return l(d=>({...d,isReady:!0})),a._formState.isReady=!0,o},[a]),b.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),b.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),b.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),b.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),b.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==s.isDirty&&a._subjects.state.next({isDirty:o})}},[a,s.isDirty]),b.useEffect(()=>{var o;e.values&&!ie(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((o=a._options.resetOptions)===null||o===void 0)&&o.keepIsValid||a._setValid(),t.current=e.values,l(d=>({...d}))):a._resetDefaultValues()},[a,e.values]),b.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),r.current.formState=b.useMemo(()=>wt(s,a),[a,s]),r.current}const yt=(e,r,t)=>{if(e&&"reportValidity"in e){const s=y(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Te=(e,r)=>{for(const t in r.fields){const s=r.fields[t];s&&s.ref&&"reportValidity"in s.ref?yt(s.ref,t,e):s&&s.refs&&s.refs.forEach(l=>yt(l,t,e))}},vt=(e,r)=>{r.shouldUseNativeValidation&&Te(e,r);const t={};for(const s in e){const l=y(r.fields,s),a=Object.assign(e[s]||{},{ref:l&&l.ref});if(Rr(r.names||Object.keys(e),s)){const o=Object.assign({},y(t,s));k(o,"root",a),k(t,s,o)}else k(t,s,a)}return t},Rr=(e,r)=>{const t=gt(r);return e.some(s=>gt(s).match(`^${t}\\.\\d+`))};function gt(e){return e.replace(/\]|\[/g,"")}function ht(e,r){try{var t=e()}catch(s){return r(s)}return t&&t.then?t.then(void 0,r):t}function Or(e,r){for(var t={};e.length;){var s=e[0],l=s.code,a=s.message,o=s.path.join(".");if(!t[o])if("unionErrors"in s){var d=s.unionErrors[0].errors[0];t[o]={message:d.message,type:d.code}}else t[o]={message:a,type:l};if("unionErrors"in s&&s.unionErrors.forEach(function(R){return R.errors.forEach(function(m){return e.push(m)})}),r){var V=t[o].types,E=V&&V[s.code];t[o]=Be(o,r,t,l,E?[].concat(E,s.message):s.message)}e.shift()}return t}function Ir(e,r){for(var t={};e.length;){var s=e[0],l=s.code,a=s.message,o=s.path.join(".");if(!t[o])if(s.code==="invalid_union"&&s.errors.length>0){var d=s.errors[0][0];t[o]={message:d.message,type:d.code}}else t[o]={message:a,type:l};if(s.code==="invalid_union"&&s.errors.forEach(function(R){return R.forEach(function(m){return e.push(m)})}),r){var V=t[o].types,E=V&&V[s.code];t[o]=Be(o,r,t,l,E?[].concat(E,s.message):s.message)}e.shift()}return t}function Pr(e,r,t){if(t===void 0&&(t={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,l,a){try{return Promise.resolve(ht(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(o){return a.shouldUseNativeValidation&&Te({},a),{errors:{},values:t.raw?Object.assign({},s):o}})},function(o){if((function(d){return Array.isArray(d?.issues)})(o))return{values:{},errors:vt(Or(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,l,a){try{return Promise.resolve(ht(function(){return Promise.resolve((t.mode==="sync"?Zt:Jt)(e,s,r)).then(function(o){return a.shouldUseNativeValidation&&Te({},a),{errors:{},values:t.raw?Object.assign({},s):o}})},function(o){if((function(d){return d instanceof Qt})(o))return{values:{},errors:vt(Ir(o.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}};throw new Error("Invalid input: not a Zod schema")}export{Lr as C,Ur as I,Pr as a,sr as b,Se as c,lr as d,nr as e,or as f,Vt as g,er as h,Nr as u}; diff --git a/hive/services/hiveui/frontend/dist/favicon.ico b/hive/services/hiveui/frontend/dist/favicon.ico new file mode 100644 index 000000000..3c0e18ffa Binary files /dev/null and b/hive/services/hiveui/frontend/dist/favicon.ico differ diff --git a/hive/services/hiveui/frontend/dist/index.html b/hive/services/hiveui/frontend/dist/index.html new file mode 100644 index 000000000..e29f196d6 --- /dev/null +++ b/hive/services/hiveui/frontend/dist/index.html @@ -0,0 +1,15 @@ + + + + + + + + + + + + +
+ + diff --git a/hive/services/hiveui/frontend/dist/mulga-logo.svg b/hive/services/hiveui/frontend/dist/mulga-logo.svg new file mode 100644 index 000000000..572eb201e --- /dev/null +++ b/hive/services/hiveui/frontend/dist/mulga-logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/hive/services/hiveui/frontend/dist/robots.txt b/hive/services/hiveui/frontend/dist/robots.txt new file mode 100644 index 000000000..b21f0887a --- /dev/null +++ b/hive/services/hiveui/frontend/dist/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: / diff --git a/hive/services/hiveui/frontend/vite.config.ts b/hive/services/hiveui/frontend/vite.config.ts index c896205a3..a84c9494c 100644 --- a/hive/services/hiveui/frontend/vite.config.ts +++ b/hive/services/hiveui/frontend/vite.config.ts @@ -10,6 +10,13 @@ export default defineConfig({ envDir: "../", build: { chunkSizeWarningLimit: 1500, + rollupOptions: { + output: { + entryFileNames: "assets/[name].js", + chunkFileNames: "assets/[name].js", + assetFileNames: "assets/[name].[ext]", + }, + }, }, plugins: [ basicSsl(), diff --git a/hive/services/hiveui/hiveui.go b/hive/services/hiveui/hiveui.go index eba5c72b3..0de95b2e7 100644 --- a/hive/services/hiveui/hiveui.go +++ b/hive/services/hiveui/hiveui.go @@ -151,13 +151,9 @@ func (svc *Service) launchService() error { file, err := contentFS.Open(path) if err == nil { _ = file.Close() - // File exists, check if it's not an HTML file for caching - if filepath.Ext(path) != ".html" { - // Vite outputs unique hashes for files so we can cache them forever - w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") - } else { - w.Header().Set("Cache-Control", "no-cache") - } + // Use no-cache to force revalidation; http.FileServer sets ETags + // so browsers will get 304 Not Modified when files haven't changed + w.Header().Set("Cache-Control", "no-cache") fileServer.ServeHTTP(w, r) return }